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
158e3eac3b655cea47c9cd1d1e71c70ea7710eb4
Shell
mbakar01/bottlerocket
/bin/amiize.sh
UTF-8
25,559
3.5625
4
[ "MIT", "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Register partitioned root and data images as an AMI in EC2. # Only registers with HVM virtualization type and GP2 EBS volume type. # The general process is as follows: # * Launch a worker instance with EBS volumes that will fit the images # * Send the images to the instance # * Write the images ...
true
0256626bb788fca93be8bb101d63471e3f1ff94f
Shell
xifeiwu/shell-cdos-upgrade
/usr/lib/cdos-upgrade/upgrade.sh
UTF-8
1,901
3.796875
4
[]
no_license
#!/bin/bash source /usr/lib/cdos-upgrade/upgrade-modules.sh #parse parameter while [ "$#" -gt "0" ] do case $1 in "-h" | "--help") echo "Usage:cdos-upgrade [options] <parameters>" echo " [-U|--upgrade] upgrade package only" #echo " --list-steps list all ste...
true
689aa8bcb3d35a5fa05542691663770a27085a33
Shell
gusnan/scripts_grund
/labb5/uppg4.sh
UTF-8
794
3.609375
4
[]
no_license
#!/bin/bash # # Gör ett betygrättarskript! I en fil finns poängen för varje fråga, ett poäng # per rad. Skriptet ska räkna ihop poängen och returnera vilket betyg som ska # sättas. G=30 VG=48 total=0; # Läs rader, en efter en while read line do if [ ! -z $line ]; then # Lägg till värdet på raden till "total"-var...
true
bf4bd2cb4f239a5b88cfc91927a8781565548cd1
Shell
gustavofsantos/linux-man
/make-manual.sh
UTF-8
591
3.6875
4
[]
no_license
#!/bin/bash # verifica se o diretório "pdfs" existe if [ -d pdfs ] ; then cd pdfs else mkdir pdfs; cd pdfs fi # gera o pdf da man page de cada comando contido no arquivo for COMANDO in $(cat ../$1) do echo "Gerando pdf de $COMANDO..." man -t $COMANDO | ps2pdf - $COMANDO.pdf done echo "Unir pdfs? [sim | não]" rea...
true
5b13ab634ba3b826ebfa8b2e7d832f3ac3c49403
Shell
andyfry/dotfiles
/scripts/functions.sh
UTF-8
927
3.96875
4
[ "MIT" ]
permissive
#! /usr/bin/env sh info () { printf "\r [ \033[00;34m..\033[0m ] $1\n" } user () { printf "\r [ \033[0;33m??\033[0m ] $1\n" } success () { printf "\r\033[2K [ \033[00;32mOK\033[0m ] $1\n" } fail () { printf "\r\033[2K [\033[0;31mFAIL\033[0m] $1\n" echo '' exit } symlink() { OVERWRITTEN="" i...
true
0d9a7cf5410e127f4a0ae54b9323291ec547caed
Shell
TechnoElf/gerald
/install.sh
UTF-8
1,612
4.03125
4
[]
no_license
#!/bin/bash if [[ $EUID -eq 0 ]]; then echo "The installer must not be run as root" exit 1 fi wget -q --tries=10 --timeout=20 --spider http://google.com if [[ $? -ne 0 ]]; then echo "The device must be connected to the internet" exit 1 fi echo "=====================" echo "Gerald Install Script" echo "====...
true
2b40da54fbfb329956c3b8cc6f4199eeb3621326
Shell
grayside/dotfiles
/docker/docker.zsh
UTF-8
193
2.65625
3
[ "MIT" ]
permissive
alias fig=docker-compose alias r="docker-compose -f build.yml run" dcon() { docker exec -it $1 bash } # Support for DevTools if test ! $(which devtools) then eval "$(devtools config)" fi
true
d24f6402d27478119942309cdf674a9e8afdb653
Shell
chaoshunh/teslausb
/tools/checksnapshotlinks.sh
UTF-8
1,330
3.859375
4
[ "MIT" ]
permissive
#!/bin/bash -eu BASE=/backingfiles/TeslaCam REPAIR=false if [ "${1:-}" = "repair" ] then REPAIR=true fi function recentpathfor { recent=${1#*/} filename=${recent##*/} filedate=${filename:0:10} echo RecentClips/$filedate/$filename } find /backingfiles/snapshots/ -type f -name \*.mp4 | sort -r | { while re...
true
e0dac987f0260ac0c56f192d4f3b58d244581b62
Shell
cilindrox/node-vagrant
/scripts/install_mongodb.sh
UTF-8
973
3.234375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Taken from http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ MONGO_VERSION='2.6.6' # Import the public key apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 # Create a list file echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | ...
true
3be33db7a0a1e74b748484e982ae79670d31581f
Shell
aspenmesh/istio
/broker/bin/build_stamp.sh
UTF-8
478
3.5
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # This must be kept in sync with //pkg/version/version.go # Setup build ID based on date and short SHA of latest commit. echo "buildID $(date +%F)-$(git rev-parse --short HEAD)" # Check for local changes git diff-index --quiet HEAD -- if [[ $? == 0 ]]; then tree_status="Clean" else tree_status="Modif...
true
306fb5cd949952c7cf2ede0d7c642c152782aaa4
Shell
cobianzo/react-edit-posterlens
/revertto.sh
UTF-8
287
2.890625
3
[]
no_license
if [ -z "$1" ] then echo "No commit id supplied\nUse sh revertto \"0d1d7fc32\" " exit 1 fi # This will detach your HEAD, that is, leave you with no branch checked out: echo "Make sure you don't have changes in your db that want to keep. Comming back to $1..." git checkout $1
true
a39605be047a0550eb37224987ba032e0c7ffd75
Shell
luolian0/wust-AIStation
/container-scheduler-service/src/main/resources/script/PodStatus.sh
UTF-8
278
3.3125
3
[]
no_license
#!/bin/bash namespace=$1 podName=$2 result=$(kubectl get pod -n ${namespace}|grep ${podName} |awk '{print $3}') if [[ "$result" == "Running" ]]; then echo "is running" else if [[ "$result" == "" ]]; then echo "not found" exit 1; fi echo "not running" exit 2; fi
true
b6d004df06f9105ac66f28f7fe1d316468a03566
Shell
kuanwoo/lemberg
/hw/config.sh
UTF-8
212
3.078125
3
[]
no_license
#! /bin/sh CONF_FILE="hw.conf" OUT_FILE="src/config.vhd" echo "-- Generated file, do not edit!" > $OUT_FILE cat $OUT_FILE.in >> $OUT_FILE cat $CONF_FILE | while read k v; do sed -i s/@$k@/$v/g $OUT_FILE; done
true
cb506b9b5b9eefdcbe843d2dbeb79fa6701b69d2
Shell
msavvop/simple_bash_scipts
/iosmenu
UTF-8
1,497
3.578125
4
[]
no_license
#!/bin/sh while true; do clear echo -n " MENU gnoston ion 1. (E)nter io 2. (M)odify io 3. (D)elete io 4. (S)earch io 5. Display (A)ll 6. (P)rint lista ion poy prosbaloun to arxeio 7. E(x)it Give choice : " read choice case $choice in 1|E|e) clear; echo "Enter io :" echo -n "onoma iou : "; read name e...
true
b4a2f1ea26f0bbfb9975c1da83923c638a0a5e80
Shell
madhavipaspula/test
/testscrpit.sh
UTF-8
145
2.921875
3
[]
no_license
#!/bin/bash #calculate the sumof two integers with pre initialize values # in a shell script a=10 b=20 c=30 sum=$(($a + $b +$c)) echo $sum
true
8d31a56d08b1c51cb46e536a1a81aa58ab51a583
Shell
mickelindahl/jenkins-ci
/lib/assert.sh
UTF-8
215
3.21875
3
[]
no_license
#!/usr/bin/env bash . ./jenkins-ci/lib/print_stack.sh assert () { for arg in "$@"; do if [ "${!arg}" = "" ];then print_stack "Missing env $arg" exit 1 fi done }
true
2e779b564c99eee761ac00b1310a2b689237a06f
Shell
batya239/rg-graph
/phi4/graphs/qsub-gen-sdN-vm.sh
UTF-8
434
2.5625
3
[]
no_license
#!/bin/bash WORKDIR=~/workspace/rg-graph/phi4/graphs GRAPH=$1 NAME="${1}_GSD" MODEL=$2 NODESPPN=1 #echo $PNAME #cat ~/tmp/qsub-integral.tmpl|sed "s/<PROG>/$PNAME/"|sed "s/<POINTS>/$POINTS/"|sed "s/<NODES>/$NODES/"| sed "s/<ITER>/$NITER/"| sed "s/<DELTA>/$DELTA/" cd $WORKDIR cat qsub-gen-sdN.tmpl|sed "s/<MODEL>/$MODEL...
true
efff51c63bea356d9d04edaf1f17a7e9bf3e4b9a
Shell
DhineshOB/CMPE272-ContentClassification
/project272/src/ClassifyFiles.sh
UTF-8
389
3.171875
3
[]
no_license
#!/bin/bash PROJECT_DIR=$(pwd) BUILD_DIR=$PROJECT_DIR/build DATA_DIR=$PROJECT_DIR/data CLASSIFY_0_DIR=$PROJECT_DIR/$1 CLASSIFY_1_DIR=$PROJECT_DIR/$2 echo "current dir : $PROJECT_DIR" echo "build dir : $BUILD_DIR" echo "data dir : $DATA_DIR" NumLinesClassify=$(wc -l build/classify-all-output.txt | awk '{print $1}') ...
true
5bd0a51153512283f3e2f547a76ccc8aa214d4a1
Shell
winsonbook/axiom_beta
/beta-scripts/ptag_idcode.sh
UTF-8
1,420
3
3
[]
no_license
#!/bin/sh cd "${0%/*}" # change into script dir . ./i2c1.func i2c1_set 0x38 0x01 # TDO_W input i2c1_set 0x3A 0xFF # all pullups TDO=0x1; TDI=0x2; TCK=0x4; TMS=0x8 jtag_clock() { local v=$[ $1|$2 ] i2c1_set 0x39 $v i2c1_set 0x39 $[v|TCK] } jtag_in() { local b=$[`i2c1_get 0x39`&TDO] [ $b -eq 0 ] && ech...
true
a3d4b29bc2a9638f4267433c6f049973f7e95a24
Shell
AZ1688/content
/linux_os/guide/system/accounts/accounts-restrictions/password_expiration/accounts_password_set_max_life_existing/bash/shared.sh
UTF-8
320
2.90625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # platform = multi_platform_sle # reboot = false # strategy = restrict # complexity = low # disruption = low SECURE_MAX_PASS_AGE=60 usrs_max_pass_age=( $(awk -F: '$5 > SECURE_MAX_PASS_AGE || $5 == "" {print $1}' /etc/shadow) ) for i in ${usrs_max_pass_age[@]}; do passwd -x $SECURE_MAX_PASS_AGE $i done
true
f6d0c3f3451600009413f8b0d6fb22e81e935b94
Shell
asifturi53/circleci-images
/shared/images/build.sh
UTF-8
715
4.03125
4
[ "MIT" ]
permissive
#!/bin/bash set -eu NEW_ORG=${NEW_ORG:-circleci} DOCKERFILE_PATH=$1 echo Building docker image from $DOCKERFILE_PATH function image_name() { repo_tag=$( echo ${DOCKERFILE_PATH} | sed 's|.*/\([^/]*\)/images/\(.*\)/Dockerfile|\1:\2|g' | sed 's|/|-|g') echo "${NEW_ORG}/${repo_tag}" } IMAGE_NAME=$(image_name) fu...
true
430f8e2cf7db011c79b06194947ed0a39a5be0b5
Shell
ethanxzw/ks-installer
/roles/openpitrix/files/openpitrix/hyperpitrix-kubernetes/scripts/install-minikube.sh
UTF-8
991
2.828125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash MINIKUBE_VERSION=v0.35.0 KUBE_VERSION=v1.13.4 curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBE_VERSION}/bin/linux/amd64/kubectl \ && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ curl -Lo minikube https://storage.googleapis.com/minikube/releases/${MINIKUBE_VERSION...
true
246073af334c0e51bd89ed6fd577a66fb7d6a95a
Shell
npazosmendez/.dotfiles
/.bin/template
UTF-8
287
2.96875
3
[]
no_license
#!/bin/sh # TODO cp ~/code/jonnotebook/codigo/algoesalgo/template.cpp template.cpp if [ -z "$1" ] then cp template.cpp rta.cpp && touch in; else for letter in $( eval echo {a..$1} ) ; do mkdir $letter && cp template.cpp $letter/rta.cpp && touch $letter/in; done fi rm template.cpp
true
6ce8f2173669a90f5fb7d82f75e0d5d9535bc1e5
Shell
Rutujakalyane/UserRegistration_Regex
/UserRegistration.sh
UTF-8
1,980
3.515625
4
[]
no_license
echo "Welcome to User-Registration" function firstNameRegex() { echo "Enter your first name" read firstName firstNameRegex="^[A-Z][a-zA-Z]{2,}$" if [[ $firstName =~ $firstNameRegex ]] then echo valid; else echo "invalid: Starts with Cap & has minimum 3 characters"; ...
true
33419d8cffaf71e8415132cbe3cce1d8ae507685
Shell
pcalcado/inspectionschedule
/InspectionSchedulerIpad/Lib/GoogleToolboxForMac/BuildScripts/BuildAllSDKs.sh
UTF-8
9,260
3.671875
4
[ "Apache-2.0" ]
permissive
#!/bin/sh # BuildAllSDKs.sh # # This script builds the Tiger, Leopard, SnowLeopard and iPhone versions of the # requested target in the current basic config (debug, release, debug-gcov). # # Copyright 2006-2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file ...
true
001afde56ff909793b7535a8f7a91113810a493b
Shell
PratikBhusal/dotfiles
/.config/dmenu/scripts/system_state.sh
UTF-8
692
3.59375
4
[ "MIT" ]
permissive
#!/usr/bin/env sh PROMPT="What state do you want the computer to be in?" OPTIONS="cancel\nlock\nlogout\nsuspend\nhibernate\nreboot\nshutdown" confirm() { [ "$( printf "No\nYes" | dmenu -i -p "Are you sure you want to $1?")" = "Yes" ] && return 0 } case $(printf "%b" "$OPTIONS" | dmenu -i -p "$PROMPT") in l...
true
58f232ff4fb7efb15c054b73bfb6cc1c54b0abb4
Shell
devent/flannel-elk-pipeline
/kubernetes/fluentd/parse.sh
UTF-8
889
3.96875
4
[]
no_license
#!/bin/bash set -e function print_help() { echo "Parses Yaml files with Jinja2." echo "Usage: `basename $0` IN OUT CONFIG" exit 1 } function run_template() { template=$1; shift template_name="`basename $template`" export TEMPLATE="$template_name" export TEMPLATES_DIR="`dirname $template`" /ap...
true
d6a71d05ae96d7073a8e79d0c68cce9a4ef63506
Shell
jeffreyroberts/Developer-Tool-Kit
/libexec/tk-scan
UTF-8
1,044
4.03125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Usage: tk scan [url] # Summary: # Help: Thanks to Alain Kelder @url http://giantdorks.org/alain/little-shell-script-to-recursively-check-a-site-for-broken-links/ set -e # error handling function err_exit { echo -e 1>&2; exit 1; } # check if proper arguments are supplied if [ $# -ne 1 ]; then ...
true
7d068784bc0008a69cc7bf602fac739b2c2741f7
Shell
FlowAppPlatform/flow-change-property-component
/.travis/version..sh
UTF-8
247
3.296875
3
[ "Apache-2.0" ]
permissive
make_version() { p1="$(($1 / 100))" p2="$((($1 - (100 * $p1)) / 10))" p3="$(($1 - (100 * $p1) - (10 * $p2)))" VERSION=$(printf '%s.%s.%s' $p1 $p2 $p3) npm version $VERSION --no-git-tag-version --force } make_version $TRAVIS_BUILD_NUMBER
true
24397dd5185b88d17cc3de42bd1a8b12465df943
Shell
huangynj/gem-3.3.7
/scripts/Um_upload.ksh
UTF-8
6,297
3.109375
3
[]
no_license
#!/bin/ksh # . r.entry.dot echo "************** Um_upload *******************" #====> Obtaining the arguments: eval `cclargs_lite $0 \ -restart "0" "0" "[Restart mode ]" \ -_npex "0" "0" "[# of cpus along x ]" \ -_npey "0" "0" "[# of cpus along y ]" \ -_npeOMP "0" ...
true
ad0f4b2bb2cca154a2f00cdcb63459799cbd53c2
Shell
sgogna/GITPTMTool
/shadowtail/filterLog.sh
UTF-8
196
3.109375
3
[]
no_license
DIR=$(dirname $(readlink -f $0)) File=$1 Start=$2 Stop=$3 head -n 1 $File cat $File | awk -v start="$Start" -v end="$Stop" -- 'BEGIN{FS=" "}{if ($1" "$2 >= start && $1" "$2 <= end){print $0}}'
true
6a727a515da397e9cd675f8afb9d296dbdcba82f
Shell
libopen/ouchnops
/support/elx_import/batchExportStudentCode.sh
UTF-8
835
3.375
3
[]
no_license
rm *.stu for i in *; do extname=`echo $i|rev|cut -d . -f 1|rev`; firstname=`echo $i|cut -d . -f 1` #echo ${i:0:3}; # if filename begin with elc we will deal with by elc pattern and export the first column that is studentcode column. if [[ (${extname:0:3} == xls) && ((${i:0:3} == elc) || (${i:0:4} == sign) ||...
true
6bd089d74566b10a3a57136b7d0a6db39be92684
Shell
wenyue007/stress_tools
/kpi_load.sh
UTF-8
4,072
3.46875
3
[]
no_license
#! /bin/bash - #Author: Jianwei.Hu@windriver.com #Date: 1/10/2016 pre_path="/sys/fs/cgroup/systemd/system.slice/" suf_path="/tasks" [ $# -lt 2 -o $# -gt 3 ] && { cat <<EOF Usage: $0 process duration(minute) interval(second) eg: $0 systemd 5 10 EOF exit 1;} pname=$1 duration=$(($2 * 60 )) interval=${3:-1} [ $i...
true
d15369c29f922f3f47a6c9f5f7e2abc22ea6df87
Shell
laCour/slack-night-mode
/bin/linkify_changelog.sh
UTF-8
363
2.78125
3
[ "CC0-1.0" ]
permissive
#!/bin/bash if [ ! -f CHANGELOG.md ]; then echo "CHANGELOG.md not in current directory." exit 1 fi sed -i -E 's/(\(|\s)([0-9a-f]{5,40})(,|\))/\1\[\2\]\(https:\/\/github.com\/laCour\/slack-night-mode\/commit\/\2\)\3/g' CHANGELOG.md sed -i -E 's/(\(|\s)#([0-9]+)(,|\))/\1\[#\2\]\(https:\/\/github.com\/laCour\/slack-...
true
7ea157f2b1b70445d3aa0d5209847c86f1f68c83
Shell
ANtlord/Ogre3d-study
/build
UTF-8
255
2.953125
3
[]
no_license
#!/bin/bash cd android ndk-build if [ $# -ne 0 ] then echo "Build script running with arguments.../n Processing..." if [ $1 == "debug_install" ] then ant debug install fi if [ $1 == "release_install" ] then ant release install fi fi
true
eba51b023bf2bf4aa22445f3f231c94299cb5f62
Shell
ThatTallProgrammer/sfs_encryption_workshop
/PKI/task3.sh
UTF-8
425
2.796875
3
[]
no_license
#!/bin/bash # Combine the secret key and certificate into one file printf "\n\nCombining server key and certificate\n\n" cp server.key server.pem cat server.crt >> server.pem # Launch firefox printf "\n\nOpening firefox to 127.0.0.1:4433\n\n" firefox https://SEEDPKILab2018.com:4433 1> /dev/null 2>&1 & # Launch the w...
true
d4c95cbdb110f3d8267b1231c668cb3fa944ea10
Shell
ronsm/Assisted-Living-Confluence-Chatbot
/SYSTEM/kill_alana.sh
UTF-8
927
3.375
3
[]
no_license
#!/usr/bin/env bash session="Alana" echo about to kill ${session}, ok? read -n 1 -s -r -p "Press key..." echo sessiontest=`tmux ls | grep ${session}` if [ "${sessiontest}" == "" ]; then echo no running session ${session} else #python ./bot_ensemble/NEW_BOT/kill.py #DEPRECATED COMMANDICLE ...
true
b3f7373882b8313359055230245ea2a4a004c291
Shell
wistaria/rokko
/3rd-party/install/Elpa/fx10.sh
UTF-8
1,549
3.046875
3
[ "BSL-1.0" ]
permissive
#!/bin/bash SCRIPT_DIR=$(cd "$(dirname $0)"; pwd) . $SCRIPT_DIR/../util.sh . $SCRIPT_DIR/version.sh set_prefix sh $SCRIPT_DIR/setup.sh BUILD_TYPES="Release Debug" for build_type in $BUILD_TYPES; do PREFIX_BACKEND=$PREFIX_ROKKO/elpa-$ELPA_VERSION-$ELPA_RK_REVISION/Linux-s64fx/$build_type cd $BUILD_DIR mkdir -p ...
true
ea842f70acf5eb99536d10c8c6e606ccdd70cc9b
Shell
ambareesha7/node-zaryn
/scripts/release.sh
UTF-8
1,671
4.125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash INSTALL_DIR=~/aebot/build UPGRADE=0 usage() { echo "Usage:" echo "" echo " Release Zaryn node binary" echo "" echo " " release.sh [-d dir] " Specify the installation dir" echo " " release.sh -u " Upgrade the release" echo " " release.sh -h " Print the help usage" echo "" } ...
true
cbf5458ffd84e95a535f7b396d4f205782531e0a
Shell
amlucent/docker-containers
/couchpotato/edge.sh
UTF-8
270
3.234375
3
[]
no_license
#!/bin/bash # Does the user want the latest version if [ -z "$EDGE" ]; then echo "Bleeding edge not requested" else cd /opt/couchpotato echo "pulling updates from git" git pull > /dev/null 2>&1 echo "pull complete" chown -R nobody:users /opt/couchpotato fi
true
0b804cc541e426b4950676faa32c347ecfca4334
Shell
guilhermejr/dataFotos
/dataFotos.sh
UTF-8
1,258
3.984375
4
[]
no_license
#!/bin/bash # # Desenvolvido por: Guilherme Jr. http://www.guilhermejr.net # Licença de uso: GPL # # --- Formata data para ser usada no comando --- DIA=$(echo $1 | cut -d/ -f 1) MES=$(echo $1 | cut -d/ -f 2) ANO=$(echo $1 | cut -d/ -f 3) DATAFORMATADA="$ANO:$MES:$DIA" # --- Função para a exibição do erro e sair --- e...
true
d8228a99e5af1932f0e46133466997b355ec375f
Shell
mvalleavila/StormStreamingCompleteExample
/appendFileService/appendToFileService.init
UTF-8
926
3.96875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash logDir="logs" logFile="$logDir/appendToFile.log" inputFile="LoremIpsum.txt" outputDir="spoolDir" outputFile="$outputDir/growingFile.txt" appendDelay=1 rotateDelay=30 start() { echo "Starting appendToFile" if [ ! -d $logDir ] then mkdir $logDir fi if [ ! -d $outputDir ] then mkdir $out...
true
86f279141fb5bc5f55f5d9b99e622ec6d31592fd
Shell
LeoLeLonquer/gen_mdp
/gen_mdp.sh
UTF-8
806
3.578125
4
[]
no_license
#!/bin/bash set -e USAGE="Usage : gen_mdp.sh [NB_MOTS] [LON_MOT] \n\ NB_MOTS: (optionnel) nombre de mots dans le mot de passe\n\ LON_MOT: (optionnel) longueur minimale des mots" [ "$1" = "-h" ] && echo -e "$USAGE" && exit [ "$1" = "--help" ] && echo -e "$USAGE" && exit DICO_FICHIER="/Users/leolelonquer/Dropbox/...
true
0aea6a0edec2fd02e1b1867ce0b8a66736725558
Shell
ECE465-Cloud-Computing/ECE-465-Cloud-Computing-Final
/Scripts/clean.sh
UTF-8
1,837
3.328125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # fetch config from AWS for currently running infrastructure source ./load_lab_config.sh NOW=$(date '+%Y%m%d%H%M%S') LOGFILE="./cleanup-${NOW}.log" echo "Removing Full AWS infrastructure for ${APP_TAG_NAME}:${APP_TAG_VALUE}" | tee ${LOGFILE} echo "Running cleanup.sh at ${NOW}" | tee -a ${LOGFILE...
true
8402032d068df811dc0964967e3dea27a9ecba82
Shell
izcet/dotfiles
/$HOME/.alias
UTF-8
428
2.765625
3
[]
no_license
#!/bin/bash # simple colorizations alias ls="ls -G" alias grep="grep --color=auto" if [ -n "$(which colordiff)" ] ; then alias diff="colordiff" fi # .bashrc alias vb="vim ~/.bashrc" alias sb="source ~/.bashrc" # .zshrc alias vz="vim ~/.zshrc" alias sz="source ~/.zshrc" # .vimrc alias vv="vim ~/.vimrc" # becaus...
true
2dd7b47564a12707931c4faacae8509f0ea81e33
Shell
michaelczhou/SEMANTIC_VISUAL_SUPPORTED_ODEMETRY
/scripts/install_pcl.sh
UTF-8
2,259
3.5625
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -ex ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # import libs source ${ROOT}/scripts/utils.sh VERSION="1.11.1" PKG_NAME=pcl PKG="pcl-${VERSION}" PKG_SRC=${PKG}.tar.gz DOWNLOAD_LINK="https://github.com/PointCloudLibrary/pcl/archive/${PKG_SRC}" WORKHORSE="gpu" # if [ -z "${WORKHOR...
true
fd79cbd8dd0cbb21de66527031e1b5fdced08512
Shell
Seanstoppable/dotfiles
/zshrc
UTF-8
1,514
2.96875
3
[]
no_license
export LSCOLORS=Gxfxcxdxbxegedabagacad #Completions fpath=(/usr/local/share/zsh-completions $fpath) if type brew &>/dev/null; then FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH fi autoload -Uz compinit && compinit # Don't blow up if we think we have a glob and can't match setopt +o nomatch set bell-style...
true
5c5672509caa627566390c379c2655d6406c553b
Shell
crimsoncantab/oldschool
/school/cs165/asst2/queries_ff.sh
UTF-8
769
2.875
3
[]
no_license
#!/bin/sh echo a grep 'Turing,Alan' data.csv; echo b grep -E "`grep "Turing,Alan" data.csv | cut -d , -f 6`(,[^,]*){3}$" data.csv; echo c grep -E ',San Francisco(,[^,]*){3}$' data.csv | wc -l; echo d grep -E '7th St[^,]*,Chicago(,[^,]*){3}$' data.csv; echo e grep '^[^,]*,N' data.csv | cut -d , -f 1-2; echo f gre...
true
09228249f90e46f2d53a6bd0d19e0d8744329a36
Shell
jorgenbele/sh
/utils/checker.sh
UTF-8
1,343
4.3125
4
[]
no_license
#!/bin/sh # File: checker # Author: Jørgen Bele Reinfjell # Date: 04.02.2019 [dd.mm.yyyy] # Description: # Script used for routinely checks LIST_1337X_FILE="$HOME/.1337x.list" # $@ list of search terms to check # returns - list of terms if search returns a nonempty list check_1337x() { ret="$(1337x --terse ...
true
658326e295a57bac411b2e6e66e402b09c74a796
Shell
vishalpmittal/practice-fun
/funNLearn/src/main/java/utils/rename_each.sh
UTF-8
481
4
4
[]
no_license
#!/bin/bash counter=1 file_type='jpg' getCount() { x=$1 while [ ${#x} -ne 3 ]; do x="0"$x done echo "$x" } if [ $# -eq 2 ]; then for entry in "$1"/* do currCount=$(getCount "$counter") newFileName="$2-$currCount.$file_type" echo "Renaming $entry to $newFileN...
true
646e045d4ba73545f43cbc409bb0a8ff655669ea
Shell
danarchy85/danarchy
/bash/kernel_install_danarchy.sh
UTF-8
1,392
3.90625
4
[ "MIT" ]
permissive
#!/bin/bash # Make and Make Modules_Install on current /usr/src/linux path, # and install into /boot/ with grub-mkconfig # added lines for Xen setup path="/usr/src" version=$(find $path -maxdepth 1 -type l -exec ls -l {} \; | awk -F- '{print$3}') kernel="kernel-$version-danarchy_intel_xen_zfs" config="config-$version-...
true
c553f3be3cc2eb24e75147fc9b742d7d2d8d1802
Shell
akiicat/vim
/vim/install
UTF-8
1,753
3.375
3
[ "MIT" ]
permissive
#!/bin/bash source ../utils echo "[VIM]: Install vim at $OSTYPE" if [[ "$OSTYPE" == "linux-gnu" ]]; then # Centos if [ -f /etc/redhat-release ]; then echo "[VIM]: TODO install vim 8.0 on Centos" fi # Ubuntu if [ -f /etc/lsb-release ]; then # install add-apt-repository $sh_c "apt install -yqq so...
true
8059e3c52578b4bfdc94b06d1e4e4fbde18d295f
Shell
labsutet/webradio
/www/cgi-bin/volume.cgi
UTF-8
706
2.875
3
[]
no_license
#!/bin/sh echo "Content-type: text/html" echo "" echo "<html><head><title>Radio</title>" echo "<meta http-equiv=\"cache-control\" content=\"max-age=0\" />" echo "<meta http-equiv=\"expires\" content=\"-1\" />" echo "<meta http-equiv=\"pragma\" content=\"no-store\" />" echo "</head>" echo "<body>" echo "<span id=volume>...
true
a486d7d5f969bf7a01f8cb7c42868799c45dd240
Shell
greshem/bin
/aix_ssh_nopasswd.sh
UTF-8
440
3.34375
3
[]
no_license
#!/bin/sh if [ ! $# -eq 1 ] ;then echo "Usage: $0 host_ip ,now exit" echo "Help: to make ssh the computer without the password" exit -3 fi RSA_PUB=/.ssh/id_rsa.pub RSA=/.ssh/id_rsa ############################################################ if [ ! -f $RSA_PUB ];then echo "the rsa file maybe not correct ,you sho...
true
99fc261c486182e0b702ca3ab74c43d431c72d7d
Shell
tapper/Tapper-Deployment
/tapper-starterkit/utils/prepare-perlmodule
UTF-8
2,998
3.125
3
[ "BSD-2-Clause" ]
permissive
#! /bin/bash export TAPPER_SERVER export TAPPERFROMGIT export GITPREFIXTAPPERLIBS export GITPREFIXTESTSUITES export PYTHONSTATICTWEAKS export PERLVERSION export CPUCOUNT=`cat /proc/cpuinfo | grep vendor_id | wc -l` export PERLVERSION=${PERLVERSION:-5.12.3} export PERLBREW_ROOT=/opt/tapper/perl export TWMC_TEST_PORT=9...
true
59794263416be5b0e0d5c21973a532ffad51b348
Shell
nikosNalmpantis/examples
/.github/perf-script.sh
UTF-8
722
3.265625
3
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
#!/bin/bash # required for downloading data from S3 pip install -e git://github.com/jina-ai/cloud-helper.git@v0.0.2#egg=jinacld_tools cd .. reqs=`find . -name "requirements.txt"` folders=() for req in $reqs; do module=`dirname $req` if test -f "$module/setup_run.sh"; then echo "$module has 'setup_run.sh'. will...
true
967170953d4ce7cda12b4677ed39ff34e22c244b
Shell
AlexRogalskiy/shell
/case_42.sh
UTF-8
396
3.671875
4
[ "MIT" ]
permissive
#!/bin/sh # Hackish way to set system time to GPS PPS # Pre-fetch date info DATE="$(date +%m%d)" YEAR="$(date +%y)" # Pause and return UTC time string as close to PPS as possible: UTC="$(awk -F, '/\$GPGGA/ {print $2; exit}' /dev/rfcomm0 | cut -c 1-6)" TIME="$(echo $UTC | cut -c 1-4)" SECONDS="$(echo $UTC | cut -c 5-6...
true
770fb8061b28b389b05e913df49787d706b4eac8
Shell
ryantroyford/iD
/img/source/makesprite
UTF-8
676
3.484375
3
[ "WTFPL", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash if [[ -z `which glue` ]] ; then echo "You need to install glue." echo "http://glue.readthedocs.org/en/latest/installation.html" exit 1 fi MAKIPATH=$1 if [[ -z $MAKIPATH ]]; then echo "Usage: makesprite PATHTOMAKI" exit 1 fi dir=$(dirname $0) img="$dir/.." css="$dir/../../css" cd $d...
true
8c43b7358e1230e7ba55960e9f9cb44e3187f520
Shell
ashleymcdonald/dots
/.local/bin/displayLink
UTF-8
750
3.140625
3
[]
no_license
#!/bin/sh echo "Adding 1080p to the laptop display" xrandr --setprovideroutputsource 1 0 xrandr --newmode "1920x1080@60" 182.28 1920 1952 2640 2672 1080 1102 1113 1135 xrandr --addmode eDP-1 "1920x1080@60" xrandr --addmode DVI-I-1 "1920x1080@60" echo "ReStarting DisplayLink Service.." sudo systemctl restart displayli...
true
2b235db73b12956487206460bd673f5fb85dfb2f
Shell
HumanCompatibleAI/adversarial-policies
/experiments/benchmark_vec_env.sh
UTF-8
350
2.765625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash NUM_ENVS="1 2 4 8 16" for num_env in $NUM_ENVS; do for rep in 1 2 3; do echo "BENCHMARK: ${num_env} environments test ${rep}" time python -m aprl.train with \ total_timesteps=50000 num_env=${num_env} \ exp_name="vec-env-benchmark-${...
true
7931ae6f632dd1d472e09402d69201f87723a588
Shell
clorry/Open-IM-Server
/script/docker_check_service.sh
UTF-8
923
3.640625
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash source ./style_info.cfg docker_compose_components=( etcd mongo mysql open-im-server redis kafka zookeeper ) component_server_count=0 for ((i = 0; i < ${#docker_compose_components[*]}; i++)); do component_server="docker-compose ps|grep -w ${docker_compose_componen...
true
dd4c1b5dedd17117c266a4cb3c5b3e2fc3d3063d
Shell
vusec/osiris
/autosetup-minix.sh
UTF-8
693
3.171875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e : ${PATHROOT:="$PWD"} if [ ! -f "$PATHROOT/autosetup.inc" ]; then echo "Please execute from the root of the repository or set PATHROOT" >&2 exit 1 fi LLVMBRANCH=RELEASE_34/final LLVMVERSION=3.4 LLVMVERSIONCONF=minix source "$PATHROOT/autosetup.inc" # store settings ( echo "export PATH=\"$PATHA...
true
7f07d7fc935972f96a0b16f87af700f017aa3ac3
Shell
madtempest/nagios-plugins
/check_zpool_health.sh
UTF-8
859
3.578125
4
[]
no_license
#!/bin/sh # Getting parameters: while getopts "p:" OPT; do case $OPT in "p") pool=$OPTARG;; esac done iterate="$(zpool list | wc -l | tr -d ' ')" iterate="$(( $iterate + 1 ))" i=2 while : ${start=$i} poolname="$(zpool list | awk -v awk_i=$i 'NR==awk_i { print $1 }')" ...
true
bf7df86fd22e26485b75042810abc4c0b5978091
Shell
ericcurtin/staging
/meson-build.sh
UTF-8
328
3.328125
3
[]
no_license
#!/bin/bash set -e host="$1" base="$(basename $PWD)" path="~/git/$base/" cmd="meson build --prefix=/usr && ninja -v -C build && sudo ninja -v -C build install" if [ -z "$host" ]; then /bin/bash -c "$cmd" else clean="&& rm -rf build" if [ -z "$2" ]; then unset clean fi ssh $host "cd $path $clean && $c...
true
726a89e99116cd4b4a709bdc255ba3b45864c88b
Shell
tangfeng1/possum
/make
UTF-8
7,464
3.46875
3
[]
no_license
#!/bin/bash JQUERY="jquery-2.0.3.min.js" HIGHCHARTS="Highcharts-3.0.6.zip" APPS="base stats" function my_help { cat << 'EOF' Usage: ./make [a command] List of commands: create_json_demo : create JSON fixtures in possum/base/fixtures/demo.json doc : make the documentation in html de...
true
84d4609477e60dc4145fa60a7200c7b1df292cb5
Shell
Gyiming/LLVMpass
/build.sh
UTF-8
2,363
3.703125
4
[]
no_license
#!/bin/bash echo "Checking hostname..." if [ "$HOSTNAME" != "cycle1.csug.rochester.edu" ]; then tput setaf 1 ; echo "Need to be on cycle1.csug.rochester.edu to use this script! Running on $HOSTNAME" ; tput sgr0 return -1 fi echo "Setting \$LLVM_HOME and updating \$PATH (Note: You should be running this script via '...
true
455bce09956cc340bb2ccecb6e92412bc7981053
Shell
MaienM/dotfiles
/local/bin/git-obliterate
UTF-8
698
3.484375
3
[]
no_license
#!/bin/zsh # Remove a file from the history set -o errexit source ~/.zsh/rc/functions/prompt.zsh echo "--------------------------------------------------------------------------------" echo "This will modify history, which will cause headaches for any unmerged code!" echo "If anyone else works on this codebase they ...
true
3155f439c62a7694abe357b95e4fdf95fb8f0734
Shell
jvst/one
/sbin/LogAchieve.sh
UTF-8
208
3.140625
3
[]
no_license
#!/bin/sh # BakDir="" Yesterday=$(date -d 'yesterday' +%Y%m%d) LogDir="../lib/bts.$Yesterday.*.log" if [ ! -d $BakDir ] then mkdir $BakDir fi tar -zcvf $BakDir/bts.$Yesterday.tar.gz $LogDir rm $LogDir
true
2ca8b883d0aef65ed032456e16986b1315ca9cde
Shell
tdh-foundation/automate
/wordpress.sh
UTF-8
1,715
3.53125
4
[]
no_license
#!/bin/bash # # Wordpress install script (normaly launched by new.sh) # ## Loading config if [ "${CONFIG[NAME]}" == "" ]; then source ./loadconfig.sh; fi echo "Starting Wordpress installation for ${CONFIG[NAME]}..." # Downloading latest version of wordpress curl -O https://wordpress.org/latest.tar.gz # unzip wordpres...
true
30933b8b9808f432df90043ecb360be555f2d4db
Shell
ngkim/vagrant
/2016-onebox-staging/install_ZBX.sh
UTF-8
366
2.671875
3
[]
no_license
#!/bin/bash IP="211.224.204.250/25" GW="211.224.204.129" _HOSTNAME="zabbix" ifconfig eth1 $IP ip route del default ip route add default via $GW apt-get install -y git mkdir -p /root/workspace cd /root/workspace git clone https://github.com/ngkim/stack_ops.git cd /root/workspace/stack_ops/iptables ./apply-iptables.sh...
true
670238ad7ee39caf52ab97404b1ba514157e8008
Shell
Steven-Sakurai/OUSVJJ
/clear_result.sh
UTF-8
138
2.71875
3
[]
no_license
i="1" dirName="session" while [ $i -lt 16 ] do name=$dirName$i rm $name/conv.csv rm $name/est.csv rm $name/success.csv i=$[$i+1] done
true
3e14a3ba8c64c16434f1b78cd4e268c009fdcd1a
Shell
ut-dacs/MOOC-Internet-Management-Protocols
/server-provision
UTF-8
2,113
2.75
3
[]
no_license
#!/bin/bash # Update packages and install dependencies apt-get update apt-get -y install build-essential apache2 apache2-utils libapache2-mod-php5 libgd2-xpm-dev openssl libssl-dev xinetd unzip # We need net-snmp apt-get install snmp -y # Create nagios user and group useradd nagios groupadd nagcmd usermod -G nagcmd ...
true
daab77d2f668ab0f785ad1ca5261b0a091abe179
Shell
dustoncloud/Old-files
/Nagios4Install.sh
UTF-8
3,586
3.484375
3
[]
no_license
############ Installation Script for nagios -4.3.4 ################## # SCRIPT SETUP AREA # Setup those variable accordingly... specially those versions will outdate! NAGIOSUSER="nagios" NAGIOSGROUP="nagcmd" NAGIOSCOREVERSION="nagios-4.3.4" NAGIOSPLUGINSVERSION="nagios-plugins-2.2.1" # SCRIPT EXECUTION CODE echo "Ins...
true
d8586ccb7a6aefe6418d82567099a711ad5104c7
Shell
justinsb/openstack-simple-config
/roles/objectstore/script
UTF-8
10,398
3.34375
3
[]
no_license
#!/bin/bash #==================================== # Begin boilerplate set -e PRG="$0" while [ -h "$PRG" ] ; do PRG=`readlink "$PRG"` done pushd `dirname $PRG` > /dev/null cd .. cd .. BASEDIR=`pwd` popd > /dev/null . ${BASEDIR}/bin/helpers/functions # End boilerplate #==================================== ROLEDI...
true
2911d5d9af72b1c5360bffee1dfb414651d3cb7f
Shell
JoakimFristedt/dotfiles
/i3/scripts/display
UTF-8
3,860
3.890625
4
[]
no_license
#!/usr/bin/env bash command -v xrandr > /dev/null 2>&1 || { echo >&2 "display: I require xrandr, but it's not installed. Aborting."; exit 1; } command -v xrandr-tool > /dev/null 2>&1 || { echo >&2 "display: I require xrandr-took, but it's not installed. Aborting."; exit 1; } command -v i3-nagbar > /dev/null ...
true
95a2c404f823179a7dc5526f6e03eeb3fc7f6f42
Shell
ZolotarenkoM/scripts
/switch_kub.sh
UTF-8
382
2.578125
3
[]
no_license
#!/bin/bash case $1 in test) kubectl config use-context test.us-east-2.k8s.domain.com ;; poc) kubectl config use-context dev-poc.us-east-2.k8s.local ;; desk) kubectl config use-context docker-for-desktop ;; ort-west) echo 'export AWS_SDK_LOAD_CONFIG=1 && export AWS_PROFILE=<AWS_PROFILE>' ...
true
2f43c2a175348ff202955d20781c75def2522c9f
Shell
gpita220/OP
/type.sh
UTF-8
342
2.734375
3
[]
no_license
#!/bin/bash echo "Joke:" echo "<---->" echo "Choose a type:" echo "(single,twopart)" read tip curl "https://v2.jokeapi.dev/joke/Any?type=$tip" > tipus.txt echo $(grep "setup" tipus.txt) echo $(grep "delivery" tipus.txt) echo $(grep "type" tipus.txt) echo $(grep "category" tipus.txt) echo $(grep "joke" tipus.txt) echo "...
true
dc325bef3b43534b7bd6c4bd51d2e8f5319ca0e1
Shell
finixbit/wlanflow
/bin/airmon-ng
UTF-8
47,859
3.375
3
[ "MIT" ]
permissive
#!/bin/sh DEBUG="0" VERBOSE="0" ELITE="0" USERID="" IFACE="" checkvm_status="" MAC80211=0 IW_SOURCE="https://www.kernel.org/pub/software/network/iw/iw-4.3.tar.gz" IW_ERROR="" if [ ! -d /sys/ ]; then printf "CONFIG_SYSFS is disabled in your kernel, this program will almost certainly not work.\n" fi if [ "${1}" = "--e...
true
23fc8f1c80265cac4871b850904cf17ddcf9d5e2
Shell
anlitsai/ngc3628-smt
/generate_script_19_rebin.sh
UTF-8
2,814
2.984375
3
[]
no_license
#!/bin/bash file_script='rebin.class' echo $file_script file_class_in[0]=`ls | grep n3628 | grep smt-f1m | grep ave_base.smt` file_class_in[1]=`ls | grep n3628 | grep fmt-fqm | grep ave_base.smt` echo ${file_class_in[@]} file_class_root_in[0]=`echo ${file_class_in[0]} | cut -d . -f1` file_class_root_in[1]=`echo $...
true
178413f405b9c73ac7b3954e14a5a7a6989f519e
Shell
cisagov/Malcolm
/scripts/github_image_helper.sh
UTF-8
6,893
4.15625
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -uo pipefail shopt -s nocasematch ENCODING="utf-8" # get the nth column of output function _cols() { first="awk '{print " last="}'" cmd="${first}" commatime="" for var in "$@"; do if [ -z $commatime ]; then commatime="no" cmd=${cmd}\$${var} else cmd=${cmd}\,...
true
11f20b1e62d08b45ca86cfd307fea9e87e471960
Shell
shusaid/dotfiles
/setup.sh
UTF-8
982
3.765625
4
[]
no_license
#!/bin/bash DOT_FILES=( .gemrc .zshrc .zprofile .bashrc .bash_profile .gitconfig .gitignore ) PATHES="$HOME/src/github.com/shusaid/dotfiles" for file in ${DOT_FILES[@]} do if [ -a $HOME/$file ]; then if [ -L $HOME/$file ]; then echo "既にシンボリックリンクが存在します!: $file" elif [ -d $HOME/$file ]; then echo ...
true
c00628da2879b39508710336d22a6fd053f8318e
Shell
nichuanfang/config-server
/scripts/github-login.sh
UTF-8
370
2.515625
3
[]
no_license
# !/bin/bash # github登录脚本 for Ubuntu18.0 # 1. 需要先在~/.bashrc中配置环境变量 GH_TOKEN='你的token' (To use gh in GitHub Actions, add GH_TOKEN: ${{ github.token }} to "env".) # 2. source ~/.bashrc 刷新配置 使之生效 # 3. 安装github command line tool(Github Cli) : `snap install gh` # -h 指定登录的域名 gh auth login -h GitHub.com
true
09bd6f8034a76e44d7b29a43f4d38c4b224c6a4c
Shell
cawa0505/crosware
/recipes/tmux/tmux.sh
UTF-8
653
2.71875
3
[]
no_license
# # can be built with netbsdcurses: # CPPFLAGS=\"-I\${cwsw}/libevent/current/include -I\${cwsw}/netbsdcurses/current/include\" # LDFLAGS=\"-L\${cwsw}/libevent/current/lib -L\${cwsw}/netbsdcurses/current/lib -static\" # LIBS=\"-lcurses -lterminfo\" # rname="tmux" rver="3.0a" rdir="${rname}-${rver}" rfile="${rdir}.ta...
true
0f791ff1cbbc55e2f42824681efa9c67cb10d80c
Shell
rogalmic/vscode-ksh-debug
/kshdb_dir/init/pre.sh
UTF-8
4,112
3.515625
4
[ "MIT" ]
permissive
# -*- shell-script -*- # dbg-pre.sh - Code common to kshdb and kshdb-trace that has to run first # # Copyright (C) 2008, 2009, 2010 Rocky Bernstein rocky@gnu.org # # 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 ...
true
4a534d06b71ea475ecb5e41f86a8f86453eb2c24
Shell
MJVegad/SoftwareLab
/tex2pdf-c.sh
UTF-8
1,019
4.09375
4
[]
no_license
#/bin/bash # This program should compile the latex file given as argument. The # tex file can be in any directory; its full path name or relative # path name may be given as argument. And if the latex compilation # succeeds, it should tar-gzip the entire directory in which the latex # file resides, from the parent d...
true
e113a6ab51dfab311b1fc1980c8d3546ac2c136f
Shell
KoreaUSeoul/Toronto-2015
/express-server/MySQL_Setup.sh
UTF-8
810
3.140625
3
[ "MIT" ]
permissive
#!/bin/bash sudo clear #Installing MySQL sudo apt-get install mysql-server mysql-client #Creating a database in accordance to config.js #Default password is a blank string USER="root" HOST="localhost" NAME="fba" sudo mysqladmin -u $USER -h $HOST -p create $NAME #Entering MySQL interface clear sudo mysql -u $USER -h ...
true
88babedde47d6208248588339b19135e67c8b272
Shell
vianneyJouhet/dbGaP2I2b2TM
/etl-client/scripts/download-dbgap-files.sh
UTF-8
885
3.34375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash echo"" echo "############## Starting ##############" echo "" dir=$PWD path=$1 krt_file=$2 key=$3 key_path=$path/$key krt_path=$path/$krt_file echo "Path is $path" echo $key_path vdb-config --import $key_path working_dir=`ls -d /root/ncbi/*` echo"" echo "############## End config ##############...
true
611dddab981557dc9435de43b9f3daac90df316f
Shell
shigeyf/openssl-for-appleos
/build-libssl.sh
UTF-8
3,260
3.359375
3
[ "MIT" ]
permissive
#!/bin/sh # Automatic build script for libssl and libcrypto # -u Attempt to use undefined variable outputs error message, and forces an exit set -u # # Default configurations # # Default version in case no version is specified DEFAULTVERSION="1.1.1g" # Default (=full) set of targets to build DEFAULTTARGETS="ioss...
true
ee9d07a84e4015c9e5fc06a3362da44be851a807
Shell
loymegan/cloud1903-1
/9.array02.sh
UTF-8
208
2.921875
3
[]
no_license
#!/usr/bin/env bash # # author: bavdu # date: 2019/05/28 array=(1 "php" "php-fpm" "php-mysql" "php-devel" "php-mbstring") arrayLen=${#array[*]} for i in `seq 0 $((arrayLen-1))` do echo "${array[$i]}" done
true
d1a546df4994231285aa5331af80ef9a5cb9bd09
Shell
DevDungeon/Cookbook
/bash/cli_args.sh
UTF-8
673
4.25
4
[]
no_license
#!/bin/bash # $@ - Array of args Arg 0 is script itself e.g. ./cli_args.sh or cli_args.sh # $# - Number of args passed 0 if no args passed to script (excludes arg 0) # $0, $1, $2 - Directly address args passed. echo "You provided the arguments:" "$@" # You could pass all arguments to another program like this # m...
true
18356f01480d3df2ee42e2fb16fea68a62fefd3d
Shell
xidram/scripts
/gps.sh
UTF-8
440
3.453125
3
[]
no_license
#!/bin/bash CURRENT_TIME=`date "+%H%M%S%d%m%y"` LOG_DIR=/home/gpsdata LOG_NAME=$LOG_DIR/gps_$CURRENT_TIME.log if [ ! -d "$LOG_DIR" ]; then mkdir -p $LOG_DIR fi while : do echo "Press [CTRL+C] to stop.." echo >> $LOG_NAME echo -------------------------------------------------------------- >> $LOG_N...
true
674924c342c38b8d74f66e9cda481705f0e85705
Shell
asialiugf/see
/resource/mkdir_for_bar.sh
UTF-8
2,683
2.703125
3
[]
no_license
#!/bin/sh # cat see_future_time | while read LINE #do # $kk = `echo $LINE | awk "{print $2}"` # echo $kk #done kk="mm" ; if [ "$kk" != "#" ]; then echo $kk fi mkdir $HOME/see/dat mkdir $HOME/see/dat/ctp_dat mkdir $HOME/see/dat/rcv_dat mkdir $HOME/see/dat/tst_dat mkdir $HOME/see/bin mkdir $HOME/see/bin/exe ...
true
e34ad60943c7d0c5c57f7e5a06323a368483bb0e
Shell
smiglo/scripts-aka-dot-files
/bin/repo.sh
UTF-8
11,166
3.40625
3
[]
no_license
#!/usr/bin/env bash # vim: fdl=0 if [[ $1 == '@@' ]]; then # {{{ if [[ $2 == --shorts ]]; then echo "!d -D --diff-ign" echo "!dd -D" exit 0 fi case $(compl-short -i $3) in -r | --repos) find . -maxdepth 2 -type d -path '*/build-*' -prune -o -name .git -exec dirname {} \;;; --base) ret="$(git ...
true
539818f978c543414b8e6a64f607106999dc630c
Shell
io-classic/System
/gendocs.sh
UTF-8
3,674
3.125
3
[]
no_license
#!/bin/bash echo "# Packages" > README.md echo >> README.md echo "| Package | |" >> README.md echo "| ------- | -------- |" >> README.md for j in `tail -n +2 Packages.Ndx | awk -F ',' '{print $1}'`; do mods=`grep '^p,' "$j.Pkg" | awk -F',' '{print "["$2"](README.md#"$2"-doc-src)"}' | tr '\n' ' ' | sed -e 's...
true
f23c94291babc33e69aead1fd75e714e6e8fb22c
Shell
larry-fuy/opendds-crossplatform
/build.sh
UTF-8
2,428
3.265625
3
[]
no_license
#!/bin/sh # This script tries to run the OpenDDS cross-platform test # Currently only Linux (Ubuntu) and Windows are considered # steps: # 1) setup network (setup_network) # 2) start Docker container to run InfoRepo and publisher # 3) start Vagrant to run subcriber # 4) clean. # static ips for InfoRepo, Publisher and...
true
7396c90e3876840392478c7e7dc53ac9ab94a39e
Shell
ChillMagic/Create-TypeInfo-Library
/compile.sh
UTF-8
604
2.59375
3
[]
no_license
mkdir build-s mkdir build-d python create.py typeinfo.txt typeinfo build-s python create.py typeinfo.txt typeinfo build-d cd build-s cp ../test.c . gcc -std=c99 -o typeinfo.o -c typeinfo.c ar -r libtypeinfo.a typeinfo.o gcc -std=c99 -o test test.c -L. -ltypeinfo cd .. cd build-d cp ../test.c . gcc -std=c99 -shared -f...
true
7835e4279607973c0d4899861d0a018d0c95abdf
Shell
includerandom/ansible-arch
/create_arch_iso.sh
UTF-8
1,778
3.515625
4
[]
no_license
#!/usr/bin/bash if [ $UID != 0 ]; then echo "$0 must be run as root" exit 1 fi archisodir="/tmp/archiso$RANDOM" bootentrydir="$archisodir/efiboot/loader/entries/" bootentrycd="$bootentrydir/archiso-x86_64-cd.conf" bootentryusb="$bootentrydir/archiso-x86_64-usb.conf" # Create directory mkdir $archisodir # ...
true
51ad5a112be1be0951e97dd6df07fab7fd20b32d
Shell
maswx/myevm
/config.sh
UTF-8
752
3.109375
3
[]
no_license
#!/bin/bash if [ -f ~/.vimrc ]; then if [ -f ./vim/.vimrc.old ]; then echo error! please check and rm `pwd`/vim/.vinrc.old echo vimrc installation failed else cp ~/.vimrc ./vim/.vimrc.old rm ~/.vimrc ln -s `pwd`/vim/vimrc ~/.vimrc fi else ln -s `pwd`/vim/vimrc ~/.vimrc fi # vim if [ -f ~/.vim ]; then...
true
338de9843024f65669c64a9462e3e5bb70088ecc
Shell
Ghifari160/reman
/src/packager/packager.sh
UTF-8
743
3.6875
4
[]
no_license
#!/bin/bash unameOut="$(uname -s)" case "${unameOut}" in Linux*) machine=Linux;; Darwin*) machine=Mac;; CYGWIN*) machine=Cygwin;; MINGW*) machine=MinGw;; *) machine="UNKNOWN:${unameOut}" esac echo "Packaging..." mkdir -p ${1} if [ $machine == "Linux" ]; then zip -r -X ...
true
67aea2425f7ba95a51da4b1db02e24a1d73ad215
Shell
PinkDiamond1/dotfiles-5
/bin/bin/fancywatsonstatus
UTF-8
203
2.84375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash project=$(watson status --project) if [[ $project != "No project started." ]]; then elapsed=$(watson status --elapsed) echo "$project ⌛$elapsed" else echo $project fi
true