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
5355d9d5689ea02ef0b12c5af02657155ef1cf1b
Shell
ChrisBlanks/OpenNintendoProCon
/install.sh
UTF-8
999
3.65625
4
[ "MIT" ]
permissive
#!/bin/bash # Author: ChrisB # Purpose: Installs application files to '.local' folders. # Note: Probably won't work on systems that don't use .local for storing application data # APP_NAME="openprocon" LOCAL_BIN=".local/bin" LOCAL_SHARE=".local/share" EXEC_NAME="openprocon" EXEC_PARENT_DIR="build" EXEC_ORIG_PATH=$E...
true
6ebba67657731e1f8738a1decb0d00879a0ba922
Shell
PreteGeekers/KrustyKrabPizza
/Linux/immutableChk
UTF-8
948
4
4
[]
no_license
#!/bin/bash ###################################### # This script searches the entire system for immutable files, # then asks if you would like to remove the immutable flag. # usage: sudo /immutableChk # should be ran as root to avoid permission denied errors ###################################### #Command this script ...
true
869dc2900213e8c47d35cea02de9cac77070a337
Shell
kirtandudhatra/shellscripts
/3_arithmatic
UTF-8
888
4.09375
4
[]
no_license
#!/bin/bash # This script takes two input numbers from user at runtime and display arithmetic operation on that numbers, finds out max, & min number from them, finds weather that numbers negative or positive. read -p "Enter first number:" num1 read -p "Enter second number:" num2 echo "Arithmetic Operations:" echo -n ...
true
69185e169fc74de311447375fe34b8701e6aabe8
Shell
khandelwalankit/Hybrid-Programming
/StarPU/CholeskyFactorization/compilecholesky.sh
UTF-8
4,792
2.703125
3
[]
no_license
#!/bin/bash echo "Setting environment variables" PKG_CONFIG_PATH=/home/amkhande/lib/pkgconfig export PKG_CONFIG_PATH LD_LIBRARY_PATH=/home/amkhande/lib:/home/amkhande/tbbSource/lib/intel64/gcc4.4 export LD_LIBRARY_PATH PATH=/home/amkhande/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4:...
true
e118a657e8a2e07af5724ab5148edddde339da36
Shell
ahmedelbasosy/Kubernetes
/Scripts/k8-v1.21-controller-debian.sh
UTF-8
2,834
2.953125
3
[]
no_license
###### Kubernetes Controller Version 1.21 ###### ## Environment: Debian ## Creatiion Date: 09-Jun-2021 ## Author: Ahmed El Basosy ################################################ ###### Letting iptables see bridged traffic ###### echo "###### Letting iptables see bridged traffic ######" cat <<EOF | sudo tee /etc/modul...
true
258eb2113424cbcc2a1a4f6c749867ed903e64bf
Shell
snowflakedb/libsnowflakeclient
/deps/util-linux-2.39.0/tests/ts/libmount/loop
UTF-8
5,171
3.34375
3
[ "Apache-2.0", "BSD-4-Clause-UC", "GPL-2.0-only", "LicenseRef-scancode-public-domain", "GPL-3.0-or-later", "BSD-2-Clause", "GPL-2.0-or-later", "LGPL-2.1-or-later", "BSD-3-Clause" ]
permissive
#!/bin/bash # # Copyright (C) 2016 Stanislav Brabec <sbrabec@suse.cz> # # This file is part of util-linux. # # This file 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 # (...
true
bde00934166e3031fcea514c3aaf71f68d79768d
Shell
albertyw/dotfiles
/scripts/link.sh
UTF-8
792
3.328125
3
[ "MIT" ]
permissive
#!/bin/bash set -euo pipefail IFS=$'\n\t' cd "$HOME/.dotfiles" dotfiles=$HOME/.dotfiles/files/ move () { # shellcheck disable=SC2086 if [ -z ${2+x} ] ; then dest=$1 else dest=$2 fi echo "$1" if [ -L "$HOME/.$dest" ] ; then return 0 fi if [ -f "$HOME/.$dest" ] |...
true
35926fc5066ff0f85ce340553a5b3160af4537ee
Shell
hackman/linux-sysadmin-course
/additional/bash/re.sh
UTF-8
97
2.9375
3
[]
no_license
#!/bin/bash if [[ ! $1 =~ ^\/[a-z]+\/$ ]]; then echo "Not matched \$1" else echo "Matched" fi
true
29e9a9b03961c69a8cdfc669a13f343c5b848367
Shell
ivan-yankov/bash
/devices/audio/set-default-audio-output.sh
UTF-8
211
2.78125
3
[]
no_license
# dsc:Set default audio output device. # env:$DEFAULT_AUDIO_OUTPUT device name function set-default-audio-output { is-defined $DEFAULT_AUDIO_OUTPUT || return 1 pacmd set-default-sink $DEFAULT_AUDIO_OUTPUT }
true
4795082f8424403fb6b6ecd35e090c1e19d99c6f
Shell
kfcampbell/dotfiles
/.bashrc
UTF-8
2,300
3.734375
4
[]
no_license
#!/usr/bin/env bash # functions function ccd() { local default_repo="$HOME/github/dev/" local rootdir=$(git rev-parse --show-toplevel 2> /dev/null || echo "$default_repo") cd "$rootdir" || echo "ccd command from ~/.bashrc failed" } kcontext() { kubectl config view --minify } ghgo() { ~/go/src/github....
true
26549f008f8a7b9e1864b51ca6c0bc6cc0f0f169
Shell
tokopedia/teleport
/examples/aws/terraform/proxy-user-data.tpl
UTF-8
8,947
3.578125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -x # Install uuid used for token generation apt-get install -y uuid # Set some curl options so that temporary failures get retried # More info: https://ec.haxx.se/usingcurl-timeouts.html CURL_OPTS="-L --retry 100 --retry-delay 0 --connect-timeout 10 --max-time 300" # Install telegraf to collect stats...
true
3fa9694322d9b2c73906fda5988cb61dcfd79370
Shell
xuyinhao/lgpbenchmark
/loongoopBench/api/bin/tail/functions
UTF-8
653
3.328125
3
[]
no_license
#!/bin/bash function checkOk(){ flag=1 if [ 0 -eq $1 ]; then str=$2 len=`echo $str|wc -L` if [ 1023 -le $len ]; then str=$3 len=`echo $str|wc -L` st=`echo $str|grep "中文"` if [ "" != "$st" ]; then len=`expr $len + 2` fi #echo "len:$len" st=`echo $2|grep $str` if [ 1023 -ne $len ] || [...
true
d8a19538b4d32199b567ad91d401fb271f3ff3bd
Shell
JordanSlater/jshen
/main.bash
UTF-8
196
2.9375
3
[]
no_license
#!/bin/bash JSHEN_DIR="$HOME/jshen/src" for f in $(find $JSHEN_DIR -maxdepth 1 -name '*.bash' && find $JSHEN_DIR -mindepth 2 -name '*.bash'); do source $f; echo -n '.' done echo " Done."
true
6e745d0f404ec1ee9d44e90d246d19a5eb2c65ea
Shell
barentsen/uvex-qc
/data/casu-dqc/3b-concatenate.list.sh
UTF-8
367
3.59375
4
[]
no_license
#!/bin/bash # This script will run through the UVEX files and concatenate all # the summary.list files into a single "list.concatenated" file OUTPUT="tmp/concatenated-summary-list.txt" # Now copy the contents of all summary.sum8 files, except the header line for FILE in `find downloaded/ -name "summary.list"`; do ...
true
7c8d4d57bb50bd7ceaef7f3858c46bc7dec2817a
Shell
kowaalczyk/spark-clustering
/cluster.sh
UTF-8
4,017
3.515625
4
[ "MIT" ]
permissive
#!/bin/bash set -euo pipefail IFS=$'\n\t' DO_PROJECT_ID="abb6ec4f-4c12-47ec-9ad6-53a9bb9722aa" DO_REGION="ams3" DO_SSH_KEY_ID="25709162" DO_IMAGE_DISTRIBUTION_ID="53893572" # ubuntu 18.04 LTS DO_DROPLET_SIZE_SLUG="c-8" # if you change this, also change yarn rm settings in deploy/variables.yml DO_MASTER_DROPLET_SIZE_...
true
a40e7be48a37834ef0392752c41e66b00aeafb29
Shell
abhishekamralkar/robo-env
/daemons/setup-alacritty.sh
UTF-8
1,865
3.59375
4
[]
no_license
#!/usr/bin/env bash # Author: Abhishek Anand Amralkar # This script setsup Alacritty. CONFIG_DIR=${CONFIG_DIR:-"/home/aaa/.config/alacritty"} RUSTC_PATH=${RUSTC_PATH:-"/home/aaa/.cargo/bin/rustc"} ALACRITTY_PATH=${ALACRITTY_PATH:-"/usr/local/bin/alacritty"} sudo apt-get install cmake pkg-config libfreetype6-dev libfon...
true
1f46f450950605f015ed2c35a76f4097ccc52de5
Shell
VPH-Share/VPHOP_NMSLoads
/manage/provision.sh
UTF-8
1,086
2.734375
3
[ "MIT" ]
permissive
#!/bin/bash set -o nounset set -o errexit shopt -s expand_aliases ####################################### # Source helper utilities source manage/utils.sh log "Updating OS packages" pkgupdate log "Setting GB locale" setlocales ####################################### log "Installing SOAPlib Commandline Wrapper dependenc...
true
8e4c1240108a4cd8bf01d1be7aed527600ab7692
Shell
vcatafesta/jhalfs
/common/common-functions
UTF-8
3,223
4.125
4
[ "MIT" ]
permissive
#!/bin/bash # $Id$ set -e no_empty_builddir() { 'clear' cat <<- -EOF- ${DD_BORDER} ${tab_}${tab_}${BOLD}${RED}W A R N I N G${OFF} Looks like the \$BUILDDIR directory contains subdirectories from a previous build. Please format the partition mounted on \$BUILDDIR or set a different build director...
true
14e99936956cfe09c5bcf4c328b841ffb28a8e94
Shell
AndyQiao/config_etc
/bashrc
UTF-8
977
2.65625
3
[]
no_license
# .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # Uncomment the following line if you don't like systemctl's auto-paging feature: # export SYSTEMD_PAGER= # ----- alias ------- # 以文件名查找文件 alias nfind="find . -type f -name" # 查找当前目录下所有文件中是否包含特定字符串 alias sfind="find . -type f -name...
true
318a29657e8a326d6edb35b2ab67ac15dece2e45
Shell
jez/dotfiles
/osx-setup.sh
UTF-8
9,177
3.234375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash # =========================================================================== # # # # osx-setup.sh # # ...
true
0c9e74600a322a9727356a7f31bd3b2b29065d89
Shell
uhulinux/ub-ubk4
/lua51/install
UTF-8
712
2.9375
3
[]
no_license
#!/bin/sh -eux make \ TO_BIN='lua5.1 luac5.1' \ TO_LIB="liblua5.1.a liblua5.1.so liblua5.1.so.5.1 liblua5.1.so.$UB_VERSION" \ INSTALL_DATA='cp -d' \ INSTALL_TOP="$UB_INSTALLDIR"/usr \ INSTALL_INC="$UB_INSTALLDIR"/usr/include/lua5.1 \ INSTALL_MAN="$UB_INSTALLDIR"/usr/share/man/man1 \ install mk...
true
f0c1087d024780a2483c9ca57d60b8f0f101379b
Shell
adrg/.dotfiles
/bash/bash_aliases
UTF-8
2,270
3.0625
3
[]
no_license
# ==================================================== # = Author: Adrian-George Bostan <adrg@epistack.com> = # = Version: 1.0 = # ==================================================== # Enable color support for some commands if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolor...
true
c2c1e6982e7d683148dd01dcb73171bc1583441f
Shell
tmasiff/android_tool_aot
/tools/zipalign-script
UTF-8
1,631
3.5
4
[]
no_license
#!/bin/bash # Findlee (c) 2013 # thefindlee@gmail.com app_zipalign () { apk=`find app | grep -c ".apk"` if [[ "$apk" != "0" ]] then cd app apklist=`find *.apk` setterm -bold tput setaf 1 echo "Zipaligning in app folder" tput sgr0 echo "-----------" for zipaligning in ${apklist[@]} do ../tools/zipalign 4 $zipalignin...
true
fd5eec9c200005d2e57e180f414c675242b3a59b
Shell
juliangiuca/ubuntu-packer-images
/scripts/install-nodejs.sh
UTF-8
362
3
3
[]
no_license
#!/usr/bin/env bash set -euf -o pipefail NODEJS_VERSION=11 # Set up the latest Node.js repository and add official GPG key curl -sL "https://deb.nodesource.com/setup_$NODEJS_VERSION.x" | bash - # Install Node.js and Yarn apt-get update -qq && apt-get install -y nodejs # Upgrade to the latest of NPM npm i -g npm #...
true
49f7a8f6bbf664df518b240cb86290612a1d708f
Shell
placid-void/cloudpush
/roles/docker-delugevpn/files/init.sh
UTF-8
14,665
3.609375
4
[]
no_license
#!/bin/bash # exit script if return code != 0 set -e # redirect new file descriptors and then tee stdout & stderr to supervisor log and console (captures output from this script) exec 3>&1 4>&2 &> >(tee -a /config/supervisord.log) cat << "EOF" Created by... ___. .__ .__ \_ |__ |__| ____ | ...
true
32ba7293fb396963ea6c8276cb0e526936c75580
Shell
vennelask/my_project
/install_haproxy.sh
UTF-8
1,241
2.90625
3
[]
no_license
#!/bin/bash yum install haproxy -y #!/bin/bash mkdir -p /data cd /data wget http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.30/bin/apache-tomcat-8.5.30.tar.gz tar -zxvf apache-tomcat-8.5.30.tar.gz mv apache-tomcat-8.5.30 apache-tomcat2 cd apache-tomcat2/conf sed -i '69s/8080/8008/' server.xml sed -i '116s/8010/801...
true
8e422393c86c689cb2c6f7e6d08f348255c08909
Shell
asr-ros/asr_lib_ism
/libism/ISM/soci/bin/ci/script_oracle.sh
UTF-8
641
2.734375
3
[ "BSL-1.0", "BSD-3-Clause" ]
permissive
#!/bin/bash -e # Builds and tests SOCI backend Oracle at travis-ci.org # # Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net> # source ${TRAVIS_BUILD_DIR}/bin/ci/common.sh if [ "${CXX}" == "g++" ] then ORACLE_USER="soci_tester" else ORACLE_USER="soci_tester1" fi cmake \ -DSOCI_TESTS=ON \ -DSOCI_ST...
true
adb416b0e555f01ed5ab7075d8f2717cb751a66c
Shell
tekestmy/ehcache-tools
/scripts/ehcachecli.sh
UTF-8
1,336
3.625
4
[]
no_license
#!/bin/sh # # All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. # case "$1" in "--help"|"-h"|"-?") echo "Syntax: $0 [cacheKeyValuePrint|cacheKeysPrint|cacheSize] [arguments.....]" echo "cacheKeyValuePrint - Prints the Keys and values (only string or list/string) for a g...
true
d0781587d31d836b43d28f19c1b4782baa90407c
Shell
ehyland/ubuntu-scripts
/rm-docker-containers-and-volumes.sh
UTF-8
701
3.734375
4
[]
no_license
#!/bin/bash function remove_containers { docker kill $(docker ps -q) docker rm $(docker ps -aq) } function remove_data_volumes { docker volume rm $(docker volume ls -q) } while true; do read -p "Do you wish to remove docker containers?" yn case $yn in [Yy]* ) echo "Removing containers"; remove_contai...
true
54ef0a1a46192ec5b38370de542dcc1bd8ee0515
Shell
hetianzhang/GreenSDN
/pi-simulation/scriptsSSH_pi/pingall
UTF-8
190
3.625
4
[]
no_license
#!/bin/bash die() { echo >&2 "$@" exit 1 } [ "$#" -eq 1 ] || die "Ping to multiple hosts. Usage: $0 <host_list>" for ip in $(cat $1 | sed 's/.*@//g'); do ping "$ip" -c 3 done
true
0033bd5459790a53556fb721643051675d148ba7
Shell
aissarmurad/my-personal-linux-settings
/scripts/aws/get-metadata
UTF-8
174
2.796875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Autor: Aissar Murad # # Usage: # get-metadata meta-data/instance-id # # exit on error set -e PARAMETER=$1 curl "http://169.254.169.254/latest/$PARAMETER/"
true
a7c9338ac4b1afc8e509467f156ada00ca06774c
Shell
Programie/DockerImages
/images/hugo-obsidian/build.sh
UTF-8
249
2.515625
3
[]
no_license
#! /bin/bash clone_url="$1" if [[ ${clone_url} ]]; then rm -rf /workspace/content git clone "${clone_url}" /workspace/content fi hugo-obsidian -input=content -output=assets/indices -index -root=. rm -rf /workspace/public/* hugo --minify
true
56c8c373416aa67bca75b71679975b4b94cdbd3a
Shell
tiagoengel/scripts
/twister/games.sh
UTF-8
6,616
3.484375
3
[]
no_license
#!/bin/bash #includes #{{{ . config.sh #}}} #check if the user is or not root, and set the $USERNAME to $SUDO_USER check_user LOOP=1 while [ "$LOOP" -ne 0 ] do print_title "GAMES - https://wiki.archlinux.org/index.php/Games" echo "[1] Action/Adventure" echo "[2] Arcade/Platformer" echo "[3] Dungeon" echo "[4...
true
fbf20c3becf4e2235b42400d436d113ad62e05f3
Shell
LewisPeacockLab/EmoDiF
/Analysis/Preprocessing/emodif_normal_smooth.sh
UTF-8
5,665
3.09375
3
[]
no_license
#!/bin/bash # MODIFIED BY T.WANG twang.work@gmail.com 10.16.18 to normalise and smoothin in FSL # Usage: >./emodif 'imdif_study_epi_17' # # subject number # SUBNO=101 #MIDRUN = name of the middle run (include localizer, preview and study together) #read in middle run (reference run) from the second argument in the sc...
true
64a56d00c29a0f763bdb4e5718927a375e132338
Shell
ubuntupunk/Scripts
/convertwma-ogg.sh
UTF-8
504
3.71875
4
[]
no_license
#!/bin/sh # Convert a .wma to an .ogg using ‘mplayer’ and ‘oggenc’. # # Public Domain set -e IN=$1 shift if [ -z "${IN}" ]; then IN=- WAV=audio.wav else WAV=$(basename ${IN} .wma).wav fi mplayer -vc dummy -vo null -ao pcm:waveheader:file=${WAV} ${IN} FILEDAT=$(file ${WAV}) BITS=$(echo ${FILEDAT} | sed -e...
true
1a821fccebd5fa63ec11a2de85e92ae64d551656
Shell
kamperh/recipe_vision_speech_flickr
/kaldi_features/local/cmvn_dd.sh
UTF-8
743
3.171875
3
[]
no_license
#!/bin/bash # Herman Kamper, kamperh@gmail.com, 2015. # Based loosely an parts of train_mono.sh. nj=4 cmd=run.pl if [ -f path.sh ]; then . ./path.sh; fi . parse_options.sh || exit 1; if [ $# != 3 ]; then echo "usage: ${0} data_dir exp_dir feat_dir" exit 1; fi data=$1 dir=$2 mfccdir=$3 name=`basename $data`...
true
c84db2f4f53cefca36f92d8c7cb690f5b5ba710f
Shell
Andersgee/my_bashcommands
/vlc-twitch
UTF-8
1,447
4
4
[]
no_license
#!/bin/bash function echo_usage() { echo "Usage: $(basename "$0") name [quality] | dota2" echo "Opens a twitch stream in vlc with livestreamer which must" echo "be installed (pip install livestreamer)." echo " " echo " name: what you would put in www.twitch.tv/name" echo " quality: default order is be...
true
f2945ecf48b1c69b9aae1931ff0a35f7a390fb80
Shell
earlye/ace
/install.sh
UTF-8
227
2.984375
3
[ "MIT" ]
permissive
#!/bin/bash set -e set -x if [[ ! -d /usr/local/bin ]]; then mkdir -p /usr/local/bin fi if [[ ! -f /usr/local/bin/ace ]]; then ln -s $(pwd)/ace /usr/local/bin/ace fi # ACE IS INSTALLED HERE ls -l /usr/local/bin/ace
true
742e5d7a257cf8cc678a3d1dc98d5d89ae4ffc8a
Shell
AntonioCarmonaLopez/SH
/proxy.sh
UTF-8
4,323
4.0625
4
[ "MIT" ]
permissive
#!/bin/bash FICHERO="servers" function Menu { echo "_____________MENU_____________" echo "" echo " 1. Introducir Servidor Proxy" echo " 2. Buscar Servidor Proxy" echo " 3. Establecer Servidor Proxy" echo " 4. Hacer Ping" echo " 5. Ver Proxy Sistema" echo " 6. Resetear Prox...
true
a9bc20d9be199c319de8f6c5c9aacb8d8dae56f3
Shell
pie-org/J.A.R.V.I.S.
/MiniJARVIS.sh
UTF-8
3,278
3.6875
4
[ "MIT" ]
permissive
Menu(){ echo --------------------------------------------------------------------- echo "[1] Do you want to update your system, sir? " echo "[2] Sir, are you connected? " echo "[3] Do you want to see your memory usage? " echo "[4] Reboot, sir? (need root) " echo "[5] In what version am I? " echo "[6] Install or r...
true
ec3e2b2cddad05d8f097ee6b2c4e53a7aad30870
Shell
aerogear/offix
/scripts/validateRelease.sh
UTF-8
1,581
4.09375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # explicit declaration that this script needs a $TAG variable passed in e.g TAG=1.2.3 ./script.sh TAG=$TAG TAG_SYNTAX='^[0-9]+\.[0-9]+\.[0-9]+(-.+)*$' # get version found in lerna.json. This is the source of truth PACKAGE_VERSION=$(cat lerna.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/...
true
3ea434addffc51f0ad30016d880a72ffe6af3f6a
Shell
TheoChevalier/typolib
/app/scripts/bash_variables.sh
UTF-8
1,555
3.3125
3
[]
no_license
#! /usr/bin/env bash # Set variables used by bash scripts # List of folders setup.sh needs to check and eventually create folders=( $libraries ) path_sources=${config}/sources # PRODUCT repos and list of locales release_l10n=${local_hg}/RELEASE_L10N beta_l10n=${local_hg}/BETA_L10N aurora_l10n=${local_hg}/AURORA_L10N...
true
549441aaea7cc9413ac6d10087d6e6f4583e9f75
Shell
yolial22/SI-T6acteva
/ej2.sh
UTF-8
209
3.203125
3
[]
no_license
#!/bin/bash read -p "Introduce un mes: " mes; resultado= grep $mes usuarios.txt | awk '{ print $2 }'; if [[ $resultado -eq '0' ]]; then echo $resultado; else echo "este mes no se ha logeado nadie"; fi
true
2955576b37871f1baf119ac2b02867f7d3fc8b68
Shell
cmccandless/ExercismSolutions-bash
/isogram/isogram.sh
UTF-8
362
4.0625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -o errexit set -o nounset str_to_chars() { for (( i=0; i<${#1}; i++ )); do echo "${1:$i:1}"; done } main() { input="${1:-}" input="$(tr -dc '[:alpha:]' <<< "${input,,}")" unique_letters="$(str_to_chars "$input" | sort | uniq | tr -d "\n")" [ "${#unique_letters}" -eq "${#input}" ] &&...
true
a499194268c048b35c133e36aae5d7c4b8148d12
Shell
mnlevy1981/CVMix-testing
/bash_utils/environ.sh
UTF-8
329
2.90625
3
[]
no_license
#!/bin/bash DATE=`date +%y%m%d-%H%M%S` LOGDIR=logs/$MACHINE/$DATE ROOTDIR=`pwd -P` SUMMARY_FILE="$ROOTDIR/$LOGDIR/summary" ERR_CNT=0 TESTDIR=checkouts/$DATE if [ "$LOCAL" == "TRUE" ]; then REPO=$HOME/codes/CVMix/.git else REPO=git@github.com:CVMix/CVMix-src.git fi RUNCOMPILERS=() if [ ! -e $LOGDIR ]; then mkdi...
true
f718aaccac3d57149d5532a05cedf4beb17c8133
Shell
mvgeorgescu/bash-lib
/t3.sh
UTF-8
635
2.75
3
[ "MIT" ]
permissive
#/bin/sh # Copyright 2006-2014, Alan K. Stebbens <aks@stebbens.org> # # Test module for list-utils.sh # export PATH=.:$HOME/lib:$PATH source list-utils.sh source test-utils.sh test_10_print_list() { start_test words=( apple banana cherry dog elephant fox giraffe hawk indigo manzana milk november october de...
true
507be8bf5d29db0319d9da02e913c0f58c3778ef
Shell
enazarova/cmssw
/HeavyIonsAnalysis/JetAnalysis/python/jets/makeJetSequences.sh
UTF-8
2,880
2.5625
3
[]
no_license
#!/bin/sh echo "import FWCore.ParameterSet.Config as cms" > HiGenJetsCleaned_cff.py echo "from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *" >> HiGenJetsCleaned_cff.py for system in PbPb pp pPb do for sample in mc data do for algo in ak do for sub in Vs Pu NONE do for radius in 2 ...
true
eb9afbf29607d6b40407b00f2588ccc6e302aed9
Shell
sencer/dotfiles_v0
/autoload/vi
UTF-8
354
3.328125
3
[]
no_license
local arg="$*" while (( $# ));do if [[ -f "$1" ]]; then local server=${(U)1:t:gs/./} break fi shift done if [[ -z $server ]]; then eval "gvim $arg" else if vim --serverlist|grep -w $server &>/dev/null;then eval "gvim --servername $server --remote-silent $arg" else eval "gvim --servername $se...
true
396f87d562e0e970a91284a1c0a6b7b3d564ac6d
Shell
turquoise-hexagon/dots
/wm/.local/bin/state
UTF-8
290
3.453125
3
[ "0BSD" ]
permissive
#!/bin/sh # # state - change window state die() { printf '%s\n' \ "${1:-usage : ${0##*/} <floating|tiled|fullscreen>}" >&2 exit 1 } case $* in floating|tiled|fullscreen) bspc node -t "~$*" && cursor ;; *) die esac : # fit exit status
true
988ef9256bc2e677e83df77de551f4d4c4e81bc4
Shell
vugarrahim/vugarrahim.github.io
/vagrant_setup/scripts/celery.sh
UTF-8
993
3.359375
3
[]
no_license
#!/bin/bash . /vagrant/vagrant_setup/config.txt echo "----- RabbitMQ: Installing..." sudo apt-get install -y rabbitmq-server # Install Gunicorn to app's vortual envoirenment echo "----- Celery: Installing within your virtualenv..." sudo -u $APP_USER bash << EOF # -------[script begins]------- cd $APP_PATH sour...
true
7cc376cbcf7893220e9a90c5804174686e81bc57
Shell
0leksandr/bin
/git-reset
UTF-8
244
3.0625
3
[]
no_license
#!/bin/sh set -e if [ "$1" = "" ]; then git clean --dry-run git clean --force git checkout -- . git add . #git rm --cached -r -f . git reset --hard else git clean --force -d -x "$@" git checkout HEAD -- "$@" fi
true
2437a06d7e23345682e052f98dffc7a110331684
Shell
gphalkes/tilde
/testsuite/rerecordtest.sh
UTF-8
1,360
3.75
4
[]
no_license
#!/bin/bash DIR="`dirname \"$0\"`" . "$DIR"/_common.sh confirm() { unset CONFIRM while [[ -z $CONFIRM ]] ; do read CONFIRM done } echo "!! There is more work to do on this script" >&2 if [ $# -ne 1 ] ; then fail "Usage: runtest.sh <dir with test>" fi setup_TEST "$1" setup_vars [ -d "$TEST.new" ] && rm -rf "...
true
3fa4ba222431495c8b238bb96c00dde8705954fd
Shell
github-clonner/docker-swarm
/remove-aws.sh
UTF-8
563
3.046875
3
[ "MIT" ]
permissive
#!/bin/bash source ./init-variables.sh source ./box.sh for node in $(seq 1 $workers); do eval "$(docker-machine env worker$node)" docker swarm leave done for node in $(seq 1 $leaders); do eval "$(docker-machine env leader$node)" docker swarm leave --force done for node in $(seq 1 $workers); do docker-...
true
19da5e2bfd8775f431dc90daa9ae37f41b904540
Shell
chadwickboggs/personal-bin-scripts
/rename
UTF-8
215
3.140625
3
[]
no_license
#!/usr/bin/env bash # # A smarter command doing similar to this one may be the "mmv" command. # if [[ $# != 2 ]]; then echo 'Two arguments expected' exit 1 fi mv -v "$1" "$(dirname $1)/$(basename $2)" exit $?
true
3bdb554de06c76ccd6ff4756fb5bd3e06b4f4050
Shell
ninekilobytyes/course-managing-docker-linux-servers
/installing/cli-only/ensure.guest.has.ansible.sh
UTF-8
2,178
3.25
3
[]
no_license
#!/bin/bash sudo apt-get update # 2 primary routes to install ansible # A. APT # (not ppa:ansible/ansible which doesn't yet have focal builds) # right now ubuntu ansible package for focal is 2.9 sudo apt-get install -qy ansible # OR # B. PIP (currently makes it possible to get ansible 2.10) # First install pip ...
true
b05027b151f2eeb8ee0faf9ac193c52870acf1f4
Shell
ddgoin/scripts
/bin/tmuxgo2.sh
UTF-8
1,184
3.296875
3
[]
no_license
#!/bin/bash PROJECTS=$HOME/Projects WORK=$PROJECTS/Work TAB1_TITLE="NWYC Backend" TAB1_SESSION="nwyc" TAB1_WINDOWS=( $WORK/NWYC-Backend ) TAB2_TITLE="Hillday Backend" TAB2_SESSION="hillday" TAB2_WINDOWS=( $WORK/Hillday-Backend ) TAB3_TITLE="Constituent Voice 2" TAB3_SESSION="cv2" TAB3_WINDOWS=( $WORK/ConstituentVoic...
true
92b389632319d13bd69a7335f9b9fc48a5bf3fa3
Shell
BriefHistory/shell
/random_wallpaper.sh
UTF-8
525
3.515625
4
[]
no_license
#!/bin/sh WALLPAPER_DIR="/home/monk/images" WALLPAPER_LINK="/home/monk/.wallpaper" WALLPAPER_FILE=`readlink -f "$WALLPAPER_LINK"` IMG_COUNT=`ls $WALLPAPER_DIR/*.{jpg,png}|wc -l` while true; do RAND=$((RANDOM % IMG_COUNT + 1)) IMG=`ls $WALLPAPER_DIR/*.{jpg,png}|sed -n ${RAND}p` # echo "$IMG" >> ~/log.txt ...
true
3ba7d2b027289fb3403b30c7615f66f150415c0d
Shell
npnet/x3568-linux
/app/qsetting/S80wifireconnect
UTF-8
628
3.4375
3
[]
no_license
#!/bin/sh # # Reconnect Wifi... # case "$1" in start) echo "Trying to reconnect Wifi" if [ -e /userdata/cfg/wpa_supplicant.conf ];then if [ -n `grep "ssid=" /userdata/cfg/wpa_supplicant.conf` ];then if [ -z `grep "SSID" /userdata/cfg/wpa_supplicant.conf` ];then if [ -n `grep "psk=" /userdata/cfg/wpa...
true
582d992fe6e486fa8a0f8f5f801bacbaf95731ad
Shell
alioshag/cp1
/cp1.sh
UTF-8
2,661
4.3125
4
[]
no_license
#!/bin/bash #filename : cp1.sh reviewed 2 #description: copy the file "start.txt" to another the file "mine.txt". # If the string "start" is found inside "start.txt" # replace it for "XXXX" in the process. # if an input arg is provided, the source file name will # ...
true
7261797b8e08b2cfa6d1670fdcf977e545f81182
Shell
yxtj/Daiger
/run-script/cal_delta_gen_ratio.sh
UTF-8
278
3.046875
3
[ "MIT" ]
permissive
#! /bin/sh if [ $# -lt 2 ]; then return 1 fi #local gr=$1 gr=$1 #local ew=$2 ew=$2 add_r=$(echo " $ew*$gr" | bc -l) rmv_r=$(echo "$ew*(1-$gr)" | bc -l) inc_r=$(echo "(1 - $ew)*(1-$gr)" | bc -l) dec_r=$(echo "(1-$ew)*$gr" | bc -l) echo "$add_r $rmv_r $inc_r $dec_r" return 0
true
716b8bf2fa4050901cceae869ed37cce80632d7a
Shell
jiangchengbin/lfs
/build-scripts/build-all.sh
UTF-8
2,959
3.578125
4
[]
no_license
#!/bin/bash ################################################################# # # # Author: Joe Jiang # # Lable: build-all.sh # # Information: buildLFM ...
true
283463853e452fe893edccb7f4d3ba5de9d88d5a
Shell
acidghost/uberfuzz2
/cloc-report.sh
UTF-8
456
2.515625
3
[]
no_license
#!/usr/bin/env bash cloc --out=cloc.driver.txt --exclude-lang=make driver r2.sh cloc --out=cloc.master.txt --exclude-dir=bin master/src cloc --out=cloc.analysis.txt master/src/bin uberenv.sh work/*.{sh,plt} cloc --sum-reports --out=uberfuzz cloc.{master,driver}.txt cloc --sum-reports --out=uberfuzz.all cloc.*.txt for...
true
d30a3467b1b7ff6440d57af6869bd996f5b5a333
Shell
click2cloud-akshaylothe/Azure-Migrate
/installer-scripts/tailwind-traders/tailwind_db_script.sh
UTF-8
4,637
3.625
4
[]
no_license
#!/bin/bash # Use the following variables to control your install: # Password for the SA user (required) MSSQL_SA_PASSWORD='ROOT#123' # Product ID of the version of SQL server you're installing # Must be evaluation, developer, express, web, standard, enterprise, or your 25 digit product key # Defaults to developer M...
true
b6a92bb409658675bf1c38df4cd317713317a1ec
Shell
CPT10000/scripting
/signal_dl.sh
UTF-8
2,098
4.15625
4
[]
no_license
#!/bin/bash # Mike Young # 2021-07-29 # Recieves signal messages and downloads videos to a folder # Signal messages admin on error # Won't run if running flag exists. #Variable declaration log_fldr=/home/mike/signal_log output=/home/mike/ytdl #Server's signal account signal_phone_no="+1" #User phone number auth_phone_...
true
42ec5e446b7603cfed4ef742a24805732397d8b8
Shell
Surveily/Images
/script/wg0.sh
UTF-8
896
3.140625
3
[ "MIT" ]
permissive
#!/bin/sh # Run: curl -s https://raw.githubusercontent.com/Surveily/Images/master/script/wg0.sh | sudo sh set -e if [ `whoami` != root ]; then echo "Please run this script with sudo:" echo "sudo $0 $*" exit 1 fi # Setup wg0 chmod 600 /etc/wireguard/wg0.conf systemctl enable wg-quick@wg0.service systemc...
true
977e9b064ea36bcb6fddbb2fffddbc2d50bf76a1
Shell
gabrielcossette/pydio-docker
/root/etc/my_init.d/00_startup.sh
UTF-8
3,834
3.859375
4
[]
no_license
#!/bin/bash set +e # usage: file_env VAR [DEFAULT] # ie: file_env 'XYZ_DB_PASSWORD' 'example' # (will allow for "$XYZ_DB_PASSWORD_FILE" to fill in the value of # "$XYZ_DB_PASSWORD" from a file, especially for Docker's secrets feature) file_env() { local var="$1" local fileVar="${var}_FILE" local def="${2:-}" i...
true
b7055289c46c11c5b6b72b5286f63f8c89afdc3e
Shell
gresham-computing/openid-connect-server
/.circleci/run_release_workflow.sh
UTF-8
884
3.53125
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
#!/bin/bash if [[ -z "${CIRCLE_TOKEN}" ]]; then echo Cannot trigger release workflow. CircleCI user token not found. exit 1 fi BRANCH=1.3.x echo -e "\nTriggering release workflow on branch: ${BRANCH}.\n" status_code=$(curl --request POST \ --url https://circleci.com/api/v2/project/github/gresham-computing/op...
true
bce9bad6758b65dcca5c41ca6c8cb60a7be356f6
Shell
montjoie/lab-tools
/amaz.sh
UTF-8
1,363
3.90625
4
[]
no_license
#!/bin/sh print_help() { echo "USAGE: $0 [-h][-b USBPATH][-p PORT][-a off/on/reset]" } CFG="" B_HUB="" while [ $# -ge 1 ];do case $1 in -f) shift CFG=$1 shift ;; -p) shift VPORT=$1 shift ;; -a) shift ACTION=$1 shift case $ACTION in on) ;; off) ;; reset) ;; switch_on) ACTION=on ;; switch_off) A...
true
676f7125954da8c4fe0afd4f55fb08387b9acf6e
Shell
jec429/cmssw-usercode
/WR_Analyzer/test/moveROOT.sh
UTF-8
123
3.0625
3
[]
no_license
#! /bin/bash for x in $(ls *.root); do a=$(date "+%M_%H_%m_%d_%y_") echo $a$x mv $x plots/rootfiles/$a$x done
true
6747f389a395e93268ed19349898378aae00fb3b
Shell
balioune/opnfv
/vmspace/vmspace/openstack/src/trusty-kilo/06-First-VM-Instanciation/05-test-ping-and-ssh.sh
UTF-8
345
2.8125
3
[]
no_license
#!/bin/bash echo \* Getting an public IP for Inst1 ... IP=$(nova floating-ip-create ext-net | grep ext-net | awk '{print $2}') echo Got $IP echo \* Associating with inst1 ... nova floating-ip-associate inst1 $IP echo \* Let\'s ping 4 times ... ping -c 4 $IP echo \* Attempting SSH \(Password is \'cubswin:\)\'\) ssh cir...
true
f2d3eb729853110fe7a20746f69b3a4825260bdd
Shell
alvarouc/BROCCOLI
/code/Bash_Wrapper/update_compiled_bashwrappers_mac.sh
UTF-8
2,518
2.546875
3
[]
no_license
#!/bin/bash BROCCOLI_GIT_DIRECTORY=`git rev-parse --show-toplevel` cd $BROCCOLI_GIT_DIRECTORY/code/BROCCOLI_LIB # Change release to debug for library sed -i '' 's/COMPILATION=$RELEASE/COMPILATION=$DEBUG/g' $BROCCOLI_GIT_DIRECTORY/code/BROCCOLI_LIB/compile_broccoli_library_mac.sh # Compile library ./compile_broccoli...
true
1323978304c5bfcd301d93869ecda0798b12be82
Shell
r4xjs/dotfiles
/scripts/pwn/nn_nmap.sh
UTF-8
1,059
3.09375
3
[]
no_license
#!bin/zsh nn_nmap_tcp_all_ports(){ print -z 'sudo nmap --nsock-engine epoll --defeat-rst-ratelimit -n -vvv -sS -d -T4 -oA all_tcp_ports -p- ' } nn_nmap_tcp_sCV(){ print -z 'while read -r t; do host=${t%%:*};ports=${t##*: }; sudo nmap -sCV -p "$ports" -oA "${host}_sCV" -vvv -d "$host" ; done <<(/home/user/.sc...
true
1865b99523a47570ab63bc7c7f82c290443bb211
Shell
GreenCyberNinja/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/9-to_file_or_not_to_file
UTF-8
467
3.328125
3
[]
no_license
#!/usr/bin/env bash #checks if file exist if [ -e "holbertonschool" ] then echo "holbertonschool file exists" if [ -s "holbertonschool" ] then echo "holbertonschool file is not empty" if [ ! -d "holbertonschool" ] then echo "holbertonschool is a regular file" fi else echo "holbertonschool file is empty...
true
5ac6ccf10340bb0f9507152bd5ce3982f6115229
Shell
actualeyes/configs
/.xinitrc
UTF-8
1,844
2.6875
3
[]
no_license
#!/bin/sh # # ~/.xinitrc # # Executed by startx (run your window manager from here) if [ -d /etc/X11/xinit/xinitrc.d ]; then for f in /etc/X11/xinit/xinitrc.d/*; do [ -x "$f" ] && . "$f" done unset f fi # Start a D-Bus session # source /etc/X11/xinit/xinitrc.d/30-dbus # Xmonad Related Commands and Variabl...
true
3e89c252fa67910445770399df05bea9c0086aa8
Shell
teocci/GlassfishServer
/scripts/glassfish
UTF-8
448
3.3125
3
[ "MIT" ]
permissive
#! /bin/sh #to prevent some possible problems export AS_JAVA=/usr/local/jdk1.8.0 GLASSFISHPATH=/home/glassfish/bin case "$1" in start) echo "starting glassfish from $GLASSFISHPATH" sudo -u gladmin $GLASSFISHPATH/asadmin start-domain domain1 ;; restart) $0 stop $0 start ;; stop) echo "stopping glassfish from $GLASSFI...
true
a798ae6815cf008a9adf28d3722177e51526dd2b
Shell
csathler/Masters-Data-Science
/Management-Access-Use-of-Big-Data/Project A/TwitterProjectCode/templates/import_mongodb.sh
UTF-8
246
3
3
[]
no_license
#!/bin/bash function usage { echo "Usage: import_mangodb.sh <db name> <collection name> <import file type> <import file>" } if [ "$4" = "" ]; then usage; exit 1 fi mongoimport --db $1 --collection $2 --type $3 --headerline --file $4
true
6e0e8e71699876de04a30b563e800aef3aeec4a1
Shell
huawei-noah/bolt
/inference/examples/c_api/compile.sh
UTF-8
2,376
3.515625
4
[ "MIT" ]
permissive
#!/bin/bash script_dir=$(cd `dirname $0` && pwd) BOLT_ROOT=${script_dir}/../../.. target=$1 use_openmp=$2 unset OpenCL_ROOT if [[ ${target} == "" || ! -f ${BOLT_ROOT}/third_party/${target}.sh ]]; then echo "[ERROR] target parameter(${target}) is invalid. Please use command: ./compile.sh [target]" exit 1 fi ...
true
7130f4c0932667500bdb3541003f0afce70e7725
Shell
sanketb412/assignments
/Day6/forloop/factorial.sh
UTF-8
128
3.46875
3
[]
no_license
#!/bin/bash -x read -p "Enter a Number to find its Factorial:- " x y=1 for (( i=1; i<=$x; i++ )) do y=$((y*i)) done echo $y
true
26abda6531ee08c6f50adb3d5c462f2eebb31423
Shell
sarandi/dotfiles
/bin/utils/emailCSV.sh
UTF-8
800
4.03125
4
[ "MIT" ]
permissive
#/usr/bin/env bash # Read in a csv file, # strip empty lines # convert to lowercase # replace endings with \r\n for f in "$@" do input=$f; file="$(basename "${input}")"; dir="$(dirname "${input}")"; output=$dir/modified_$file; temp="$dir/temp.csv"; touch "$temp"; # remove empty lines awk -F, 'length>NF+1' "...
true
8508b826cc29cf051474c2451de2bd05392fa980
Shell
BrianHicks/dotfiles
/dotfiles/bin/notmuchalert
UTF-8
140
2.671875
3
[]
no_license
#!/bin/bash NEW=`/usr/local/bin/notmuch new` if [ "$NEW" != 'No new mail.' ]; then echo $NEW | growlnotify 'Mail Changed'; fi echo $NEW
true
f4b06a0abab967db1299e43451397d7aa88ae1c8
Shell
cchriste/dot
/.profile
UTF-8
1,058
2.953125
3
[]
no_license
# # .profile # # Author: Cameron Christensen # Created: August 9, 2007 # # .profile for terminal OSX sessions. # #set -x #echo "************* .profile *************" # EDITOR (Emacs takes too long to startup to be used as EDITOR) export EDITOR=vim if [ `hostname | cut -f1 -d "."` = gunship ]; then #echo "" xinp...
true
a4a20fdd60bf66bf475b6b252861aa53e1c5a4d7
Shell
hmarcelino/dev-utils
/share/utils/print.sh
UTF-8
663
3.203125
3
[ "MIT" ]
permissive
#!/bin/bash INFO="\033[34m" GREEN="\033[32m" YELLOW="\033[33m" RED="\033[31m" NOCOLOR="\033[0m" function print_info { printf "${INFO}%s${NOCOLOR}" "$1" } function print_success { printf "${GREEN}%s${NOCOLOR}" "$1" } function print_warning { printf "${YELLOW}%s${NOCOLOR}" "$1" } function print_error { ...
true
d998400cc90ec7570b4a3670c820660a41c1e2fe
Shell
craSH/https-everywhere
/pending-rules/trivial-validate
UTF-8
1,492
3.875
4
[]
no_license
#!/bin/sh # THIS IS NOT A RULE, but a shell script that looks for common problems # and typos in rules. echo "-- Rules not anchored to beginning of a line:" grep from= *.xml | cut -d\" -f2 | grep '^[^^]' || echo "(None.)" echo echo "-- Rules with unescaped dots:" grep from= *.xml | cut -d\" -f2 | grep '[^\]\.[^*]' || ...
true
c3b60e3a81e83c444dedccc29c8267947796de35
Shell
Zlatov/sql
/src/fun/init.sh
UTF-8
10,728
3.859375
4
[ "MIT" ]
permissive
#!/bin/bash # Список функций: # init — входная функция # createConfig — создание конфигурационного файла пользователя # createDefaultFolders — создание необходимых папок # checkGitignore — проверка и зоздания .gitignore # checkTableVersionExist — провверка существования таблицы ве...
true
43b0d8a77ecfbbb93bc6a8f848e340c2cba2b13c
Shell
fagan2888/my-bash-scripts
/bashrc
UTF-8
521
2.65625
3
[]
no_license
# Add `source ~/bin/bashrc` to ~/.bashrc. # "activate" alias to activate a Python virtualenv # in the usual place I put it alias activate="source .env/bin/activate" # https://github.com/magicmonty/bash-git-prompt GIT_PROMPT_ONLY_IN_REPO=1 GIT_PROMPT_FETCH_REMOTE_STATUS=0 GIT_PROMPT_SHOW_UNTRACKED_FILES=no GIT_PROMPT_...
true
2cf277351037ea896cf432143c8dd2e731de8d9b
Shell
Mykol71/posos
/bin/install.dunno
UTF-8
3,608
3.40625
3
[]
no_license
#!/usr/bin/bash # verify root ID=$(/usr/bin/id -u) [ $ID -ne 0 ] && echo "You must be root to run $0." && exit 1 #get environment name [ ! -f ../.envtype ] && echo -n "Env Name: " && read ENVTYPE && echo "$ENVTYPE" >../.envtype && cp -f ../.envtype ../../. #switch from enforcing to permissive selinux # Add tfsupport...
true
cccc7954c675f96702bec2afdc113472d91d1a0d
Shell
milvus-io/milvus
/tests/python_client/chaos/scripts/install_milvus.sh
UTF-8
592
2.796875
3
[ "Apache-2.0" ]
permissive
release=${1:-"milvs-chaos"} milvus_mode=${2:-"cluster"} ns=${3:-"chaos-testing"} bash uninstall_milvus.sh ${release} ${ns}|| true helm repo add milvus https://milvus-io.github.io/milvus-helm/ helm repo update if [[ ${milvus_mode} == "cluster" ]]; then helm install --wait --timeout 360s ${release} milvus/milvus -f...
true
01150b6f1c20121ee0879c347cb4131e45df0d55
Shell
eilx2/algoj
/docker/run_sol.sh
UTF-8
205
3
3
[]
no_license
#!/bin/bash IFS= input=`cat` echo "$1" > sol.py echo "$input" > input.txt timeout -s SIGKILL $2 python3 sol.py < input.txt > out.txt echo $? if [ $? -eq 0 ] then cat out.txt else exit $? fi exit
true
63885b2fb48107109aaf56a71dbf02b613964e5b
Shell
dywisor/fischstaebchen
/shellfunc/src/base/03-die.sh
UTF-8
886
3.515625
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
## Copyright (c) 2014-2015 André Erdmann <dywi@mailerd.de> ## ## Distributed under the terms of the MIT license. ## (See LICENSE.MIT or http://opensource.org/licenses/MIT) ## <% if ABDUCT_DIE= %> <% define _DIEFUNC __die %> <% else %> <% define _DIEFUNC die %> <% endif %> ## @noreturn die ( message=, exit_code:=@@EX_D...
true
5643d8ebb5942e809ad2bb6ba5c5716ecf043664
Shell
GNULinuxACMTeam/installing_software_on_linux
/installation_odysseaskr.sh
UTF-8
3,386
2.953125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Script to setup necessary programs and tools # Edited to work on LXDE (tested on Lubuntu 14.04.1 LTS x86_64) echo "Start" # Add needed repositories add-apt-repository -y ppa:ubuntu-mozilla-daily/firefox-aurora add-apt-repository -y ppa:webupd8team/sublime-text-2 apt-get -y update # Prepare the Applicat...
true
0b29c96736980842e3e6cbff736e6bd5747a43a6
Shell
westscz/.dotfiles
/system/alias
UTF-8
4,529
2.9375
3
[ "Unlicense", "LicenseRef-scancode-public-domain" ]
permissive
#! /bin/sh #█▓▒░ COMMON alias sudo='sudo ' # Enable aliases to be sudo’ed alias '?=man' alias h="history" #█▓▒░ SYSTEM alias afk="xflock4" # Lock the screen (when going AFK) alias restart='sudo shutdown -r' #█▓▒░ CD alias ..='cd ..' alias ...='cd ../..' alias ....='cd ...
true
c02c1845288673dbad5555edb622e764e2824c85
Shell
evs-broadcast/nmos-joint-ri
/vagrant/provision_node.sh
UTF-8
2,823
2.875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Copyright 2017 British Broadcasting 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 b...
true
d7edbe35db5e4f414e86bdbe612900b7ab243bf4
Shell
salizzar/dotfiles
/.bash_profile
UTF-8
1,954
2.734375
3
[]
no_license
# personal source ~/.dotfiles/setup # # homebrew # [[ -s "/opt/homebrew/bin/brew shellenveval" ]] && eval "$(/opt/homebrew/bin/brew shellenv)" [[ -s "/usr/local/bin/brew shellenv" ]] && eval "$(/usr/local/bin/brew shellenv)" # legacy setup # # gvm # [[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/g...
true
d35a57233da3772a467607e188ab72cf8fbda3a4
Shell
mshicom/pycppad
/boost_py/simple.sh
UTF-8
1,881
3.5
4
[ "BSD-3-Clause" ]
permissive
# /bin/bash set -e # Modified version of # http://wiki.python.org/moin/boost.python/SimpleExample # ---------------------------------------------------------------------- python_version=`ls /usr/include | grep python | sed -e 's/python//'` system=`uname | sed -e 's/\(......\).*/\1/'` if [ "$system" == "CYGWIN" ] then ...
true
e2cf8426651ba2007ac516952fd1fbd319e0bbde
Shell
ECS-GDP2-1516/ml-data
/find-and-format-abs.sh
UTF-8
974
3.84375
4
[]
no_license
#!/bin/bash NUMBEROFARGS=2; if [ $# -lt $NUMBEROFARGS ] then >&2 echo -e "Usage is:\n find-and-format.sh (line file) (sample count)" exit 1; else LINEFILE=$1; shift; SAMPLECOUNT=$1; shift; fi CLASSES=`cat "$LINEFILE" | cut -f 3 | sort | uniq | paste -sd "," - ` echo -e "% Data generated on `date` % by find-and-...
true
1ea853d1eb212080f11e836b208754f74a028774
Shell
xianlimei/BugRepoter_0x727
/docker/run_docker.sh
UTF-8
921
3.109375
3
[]
no_license
#!/bin/bash sed -i "s|127.0.0.1|192.168.5.103|" ../config/system.php docker_compose="/usr/local/bin/docker-compose" if grep -Eqii "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then yum install wget yum-utils device-mapper-persistent-data lvm2 -y if [ ! -f "$docker_compose" ]; then curl -L "https://git...
true
f8401dffe68200b46c4a7aee1f9a9042dcaa9b1a
Shell
norambah1/habitat
/components/studio/build-docker-image.sh
UTF-8
3,300
4.125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # # Usage # # ```sh # $ build-docker-image.sh [ARTIFACT_OR_PKG_IDENT ...] # ``` # # # Synopsis # # This program will build a `habitat/studio` Docker image using one or more # local Habitat artifacts and/or package identifiers as arguments. Two # packages must be installed or the program will terminate ear...
true
a72d3e397f2ff750714ea33a6ca89c9a8f024413
Shell
ethlu/ColdADC
/scripts_cjslin/stability_study_test.sh
UTF-8
12,215
2.8125
3
[]
no_license
#!/bin/bash # WARNING: # THIS SCRIPT IS NOW CONFIGURED FOR READING ONE CHANNEL FULL CHAIN for j in 1p20; do ################################# cd /home/dayabay/ColdADC/scripts/ #./coldADC_resetADC.py #./coldADC_resetFPGA.py cd /home/dayabay/ColdADC/USB-RS232 ./setAmplitudeVolt.py 1.34 #...
true
6bed1365a7172418afced19173e1aca6283f39f4
Shell
sofa-framework/ci
/scripts/configure.sh
UTF-8
20,326
3.71875
4
[]
no_license
#!/bin/bash set -o errexit # Exit on error # Here we pick what gets to be compiled. The role of this script is to # call cmake with the appropriate options. After this, the build # directory should be ready to run 'make'. ## Significant environnement variables: # - CI_JOB (e.g. ubuntu_gcc-4.8_optio...
true
851bde3b59b2d72a2901342d9b2361edbedc8446
Shell
aloop/dotfiles
/shell/profile.d/20-xdg-base-directories.dist.sh
UTF-8
565
3.203125
3
[ "MIT" ]
permissive
# shellcheck shell=bash # Setup defaults for XDG export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-"${HOME}/.config"}" export XDG_CACHE_HOME="${XDG_CACHE_HOME:-"${HOME}/.cache"}" export XDG_STATE_HOME="${XDG_STATE_HOME:-"${HOME}/.local/state"}" export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-"${HOME}/.run"}" export XDG_DATA_HOME=...
true