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
b7647b7cfad9d6f708361be1fa9f17554cb57e89
Shell
roza/LP
/administrations de serveurs : shell/Exemples.sh
UTF-8
368
2.703125
3
[]
no_license
#trouver tout les fichiers .sh du dossier courant find ./ -type f -name "*.sh" #afficher les fichiers dans le repertoire courant qui ont ete modifies dans les 3 derniers jours find ./ -mtime -3 -type f -print #afficher les fichiers dans le repertoire courant qui ont ete modifies dans les 3 derniers jours etqui sont e...
true
12d9de9278f84fb17cc75a60a5c6bdba6bf8139d
Shell
goodmami/norman
/run.sh
UTF-8
3,001
3.890625
4
[ "MIT" ]
permissive
#!/bin/bash # usage: run.sh <gold-file> <sys-file> [<sys-file>...] usage() { cat <<EOF Usage: run.sh [--help] [--norm|--eval] [-o DIR] GOLD SYS [SYS...] Options: -h, --help display this help message --norm normalize the GOLD and SYS files --eval evaluate GOLD and SYS ...
true
eaabc7892658e2cf8d9e1cb1b950cd97fc8aba9b
Shell
mnjstwins/kocho
/completion/zsh/_kocho
UTF-8
2,813
3.265625
3
[ "Apache-2.0" ]
permissive
#compdef kocho # # Completion script for kocho (https://github.com/giantswarm/kocho) # # Source: https://github.com/giantswarm/kocho/tree/master/completion/zsh/_kocho # # Authors # # * Timo Derstappen (https://github.com/teemow) local curcontext="$curcontext" state line ret=1 local -a common_ops common_ops=( '--he...
true
86635fc142d3efb818d8c57fe30cdc4efd059f08
Shell
ainfosec/tanooki
/gather_cpu_data/flush-reload/hornby/gather_data_horby.sh
UTF-8
558
2.59375
3
[ "Apache-2.0" ]
permissive
#! /bin/bash SAMPLES=10 SYSTEM_USER=$USER URL_SET='wiki-top-100-of-2018-HTTPS.txt' TRAIN_DIR='data-'$SYSTEM_USER'-1-10-2018' BIN='links' PROBE='links.probes' mkdir data trap "exit" INT TERM ERR trap "kill 0" EXIT echo $(lscpu) > ./data/$USER'-CPU_INFO.txt' ./system_load.sh & ruby ./ruby/AttackTrainer.rb \ --...
true
3212127828b0c561c40e26366b84f8f3f7f17041
Shell
dingwell/dotfiles
/bin_files/gen_passwd.sh
UTF-8
176
3.28125
3
[]
no_license
#!/bin/bash # # Usage: # # gen_passwd.sh [N] # # N Number of characters (default = 16) # N=$1 [ "$N" == "" ] && N=16 tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${N} | xargs
true
ca250288824f14db01ac0085d1fee8c143c551b6
Shell
wjvanderlip/NUCENG204
/SIS/linux_drivers/install_sis.sh
UTF-8
1,817
3.703125
4
[]
no_license
#! /bin/bash if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" 1>&2 exit 1 fi # Get users in order to run this script as multiple users USER_LIST=`users` stringarray=($USER_LIST) NON_ROOT_USER=${stringarray[0]} # Env for running as a different user RUNAS="sudo -u $NON_ROOT_USER" # Get ubuntu ver...
true
0789f9c7dd0e35a495cd504e57ae5ee38a1b05f0
Shell
rohitverma229/Shell_Script_Linux
/Hello.sh
UTF-8
175
2.984375
3
[]
no_license
#!/bin/bash for((i=0;i<=4;i++)) do echo "Shifted $i time(s):" echo ----------------- echo 1: $1 echo 2: $2 echo 3: $3 echo 4: $4 echo shift done
true
59cd2b40d93c09196538366f346c7c5589317437
Shell
dsnlab/TAG_scripts
/org/bids-conversion/convert_bids_w3_vgw.sh
UTF-8
12,258
3.78125
4
[]
no_license
#!/bin/bash +x # This script will convert dicoms, create the BIDS files structure, # and move and rename converted files to BIDS specification # # It will also check the number of files and print errors to the error log # #VGW ran this code from her own directory; #if you are trying to run this on the DSN lab shared...
true
73d56714cd3bf5cb2f8c724977a3437c029b6b91
Shell
cdown/pkgbuilds
/plenv/PKGBUILD
UTF-8
546
2.828125
3
[]
no_license
# Maintainer: Chris Down <chris@chrisdown.name> pkgname=plenv pkgver=2.3.1 pkgrel=1 pkgdesc='Simple Perl version management' arch=('any') url='https://github.com/tokuhirom/plenv' license=('GPL') optdepends=('perl-build: To build perl') depends=() source=("https://github.com/tokuhirom/plenv/archive/${pkgver}.zip") md5s...
true
07a924a8aeb6717399b1ad08d12095dd18914129
Shell
ErebusBat/puppet-nagios-nrpe
/files/usrbin/ipmi-update-reading-cache.sh
UTF-8
385
3.21875
3
[]
no_license
#!/bin/bash CACHE_DIR=/var/log/ipmi HOST=$HOSTNAME CACHE=$CACHE_DIR/sensor-reading-cache.$HOSTNAME if [ ! -d $CACHE_DIR ]; then mkdir -p $CACHE_DIR fi echo "# Sensor cache last updated at: `date`" > $CACHE #/usr/sbin/ipmi-sensors 2>&1 >> $CACHE /usr/sbin/ipmi-sensors >> $CACHE echo "# Sensor cache last updated at: `da...
true
3ccd80faa5fff07bd55b33e43024d4d5033a3ea5
Shell
deanofthewebb/code-server
/ci/steps/lib.sh
UTF-8
1,123
3.875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash source ./ci/lib.sh # Grabs the most recent ci.yaml github workflow run that was successful and triggered from the same commit being pushd. # This will contain the artifacts we want. # https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs get_artifacts_url() { curl -sSL 'https:...
true
3b22c434c5061f070709ba12dd518accb3c91f3d
Shell
weldpua2008/compage
/lib/apt.sh
UTF-8
2,841
4
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash ############################################################# # Sub functions to work with apt ############################################################# # get $1 repo that we need check # $2 distribution of repo function is_aptrepoexist(){ local REPO=${1:-} local DISTRIBUTION=${2:-} ...
true
5cbd55ebef440ec2e80eca504ec4d3bc670b0279
Shell
usachova/os
/lab4/rmtrash.sh
UTF-8
287
3.65625
4
[]
no_license
#!/bin/bash file=$1 trash=/home/.trash trlog=/home/.trash.log if [[ $# != 1 || ! -f $file ]] then echo "error" exit 1 fi if [[ ! -d $trash ]] then mkdir $trash touch $trlog fi name=$(date +"%d%m%Y%H%M%S") ln $file $trash/$name rm $file && echo $(realpath $file) $name >> $trlog
true
2d4007087f7adc125904edafb337db1c3a80f423
Shell
udemirezen/odroid-os
/DEST/bin/install_opt
UTF-8
65
2.734375
3
[]
no_license
#!/bin/sh if [ $# -ne 1 ]; then echo "Usage: $0 url" exit fi
true
d5d7692397b5a463ba2efbfe97109beb0b167e29
Shell
olivercodes/dotfiles
/install.sh
UTF-8
2,975
3.6875
4
[]
no_license
#!/bin/sh echo "first, we will cleanup nvm and nvim folders" echo "------------------------" echo "clean nvm" if [ -d "$HOME/.nvm" ] # && clean_install = true then echo ".nvm folder exists, cleaning" sudo rm -rf $HOME/.nvm else echo ".nvm clean" fi echo "------------------------" echo "create clean nvim setup"...
true
a7d97b6272065893d9bf54e974eddc1abea8ff54
Shell
zombiezooz25/dotfiles
/.bin/search
UTF-8
305
2.796875
3
[]
no_license
#!/usr/bin/env bash AG_PREFIX="ag --noheading --color --smart-case " export FZF_DEFAULT_COMMAND="$AG_PREFIX '.'"; # TODO: Add preview filename=$(fzf --bind "change:reload:$AG_PREFIX {q} || true" --ansi --phony | cut -d':' -f1); [[ ! -z "$filename" ]] && [[ -f "$filename" ]] && \ open "$filename";
true
118ac09b03dc14974d56bc50a04e0d4e249fcc70
Shell
e2/scripts
/install_redis
UTF-8
738
3.484375
3
[]
no_license
#!/bin/bash BIN="/home/`whoami`/bin" PAGE="http://code.google.com/p/redis/" if [ -d $BIN ] then cd $BIN else mkdir $BIN cd $BIN fi echo "Installing Redis" package=`curl -s $PAGE | grep 'http://redis.googlecode.com/files/redis' | cut -d\" -f2` wget -c $package download=`ls -c redis-* | cut -d" " -f1 | head -n ...
true
6e1054cb23a65c468bd219198e16058ead4b3402
Shell
abiratsis/GlobalWeatherData
/scripts/download_weather.sh
UTF-8
9,295
3.71875
4
[]
no_license
#!/bin/sh ############################### install python prerequisites ############################### install_prerequisites() { # pip3 pip_installed=$(pip3 --version) if [ -z "$pip_installed" ]; then echo "pip3 is not installed. Please install pip to continue." exit 1 fi pandas_installed=$(pip3 sh...
true
e25049ee5094b37c30f6759736a43b504522ec8b
Shell
janmejay/dev_utils
/grep_blk
UTF-8
879
3.28125
3
[]
no_license
#!/bin/bash exclude="n" if [ "x$4" != "x" ]; then exclude=$4 fi awk -v b_start="${1}" -v b_end="${2}" -v b_match="${3}" -v b_exclude_matched="${exclude}" ' function print_frag() { if ( ( (matched == 1) && (b_exclude_matched == "n") ) || ( (matched == 0) && (b_exclude_matched == "y") ) ) { for (i i...
true
79bbcb218d764ebfcc4a983ffe4ec71d80ce4c5b
Shell
lenik/stack
/deployment/node/sdu/sdu-semsutils/semsd.sh
UTF-8
611
3.328125
3
[]
no_license
function _cd_sems() { local cur="${COMP_WORDS[COMP_CWORD]}" local semsroot if ! semsroot=`vcscmd rootpath .`; then return 1 fi local pomdirs="$semsroot/.pomdirs" local ver=0 if [ -f "$pomdirs" ]; then ver=`stat -c%Y "$pomdirs"` fi local cver=`date +%s` if [ $(( (c...
true
991fcec6643c909bb320d8256026772f0aca1ee8
Shell
jiahaoding0725/ShellCommandExercises
/view/wk2/list_include_files.sh
UTF-8
302
3.578125
4
[]
no_license
#!/bin/sh for file in *.c do echo "$file includes:" include_files=`cat $file | egrep "#include" | cut -d' ' -f2 | egrep -o "[^<>\"]+(\.h|\.c)"` for inc_file in ${include_files[*]} # note: this is to print all items in array do echo -n " " echo $inc_file done done
true
0e51ca49b372e99e9276b74e455bcad31b91de6e
Shell
yuuki0xff/dotfiles
/files/bin/remote-make
UTF-8
3,228
4.15625
4
[]
no_license
#!/bin/bash # remote-make - execute "make" command on the remote server. # # USAGE: # remote-make [OPTIONS] [--] [MAKE_ARGS] # # OPTIONS: # -h, --host # Specify remote host name and login user name (ex. user@example.com). # -d, --dir # Specify remote working directory. # -s, --shell # Regard M...
true
23ab29ac3e9274293d4aad8375161c48c544fa99
Shell
ioppermann/munin-contrib
/plugins/raspberry-pi/cpu_freq_1sec
UTF-8
1,287
3.625
4
[]
no_license
#! /bin/sh # # This is a small supersampling plugin that does # cpu sampling every 1 second. # # (c) 2013 - LGPL - Steve Schnepp <steve.schnepp@pwkf.org> pluginfull="$0" # full name of plugin plugin="${0##*/}" # name of plugin pidfile="$MUNIN_PLUGSTATE/munin.$plugin.pid" cache="$MUNIN_...
true
819608439f258ea8fe0da0c0e948f958c0a7c2d8
Shell
malkomich/unix-exercices
/pr3/2/floyd.sh
ISO-8859-10
311
3.453125
3
[]
no_license
# dibuja 1 triangulo con el comando seq # el tamao del triangulo se pasa como argumento if [ $# -ne 1 ] then echo "Error ... debe introducir 1 argumento" else # Validar si es 1 numero positivo for i in `seq $1` do for j in `seq $1` do echo -n "* " done echo " " done fi exit 0
true
7671d0bc72877110c08dd87f45a47103fa8eed6c
Shell
kellmant/console
/MakeSystem
UTF-8
384
2.8125
3
[ "MIT" ]
permissive
#!/bin/bash # # nothing fancy # just run the commands to get it launched # while IFS= read -r char do echo "ENV $char" >> $PWD/Dockerfile done < "/efs/services/environment" echo "ENTRYPOINT [\"node\"]" >> $PWD/Dockerfile echo "CMD [\"app.js\", \"-p\", \"3000\"]" >> $PWD/Dockerfile docker build -t registry.local:5000/...
true
fa01be7a22ab2e065ff0715fa97466a86c1fd277
Shell
Oleg1157/git-lfs
/test/test-custom-transfers.sh
UTF-8
6,232
3.484375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash . "test/testlib.sh" begin_test "custom-transfer-wrong-path" ( set -e # this repo name is the indicator to the server to support custom transfer reponame="test-custom-transfer-fail" setup_remote_repo "$reponame" clone_repo "$reponame" $reponame # deliberately incorrect path git con...
true
522435c868ba1854b61fae04a4af43ad4bf89f0d
Shell
cnygardtw/metrik
/backend/scripts/tcp-port-check.sh
UTF-8
751
4.3125
4
[ "MIT" ]
permissive
#!/bin/bash ## This script is for checking if the specific TCP port is available on HOST. ## arg1: Host / IP ## arg2: Port number you would like to check ## arg3: Tolerant time (second) HOSTNAME="$1" PORT="$2" TOLERANCE="$3" COUNTER=0 PORT_STATUS=0 while [ "$PORT_STATUS" -ne 0 ] && [ "$COUNTER" -lt "$TOLERANCE" ]; ...
true
d4c816bc96fdf7d3b180b84222789b0604e5e6ae
Shell
openlibraryenvironment/mod-rs
/okapi-scripts/load_test_data.sh
UTF-8
3,782
2.5625
3
[ "Apache-2.0" ]
permissive
#! /bin/sh AUTH_TOKEN=`./okapi-login` echo Listing current requests curl --header "X-Okapi-Tenant: diku" -H "X-Okapi-Token: ${AUTH_TOKEN}" -H "Content-Type: application/json" -X GET http://localhost:9130/rs/patronrequests echo Get the directory record for our responding system - we want to send a request to DIKUA ...
true
f0c5f1efed0bb69daa4a9529137d889e3fad5215
Shell
jiaoah97/MQX411
/build/twrvf65gs10_m4/make/build_gcc_arm.sh
UTF-8
1,239
2.890625
3
[]
no_license
#!/usr/bin/env bash status=0 $(cd ../../../mqx/build/make/bsp_twrvf65gs10_m4 && ./build_gcc_arm.sh nopause) if [ "$?" != "0" ]; then status=-1 fi $(cd ../../../ffs/build/make/ffs_twrvf65gs10_m4 && ./build_gcc_arm.sh nopause) if [ "$?" != "0" ]; then status=-1 fi $(cd ../../../mcc/build/make/mcc_twrvf65gs10_m4...
true
720385beb90d2e037da734bb3ddfe10d76ea916b
Shell
prositen/advent-of-code
/bash/2018/dec01.bash
UTF-8
1,675
3.765625
4
[]
no_license
#!/usr/bin/env bash source ../common.bash function frequency_change() { local sum=0 for i1 in "${!dec01_input[@]}"; do local term=${dec01_input[$i1]} ((sum = sum + term)) done echo ${sum} } function first_repeating_frequency() { declare -A freqs local sum=0 freqs[${sum}]=1...
true
880a3b384dd3441def55fbd9a061c90a76e46baf
Shell
condekind/page-angha
/deploy-angha/deploy.sh
UTF-8
1,923
3.765625
4
[]
no_license
#!/bin/bash #=============================================================================# # trap for exit signals to avoid messing directories sigbye () { exit_code=$? STTY=$(stty -g) stty intr undef cd $basedir stty ${STTY} exit $exit_code } STTY=$(stty -g) stty intr undef # Disable interrupts { bas...
true
5d9328cfe0c583a5bbf2885041cc98635e9cea69
Shell
R0flcopt3r/dots
/scripts/mic.sh
UTF-8
188
2.609375
3
[]
no_license
#!/usr/bin/env sh mic=$(amixer get Capture | grep "Front Left: Capture" | awk '{print $6}') red="#EF2F27" if [ "$mic" = "[on]" ] then echo ' ' else echo '%{u'"$red"'} %{u-}' fi
true
b23a24e8f92495a7ddd79f97a08afb41bde6980b
Shell
gsanchietti/ns8-podman
/rootless/traefik.sh
UTF-8
810
2.671875
3
[]
no_license
#!/bin/bash HOST=$(hostname -f) mkdir -p $HOME/traefik/config/acme cat <<EOF > $HOME/traefik/config/traefik.yaml defaultEntryPoints: - http - https file: {} log: level: DEBUG accessLog: {} entryPoints: http: address: ":80" https: address: ":443" providers: redis: endpoints: - "127.0....
true
7d81293d77fa85b49604a7a73c8cd03a4af7becf
Shell
rkat0/rcp
/test.sh
UTF-8
470
3.609375
4
[]
no_license
#!/bin/bash try() { expected="$1" input="$2" echo -n "$input" | ./rcp gcc -o tmp tmp.s ./tmp actual="$?" if [ "$actual" = "$expected" ]; then echo "$input => $actual" else echo "$expected expected, but got $actual" exit 1 fi } try 0 "0;" try 100 "100;" try 3...
true
4655cc63a78d995bf226ad025c51d52bc9e8c8a5
Shell
siguangli/Hippy
/layout/gtest/build_run_gtest_for_hippy_layout.sh
UTF-8
521
3.546875
4
[ "Apache-2.0", "MIT" ]
permissive
#! /bin/bash CMAKE=`which cmake` MAKE=`which make` BASH_SOURCE_DIR=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd) BUILD_DIR="${BASH_SOURCE_DIR}"/../out rm -rf "${BUILD_DIR}"/gtest mkdir -p "${BUILD_DIR}"/gtest cd "${BUILD_DIR}"/gtest #cmake generate make file "${CMAKE}" ../../gtest/ echo "Start build in directory: `pw...
true
ad1399dcc586003b9becf75c3ede810a23ee9bba
Shell
nshandra/Practica-ISI
/pruebasIDM/Embotelladora/cr-emb.sh
UTF-8
323
2.859375
3
[]
no_license
#!/bin/bash hamcrest="./../hamcrest-core-1.3.jar" junit="./../junit-4.12.jar" if [[ -f "$hamcrest" ]] && [[ -f "$junit" ]]; then javac -cp .:"$hamcrest":"$junit" EmbotelladoraTest.java javac -cp .:"$hamcrest":"$junit" AllTests.java java -cp .:"$hamcrest":"$junit" AllTests else echo "Error. JUnit libs not in ./../"...
true
6cec53304c72416c11ba47c2a8b4d17d3a4d2aef
Shell
andreisusai/the_hyrule_castle
/characters/basic_characteristics.sh
UTF-8
8,323
3.625
4
[]
no_license
#!/bin/bash # Display and chose characters display_characters(){ first_line=0 echo " =========== CHARACTERS ========== " while IFS="," read -r id name hp mp str int def res spd luck race class rarity ; do if [[ $first_line -ne 0 ]]; then echo " =========...
true
b061c51a9858646cdedf2a69510042b27957ec87
Shell
kenmlee/refarch-cloudnative-kubernetes
/delete_bluecompute.sh
UTF-8
6,991
3.765625
4
[]
no_license
#!/bin/bash # Terminal Colors red=$'\e[1;31m' grn=$'\e[1;32m' yel=$'\e[1;33m' blu=$'\e[1;34m' mag=$'\e[1;35m' cyn=$'\e[1;36m' end=$'\e[0m' coffee=$'\xE2\x98\x95' coffee3="${coffee} ${coffee} ${coffee}" CLUSTER_NAME=$1 BX_SPACE=$2 BX_API_KEY=$3 BX_REGION=$4 BX_API_ENDPOINT="" if [[ -z "${BX_REGION// }" ]]; then BX_AP...
true
8e012ee7e611aa30d651e023e4b97c9f0cf6fd58
Shell
KunKaxx/virtual-environments
/images/linux/scripts/installers/julia.sh
UTF-8
1,212
3.609375
4
[ "MIT" ]
permissive
#!/bin/bash -e ################################################################################ ## File: julia.sh ## Desc: Installs Julia, and adds Julia to the path ################################################################################ # This function fetches the latest Julia release from the GitHub API...
true
80e49d18f529f77b96c84e4ecd40421c0866add0
Shell
marian-babik/glideinwms
/build/jenkins/check_ascii.sh
UTF-8
381
3.15625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash mydir="$(dirname $0)" pushd "${mydir}/../.." > /dev/null echo "List of non ASCII files starting from ($(pwd) - some known directories are skipped):" find . -type f -not -path "*/.git/*" -not -path "*/images/*" -not -path "*/doc/papers/*" -not -path "*/unittests/fixtures/factory/work-dir/*" -exec file {} \;...
true
306c05b5b286c56066428a48b7edb672965e72fe
Shell
santyar/insoft_task
/serv.sh
UTF-8
842
2.640625
3
[]
no_license
echo "Update repository it take few time" apt-get -y update > /dev/null #Install echo "Install and run nginx and component" apt-get install -y nginx apt-get install -y python-dev python-virtualenv apt-get install -y uwsgi uwsgi-plugin-python apt-get install -y python-pip > /dev/null #install Flask echo "Install F...
true
e09fd893334a0b02a9ec59c10d0761ab812f5aba
Shell
mrflip/chimpmark
/challenges/graph/pagerank/pig/iterate_pagerank.sh
UTF-8
459
3.21875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash num_iters=$1 ; shift work_dir=$1 for (( curr=0 , next=1 ; "$curr" < "$num_iters" ; curr++ , next++ )) ; do curr_str=`printf "%03d" ${curr}` next_str=`printf "%03d" ${next}` curr_dir=${work_dir}/pagerank_graph_${curr_str} next_dir=${work_dir}/pagerank_graph_${next_str} # pig -x local -para...
true
44f1c628a1ad502136846483f2b8d925128d673e
Shell
Boladar/sopy
/fiszki.sh
UTF-8
2,227
3.96875
4
[]
no_license
h_flag=false s_flag=false i_flag=false files='' delimiter=';' while getopts 'hd:f:s:i' flag; do case "${flag}" in h) h_flag=true;; d) delimiter=$OPTARG;; f) files+=("$OPTARG");; s) s_flag=true s_mode=$OPTARG;; i) i_flag=true;; esac done if [ "$h_flag" = true ]; then echo "Us...
true
d843e2cc3ff51d32c7721bbd433a473683df4b13
Shell
aolarte/test-vms
/rabbitmq/bootstrap.sh
UTF-8
343
2.6875
3
[]
no_license
#!/bin/bash -x # Setup puppet client if [ ! -f /etc/yum.repos.d/puppetlabs.repo ]; then sudo rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm fi if [ ! -f /usr/bin/puppet ]; then sudo yum -y install puppet fi if [ ! -d /etc/puppet/modules/packagecloud ]; then sudo puppet module install comp...
true
5ca87b16354799136d9b408ff32b5c138cec9184
Shell
nlf/riakdown
/test-pouchdb.sh
UTF-8
371
2.90625
3
[ "MIT" ]
permissive
#!/bin/sh # # run a single pouchdb test, using pouchdb-server # in the server running on port 6984 # ./node_modules/.bin/pouchdb-server -p 6984 $SERVER_ARGS & POUCHDB_SERVER_PID=$! cd node_modules/pouchdb/ npm install COUCH_HOST=http://localhost:6984 npm test EXIT_STATUS=$? if [[ ! -z $POUCHDB_SERVER_PID ]]; th...
true
08f06e94a2b0244de5379a4ef1bddfdabc13b1a3
Shell
caibai36/clib
/egs/wsj/s0/run.sh
UTF-8
975
3.546875
4
[]
no_license
#!/bin/bash # Set bash to 'debug' mode, it will exit on : # -e 'error', -u 'undefined variable', -o ... 'error in pipeline', -x 'print commands', set -euo pipefail # Prepare some basic config files of kaldi. sh local/kaldi_conf.sh # Note: cmd.sh, path.sh are created by kaldi_conf.sh . cmd.sh . path.sh # general conf...
true
0034bb8ad81c5b6b6c5c4258f01da49d01fdfcc4
Shell
manuel92780/muon_veto_project
/corsika_comparison/job.sh
UTF-8
486
2.609375
3
[]
no_license
#!/bin/bash #prep inputs nseed=$1 nfile=$2 #paths dir=/data/user/msilva/corsika_20222 scratch_dir=/home/msilva/scratch mkdir $scratch_dir mkdir $scratch_dir/corsika cd $scratch_dir/corsika/ cp /home/msilva/muon_gun_multiplicity_study/corsika_comparison/process_corsika.py . #setup env eval `/cvmfs/icecube.openscience...
true
f0a879bbc90a51d5928532236e1f1c052d4f08a6
Shell
tteck/Proxmox
/install/deluge-install.sh
UTF-8
1,569
2.875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Copyright (c) 2021-2023 tteck # Author: tteck (tteckster) # License: MIT # https://github.com/tteck/Proxmox/raw/main/LICENSE source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors setting_up_container network_check update_os msg_info "Installing Dependencies" $STD apt-get inst...
true
ccdb8eed926a3c6c699d967cb5b562341798b9ca
Shell
maniaabdi/system-config
/bin/ffchm
UTF-8
406
3.484375
3
[]
no_license
#!/bin/bash chm=$(readlink -f "$1") dir=~/.cache/for-code-reading/chm/"$chm" if ! test -e "$dir"; then ( archmage -x "$chm" /tmp/archmage-ffchm.$$ && mkdir -p "$(dirname "$dir")" && mv /tmp/archmage-ffchm.$$ "$dir" ) || ( rm -rf "$dir"; extract_chmLib "$chm" "$dir" ) fi if test -e "$dir"/index.htm...
true
8ccf699f1eef83879e1c59a12f4069c7e0aa0967
Shell
marcusmyers/dotfiles
/git/templates/hooks/pre-commit
UTF-8
462
3.296875
3
[ "MIT" ]
permissive
#!/bin/bash FILES_WITH_FOCUS_TAGS=`grep -El "(:focus\s*=\>|,\s*:focus|focus:\s*true)" $(git diff --cached --name-status | awk '$1 == "M" || $1 == "A" { print $2 }' | grep "_spec.rb")` NUMBER_OF_FOCUS_ADDITIONS=`echo "$FILES_WITH_FOCUS_TAGS" | wc -l` if [[ $FILES_WITH_FOCUS_TAGS != "" && $NUMBER_OF_FOCUS_ADDITIONS !=...
true
21812403a1e5f227da93ec4d0dcf2ab5e3a6df3f
Shell
wang-xiao-er/contrail-dev-env
/scripts/build-containers.sh
UTF-8
271
2.515625
3
[]
no_license
#!/bin/bash REPODIR=/root/src/review.opencontrail.org/Juniper/contrail-container-builder [ -d ${REPODIR} ] || git clone https://github.com/tungstenfabric/tf-container-builder ${REPODIR} cp tpc.repo.template common.env ${REPODIR} cd ${REPODIR}/containers && ./build.sh
true
17afedd8fcfa2d9343846333b89abdfb7f4ff8ad
Shell
struys/envirius
/tests/versions.bats
UTF-8
591
2.734375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bats load test_helper @test "versions: for disabled plugin [go]" { line_0=$(bold "* go:";) run nv versions --go assert_success assert_equal "${lines[0]}" $line_0 assert_equal "${lines[1]}" " - plugin disabled." } @test "versions: for enabled plugin [rust]" { line_0=$(bold "* ru...
true
d3e57c0f226eff596d80dd5f3c293080d02c8093
Shell
robhurring/dotfiles
/config/zsh/lib/util.zsh
UTF-8
1,170
4
4
[]
no_license
remove_colors() { sed -E "s/"$'\E'"\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]//g" } push_path(){ if ! echo $PATH | egrep -q "(^|:)$1($|:)" ; then if [ "$2" = "after" ] ; then PATH=$PATH:$1 else PATH=$1:$PATH fi fi } # vim-like shortenpath() function # modified from http://stackoverflow.com/qu...
true
85fd2954f8a73cc1bdf6bf9a1eecb87abdcb01e0
Shell
cunderw/dotfiles
/.zshrc
UTF-8
5,610
3.140625
3
[]
no_license
# Enable p10k-instant-prompt if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi ############################ # Environment Setup ############################ export DISABLE_AUTO_TITLE=true export EDIT...
true
1e24781f9d09a3faa1488d38d0e057fb07cee758
Shell
SmitN/dotfiles
/.bashrc
UTF-8
244
3.21875
3
[]
no_license
function settitle() { if [ -n "$STY" ] ; then # We are in a screen session echo "Setting screen titles to $@" printf "\033k%s\033\\" "$@" screen -X eval "at \\# title $@" "shelltitle $@" else printf "\033]0;%s\007" "$@" fi }
true
e7f013081449674637ef57415d9c120d07633256
Shell
emorchy/lojban.io
/virtualization/prod-containers/bash.sh
UTF-8
316
3.46875
3
[]
permissive
#!/usr/bin/env bash set -e # Change directory to the script's location DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" CONTAINER_NAME="$1" if [ -z "$CONTAINER_NAME" ]; then echo "ERROR: missing container name" exit 1 fi ./docker.sh $DOCKER_OPTS exec -t "$CONTAINER_NAME" /bin/bash
true
77d5de8286465ad58c71eb9f5eb4ff17206875bd
Shell
lawrencegripper/ion
/tools/test_certs.sh
UTF-8
2,272
4
4
[ "MIT" ]
permissive
#!/bin/bash OUT_DIR=$1 # Directory to write the new certificates to TOOL=$2 # The certificate generation tool DNS_NAME=$3 # The DNS name to use to connect the client and server IMAGE_TAG=$4 # Optional Docker image tag used in terraform function prockill { P=$(pgrep $1); if [ -n "$P" ]; then kill "...
true
7a50e710bbe1d0829a1f538121501da99a5aa1c5
Shell
osu-particle-astrophysics/icemcQC_keith
/IcemcQCVersion.sh
UTF-8
4,454
3.609375
4
[]
no_license
#!/bin/bash ## Run by typing . IcemcVersion.sh #################################################################### ## ## ## Author: Khalida Hendricks July 2014 ## ## hendricks.189@osu.edu ...
true
14ee7a22f175d301798e477fd5531fb21e169640
Shell
Parrows/Parrows
/Eden/examples/sudoku/compile.sh
UTF-8
374
3.0625
3
[ "MIT" ]
permissive
#!/bin/bash programs=( "parrows-sudoku-parmap" "parrows-sudoku-parmapstream" "parrows-sudoku-farm" "parrows-sudoku-farmChunk" ) # get length of an array programCount=${#programs[@]} for (( i=0; i < ${programCount}; i++ )); do progName=${programs[$i]} cmd="ghc "$progName" -parmpi -rtsopts -eve...
true
9728357a06f7e89d9e5ea8e5aecb8d7bbbc65b44
Shell
onknows/terraform-azure-openshift
/bootstrap.sh
UTF-8
1,409
3.328125
3
[ "MIT" ]
permissive
#!/bin/bash set -e cd terraform echo "Synchronizing Terraform state..." terraform refresh -var-file=azure.tfvars -var-file=bootstrap.tfvars echo "Planning Terraform changes..." terraform plan -out openshift.plan -var-file=azure.tfvars -var-file=bootstrap.tfvars echo "Deploying Terraform plan..." terraform apply ope...
true
d54a040c6752057c41d0bf37123d845397831330
Shell
iconix/gith-deployer
/setup.sh
UTF-8
443
2.78125
3
[]
no_license
echo '>>> Retrieving new list of packages' sudo apt-get update echo '>>> Installing nodejs, npm, curl' sudo apt-get install nodejs npm nodejs-legacy curl echo '>>> Installing docker' curl -sSL https://get.docker.io/ubuntu/ | sudo sh sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker sudo gpasswd -a ${USER} docker s...
true
6672144869218a93300a58a0a1e7dd99bdbfa511
Shell
zimbatm/ploy-example
/script/slugify
UTF-8
557
2.875
3
[]
no_license
#!/usr/bin/env bash set -e . `dirname $0`/ploy-lib.sh CACHE_DIR=`expand_path "$1"` DESTDIR=`expand_path "$2"` if [ -z "$DESTDIR" ]; then fail "Missing the first argument: the destination path" fi cd `dirname $0`/.. ## Build dependencies ## depend Dependfile build ## Copying the release files ## rm -rf "$DESTDI...
true
cb4e954df16a2b9da800ceb2aaf54a6212de157a
Shell
pkeane/misc_scripts
/rid.sh
UTF-8
108
2.890625
3
[]
no_license
cd $PWD for file in `ls` do cat $file | sed 's/ /\n/g' | grep -v '^$' > $file.bak mv $file.bak $file done
true
5d0af4fb093523fa2393da9f2a362344ca2fceef
Shell
jordicenzano/lhls-simple-live-platform
/scripts/transcoding-multirendition-srt.sh
UTF-8
4,765
3.671875
4
[]
no_license
#!/usr/bin/env bash if [ $# -lt 1 ]; then echo "Use ./transcoding-multirendition-srt.sh test/live [SRTPort] [HLSOutHostPort]" echo "test/live: In test generated a test signal" echo "SRTPort: SRT listener local UDP port (default: 1935)" echo "HLSOutHostPort: Host and to send HLS data (default: \"localhost:...
true
8ef2dcca1dc5b74c567658462df1739b8faf1ce4
Shell
Vahel123/Abschlussarbeit
/DataAnalyze/KomponnentenTest/Benchmark/DockerContainer/RAM_Test/Benchmark_RAM_Test.sh
UTF-8
474
2.875
3
[]
no_license
#/bash/bin! # Benchmark-RAM # timeout 30 bash -c -- 'while true; do docker exec -it 89453050352d sysbench --num-threads=1 --test=memory --memory-block-size=1M --memory-total-size=100G run | head -n18 | tail -n1 >> RAM_Test_fuer_Docker_Container_1.csv ;done' i=1 while [ $i -le 25 ] do sysbench --num-threads=1 --test=...
true
e2f492e19fd0aa3fba9205d20d1b00b2d7154da7
Shell
triton/triton
/pkgs/build-support/build-fhs-chrootenv/init.sh.in
UTF-8
530
3.4375
3
[ "MIT" ]
permissive
#! @shell@ -e chrootenvDest=/run/chrootenv/@name@ # Create some mount points for stuff that must be bind mounted mkdir -p $chrootenvDest/{nix/store,dev,proc,sys,host-etc,host-tmp,home,var,run} # Symlink the software that should be part of the chroot system profile for i in @chrootEnv@/* do if [ "$i" != "@chrootE...
true
352b5986ee12a4866140de9aed527fc6c3a2f0e2
Shell
r2600r/cfm-vagrant
/cfm-1x1-vqfx-7srv/scripts/enable_root_login.sh
UTF-8
778
2.75
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -eux #login as root sudo su - sudo sed -e '/PermitRootLogin/ s/^#*/#/' -i /etc/ssh/sshd_config sudo sed '/^#PermitRootLogin/a PermitRootLogin yes' -i /etc/ssh/sshd_config sudo sed -i '/^#ListenAddress 0.0.0.0/s/^#//' -i /etc/ssh/sshd_config sudo sed '/^#PasswordAuthentication/a PasswordAuthentication yes'...
true
759ead73a0db85087886ac3362559ec90f9e10ad
Shell
alina-grosu/appium-android-custom
/docker/run_x11vnc_server.sh
UTF-8
222
2.734375
3
[]
no_license
#!/bin/bash ./entry_point.sh& #wait for Xvfb to start until pids=$(pidof Xvfb) do sleep 1 done echo Trying to start vnc11server > foq.txt x11vnc -forever -display :99 -auth /tmp/xvfb-run.*/Xauthority > /root/foo.txt
true
f67d739f46bb962392cc0e07301c4eae3554e897
Shell
basarevski/INTEXOTHER-newbie
/23_Bash_VCS_Cron/script.sh
UTF-8
837
3.875
4
[]
no_license
#!/bin/bash LOG_FILE=/var/log/syslog LOG_FILE_NAME=syslog CURRENT_DATE=$(date +"%b %d") EXECUTION_TIME=$(date +"%H:%M:%S") OUTPUT_PATH=$PWD/output_logs # Check output folder if [ ! -d "$OUTPUT_PATH" ] then mkdir "$OUTPUT_PATH" fi # Create log files if [ -e $LOG_FILE ] then cat $LOG_FILE | head -n 10 > "$...
true
9c2cd462fc4f2fb85934beb61b94089b5454ba69
Shell
yangmeyer/Xcode-extensions
/insert-super-call.sh
UTF-8
2,539
4.1875
4
[]
no_license
#!/bin/sh # Based on the accepted answer in # http://stackoverflow.com/questions/3916092/how-to-write-an-xcode-user-script-to-surround-the-string-the-cursor-is-inside-wit # # Author: # - Yang Meyer # # Xcode integration: # - Input: Selection # - Output: Replace Selection # # Suggested keyboard shortcut: # - Cmd-Al...
true
87d64e0fd57dbf0e0bebae357cbe93976f266206
Shell
serpentcross/challenge-revolut.com
/start.sh
UTF-8
766
3.359375
3
[]
no_license
#!/bin/bash # Bash Menu Script Example PS3='Please enter your choice: ' options=("Build" "Run" "Build & Run" "Quit") select opt in "${options[@]}" do case $opt in "Build") echo "preparing to build ..." mvn package ;; "Run") echo "Please wait. REST API...
true
82f960480d474dd118eeb3a948ac213675eeed9a
Shell
romankhar/JavaServerUsabilityTests
/liberty.sh
UTF-8
1,474
2.96875
3
[]
no_license
#!/bin/bash # Author: Roman Kharkovski, IBM, blog: http://whywebsphere.com SERVER_INSTALL_DIR=$SERVER_HOME/wlp-javaee7-8.5.5.7/wlp INSTANCE_NAME=defaultServer INSTANCE_DIR=$SERVER_INSTALL_DIR/usr/servers/$INSTANCE_NAME STD_OUT_FILE=$INSTANCE_DIR/logs/console.log STOP_LOG_FILE=$STD_OUT_FILE PORT=9080 START_COMMAND="$...
true
8e917384376deb8e59a9b66ced1c1721127f3bf9
Shell
farisalasmary/kaldi-ruby-api
/download_models.sh
UTF-8
1,118
2.75
3
[ "MIT" ]
permissive
#!/bin/bash echo "Current path: $PWD" if [ ! -f 0013_librispeech_v1_chain.tar.gz ]; then echo "Downloading 0013_librispeech_v1_lm.tar.gz" wget http://kaldi-asr.org/models/13/0013_librispeech_v1_chain.tar.gz fi if [ ! -f 0013_librispeech_v1_extractor.tar.gz ]; then echo "Downloading 0013_librispeech_v1_ex...
true
373fb99b9038bf124be8332b4b9110d66c5eb56c
Shell
nkzxw/dotfiles
/bootstrap.sh
UTF-8
1,191
2.875
3
[]
no_license
#! /usr/bin/env bash ETC=~/.local/etc BIN=~/.local/bin mkdir -p $ETC mkdir -p $BIN # git clone respository cd ~/.local/ if [ -d dotfiles ]; then cd dotfiles git pull else git clone git@github.com:hanxi/dotfiles.git cd dotfiles fi cp -rf etc/* $ETC/ cp -rf bin/* $BIN/ cp bootstrap.sh $BIN/ # setup lem...
true
06e3b80b86b9762edbb0e637da47bf9588639397
Shell
rthallisey/atomic-osp-installer
/docker/cinder-app/cinder-volume/start-scripts/tgt-post-start.sh
UTF-8
504
3.03125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e TGTD_CONFIG=/etc/tgt/targets.conf # Put tgtd into "offline" state until all the targets are configured. # We don't want initiators to (re)connect and fail the connection # if it's not ready. echo "Putting tgt in offline state" tgtadm --op update --mode sys --name State -v offline # Configure the ...
true
1dc0db3976f796ea278294a435d8684bb1f608d2
Shell
soullivaneuh/dotfiles
/.config/rofi/projects_list.sh
UTF-8
623
3.015625
3
[]
no_license
#!/usr/bin/env bash list_file=${1} echo "Fetching GitHub projects..." hub api --paginate 'user/repos?per_page=100' \ | jq -r '.[].full_name' \ | sed -e 's#^#github.com/#' \ >> "${list_file}" echo "Fetching GitLab projects..." LAB_CORE_HOST="https://gitlab.com" LAB_CORE_TOKEN=${GITLAB_TOKEN} lab project list --...
true
f234e5b7d35b42cabafa117e73c1e335ef2caf75
Shell
onezos/gpfs
/gpfsmain.sh
UTF-8
5,294
3.890625
4
[]
no_license
#!/bin/bash function print_tips { echo "======================================================" echo "(1) 安装多个gpfs节点" echo "(2) 增加gpfs节点" echo "(3) 删除所有gpfs节点" echo "(4) 钱包地址存入脚本同级文件file.txt, 自动创建gpfs节点" echo "(Q/q) 退出" echo "======================================================" } functi...
true
b876f97ae4bc421b4db638daa9ee84add5bf4c88
Shell
davekreut/docker-apache-php-5.3
/build.sh
UTF-8
353
3.09375
3
[]
no_license
#!/bin/bash NAME='koder/apache-php-5.3' VERSION=`grep version package.json | sed -e 's/.*version.*"\(.*\)".*/\1/'` REPO=${NAME} echo -e "\033[0;32m*** Building docker image\033[0m" docker build -t ${REPO}:${VERSION} . echo -e "\033[0;32m*** Remember to push image to repository:\033[0m" echo -e "\n\033[0;33mdocker p...
true
6610949f0f32ade8d6919f30a71cede798ef711c
Shell
ablimit/hadoopgis
/partition/fixedgrid/dopais.sh
UTF-8
788
3.265625
3
[]
no_license
#! /bin/bash opath=/mnt/scratch1/aaji/fixedgrid/pais/wbo ipath=/mnt/scratch1/aaji/algo for size in 128 256 512 768 1024 2048 4096 8192 16384 do if [ ! -e ${opath}/grid${size} ] ; then mkdir -p ${opath}/grid${size} xsplit=`expr $((110592/size))` ysplit=`expr $((57344/size))` echo "Grid size: ${xsplit}x...
true
6b56ff391d1bffe55cd22efe00a5c01a83dd4052
Shell
jeremygold/config-gold
/.zshrc
UTF-8
2,517
2.703125
3
[]
no_license
# Path to your oh-my-zsh configuration. ZSH=$HOME/.oh-my-zsh ZSH_THEME="clean" # alias slic3r="/home/jeremy/3dPrinting/Slic3r/bin/slic3r" # alias netfabb="/home/jeremy/3dPrinting/netfabb-basic/netfabb" alias tmux="tmux -2 a" alias gpoh="git push origin HEAD" alias gpfoh="git push --force origin HEAD" alias gfl="git f...
true
d5d8932f52645588fc04c0aafdbccfdccefcbbbc
Shell
cescmentationfolch/Codeforces
/Contest/compile.sh
UTF-8
282
3
3
[]
no_license
num=${PWD##*/} GREEN='\033[0;32m' RED='\033[0;31m' NC='\033[0m' if g++ ${1}/${1}${num}.cc -DLOCAL -O2 -o ${1}/${1}.out 2> ${1}/Debug.txt; then echo "Problem ${1}${GREEN} compiled succesfully${NC}"; exit 0; else echo "Problem ${1}${RED} didn't compile${NC}"; exit 1; fi
true
8330e465e85e7b48ae778af1bf6a6d243728eceb
Shell
afresh1/flashrd
/flashrd
UTF-8
5,771
3.875
4
[]
no_license
#!/bin/ksh # # flashrd initializer with default vnd image destination (or disk destination on demand) # # Chris Cappuccio <chris@nmedia.net> date=`date +%Y%m%d` arch=`uname -m` vers=1.3 typeset -x device rootdevice blocks rdroot dest vnddirs vndsize typeset -x tardirs mfsdirs cylinders trackscylinder sectorstrack typ...
true
8887cfdb60d0ee0b1a255aba76b6e05fb5b83999
Shell
mnl-jmnz/pytest-loop
/pytest-loop.sh
UTF-8
972
3.671875
4
[]
no_license
# get newest file # $tm will contain newest file time stamp # $name will contain newest file name function get_newest_file() { find=$(find . -type f -print0 | xargs -0 stat -f "%m %N" | sort -rn | head -1) tm=$(echo "$find" | cut -d' ' -f1) name=$(echo "$find" | cut -d' ' -f2) } last_tm=0 LIGHT_GRAY='\033[0;37m' N...
true
c86b2ca237b675fec5c66adcd4641c56ea0c6d50
Shell
aarontran/g309.2-0.6
/xmm/bin/check_xmmregions
UTF-8
1,169
3.59375
4
[]
no_license
#!/bin/bash # As currently coded, MUST run from XMMPATH # One-off check script if [[ "$#" -ne 1 ]]; then echo "ERROR: one argument (region label) required" exit 1 fi RSTEM=$1 if [[ "$SAS_OBSID" == "0087940201" ]]; then exposures="mos1S001 mos2S002 pnS003" elif [[ "$SAS_OBSID" == "0551000201" ]]; then ex...
true
f8b9da40eb1ebdfccd42b1d3ba0699e4cdd90148
Shell
Easwer/shell
/file_manipulation/file_manipulation.sh
UTF-8
1,795
4.0625
4
[]
no_license
#!/bin/bash ######################################################################## # Script Name : File manipulation # Description : File to read an input from txt and output as CSV. # Author : Easwer AP ######################################################################## logfile=/Drive1/playground...
true
ad9f8c62256b8c07bac09710fdf2bab80698709f
Shell
roya-lb/lightbits
/collect.sh
UTF-8
481
2.75
3
[]
no_license
#!/bin/bash echo -n "Name: " uname -n echo -n "CPUs: " grep "physical id" /proc/cpuinfo | sort | uniq | wc -l echo -n "Cores: " grep "^processor" /proc/cpuinfo | wc -l echo -n "Network: " lspci | egrep -i --color 'network|ethernet|wireless|wi-fi' | awk '{$1= ""; print $0}' echo -n "Open Ports: " lsof -i -P -n | grep...
true
b1ccc08efd0ab653399827f1b331f46bded734d7
Shell
yumaatt/dotfiles
/setup.sh
UTF-8
1,339
3.21875
3
[ "MIT" ]
permissive
#!/bin/sh cd $(dirname $0) for dotfile in .?*; do case $dotfile in *.elc) continue;; ..) continue;; .git) continue;; .gitconfig.local) continue;; .gitignore_gen) continue;; .gitfiles) continue;; ...
true
26914b186913469cdc877a394da2e91c69951f48
Shell
synergiance/dotfiles
/scripts/ytdlplaylistmus
UTF-8
1,054
3.40625
3
[]
no_license
#!/bin/bash # Downloads a youtube playlist and keeps it in sync # Please use a list URL rather than a video from said playlist # Options are configurable # # Author: Synergiance url="https://www.youtube.com/playlist?list=PL7tPIoWoeE1mBgi-KUwbtkYwLRFG5inDS" dir=$HOME/Music/yt #cachedir=$HOME/.ytdl/cache archive="$HOME/...
true
2ed7203da315aedc37dc6dbbf8fae2e22c2fdade
Shell
PsymonLi/sw
/tools/docker-files/install/initscript
UTF-8
3,635
3.203125
3
[]
no_license
#!/bin/sh # /usr/pensando/bin of host (or VM) is mapped to /home/usr/pensando/bin inside the base container. # The binaries (which need to be run on the host) are packaged in the base container. # Steps below copy the binaries to be run on the host. # Also any config files are copied here too. # Please note that bi...
true
5241c73324797b759234362d8a07c143b7eda575
Shell
cdbeland/moss
/run_moss_parallel.sh
UTF-8
1,457
3.375
3
[ "LicenseRef-scancode-public-domain" ]
permissive
#!/usr/bin/bash set -e export RUN_NAME=run-`git log | head -c 14 | perl -pe "s/commit //"`+`date "+%Y-%m-%dT%T"` mkdir $RUN_NAME cd $RUN_NAME # --- PERFORMANCE --- # If SSD becomes a bottleneck: # https://wiki.archlinux.org/title/Solid_state_drive # TRIM is enabled on weekly timer by default: # systemctl list-tim...
true
a8f8889e7e0041609c932062328bd72d1cdb8ce1
Shell
SavinayDharmappa/probcomp-stack
/url-cards.sh
UTF-8
1,264
3.25
3
[]
no_license
#!/bin/sh # Leave in the file url-cards.ps a printable document consisting of # one url per page. This is useful for printing out (single-sided!) # and handing out at a workshop that involves giving the participants # EC2 instances. The pages can be folded over to write people's # passwords inside. set -eu echo ""...
true
f2ddd623c969e079533adc04061ff9f65ecf4685
Shell
nomeata/ghc-devscripts
/run-nofib.sh
UTF-8
496
3.359375
3
[]
no_license
test -d nofib || { echo "No nofib found" ; exit 1 ; } set -e if [ "$1" = "slow" ] then mode=slow variant="-slow" shift else mode=norm variant="" fi git fetch origin name="$(date --iso=minutes)-$(cd ..; git rev-parse HEAD|cut -c-8)" if [ "$1" != noclean ] then make distclean perl boot ./configure fi ...
true
4a00456d4eeb05176412ea4cbc6d126a05683167
Shell
chenyueze/review
/3-项目/2-分布式集群监控/2-Mem.sh
UTF-8
455
3.5625
4
[]
no_license
#!/bin/bash if [[ $# -lt 1 ]]; then echo "Usage:$0 DyAver" fi Time=`date +%Y-%m-%d_%H:%M:%S` DyAver=$1 if [[ ${DyAver}x == x ]]; then exit 1 fi MemValues=(`free -m | head -n 2 | tail -n 1 | awk '{printf("%s %s", $2, $3)}'`) MemUsedPrec=`echo "scale=1; ${MemValues[1]}*100/${MemValues[0]}" | bc` NowAver=`e...
true
3167c3b762da460dbee1781268935783ee944c36
Shell
aditp928/cyber-secruitiy-
/4-OldFiles/01-Intro-Cybersecurity/2/Activities/07-Ins_Exec/demo.sh
UTF-8
797
3.65625
4
[]
no_license
# Find all text files that begin with the word flag find . -type f -iname flag* # Find and copy all flag files into the present directory # `-exec` signals that we are executing a command # `cp {}` signifies that we want to copy the contents we found # `.` signifies that we want to copy these files to the current fold...
true
fcec810e01f6d1fe196d6d82ec75e91905ed469d
Shell
rustyeddy/sandbox
/src/vagrants/vonos/provision/provision.sh
UTF-8
971
3.015625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash start_seconds="$(date +%s)" echo "Provisioning ONOS workstation" VHOME='/home/vagrant' sudo apt-get update sudo apt-get -y -f install # Install Openssh server sudo apt-get install -y openssh-server sudo apt-get install -y git git-core git-review # First install java echo "Installing Java" sudo...
true
5dbdaed626fd61af6cd4709ffdff40d029180b5a
Shell
hickmanz/jukebox_socket-server
/gce/startup-script.sh
UTF-8
1,459
3.1875
3
[]
no_license
set -v # Talk to the metadata server to get the project id PROJECTID=$(curl -s "http://metadata.google.internal/computeMetadata/v1/project/project-id" -H "Metadata-Flavor: Google") # Install dependencies from apt apt-get update apt-get install -yq ca-certificates git nodejs build-essential supervisor # In...
true
b3f6042051191ee4492660dd4c44011137deaa67
Shell
D-TACQ/acq400_sysconfig
/acq1014/master/acq1014_independent
UTF-8
638
2.515625
3
[]
no_license
#!/bin/sh PRE=${PRE:-0} POST=${POST:-25000000} EDGE=${1:-rising} postlen=${1:-25000000} HN=$(hostname) PN=$(caget -t ${HN}:MIRROR_HOST) if [ $PRE -eq 0 ]; then MODE=post else MODE=prepost fi caput $HN:MIRROR_EN 1 echo call acq1014_select_trg_src ext2 $MODE $EDGE acq1014_select_trg_src ext2 $MODE $EDGE #caput $HN:M...
true
5b2c0de3a9043fc9811be10f1243ce68ad1c98be
Shell
iampuma/drop
/scripts/_start.sh
UTF-8
1,234
2.609375
3
[]
no_license
# Replace the default vhost with our own. sudo rm /etc/nginx/sites-available/default sudo ln -s /usr/share/nginx/init/default /etc/nginx/sites-available/default # Replace the default php.ini with our own. sudo rm /etc/php/5.6/fpm/php.ini sudo ln -s /usr/share/nginx/init/php.ini /etc/php/5.6/fpm/php.ini # Set Xdebug s...
true
7d0edf2b0077b24db9325909f6f020020e6aa063
Shell
tapasjain/oga-uct
/Results_with_time/RESULTS_race/run_base.sh
UTF-8
407
2.890625
3
[]
no_license
echo -n '' > BASE/baseNew.txt for n in 30 60 100 150 200 300 500 700 1000 1300 1600 do echo $n ./../../mdp-engine-master/race/race_NEW -f -a 0 -h 0 -s 0 -t 1000 ../../mdp-engine-master/race/tracks/barto-big.track random uct $n 50 0 > BASE/res$n echo $n $(grep -n "uct(random" BASE/res$n | awk '{print $2,$3,$5}') >...
true
ddbee8209b46aeeadcfb6dc0e1860ef6e67e2a4c
Shell
anthezium/dotfiles
/.xsession
UTF-8
2,181
2.890625
3
[]
no_license
#!/bin/bash #MGR="kde" #MGR="xfce" MGR="xmonad" if [ "$MGR" = "xmonad" ]; then ## Set up icon tray first so applets have somewhere to go trayer --edge top --align right --SetDockType true --SetPartialStrut true \ --expand true --widthtype percent --width 10 --transparent true --alpha 0 --tint 0x00ff00 --height...
true