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
feeeea46ecc8352794d706880a9331ec586432fc
Shell
slzzp/install_script
/debian/install_apr-util.sh
UTF-8
1,825
3.671875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/sh # ref: http://apr.apache.org/download.cgi?Preferred=http%3A%2F%2Fftp.twaren.net%2FUnix%2FWeb%2Fapache%2F URL_APR_UTIL='http://ftp.twaren.net/Unix/Web/apache//apr/apr-util-1.6.1.tar.gz' BASENAME='/usr/bin/basename' MAKE='/usr/bin/make' RM='/bin/rm' SED='/bin/sed' TAR='/bin/tar' WGET='/usr/bin/wget' # ------...
true
e8ea1ad49a4481558cc71e88f0abf82b362f63b5
Shell
mixi-inc/techbookfest
/template/script/upload-pdf-to-slack.sh
UTF-8
622
2.953125
3
[]
no_license
#!/bin/bash # ディレクトリ移動 #cd techbookfest-template # 版情報作成 PR_NUM=$(echo ${CODEBUILD_SOURCE_VERSION} | sed 's/pr\/\(.*\)/\1/') HISTORY="<https://github.com/${REPO}/issues/${PR_NUM}|PR-${PR_NUM}>" echo ${HISTORY} # Slack 投稿用コメント作成 SLACK_COMMENT="【"${HISTORY}"】の原稿ができました" # Slack 投稿コメント確認 echo "Slack 投稿コメント確認" echo ${SL...
true
43f7d5e2c3fca646e84927253aa3020042c96f74
Shell
akshayMpatel/OcdMriMl
/bash_scripts/rename_nii.sh
UTF-8
273
3.234375
3
[]
no_license
#!/bin/bash #rename *.nii file to patient_name.nii (from directory name) for d in */; do name=${d%/*} cd $d if [ -e *.nii ] then echo renaming ${./*.nii} to ${${name}.nii} # mv ./*.nii "${name}.nii" # cp "${name}.nii" /home/bran/Desktop/FtoDo fi cd .. done
true
36d3fd5a6728ec757e47c1d3b21a1bc68c904b04
Shell
crazycode/dotfiles
/homefile/bin/play_svnignore.sh
UTF-8
656
3.421875
3
[]
no_license
#!/bin/sh function svn_ignore() { echo "process $1" #svn propget svn:ignore $1 | grep -v ^$ > svn_ignore.txt touch svn_ignore.txt for ignorable in '.settings' 'lib' 'dist' 'eclipse' '.project' '.classpath' 'target' '*.ipr' '*.iml' '.idea' '.git' '.gitignore' '.DS*' '*.pyc' 'out' 'precompiled' 'modules' ...
true
0f73f38111b3965e4bcaa2adc3ad673fc4849186
Shell
StanfordSNR/puffer-statistics
/scripts/upload_public_results.sh
UTF-8
716
3.359375
3
[]
no_license
#!/bin/bash -ue # Upload day's results to gs (expt settings and CSVs were already uploaded) cd "$LOCAL_DATA_PATH"/"$END_DATE" # Upload logs except private err and expt settings # (TODO: update if private filename changes) public_logs=$(ls -d logs/* | grep -v "influx" | grep -v "$EXPT") gsutil cp $public_logs "$DATA_B...
true
f84aa087a63c6baaaeaf5f26b2281b027f060b76
Shell
sanyaade-teachings/Virtflex
/numa_scripts/setup.sh
UTF-8
2,456
2.828125
3
[]
no_license
echo "==============set up NPB============" sudo apt-get update sudo apt-get install g++ gfortran linux-tools-common linux-tools-generic wget git unzip cmake gdb cd wget https://www.nas.nasa.gov/assets/npb/NPB3.3.1.tar.gz #wget http://parsec.cs.princeton.edu/download/3.0/parsec-3.0.tar.gz tar -xzf NPB3.3.1.tar.gz #ta...
true
dbd60663e90f32a580961910384bb48706c065da
Shell
mfalcioni1/ml-engineering
/big-data-ml-fundamentals/coursework/run_eq_analysis.sh
UTF-8
593
2.6875
3
[]
no_license
#!/bin/bash # Installing Git # sudo apt-get install git -y git clone https://www.github.com/GoogleCloudPlatform/training-data-analyst # copy important files cp -rf ./training-data-analyst/courses/bdml_fundamentals/ . # clean up the giant ass repo that comes with it rm -rf ./training-data-analyst # start demo cd ./b...
true
c08bc23c60a68e65d444c4757aa85865cdd7af42
Shell
erdanieee/nagen
/VariantRecalibration.sh
UTF-8
3,373
2.5625
3
[]
no_license
#!/bin/bash #$ -V #$ -N VariantRecalibration #$ -m ea #$ -cwd #$ -o /datos/nagen/jobs/hardfilters.stdout #$ -e /datos/nagen/jobs/hardfilters.stderr #$ -w e ##$ -l h_vmem=16G #$ -l m_core=4 # Apply variant recalibration to a VCF file # https://software.broadinstitute.org/gatk/download/bundle # https://software.broadins...
true
c69061519fb1ad38e791115e428e9a97308b872b
Shell
Osborn28/y-vilib
/scripts/mode_max_p_denver.sh
UTF-8
321
2.515625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash echo "Enabling Max-P Denver" echo " Denver cores: 1, max 2.0 GHz" echo " ARM-A57 cores: 1, max 2.0 GHz" echo " GPU: max 1.12 GHz" sudo nvpmodel -m 4 if [ -f ~/jetson_clocks.sh ]; then # For JetPack 3.3 and below sudo ~/jetson_clocks.sh --show else # For JetPack 4.2 and above sudo jetson_clocks --show fi...
true
256e1096d8254010622f8e2e8d664960ffa4fbed
Shell
iamrish/All-Language-Compiler
/compile
UTF-8
2,328
3.140625
3
[]
no_license
#!/bin/bash foo=$1 for (( i=0; i<${#foo}; i++ )); do T=${foo:$i:1} if [ $T == "." ]; then EXT=$T pos=$i elif [[ $pos<$i ]] then EXT="$EXT$T" fi done if [ $EXT == ".c" ]; then eval "\time -f '%e' gcc -o c $1" ...
true
760867ba9e8301ec25f85d19d13d861726174a21
Shell
Edunga1/dotfiles
/setup.sh
UTF-8
1,019
3.65625
4
[]
no_license
#!/bin/bash set -e step () { printf "\nSetting up for $1...\n" } # $1: source of link # $2: destination of link link () { if [ -e $2 ]; then echo "$2 - skipping, already linked" return 0 fi echo "$2 - linking" ln -sr $1 $2 } # $1: source of link # $2: destination of link copy () { if [ -e $2 ]; ...
true
99cc2889e1439eaf322d88c54763ae6da324fafc
Shell
AnClark/BackItUp
/src/apprestore.sh
UTF-8
822
3.453125
3
[ "MIT" ]
permissive
#!/system/bin/sh internal_sd="/data/media/0" bak_dir=${internal_sd}/_appbak apk_bak_name=apks.tar.gz data_bak_name=data.tar.bzip2 mark=/data/app/backitup.mark if [ ! -e ${bak_dir} ]; then echo "No backup archive found. Exiting." exit -1 fi if [ ! -e ${bak_dir}/${apk_bak_name} -o ! -e ${bak_dir}/${data_bak_name} ...
true
e39348749a870b93cec61e3ade15b4c4676786f2
Shell
fantomgs/dph153-binwalk
/fs2/etc/init.d/startmode
UTF-8
1,272
3.546875
4
[]
no_license
#!/bin/bash TEMP_FILE_244=/sys/bus/i2c/devices/0-0048/temp_max TEMP_FILE_282=/sys/bus/i2c/devices/0-0048/temp1_max SW_DESC=/etc/sw_description.dat GETVARVAL=/opt/ipaccess/Utils/scripts/getVarVal FS_TYPE=`$GETVARVAL $SW_DESC FS_VARIANT` FSNUM=`echo $FS_TYPE | cut -c1-3` if [ "$FSNUM" == "244" ]; then echo ec...
true
467ce5c55c55bb7ae9cbbf2dc695b70a851f7930
Shell
chrisob/qpid-broker-j-docker
/hooks/build
UTF-8
626
3.21875
3
[ "MIT" ]
permissive
#!/bin/bash # $IMAGE_NAME and $DOCKER_TAG are injected by docker hub into the build # https://docs.docker.com/docker-hub/builds/advanced/ if [ -z "${IMAGE_NAME}" ]; then DOCKER_TAG="latest" IMAGE_NAME="chrisob/qpid-broker-j-docker:${DOCKER_TAG}" fi if [ "${DOCKER_TAG}" != "latest" ]; then BROKER_J_VERSION="${D...
true
01a3611fe6470b09b10a0a96969fe7e20e32c3e5
Shell
billytcl/EXB
/scripts/build_consensus_decoder.sh
UTF-8
261
2.921875
3
[]
no_license
SCRIPTS_DIR=$1 for file in `cd analysis/exb_stats/; ls *.dec.out`; do echo -e "nice $SCRIPTS_DIR\c" echo $file | awk -F "." '{print("/scripts/exb_consensus_parallel.py -i analysis/exb_stats/"$1".dec.out -o analysis/exb_stats/"$1".cd.out -n 40")}'; done;
true
a6296376dedf777d0caebb5970426399d53d6b6a
Shell
morgango/honey
/bin/load.sh
UTF-8
1,064
3.59375
4
[]
no_license
#!/bin/bash export BASE_DN="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.." cd $BASE_DN export BIN_DN=$BASE_DN/bin export DATA_DN=$BASE_DN/data export LOAD_DN=$BASE_DN/load export MAP_DN=$BASE_DN/map export TMP_DN=$BASE_DN/tmp export VIZ_DN=$BASE_DN/viz cd $OLDPWD mkdir -vp $TMP_DN CONFIG=${LS_CONFIG:-"$LOA...
true
70e3f86e8399c04fe8dbfd2d6d7d4c37c9d3914d
Shell
wilsonmr/eddie_closure_pipeline
/templates/setup.sh
UTF-8
611
2.515625
3
[]
no_license
#!/bin/bash # Grid Engine options (lines prefixed with #$) # Set Name on cmd line #$ -e ./output/$JOB_NAME.log #set output to same file #$ -o ./output/$JOB_NAME.log #set cwd (~/<job_id>) #$ -cwd #resources (time and memory) per replica #$ -l h_rt=00:25:00 #$ -l h_vmem=4G # email on abort (a) only, if you wish you can g...
true
1db730abd5c8bb1cd9ce3325c8de3683dba604dc
Shell
os-autoinst/openqa-logwarn
/deploy
UTF-8
169
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh -e for host in o3 osd ; do rsync -aHP logwarn_openqa ${host}:~/bin/ ssh ${host} "sudo mv ~okurz/bin/logwarn_openqa /usr/local/bin/logwarn_openqa" done
true
9ad833d4fb92c3e77775a69a2b41e8c324af0ebc
Shell
gnperdue/jburkardt-cpp
/stroud/stroud_prb.sh
UTF-8
511
3.078125
3
[]
no_license
#!/bin/bash # g++ -c -g -I/$HOME/include stroud_prb.cpp >& compiler.txt if [ $? -ne 0 ]; then echo "Errors compiling stroud_prb.cpp" exit fi rm compiler.txt # g++ stroud_prb.o /$HOME/libcpp/$ARCH/stroud.o -lm if [ $? -ne 0 ]; then echo "Errors linking and loading stroud_prb.o." exit fi # rm stroud_prb.o # mv a....
true
e0c385c029b4ae75a976bcd45a6bb8ae27e7fcb8
Shell
brownman/do_for_others_first_old
/.CODE/RUNNERS/BANK/wrapper/0.0.1/BANK/sctrace.sh
UTF-8
1,009
3.84375
4
[ "MIT" ]
permissive
#! /bin/bash #info: tracing... using proc/ # FILE : sctrace.sh # LICENSE : GPL v2.0 (only) # PURPOSE : print the recursive callers' list for a script # (sort of a process backtrace) # USAGE : [in a script] source sctrace.sh # # TESTED ON : # - Linux, x86 32-bit, Bash 3.2.39(1)-release # ...
true
e96be832ee0bc35493ca3d8b674cecf1ffe88082
Shell
georgef-dev/tools
/filteredTop.sh
UTF-8
315
2.53125
3
[]
no_license
#!/bin/bash #title :filteredTop.sh #description :Filters 'top' output. #author :fsgeorgee #date :20170916 #version :0.1 #usage :bash filteredTop.sh keyword #============================================================================== top -c -p $(pgrep -d',' -f "$1")
true
71c7b9325df218012469e1a2cf382e1fc509fbfa
Shell
bobbyzhu/devstrap
/scripts/install/ubuntu/main.sh
UTF-8
2,591
3.5625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash cd "$(dirname "${BASH_SOURCE[0]}")" \ && . "helper.sh" \ && cd - &> /dev/null # Register apt installer regist_pkg_installer "apt" "install_package" function pre_install() { update } function post_install() { : } function install_docker() { execute "sudo apt-key adv --keyserv...
true
b54f6bdbbcd9d596b91adc2c7bbf175b081c519d
Shell
nzj1981/linushell
/optimizessh.sh
UTF-8
814
3.265625
3
[]
no_license
#!/bin/bash num=$# if [ ${num} -eq 2 ]; then #backup files /bin/cp /etc/ssh/sshd_config /etc/ssh/sshd_config_$2 /bin/cp /etc/sudoers /etc/sudoers_$2 /bin/cp /etc/login.defs /etc/login.defs_$2 /bin/cp /etc/pam.d/su /etc/pam.d/su_$2 #user add /usr/sbin/useradd autumner /bin/echo "$1" | /usr/bin/passwd --stdin autumner #...
true
ac3bd144716e071f2b4d6b61084dcb149c2172f4
Shell
858806258/vos
/getip.sh
UTF-8
343
3.046875
3
[]
no_license
#!/bin/bash #解析得到myku.kmdns.net动态域名IP getip=`dig +short ssh.1nth.com` #得到原来allow文件中的IP oldip=`cat /etc/hosts.allow|grep sshd |awk -F':' '{print $2}'|tail -n1` if [ $getip != $oldip ] then sed -i "s/$oldip/$getip/g" /etc/hosts.allow else exit fi #获取ip地址 #wget -qO- -t1 -T2 ipv4.icanhazip.com
true
ca3683bc1dcf620b728e27ff696a27d339c61397
Shell
diku-dk/futhark-fhpc17
/mkresults.sh
UTF-8
953
3.46875
3
[]
no_license
#!/bin/sh set -e benchmark=$1 data=$2 bin/futhark-c benchmarks/${benchmark}.fut bin/futhark-c benchmarks/${benchmark}_segmented.fut mkdir -p benchmarks/${benchmark}_expected generate() { k=$1 logsegments=0 while [ $logsegments -le $k ]; do logsegsize=$(($k-$logsegments)) infile="benchma...
true
b9cc0959703ec3ad7c04019ff5f63542f5a2e995
Shell
dixudx/chatops-vagrant
/provision/apt_mirror.sh
UTF-8
322
3.125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash source /vagrant/provision/utils.sh if [ -f /vagrant/provision/sources.list ]; then exec_cmd "cp -f /etc/apt/sources.list /etc/apt/sources.list.bak" exec_cmd "cp -f /vagrant/provision/sources.list /etc/apt/sources.list" else print_status "file provision/sources.list does not exist." && bail f...
true
cb7c9c16d0a48dd81a513e7f80afe6e4bada8c61
Shell
xidam27/DVB-T-Scripts
/export/conv2hls.sh~
UTF-8
762
2.609375
3
[]
no_license
#!/bin/bash SOURCE=$1 TARGET=$2 export FFREPORT=file=/tmp/BBC_ONE_HD_ffreport.log:level=32; mkdir -p ${TARGET}; ~/bin/ffmpeg -report -nostats \ -i "${SOURCE}" \ -flush_packets 0 \ -threads 0 \ -c:v libx264 -profile:v baseline -strict -2 -crf 8 -maxrate 2200k -bufsize 1835k -pix_fmt yuv420p -flags -global_header -l...
true
7683ff73176213a916d05f9ac0c782187cd7aede
Shell
olegkyka/LFS
/lfs-stable-x86_64/02_build_basic_system/062_gzip.sh
UTF-8
1,589
3.8125
4
[ "MIT" ]
permissive
#! /bin/bash PRGNAME="gzip" ### Gzip (file compression utility) # Программы для сжатия и распаковки файлов # http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gzip.html # Home page: http://www.gnu.org/software/gzip/ # Download: http://ftp.gnu.org/gnu/gzip/gzip-1.10.tar.xz ROOT="/" source "${ROOT}check_env...
true
3027e48a4be5c71040c4902442154d04757120f4
Shell
mmurray/cvdn
/web/mturk/docker/run_www.sh
UTF-8
517
2.703125
3
[ "MIT" ]
permissive
#!/bin/bash export MATTERPORT_DATA_PATH=/media/jdtho/shiner/ # Run Apache/PHP with the WWW directory docker run -it --rm \ -e "R2R_DATA_PREFIX=R2R_data" \ -e "CONNECTIVITY_DATA_PREFIX=connectivity" \ -e "MATTERPORT_DATA_PREFIX=data" \ -v $(pwd)/www:/var/www/site \ -v $(pwd)/../../tasks/R2R/data:/v...
true
f29c9696fd0bd2d4d864779c68176eda22499414
Shell
Moatasem-Elsayed/Bash_Basics
/0Eprogramloop.sh
UTF-8
308
3.46875
3
[]
no_license
#!/bin/bash #While Loop Example with a Break Statement echo "Countdown for Website Launching..." read -p "Please insert number to count down" i while [ $i -ge 1 ] do if [ $i == 2 ] then echo "Mission Aborted, Some Technical Error Found." break fi echo "$i" (( i-- )) done
true
fd834d54f19b30f5857efda3f9be88a8f0e7309b
Shell
maxpark/bootFromExternalStorage
/get_jetson_files.sh
UTF-8
2,405
4.125
4
[ "MIT" ]
permissive
#!/bin/bash # Get the Jetson BSP and rootfs, then prepare for flashing # # MIT License # Copyright (c) 2021, JetsonHacks # # Sanity warning; Make sure we're not running from a Jetson # First check to see if we're running on Ubuntu # Next, check the architecture to make sure it's not aarch64, not a Jetson JETSON_FOLD...
true
be257014edcfe5542e97f42709677f990eb9c172
Shell
Cryolite/intro
/gcovr/checkout.sh
UTF-8
435
3.21875
3
[]
no_license
#!/usr/bin/env bash PS4='+gcovr/checkout.sh:$LINENO: ' set -ex intro_root="$(cd "$(dirname "$0")"; cd ..; pwd)" grep -Fq c866f004-83df-4d02-8317-05ddfdd8bc1c "$intro_root/gcovr/checkout.sh" [ $# -eq 0 ] (cd "$intro_root" && "$intro_root/util/git-checkout.sh" \ --url 'https://github.com/gcovr/gcovr.git' ...
true
6555403ebb8b212537fa51b1ca95d5046058c9f0
Shell
extremeFunk/k8-jenkins-machine-config
/jenkins-init.sh.tmp
UTF-8
1,325
2.875
3
[]
no_license
#!/bin/sh cd /home/ubuntu echo "########################################" echo "###### Installing Docker ######" echo "########################################" sudo curl -sSL https://get.docker.com/ | sh sudo usermod -aG docker ${USER} sudo chmod 666 /var/run/docker.sock mkdir jenkins_home sudo chmod 777 jenk...
true
7951fe2e4dcb467409106d958a73f8269455f5d2
Shell
meekrob/onish-summit-pipelines
/PeakCalling/bam-to-bed.sbatch
UTF-8
420
2.75
3
[]
no_license
#!/bin/bash #SBATCH --nodes=1 #SBATCH --ntasks=12 #SBATCH --time=0:07:00 #SBATCH --qos=normal #SBATCH --output=outfiles/%j-bam-to-bed.out echo "[$0] $SLURM_JOB_NAME $@" # log the command line PROJ_DIR=/projects/dcking@colostate.edu source $PROJ_DIR/paths.bashrc infile=$1 outfile=${infile/bam/bed} cmd="bedtools bamto...
true
e40c06d11866bf8a63762af0e170fe7244f4606e
Shell
Alexandra-Sofia/Server-Scrips
/SNMP/snmpscripts/run
UTF-8
2,605
2.84375
3
[]
no_license
#!/bin/bash clear AGENT="-u bootstrap -l authPriv -a MD5 -x DES -A temp_password -X temp_password 192.168.1.138" DEBUG=false #https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-an-snmp-daemon-and-client-on-ubuntu-14-04 #snmp_command -u username -l authPriv -a MD5 -x DES -A temp_password -X t...
true
8072bb9e3f97390212d23ab725c560a39c637948
Shell
Dinglesworth/bin
/sysinfo
UTF-8
412
2.609375
3
[]
no_license
#!/bin/bash wm=bspwm distro="$(cat /etc/*-release | grep PRETTY_NAME | cut -d '=' -f2 | tr -d '"')" packages="$(pacman -Qq | wc -l)" printf " \e[0m\n" printf " \e[1;34m distro \e[0m$distro\n" printf " \e[1;34m packages \e[0m$packages\n" printf " \e[1;34m wm \e[0m$wm\n" printf " \e[1;34m font \...
true
09cb202a075397fe672e9f881a6b6cfb9607a050
Shell
Chris00/ocaml-cstruct
/select_ppx_version.sh
UTF-8
344
2.734375
3
[ "ISC" ]
permissive
#!/bin/sh -e V=`ocamlc -version` case $V in 4.02*) SRC=402 ;; 4.03*) SRC=403 ;; *) echo Unsupported OCaml version $V ;; esac echo "(* Do not edit this autogenerated file, edit ppx_cstruct.$SRC.ml instead *)" > ppx/ppx_cstruct.ml cat ppx/ppx_cstruct.$SRC.ml >> ppx/ppx_cstruct.ml echo Generating ppx/ppx_cstruct.ml from ...
true
3a6f22e9301d0400258704c0a51a0fdccf97f512
Shell
chmodawk/lemp
/vanilla-lemp/pinch_library.sh
UTF-8
8,644
3.34375
3
[]
no_license
#!/bin/bash -x # # drewsymo/Pinch # Library for Pinch installer # # Do not deploy this script directly. # # @package Pinch 2.1 # @since Pinch 1.0 # @author Drew Morris # @author Vincent van daal # # Essentials function pinch_essentials() { # Update System yum -y update # Remove Postfix and dependencies of instal...
true
a4623b8798428293ae4e02300c039f617f1ff567
Shell
AndelaOSP/wire
/.circleci/setup-heroku.sh
UTF-8
1,039
3
3
[ "MIT" ]
permissive
#!/bin/bash git remote add heroku https://git.heroku.com/wire-front-develop.git wget https://cli-assets.heroku.com/branches/stable/heroku-linux-amd64.tar.gz sudo mkdir -p /usr/local/lib /usr/local/bin sudo tar -xvzf heroku-linux-amd64.tar.gz -C /usr/local/lib sudo ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/h...
true
8210c8fdcb75cdb30c1620e2e7fa5fb17c4010af
Shell
zixpo/candybar
/send-telegram.sh
UTF-8
585
3.046875
3
[ "Apache-2.0" ]
permissive
LAST_COMMIT_LOG=$(git log -1 --pretty=format:'%s %b') if !([[ "$GITHUB_EVENT_NAME" == "release" ]] || [ "$(echo "$LAST_COMMIT_LOG" | grep -c '\[make apk\]')" -gt 0 ]); then exit 0 fi apk_name='CandyBar-' if [[ "$GITHUB_EVENT_NAME" == "release" ]]; then apk_name+="$GITHUB_REF_NAME" else apk_name+=$(date +%d%m%Y-...
true
c7b89725026b695a2c2082942e97d4a15e585687
Shell
treydock/treydock-home-scripts
/handbrake-cli.sh
UTF-8
326
2.734375
3
[]
no_license
#!/bin/bash INPUT="$1" OUTPUT="$2" if [[ "x${INPUT}" = "x" || "x${OUTPUT}" = "x" ]]; then echo "Must provide input and output" echo "handbrake-cli.sh INPUT OUTPUT" fi HandBrakeCLI --preset 'Fast 720p30' \ --input "${INPUT}" --output "${OUTPUT}" \ --optimize --align-av \ --all-audio --ab 128 \ --all-subti...
true
484188a196e1a2b9cce5dd04e3f7a7a4e77f4f7b
Shell
zinon/StatAnalysis
/WorkspaceDiagnosis/NLLprofiler/batch_submit.sh
UTF-8
1,629
3.234375
3
[]
no_license
#!/bin/sh source ../NuisParamRepo.sh DRY=false WSdir=Run1PaperHadhad_MVA WSname=r160507 WSforNuisRepo=$WSname Scenario="" Category=combination WSfolder=${WSdir}_${WSname} getNParray $WSdir $WSforNuisRepo $Category ${Scenario} NPlist=(${rtr[@]}) WSFILE=/afs/cern.ch/work/z/zenon/Physics/Higgs/HSG4/software/hadhad/...
true
2c3f33c1816ee858f96ea9e4ea76044251292709
Shell
akretion/chefdk
/bundle_exec_wrapper
UTF-8
914
3.28125
3
[]
no_license
#!/usr/bin/env bash set -eo pipefail; if [[ ! -f .kitchen.yml ]]; then cp /.kitchen.sample.yml .kitchen.yml chmod 777 .kitchen.yml echo "Please customize the .kitchen.yml generated file and run the command again!" fi if [[ ! -f Berksfile ]]; then cp /Berksfile.sample Berksfile trap 'rm -f Berksfile Berksfil...
true
d30b9b222f0385d171eb33213b853947fba787ee
Shell
Serubin/dotfiles
/packages/cli/tmux/tmux.sh
UTF-8
422
2.96875
3
[ "MIT" ]
permissive
#!/bin/bash ######################################## # Base install of vim # ViImproved ######################################## echo "Backing up previous tmux config" if [ -r "${HOME}/.tmux.conf" ]; then mv ${HOME}/.tmux.conf ${HOME}/.dotfiles-bak/ fi #config install ln -sfv "${PACKAGE_INSTALL}/config/.tmu...
true
9be88a6c56c6eb8ffae3ef0a1aa5b8156981918c
Shell
matplo/hepsoft
/bin/templates/install_root_w_cmake.sh
UTF-8
3,857
3.71875
4
[]
no_license
#!/bin/bash savedir=$PWD optstring="bcd:ghinv:o:m" function usage { ex=`basename $BASH_SOURCE` echo "[i] usage: $ex $optstring" echo " directory <-d> < "$xdir" >" echo " version <-v> < "$version" >" echo " git clone [-g] [ "$clone" ]" echo " configure [-c] [ "$configure" ]" echo " con...
true
1c8be4881aee0f1d64f52ee9cbf82f78e8ca3031
Shell
MaximumEndurance/BashScripts2
/Q3
UTF-8
2,017
4.125
4
[]
no_license
#!/bin/bash # Some extensions in myopen.cfg have been changed duo to incompatibility of paths in my system if [ $# -ne 1 ] then echo "Please enter file name. Thank You!" exit # is being maintained as return status for failure fi file="myopen.cfg" file_to_execute=$1 colon_location=0 ext_arr=() loc_arr=() while rea...
true
bfb2d6689acc4832bd6b11a21f927355f1d4f70e
Shell
lisuke/repo
/archlinuxcn/taglib-extras/PKGBUILD
UTF-8
907
2.8125
3
[]
no_license
# Contributor: Antonio Rojas <arojas@archlinux.org> # Contributor: Tobias Powalowski <tpowa@archlinux.org> # Maintainer: Stefan Husmann <stefan-husmann@t-online.de> pkgname=taglib-extras pkgver=1.0.1 pkgrel=8 pkgdesc="Additional taglib plugins" arch=('x86_64' 'aarch64') url="https://developer.kde.org/~wheeler/taglib.h...
true
d4eb119a32cf4646a77efc171aef63a302b1d433
Shell
sinfocol/evilgrade
/extra/gen-self-cert.sh
UTF-8
303
3.203125
3
[]
no_license
if [ $# -ne 1 ] then echo "$0 [host_name]" exit 0 fi HOST="$1" openssl genrsa -out key.pem 1024 openssl rsa -noout -text -in key.pem openssl req -new -key key.pem -out req.pem openssl req -x509 -key key.pem -in req.pem -out cert.pem -days 365 mv cert.pem "$HOST-cert.pem" mv key.pem "$HOST-key.pem"
true
4b1522d5f606f1de95444de0f2ff063c74c34d40
Shell
lucidworks/streams
/scripts/start-proxy.sh
UTF-8
680
3.234375
3
[]
no_license
#!/bin/bash NEW_UUID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 4 | head -n 1) SERVER_NAME=wisdom-dev-$NEW_UUID gcloud compute instances create $SERVER_NAME \ --machine-type "n1-standard-1" \ --image "ubuntu-1604-xenial-v20170811" \ --image-project "ubuntu-os-cloud" \ --boot-disk-size "20" \ --boot-disk-type "pd-...
true
8fff8ae1fd27c3615a799c948fcb9ff5162187c0
Shell
willvanwazer/cloud-compose-cluster
/tests/configs/subtree-with-overrides/cloud_init.sh
UTF-8
543
2.59375
3
[ "MIT" ]
permissive
#!/bin/bash # system.mounts.sh mkfs -t ext4 /dev/xvdc echo -e '/dev/xvdc\t/data/mongodb\text4\tdefaults,noatime\t0\t0' >> /etc/fstab mkdir -p /data/mongodb mount /data/mongodb # docker_compose.run.sh cat << EOF > /root/docker-compose.yml mongodb: container_name: mongodb command: --shardsvr --replSet rs0 --dbpath ...
true
0e58f72c73f645023889695d318a6c7e70a31454
Shell
sethalves/hifi-content
/skybox-1/make-povray-input.sh
UTF-8
430
3.015625
3
[]
no_license
#!/bin/bash L_SYSTEM_TREE=../L-system-tree/L-system-tree IFS=' ' while read -ra treespec do X=${treespec[0]} Z=${treespec[1]} Y=${treespec[2]} R=${treespec[3]} S=${treespec[4]} W=${treespec[5]} echo ${L_SYSTEM_TREE} -s $S -p $X $Y $Z -r 0 $R 0 -v -w $W -t iixxyiO -o tree.pov 1>&2 ${L_S...
true
b0f929d849cb5800a80403457d1ffc162670fef1
Shell
pieterhelsen/chia-tools
/create-mountdirs.sh
UTF-8
436
3.796875
4
[ "MIT" ]
permissive
if [ -z "$2" ] then for i in $(eval echo "{01..99}") do if [ ! -d $1/$i ] then echo "Creating directory: $1/$i" sudo mkdir $1/$i else echo "$1:$i: Directory exists. Skipping." fi done else for i in $(eval echo "{01..$2}") do if [ ! -d $1/$i ] then echo "Creating...
true
574642560e56fef7ed99a004a80d138cdc489ad4
Shell
kalebmorris/task-bench
/test_all.sh
UTF-8
5,498
3.140625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e if [[ ! -d deps ]]; then echo "The directory deps does not exist." echo "Please run ./get_deps.sh and try again." false fi source deps/env.sh basic_types="trivial no_comm stencil_1d stencil_1d_periodic dom tree fft nearest" extended_types="$basic_types all_to_all" compute_kernel="-ke...
true
3cab19a3fb005a39426b79dc2dfd21aaa9bd9235
Shell
fuzzygroup/cdc
/cdc.sh
UTF-8
1,698
3.59375
4
[]
no_license
#!/usr/bin/env bash # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE # Version 2, December 2004 # # Copyright (C) 2013 Mathieu Robardey <offim.r@gmail.com> # # Everyone is permitted to copy and distribute verbatim or modified # copies of this license document, and changing it is allowed as l...
true
38d8cead41c3e6d192cf5ffc9851619d9298afc6
Shell
OpenMandrivaAssociation/postfix
/postfix-chroot.sh
UTF-8
20,809
4
4
[]
no_license
#!/bin/sh # # postfix-chroot.sh - enable or disable Postfix chroot # # (C) 2003 Luca Berra <bluca@vodka.it> # # originally based on postfix-chroot.sh # (C) 2003 Simon J Mudd <sjmudd@pobox.com> # # This script is intended to enable you to enable or disable the Postfix # chroot environment. # # License: # This program...
true
e5f60f40dedec8cc48dbb05f8103a0701be0cb97
Shell
swwwww/wft-code
/bin/resource/lnmp/shell/qt_install_env.sh
UTF-8
2,346
2.84375
3
[]
no_license
#!/bin/bash #set -x yum install zip -y yum install unzip -y # 1.unzip lnmp env mirror_dir=/root/mirror/ lnmp_dir=${mirror_dir}lnmp/ unzip ${mirror_dir}lnmp.zip -d ${mirror_dir} ## 1-1.fix yum repo cp ${lnmp_dir}/yum/* /etc/yum.repos.d -rf ## 1-2.yum install env dos2unix ${mirror_dir}lnmp/shell/qt_yum_install.sh sh ...
true
ca12d306049705d3ded355908a2e11bc68f3c11f
Shell
delkyd/alfheim_linux-PKGBUILDS
/bandit-git/PKGBUILD
UTF-8
964
2.78125
3
[]
no_license
# Maintainer: Jelle van der Waa pkgname=bandit-git pkgver=0.10.1.8.g18285c1 pkgrel=1 pkgdesc="Bandit is a security linter for Python source code, utilizing the ast module from the Python standard library." license=("APL") url="https://wiki.openstack.org/wiki/Security/Projects/Bandit" depends=('python2' 'python2-yaml') ...
true
f6114e6afc45d4835a3fd9bef807244dcea7adda
Shell
cuongnb/btm
/new_code/drop_gibbs_version2/script/runDropObtm.sh
UTF-8
1,379
3.3125
3
[]
no_license
#!/bin/bash # run an toy example for BTM set -e K=$1 # number of topics W=89474 # vocabulary size alpha=`echo "scale=3;50/$K"|bc` beta=0.01 n_day=294 batch_size=5000 r_drop=$2 t_drop=$3 input_file=../data/tweet.txt.sf output_dir=../output/ dwid_dir=${output_dir}doc_wids/ model_dir=${output_dir}$4/ voca_pt=${outp...
true
e3d1db23abcd7b97bbce8e69cece2391f06e785c
Shell
mpl/traefik
/script/make.sh
UTF-8
644
3.859375
4
[ "MIT", "CC-BY-3.0" ]
permissive
#!/usr/bin/env bash set -e export GO111MODULE=on export GOPROXY=https://proxy.golang.org # List of bundles to create when no argument is passed DEFAULT_BUNDLES=( generate validate-lint binary test-unit test-integration ) SCRIPT_DIR="$(cd "$(dirname "${0}")" && pwd -P)" bundle() { local bundle="$1"; shift ...
true
a1dfa736fe52a1e68f1a387848915f53b199fa9c
Shell
adamczer/juav-docker-enviornment
/build/scripts/mvm-sim.sh
UTF-8
1,045
2.5625
3
[]
no_license
#!/bin/bash if [ ! -d /home/juav/ardupilot ]; then ln -s /home/juav/ardupilot-original /home/juav/ardupilot; fi; . ~/.profile cd JUAV-ardupilot mvn clean install -Dhttps.protocols=TLSv1.2 cd native-util/jni make sitl sudo ln -s /home/juav/JUAV-ardupilot/native-util/jni/lib/libNativeUtil.so /usr/lib/ cd ../../juav-n...
true
9cacfcfb39d63d4315e35adaaa56f9b4f6d4f166
Shell
wbotelhos/installers
/tomcat/install.sh
UTF-8
2,068
4.125
4
[ "MIT" ]
permissive
#!/bin/bash ################## # --- Common --- # ################## GRAY='\033[0;36m' GREEN='\033[0;32m' NO_COLOR='\033[1;0m' YELLOW='\033[1;33m' if [ $UID != 0 ]; then echo -e "${YELLOW}You need to be root!${NO_COLOR}\n" exit 1 fi FILE_PATH=$(echo $0 | sed 's,/install.sh,,g') ##################### # --- Vari...
true
f673cfcd33311b91ff8eb05c3b381682dab3fb99
Shell
arizvisa/dotfiles
/posix/bin/w
UTF-8
2,561
3.59375
4
[]
no_license
#!/bin/sh ## /usr/bin/w without depending on utmp ## thx to navs@thunkers for being a /bin/sh ninja _return="" ourtty=$( tty | cut -f3- -d / ) if [ $(uname) = "FreeBSD" ]; then all_ttys=$( /bin/ls -1 /dev/tty[vp]? ) list_controlling_pids() { _return=$( ps -a -o pid,state,tty | grep -v PID | grep ...
true
5c2264202c7546c8b70793b25815b6bda82f967e
Shell
jringstad/osprey
/platform/low-level-control-service/debian/make-deb
UTF-8
513
2.84375
3
[]
no_license
#!/bin/bash set -eu -o pipefail NAME=low-level-control-service TAG=$1 mkdir -p osprey-$NAME-$TAG/usr/local/bin cp ../osprey-low-level-control-service osprey-$NAME-$TAG/usr/local/bin/ mkdir -p osprey-$NAME-$TAG/lib/systemd/system/ cp misc/osprey-$NAME.service osprey-$NAME-$TAG/lib/systemd/system/ mkdir -p osprey-$NAME...
true
9f230cef6280b89d4ee431104e2efb34684f0860
Shell
AngieCastano/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/8-for_ls
UTF-8
164
3.328125
3
[]
no_license
#!/usr/bin/env bash #content of the current directory, list formated, name after the first dash LIST="$(ls)" for i in $LIST; do echo "$i"| cut -d "-" -f 2 done
true
5ac7d9f7857f13f077a9dfd924c710003ac4086e
Shell
Mange/dotfiles
/config/redshift/hooks/brightness.sh
UTF-8
709
3.625
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/sh # Set brightness via brightnessclt when redshift status changes # Set brightness values for each status. # Range from 1 to 100 is valid brightness_day="100%" brightness_transition="50%" brightness_night="20%" # Animating the change is currently not possible natively. # See https://github.com/Hummer12007/bri...
true
37144896755356d5696f510653a822edd91d26a8
Shell
mxklb/cuteproject
/pkgs/macOS.sh
UTF-8
3,666
4.03125
4
[ "MIT" ]
permissive
#!/bin/bash # This script creates a deployable macOS image (application.dmg) # # It moves all custom libs (frameworks) to the app bundle and # corrects local binary linker-paths accordingly. Finally Qt # and external libs are copied & linked to Frameworks folder. # # Note this script dependes on: # - otool (to detect c...
true
ba09881b90392fe427f049602ef122ee941c03bb
Shell
petronny/aur3-mirror
/tclgeomap/PKGBUILD
UTF-8
1,173
2.609375
3
[]
no_license
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org pkgname=tclgeomap pkgver=2.11.3 pkgrel=3 pkgdesc="Tcl/Tk extensions to read, manipulate, and display geographic data." arch=('i686' 'x86_64') url="http://www.tkgeomap.org/" license=('GPL' 'custom') depends=('tcl' 'glibc') source=(http://downloads.sourcef...
true
ea5ef2a59a55335588e2ca43aec62fb8747d8df0
Shell
kernsuite-debian/aips
/31DEC18/LNX64/UPDATE/UPDSRTUNQ
UTF-8
3,085
3.109375
3
[]
no_license
#!/bin/sh # UPDSRTUNQ #----------------------------------------------------------------- #! Process .UPD files ## Update #----------------------------------------------------------------------- #; Copyright (C) 1995, 1997, 2001 #; Associated Universities, Inc. Washington DC, USA. #; #; This program is free software;...
true
61ca0d4a0a712167af3a0d3c790cccb60d349cba
Shell
mozan/WSL-Dev-Provision
/install/DB-sqlite3.sh
UTF-8
293
3.015625
3
[]
no_license
#!/bin/bash # # SQLite3 if [ "$INSTALL_DB_SERVERS" == "y" ] && [ "$INSTALL_SQLITE3" == "y" ]; then echoBanner "DB - SQLITE3" checkIfInstalled "db-sqlite3" "DB - SQLITE3" if [ "$?" == "0" ]; then apt-get $APT_SILENCE install -y sqlite3 libsqlite3-dev setAsInstalled "db-sqlite3" fi fi
true
103a913ff55e3d22befe509e6b4f49a6485854ee
Shell
sky-wkk/tiefvision
/bin/similarity-db
UTF-8
1,394
3.390625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash trap 'exit 1' ERR ROOT=$(realpath $(dirname ${BASH_SOURCE[0]})/..) APP_FOLDER=$ROOT/src/torch if [ ! -z "$1" ]; then if [ "$1" != "--config" ]; then echo $"Usage: $0 [--config /path/to/config/file]" 1>&2 exit 1 elif [ ! -f "$2" ]; then echo "missing config file: $2" 1>&2 exit 1 fi ...
true
d0ba2b2f8f16e326d13f142465d7a316721fd701
Shell
redforks/Sinon.JS
/scripts/ci-test.sh
UTF-8
536
3
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -eu function finish { if [ -n "${TRAVIS+1}" ]; then echo "TRAVIS detected, skip killing child processes" else kill $(jobs -pr) fi } trap finish SIGINT SIGTERM EXIT echo starting buster-server ./node_modules/buster/bin/buster-server & # fork to a subshell sleep 4 # takes a whil...
true
3bda1cf894b9994c1307e78e9a3b5973101c954d
Shell
austinhappel/dotfiles
/personal/bin/convertAudio
UTF-8
984
3.9375
4
[]
no_license
#!/bin/bash printf "This baby converts your folder of .wav, .ogg, and .mp3 files into all the formats needed for HTML5 audio!\n\n" printf "Usage: cd /folder/to/files && sh path/to/convertAudio.sh\n\n" printf "Defaults to 128k bitrate.\n\n" echo "Choose what format are your files in:" echo "1) wav" echo "2) ogg" echo "...
true
6c665a5c0105df092094542e0198ac1312c3f2e2
Shell
EthanNeedNotApply/Comp2101
/bash/demo1.sh
UTF-8
230
3.03125
3
[]
no_license
#!/bin/bash # This is a scriptto practice variables export MYNAME="Ethan" mytitle="President" # echo $ weekday=$(date +%A) myhostname=$(hostname) echo "Welcome to Planet $myhostname, $mytitle $MYNAME" echo "Today is $weekday"
true
c29fa80535cdbe5d7a9e34a07580232da9fa3624
Shell
mahdizaabi/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/1-for_holberton_school
UTF-8
112
3.109375
3
[]
no_license
#!/usr/bin/env bash #print Holberton School 10 times a=$(seq 10) for _ in $a do echo "Holberton School" done
true
01809f78b322799a37e232fc43768862c1224a8e
Shell
SocialGouv/cdtn-monolog
/scripts/get_last_month_cache.sh
UTF-8
264
3.78125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash DATA_FOLDER="data-queries" if [ -z "$1" ]; then echo "Please provide the path to the cache folder" exit 1 fi rm -rf $DATA_FOLDER mkdir $DATA_FOLDER DATE=$(date -v -1m "+%Y-%m") echo "COPY DATA FROM LAST MONTH ${DATE}" cp $1/$DATE* $DATA_FOLDER/
true
57588aab2ce867d25f23b26645d6d09e474ad833
Shell
lkomoro/Marine_Turtle_Rapture_Methods
/Associated Scripts/run_angsd_50_ngscovar.sh
UTF-8
451
2.609375
3
[]
no_license
#!/bin/bash -l bamlist=$1 out=$2 nInd=$(wc $bamlist | awk '{print $1}') minInd=$[$nInd*5/10] echo $nInd echo $minInd ulimit -n 1500 angsd -bam $bamlist -out $out -minQ 20 -minMapQ 10 -GL 1 -SNP_pval 1e-06 -doMajorMinor 1 -doMaf 2 -minMaf 0.05 -minInd $minInd -doGeno 32 -doPost 2 gunzip ${out}.*.gz #count=$(sed 1d...
true
1be71597c3a039d060b11a3c8ad4d32c3c3e4d4c
Shell
uhulinux/ub-ubk4
/komi/install
UTF-8
427
2.625
3
[]
no_license
#!/bin/sh -eux DATAPATH="$UB_INSTALLDIR"/usr/share/games/komidata/ BINPATH="$UB_INSTALLDIR"/usr/bin/ MANPATH="$UB_INSTALLDIR"/usr/share/man/man6/ install -d -m 755 "$DATAPATH" "$BINPATH" "$MANPATH" install -m 755 komi "$BINPATH"/ install -m 644 komidata/* "$DATAPATH"/ cp komi.6 "$MANPATH"/ mv CHANGELOG.txt CHANGE...
true
28c8da7d86a6e1e9f5564a151da23cdaeb08bb27
Shell
luisodls/dui_prototyping
/lui_testing/bash_remote_test.sh
UTF-8
93
2.78125
3
[]
no_license
echo "Hi " SCRIPT=`realpath $0` SCRIPTPATH=`dirname $SCRIPT` echo "SCRIPTPATH = $SCRIPTPATH"
true
3b38ef438e84b6f08cd36ed59f0deca86cd37a58
Shell
bereziat/xflow
/src/examples/sh/velpar.sh
UTF-8
1,353
3.671875
4
[ "FSFUL" ]
permissive
#! /bin/bash # # XFLOW # (c) 2004 by Dominique Bereziat, INRIA, LIP6 # # Display information about a XFLOW data # $Id: velpar.sh,v 1.1 2006/10/04 08:36:56 bereziat Exp $ # Check if input is Inrimage err=O while [ $# -ne 0 ] do args_bak=$@ ifs_bak=$IFS if par $1 > /dev/null then input=$1 # Che...
true
86ac2053f60e1f98b148da8e0c7df7be52cc227e
Shell
nickgerace/dotfiles
/zsh/wsl2.zsh
UTF-8
420
3.515625
4
[ "Apache-2.0" ]
permissive
if [ "$NICK_WSL2" = "true" ]; then # Change to the home directory on WSL2. if [[ "$PWD" == "/mnt/c/Users/"* ]]; then cd $HOME fi if [ "$(command -v docker)" ]; then function wsl2-docker { if [ ! $1 ] || [ "$1" = "" ]; then echo "command required: start status...
true
4781c894276bcb3c38e0a491b6b795a67f374f84
Shell
anizox/Animesh_personal
/expectscript.sh
UTF-8
571
2.671875
3
[]
no_license
#!/usr/bin/expect #echo -e "Typical usage is scriptname [IP] [username] [password]" set IP [lindex $argv 0] set uname [lindex $argv 1] set pass [lindex $argv 2] set method "ssh" set timeout 120 spawn ssh -l $uname $IP expect { "(yes/no)?" { send "yes\r" expect "...
true
c094c5d27b1652b5f72226e13cf8976a3edf2c3e
Shell
evanpatterson-champlain/csi-230
/lab 6/lab_6.2/hostlookup.sh
UTF-8
391
3.609375
4
[]
no_license
#!/bin/bash # file hostlookup.sh # iteration # author evan patterson # lab 6.2 # date 10/13/2020 filename="$1" if [ -f $filename ]; then echo "Hosts:" else echo "File does not exist" exit 0 fi while read -r line; do out=$(host -W1 -t A $line) if [ $? -eq 0 ]; then ip=$(echo $out | cut -d " " -f 4) ...
true
5a521468000e52c21c9bf65616177c84fe6ca48e
Shell
gmarin13/MIAMI
/src/tools/run_static.in
UTF-8
599
3.5
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" done DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" if [ -f ${DIR}/../etc/vars/XTOOLVARX ] then source ${DIR}/../etc...
true
db923616eadc298e249759752c715fd94640e2ab
Shell
projectcypress/cypress
/contrib/scripts/vmx_to_ova.sh
UTF-8
719
3.71875
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # Adapted from http://tylerpower.io/post/packer-build-vmware-appliance-on-linux/ set -e if [ ! -z "${DEBUG}" ]; then set -x fi DEPENDENCIES=("ovftool") for dep in "${DEPENDENCIES[@]}"; do if ! [ -x "$(command -v ${dep})" ]; then echo "${dep} must be available." exit 1 fi done if [[ -z ...
true
4a48168b83bac51d30e1edf1be50f1a3aa030ede
Shell
Semiotext/the-noun-project-public-domain
/setup.sh
UTF-8
1,158
3.765625
4
[ "Unlicense", "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/bash command_exists () { command -v "$1" > /dev/null 2>&1 } fail () { echo "$1" >&2; exit 1; } info () { echo '' && echo "$1" } # Install dependencies info 'Preparing dependencies...' if ! command_exists 'pip' && command_exists 'brew'; then # Mac with Homebrew - attempt installing pip brew install pip ||...
true
4435c8963956f9351a2837e831e9f755eab6231e
Shell
ysoftman/test_code
/sh/sed_find_subdir.sh
UTF-8
444
2.78125
3
[ "MIT" ]
permissive
#!/bin/bash # ysoftman # 하위 디렉토리(파일을 제외)만 출력하기 # ls -lR ./ ysoftman : ./ysoftman 디렉토리에서 -l : 리스트, -R : 하위 디렉토리 # | grep ":$" : 앞의 출력 결과를 파이프로 넘겨받아 : 로 끝나는 부분만 출력 # | sed 's/:/\//' : 앞의 출력 결과를 파이프로 넘겨받아 처음 부분을 [subdir] 로 바꿔서(추가) 출력 ls -lR .. | grep ":$" | sed "s/^/[subdir]/"
true
0b611a59f6b12bf44311b0b96a103ab9bcd0d695
Shell
NickRowell/astronomy
/src/resources/wd/cooling/Montreal/gaia/preprocess.sh
UTF-8
1,064
3.390625
3
[]
no_license
#!/bin/bash # NOTE: it is necessary to comment out some rows in the thin H & He files over the discontinuity in the cooling age, # otherwise the interpolation code will freak out as the non-monotonic function cannot be uniquely inverted. # Untar the files tar -xzvf Tables.tar.gz # Remove unused model files rm ...
true
4be19223690ee412aca94cc20853b11f330d5ab2
Shell
pankajlabade/jdk-linux-inst-auto
/autom-jdk-inst.sh
UTF-8
2,367
3.828125
4
[]
no_license
#!/bin/bash # Sample shell script to install oracle jdk and set it as default jdk # Author: Pankaj Labade # source the properties: . ./jdk-inst.properties echo JDK installer is present at $oracle_jdk_loc ext=${oracle_jdk_installer#*.} set_java(){ sudo update-alternatives --install "/usr/bin/java" "java" "$JAVA_H...
true
5ffa95a2dd97e20507408a056b9f2d17821d2708
Shell
jbjordanleemac/bash_112320
/array_100420.sh
UTF-8
297
3.4375
3
[]
no_license
#!/bin/bash # print the last 4 lines for a file called list without using tail 100420 lists=() for a in `cat /opt/bash_test2/list` do echo "$a" lists=(${lists[@]} $a) done echo "${lists[@]}" b=${#lists[@]} echo "$b" for c in {1..4} do echo "${lists[$(( b - 1 ))]}" b=$(( b - 1 )) done
true
9ad0f9fda74866e958837ea73e97fb1670f49fd7
Shell
pwtsai/snort-fairy
/snort-enable.bash
UTF-8
471
2.984375
3
[ "MIT" ]
permissive
#!/bin/bash core_max=`grep -c ^processor /proc/cpuinfo` core_use=`echo $core_max` #core_use=$(( $core_max )) #core_use=12 killall snort >/dev/null 2>&1 sleep 10 /usr/local/bin/snort -c /etc/snort/snort.conf -D -i eth2 -R 151 >/dev/null 2>&1 echo "Snort dameon is up (1/$core_use)" sleep 2 for (( i=2; i<=$core_use; ...
true
10a2770650087c830a9f8f297967b10efb70c4e8
Shell
bturng/ec2
/verify.sh
UTF-8
1,964
3.546875
4
[]
no_license
#/bin/bash ##This is a program to verify the following items ## 1. verify correctness of the LDAP server ## 2. verify configuration group named “techops_dba” to /etc/security/access.conf and /etc/sudoers ## 3. verify the NTP server ## 4. verify the security restrictions so that clients are only able to access the firs...
true
7dd836fc70e5c0ddf422f729d14c08e14f8d2019
Shell
lbrayner/lbrayner
/wm/dot-local/share/wm/scripts/login
UTF-8
809
2.875
3
[]
no_license
# Terminating all instances of the graphical emacs client pkill -f 'emacsclient -c' # Starting mpd (Music Player Daemon) & mpdscribble (Libre.fm & Last.fm scrobbler) [ -x "$(command -v mpd)" ] && [ ! -s ~/.config/mpd/pid ] && mpd [ -x "$(command -v mpdscribble)" ] && \ [ -s ~/.config/mpd/pid ] && [ ! -s ~/.mpdscri...
true
3b7eb9dd75b4450a02b2020f6f6d6545e8e37c7c
Shell
horimislime/dotfiles
/dotfiles/setup.sh
UTF-8
679
2.515625
3
[]
no_license
#!/bin/sh cd $(dirname $0) # Emacs mkdir -p $HOME/.emacs.d ln -fsn $PWD/.emacs.d/init.el $HOME/.emacs.d/init.el ln -fsn $PWD/.emacs.d/custom.el $HOME/.emacs.d/custom.el ln -fsn $PWD/.emacs.d/config $HOME/.emacs.d/config # Git mkdir -p $HOME/.config/git ln -fsn $PWD/.gitconfig $HOME/.config/git/config ln -fsn $PWD/.t...
true
5b74ed710bf8dcabba95c56b3bcfd253a02468cc
Shell
ntrgiang/build-vnf
/CALVIN/vnf/dpdk_udp_nc/comp_eval/run_eval.sh
UTF-8
196
2.546875
3
[ "MIT" ]
permissive
#!/bin/bash # About: Run per-packet latency evaluation for advanced functions SOCKET_MEM=100 LCORES="0" for (( i = 0; i < 1; i++ )); do sudo ./build/eval -l $LCORES -m $SOCKET_MEM done
true
9591830809c922ad039cfa561b7e94e79268b437
Shell
Capri2014/as_map
/add_map_signal.sh
UTF-8
906
3.546875
4
[]
no_license
#!/usr/bin/env bash # add signal if [ ! -e /apollo ]; then echo "must run this script in /apollo folder in side docker" exit 0 fi if [ $# == 0 ]; then echo "$0 basemap drive_event1 drive_event2 ..." exit 0 fi cd /apollo basemap=$1 shift cp $basemap base_map.txt map_dir=$(basename $basemap) map_dir="m...
true
827c3b13cd43a4b1a13eea3d8c0ac11000954529
Shell
brulejr/ramdisk-devtools
/src/DEBIAN/postrm
UTF-8
147
2.546875
3
[]
no_license
#!/bin/bash set -e if [ "$1" = "remove" ]; then rm /etc/profile.d/ramdisk.sh rm /var/cache/ramdisk-devtools/* update-rc.d ramdisk remove fi
true
0d9286d76c049369738a91c4383ba0d38fef7fbb
Shell
ea3eiz/V104
/Activar_NextionDriver.sh
UTF-8
2,419
3.140625
3
[]
no_license
#!/bin/bash # path usuario usuario="/home/pi" usuario=$(awk "NR==1" $usuario/.config/autostart/usuario) SCRIPTS_version=$(awk "NR==1" $usuario/.config/autostart/version) #Colores ROJO="\033[1;31m" VERDE="\033[1;32m" BLANCO="\033[1;37m" AMARILLO="\033[1;33m" CIAN="\033[1;36m" GRIS="\033[0m" MARRON="\33[38;5;138m" echo ...
true
984752c18d147c464aefbfa2a2a75a813d98bee3
Shell
barbagroup/cloud-repro
/misc/independence/runs/snake3d2k35-coarse/config/installation/install-cuda-6.5.sh
UTF-8
530
2.765625
3
[ "BSD-3-Clause", "CC-BY-4.0", "CC-BY-3.0" ]
permissive
#!/bin/bash # install CUDA-6.5 toolkit CUDA_REPO_PKG=cuda-repo-ubuntu1404_6.5-14_amd64.deb wget -O /tmp/${CUDA_REPO_PKG} http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/${CUDA_REPO_PKG} dpkg -i /tmp/${CUDA_REPO_PKG} rm -f /tmp/${CUDA_REPO_PKG} apt-get update apt-get install cuda-drivers apt-g...
true
a6091d78f4faa7c564011ee2e73760adbf788647
Shell
atsukiima/cs288
/HW1/reverse.sh
UTF-8
309
3.375
3
[]
no_license
#!/bin/sh function reverse(){ array=($@); len=${#array[@]}; for((i=0,j=len-1;i<j;i++,j--));do temp=${array[i]} array[$i]=${array[j]} array[$j]=$temp done; echo ${array[@]}; } function main(){ in="$1"; lst=(`ls $in`) num=`echo ${lst[@]} | wc -l` echo ${lst[@]} reverse ${lst[@]} } main "$1"
true
2791eb477503af90bd638b4c916c19fed9e05f1c
Shell
glrnz/database-backup
/backupdevfile.sh
UTF-8
877
3.40625
3
[]
no_license
#!bin/bash #run everytime you want to backup #dont forget to change the variables #$raw the raw file or directory you want to backup #$remotedir is the directory in your remote backup server where you want your backup files to be saved raw=/www/file-upload backupname=file-upload #remote/backupdatabase remo...
true