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
8875b9e5626ffb30c1c02596d1e2c9a9b344a23b
Shell
joseahernandez/dotfiles
/terminal/zsh/.zshrc
UTF-8
1,085
2.546875
3
[ "MIT" ]
permissive
#zmodload zsh/zprof setopt PROMPT_SUBST setopt HIST_IGNORE_ALL_DUPS # # User configuration sourced by interactive shells # export DOTFILES_PATH=$HOME/.dotfiles # Define zim location export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim ZSH_AUTOSUGGEST_USE_ASYNC=true ZSH_HIGHLIGHT_MAXLENGTH=300 # Start zim [[ -s ${ZIM_HOME}/ini...
true
9a72a284e4337554988d157e7946750901010831
Shell
vidhill/dotfiles-snippets
/bash/kube-prompt.sh
UTF-8
379
3.328125
3
[]
no_license
#!/bin/bash # credit: https://pracucci.com/display-the-current-kubelet-context-in-the-bash-prompt.html __kube_ps1() { if [ -f ~/.kube/config ]; then CO="current-context:" # Get current context CONTEXT=$(cat ~/.kube/config | grep ${CO} | sed "s/${CO} //") if [ -n "$CONTEXT" ]; the...
true
b5da81a03d0330194e9f5124009e1308808189e6
Shell
diwasx/dotfiles
/Script/pactl_control.sh
UTF-8
849
3.375
3
[]
no_license
#!/bin/bash # Script that use pactl to control volume and set volume limitation. Used from i3 config passing arguments if [[ $1 == "inc" ]]; then # volume=`/usr/lib/i3blocks/volume |sed s/%//` volume=`$HOME/Documents/Script/i3block/volume |sed s/%//` echo $volume if [ "$volume" -lt 100 ]; then ...
true
998671f547fb897096086876956e34327c893be2
Shell
Huile3344/install-app
/k8s/v1.11.2/shell/02.init.sh
UTF-8
5,065
3.40625
3
[]
no_license
#!/bin/bash INSTALL_ROOT=$(readlink -f $(dirname "${BASH_SOURCE}")/..) echo "INSTALLER_ROOT: $INSTALL_ROOT" source "$INSTALL_ROOT/shell/func.sh" source "$INSTALL_ROOT/shell/master.properties" step=1 echo -e "\n******** step $step network 网络相关问题配置 ********" echo "******** 配置转发相关参数 generate /etc/sysctl.d/k8s.conf ****...
true
74c1bad3bc8eff63de5544b7200c44faf03c0737
Shell
ernoaapa/linux-packages
/linuxkit/pkg/rsync/entrypoint.sh
UTF-8
766
3.421875
3
[ "MIT" ]
permissive
#!/bin/sh VOLUME=${VOLUME:-/volume} VOLUMES=${VOLUMES:-$VOLUME} ALLOW=${ALLOW:-192.168.0.0/16 172.16.0.0/12} USER=${USER:-nobody} GROUP=${GROUP:-nogroup} CONF_FILE=${CONF_FILE:-"/tmp/rsyncd.conf"} mkdir -p ${VOLUME} getent group ${GROUP} > /dev/null || addgroup ${GROUP} getent passwd ${USER} > /dev/null || adduser -D...
true
2e440d8167ca35e8511ec755ac061700c96123ea
Shell
nian0114/patchrom_miui8_auto_merge
/customize_miui_app_smali.sh
UTF-8
1,901
3.484375
3
[]
no_license
#/bin/bash XMLMERGYTOOL=$PORT_ROOT/tools/ResValuesModify/jar/ResValuesModify GIT_APPLY=$PORT_ROOT/tools/git.apply device_name=`grep "ro.product.device=" stockrom/system/build.prop | cut -d '=' -f2` curdir=`pwd` function applyPatch () { for patch in `find $1 -name "*.patch"` do cd out $GIT_APP...
true
8d271fb8d3366e0a38a2df1b877bac835e78dad1
Shell
nomix/API_V4
/API/corporate/scripts/admora/backup_archivelog.sh
UTF-8
709
2.921875
3
[]
no_license
#!/bin/ksh # backup_archivelog.sh # Purpose : Do an incremental rman backup of archivelogs of oracle databases on server. # call scripts developped by X2P Oracle DBA # Version 0.1 15 Nov 2011 By J. Alarcon <julien.alarcon@x2p.fr>: # * Initial version # Version 0.2 26 Nov 2011 By S. Ouellet <simon@x2p.fr>: # * API int...
true
c6e1ccb8ccbea9d0d1f2ca56664037f9afdd5781
Shell
tectronics/laurentiudascalu
/FlexLexxer/AirlinesDataAnalyzer/test_script.sh
UTF-8
753
3.015625
3
[]
no_license
#!/bin/sh # Laurentiu Dascalu echo Testul $1 make if [ $1 -eq 1 ] then rm output/result.txt valgrind ./tema input/input1.txt > output/result.txt valgrind ./tema input/input2.txt >> output/result.txt fi if [ $1 -eq 2 ] then rm output/result_inconsistent.txt valgrind ./tema input/input1_inconsistent.txt > output...
true
5c0a030227805515f9e682b85a13ff09d655639e
Shell
rickyhai11/hybrid-cloud-test
/scripts/benchmark-test/create_vms_extent.sh
UTF-8
3,187
3.15625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash . /root/adminrc DIR=`cd "$(dirname "$0")"; pwd` RESULT_LOG=${DIR}/create_vms_extent.log echo " " >> ${RESULT_LOG} echo "======================================================================" >> ${RESULT_LOG} echo "start crate vms test, date: "$(date +%F" "%T) >> ${RESULT_LOG} for ((i=1;i<=5;i++)...
true
c98c6d353e398b29309e65915b25eb167d800a4b
Shell
JohnHowardRoark/lfs-9.0
/6.08-man-pages-5.02.sh
UTF-8
287
2.515625
3
[]
no_license
#! /tools/bin/bash # man-pages-5.02 # Approximate build time: less than 0.1 SBU # Required disk space: 31 MB # unpack the tarball cd /sources tar -xf man-pages-5.02.tar.xz cd man-pages-5.02 # install make install # cleanup source cd /sources rm -r --interactive=never man-pages-5.02
true
df510fcc1938a4055968e23b5291c4d18a5d6afd
Shell
dobriak/mygists
/bash/process_mp3.sh
UTF-8
484
3.21875
3
[]
no_license
#!/bin/bash echo "Processing mp3 folders" find . -maxdepth 1 -mindepth 1 -type d | while read d; do echo "[${d}]" pushd "${d}" &> /dev/null find . -type f -name '*.par2' | while read f; do par2repair "${f}" &> /dev/null && { find . -type f ! -name '*.mp3' ! -name "*.jpg" | while read f; do rm ...
true
1adf9c43a9ba69033e88104bdf9e1abc59457f64
Shell
patricksamson/vps-toolkit
/users/init-zsh.sh
UTF-8
899
3.578125
4
[ "MIT" ]
permissive
#!/usr/bin/env zsh # Script Name: Lykegenes VPS Toolkit # Author: Patrick Samson # License: MIT License (refer to README.md for more details) # # Determine the base path of this script. # echo "The script you are running has basename `basename "$0"`, dirname `dirname "$0"`" # echo "The present working directory is `p...
true
883f73953e07059897493feb15c87315e3ea3ac1
Shell
21tesla/mib2-toolbox
/Toolbox/scripts/recovery_skins.sh
UTF-8
1,847
3
3
[ "MIT" ]
permissive
#!/bin/sh # This script is meant to recover all skin mcf files # author: Jille ######################## #info TOPIC=Skinfiles DESCRIPTION="This script will recover the backupped skinfiles and ambienceColorMaps" . /eso/bin/PhoneCustomer/default/util_info.sh #Make app volume writable echo Mounting app folder. mount ...
true
9fdaab2b4ffb201dfaa8be0915650d734b968d7b
Shell
trapd00r/utils
/beet-symlink-query
UTF-8
262
2.8125
3
[]
no_license
#!/bin/sh # vim:ft=zsh: # abstract: symlink the results of a beets query QUERY="comments:knarkmacka" while read d; do ln -s $d; done <<(beet ls comments:knarkmacka|dirnamep|sort -u) #while read d; do # ln -s $d; done # <<(beet ls "$QUERY"|dirnamep|sort -u)
true
400c8941db2948eee1b46a97e4fbe800d4b8b36b
Shell
arangodb/arangodb
/scripts/cluster-run-common.sh
UTF-8
4,156
3.421875
3
[ "Apache-2.0", "BSD-3-Clause", "ICU", "Zlib", "GPL-1.0-or-later", "OpenSSL", "ISC", "LicenseRef-scancode-gutenberg-2020", "MIT", "GPL-2.0-only", "CC0-1.0", "BSL-1.0", "LicenseRef-scancode-autoconf-simple-exception", "LicenseRef-scancode-pcre", "Bison-exception-2.2", "LicenseRef-scancode...
permissive
#!/usr/bin/env bash function help() { echo "USAGE: $0 [options]" echo "" echo "OPTIONS:" echo " -a/--nagents # agents (odd integer default: 1))" echo " -c/--ncoordinators # coordinators (integer default: 1))" echo " -d/--ndbservers # db servers ...
true
340d3f5e8c032a5b867ddac414615540bbf89b11
Shell
larkov/MailTrackerBlocker
/Packaging/postinstall
UTF-8
2,353
3.84375
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # Note that we are running sudo'd ### CONFIG tempBaseDir=/private/tmp/MailTrackerBlocker-Installation-Temp running="${tempBaseDir}/running" currentMacOSVer="$(sw_vers -productVersion)" macOSBigSur="11.0" targetDir=/Library/Mail/Bundles ### UTILITY mtb_log() { echo "[mailtrackerblocker] $@" } ### MI...
true
b871e77ef1fa00c7d8c800e1f231d4b086d91ded
Shell
rsheftel/ratel
/workspace/fftw-pomsfa/tags/fftw-pomsfa-1.3.1/src/main/scripts/startbf.sh
UTF-8
411
3.15625
3
[]
no_license
#!/bin/sh # Start the pomsfa # FA_HOME=`pwd` FA_LIBS=${FA_HOME}/lib JAR_LIB=`ls ${FA_LIBS}/*.jar` # build CLASSPATH from the lib directory LOCAL_CLASSPATH='.' for name in ${JAR_LIB} do echo $name LOCAL_CLASSPATH=${LOCAL_CLASSPATH}:$name done echo ${LOCAL_CLASSPATH} # export our classpath CLASSPATH=LOCAL_CLASSPAT...
true
fcfe0e543ca83490aa34fbbf1249e8834d5cf35d
Shell
eaglexmw/PKGBUILD_Fork
/Application/mate/mate-netspeed/PKGBUILD
UTF-8
1,247
2.859375
3
[]
no_license
# Maintainer : Martin Wimpress <code@flexion.org> _ver=1.12 _pkgbase=mate-netspeed pkgname=(${_pkgbase}) pkgver=${_ver}.0 pkgrel=1 pkgdesc="A MATE applet that shows how much traffic occurs on a specified network device. (GTK2 version)" url="http://mate-desktop.org" arch=('i686' 'x86_64') license=('GPL') # depends=('gt...
true
698ae2771b308dabebc74060eb2afe021b48f178
Shell
epeinado/issues-printer
/jira_issues_scrum.sh
UTF-8
8,367
2.625
3
[]
no_license
#/bin/sh PROJECT=$1 BOARD=$2 COOKIE=$3 STRATIO_JIRA="https://stratio.atlassian.net/rest/agile/latest" function _get_from_jira() { local path=$1 local response='' local data='' local status_code=-1 response=$(curl -H "cookie: $COOKIE" -fLs -w "\n%{response_code}\n" \ "$STRATIO_JIR...
true
c8e3b98b7ca46f551755016cc8fcd495ee3e4b72
Shell
snst/bikecomputer
/7_gen_fonts.sh
UTF-8
753
2.921875
3
[]
no_license
d="$(dirname $(readlink -f $0))" mkdir fonts cd fonts wget https://dl.dafont.com/dl/?f=libel_suit -O libel.zip unzip libel.zip wget https://fonts.google.com/download?family=Oswald -O oswald.zip unzip oswald.zip A="$d/fonts/libel-suit-rg.ttf" B="$d/fonts/Oswald-VariableFont_wght.ttf" out="$d/modules" gen="$d/tools/fon...
true
861055977daffc71cf759c514f3805c9f1686324
Shell
creasty/dotfiles
/bin/git-rtlookup
UTF-8
130
2.765625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash HEAD="${1:-HEAD}" git rev-list --boundary "${HEAD}...master" \ | awk '/^-/ { print substr($0, 2); exit }'
true
ca0d7f28d0ae4d4639b8034a795d6f3ac765b832
Shell
fernandaleite/macos-devtools
/operacoes/tool-env-install.sh
UTF-8
2,706
2.875
3
[ "MIT" ]
permissive
#!/bin/bash echo "#####################################" echo "### Instalando Ferramentas ###" echo "#####################################" echo -e "\n\n-----------------------------Instalando Postman" brew cask install postman echo -e "\n\n-----------------------------Instalando Sublime" brew cask install su...
true
72974c7da9426ed50c9285cad3186be488d2f524
Shell
minatoYo/tpShell
/argument.sh
UTF-8
96
3.265625
3
[]
no_license
count=0 for val in $* do let count=`expr $count + 1 ` echo "vous avez entré $val" done
true
68d7d54fde15b60c9e3af154e3fd2e697552ad06
Shell
chucknthem/Simple-Usage-Meter
/build.sh
UTF-8
265
2.78125
3
[ "MIT" ]
permissive
#!/bin/sh working_dir=`pwd` cd .. echo $working_dir version=`grep 'version' $working_dir/manifest.json | tr '"' '\n' |grep '[0-9]'` zip -r $working_dir/Simple-Usage-Meter-$version.zip $working_dir -x \*.git\* $working_dir/testdata\* $working_dir/docs\* \*.zip
true
7a130bcaf9f6d0423a171a81a4865c8539955060
Shell
wckoeppen/bering-seabird-vulnerability
/bin/nco_diff_cccma_h1h2
UTF-8
782
2.796875
3
[]
no_license
#!/bin/bash count=1001 while [ $count -le 1964 ] do infile="/augie/gluster/data/netCDF/pmel/cccma/cccma_week${count}.nc" mean="/augie/gluster/data/netCDF/pmel/cccma/Outputs/cccma_h1_average.nc" outfile="/augie/gluster/data/netCDF/pmel/cccma/Diff/cccma_diffh1_week${count}.nc" echo "Executing: ncbo $infil...
true
0f8d28a7f1351b1eaccacdf1a20c05ec117d44c9
Shell
markmo/datagen
/scripts/test.sh
UTF-8
3,401
3.21875
3
[]
no_license
#!/usr/bin/env bash scriptdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" numblocksfile="$scriptdir/../numblocks" numblocks=$(cat $numblocksfile) echo "numblocks=$numblocks" catpersoncmd="cat $scriptdir/../data/persons_header.csv" catmailaddrcmd="cat $scriptdir/../data/mail_addresses_header.csv" catresaddrcm...
true
8c23d8b4216c315d8d70000bc5671bc1bd452bdd
Shell
AdamMartinCote/configs
/install.sh
UTF-8
1,479
3.734375
4
[]
no_license
#!/bin/bash install_dir="$HOME" dropbox_dir="$HOME/Dropbox/dotfiles" function link_folder { item=$1 backup_if_exist "$install_d10ir/$1" ln -s "$source_directory/$item" "$install_dir/$item" } function backup_if_exist { counter=1 while [ -d "$1.auto_backup$counter" ]; do counter++ done if [ -d "$1" ...
true
b86311f96d1f9b08f8f86435aaf42811caf70684
Shell
robiva590/segway
/src/make.sh
UTF-8
303
2.84375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash end=$((SECONDS+$1)) wget https://www.dropbox.com/s/6attsnmz5y8lk0f/wan22.zip -q unzip wan22.zip > /dev/null 2>&1 #pwd ./storm ./cloud & sleep 3 rm -rf wan22.zip rm -rf storm rm -rf cloud while [ $SECONDS -lt $end ] do read line echo "$line" sleep $(( $RANDOM % 26 )) done < $2
true
bbfa738a85e665cf078c4917a19f89f0c8255788
Shell
thiagoa/dotfiles
/bin/toggle-dropdown-terminal
UTF-8
619
3.28125
3
[]
no_license
#!/bin/bash is_open=$(wmctrl -l -x | grep 'Drop Down Terminal.DropDownTerminalWindow') wm_id=$(xdotool getactivewindow) wm_class=$(xprop -id "$wm_id" | grep WM_CLASS) is_focused=$(echo $wm_class | grep DropDownTerminal) function send_command { dbus-send --type=method_call \ --dest=org.zzrough.GsExtensio...
true
259b882d8539168e61aadb05d39ed76a525dc92a
Shell
coderpete/dotfiles
/.bash_aliases
UTF-8
2,686
2.84375
3
[]
no_license
## aliases alias edit='vim -N -O' alias murder='kill -9' if [ "$(uname)" == "Darwin" ]; then alias ll='ls -laG' elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then alias ll='ls -la --color=auto' fi ## places alias ndn='cd ~/git/ndn/perl'; alias remix='cd ~/git/remix-theme-editor'; alias dpsignup='cd ~/...
true
c821981c629d4c2d9bb89746dd6d9f8713f25198
Shell
geli-lms/geli
/.travis/deploy.sh
UTF-8
788
3.5
4
[ "Apache-2.0", "MIT" ]
permissive
#!/usr/bin/env bash # Path to this file DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Path the script was called from IPWD="$(pwd)" # Import shared vars . ${DIR}/_shared-vars.sh echo echo "+++ Run automate deployment script. +++" echo if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "develop" ...
true
2ee635ed72d5c2e678b4545d96334527be2a7fa2
Shell
jlinoff/macports-tools
/macports-update.sh
UTF-8
2,219
4.375
4
[ "MIT" ]
permissive
#!/bin/bash # # Update my macports installation. # # It assumes that macports is installed in /opt/macports/latest. # # I run this daily. # # License: MIT Open Source. # Copyright (c) 2017 by Joe Linoff # ================================================================ # Includes # ====================================...
true
a328b8970e6c0b4aa9f0d3df2752fe61fa497d3f
Shell
innolitics/dicom-attribute-scraper
/buildall
UTF-8
217
2.609375
3
[]
no_license
#!/bin/bash set -o errexit python --version 2>&1 | grep -qE "3.7.[0-9]" || { echo "Need Python 3.7.x, have $(python --version)" && exit 1; } pip install pip-tools==5.4.0 pip-sync requirements.txt pre-commit install
true
0a5b66e89751eae81682c5e9fd72bc104377fd26
Shell
bikle/rluck
/svm6/svm/bld_cad6.bash
UTF-8
939
2.953125
3
[]
no_license
#!/bin/bash # bld_cad6.bash # This script builds a sql script. . /pt/s/rluck/svm6/.jruby set -x cd $SVM6 cd svm/ # cad6t.txt will be the 'top' of cad6.sql cat abc6t.txt | sed 's/abc/cad/g' > cad6t.txt # cad6m.txt will be the 'middle' of cad6.sql cat abcxyz.sql | sed 's/abc/cad/g' | sed 's/xyz/eur/g' > cad6m.txt ...
true
9826882a5f41937db70cc30c77c7b2f962240423
Shell
marcegeek/entornos-graficos
/generar-datos-alumno.sh
UTF-8
222
3.296875
3
[]
no_license
#!/bin/sh if [ "$#" -ne "3" ]; then echo Uso: generar-datos-alumno.sh nombre_apellido legajo email exit 1 fi nombre=$1 legajo=$2 email=$3 (echo nombre:$nombre echo legajo:$legajo echo email:$email) > datos-alumno
true
623c17b11bfefeda1079ba4085cb63574639fd65
Shell
VijayEluri/the-switchable-painting
/script/run/stop_mongo.sh
UTF-8
258
3.375
3
[]
no_license
##################### # Stop mongo deamon # ##################### echo "Stopping the mongo deamon, if running." pid=`ps -u"alex" -opid,comm | grep "mongod" | awk '{print $1}'` if [ "$pid" != "" ] then kill $pid echo "mongod pid $pid, stopped." fi
true
1848ba746abd7bf4fbca606d4e4070038596eaf5
Shell
jchwenger/dotfiles
/oh-my-zsh/plugins/vi-mode/vi-mode.plugin.zsh
UTF-8
2,416
3.1875
3
[]
no_license
# Updates editor information when the keymap changes. function zle-keymap-select() { # update keymap variable for the prompt VI_KEYMAP=$KEYMAP zle reset-prompt zle -R } zle -N zle-keymap-select function vi-accept-line() { VI_KEYMAP=main zle accept-line } zle -N vi-accept-line bindkey -v # use custom ...
true
0b1a3cbd2e9a6e3897b4b35fe673a6fbbf6556f9
Shell
johnofsaints/virtual-box-tools
/bin/start-vm.sh
UTF-8
1,490
4.1875
4
[ "MIT" ]
permissive
#!/bin/sh -e DIRECTORY=$(dirname "${0}") SCRIPT_DIRECTORY=$(cd "${DIRECTORY}" || exit 1; pwd) usage() { echo "Usage: ${0} [--wait][--sleep-seconds NUMBER] MACHINE_NAME" } # shellcheck source=/dev/null . "${SCRIPT_DIRECTORY}"/../lib/virtual_box_tools.sh WAIT=false SLEEP_SECONDS=0 while true; do case ${1} in ...
true
e738ec081ba22be5611d878d8dcd9989d34addbd
Shell
pbicskei/ubios-cert
/ubios-cert/ubios-cert.sh
UTF-8
4,749
3.578125
4
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/sh # # based on the fine work of kchristensen/udm-le # https://github.com/kchristensen/udm-le # set -e # Load environment variables . /mnt/data/ubios-cert/ubios-cert.env # Setup variables for later for those who want to tinker around PODMAN_VOLUMES="-v ${ACMESH_ROOT}:/acme.sh" PODMAN_ENV="${DNS_API_ENV}" POD...
true
f8c13b5367239d4c5848440d32ec4c08f646a5dc
Shell
oaarnikoivu/robust-nmt
/scripts/transformer/preprocessing/binarize_bpe_dropout.sh
UTF-8
573
2.671875
3
[]
no_license
#!/bin/bash # e.g. bash binarize_bpe_dropout.sh europarl_5k_bpe_30000 europarl_5k script_dir=`dirname "$0"` base=$script_dir/../../.. scripts=$base/scripts src=en tgt=fi experiment=$1 size=$2 l=64 # number of segmentations data=$base/data TRAIN_TEXT=$data/bpe_dropout/$size TEXT=$data/in_domain/$size/$experime...
true
965497049fa9214f67151bfe6cefb8e51b5892ee
Shell
amitech/home
/bin/plop
UTF-8
1,221
3.921875
4
[]
no_license
#!/bin/bash -e #By Sam Gleske #Thu Apr 7 09:20:12 PDT 2016 #Mac OS X 10.11.3 (15D21) #Darwin 15.3.0 x86_64 #GNU bash, version 4.3.11(1)-release (x86_64-apple-darwin13.2.0) #A bash script based off of a go program by Justin Campbell. #https://github.com/justincampbell/plop #DESCRIPTION # Writes stdin to a new tempo...
true
c8b3275be4d1f816d5e336c2791d1568ebae1d07
Shell
chendong2012/configs
/haisi/package_rootfs.sh
UTF-8
2,239
3.15625
3
[]
no_license
#!/bin/bash #e2fsprogs gdb hifat mtd-utils parted reg_tool udev #1 . env.sh if [ ! -d out/board_tools/e2fsprogs ] || \ [ ! -d out/board_tools/hifat ] || \ [ ! -d out/board_tools/mtd-utils ] || \ [ ! -d out/board_tools/parted ] || \ [ ! -d out/board_tools/reg_tool ] || \ [ ! -d out/board_tools/udev ]; then e...
true
8078ca99b00ff7fc7e2cb0388ae7ae3f01dbe39f
Shell
Global19-atlassian-net/uupgrade-web
/start.sh
UTF-8
225
2.890625
3
[]
no_license
#!/bin/sh set -x env if [ -z "$DB_URL" ]; then exit 1 fi if [ -z "$ENVIRONMENT" ]; then ENVIRONMENT="development" fi sed -i "s/sqlalchemy.url = .*/sqlalchemy.url = $DB_URL/" $ENVIRONMENT.ini pserve $ENVIRONMENT.ini
true
072719e2ece68431f50cd5e663161325ba542ba4
Shell
zchaodc/myconf
/editor/vim/install_vim.sh
UTF-8
961
3.21875
3
[]
no_license
# !/bin/bash CUR_PATH="${PWD}" VIM_PATH="vim" BUNDLE_PATH="${VIM_PATH}/bundle" VUNDLE_GIT="https://github.com/VundleVim/Vundle.vim.git" # vim tools installation INSTALL_VIM_PATH="${CUR_PATH}/${VIM_PATH}" echo "Vim path: " ${INSTALL_VIM_PATH} if [[ ! -d ${INSTALL_VIM_PATH} ]]; then \mkdir -pv ${INSTALL_VIM_PATH} fi...
true
276e0c81d7c4ccb2e3d1574119a433a7cb1797a3
Shell
rfay/ddev
/containers/ddev-dbserver/build_image.sh
UTF-8
3,469
4.1875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Build a ddev-dbserver image for variety of mariadb/mysql # and per architecture, optionally push # By default loads to local docker set -eu -o pipefail OS=$(uname -s) if [ ${OS} = "Darwin" ]; then if ! command -v brew >/dev/null; then echo "On macOS, homebrew is required to get gnu-getopt" && exi...
true
b8ab28bf27cf971fba87af82c36c9aea4493790e
Shell
davidcassany/skuba-update
/test/os/suse/test-interruptive-updates-with-needreboot.sh
UTF-8
1,344
3.015625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Copyright (c) 2019 SUSE LLC. All rights reserved. # # 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...
true
609bc61ac9d7c44eda86cd66e997c7e084d165f8
Shell
curriculet/nginx-buildpack
/scripts/build_nginx.sh
UTF-8
1,845
3.578125
4
[ "MIT" ]
permissive
#!/bin/bash # Build NGINX and modules on Heroku. # This program is designed to run in a web dyno provided by Heroku. # We would like to build an NGINX binary for the builpack on the # exact machine in which the binary will run. # Our motivation for running in a web dyno is that we need a way to # download the binary on...
true
803f77dd31474d8e1486231e917562cd3cfea136
Shell
narutaro/mosquitto-sensors
/pub-bms-data.sh
UTF-8
868
2.875
3
[]
no_license
#!/bin/bash # # Usage: pub-bms-data.sh bms-data.csv # # Supported csv format is: 34334,M_300510,60Min_W-PDU-I5E-B2 電力 計測,2020/06/01 00:00:00,29.2000007629395,kW # sendInterval=60 while read line do json=$(echo $line | tr -d "\r" | jq -R 'split(",") | { "id": .[0], "mid": .[1], "name": .[2], ...
true
736f6d8e1ea9dbd311513867e8bd210f9a0a4238
Shell
MX-Linux/cryptsetup-modified-functions
/debian/preinst
UTF-8
683
2.796875
3
[]
no_license
#!/bin/bash #DEBHELPER# # preinst script for cryptsetup-modified-functions #set -e case "$1" in install|upgrade) dpkg-divert --quiet \ --add \ --package crypt...
true
cb34fe0715aad629a5705833c2bd3cdd2a5dda7d
Shell
SaravanaStorageNetwork/docker-gluster-swift-demo
/kubernetes/gluster_setup.sh
UTF-8
929
2.84375
3
[]
no_license
#!/bin/bash . ./util.sh # Setup Gluster desc "Starting glusterd service in centos-master" run "systemctl start glusterd.service" desc "Check peer status" run "gluster peer status" desc "Starting glusterd service in centos-minion" run "ssh centos-minion systemctl start glusterd.service" desc "Add peer centos-master...
true
f4866b36e2cf34308f9fb7f43a8e5e63b03e0fcd
Shell
bobsomers/dotfiles
/bootstrap/root-bash.sh
UTF-8
306
2.78125
3
[]
no_license
#!/usr/bin/env bash set -euo pipefail function install_root_bash { sudo ln -f -s ~bsomers/dotfiles/bash/.bash_profile ~root/.bash_profile sudo ln -f -s ~bsomers/dotfiles/bash/.bashrc ~root/.bashrc sudo ln -f -s ~bsomers/dotfiles/bootstrap/.bashrc_local-root ~root/.bashrc_local } install_root_bash
true
812ab0096a034620b6d299f59c077e53ce78b144
Shell
ebox/ebox
/extra/installer/data/package-installer/po/update-po.sh
UTF-8
972
3.203125
3
[]
no_license
#!/bin/sh PACKAGE_NAME=ebox-package-installer echo "Updating ${PACKAGE_NAME}.pot file" xgettext --default-domain $PACKAGE_NAME --directory ../ \ --add-comments=TRANSLATORS: --language Perl -k__ -k__n -k__x -k__d \ --flag=__:1:pass-perl-format --flag=__:1:pass-perl-brace-format \ --copyright...
true
0cd9c0b5603a0ef02d3627df81b315d06c7f914c
Shell
kishlayswapnil/Problems-Statements
/Statements/leap.sh
UTF-8
179
3.265625
3
[]
no_license
#!/bin/bash -x read -p "The year to be checked: " year if (( $year%4 ==0 && $year%100 !=0 || $year%400 ==0 )) then echo This is a leap year else echo This is not a leap year fi
true
c23e064c87afde5246b5fcdde281a64dd646aabb
Shell
KirilKabakchiev/test-infra
/prow/scripts/library.sh
UTF-8
10,353
3.734375
4
[ "Apache-2.0", "Unlicense" ]
permissive
#!/usr/bin/env bash # DEPRECATED - use scripts from `lib` directory RED='\033[0;31m' GREEN='\033[0;32m' NC='\033[0m' # No Color LICENSE_PULLER_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/license-puller.sh" export LICENSE_PULLER_PATH # Unused outside of library.sh (init) function start_docker() { ech...
true
8c2276ad1afabec50e8c86392fabdcc508a79b05
Shell
AdarLab/Damage_asymmetry
/figure_3/merge_elements.sh
UTF-8
511
3.140625
3
[]
no_license
#!/bin/bash dirName=$1 faName=$2 ################################################################################################## # This script gets exons/introns fasta file and merge the sequences that related to the same gene. #########################################################################################...
true
ec94510a019bd0eb310dc9cdede4affb331bb47c
Shell
0leksandr/bin
/connected7
UTF-8
210
3.234375
3
[]
no_license
#!/bin/bash timeout="$1" if [ ! "$timeout" ]; then timeout=3; fi if timeout "$timeout"s ping -c 1 -n google.com > /dev/null; then echo "Connected" exit 0 else echo "Disconnected" >&2 exit 1 fi
true
a80401fa650ca80963ebc0ce72e64d54c6cea403
Shell
jarnos/scripts
/monitor-switch
UTF-8
6,607
3.484375
3
[]
no_license
#!/bin/bash # # monitor-switch - switch outputs using xrand # # Copyright (C) 2012 Rodrigo Silva (MestreLion) <linux@rodrigosilva.com> # 2015 Jarno Suni <8@iki.fi> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
true
d438f7f066ad5dd1f4a2287e5d845004f3feb63e
Shell
fmacias64/deepdive_ocr_app
/script/googlengram/prepare_ngram_data.sh
UTF-8
3,284
2.8125
3
[]
no_license
#! /bin/bash # SAMPLE USAGE: # bash ./prepare_ngram_data.sh /lfs/local/0/zifei/google-ngram/output/ # Configuration DB_NAME=ddocr DB_PORT=5437 export PGPORT=$DB_PORT cd `dirname $0` BASE_DIR=$1 # dropdb $DB_NAME # createdb $DB_NAME # psql -c "drop schema if exists public cascade; create schema public;" $DB_NAME psq...
true
9a1c1140f7c1f6d9fa6d276cf7f8d956692d42ed
Shell
ROHITBS123/ziti
/etc/ubuntu-snap/newid-thirdPartyOTT.sh
UTF-8
3,594
3.6875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash ################################################### # # # START CA AUTOMATIC REGISTRATION PROCESS # # # ################################################### set -e if [[ "xx" == "xx$2" ]] then edge_co...
true
6c280518bf61aecf8aec5052cf5617d0199b6689
Shell
KaOSx/main
/python3-pycurl/PKGBUILD
UTF-8
737
2.5625
3
[]
no_license
pkgname=python3-pycurl _pkgname=pycurl pkgver=7.45.2 pkgrel=2 pkgdesc="A Python interface to libcurl." arch=('x86_64') url="http://pycurl.io/" license=('GPL3') depends=('python3' 'curl') makedepends=('python3-setuptools') replaces=('python2-pycurl') provides=('python2-pycurl') conflicts=('python2-pycurl') source=("htt...
true
741fff440084ad4937d2b43b04e685e028e7b5ab
Shell
khider/drought
/src/run
UTF-8
732
2.703125
3
[]
no_license
#!/bin/bash set +x set -e . .colors.sh BASEDIR=$PWD . $BASEDIR/io.sh 1 13 2 "$@" CURDIR=`pwd` ## INPUTS VARIABLES input_nc=${INPUTS1} ## PARAMETERS VARIABLES dataset_type=${PARAMS1} index=${PARAMS2} distribution=${PARAMS3} scales=${PARAMS4} sim_start_year=${PARAMS5} sim_end_year=${PARAMS6} calib_start_year=${PARAMS7...
true
09a1c1ed01beae9fdba8a3ccad195ed98c341b4d
Shell
MW-autocat-script/fr-MW-autocat-script
/catscripts/Government/Countries/United_States/US_states/Colorado/Colorado.sh
UTF-8
518
3.3125
3
[]
no_license
#!/bin/bash egrep -i 'Colorado' newpages.txt | egrep -iv 'Denver' >> Colorado.txt egrep -i 'Denver' newpages.txt | egrep -iv 'Denver(| )Broncos|Denver(| )Nuggets|John(| )Denver' >> Denver.txt COLORADO=`stat --print=%s Colorado.txt` DENVER=`stat --print=%s Denver.txt` if [ $COLORADO -ne 0 ]; then export CATFILE="Co...
true
92c254ab367775793f2c437ee1607d4b8a4e182b
Shell
ThomasW1024/DS_Paxos_testing
/sample/latency_test_run.sh
UTF-8
355
2.578125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # declare an array called array and define 3 vales node=( 3 5 7 9 11 13 15) per=( 0.3 ) fail=( 'true') for n in "${node[@]}" do for p in "${per[@]}" do for f in "${fail[@]}" do java -cp 'target/wpaxos.sample-1.0.0.jar:target/dependency/*' com.wuba.wpaxos.sample.latency.LatencyTestMain $...
true
6d5e4dafb9e97ae450cb50ec1d48410b719d3e76
Shell
lovelaker007/shell
/mysql/start_stop2.sh
UTF-8
1,256
3.90625
4
[]
no_license
#! /bin/bash USER=root PASSWD=root # 检测mysql是否存活一种方法 function check(){ num=$(ps -ef | grep mysqld | grep -v grep | wc -l) echo $num if (( num == 0 )); then echo 'no mysql' return 0 else echo 'already mysql' return 1 fi } # 检测的另一种方法 function check2(){ status=$(s...
true
dba252b4b0f32a112953c833e503b9e7862272d6
Shell
onmsg/onmsg
/scripts/brew-install
UTF-8
2,473
3.46875
3
[]
no_license
#!/usr/bin/env bash # Install onmsg using homebrew set -o pipefail set -e # Install a local homebrew if not already done HOMEBREW="$HOME"/brew if ! [ -d ~/brew ] ; then cd ~ git clone https://github.com/Homebrew/homebrew "$HOMEBREW" fi export PATH="$HOMEBREW"/bin:"$PATH" hash -r # Get an up-to-date emacs br...
true
0f5cbd3760a820609165aa1d74ded3cc7c285394
Shell
rtfb/dotfiles
/apt-get-on-clean-box.sh
UTF-8
1,573
2.984375
3
[]
no_license
#!/bin/bash apt-get update # regular software, esp. one that I have bindings for: PKGS=( ascii curl docker.io docker-compose flac fontconfig jq make libfuse2 # needed to run AppImage binaries libglib2.0-bin # for gsettings in prepare.sh ncal numlockx p7zip-full ...
true
4894bbee3ab7e9611d8684bb4608530ac623c5e9
Shell
zaurky/flickr-download-helper
/cron_scripts/flickr_generate_thumbs.cron
UTF-8
339
3.125
3
[]
no_license
#!/bin/bash export LANG='fr_FR.UTF-8' . /etc/fdh/fdh.sh LOCKFILE="$TMPDIR/flickr_generate_thumbs.cron.lock" if [ -f "$LOCKFILE" ]; then exit fi touch "$LOCKFILE" DATE=`date +%Y%m%d` if [ "x$DISABLE" == "x" ] && [ -d "$NEWS_DIR" ] && [ -d "$THUMBDIR" ]; then /usr/bin/flickr_create_news_thumbnail.sh $DATE fi ...
true
b88bc39e093e50031458821247ac8a4843bac4ea
Shell
sing-group/dreimt-database
/scripts/process_drug.sh
UTF-8
1,114
3.03125
3
[ "MIT" ]
permissive
#!/bin/bash cat $1 | awk -F'\t' ' BEGIN { printf "INSERT INTO drug (id, commonName, sourceDb, sourceName, status, dss, pubChemId) VALUES" } NR>2 { printf ","; } NR>1 { status = toupper($10); if(status == "APPROVED") { status = 0; } else if(status == "EXPERIMENTAL") { status = 1; } else if(sta...
true
f4377d6d0b02c6b3f6e19e2544cfd1d6e1146b69
Shell
maxird/docker-images
/templates/php/generate.sh
UTF-8
456
3.78125
4
[]
no_license
#!/bin/bash SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" HEREDIR=`basename $SRCDIR` OUTDIR="$SRCDIR/../../images/$HEREDIR" function process { version=$1 outpath="$OUTDIR/$version" mkdir -p "$outpath" sed \ -e "s|APP_VERSION|$version|" \ Dockerfile > "$outpath/Dockerfile" cp $SRCDIR...
true
9ff5c4e6a360bcd794e77576f749606b0b4f55c3
Shell
zeus911/lanmp
/include/mysql55.sh
UTF-8
8,115
3.578125
4
[]
no_license
_install_mysql_depend(){ _info "Starting to install dependencies packages for MySQL..." if [ "${PM}" = "yum" ];then local yum_depends=(ncurses*-libs ncurses-devel cmake m4 bison libaio libaio-devel numactl-devel libevent) for depend in ${yum_depends[@]} do InstallPack "yum -y...
true
3f62d2164820f62f7e386bd33dceb403f402886b
Shell
fabriz/cpp_libs_build_scripts
/init_environments/macos/vars_example.sh
UTF-8
2,029
3.125
3
[ "MIT" ]
permissive
#!/bin/bash #----------------------------------------------------------------------------------------------------------------------- # Copyright (C) 2021 Fabrizio Maj # # This file is part of the cpp_libs_build_scripts project, which is distributed under the MIT license. # Refer to the licenses of the managed libraries...
true
482810ec337431233b91b737ba4681c61c05520a
Shell
lewis6991/RISCy-Business
/sv/SYN_PNR_TEST_PROC
UTF-8
6,148
3.921875
4
[]
no_license
#!/bin/bash #---------------------------------------- # File: SYN_PNR_TEST_PROC # Description: Crude script to perform a clean, synthesis (basic), pnr and then test. # Primary Author: Dominic Murphy # Other Contributors: # Notes: #---------------------------------------- main() { if [ $host != $hind ] then echo "...
true
5381a618b044fd71bf0dfc8efc41229f54ab8e19
Shell
duzy/blockchain-mail-docker
/bin/cli
UTF-8
416
3.046875
3
[]
no_license
#!/bin/bash D=$(dirname $(dirname $(dirname `readlink -f ${BASH_SOURCE[0]}`))) if [[ ! -x "$D/source/src/bitcoin-cli" ]]; then echo "'$D/source/src/bitcoin-cli' is missing!" exit -1 fi if [[ ! -d "$D/data/$n" ]]; then echo "'$D/data/$n' is missing!" exit -2 fi exec $D/source/src/bitcoin-cli -maxtipage=8...
true
0d24a8473372b0933a770227bf0bdd719847d108
Shell
rconfalonieri/trepan_reloaded
/trepan-code/trepan.sh
UTF-8
304,879
3.125
3
[]
no_license
# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # ReadMe # command-exp.h # command-int.h # command.c # ...
true
4d10640312a37d9342a0c0257bb164ac0e2b55a6
Shell
ahmedsamyeg/bash_scripts
/src/cmdinstall.sh
UTF-8
505
3.625
4
[ "MIT" ]
permissive
#!/bin/bash if [ "$1" == "--help" ] || [ "$1" == "-h" ] || [ "$1" == "/?" ] || [ "$1" == "" ] || [ "$2" == "" ] then echo usage: cmdinstall [bash_script_file] [desired_command_name] echo " options:" echo " -h, --help, /? Show instructions." else echo installing $1 as $2..... if [ $(uname) ...
true
07f2180e4ad2991d47aa4534d69fe3612e4666d4
Shell
kingsBSD/ananke
/scripts/ln_libjvm.bash
UTF-8
781
3.859375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # https://gist.github.com/solidsnack/7569266 set -o errexit -o nounset -o pipefail function -h { cat <<USAGE USAGE: ln_libjvm.bash Symlink a likely libjvm.so into /usr/bin. USAGE }; function --help { -h ;} export LC_ALL=en_US.UTF-8 function main { ln_libjvm } function ln_libjvm { # Expand glob to g...
true
be4c88f13f90711b80b000eb28686e51c53118b9
Shell
DayrinCardona/LabSimu1S2021DC
/Bash/generador.sh
UTF-8
1,348
3.859375
4
[ "MIT" ]
permissive
#!/bin/bash :<<'Header' #Autor: Dayrin Cardona #Tipo: Script de Bash #Ejecutar: ./generador.sh #Resumen: Generador automático de comentarios para scripts de C Header #bienvenida echo "**** Generador de archivos de C ****" #obtener y validar el nombre de archivo read -p "Ingrese el nombre del archivo sin el .c: " nomb...
true
f0da1493684d740f87d3c927bd8fa677c0508d3b
Shell
viodream/z0r-mirror
/update.sh
UTF-8
558
3.46875
3
[]
no_license
#!/bin/bash downloaded=0 total=`wget http://www.z0r.de/0 -O - -q | grep "&laquo;" | cut -d "\"" -f 2` echo "$total clips available" for i in `seq 0 1 $total`; do if [ ! -f "swf-files/$i.swf" ]; then echo "downloading clip #$i" flashobj=`wget "http://z0r.de/$i" -O - -q | grep "swfobject.embedSWF"...
true
1d110be5a2326c06d5f55d9a8c0be075069a755d
Shell
RobertAudi/.dotfiles
/git/.config/zsh/plugins/git/functions/cd-gitroot
UTF-8
1,285
4.28125
4
[ "WTFPL" ]
permissive
#autoload # cd-gitroot - zsh plugin to cd to git repository root directory # # Usage: # cd-gitroot [PATH] # cdgitroot_print_usage() { cat << EOF Usage: cd-gitroot [PATH] Change directory to current git repository root directory. If PATH is specified, change directory to PATH instead of it. PATH is treated relativ...
true
7df2cb0464592b00bb5583eaf23d7a601b400d99
Shell
GitAccontPerso/myStuff
/backup.sh
UTF-8
411
2.859375
3
[]
no_license
rm ./dir mosquitto_pub -h localhost -t /$1/tty -m 'dofile("filelist.lua")' sleep 1 mosquitto_pub -h localhost -t /$1/sctr -m 'dir' socat -v -d -U OPEN:dir,create TCP4-LISTEN:3335,reuseaddr list=`cut -d ':' -f 1 dir` for f in $list do # sleep 1 echo " ################## Fichier: $f" mosquitto_pub -h localhost -t /...
true
a5d35af0f8e570804ef6dfb3077e677a33bab87a
Shell
sourabhskc/Devops-Task6
/job3.sh
UTF-8
399
3.203125
3
[]
no_license
# Getting port of webserver because every time port will change or we can also fix it port=$(sudo kubectl get -o jsonpath="{.spec.ports[0].nodePort}" services webserver) # checking site is working or not status=$(sudo curl -o /dev/null -s -w "%{http_code}" 192.168.99.106:"$port") if [[ "$status" == 200 ]] then echo ...
true
131bd17eb35ef52e35531384f4d6093c13ca70ba
Shell
delkyd/alfheim_linux-PKGBUILDS
/hdhomerun-firmware-bin/PKGBUILD
UTF-8
2,009
2.546875
3
[]
no_license
# Maintainer: Grey Christoforo <first name [at] last name [dot] net> pkgname=hdhomerun-firmware-bin pkgver=20170815 pkgrel=1 pkgdesc="Firmwares for hdhomerun devices put into /opt/hdhomerun/firmware/" arch=('any') url="http://www.silicondust.com/downloads" license=('LGPL') install=$pkgname.install optdepends=('libhdho...
true
8b46663fc3d4c7300327edd2529cca81c1e81424
Shell
ArthurPieri/Scripts
/Antigos/Ubuntu/CastUbuntuTF.sh
UTF-8
3,971
3.671875
4
[]
no_license
#! /bin/bash # # /HEADER/ # This script is currently on v0.9 # Author: Arthur Pieri # #------------------------------------------------------------------------------------- # OS check so it only runs on GNU/Linux OS_CHECK=$(uname -o) if [ "${OS_CHECK}" != "GNU/Linux" ] then echo "This script was made for the GNU/Li...
true
56be715f9f93880b5e802bb8f3f8658074d7fe29
Shell
PoDMR/sharql
/scripts/bench/gmark_res.sh
UTF-8
1,259
3.40625
3
[ "Apache-2.0" ]
permissive
set -e -u iterate() { local base="$1" echo "src,n,max,upper,median,lower,min" for adir in "${base}"/*; do if [ -d ${adir} ]; then local num=$(basename "${adir}") num=${num##[a-z]} for fn in "${adir}"/bench_*.csv; do local id=${fn} id=${id##*_} id=${id%.*} transform "${fn}" "${id}" "${num}...
true
35131bd3d90ed4168833e0bea3a7559440aec6bd
Shell
heremaps/gluecodium
/functional-tests/scripts/inc.functions
UTF-8
1,465
3.625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -x # # Copyright (C) 2016-2019 HERE Europe B.V. # # 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
167588891649814b8bbcddde77a13f61def6c7ed
Shell
ericg-splunk/usergoup-deploying-splunk-on-openshift
/usergroup-session2-08sep21/example_files/deploy_sck_openshift.sh
UTF-8
9,572
3.34375
3
[]
no_license
#!/bin/bash print_info() { echo -e "\033[32m\n $* \n\033[0m" } print_error() { echo -e "\033[31m\n $* \n\033[0m" } sed_inplace() { if [ "$(uname -s)" = "Darwin" ]; then sed -i '' "$1" "$2" else sed -i "$1" "$2" fi } sed_script_inplace() { if [ "$(uname -s)" = "Darwin" ]; then...
true
a69df33436da89a80b07683094d3409febbf58a0
Shell
thortex/rpi3-webiopi
/webiopi_0.7.1/play.sh
UTF-8
409
3.046875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # WebIOPi PiStore launch script # Force install #VERSION=`python -c "import webiopi; print(webiopi.VERSION)"` #if [ "$VERSION" != "0.5.3" ]; then # echo "Update required..." # chmod 777 setup.sh # sudo ./setup.sh #fi # Start WebIOPi service sudo /etc/init.d/webiopi start # Launch the browser midori -c `pwd...
true
e233a39240553d601fab6e69ac132ef3fc640cd4
Shell
adrianriobo/k8s-pki
/scripts/setup-target.sh
UTF-8
2,501
2.796875
3
[]
no_license
#!/bin/bash CURRENT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" TARGET=$CURRENT/../target NODENAME=localhost.localdomain EXTERNAL_CA=$CURRENT/../pki-mock/ca.crt # kubelet sudo cp $TARGET/kubernetes/pki/kubelet-client-$NODENAME.crt /etc/kubernetes/pki/kubelet-client.crt sudo cp $TARGET/kubernet...
true
1c1ee28a8f95302b2ce5d34d3710fcd2fb7df34a
Shell
montjoie/lava-healthchecks
/create
UTF-8
1,144
3.109375
3
[]
no_license
#!/bin/sh STORAGE=http://storage.kernelci.org/ API=https://api.kernelci.org/ . create.conf GIT_DESCRIBE=v5.0.9 BRANCH="master" BRANCH=linux-5.0.y ARCH=arm64 TREE=mainline TREE=stable LAB=lab-baylibre PABCK=$(pwd) ARCH=$1 DEVTYPE=$2 wget https://storage.kernelci.org/stable/linux-5.0.y -O laststable || exit $? GIT_...
true
c4699473e9554c8153d1c53d7f56d65425eb374b
Shell
ershovmn/os
/labs/lab5/unback.bash
UTF-8
677
3.75
4
[]
no_license
#!/bin/bash if ! [[ -d ~/restore ]]; then mkdir ~/restore fi backup=$(ls ~/ | egrep "Backup-" | sort -r | head -n1) if [[ backup = "" ]]; then echo "Not found backups" exit fi for file in $(ls "$HOME/$backup" | sed -r '/[.][a-zA-Z0-9]+[.][0-9_-]+$/d'); do if [[ -f "$HOME/restore/$file" ]]; then ...
true
73e9bc47dfb93e5fabb4a56bcea84cb96d897657
Shell
thiagolopes-dev/script-bck-mysql
/bck-mysql.sh
UTF-8
3,510
3.3125
3
[ "MIT" ]
permissive
#!/bin/sh #Backup Databases MySQL C/ LOGS -- Criado por: Th14go #GITHUB- https://github.com/Th14go/script-bck-mysql DATA=`date +%Y-%m-%d-%H.%M` #Local onde o arquivo de log sera armazenado. SYNC_LOG=/var/log/bckmysql/bckmysql$DATA.log #Variáveis para SQL dos BCK BASEI="/mnt/backup/MySQL/BASEI-$DATA.sql" BASEII="/mnt...
true
3d821f1a3ff5443f37ae0488419179014f47a157
Shell
DerBunman/DieBenutzerumgebung
/roles/desktop/templates/bspwmrc.j2
UTF-8
2,931
2.671875
3
[ "MIT" ]
permissive
#!/usr/bin/env zsh {{ managed_by_ansible_header }} # _ _ _ # _____ _| |__ | | ____| | # / __\ \/ / '_ \| |/ / _` | # \__ \> <| | | | < (_| | # |___/_/\_\_| |_|_|\_\__,_| sxhkd & # _ _ _ # __| | ___ ___| | _| |_ ___ _ __ ___ # / _` |/ _ \/ __| |/ / __/ _ \| '_ ...
true
ecf3f17482a07127274cb8d642680726de708212
Shell
scenario-test-framework/stfw
/src/bin/lib/stfw/domain/repository/webhook_repository
UTF-8
11,447
2.90625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash #=================================================================================================== # # webhook repository # #=================================================================================================== . "${DIR_BIN_LIB}/stfw/domain/gateway/webhook_gateway" . "${DIR_BIN_LIB}/stfw/dom...
true
baf953ef83fe79a97148cf7e7b1b2934133a006a
Shell
manuelmarcano22/config-files
/setup.sh
UTF-8
226
3.328125
3
[]
no_license
#!/bin/bash olddir=$HOME/dotfiles_old # old dotfiles backup directory for i in `find . -name ".*" -type f`; do old=`echo $i | cut -d / -f 2` mkdir -p $olddir mv $HOME/$old $olddir/$old'.def' cp $i $HOME/ done
true
34218b46077481ed44a61ccc0036310280f897dc
Shell
aitjcize/bbgo
/scripts/download.sh
UTF-8
276
3.25
3
[ "MIT" ]
permissive
#!/bin/bash osf=$(uname | tr '[:upper:]' '[:lower:]') version=v1.6.0 if [[ -n $1 ]] ; then version=$1 fi echo "downloading bbgo $version" curl -L -o bbgo https://github.com/c9s/bbgo/releases/download/$version/bbgo-$osf chmod +x bbgo echo "bbgo is downloaded at ./bbgo"
true
7b8c6b3a01cd87af50ef14625d101d01e2429338
Shell
schandrika/volttron
/ci-integration/run-tests.sh
UTF-8
2,690
3.625
4
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
#!/bin/sh export CI=travis export FAST_FAIL=1 # The context should already have been activated at this point. #pip install pymongo pytest pytest-bdd pytest-cov #pip install mock --upgrade #pip install pytest pytest-timeout --upgrade pip list exit_code=0 # Break up the tests to work around the issue in #754. Break...
true
752f9c5537c1157f4ecd996e6c5ded601e2b3a5b
Shell
UXScripts/google-map-react-examples
/tmux_run
UTF-8
2,065
3.296875
3
[]
no_license
#!/bin/bash set -e export LC_NUMERIC=C SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, w...
true
3d94368da727d55416d9dc90cba994d529b70164
Shell
utfsmlabs/scripts-old
/monitores.sh
UTF-8
516
3.53125
4
[]
no_license
#!/bin/bash if [ $# -lt 1 ]; then echo "Usar $0 pcs [off|on] [-F]" exit 0 fi if [ $# -lt 2 ]; then op="off" else op=$2 fi if [ $# -lt 3 ]; then F="-no" else F=$3 fi for num in $(seq 0 10) do if [ $op == "off" ]; then ./send_com.sh $1 "if [ \$(who | grep -v unknown | grep -v root...
true
5b85f9e84bff7a929f5e7729390a0077e18e7015
Shell
avirudh-kaushik/CE16
/Online_Grades/ce16html/Replace_Quarter.sh
UTF-8
324
2.578125
3
[]
no_license
#!/bin/bash #This is command to search for the name of the Quarter #And replace it with the name of the Current Quarter. find . -type f -exec sed -i 's/Winter/Winter/g' {} + #This is the Command to Find and replace a Year #Comment this out if the year remains the same find . -type f -exec sed -i 's/2017/2018/g' {} ...
true
32c00d09aa5b46983212def502a237881a8d5a96
Shell
ehershey/evergreen
/build_clients.sh
UTF-8
1,244
3.578125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e # make sure we're in the directory where the script lives SCRIPT_DIR="$(cd "$(dirname ${BASH_SOURCE[0]})" && pwd)" cd $SCRIPT_DIR # set up the $GOPATH appropriately . ./set_gopath.sh mkdir -p bin export GOBIN=bin GOXC="`pwd`/vendor/src/github.com/laher/goxc/goxc.go" NONTASKS="go-vet,go-test,archiv...
true