blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 4 115 | path stringlengths 2 970 | src_encoding stringclasses 28
values | length_bytes int64 31 5.38M | score float64 2.52 5.28 | int_score int64 3 5 | detected_licenses listlengths 0 161 | license_type stringclasses 2
values | text stringlengths 31 5.39M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
5bd848ed459bac564b46c904a7f4d04c4dd9d8e5 | Shell | dywisor/omir | /site/src/rootfs/base/etc/profile | UTF-8 | 449 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
_profile_restore_noglob=
case "$-" in
*f*) _profile_restore_noglob=1; set +f ;;
esac
_profile_restore_nounset=
case "$-" in
*u*) _profile_restore_nounset=1; set +u ;;
esac
t0=
for t0 in /etc/profile.d/*.sh; do
[ -r "${t0}" ] && . "${t0}" || :
done
unset -v t0
[ -z "${_profile_restore_nounset-}... | true |
75d7de0471f5880091540b59f72655e57c9778a9 | Shell | denewman/teleconf | /testing/test_mdtssh.sh | UTF-8 | 10,139 | 3.53125 | 4 | [] | no_license | #!/bin/bash
#script name: test_mdtssh.sh
#purpose: test MDT SSH API.
#author: Yifeng Shen
#version: 1.0
#Create date: 2016-10-15
#Change history:
SCRIPTNAME="test_mdtssh.sh"
AWK="/usr/bin/awk"
DATE="/bin/date"
WC="/usr/bin/wc"
SORT="/usr/bin/sort"
UNIQ="/usr/bin/uniq"
HEAD="/usr/bin/head"
GREP="/bin/grep"
TEE="/usr... | true |
49e1bba425e0ad35fa6a93a6155b44bdd57f0faa | Shell | linusnilssonatuppmax/rekrytering | /rekrytering-perl-prepare.sh | UTF-8 | 268 | 3.03125 | 3 | [] | no_license | #!/bin/bash
mkdir projektkatalog
cd projektkatalog || exit 5
for i in {1..1000} ; do
P="proj-$RANDOM"
if ! test -d $P ; then
mkdir $P
dd if=/dev/urandom of=$P/dataset_$i.txt bs=1 count=$RANDOM
chgrp -R "$(echo $RANDOM%2000+5000 | bc )" "$P"
fi
done
| true |
9b63c8bcd30bfb7237a50dd23626a73c904114aa | Shell | newportandy/dotfiles | /scripts/.scripts/with-docker-db | UTF-8 | 1,271 | 4.1875 | 4 | [] | no_license | #!/bin/bash -e
image=mdillon/postgis:9.6-alpine
container_name=my-app-postgresql
if [ -z "$1" ]; then
echo "Run command with a dockerised PostgreSQL DB.
usage: $(basename "$0") command
The various PG* environment variables are set so that if command uses
them - as postgresql's tools and most libpq-based program... | true |
6b364657a82300d1bd1b7b3ed5506b6d16d5565c | Shell | mulle-objc/mulle-objc-developer | /.mulle/etc/project/generate-formula.sh | UTF-8 | 248 | 2.875 | 3 | [
"BSD-3-Clause"
] | permissive | #
# Generate your `def install` `test do` lines here. echo them to stdout.
#
generate_brew_formula_build()
{
local project="$1"
local name="$2"
local version="$3"
cat <<EOF
def install
system "./bin/installer", "#{prefix}"
end
EOF
}
| true |
baa4cb8671336de29813fef41393af861e62d6f5 | Shell | Xiao233-q/N1dabao | /56/opt/openwrt/files/update-amlogic-openwrt.sh | UTF-8 | 22,690 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# check cmd param
if [ "$1" == "" ];then
echo "用法: $0 xxx.img"
exit 1
fi
# 检查镜像文件是否存在
IMG_NAME=$1
if [ ! -f "$IMG_NAME" ];then
echo "$IMG_NAME 不存在!"
exit 1
fi
# 查找当前的 /boot 分区信息
DEPENDS="lsblk uuidgen grep awk mkfs.fat mkfs.btrfs perl md5sum"
for dep in ${DEPENDS};do
which $dep
if... | true |
aef57d1484fde3d85bbd8c5dfcff7a89fa06465f | Shell | julialudac/forms_input_recording | /runTests.sh | UTF-8 | 729 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# Run unit tests
echo "Running unit tests..."
pytest
if [ $? -ne 0 ]; then
echo "Unit tests failed!"
exit 1
fi
# Run component tests
echo "Running component test..."
python_cmd=python
python_exists=$(command -v python)
if [ "$python_exists" == "" ]; then
python_cmd=python3
fi
# TODO: Now ther... | true |
14b99165d10601beb371396babad237009a07659 | Shell | mkostas/vagrant_nginx_php7.1 | /bootstrap.sh | UTF-8 | 3,265 | 2.90625 | 3 | [] | no_license | #!/usr/bin/env bash
echo -e "\n\n--- Updating packages list ---\n\n"
apt-get update
if ! [ -L /var/www ]; then
rm -rf /var/www
ln -fs /vagrant /var/www
fi
# Install nginx
echo -e "\n\n--- Install nginx ---\n\n"
apt-get install -y nginx
# Install mysql
echo -e "\n\n--- Install mysql ---\n\n"
... | true |
30b3dbcca47182cfa7414ab8e45399408d1658fb | Shell | killangell/micros | /user/partition/library/partition/user_partition_db_opt.sh | UTF-8 | 1,144 | 3.515625 | 4 | [] | no_license | #!/bin/sh
source db_all_opt.sh
#@in 1: Partition name
#@in 2: Partition size
#@in 3: Partition location
#@in 4: Partition filesystem
function user_partition_set_db_info()
{
local name=$1
local size="$2"
local loca="$3"
local fs_type="$4"
local mount_point="null"
db_get_partition_mount_point $name mount_po... | true |
16f24a6256479cdc812581af5f22571c62d41cde | Shell | ctmcisco/pnp-starterkit-setup | /_setup-hr.sh | UTF-8 | 966 | 2.96875 | 3 | [] | no_license | siteUrl=$hrUrl
alias=$(echo $prefix)hr
msg "Provisioning HR site at $siteUrl..."
site=$(o365 spo site get --url $siteUrl --output json || true)
if $(isError "$site"); then
o365 spo site add --type TeamSite --url $siteUrl --title "Human Resources" --alias $alias >/dev/null
success 'DONE'
else
warning 'EXISTS'
fi
... | true |
c122ad4443cdde728b7fd8e763440c48432eaee2 | Shell | awfeequdng/Final_Project_6_175 | /scemi/sim/run_asm.sh | UTF-8 | 923 | 3.375 | 3 | [] | no_license | #!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage ./run_asm.sh <proc name>"
exit
fi
simdut=${1}_dut
asm_tests=(
simple
add addi
and andi
auipc
beq bge bgeu blt bltu bne
j jal jalr
lw
lui
or ori
sw
sll slli
slt slti
sra srai
srl srli
sub
xor xori
bpred_bht bpred_j bpred_j_noloop bpred_ras
cache cache_... | true |
ab7210160db2a56a697427cd5b84d6e66e7e268a | Shell | diegoximenes/dotfiles | /config/polybar/scripts/network.sh | UTF-8 | 392 | 3.46875 | 3 | [] | no_license | #!/bin/bash
default_route="$(ip route | awk '/^default/' | awk '{print $5}')"
if [[ "$default_route" =~ ^en(.+)$ ]]; then
# ethernet
echo "🖥 $default_route"
else
# wlan or wwan
wifi=$(nmcli -g IN-USE,SSID dev wifi | grep "^\*")
if [[ "$wifi" =~ ^\*:(.+)$ ]]; then
ssid="${BASH_REMATCH[1]}"
... | true |
7bae4ce697fcb64a06f18cb05e09c4c33cd75bc9 | Shell | petronny/aur3-mirror | /telepathy-kde-nepomuk-service-git/PKGBUILD | UTF-8 | 1,142 | 2.765625 | 3 | [] | no_license | # Maintainer: George Brooke <george+arch.aur@george-brooke.co.uk>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
pkgname=telepathy-kde-nepomuk-service-git
_gitname="ktp-nepomuk-service"
pkgver=e1be620
pkgrel=1
epoch=1
pkgdesc="Nepomuk integration service for Telepathy"
arch=('i686' 'x86_64')
url="https://projec... | true |
2a5893d27cea62a777011d9d89da9039069fc707 | Shell | stuartcampbell/lightsource2-recipes | /recipes-tag/epics-base/build.sh | UTF-8 | 1,081 | 3.171875 | 3 | [] | permissive | #!/bin/bash
install -d $PREFIX/bin
install -d $PREFIX/lib
install -d $PREFIX/epics
make -j$(getconf _NPROCESSORS_ONLN)
EPICS_BASE=$PREFIX/epics
EPICS_HOST_ARCH=$(startup/EpicsHostArch)
# Copy libraries into $PREFIX/lib
cp -av $PREFIX/epics/lib/$EPICS_HOST_ARCH/lib*so* $PREFIX/lib 2>/dev/null || : # linux
cp -av $PRE... | true |
af73a6e2363e31f048234920e21d7a4f1f6a86f7 | Shell | polinar68/buildaix-polly | /opt/buildaix/templates/fileset.ext.unpre_i | UTF-8 | 910 | 3.0625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-rsa-md4",
"HPND-sell-variant",
"LicenseRef-scancode-zeusbench",
"NTP",
"metamail",
"Beerware",
"LicenseRef-scancode-rsa-1990",
"RSA-MD",
"Spencer-94",
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | #!/usr/bin/ksh
# $Id: fileset.ext.unpre_i 264 2017-10-05 09:12:05Z michael $
# main purpose of this script is to undo anything it might have done
# in a pre_i/pre_u script. Ideally, it has not done anything.
# as in the other un* files, if unconfig_d exists this will not be used
# during installp -u operations
# so th... | true |
e4a9322e6b42152a9de23bdb09001a4d6155b5b0 | Shell | mbolivar/bootrom-tools | /test/test-tftf | UTF-8 | 2,617 | 2.671875 | 3 | [] | no_license | #!/bin/bash
#------------------------------------------------------------------------------
# Copyright (c) 2014-2015 Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributio... | true |
acd7ed42e3ef37cc788628e2e60807e8e34ca150 | Shell | delkyd/alfheim_linux-PKGBUILDS | /binkd/PKGBUILD | UTF-8 | 2,045 | 2.671875 | 3 | [] | no_license | # Contributor: Lex Rivera aka x-demon <aur@x-demon.org>
# Contributor: Mantas Mikulėnas <grawity@gmail.com>
pkgname=binkd
pkgver=1.0.4
_pkgcommit=c335d3e86e3caea04072dde0968d08cb31d6a1e0
pkgrel=1
pkgdesc="Binkley protocol daemon for transferring files between Fidonet systems"
arch=('i686' 'x86_64')
url... | true |
ee2a163fb17fc80614bb7c3b93581c9743998bec | Shell | metrue/fx | /scripts/test_cli.sh | UTF-8 | 708 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
fx="./build/fx"
service='fx-service'
run() {
local lang=$1
local port=$2
# localhost
$fx up --name ${service}_${lang} --port ${port} --healthcheck test/functions/func.${lang}
$fx list
$fx down ${service}_${lang}
}
build_image() {
local lang=$1
local name=$2
$fx image bui... | true |
0279a841880b818bf4799459c3613346e71c9355 | Shell | huzhe007/shell | /docker/mysql_5_7.sh | UTF-8 | 672 | 2.59375 | 3 | [] | no_license | #!/bin/bash
# mysql -h 127.0.0.1 -P 3306 -u root -p
docker run --restart=always -itd --name mysql5.7 \
-p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 \
-e MYSQL_USER=frank -e MYSQL_PASSWORD=123456 \
-v ~/volumes/mysql:/var/lib/mysql mysql:5.7.33 \
--character-set-server=utf8mb4 --collation-server=utf8mb4... | true |
8887fe786666341df695420511d49f463b0b9188 | Shell | cddknight/dialsys | /gauge/buildpkg.sh.in | UTF-8 | 1,241 | 3.359375 | 3 | [] | no_license | #!/bin/bash
source /etc/os-release
if [ "$ID" == "debian" ] || [ "$ID" == "ubuntu" ] || [ "$ID" == "raspbian" ]
then
ORIGPWD=$PWD
rm -f @PACKAGE@-@VERSION@.tar.bz2
make dist-bzip2
cd ..
rm -rf @PACKAGE@*@VERSION@*
tar xjf $ORIGPWD/@PACKAGE@-@VERSION@.tar.bz2
cd @PACKAGE@-@VERSION@
cp -r $ORIGPWD/debian .
... | true |
e23936f0991482e6e345c2c7d013577f511be261 | Shell | bwiessner/install_latest_slack_osx_app | /install_latest_slack_osx_app.sh | UTF-8 | 2,182 | 3.4375 | 3 | [] | no_license | #!/bin/bash -v
#if you want slack to quit - in use with a jamf notifcation policy unhash next line
#pkill Slack*
#gets current logged in user
consoleuser=$(ls -l /dev/console | cut -d " " -f4)
APP_NAME="Slack.app"
APP_PATH="/Applications/$APP_NAME"
APP_VERSION_KEY="CFBundleShortVersionString"
DOWNLOAD_URL="https:/... | true |
21072b93a927341a873805982d570ccfd8650fa9 | Shell | slaufer/dotfiles | /home/.bash/prompt/80s-neon.sh | UTF-8 | 1,473 | 3.71875 | 4 | [] | no_license | # color palette
C0='\[\e[38;5;206m\]'
C1='\[\e[38;5;51m\]'
C2='\[\e[38;5;141m\]'
COK=$C0
#COK='\[\e[38;5;10m\]'
CFAIL='\[\e[38;5;196m\]'
# separator
SEP=' '$C0'\\'$C2'\\'$C1'\\ '
function prompt_path_color {
local OUT=$1
local OUT=${OUT//~/$C0~$C1}
local OUT=${OUT//\//$C2\/$C1}
echo $C1$OUT
}
function prompt_pat... | true |
aac34373b3a8f9bfb690e8d2c4a187ac1fc82aa8 | Shell | tangshengwei/the-first-shell-program | /monitor.sh | UTF-8 | 697 | 3.421875 | 3 | [] | no_license | #########################################################################
# File Name: monitor.sh
# Author: kangrui
# mail: 33750335@qq.com
# Created Time: Sat 28 Nov 2015 01:50:52 PM EST
#########################################################################
#!/bin/bash
resettem=$(tput sgr0)
declare -A ssharray
i=0
... | true |
86b78c6e5af7230933596ac7fc13936dc775db91 | Shell | butterfy76/OOGIS_CLOUD | /com2-ipdd.sh | UTF-8 | 1,286 | 3.0625 | 3 | [] | no_license | #!/bin/bash -ex
source config.cfg
source functions.sh
echocolor "Enable the OpenStack Mitaka repository"
sleep 5
apt-get install software-properties-common -y
add-apt-repository cloud-archive:mitaka -y
sleep 5
echocolor "Upgrade the packages for server"
apt-get -y update && apt-get -y upgrade && apt-get ... | true |
407ffb1817f9f2394a9e93170fb276f362bb8cf9 | Shell | mcthoren/gps_tinkering | /plot_month_avg | UTF-8 | 1,247 | 3.15625 | 3 | [
"Unlicense"
] | permissive | #!/bin/sh
HOME="/import/home/ghz"
GPSP="$HOME/projects/gps"
GPS_MA="$GPSP/data/gps_alt_monthly_averages"
GPS_STS="$GPSP/data/gps_alt_stats"
PAT0="^2([0-9]{13})\tavg alt: [0-9]{2,3}.[0-9] m\tavg evp: [0-9]{1,3}.[0-9] m$"
GPS_ALT_TEMP_0="$(mktemp /tmp/gps_alt_0.XXXXXXXXXXXXX)"
GPS_ALT_TEMP_1="$(mktemp /tmp/gps_alt_1.XX... | true |
a28cb34af4ead98aee0b35cdcdbff4399bed9eeb | Shell | trdtnguyen/benchmarks | /linkbench-mongo/benchmark_scripts/migration.sh | UTF-8 | 779 | 2.65625 | 3 | [] | no_license | # !/bin/sh
#call this after finish insert data
#seperate data dir and journal dir and the others in seperate device
SOURCE_DIR=/ssd1
DEST_DIR=/hdd1
DATA_DIR=/ssd1
INDEX_DIR=/ssd2
JOURNAL_DIR=/ssd3
echo "move data from ${SOURCE_DIR} to ${DATA_DIR}, journal from ${SOURCE_DIR} to ${JOURNAL_DIR}, run dir is ${DEST_DIR}" ... | true |
0f241d2313c26323f53708f9f3a8b9adf2dc99ed | Shell | XPhilipp/Scripts | /ipcam_mqtt_listner | UTF-8 | 1,048 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Simple Comand Plugin for MQTT OpenIPC mod
# Author Philipp@inbox.ru 2021
# Licence MIT
# based on https://github.com/pkoevesdi/MQTT-Logger
IPC=/mnt/mtd/ipcam.conf
mpipe=/tmp/mqtt_pipe
pidfile=/tmp/mqtt_sub_pidfile
#check is mosquitto_sub runs, some clean ups
kill -9 $(cat $pidfile) 2>/dev/null
rm -f $mp... | true |
c9644998036c91d312a7fdfa6e9e774cd500cb69 | Shell | daviwesley/easy-chamadas | /project.sh | UTF-8 | 231 | 3.28125 | 3 | [] | no_license | #!/bin/sh
if [ "$1" = "lines" ] ; then
echo "Python lines:"
find api -name '*.py' | xargs wc -l
echo
echo "Javascript lines:"
find app -name '*.js' | xargs wc -l
echo
else
echo "Command not found: $1"
fi
| true |
1dfcb7c510e5ec50de424d32407dc5e63f277cd2 | Shell | tayjaybabee/shell_collection | /installers/Anaconda/install_anaconda.sh | UTF-8 | 834 | 3.59375 | 4 | [] | no_license | #!/bin/sh
####~~~~####~~~~####~~~~####~~~~####~~~~####
####~~~~#### Anaconda Installer ####~~~~####
####~~~~# Created: 12/8/2020 7:34AM #~~~~####
####~~~~# Author: Taylor Blackstone #~~~~####
# Install prerequisites.
sudo apt-get install -y libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxc... | true |
323ec0ca2e3a80283a3f2fd91d2febe1d9859b38 | Shell | tuenti/sensu-trapd | /convertmibs.sh | UTF-8 | 330 | 3.3125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
CHEF_REPO=~/code/cloudant/chef
INPUT_DIR=$CHEF_REPO/cookbooks/snmp/files/default
OUTPUT_DIR=conf/mibs/
for FILE in $(ls $INPUT_DIR/CLOUDANT-*-MIB.txt); do
INPUT=$FILE
OUTPUT=$(echo $OUTPUT_DIR/$(basename $FILE) | sed -e 's/.txt$/.py/')
echo "Converting: $INPUT"
build-pysnmp-mib -o $OUTPUT $I... | true |
8de08d2de05256444614596e3ac1edb5f75ac294 | Shell | xjinGitty/openQA | /tools/setup.sh | UTF-8 | 785 | 3.46875 | 3 | [] | no_license | #!/bin/bash
dst="$1"
if [ -z "$dst" ]; then
echo "please specify where you want to run openqa from" >&2
exit 1
fi
run()
{
set -- "$@"
echo " running $@"
"$@"
}
echo "1. setting up directory structure ..."
for i in perl testresults pool/1 factory/iso backlog; do
run mkdir -p "$dst/$i"
done
run ln -s $PWD/too... | true |
88c33c69b32deb5257aaf9bd00af57c6a17873dd | Shell | virtru/gateway-install-script | /deploy-gateway-v2.2.sh | UTF-8 | 20,094 | 3.171875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
EntryPoint()
{
# Default Variables
blank=""
#gwNameDefault="oe"
gwVersionDefault="2.2.18"
gwPortDefault="9001"
gwModeDefault="encrypt-everything"
gwTopologyDefault="outbound"
gwCksDefault="2"
gwInboundRelayDefault=""
gwFqdnDefault="gw.example.com"
gwDomainDefault="example.com"
gwDkimS... | true |
ce12d96230257fac5e916d981417cc23d24caae9 | Shell | zoopera/flavoevo | /Mutation_rate/s16.afterBQSR.Sum.part1.CntAnalyzedSites.new.sh | UTF-8 | 337 | 2.90625 | 3 | [] | no_license | #!/bin/bash
dir="02_GATK"
cnts=($(find $dir -maxdepth 1 -type f -name "*.clean.sort.dedup.rnd3.cnt"))
for cnt in "${cnts[@]}"
do
sub=$(echo $cnt | sed 's/.*\///g' | sed 's/cnt$/slm/g')
echo -e "#!/bin/bash\n" > $sub
echo -e "time ./s16.afterBQSR.Sum.part1.CntAnalyzedSites.new.pl $cnt" >> $sub
chmod +x $sub
... | true |
6e50e062a3bbbb0e05cdb1aef70ad2fe7dd41d7e | Shell | mdnfiras/plugops | /test.sh | UTF-8 | 1,101 | 3.515625 | 4 | [] | no_license | #!/bin/bash
if [[ ! $(whoami) = "root" ]]
then
echo "Usage: Must be root"
exit 1
fi
if [ "$#" -ne 1 ]
then
echo "Usage: Must supply a domain"
exit 1
fi
DOMAIN=$1
echo "=======> testing the DNS server :"
tries=0
if [[ ! -z "$(nslookup ns.$DOMAIN 192.168.5.3 | grep NXDOMAIN )" ]]
then
echo "======... | true |
cbb3706c4564d1d45f16b13ba917921dcd949191 | Shell | Uday251/CodingClub | /temp/log.sh | UTF-8 | 247 | 3.265625 | 3 | [] | no_license | #! /bin/bash -x
for filename in `ls abc.log.1`
do
fname1=`echo $filename | awk -F. '{print $1}'`;
fname2=`echo $filename | awk -F. '{print $2}'`;
DATE=`date +%d%m%Y`;
new=`echo $fname1-$DATE.${fname2}` ;
echo "filename changed to" $new;
done
| true |
ad5bf68613adda24d6cf094d9eef57c1a2dbc8c1 | Shell | oandregal/ondestan | /.openshift/action_hooks/deploy~ | UTF-8 | 917 | 3.09375 | 3 | [] | no_license | #!/bin/bash
# Pyramid OpenShift post-deploy pre-start configuration
export PYTHON=python-2.7
export PATH=$PATH:~/$PYTHON/virtenv/bin/
export PYTHON_EGG_CACHE=~/$PYTHON/virtenv/lib/python2.7/site-packages
APP=ondestan
source ~/$PYTHON/virtenv/bin/activate
if [ -z $OPENSHIFT_DB_HOST ]
then
echo 1>&2
echo 1>&2... | true |
b7688f01c8471af7f64739cf6c25b89f0bbcc0bd | Shell | mawentao/gateway | /build.sh | UTF-8 | 494 | 3.4375 | 3 | [] | no_license | #!/bin/bash
target="./target"
outdir="./output"
# mvn打包
mvn clean install package -Dmaven.test.skip=true -U -e -Ponline
##########################################
# 打包成可执行的环境
##########################################
if [ -d $outdir ]; then
rm -rf $outdir
fi
mkdir -p $outdir
function cpfiles()
{
for i in $... | true |
00f386599c20ddd1eb6c23f88cdce57cc3c56fe1 | Shell | scality/devstack-plugin-scality | /devstack/plugin.sh | UTF-8 | 8,483 | 3.3125 | 3 | [
"Apache-2.0"
] | permissive | ###################
### Cinder
###################
function configure_cinder_backend_sofs {
local be_name=$1
iniset $CINDER_CONF $be_name volume_backend_name $be_name
iniset $CINDER_CONF $be_name volume_driver "cinder.volume.drivers.scality.ScalityDriver"
iniset $CINDER_CONF $be_name scality_sofs_config... | true |
25ebae5233f3023a334f5d5658cf9145ee105991 | Shell | FreddyWordingham/arctk-cpp | /resources/bash/build.sh | UTF-8 | 2,929 | 3.4375 | 3 | [] | no_license | # == BUILDING ==
# -- Clean --
arctk.clean()
{
rm -r $ARCTK_DIR/build
rm -r $ARCTK_DIR/bin
rm -r $ARCTK_DIR/include/arctk/config
arctk.uninstall
}
# -- Build --
arctk.build()
{
if [ "$#" == "0" ]; then
if [ -z "$ARCTK_BUILD_ARGS" ]; then
echo "Error! ARCTK_BUILD_ARGS are... | true |
e05c064280c1e366d082dc3d604eaec46b40968e | Shell | jfouk/dotfiles | /tmux/theme.sh | UTF-8 | 1,751 | 2.703125 | 3 | [] | no_license | # tmux theme config
#border colors
set -g pane-active-border-fg cyan
set -g pane-border-fg colour235 # dark gray
set -g pane-border-bg default # super dark gray
set -g status-bg colour234
# add powerline functionality
set -g status-left-length 100
set -g status-right-length 200
set -g status-interval ... | true |
b945e560e882ffa2d49268fd1bd0df959a3cc121 | Shell | Hubert07/Studia | /ksiazka_telefon/wyslijmail.sh | UTF-8 | 399 | 3.09375 | 3 | [] | no_license | #!/bin/bash
dalej="t"
while [ $dalej = "t" ]
do
clear
echo -e "Wysylanie wiadomosci \n\nPodaj imie: "
read imie
echo "Podaj nazwisko: "
read nazwisko
if [ "$(cat dane.txt | grep -c "$imie $naziwsko")" > 0 ]
then
nr_tel=$(cat dane.txt | grep "$imie $nazwisko" | awk '{print $3}' )
echo "$nr_tel"
else
echo "Nie znal... | true |
db501b54989b154231a60fcd1f5a15b7982852ea | Shell | mfvalin/dot-profile-setup | /bin/soumet_lajob | UTF-8 | 339 | 3.015625 | 3 | [] | no_license | #!/bin/ksh
#set -x
export UnIqUe=${TMPDIR}/`hostname`$$
mkdir -p $UnIqUe
if [[ ! -d $UnIqUe ]] ; then echo ERROR: soumet_lajob cannot create necessary temporary directory ; exit 1 ; fi
cp ${1:-lajob.tar} $UnIqUe/lajob.tar
ls -al $UnIqUe
( cd $UnIqUe && tar xvof lajob.tar && ./GO )
#sleep 5
if [[ -d $UnIqUe ]] ; then r... | true |
509d6cabf6d34cb63145bc7b3766a783439eae50 | Shell | green-green-avk/AnotherTerm-scripts | /repo-linuxcontainers.sh | UTF-8 | 1,962 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/system/bin/sh
set -e
S_ESC="$(echo -en '\e')"
S_N="$(echo -en '\n')"
K_BACK='-2'
FD_I=8
FD_O=9
eval "exec $FD_I<&0"
eval "exec $FD_O>&1"
show_list() {
local N=1
for E in "$@" ; do
if [ "$N" -lt 10 ] ; then echo -n ' ' >&$FD_O ; fi
echo "$N. $E" >&$FD_O
N=$((N+1))
done
}
read_list_elt() {
local N
echo... | true |
af02ee1f4d249ec882abcbded04f17aa78b845ad | Shell | jclehner/TC72XX_LxG1.0.10mp5_OpenSrc | /userspace/gpl/apps/smartmontools-patch/smartcmd/healthy.sh | UTF-8 | 305 | 2.609375 | 3 | [] | no_license | #! /bin/sh
#
#
/usr/local/sbin/smartctl -H -d sat $1 | grep "SMART overall-health self-assessment test result:"
/usr/local/sbin/smartctl -H -d sat $1 | grep "SMART overall-health self-assessment test result:" | grep "FAILED"
RETVAL=$?
# FAILED
[ $RETVAL -eq 0 ] && exit 1
# PASSED == ! FAILED
exit 0
| true |
4d4cb19aa35f5e8a6add151b1efb97d2463d267e | Shell | TrendingTechnology/flynn | /Examples/ClusterCounter/meta/CombinedBuildPhases.sh | UTF-8 | 1,121 | 3.53125 | 4 | [
"MIT"
] | permissive | # When we regenerate the xcode project using "make xcode", we lose the run scripts buiild phases. As we
# rely on several scripts now, we're combining them into this one script. This has a couple of
# advantages:
# 1. We can run them easily from the Makefile as well as from Xcode
# 2. We only need to manually add o... | true |
32684b6be0b2dcd44b129a5139bbea9da60556b7 | Shell | breakersun/openwrt-package | /lienol/luci-app-passwall/root/usr/share/passwall/monitor.sh | UTF-8 | 2,169 | 3.25 | 3 | [] | no_license | #!/bin/sh
CONFIG=passwall
CONFIG_PATH=/var/etc/$CONFIG
uci_get_by_name() {
local ret=$(uci get $CONFIG.$1.$2 2>/dev/null)
echo ${ret:=$3}
}
uci_get_by_type() {
local ret=$(uci get $CONFIG.@$1[0].$2 2>/dev/null)
echo ${ret:=$3}
}
TCP_REDIR_SERVER1=$(uci_get_by_type global tcp_redir_server1 nil)
TCP_REDIR_PORT=$(... | true |
d5557e4645ffeab8316f22e4370bfce27c33abe4 | Shell | j-reardon/linux.config | /polybar/launch.sh | UTF-8 | 229 | 2.84375 | 3 | [] | no_license | #!/bin/bash
# terminate already running bar instances
killall -q polybar
# wait until the processes have been shut down
while pgrep -u $UID -x polybar > /dev/null; do sleep 1; done
# launch bars
polybar top &
polybar bottom &
| true |
fb551b119ffea3a4e2a5f089eee7864225170b34 | Shell | sarroutbi/buscobici | /getscripts/rometbikes_get.sh | UTF-8 | 1,910 | 2.65625 | 3 | [
"ISC"
] | permissive | #!/bin/bash
#
# Copyright © 2012-2014 Sergio Arroutbi Braojos <sarroutbi@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose with or without fee is hereby granted, provided that
# the above copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE I... | true |
d7a3cd60b2420a20e54f7d976ec8a27d52a566be | Shell | lk16/squared | /resources/images/create_gifs.sh | UTF-8 | 229 | 3.265625 | 3 | [] | no_license | #!/bin/bash
files=`ls *.png`
for lhs in $files
do
for rhs in $files
do
out_file="${lhs%.*}_to_${rhs%.*}.gif"
echo "Generating $out_file"
convert $lhs $rhs -loop 1 -morph 8 $out_file &
done
done | true |
36c1344afa4eef53eb39e95c208edbc50e512c5e | Shell | tvirolai/aineistokartoitus | /scripts/aja_csv.sh | UTF-8 | 211 | 2.65625 | 3 | [] | no_license | #!/bin/bash
for DB in PIKI ANDERS PILOTIT VASKI
#for DB in PIKI PILOTIT VASKI
do
echo "Generating CSV report from $DB..."
python3 batch-to-fieldtable.py -i ../data/${DB}.seq -o ../data/${DB}_fields.csv
done
| true |
92dee96f1f220ae6e6ffd7910a5944e295861c21 | Shell | smallneo/termux-api-package | /scripts/termux-sms-send | UTF-8 | 893 | 4.1875 | 4 | [
"MIT"
] | permissive | #!/data/data/com.termux/files/usr/bin/sh
set -e -u
SCRIPTNAME=termux-sms-send
show_usage () {
echo "Usage: $SCRIPTNAME -n number[,number2,number3,...] [text]"
echo "Send a SMS message to the specified recipient number(s). The text to send is either supplied as arguments or read from stdin if no arguments are g... | true |
dec9f570a5f4c6e2ccfd5f5476e6c6ad803635d6 | Shell | AnthonyVDeCaria/pstb | /startNode.sh | UTF-8 | 1,281 | 3.59375 | 4 | [] | no_license | #!/bin/bash
. scripts/functions.sh
error()
{
echo "ERROR: Not enough arguments provided! "
echo "<memory> <name> <context> <ipAddress> <objectPort> <engine> <nodetype> <sendDiary>"
echo "(OPTIONAL) -d <username> (this is distributed)"
exit 10 #N_ARGS
}
if [ $# -lt 8 ];
then
error
fi
memory=$1
shift
name... | true |
65b5a95a095ede76d4fc24fdc3b3bb485dadc0ee | Shell | maximesteisel/webtriathlon | /build.sh | UTF-8 | 376 | 3.1875 | 3 | [] | no_license | #!/bin/bash
HEADER="#!/usr/bin/python\n"
mkdir -p build
function build {
echo "building $1.$2"
cd src/$1
#python -m compileall .
git rev-list --count HEAD > REVNO
zip -r ../../build/$1.zip * -x@../../.gitignore
cd ../../build
echo -e $HEADER| cat - $1.zip > $1.$2
rm $1.zip
chmod... | true |
bdb796faa91b201032dd05723e2bc153131f9fc5 | Shell | futpib/postgres-dbsubsetter | /docker-entrypoint-initdb.d/50-dbsubsetter.sh | UTF-8 | 4,152 | 3.25 | 3 | [] | no_license | #!/usr/bin/env sh
set -xe
export ORIGIN_PORT="${ORIGIN_PORT:-5432}"
: "${ORIGIN_HOST:?ORIGIN_HOST is required}"
: "${ORIGIN_USER:?ORIGIN_USER is required}"
: "${ORIGIN_PASSWORD:?ORIGIN_PASSWORD is required}"
: "${ORIGIN_DB:?ORIGIN_DB is required}"
ORIGIN_PASSWORD_ESCAPED="$(echo "${ORIGIN_PASSWORD}" | sed 's/&/%26/... | true |
68f8ec22e85b01c9d9545d79aeaddb20dbb8449d | Shell | erkanboz032/fvmsunuculinux | /menu/herseyisil.sh | UTF-8 | 637 | 2.96875 | 3 | [] | no_license |
cd /root
clear
echo "---------------------------------------"
echo "Eminmisiniz?"
echo "Lütfen yapmak istediğiniz işlemi seçiniz"
echo -e "\e[38;5;76m
1 - Evet \n
2 - Hayır \n
\033[0m"
echo "---------------------------------------"
read islemler
case $islemler in
1)
clear
rm -rf /home/sunucu
cd /root
wget http:... | true |
78e960aee8d8d76159e54078b190c1df0448de88 | Shell | flathub/org.gnome.Builder | /local-build.sh | UTF-8 | 415 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env bash
rm -f org.gnome.Builder.flatpak
rm -rf _build ; mkdir _build
rm -rf _repo ; mkdir _repo
STATE_DIR=~/.cache/gnome-builder/flatpak-builder
BRANCH=stable
flatpak-builder \
--ccache --force-clean \
--repo=_repo --state-dir=$STATE_DIR \
--default-branch=$BRANCH \
_build org.gnome.Build... | true |
d3f6354707a8c04a299ca02149f10cfdeb68e115 | Shell | swapperz/dot | /.cshrc | UTF-8 | 8,916 | 2.875 | 3 | [] | no_license | # .cshrc - csh resource script, read at beginning of execution by each shell
# see also csh(1), environ(7).
#
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin $HOME/bin)
alias h history 1000
alias j jobs -l
alias less less -x4
alias vim vim ... | true |
12de30974b6999c308540a7318ca7e97fae47c80 | Shell | staid03/Ubuntu_Simple_Essential_Scripts | /restart_server.sh | UTF-8 | 114 | 2.8125 | 3 | [
"MIT"
] | permissive | #!bash
sudo reboot
if [ $? -eq 0 ]
then
echo "Server rebooting"
else
echo "Server not rebooting - " $?
fi
| true |
8206d497567325424ee3cb0a6c1a23bc841f46f0 | Shell | Arjunkhera/Notes | /tools/commandline/solutions_UnixWorkbench/functionthird.sh | UTF-8 | 214 | 3.4375 | 3 | [] | no_license | #! /usr/bin/env bash
function nevens {
source functionsecond.sh
sum=0
for i in $@
do
answer=$(isiteven $i)
if [[ $answer -eq 1 ]]
then let sum=sum+1
fi
done
echo "$sum"
}
| true |
33e9e6321c645dc6d2e5c679c494ca48431e86d6 | Shell | colovu/docker-debian | /prebuilds/usr/sbin/download_pkg | UTF-8 | 4,449 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Ver: 1.0 by Endial Fang (endial@126.com)
#
# shell 执行参数,分别为 -e(命令执行错误则退出脚本) -u(变量未定义则报错) -x(打印实际待执行的命令行)
set -eux
. /usr/local/scripts/liblog.sh
print_usage() {
LOG "Usage: download_pkg <COMMAND> <PACKAGE-NAME> \"<URLS>\" [OPTIONS]"
LOG ""
LOG "Download and install Third-Part packages"
LOG ""
... | true |
49668fef61313a77c5825d16f57dd0783ae3ee10 | Shell | zsoldosp/lazylog | /build.sh | UTF-8 | 195 | 2.53125 | 3 | [] | no_license | #!/bin/sh
if [[ "$JAVA_HOME" -eq "" ]]; then
export JAVA_HOME="/c/Program Files/Java/jdk1.6.0_17/"
export ANT_HOME="/e/lib/apache-ant-1.8.0/"
export PATH=$PATH:$ANT_HOME/bin:$JAVA_HOME
fi
ant
| true |
7a47e22ef5183e3617f0350d88d96c68bdc1ad79 | Shell | chapayGhub/di | /di-pathfinder.sh | UTF-8 | 4,470 | 3.578125 | 4 | [] | no_license | #!/bin/zsh -f
# Purpose: Download and install the latest version of PathFinder 7 or 8 from <https://cocoatech.com/>
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2018-08-21
NAME="$0:t:r"
INSTALL_TO='/Applications/Path Finder.app'
HOMEPAGE="https://cocoatech.com/"
DOWNLOAD_PAGE="https://get.coco... | true |
15eec51bbfee6ecc97752834799ab9b6e5519b58 | Shell | Ewan-Roberts/dot_files | /useful_commands.sh | UTF-8 | 597 | 2.890625 | 3 | [] | no_license |
//day of the week
while true; do tput clear; date +%A | figlet ; sleep 9999; done
while true; do tput clear; date +"%H : %M : %S" | figlet ; sleep 1; done
// just date
while true; do tput clear; date +%F | figlet ; sleep 9999; done
// just date but like the day Wed or whatever
while true; do tput clear; date +%a%t... | true |
cd876a1a0d4ff5797f233caa39d2d6995cf6154b | Shell | YuanG1944/COMP9044-Software-Construction | /review/COMP9044_20T2-master/00_shrug/test/test01.sh | UTF-8 | 503 | 2.53125 | 3 | [] | no_license | #!/bin/dash
#
# COMP9044 Assignment 01 - test01
#
# test add non exist file and commit
#
# Authors:
# Rui.Mu (z5144248@unsw.edu.au)
#
# Written: 09/07/2019
rm -rf .legit
rm a c d
./legit-init
echo hello > a
# cant not add commit
./legit-add a b
./legit-commit -m first
# commit ok
./legit-add a
./legit-commit -m sec... | true |
58655f7bddd4f7accddd81959b5cae83ea646312 | Shell | orenlivne/ober | /primal/src/code/impute/batch/cgi/tabix-genotypes.sh | UTF-8 | 529 | 3.859375 | 4 | [] | no_license | #!/bin/bash
#-----------------------------------------------------------------
# Compress and index genotype files using tabix.
# Input arguments:
# $1: file name pattern. Format: input_dir/file.chr#chrom#.tsv
# the strong #chrom# is successively replaced by 1..22.
#-------------------------------------------------... | true |
2db4ed3d1ba9eb9645994c024df3fdf7f53bd4e4 | Shell | eloythub/eloyt-infra | /gcloud-push | UTF-8 | 2,600 | 3.515625 | 4 | [] | no_license | #!/bin/sh
echo 'this file has been deprecated'
exit 1
# Exmaple
# ./gcloud-push eloyt.com eloyt-149708 staging-v1
#
source ./secrets
function log {
STATUS=$1
MSG=$2
if [ ! -t 0 ]; then
INPUT=$(cat)
else
INPUT=""
fi
case "$STATUS" in
warning) COLOR_CODE='93'; ;;
... | true |
acf3f963917214590b3373c1bdffd698d8df9ac1 | Shell | lmotta/lapig_msc_giovana | /script/MDE/mapbiomas/create_images_agr.sh | UTF-8 | 3,381 | 3.5625 | 4 | [] | no_license | #!/bin/bash
#
# ***************************************************************************
# Name : Create DEM images with agriculture class
# Description : Create DEM images with agriculture class from MapBiomas.
#
# Arguments:
# $1: Directory with shapefiles
# $2: ALOS image
# $3: NASA ima... | true |
4f47f84c2f2fbd76b919da3dbc4f541647b6cdf6 | Shell | opdavies/oliverdavies.uk | /tools/scripts/create-daily.sh | UTF-8 | 988 | 4.03125 | 4 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
if [ "${1}" == "next" ]; then
next_date=$(ls -1 src/content/daily-email | tail -n 1 | tr -d '.md' | xargs -I {} date +%Y-%m-%d -d '{} +1 day')
else
next_date="${1}"
fi
filepath="src/content/daily-email/${next_date}.md"
shift 1
# Generate the title and slug.
title="${*}"
sl... | true |
cf8bb7f593f36caea292f40b0c030d7f396278c0 | Shell | FlyToTomorrow/SettingFiles | /Linux/.bashrc | UTF-8 | 540 | 3.03125 | 3 | [] | no_license | # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
#source ~/.bash_profile
# export LD_LIBRARY_PATH=/home/zhifei/App/lib:$LD_LIBRARY_PATH
preferred_shell=
if [ -x /home/zhifei/App/zsh/bin/zsh ]; then
preferred_shell=/home/zhifei/App/zsh/bin/zs... | true |
ab77618eaaddeee822eba164f5e62755ad04f881 | Shell | joshskidmore/netstatusd | /attempt-successful.d/write-latency-file.sh | UTF-8 | 355 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
SOURCE=$1
LATENCY=$2
[[ -f $XDG_CONFIG_HOME/netstatusd/config ]] && \
source $XDG_CONFIG_HOME/netstatusd/config
FORMATTED=""
case "$SOURCE" in
"secondary")
FORMATTED="s:$LATENCY"
;;
"walled_garden")
FORMATTED="w:$LATENCY"
;;
*)
FORMATTED="$LATENCY"
;;
esac
ech... | true |
e1e6ba9ad51e2018edd78093f6696a46779685ba | Shell | fransixles/admin-scripts | /image-cdrom.sh | UTF-8 | 1,851 | 4.1875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# creates an image of a CD/DVD disk
# rwb[at]0x19e.net
# specify the CD/DVD drive
DRIVE=/dev/cdrom
OUTPUT=""
if [ -n "${1}" ]; then
if [ "${1}" == "-h" ] || [ "${1}" == "--help" ]; then
echo "Usage: $0 [output] [drive]"
exit 1
fi
OUTPUT="${1}"
fi
if [ -n "${2}" ]; then
DRIVE="${2}"
fi
if ... | true |
bde4b5444b61437dbfdbeffb7dbedfbd992cb748 | Shell | rtgibbons/dotfiles_2019 | /conf/zshrc | UTF-8 | 1,883 | 2.578125 | 3 | [] | no_license | #
# User configuration sourced by interactive shells
#
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
fi
# Define zim location
export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
# Start zim
[[ -s ${ZIM_HOME}/init.zsh ]] && source ${ZIM_HOME}/init.zsh
# Customize to your needs...
PATH... | true |
dcdd14d0a0619c1d8906ad1d0140906b94adeeab | Shell | puckv/dotfiles | /.bash_profile | UTF-8 | 803 | 2.640625 | 3 | [] | no_license | if [[ -f "$HOME/.bashrc" ]]; then
source "$HOME/.bashrc"
fi
if [[ -f "$HOME/.bash_prompt" ]]; then
source "$HOME/.bash_prompt"
fi
alias ls="command ls -laGF"
alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1]);"'
alias df="df -H"
alias du="du -h"
function assume-role() { ev... | true |
cdbdc20fc2a45e4fd7e44f3cfaf61a78fd929490 | Shell | huqiucheng5/Android4.0.3 | /Android4.0/hardware/ril/ril-usiuna/dhcpcd-start | UTF-8 | 616 | 3.0625 | 3 | [] | no_license | #!/system/bin/sh
DHCPCD_PID=""
DHCPCD_EXIT=""
/system/bin/log -t dhcpcd "Starting dhcpcd"
ECM_INTERFACE=`/system/bin/getprop "ril.ecm.interface"`
/system/bin/log -t dhcpcd "ECM Network Interface is: $ECM_INTERFACE"
/system/bin/netcfg $ECM_INTERFACE up
/system/bin/dhcpcd $ECM_INTERFACE
DHCPCD_EXIT=$?
DHCPCD_PID=... | true |
6da2517c03bd2f3b0c7884c685d4ae0d81c01fc3 | Shell | mrtnmch/memory-analyzer | /test/test.sh | UTF-8 | 306 | 2.65625 | 3 | [] | no_license | #! /bin/bash
declare -a sizes=(10 20 30 40 50 60 70 80 90 100 150 200)
for i in ${sizes[@]}
do
for run in {1..3}
do
echo Running test set $i, \#$run
java -jar ../app/target/app-1.0-SNAPSHOT.jar -p ../sandbox/data/test-heapdump-$i.hprof -n cz.mxmx.memoryanalyzer.example -f > $i-$run.txt
done
done
| true |
13e5231627a0109f196ae816c5f45efd0cd45905 | Shell | IBBD/docker-images | /php-production/ibbd-docker | UTF-8 | 4,632 | 4.1875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# IBBD Docker专属命令,主要是一些日常经常使用的命令组合
# 使用在服务器端
#
# 第一次执行该文件的时候,会将该文件复制到/usr/local/bin/目录,并设置相应的目录
#
# @author alex
# @date 2015-10-13
#
##### 设置php docker-compose 配置文件目录
# 第一次执行复制到/usr/local/bin之后,会修改该变量
docker_compose_php_path=
# 帮助
# @param int 退出代码,默认为0(成功),非0为失败
usage() {
echo "$0 是一个IBBD ... | true |
d992e21c5a2e73b8d4a56ced2a35464e40681a17 | Shell | drewejohnson/qop | /qop.sh | UTF-8 | 1,352 | 3.921875 | 4 | [
"MIT"
] | permissive | # Some bash functions for working with PBS jobs
#
# Copyright (c) 2018 Andrew Johnson, GTRC
# Goverened by MIT License
# More info at https://github.com/drewejohnson/qop
#
# $ qop-release [N]
# Release N jobs from a UserHold. If not given, release all
# $ qop-hold [N]
# Apply a UserHold to N jobs. If not given... | true |
577087ef9b4d1c279e35b49d10561ea497dd6854 | Shell | metala/lego-dns-digitalocean | /common.sh | UTF-8 | 842 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
[ -n "$_ALLOW_INCLUDES" ] || exit 1
ensure_var() {
if [ -z "$2" ]; then
echo "> ERR: Missing $1 variable." >&2
exit 2
fi
}
ensure_env_var() {
VAL=$(eval echo \"'$'$1\")
ensure_var $1 $VAL
}
get_run_cmd() {
if [ -f "$CERT_PATH_PREFIX.json" ]; then
echo renew
else
echo setup
fi
}
next... | true |
937beea528039494a90f2a8e28f506a3cb75b9f2 | Shell | mmclsntr/serverless-multi-region-api-sample | /tools/get_api_non_target_env.sh | UTF-8 | 1,020 | 3.796875 | 4 | [] | no_license | #!/bin/bash -xe
CMDNAME=`basename $0`
WORKDIR=`cd $(dirname $0); pwd`
ROOTDIR=$WORKDIR/..
SETTING_FILE=$ROOTDIR/settings.conf
GET_API_ID_SCRIPT=$WORKDIR/get_api_id.sh
GET_PARAM_SCRIPT=$WORKDIR/get_parameter.sh
if [ $# -ne 2 ]; then
echo "Usage: $CMDNAME <stage> <profile>" 1>&2
exit 1
fi
export STAGE=$1
expo... | true |
970288a949ce909e7c11c2e81fa4b13aebba1411 | Shell | jpwhitemn/edgex-taf | /TAF/utils/scripts/docker/api-gateway-token.sh | UTF-8 | 1,380 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
option=${1}
PROXY_IMAGE=$(docker inspect --format='{{.Config.Image}}' edgex-proxy-setup)
PROXY_NETWORK_ID=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.NetworkID}}{{end}}' edgex-proxy-setup)
if [ ! -f "${WORK_DIR}/ec256.pub" ];
then
openssl ecparam -name prime256v1 -genkey -noout -out $... | true |
5a255aed0f14c0e284cbbf937b55016db281ac05 | Shell | nasoym/aws_docker_setups | /bin/pushgateway_delete | UTF-8 | 166 | 2.546875 | 3 | [] | no_license | #!/usr/bin/env bash
set -eufo pipefail
: ${job_name:="${1:-"metric_name"}"}
curl \
-i \
-X DELETE \
"http://localhost:9091/metrics/job/${job_name}"
| true |
7f9ad03919992e247527e436047a0adbc1bf4068 | Shell | Raf-Batista/env_setup | /scripts/tools/gimp.sh | UTF-8 | 374 | 3.453125 | 3 | [] | no_license | #!/bin/bash
FILE=$DIR/installed.txt
if [[ -f "$FILE" ]]; then
while read line; do
if [[ $line == "gimp" ]]; then
gimp=true
fi
done < $FILE
fi
if [[ -z ${gimp+x} ]]; then
echo "You do not have gimp installed"
sudo snap install gimp
printf "gimp\n" >> $DIR/insta... | true |
11bdec46325916efd3f7775596eb7676f44f8768 | Shell | Bloodawn/lge-kernel-sniper | /tools/make_bootimg_gzip | UTF-8 | 270 | 2.796875 | 3 | [] | no_license | #!/bin/bash
if test -e tools/zImage
then
echo "CLEANING OLD BOOTIMG..."
rm done/boot.img
echo "PACKING BOOTIMG..."
./tools/mkbootimg --kernel tools/zImage --ramdisk tools/ramdisk.gz -o done/boot.img --base 0x80000000
echo "DONE"
else
echo "No zImage found"
fi
| true |
c9df129b63adeb87fe55ba372d3be24593dd8705 | Shell | imma/usr | /exec/usr-user | UTF-8 | 562 | 3.234375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
function main {
local shome="$(cd -P -- "${BASH_SOURCE%/*}/.." && pwd -P)"
source "$shome/script/profile"
if [[ -z "${1:-}" ]]; then
aws cognito-idp list-users --user-pool-id "${USR_POOL_ID}" | jq 'reduce .Users[] as $ele ({}; .[$ele.Username] = $ele)'
return $?
fi
local nm_user... | true |
053bcc8432a750556c93a5d73d91ab5521bc902b | Shell | janssenda/thenewcarag | /testModeUnix.sh | UTF-8 | 1,165 | 3.671875 | 4 | [] | no_license | #!/usr/bin/env bash
while [[ $# -gt 0 ]]
do
key=$1
case $key in
--install-python)
installPython=true
installParams+=("--install-python")
shift ;;
--offline)
offlineMode=true
installParams+=("--offline")
shift ;;
--ust-version)
if [[ $2 == "2.2.2" || $... | true |
ca5ec5e38d23e250233910881f16d1ece3721f03 | Shell | chubukey/3D_Crystal_Plasticity_Model | /Yield_Surface_For_Slip_Planes/cluster/Launch_Cluster_Sec_Star.sh | UTF-8 | 1,749 | 3.03125 | 3 | [] | no_license | #!/bin/bash
hkl=(0 1 0)
uvw=(1 0 0)
suffix=${hkl[0]}${hkl[1]}${hkl[2]}_${uvw[0]}${uvw[1]}${uvw[2]}
#slip_systems_list=("b4" "b2" "b5" "d4" "d1" "d6" "a2" "a6" "a3" "c5" "c3" "c1")
slip_systems_list=("b5")
modes_plane_list=("I_II")
PBS_file=Yield_Surface_Sec_Star.sh
for slip_suffix in ${slip_systems_list[@]}
do
fo... | true |
7dbf39a9d43896bb264b90d7384fa67f8d325ca5 | Shell | takashiki/tool-scripts | /wsl_host.sh | UTF-8 | 296 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Funcion: automatic set windows ip to wsl2 hosts file
# Author: takashiki
# Website: https://qxzzf.com
hostip=$(cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }')
sed -i -r "/^ *[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+ +windows/d" /etc/hosts
echo "${hostip} windows" >> /etc/hosts
| true |
7c2b22138c08a6f5711707c18c239fa382fb47f6 | Shell | bsc-dom/dataclay-packaging | /hpc/mn/deploy.sh | UTF-8 | 7,106 | 3.578125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#===============================================================================
grn=$'\e[1;32m'
blu=$'\e[1;34m'
red=$'\e[1;91m'
yellow=$'\e[1;33m'
end=$'\e[0m'
function printMsg() { echo "${blu}$1${end}"; }
function printInfo() { echo "${yellow}$1${end}"; }
function printWarn() { echo "${yellow}WARNING: $1... | true |
e117e5636df075d1821fb5388c54916631b58f2e | Shell | zhouzhui/iOSBuildShell | /build_ipa.sh | UTF-8 | 1,397 | 3.53125 | 4 | [] | no_license | #!/bin/bash
## build ipa and upload to http://www.pgyer.com/
DATE=$(date +'%Y-%m-%d')
TIME=$(date +'%H%M%S')
SHELL_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
BASE_DIR=$( cd "${SHELL_DIR}" && cd "../../" && pwd)
PRODUCT=YOUR_PRODUCT_NAME
WORKSPACE="${BASE_DIR}"/"${PRODUCT}".xcworkspace
CONF=Enterprise
SCH... | true |
ea1551249fdc4662057f7fc9f841eec4a908c082 | Shell | patricksteenks/lazygit | /lazygit.sh | UTF-8 | 276 | 3.234375 | 3 | [] | no_license | function lazygit () {
if [[ ! $1 ]]
then
echo "Please use a commit message"
return
fi
if [[ ! $2 ]]
then
echo "Do not forget to set target branch"
return
fi
git add -A
git commit -m '$1'
git push origin $2
}
| true |
9e3472d9099e78dd15114bfd955650bbe4823a81 | Shell | justinscript/useful-develop-tools | /script/sql/mysql_monitor.sh | UTF-8 | 1,686 | 4.0625 | 4 | [] | no_license | #! /bin/bash
# by zxc
# 脚本可以用来对mysql的运行做一些简单的自动化,包括显示当前进程,显示指定变量,显示当前状态,以及kill指定进程。目前所做的事还比较简单,都是通过mysqladmin命令来实现。代码及用法如下,使用前将mysql用户相关信息补全
#命令使用方法
#显示当前状态
#./mysql.sh s
#显示当前进程
#./mysql.sh p
#显示指定的变量,不指定keyword的话显示全部变量
#./mysql.sh v keyword
#显示扩展状态信息,不指定keyword则显示全部
#./mysql.sh e keyword
#kill指定进程
#./mysql.sh k id
... | true |
cf30fdb7e77e03fc8e980f801fb32c85917d446f | Shell | PicPay/presidio | /build.sh | UTF-8 | 878 | 3.40625 | 3 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"BSD-3-Clause",
"MPL-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | #!/bin/bash
# This script is a helper to run the local docker build only. This does not deploy the service.
# There is no error checking in this script, it expects a local docker instance to be running.
# The make commands will take a very long time to run the first time as the docker images themselves
# take a long ti... | true |
10f23292e3cf058b6654111bfcaf7a924cd0abb9 | Shell | sshtmc/dotfiles | /gdb.recipe | UTF-8 | 318 | 2.953125 | 3 | [] | no_license | #!/bin/bash
set -e
T=$(mktemp -d)
trap "cd $T; $SHELL; rm -rf $T" EXIT
cd $T
VER=7.8
wget http://mirror.switch.ch/ftp/mirror/gnu/gdb/gdb-$VER.tar.xz
tar xf gdb-$VER.tar.xz
cd gdb-$VER
# CC=gcc-4.9.0 CXX=g++-4.9.0
configure --prefix=/opt/gdb-$VER
ionice -c3 nice -n 20 make -j5
ionice -c3 nice -n 20 make install
| true |
b7019c7405ecb1233000fadb847cc7920b2c0682 | Shell | sequencemedia/sequencemedia | /nvm.sh | UTF-8 | 593 | 3.671875 | 4 | [] | no_license | #!/bin/bash
NVM=~/.nvm
if [ -f "$NVM/nvm.sh" ];
then
unset npm_package_scripts_nvm
unset npm_config_prefix
unset npm_lifecycle_script
source $NVM/nvm.sh
else
NVM=$(brew --prefix nvm)
if [ -f "$NVM/nvm.sh" ];
then
unset npm_package_scripts_nvm
unset npm_config_prefix
unset npm_lifecycle_scri... | true |
0c38784bccb54c7c420ad011cbe86043338cdb02 | Shell | kalikhademi/Graduate-projects | /Distributed OS/DDL/generate.sh | UTF-8 | 127 | 2.65625 | 3 | [] | no_license | #!/bin/bash
for ddl in *.ddl; do
if parser/parser $ddl; then
echo generated files for $ddl;
else
exit 1
fi
done
exit 0
| true |
eebbf17db3714f0937abab5f6a332d7d88b51034 | Shell | bluz71/dotfiles | /git_hooks/lint-javascript | UTF-8 | 329 | 3.171875 | 3 | [
"Unlicense"
] | permissive | #!/bin/sh
#
# Use Git hooks to automatically lint JavaScript projects.
#
# % cd .git/hooks
# % ln -s ~/dotfiles/git_hooks/lint-javascript pre-commit
STAGED_JAVASCRIPT_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep "\.js$")
if [ -n "$STAGED_JAVASCRIPT_FILES" ]; then
standard $STAGED_JAVASCRIPT_... | true |
b06706aaaf90c9533407e63fc1193fe95f473bd5 | Shell | ma2o/VarCap | /50_cleanup.sh | UTF-8 | 843 | 2.875 | 3 | [] | no_license | #!/bin/bash
#$-q all.q@cube[ab]*
CURRENT_DIR=$(pwd)
# open project specific config file
CONFIG_FILE=$CURRENT_DIR/variant.config
. $CONFIG_FILE
# open system/program settings config file in varcap main dir
SYSTEM_CONFIG=${PATH_VARCAP}/program.config
. $SYSTEM_CONFIG
# remove fq files from filter (except alt)
cd $PATH_... | true |
7faa63df97054a140c0f7631a4e9139837fba62b | Shell | m42e/HackPi | /fingerprint.sh | UTF-8 | 771 | 3.5 | 4 | [] | no_license | #!/bin/bash
# Analyze USB Setup Request
# 80 means device to host (bmRequestType)
# 06 means get descriptors (bRequest)
# 03xx means string descriptors (wValue)
# 0409 means english (wIndex)
# wLength is the size of the descriptor and this is what we want
LOGFILE=/home/pi/HackPi/usbreq.log
dmesg | grep "USB DWC2 REQ 80... | true |
b381af6ee5f3e8b652e80362067303b187db38d7 | Shell | cucumberlinux/buildtools | /build-server/bin/download_packages | UTF-8 | 841 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This script downloads the packages directory (/opt/packages/cucumber) from the
# staging server.
# Load the config file
source $(dirname $0)/config
# Determine the architecture we are building on if it is not explicitly
# specified
if [ -z "$CUCARCH" ]; then
case "$(uname -m)" in
# For the x86 series... | true |
85af49ed1d866424357cb717d55e0ee690af2010 | Shell | domo141/podman-images-sailfish-sdk | /run-qtcreator.sh | UTF-8 | 977 | 2.953125 | 3 | [] | no_license | #!/bin/sh
#
# Author: Tomi Ollila -- too ät iki piste fi
#
# Created: Sat 03 Aug 2019 16:53:39 EEST too
# Last modified: Sat 03 Aug 2019 16:58:28 +0300 too
# SPDX-License-Identifier: Apache-2.0
case ${BASH_VERSION-} in *.*) set -o posix; shopt -s xpg_echo; esac
case ${ZSH_VERSION-} in *.*) emulate ksh; esac
set -euf... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.