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
1e32bdd00aaedae7fce7cbf77a889b0d1e1b3675
Shell
MisterSawyer/EOPSY
/LAB 1/modify_examples.sh
UTF-8
1,797
3.578125
4
[]
no_license
#!/bin/bash performTest() { echo; echo "Currently performing: $1"; echo " --- Output --- "; time $1; read -p " --- To continue press enter --- " echo; } declare -a TESTS=( "./modify.sh -h" # help "./modify.sh" # no arguments "./modify.sh -U f4.txt" # wrong argument "./modify.sh -u f4.txt" # uppercase 1 fi...
true
35e16d1b0b1aee092d62c61457651f1b16c44274
Shell
aroth-fastprotect/sketchupToOSG
/build/build-one.sh
UTF-8
1,793
3.8125
4
[ "BSL-1.0" ]
permissive
#!/bin/sh set -x # Package version. VER=1.6.7 # SketchUp version: 2013 means 2013 and earlier (don't go much earlier # than 8.0 M1 for best results), while 2014 means 2014, and # theoretically later. SUVER=$1 # Either mac or win. PLATFORM=$2 SRC=$(cd $(dirname $0) && cd .. && pwd) BUILDSCRIPTS=$(cd $(dirname $0) &...
true
8eaa563599305414e91cb9f63f02d98388ccfe6f
Shell
Tubbz-alt/LLNMS
/test/bash/assets/TEST_llnms_create_asset.sh
UTF-8
2,397
3.890625
4
[ "MIT" ]
permissive
#!/bin/sh # # File: TEST_llnms_create_asset.sh # Author: Marvin Smith # Date: 12/25/2013 # # Purpose: This contains all tests related to the llnms-create-asset script. # # Make sure LLNMS has been installed if [ "$LLNMS_HOME" = "" ]; then LLNMS_HOME="/var/tmp/llnms" fi # Initialize ANSI . test/b...
true
cb751fcc50b1510c803eea18921df12981da548f
Shell
gitoleg/my-actions
/documentation/build.sh
UTF-8
257
2.640625
3
[]
no_license
#!/usr/bin/env sh set -eu eval $(opam env) bap="bap.master" git clone https://github.com/BinaryAnalysisPlatform/bap --single-branch --branch=master --depth=1 $bap cd $bap bap_commit=`git rev-parse --short HEAD` make doc ls doc echo "build doc over"
true
6d6f24cb0a668eecfe36bd08bcf07c76977ff4df
Shell
MohammedHAlali/ProbabilisticProgramming
/openai/tmux.sh
UTF-8
524
2.609375
3
[]
no_license
#!/usr/bin/env bash NAME=openai if tmux has-session -t $NAME; then tmux kill-window -a -t $NAME:R else tmux new-session -A -s $NAME \; \ send-keys 'R -q' C-m \; \ rename-window 'R' \; \ new-window -n 'julia' \; \ send-keys 'while true;do julia;sleep 1;done' C-m \; \ new-window -n 'ipython' \; ...
true
84a8af4895ec36936cf2abe11d0f7e938ad53885
Shell
jhorn-redhat/openshift-ansible-contrib
/reference-architecture/azure-ansible/3.6/createSP.sh
UTF-8
1,667
3.78125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # $1 is azure login/user name # $2 is azure password # $3 is service principal name # $4 is service principal password # handled with playbook prepare #yum -y install wget #wget -c https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm #rpm -ivh epel-release-latest-7.noarch.rpm #yum install...
true
8d874ff4d9c6d49969da8f05195626276a08f4c7
Shell
heiwa4126/gohttpd01
/scripts/build.sh
UTF-8
290
2.96875
3
[ "MIT" ]
permissive
#!/bin/sh EXEC=gohttpd01 set -ue go vet ./... go fmt ./... # GOOS=linux # GOARCH=amd64 go build -o "$EXEC" -ldflags="-w -s" main.go # if there's `upx`, upx compress binary set +e hash upx &> /dev/null if [ $? -eq 0 ]; then upx "$EXEC" else echo "no upx found. skip it." fi exit 0
true
722ec906e5296159c3494ab12b8df147ce620a20
Shell
Koikka/mood_cal
/build/Android/Debug/build.sh
UTF-8
953
2.78125
3
[]
no_license
#!/bin/sh # This file was generated based on node_modules/fuse-sdk/node_modules/@fuse-open/uno/lib/build/UnoCore/1.12.3/Targets/Android/build.sh. # WARNING: Changes might be lost if you edit this file directly. set -e cd "`dirname "$0"`" ##if !#(SDK.Directory:IsSet) || !#(NDK.Directory:IsSet) #echo "ERROR: Could not l...
true
9123d5f9d0549b7a8e1407ca3ff49960b5773655
Shell
rosshamilton29/php7-vagrant
/bootstrap.sh
UTF-8
2,410
3.03125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash echo 'adding swap file' fallocate -l 2G /swapfile chmod 600 /swapfile mkswap /swapfile swapon /swapfile echo '/swapfile none swap defaults 0 0' >> /etc/fstab echo 'updating system' sudo apt-get update sudo apt-get upgrade -y echo 'install development environment' # apache sudo apt-get install -y ...
true
61861dd346350662fcacea573af2a4cb61997617
Shell
Microsoft-Android/nylas-mail
/packages/client-app/script/publish-docs
UTF-8
442
2.9375
3
[ "MIT" ]
permissive
#!/bin/bash set -e # Builds docs and moves the output to gh-pages branch (overwrites) mkdir -p _docs_output script/grunt docs ./node_modules/.bin/gitbook --gitbook=latest build . ./_docs_output --log=debug --debug rm -r docs_src/classes git checkout gh-pages --quiet cp -rf _docs_output/* . # rm -r _docs_output git a...
true
50ef839c933d735d540118b3c0ddb5a3999b3ce3
Shell
ttlequals0/misc
/tools_utils/netronome/scripts/build-vm-dpdk-apps.sh
UTF-8
1,214
3.296875
3
[ "MIT" ]
permissive
#!/bin/bash vmipa="$1" shift 1 applist="$*" ######################################## . $NS_SHARED_SETTINGS . $NS_PKGS_DIR/shared/vm-utilities.sh . $NS_PKGS_DIR/shared/dpdk-utils.sh ######################################## # Usage: # # build-vm-dpdk-apps.sh 10.1.7.1 trafgen l2fwd # ##################################...
true
08885bdb10e67b54cb6c5e31f0400e870af5378a
Shell
attrix182/Homeware-LAN
/bash/install.sh
UTF-8
6,153
3.671875
4
[ "MIT" ]
permissive
#!/bin/bash clear echo "----------------------------Homeware LAN-------------------------------" echo "Follow this assistant in order to configure your Homeware installation." read -r -p "Do you want to start? [y/N] " response case "$response" in [yY][eE][sS]|[yY]) echo echo "Download Homeware-LAN...
true
5f0aaa2501755be2b7f6f4e682c01132e9183d66
Shell
erkarl/xud-simnet
/scripts/xud-simnet-clean
UTF-8
536
3.203125
3
[]
no_license
#!/bin/bash delete_dir() { if ! rm -rf $1 >/dev/null 2>&1; then echo "unable to delete directory $1" exit 1 fi return 0 } if ! cd ~/xud-simnet; then echo "~/xud-simnet is missing" exit 1 fi source setup.bash read -p "Are you sure (y/n)? " -n 1 -r echo if [[ ! $REPLY =~ ^[Yy]$ ]] then ...
true
3303f6c11fbbe97ebcc57c978b0b3c8ed8e821d4
Shell
dtanakax/docker-kibana
/start.sh
UTF-8
217
2.78125
3
[ "MIT" ]
permissive
#!/bin/bash set -e if [ "$1" = "/opt/kibana/bin/kibana" ]; then sed -i "s|^elasticsearch_url:.*|elasticsearch_url: \"http://${ELASTICSEARCH_PORT_9200_TCP_ADDR}:9200\"|" /opt/kibana/config/kibana.yml fi exec "$@"
true
7d3757df07d4814dd943451a4a376d8346196002
Shell
juanespj/er_ros
/displays/display_text.sh
UTF-8
556
2.734375
3
[ "BSD-3-Clause" ]
permissive
stty -F /dev/serial/by-id/usb-MO_LK202-25-USB_0df1XRw1-if00-port0 19200 cat /dev/serial/by-id/usb-MO_LK202-25-USB_0df1XRw1-if00-port0 & echo \xFE\x58 > /dev/serial/by-id/usb-MO_LK202-25-USB_0df1XRw1-if00-port0 #echo "$1" > /dev/serial/by-id/usb-MO_LK202-25-USB_0df1XRw1-if00-port0 export IP=$(/sbin/ifconfig wlan0 | ...
true
a9d171cdd848c3f7c07e3ec82e71a79b3f06ac2b
Shell
binsrc/volatility-plugins
/scripts/dumpdir.sh
UTF-8
132
2.984375
3
[]
no_license
#!/bin/sh DIR=$1 DUMPDIR=$2 SO=`find $DIR -type f -name "*.so"` for FILE in $SO; do ./dumpsymbols.sh "$FILE" "$DUMPDIR" done
true
8ae8509c3390fff4e7260acf2f8a42b0b88f157c
Shell
flocondetoile/drupal8starter
/scripts/fix_local_files_permissions
UTF-8
459
2.734375
3
[ "MIT" ]
permissive
#!/bin/bash # Get document root path DOCUMENT_ROOT=$(drush status --fields=root --format=list) # Git repo root cd $DOCUMENT_ROOT cd .. sudo chown -R $USER:www-data web/sites/default/files/ sudo chmod -R g+w web/sites/default/files/ sudo chown $USER:$USER web/sites/default/settings.* sudo chmod g-w web/sites/default...
true
8b967649a871abfc1b1b39e4ecaef39f16ebf1db
Shell
HopeBayMobile/hcfs
/build.sh
UTF-8
3,236
3.625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash ## ## Copyright (c) 2021 HopeBayTech. ## ## This file is part of Tera. ## See https://github.com/HopeBayMobile for further info. ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License a...
true
3c2a98621cddaf19d1f3093181a3390a3cea8beb
Shell
agaveplatform/agave-cli
/bin/urlencode
UTF-8
775
3.953125
4
[]
no_license
#!/bin/bash # # urlencode # # author: deardooley@gmail.com # # Pure Bash urlencoding function # @see https://gist.github.com/cdown/1163649#file-gistfile1-sh-L4 # _urlencode() { # urlencode <string> old_lc_collate=$LC_COLLATE local LC_COLLATE=C local length="${#1}" for (( i = 0; i < length; i++ ));...
true
bccc63ad491643b89737e6cc539df01567dc272d
Shell
xueshell/shell_script_example
/shell_app/svn_git_ci_deploy_shell/rsync_to_host/rsync_prallel_to_host.sh
UTF-8
559
3.421875
3
[]
no_license
#!/bin/sh # # HOST= RSYNC_MODULE= USER= PASSWD_FILE= #get varlable if [ $# -eq 0 ] then echo " USAGE: $0 -u USER -p PASSWD -h HOST -m MODULE -t PASSWD_FILE " exit 1 fi while test $# -gt 0 do case $1 in -u | -U ) shift USER="$1" ;; -p |-P ) shift PASSWORD_FILE="$1" ;; -h...
true
03d6e7fd76de70f99024c5a02406166a44fbce61
Shell
fengw/ABFanalysis
/scripts/GkxmfsAnalysis/model_s.gmt
UTF-8
5,129
3.0625
3
[]
no_license
#!/bin/bash # plot map that only depends on site location # specified period (one period) eid=$1 sgtid=$2 rsid=$3 # rup_scenario_id vid=$4 # vel_id prefix=ERF${eid}_SGT${sgtid}_RupVar${rsid}_Vel$vid flag3=$5 # Model Flag sigmaD=$6 # weighting function used in ABF # format: 0.10_0.10 wrk=/Users/fengw/wor...
true
1e3dd27e075920c878c15c2867452d483be7e398
Shell
dilawar/SinghAndBhalla_CaMKII_SubunitExchange_2018
/exp_SU_Activation_Spread/generate_summary.sh
UTF-8
496
3.25
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e set -x # NOTE: Run cmake with various values of resting ca concentration. Moves the # data file to subdirectory e.g. ./DATA_CA_BASAL_100NM etc. After that run this # script to generate the summary data in each directory. DIRS=$(find . -name "*DATA_CA_BASAL_*NM" -type d) for _dir in $DIRS; d...
true
be7f89b2597d981445548f683a69f82509f0dcf1
Shell
jhlake/Java-projects-Uni
/n2_certificadoNotas/bin/mac/build.sh
ISO-8859-1
1,239
2.65625
3
[ "MIT" ]
permissive
#!/bin/sh # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Universidad de los Andes (Bogot - Colombia) # Departamento de Ingeniera de Sistemas y Computacin # Licenciado bajo el esquema Academic Free License version 2.1 # # Proyecto Cupi2 (http://cupi2.uniandes.edu.co) # Ejercicio: n2_certificadoN...
true
54f0b7abb2e4f9c57dbe5bda8c1af3d49899aa3e
Shell
karimstm/Inception-Of-Things
/p1/scripts/worker_node.sh
UTF-8
517
2.859375
3
[]
no_license
echo "Fetching binary file..." sudo curl -L -o k3s https://github.com/k3s-io/k3s/releases/download/v1.22.2%2Bk3s2/k3s sudo chmod 755 k3s export TOKEN_FILE="/vagrant/scripts/node-token" export MASTER_IP="$1" export INTERNAL_IP="$2" echo "Running agent..." sudo ./k3s agent --node-ip ${INTERNAL_IP} --server https://${M...
true
f83278180c0c7dfe39dd18015f715493bf0051ec
Shell
hunamizawa/ESPPerfectTime
/travis/arduino.sh
UTF-8
2,381
3.09375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash -eux # The MIT License (MIT) # # Copyright (c) 2014-2020 Benoit BLANCHON # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the r...
true
3c84826cfc7325f513939ce8a19a0a43486556cf
Shell
faile98/openshift-scripts
/4.prepare-nfs.sh
UTF-8
771
3
3
[]
no_license
ansible nfs -m shell -a "mkdir -p /exports/user-vols/pv{001..200};" cat <<'EOF' > uservols.sh #!/bin/bash for pvnum in {001..200} do if grep -q pv${pvnum} /etc/exports.d/openshift-uservols.exports; then echo "pv${pvnum}" already registered else echo /exports/user-vols/pv${pvnum} *\(rw,root_sq...
true
71abd8e47cef6e0d22de22f005a91dddfe8d5785
Shell
chybz/cpkg
/cpkg/lib/deb/libpackage.sh
UTF-8
9,742
4.15625
4
[ "MIT" ]
permissive
############################################################################## # # Debian specific package building # ############################################################################## HAS_DEBIAN_INIT=0 function lp_init() { # Nothing to do return } function lp_prepare_package_directory() { mkd...
true
1a26088bc6214233a24ebfaca7f7eada21ba3e65
Shell
dozent2018/IFA_LINUX_DEV
/.../mkstruct3.sh
UTF-8
489
2.578125
3
[]
no_license
#!/bin/bash # mkstruct3.sh : Version mit Positionsparameter # nutzt den 1. Positionsparameter für den Kursnamen und den Speicherort # und einen Default-Wert, falls er nicht angegeben wurde kursdir=${1:-Kurs} mkdir ${kursdir} mkdir ${kursdir}/block1 mkdir ${kursdir}/block1/aufgaben mkdir ${kursdir}/block1/loesungen cp ...
true
bac688faf3a8257521fa101da27559a1a598fcfb
Shell
ledhed-jgh/AGODS
/AGODS/setup.sh
UTF-8
1,179
2.59375
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/bash # Add coral repo echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list # Add google gpg key curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - # Update, Install TensorFlow Lite + Dependencies sudo apt u...
true
cc4213012d2f21888c0b7bca266e10e9364527c2
Shell
Bitergia/fiware-chanchan
/vagrant/scripts/cygnus/00-apache-flume.sh
UTF-8
670
3.4375
3
[]
no_license
#!/bin/bash if [ -d "${APACHE_FLUME_HOME}" ]; then rm -rf "${APACHE_FLUME_HOME}" fi VERSION="1.4.0" TGZ="apache-flume-${VERSION}-bin.tar.gz" UNPACKED="apache-flume-${VERSION}-bin" URL="http://archive.apache.org/dist/flume/${VERSION}/${TGZ}" # download flume echo "Downloading ${TGZ}" curl --remote-name --location...
true
b8616a15d4e4bc664272c3fff71e22fb6ebc3026
Shell
duyvk99/khoaluan
/terraform/script/install_docker.sh
UTF-8
1,008
2.734375
3
[]
no_license
#!/bin/bash echo "-----------------install docker-----------------" sudo yum install -y yum-utils device-mapper-persistent-data lvm2 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum install -y docker-ce docker-ce-cli containerd.io sudo systemctl enable docker sudo syst...
true
d76152c12c6243de36d8365fb1085c0ffb9ca632
Shell
szemek/openshift-diy-rails
/install.sh
UTF-8
937
2.65625
3
[]
no_license
#!/bin/sh cd $OPENSHIFT_TMP_DIR # get & compile yaml wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz tar xzf yaml-0.1.4.tar.gz cd yaml-0.1.4 ./configure --prefix=$OPENSHIFT_RUNTIME_DIR make make install # clean up yaml sources cd $OPENSHIFT_TMP_DIR rm -rf yaml* # get ruby wget http://ftp.ruby-lang.org/pub...
true
ba2c0eb10024e4a495692ec2e29a93067252f88d
Shell
Youngseok14253/A3-Quinzical
/Assignment 3/Scores/CompareScore
UTF-8
513
3.25
3
[]
no_license
#! /bin/bash pushd Scores > /dev/null COUNT=1 sed 1d High-Scores | while read -r LINE do ((COUNT+=1)) SCORE=$(echo $LINE | tr -dc '0-9') if [[ $1 -eq $SCORE ]] then sed -i ''"$COUNT"'i'"$2 - $1"'' High-Scores break elif [[ $1 -lt $SCORE ]] ...
true
4ba6ba5dcf2ea6e1ddb9f7fd8d28323e05d3a344
Shell
AlanCoding/Ansible-inventory-file-examples
/scripts/large/scale_fast_script.sh
UTF-8
509
2.609375
3
[ "MIT" ]
permissive
export ANSIBLE_INVENTORY_PLUGINS=$(PWD)/plugins/user_plugins/ export ANSIBLE_INVENTORY_ENABLED=fast_script counter=0 while [ $counter -le 4 ] do colin=':' justk='k' params=$counter$justk$colin$counter$justk$colin'1.0:'$conin'0.8'$colin'2'$colin'15' echo "INVENTORY_DIMENSIONS=$params" time INVENTORY_DIMENSIO...
true
4ba12d45a96e72809f78bda00075fc09fe6368f4
Shell
CMU-SAFARI/AirLift
/src/4-extract_reads/extract_regions.sh
UTF-8
527
3.53125
4
[]
no_license
#!/bin/bash BINDIR=$1 GAP_ALN=$2 GAP_BED=$(echo ${GAP_ALN} | sed s/.bam/.bed/g) OUT_FOLDER=$3 OUT_BEDS="${OUT_FOLDER}/*.bed" "${BINDIR}/convert2bed" --input=bam < ${GAP_ALN} > ${GAP_BED}; awk -v out_fol="${OUT_FOLDER}" '{split($4, array, "_"); fname=array[1] "_" array[2] "_" array[3] "_" array[4] ".bed"; print $1 "\t...
true
4e8c20a7a8fff8caa9d6b430a2ec91e4b7c40a89
Shell
2oc/matrix.lab
/finish_RHXSAT6.sh
UTF-8
23,252
3.328125
3
[]
no_license
#!/bin/bash # To convert the file for the other ENV # cat finish_RHXSAT6.sh | sed 's/10.10.10/10.10.10/g' | sed 's/MATRIX/MATRIX/g' | sed 's/matrix/matrix/g' |sed 's/10.10.10/10.10.10/g' > ../matrix.lab/finish_RHXSAT6.sh #################### # Users (post-script) # ORG: default # GROUP: N/A # USER: admin / P...
true
d279b29c4e1a0a7ce93fb362965eb9fdbde3f2de
Shell
uvalib/virgo4-basic-loadtesting
/scripts/walk-master-response.ksh
UTF-8
1,112
4.03125
4
[]
no_license
#!/usr/bin/env bash # # script to walk through the standard response from a master search # # source helpers FULL_NAME=$(realpath $0) SCRIPT_DIR=$(dirname $FULL_NAME) . $SCRIPT_DIR/common.ksh function help_and_exit { report_and_exit "use: $(basename $0) <results file>" } # ensure correct usage if [ $# -ne 1 ]; th...
true
09951f9392a26b9197523fdf60ca2f192629ce46
Shell
Solo-one/Struggle
/shell/test.sh
UTF-8
770
2.984375
3
[]
no_license
######################################################################### # File Name: test.sh # Author: fxm # mail: fangxiaoming01@baidu.com # Created Time: 2018年07月16日 星期一 17时36分54秒 ######################################################################### #!/bin/bash echo $0 $1 $2 echo $1 start_path=$(pwd) echo ${st...
true
760f01225f5a1f6a73e143f6f91a62e449e2f60e
Shell
dubo-dubon-duponey/docker-base
/hack/test.sh
UTF-8
878
2.984375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -o errexit -o errtrace -o functrace -o nounset -o pipefail # shellcheck source=/dev/null root="$(cd "$(dirname "${BASH_SOURCE[0]:-$PWD}")" 2>/dev/null 1>&2 && pwd)/../" readonly root # XXX right now this is not testing much but the runtime image building if ! "$root/hack/build.sh" \ --inje...
true
49abb75c66b7093417cd0e773c81a7a1f0b7129a
Shell
PtrMan/FemFlip
/femflip3/src/mitsuba/fix_view.sh
UTF-8
395
3.09375
3
[]
no_license
#!/bin/sh i=$1 while [ $i -le $2 ]; do f="$i"_scene_view.exr if [ -s "$f" ]; then dummy=1 else echo "Starting scene (particles) $i..." mitsuba -Dparticles="$i"_particles.xml -Dtet_filename="$i"_tet.ply -Dtarget="0.5, 0.5, 0.1" -Dorigin="0.2, -1.0, 1.5" -Dup="0, 0, 1" -o "$i"_scene_view.exr particles.xml exrt...
true
44a81ddedf38912cfba5463cda2e089b03e8b32f
Shell
les-lee/origin-blog
/deploy.sh
UTF-8
550
2.84375
3
[ "MIT" ]
permissive
# 确保脚本抛出遇到的错误 set -e # git init git add -A git commit -m 'modify by les' git push origin master # 生成静态文件 npm run blog:build # 进入生成的文件夹 cd blog/.vuepress/dist # 如果是发布到自定义域名 # echo 'www.example.com' > CNAME git init git add -A git commit -m 'deploy' # 如果发布到 https://<USERNAME>.github.io git push -f git@github.com:le...
true
8c762524c73729d4a2a65cdc8a5858b20ad1a7fc
Shell
bmgraves/scgt
/linux-3.10/driver/gtunload
UTF-8
492
3.625
4
[]
no_license
#!/bin/bash # # Uninstall script for SCRAMNet GT driver # RMMOD="rmmod" # find rmmod if not in path which rmmod > /dev/null 2>&1; if [ $? != 0 ]; then # rmmod not in path.. try /sbin/rmmod if [ -x /sbin/rmmod ]; then RMMOD="/sbin/rmmod"; else echo "Failed to locate rmmod program. Mak...
true
bf21098d116047194d4f2f9145c1dc1ca54431e6
Shell
kwynncom/readable-primary-key
/collisions/ramdisk.sh
UTF-8
124
2.6875
3
[]
no_license
RDIR=/tmp/rd if [ ! -d $RDIR ]; then mkdir $RDIR fi sudo mount -t ramfs -o size=4g ramfs /tmp/rd sudo chmod 777 /tmp/rd
true
d81c52d26133b71e832d0e88afd22089cd8b8da2
Shell
ColinIanKing/fwts
/auto-packager/mkpackage.sh
UTF-8
2,933
3.75
4
[]
no_license
#!/bin/bash # # Copyright (C) 2010-2023 Canonical # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is...
true
3840f5b9b1fab5a22d34e48c61fa5bbfa08c056d
Shell
beer-garden/bg-utils
/bin/make_docs.sh
UTF-8
157
2.53125
3
[ "MIT" ]
permissive
#!/bin/bash # This script uses sphinx utilities to generate documenation # from Python docstrings BASEDIR=$(dirname $(dirname $0)) make -C "$BASEDIR/docs"
true
5688fe4f0d87d2dd635128262f6f5e9a615cd617
Shell
getupcloud/origin-server
/cartridges/openshift-origin-cartridge-haproxy/usr/bin/fix_local.sh
UTF-8
1,890
3.921875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Script to disable the local serving gear after either at least # one remote gear is visible to haproxy or 30 seconds have passed. source $OPENSHIFT_CARTRIDGE_SDK_BASH while getopts 'd' OPTION do case $OPTION in d) set -x ;; esac done rm -f /tmp/fix_local* exec &> /tmp/fix_local....
true
9ad35aaa3a87adbc6d5a35ba95556c8b00b5a0d9
Shell
timhemel/rsyncbackups
/rsync-backup
UTF-8
328
3.21875
3
[]
no_license
#!/bin/sh if [ -r /etc/defaults/periodic.conf ] then . /etc/defaults/periodic.conf source_periodic_confs fi case "$rsync_backups_enable" in [Yy][Ee][Ss]) script="$rsync_backups_dir/scripts/backup.sh" config="$rsync_backups_dir/config/$rsync_backups_config" "$script" "$config" rc=$? ;; *) rc=0;; esac e...
true
f75c375ebe1e538fc92e5e6c0797727ccee2c7ce
Shell
mminichino/openshift-automation
/mirror-oper-catalog.sh
UTF-8
2,349
3.59375
4
[]
no_license
#!/bin/sh # REGISTRY="" VERSION="" LOCAL_VERSION="1" TMPFILE=$(mktemp) function print_usage () { echo "$0 -r registry -v version [ -l local_version ]" exit 1 } while getopts r:v:l: optargs do case "${optargs}" in r) REGISTRY=$OPTARG ;; v) VERSION=$OPTARG ;; l) LO...
true
3d796f9228c1056db75ffa6c5ea0e61e1aa7d377
Shell
grembo/pot
/share/pot/set-hook.sh
UTF-8
2,084
3.796875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/sh # shellcheck disable=SC3033,SC3040,SC3043 : set-hook-help() { cat <<-"EOH" pot set-hook [-hv] -p pot [-s hook] -h print this help -v verbose -p pot : the working pot -s hook : the pre-start hook -S hook : the post-start hook -t hook : the pre-stop hook -T hook : the post-stop hook EOH...
true
9c0091ade4872abbd7c0e1c70113ab8708b24c6d
Shell
akbaraziz/bash_scripts
/not-tested/configure_ssh_security.sh
UTF-8
2,536
3.5
4
[]
no_license
#!/bin/bash # # Script by: Danie Pham # Script date: 04-06-2019 # Script version: 1.0 # Script use: use to configure ssh security faster # Remmeber to edit NOTE 1 & 2 in this script set -ex # Function configure ssh f_config_ssh () { # Disable X11 Forwarding in Linux server sed -i 's/X11Forwarding yes/X11Forwarding ...
true
428642509324a0b566b5cdf1d34b1c038c5cf53d
Shell
zxlhhyccc/CBBR
/D3.sh
UTF-8
446
3.421875
3
[ "MIT" ]
permissive
#! /bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH [ "$EUID" -ne '0' ] && echo "Error,This script must be run as root! " && exit 1 apt update && apt install linux-image-4.15.0-23-generic -y update-grub && update-grub2 echo read -p "Info: The system needs to be restart. ...
true
418f2b9fc1fbcb7691474482363cac4204319598
Shell
artorhem/graph-processing
/gps-rev-110/local-master-scripts/make_gps_node_runner_jar.sh
UTF-8
1,470
2.75
3
[]
no_license
cd .. GPS_DIR="`pwd`" GPS_SRC_DIR=${GPS_DIR}/src GPS_CLASSES_DIR=${GPS_DIR}/classes LIBS_DIR=${GPS_DIR}/libs echo "removing ${GPS_DIR}/gps_node_runner.jar" rm ${GPS_DIR}/gps_node_runner.jar echo "removing ${GPS_CLASSES_DIR}" rm -rf ${GPS_CLASSES_DIR} echo "making ${GPS_CLASSES_DIR}" mkdir ${GPS_CLASSES_DIR} echo "...
true
13b93f4ce8f422cb8049d88a8a008ad1c642c9f8
Shell
petronny/aur3-mirror
/tabbar-git/PKGBUILD
UTF-8
597
2.859375
3
[]
no_license
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> pkgname=tabbar-git pkgver=372 pkgrel=1 pkgdesc="Emacs minor mode that displays a tab bar at the top" arch=('any') url="https://github.com/dholm/tabbar.git" license=('GPL') makedepends=('git') source=("git://github.com/dholm/tabbar.git") noextract=() md5sums=('SK...
true
02e683068d49c4b22d9265409985165a730d3c4c
Shell
samuelsanchezalvarez/estudios
/AEC/simplescalar/simula-spec2000-B
ISO-8859-1
1,104
2.921875
3
[]
no_license
#!/bin/sh # El script recibe como parametro de entrada ($1) una cadena que aadir a los ficheros # de salida (*.out) que se generarn en el directorio spec2000/OUTS cd spec2000 echo "--- Comienzo de la simulacin..." CONFIG_B="-decode:width 1 -issue:width 1 -issue:inorder true -commit:width 1 -cache:il1 il1:256:32:4:...
true
324f1725259057e9760d9e51aaf8c549a8450957
Shell
smdalton/distributed-docker-kvs
/legacy/runservers.sh
UTF-8
810
3.3125
3
[]
no_license
#!/bin/bash # Author: Shane Dalton # Created for UCSC undergrad course CMPS128, Fall 2017 # Initializes all servers listed in the ports list echo "test" echo "From server:" num_servers=$1 echo $num_servers K=4 VIEW1="10.0.0.21:8080,10.0.0.22:8080,10.0.0.23:8080,10.0.0.24:8080" #fill in this list with the addresses of...
true
db67b546226945f8f49cc6a898ec2e0a6802b544
Shell
oliverhernandezmoreno/SourcesOH
/tranque_v1.8.4_source/config/docker-stacks/dev.observatorioderelaves.cl/deploy.sh
UTF-8
364
3.21875
3
[]
no_license
#!/usr/bin/env bash set -e usage() { echo "Usage: ./deploy.sh <gitlab-user> <gitlab-password>" 1>&2 exit 1 } if [ -z "$1" ] ; then usage ; fi if [ -z "$2" ] ; then usage ; fi cd $(dirname "${BASH_SOURCE[0]}") docker login -u "$1" -p "$2" registry.gitlab.com/inria-chile docker-compose pull docker-compose up...
true
edee452d506bfc9ed6ce5a29c6e668ba9104328c
Shell
IntelAI/models
/quickstart/image_recognition/tensorflow/resnet50v1_5/inference/gpu/batch_inference.sh
UTF-8
5,074
3.3125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # # Copyright (c) 2022 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
true
5b833ba541a3468140b215f4dc6269a0dcc46b6a
Shell
galiuskas24/Google-Colab-Terminal-Configuration
/colab-ssh-jupyter.sh
UTF-8
1,064
2.734375
3
[]
no_license
# create an account on ngrok is not already and copy the authtoken and wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip unzip ngrok-stable-linux-amd64.zip read -p 'Enter the authtoken from ngrok :' authtoken ./ngrok authtoken $authtoken #for example ZT64bWYnXTAsJej4FNFTdsjhsuAQqKqZHn2Sh4g2sfAD ....
true
3f3af4dd9794a66384fc91264b454689d7b57661
Shell
KaOSx/main
/xf86-input-synaptics/PKGBUILD
UTF-8
964
2.5625
3
[]
no_license
pkgname=xf86-input-synaptics pkgver=1.9.2 pkgrel=1 pkgdesc="Synaptics driver for notebook touchpads" arch=('x86_64') license=('custom') url="http://xorg.freedesktop.org/" depends=('libxtst' 'mtdev' 'libevdev') makedepends=('xorg-server' 'libxi' 'libx11' 'xorgproto') groups=('xorg-drivers' 'xorg') options=('!libtool') ...
true
44b16c1927648ace58e860a790b250c3edcec792
Shell
lucasmedeiros/sh-scripts
/questao6.sh
UTF-8
312
3.6875
4
[]
no_license
#!/bin/bash dominio=$1 if [ -z "$1" ]; then echo "Informe o domínio:" read dominio fi ip=`dig +short $dominio` echo "O IP do domínio $dominio é: $ip" if ping -q -c 1 -W 1 $dominio >/dev/null; then echo "Existe conectividade com o servidor." else echo "Não existe conectividade com o servidor." fi
true
fc573e6acaa094890646de95686d58bcd7f2ad4a
Shell
Wei-N-Ning/networkFoo
/ssh/server/subsystem.sh
UTF-8
1,033
3.4375
3
[]
no_license
#!/usr/bin/env bash # the file created by this dummy subsystem is # -rw-r--r-- 1 weining wheel 315 5 Mar 15:48 subsystem_thereisacow # which confirms that it is executed by the login user install_subsystem() { rm -f /var/tmp/thereisacow cat >/var/tmp/thereisacow <<"EOF" #!/bin/sh perl -w -E 'my $text...
true
851c2710ada454e1f5c3f85c32d4de7ef36bd59b
Shell
rosalindxu/MD-SolEFP-methods
/5-param/scripts/optimization/run_charge.sh
UTF-8
3,858
3.390625
3
[]
no_license
#!/bin/bash echo "Before running this script, change the orientation and initial scan distance list." read -p "Working directory (full path name; do not type "."!): " dir read -p "Trial No.: " tr read -p "Number of charge combinations to be tested: " nComb echo "Before you continue, place mescn-1.itp to mescn-$nComb....
true
2b11306d8c8c75cc5a7f2526e2c8eb4d4d2ce1d4
Shell
nalim2/AI-lectures
/MachineLearning/compile.sh
UTF-8
511
2.78125
3
[]
no_license
for input in ./*.tex do echo '-----------------------------------' echo 'compiling' ${input} pdflatex -interaction=nonstopmode ${input} > /dev/null grep "Warning" ${input%.*}.log grep "Missing" ${input%.*}.log grep -A2 "Undefined control sequence" ${input%.*}.log grep -A2 "Error" ${input%.*}...
true
43380a0be06742c267aaa44d259714110932f8f7
Shell
venukolla/SSHConfigure
/Step1.sh
UTF-8
2,667
3.6875
4
[]
no_license
!/bin/bash # Created by: daniel ernesto lopez barron # University of Missouri Kansas City # April 28 2016 # PARAMS # TODO dev Remove this features so it can be passed as # arguments to the script # PARAMS # server nodePrefix,start,end user,password # Ej: nm node-,1,4 dl544,daniel #UPDATED scriptUsage(){ echo...
true
26b239647e1aa3578d76bd01ca41c75f720ea84a
Shell
Makebignew/image
/chickip.sh
UTF-8
2,200
3.6875
4
[]
no_license
# /bin/bash # chickip.sh # 定义ip段,最多测到第三个字节!!!第四个字节不用写,两个定义一样就只测第四个字节 ip_start=104.16.0 ip_ending=104.16.65 # 定义并发的进程数,也就是每次ping的ip数 thread_num=30 # 定义每个ip ping的次数 time2=25 # 定义最大延迟 time1=170 # 定义最大丢包率 lost=6 ################################### # 新建一个FIFO类型的变量 myfifo="myfifo" mkfifo ${myfifo} # 将FD6指向FIFO类型 exec 6<>${...
true
1aab7112aaff9aec825009c58b7977e2924ae782
Shell
shrank/networking-scripts
/scripts/find_devices.sh
UTF-8
309
3.234375
3
[ "Unlicense" ]
permissive
#!/bin/bash # uses nmap to find hosts and stores them into a file # sh find_devices.sh 10.10.0.0-255 filename=device_scan-$1 nmap -sP -oG - $1 | awk '$5=="Up"{print $2}' >> $filename cat $filename | sort | uniq > $filename.tmp rm $filename mv $filename.tmp $filename echo devices discoverd: wc -l $filename
true
6b107824a8fcc7e067764e78e4e29c4ae001d4dd
Shell
raglos/ye
/imguralbum
UTF-8
382
3.34375
3
[]
no_license
#!/bin/bash if [[ -z "$1" ]]; then echo "usage ""$0"" <imgur album url>"; exit 1; fi curl -s "$1" | grep '^\s*image\s*:\s*' | grep -o '{"hash":"[^\"]*","title":"[^\"]*","description":null,"width":[0-9]*,"height":[0-9]*,"size":[0-9]*,"ext":"[^\"]*"' | sed 's/^.*ash...\([^\"]*\).*ext...\(.*\).$/https:\/\/i.imgu...
true
21fb1e1d303ec42f2cee186ee03cdbbfccc4ce80
Shell
pkgw/casa
/code/admin/system/astat
UTF-8
4,266
3.140625
3
[]
no_license
#!/bin/sh #----------------------------------------------------------------------------- # astat: Collate AIPS++ revision statistics from an 'alog' report #----------------------------------------------------------------------------- # # Copyright (C) 1994,1997 # Associated Universities, Inc. Washington DC, USA. # ...
true
495376ed8258fb439e3d1782d879c33b24752ffd
Shell
giorgosma/Simulation-of-heat-transfer-in-2d-surface
/OpenmpProj/run_prog.sh
UTF-8
729
2.921875
3
[]
no_license
#!/bin/bash init='export PATH="/home/giorgos/mpich-install/bin:$PATH"' eval $init compile="mpicc -o project_mpi_reduce_omp project_mpi_reduce_omp.c -lm -fopenmp -g3" compare="diff PM/initial.bin PM/output.bin" delete="rm ./PM/*.bin | rm ./PM/*.txt " eval $delete > ./PM/del.txt eval $compile #declare -A array_of_tas...
true
40e93aa949cc9e01ca8ac60694222568c41507d4
Shell
kchhero/suker_python_project
/sukerScripts/bashScripts/args/args_pass_to_func2.sh
UTF-8
679
3.5625
4
[]
no_license
#!/bin/bash function abc() { arg1=$1; shift array=( "$@" ) last_idx=$(( ${#array[@]} - 1 )) arg2=${array[$last_idx]} unset array[$last_idx] echo "arg1=$arg1" echo "arg2=$arg2" echo "array contains:" printf "%s\n" "${array[@]}" } ttt=("two" "three") abc "one" "${ttt[@]}" "four...
true
43acf7e42545e024f5e4bacfa22646a8b14db14b
Shell
Michael07220823/Opencv4-one-click-installation
/sh/link_cv2_to_python3_virtual_environment.sh
UTF-8
531
2.5625
3
[]
no_license
# Create a cv2.cpython-37m-arm-linux-gnueabihf.so shortcut to ~/.virtualenvs/py3cv4/lib/python3.7/site-packages/cv2.so ln -s /usr/local/python/cv2/python-3.7/cv2.cpython-37m-arm-linux-gnueabihf.so ~/.virtualenvs/py3cv4/lib/python3.7/site-packages/cv2.so echo "link_cv2_to_python3_virtua_environment.sh finish !" echo "in...
true
1fef1eaf0803fe7479d99cee32d0704dcf3317a0
Shell
benaux/env-pub_
/tools-files_bk71.4x/autoscripts_bk71.41/onetools/one-new.sh
UTF-8
2,850
3.71875
4
[]
no_license
#!/bin/sh HELP='create a new item in the onebox directory. Special remark when writing the title: you can also add tags after "--"' USAGE='[note] [mark|bookmark] [snip|snippet] [web|webref] [-noninter(active)] [-help] title' here=$(dirname $0) labelinput=$1 shift titleinput="$@" onebox=$HOME/onebox onehist=$HOME/....
true
9c414011b498d250d791ef05688aeb637e61e4d0
Shell
leonardoalvesprates/k8s
/lab/rancher/overlay/overlay-run.bash
UTF-8
1,041
2.96875
3
[]
no_license
#!/bin/bash echo echo echo 'overlaytest PODS' echo kubectl -n default get pods -l name=overlaytest -o wide echo echo '################' echo echo 'creating single web pod' kubectl -n default run web-first --image=leonardoalvesprates/web-first:v0.1 --port=8080 echo echo 'waiting 60 seconds' sleep 60 echo 'creating clust...
true
b8bb8cfe217a2ed8707ba443efda8a0eabe6f73b
Shell
rutsky/semester06
/Processors_architecture/RF-9000/firmware/build_fw.sh
UTF-8
3,123
3.9375
4
[]
no_license
#!/bin/bash # build_fw.sh # Script for building firmware with hacks. # Vladimir Rutsky <altsysrq@gmail.com> # 15.03.2009 set -e FWfixToolFile="../fw_correct_header/fw_correct_header" origFWFile="FW_UB890_1.15.rom" baseVersionStr="1.15" # 4 bytes tempFWFile=".fw_tmp" tempFWFileDst=".fw_tmp2" versionFile=".fw_version"...
true
5cce315c3c0d9f2ec95c7e34d0fc60562d28b430
Shell
sabhaAmjad/Thesis
/consumer.sh
UTF-8
2,729
3.4375
3
[]
no_license
#!/usr/bin/env bash TEST_QUERIES="s1 s2 s3 s4 " type="weblogs websales" weblogs="weblogs" SPARK_SUBMIT=/usr/local/spark/spark-2.3.2-bin-hadoop2.7/bin/spark-submit class_test=//IdeaProjects/Thesis/src/main/scala/active/Consumer.scala JAR_File=//IdeaProjects/Thesis/target/Thesis-1.0-SNAPSHOT-jar-with-dependencies.jar ...
true
d1aeef9417c88773574edf7b422b788330efc654
Shell
besarthoxhaj/github-play
/script.sh
UTF-8
373
3.6875
4
[]
no_license
#!/bin/sh # running git init twice is safe git init while read date do fileName=`echo "$date" | tr " " "_"` #echo $fileName -> Sun_Jan_06 date="$date 10:00 2014 +0300" echo $date #echo $date -> Sun Jan 06 10:00 2015 +0300 echo "Creating file... $fileName" touch "$fileName" git add "$fileName" git co...
true
edd2258d5c5d5b835256b998dae6d72937c05f57
Shell
AlexanderOnbysh/edu
/masters/streaming-programming/cloud-services-assignment/scripts/create-alarm.sh
UTF-8
689
2.765625
3
[]
no_license
#!/bin/bash echo "Creating topic with billing alerts" topic=$(aws sns create-topic \ --name "BillingAlert" \ --output "text" \ --tags "Key=env,Value=assignment" \ --query 'TopicArn' ) echo "Subscribing to $topic" aws sns subscribe \ --topic-arn "$topic" \ --protocol email \ --notification-endpoint "alexander....
true
6acb5f9d3db45f39eb3a7975dfd482c7785ffb80
Shell
aseques/debian-server-tools
/debian-setup.sh
UTF-8
28,474
3.140625
3
[ "MIT" ]
permissive
#!/bin/bash # # Debian jessie virtual server setup. # # AUTHOR :Viktor Szépe <viktor@szepe.net> # URL :https://github.com/szepeviktor/debian-server-tools # LICENSE :The MIT License (MIT) # AUTORUN :wget -O ds.sh http://git.io/vtcLq && . ds.sh # How to choose VPS provider? # # - Disk access...
true
7419ded7d7408c79e0ae47f932ff52ac37d774bd
Shell
go-kivik/kouch
/script/build.sh
UTF-8
562
3.65625
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
#!/bin/bash set -e targets="linux_386 linux_amd64 darwin_amd64 windows_386 windows_amd64" mkdir -p build for target in $targets; do echo Building ${target}... mkdir -p tmp/${target} bin=kouch if [ "${target%_*}" == "windows" ]; then bin=kouch.exe fi GOOS=${target%_*} GOARCH=${target##*...
true
3ae25df7cd94eb2332682b39aecce1442b447367
Shell
fujiso/dotfile
/.zshrc
UTF-8
432
2.734375
3
[]
no_license
# # Executes commands at the start of an interactive session. # # Authors: # Sorin Ionescu <sorin.ionescu@gmail.com> # # Source Prezto. if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" fi # Customize to your needs... bindkey -e #eval "$(pyenv virtualenv-init -)" ...
true
6d0f791867c4d2e32ea450931ece3f079b3b5a5b
Shell
jeanpascalpfister/SmartphoneTappingModel
/RunCluster.sh
UTF-8
602
2.796875
3
[]
no_license
#!/bin/bash module load matlab nsim=(11 11 1 1 12 12) # number of simulations per Simulation serie for serie in {1..6} do ns=${nsim[$serie-1]} list=($(seq 1 1 $ns)) for s in ${list[@]} do for p in {1..84} do echo "Queuing up serie=${serie}, sim = ${s}, subject=${p}" # Submit the job bsub -W "24:00" -R ...
true
6dda6a6788b50ceb3999079cde1942e433f4f885
Shell
michaeldgraham/relate-by-ui
/bin/gh-pages
UTF-8
328
3.171875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # Publishing to GitHub Pages: # $ ./bin/gh-pages styleguide/storybook-static if [ -z "$1" ] then echo "Which folder do you want to deploy to GitHub Pages?" exit 1 fi # git push origin `git subtree split --prefix styleguide/storybook-static gh-pages`:gh-pages --force git subtree push --prefix $1 origin g...
true
0ded1fedd60a9447356dea4c1ec35c92cae51919
Shell
edwardmlyte/setup
/.path
UTF-8
1,340
3.140625
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # go root if [ -d /opt/golang ] then export GOROOT="$(find /opt/golang -name "go1*" -type d -maxdepth 2 | head -1)" export PATH="${GOROOT}/bin:${PATH}" fi # go path if [ -d ${HOME}/Development/go-workspace ] then export GOPATH="${HOME}/Development/go-workspace" export PATH="${GOPATH}/bin:${PATH}" fi...
true
32f9c264e696bd44aa834deee9e1998f23b63851
Shell
parkr/dotfiles
/bin/mp4-to-mp3
UTF-8
350
3.9375
4
[]
no_license
#!/bin/bash if [ -z "$1" ]; then echo "usage: $0 <filename.mp4>" exit 1 fi if ! [ -f "$1" ]; then echo "fatal: filename '$1' doesn't exist" exit 1 fi INPUT_FILENAME="$1" OUTPUT_FILENAME="${INPUT_FILENAME%.mp4}.mp3" echo "Converting $INPUT_FILENAME to $OUTPUT_FILENAME" ffmpeg -i "$INPUT_FILENAME" -f mp3 -ab ...
true
3f777aab5198c75852c459250218394761604110
Shell
millskyle/BerkeleyGW_Utilities
/working/co/run.sh
UTF-8
1,224
3.609375
4
[]
no_license
#!/bin/bash currentdir="`pwd`" PWSCF='mpirun -n 4 /home/kmills/espresso-5.0/bin/pw.x -nk 1 -nd 1 -nb 1 -nt 1 ' #PWSCF='/home/kmills/espresso-5.0/bin/pw.x -nk 1 -nd 1 -nb 1 -nt 1 ' PW2BGW='/home/kmills/espresso-5.0/bin/pw2bgw.x ' DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "$DIR" echo "Root directory ...
true
285c096c576e90c04edd821f937b4315f13301f1
Shell
williamscs/pants-test-project
/build-support/generate_constraints.sh
UTF-8
636
2.84375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). # See https://www.pantsbuild.org/v2.0/docs/python-third-party-dependencies. set -euo pipefail PYTHON_BIN=python3 VIRTUALENV=build-support/.venv PIP="${VIRTUALENV}/bin...
true
8fc67871aec5a1ff8b7477d2d4b301c79b973904
Shell
AkariUeda/mc950-contour-descriptors
/assignment/convert_pgm.sh
UTF-8
118
2.9375
3
[]
no_license
echo $1; cd $1; for file in *; do echo $file convert $file -compress None '../pgm_imgs/'${file%.*}'.pgm' done;
true
5e6e2cf1f3af850396f10d4fd6f09981d00397c2
Shell
sndyuk/Silica
/configs/cmd/start.sh
UTF-8
716
3.359375
3
[]
no_license
#!/bin/bash pushd $(dirname $0) > /dev/null ################ echo " " # For degub if [ "$5" = "true" ]; then DEBUG_OPTIONS="-J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=y -J-Djava.rmi.server.logCalls=true" echo "on debug mode. Waiting to connect a debugger listening on port: 8000" fi ####...
true
e53a599a23ca3bbc6a21ce5405c6958a4a2ea0fd
Shell
saisreenivas-kalla/Guessinggame
/makefile.sh
UTF-8
252
3.15625
3
[]
no_license
git init echo -e "# The name of the project is Guessing game \n" > readme.md date >> readme.md a=$(wc -l guessinggame.sh | egrep -o "[0-9]+") echo -e "\n ## The program contains $a lines of code" >> readme.md git add -A git commit -m "added readme.md"
true
e1ee578cf7e8c890a9bc0f9a06396bb6d40971c1
Shell
pawel-slowik/mklbimg
/mklbimg
UTF-8
3,815
3.75
4
[ "MIT" ]
permissive
#!/bin/bash kernel_file="bzImage" root_file="rootfs.ext2" qemu_image_file="image.qcow2" raw_image_file="image.raw" mlb_path="$HOME/mlb" mlb_file="$mlb_path/mlb.bin" mlb_cmd="$mlb_path/mlbinstall" if [[ ! -f "$kernel_file" || ! -r "$kernel_file" ]]; then echo "kernel file doesn't exist, is not a file or is not reada...
true
8b4cc238ee7ed956675fa522b1fe1936a6ebe185
Shell
redkyn/grader
/misc/completions/_grader.zsh
UTF-8
5,546
3.90625
4
[ "MIT" ]
permissive
_grader_completion() { if [[ -z "$GRADER_HOME" ]] || [[ ! -d "$GRADER_HOME" ]] || [[ ! -e "$GRADER_HOME/config.yml" ]]; then local -x GRADER_HOME="" # Guess GRADER_HOME if it's not set. if [[ -e "$(pwd)/grader.yml" ]]; then GRADER_HOME=`pwd` elif [[ ! -z "$(which grader)" ]]; then GRADER_...
true
526233d317bdfbeb8a9e71153cf9ec88598265b2
Shell
prettyh8machine/pdf-overlay
/pdf-overlay
UTF-8
135
2.578125
3
[]
no_license
#!/usr/bin/env bash set -e ASM=bin/Debug/PdfOverlay.exe if [ ! -f $ASM ]; then make fi mono --debug bin/Debug/PdfOverlay.exe "$@"
true
b698a8d011664e61b2e2db1caf529c941641dcc1
Shell
KentVu/dawg-java
/build_swig.sh
UTF-8
467
3.484375
3
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/bash set -v #if [ "$1" == "-c" ]; then # echo Clone swig # git clone --depth=1 https://github.com/swig/swig.git # shift #fi if [ "$1" == "-d" ]; then echo install dependencies sudo apt-get -yqq install automake bison shift fi if swig -version |grep 'Version 4'; then echo Swig version 4 ...
true
a6eb819561b1b757be989eecc35e537d9fdeb8a1
Shell
matheussampaio/medical-device
/connect.sh
UTF-8
196
2.5625
3
[]
no_license
#!/bin/bash adb shell ip route > addrs.txt ip_addrs=$(awk {'if( NF >=9){print $9;}'} addrs.txt) rm addrs.txt adb tcpip 5555 adb connect "$ip_addrs:5555" echo "you can remove the cable now."
true
d4145ef1ee1e8f5e46500c76bd3cbab7beb4388c
Shell
nisarpro/shell-random
/live/zsh/sudo-emulation.sh
UTF-8
1,199
3.359375
3
[]
no_license
#!/usr/bin/env zsh \which sudo > /dev/null if [ $? -eq 0 ]; then _sudo_exists='true' else _sudo_exists='false' fi # 2016-03-26, on Lubuntu (version not recorded) # 2016-03-28, on Slackware 14.1 #alias su="\sudo $( \basename $( \readlink /proc/$$/exe ) )" #alias sul='\sudo \su --login' # All instance...
true
3a61426765169dce95712362cb8094de7bc31e5d
Shell
Andreas237/AnsiblePlaybooks
/setup_post_boot.sh
UTF-8
250
2.703125
3
[]
no_license
#!/bin/bash # Install ansible and run the playbook specified in $1 # update repos sudo apt update -y # upgrade installs sudo apt upgrade -y # install ansible sudo apt install ansible -y # run a playbook passed to this script ansible-playbook $1
true
123a874d60751b38e80fe649275b5607fc41a154
Shell
Hiroki11x/ofxCustomAddons
/ofxMSATensorFlow/scripts/copy_headers.sh
UTF-8
1,642
3.859375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # ./copy_headers.sh ~/DEV/tensorflow DST='../libs/tensorflow/include' if [[ $# -eq 0 ]] ; then echo echo 'Missing argument. I need the path to your tensorflow repo' echo echo 'Usage: copy_headers.sh path/to/tensorflow' echo 'e.g.: copy_headers.sh ~/DEV/tensorflow' echo echo 'Also note, it will co...
true
2376937f1b0dbfac1b26abe0457651316e585f02
Shell
emzfuu/project
/perks/bootstrap.sh
UTF-8
5,468
3.25
3
[]
no_license
#!/usr/bin/env bash # Download and Install the Latest Updates for the OS sudo echo "Updating Server to Latest patches" sudo apt-get update && sudo apt-get upgrade -y ############################################################################################## ## Update Certificate ...
true
fe444d82656a2f5826daf886b121651ddda33a8a
Shell
horttanainen/goto
/config.sh
UTF-8
1,023
3.484375
3
[ "MIT" ]
permissive
#!/usr/bin/env sh #This content is released under the (https://github.com/horttanainen/goto/blob/master/LICENSE) MIT License. dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) modify="$dir/goto.sh" tmpfile="$dir/tmpfile" newpath="gotopath=\"$dir\"" number=$(grep -n gotopath $modify| cut -d":" -f 1| head -n 1) sed "${n...
true
7cb02b1f7bc43180b8b1d172a32167d692a93065
Shell
mrneo240/psptoolchain
/toolchain.sh
UTF-8
4,206
4.34375
4
[]
no_license
#!/bin/sh # toolchain.sh by Jakub Kaszycki <jakub@kaszycki.net.pl> # This function is based on an old function, which enforced the number of # jobs. Now the only purpose of this function is to provide a way to detect # CPU number when the user wants to detect it. num_cpus () { if command -v getconf >/dev/null 2>&1 t...
true