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
b4d9f76b1f39dde54769b27c233ff8e9c0def54b
Shell
velcrine/vorishirne
/bash/k8.sh
UTF-8
815
2.671875
3
[]
no_license
alias kg="kubectl get" alias kga="kubectl get-all" alias kd="kubectl delete" alias ke="kubectl edit" alias kesc="kubectl modify-secret" alias kl="kubectl logs -f" alias kx="kubectl exec -it" alias ka="kubectl apply -f" alias kw="watch kubectl get" alias ky="kubectl get -o yaml" alias helm3="helm" KUBECONFIG_DIR="/vor...
true
72b048aa4606a364a4548ef519df18e7ec2e7f28
Shell
tmellan/scripts_imp
/runTI.sh
UTF-8
1,671
2.828125
3
[]
no_license
#!/bin/bash lambdaList="0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0" dir=`pwd` TList="500 1000 1500 2000" S=20000 stepList=(20000 20000 20000 20000) d=-1 name="r1" #potparas_33_mixed-wtest-4_3_9393254559_0a0c nPairs="33" vols="0a0c" sizes="mixed-wtest-4_3_9393254559" for l in $nPairs; do if [ ! -d $l ]; then mk...
true
042ad5854138146f9faa4a04c4d630ca067af4d0
Shell
Hi-PACE/hipace
/tests/hosing.2Rank.sh
UTF-8
1,422
2.875
3
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#! /usr/bin/env bash # Copyright 2021 # # This file is part of HiPACE++. # # Authors: AlexanderSinn, MaxThevenet, Severin Diederichs # License: BSD-3-Clause-LBNL # This file is part of the HiPACE++ test suite. # It runs a Hipace simulation in the blowout regime and compares the result # with SI units. # abort on fi...
true
b04985e3e08818bbde3b267baa4e5c7002585cb2
Shell
jiarong/seqdep
/examples/10k.fq.bz2.sh
UTF-8
2,269
2.8125
3
[ "BSD-2-Clause" ]
permissive
#! /bin/bash #PBS -q main #PBS -l nodes=1:ppn=1,walltime=4:00:00 #PBS -l mem=21gb #PBS -j oe Readfile=../tests/test-data/10k.fq.bz2 # parameters to samples data for curve Start=0 End=1 Steps=100 Reps=10 Trimmed_length=90 # Subsample reads from original read data Subsample_seq_num=1000000 # Subsample representatives ...
true
98484022c68fad092e831304556f184ed460db19
Shell
Trusted-IoT-Alliance/IOTRegistrySwagger
/test/possess.sh
UTF-8
4,006
2.625
3
[]
no_license
#!/bin/bash set -e HOST=hl-sk-j-040.brackets.trade:8081 USERAPUBK=0318b8d3f9d2889ee18dd8a48bfdb539ffff4b7498864e7071addd1edb225690e3 USERAPRIVK=dc030fcfc70a24a1086421d4fc43b927dc29c7df87e4d87a6ee2ed76cf7a75d7 USERAADDR=c535bbbf772521e84c8da4378d1b21e6a4578d37 USERBPUBK=0225e0c73e75ce512f14054d9629107b9b1365d0533248...
true
b49cc8974628ce517b2e5ffd03ee980be93dc615
Shell
phrac/dotfiles
/scripts/bin/cmus.sh
UTF-8
395
2.9375
3
[]
no_license
#!/bin/sh echo -n `cmus-remote -Q | grep "tag artist" | sed s/"tag artist"/""/g | sed '1s/^.//' | head -n 1` echo -n " - " echo -n `cmus-remote -Q | grep "tag title" | sed s/"tag title"/""/g | sed '1s/^.//'` echo -n " (" s=`cmus-remote -Q | grep "status" | sed s/"status"/""/g | sed '1s/^.//'` if [[ $s = "playing" ]] ...
true
3e23886c4481805917254813808c73777924a034
Shell
ankurdave/dotfiles
/bin/setup
UTF-8
5,792
3.703125
4
[]
no_license
#!/bin/bash set -eu dotfiles=$(cd $(dirname $0)/.. && pwd) command_exists () { type "$1" &> /dev/null ; } symlink () { file=$1 target=$2 # Back up real files (not symlinks) to ~/config-old/ if [[ -e "$target" && ! -L "$target" ]] then echo "Moving old version of $target to ~/config-...
true
77031dcc7fffa23fb38430fc198018eec8bb538e
Shell
yoonseongduk/script
/initial/012_iplinfo.sh
UTF-8
2,074
3.21875
3
[]
no_license
#!/bin/bash ################################################################################# # # # Script Name: 012_iplinfo.sh # # ...
true
3f6c781ef49e00a96ef4025323de4eb98f93f0c0
Shell
NetBSD/pkgsrc-wip
/pkg_fake/files/pkg_fake
UTF-8
7,485
4.03125
4
[]
no_license
#!/bin/sh # # author: pancake@phreaker.net # # installs or removes fake packages into the pkgsrc database. # creates and manages fake alternatives on pkgsrc. # allows to hide and show packages from the pkgsrc database. # variable initialization # PREFIX=@PREFIX@ PKGDB=@PKGDB@ PKGSRC=@PKGSRC@ PKGHIDE=${PKGDB}/../pkg_hi...
true
775dafa8bbb22180e54a05ee4e286cb665420d68
Shell
phisphere/dotfiles
/.bashrc
UTF-8
1,442
2.953125
3
[]
no_license
[ -z "$PS1" ] && return PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[m\] \[\e[1;32m\]\$ \[\e[m\]\[\e[0;37m\] ' # alias alias ls='ls --color=auto' eval `dircolors -b` alias c='clear' alias e='exit' alias x='startx' alias h='halt' alias r='reboot' alias zen='pmount /dev/sdb1' alias zenu='pumount /dev/sdb1'...
true
18bdc5499747840797e4e48dc6cb917952afd131
Shell
jaburns/quickmail
/startup
UTF-8
408
2.734375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash [[ -z "$MAILHUB" ]] && MAILHUB='smtp.gmail.com:587' cat >/etc/ssmtp/ssmtp.conf <<EOF root=$EMAIL mailhub=$MAILHUB AuthUser=$EMAIL AuthPass=$PASSWORD UseTLS=YES UseSTARTTLS=YES hostname=localhost FromLineOverride=YES EOF echo "root:$EMAIL:$MAILHUB" >/etc/ssmtp/revaliases mkfifo /root/logpipe soca...
true
2321921883aeff0be45d21b571a60155e6a9b178
Shell
ch-mach/CopierToPykota
/config.sh
UTF-8
1,009
2.578125
3
[]
no_license
echo "Vergeben Sie eine ID für den Drucker:" read ID echo "Drucker aktiv (0/1)?" read IS_ACTIVE echo "IS_ACTIVE=$IS_ACTIVE" >> ./cfg/$ID.cfg # usw #IS_ACTIVE=1 #TYP=Canon7055 #IS_COLOUR=1 #IP=10.16.102.211:8000 #ADMIN_USER=7654321 #ADMIN_PWD=7654321 #DIR_NEWUSER= #PARAM_NEWUSER= #DIR_LIMIT= #PARAM_LIMIT= #DIR_DEL_US...
true
5e06a51adc9536da90a92379cae49f432d2eb2d6
Shell
delkyd/alfheim_linux-PKGBUILDS
/nicotine-plus-git/PKGBUILD
UTF-8
874
2.578125
3
[]
no_license
#! /bin/bash # Maintainer: Rafael Cavalcanti <rc.cavalcanti at gmail dot com> # Contributor: Jorge Barroso <jorge.barroso.11 at gmail dot com> # Contributor: x-demon pkgname=nicotine-plus-git _gitname=nicotine-plus pkgver=r2105.e91f0e9 pkgrel=3 pkgdesc="A fork of Nicotine, a graphical client for Soulseek." arch=('i686...
true
7136057cc4a471365c8e417679581b9dd3ee5cef
Shell
artcom/mobile-spark
/projects/DemoApp/android/build.sh
UTF-8
530
3.1875
3
[ "MIT", "BSL-1.0" ]
permissive
#! /bin/bash SPARK_COMPONENT_DIR=`pwd`/.. if [[ "`uname -s`" == *CYGWIN* ]]; then cd $(cygpath "$MOBILE_SPARK/") else cd $MOBILE_SPARK fi if [ -z "${ARM_TARGET:+1}" ]; then export ARM_TARGET="armeabi-v7a" echo "Using default ARM_TARGET $ARM_TARGET" fi if [ -z "${ANDROID_LEVEL:+1}" ]; then expor...
true
dcebadf683e938a5c2d45b32315d708194db440d
Shell
Grannik/menuNmcli
/menuNmcli.sh
UTF-8
11,375
3.015625
3
[]
no_license
#!/bin/bash E='echo -e'; # -e включить поддержку вывода Escape последовательностей e='echo -en'; # -n не выводить перевод строки trap "R;exit" 2 # ESC=$( $e "\e") TPUT(){ $e "\e[${1};${2}H" ;} CLEAR(){ $e "\ec";} # 25 возможно это CIVIS(){ $e "\e[?25l";} # это цвет текста списка перед курсором при...
true
b22292a145951312b92584da84ba30c131604f9b
Shell
a-a-code/repo
/.bashrc
UTF-8
332
2.890625
3
[]
no_license
# Interactive Check [[ $- != *i* ]] && return # Alaises alias .='cd ..' alias ..='cd ../..' alias grep='grep --color=auto' alias ls='ls -ahl --color=auto' # Prompt export PS1="\[\e[31m\]\A\[\e[m\]\[\e[31m\]>\[\e[m\] " # History set +o history # Exports export EDITOR=nvim # LS after CD function cd { builtin cd "$@"...
true
87c1f436a02600796fcb55d4d2a5a687a79b72d1
Shell
mzp/chef-repo
/bin/setup
UTF-8
105
2.734375
3
[ "Apache-2.0" ]
permissive
#!/bin/sh for i in ~/home/dotfiles/*; do echo rm .$(basename $i) echo ln -s $i .$(basename $i); done
true
4c75cd50dc8b429fe0cd697ed346666d48a23ec2
Shell
cthit/misc
/irkk
UTF-8
2,105
4.0625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash CHOICE_FILE="$HOME/.irkk-choice" choice=0 if [ "$1" == "-f" ] || [ "$1" == "--force" ]; then echo -e "You've choosen to replace yor irkk choice.\n" # Check if user already has screen running. # Note that these "booleans" are inverted hasScreen=$(screen -ls | grep -c irkk) hasT...
true
7860edab436f67dcb67631645ae6f46357bca8f9
Shell
DNJha/CCPE-DockerBenchmarkCode
/Code/Case_2/linpack+ycruncher/out1.sh
UTF-8
405
2.90625
3
[]
no_license
#!/bin/bash j=1 while [ 1 ] do echo "----------------------------------" >> app/yc.txt echo "Running YC started at: " >> app/yc.txt echo ; date >> app/yc.txt echo "YC Iteration: " $j >> app/yc.txt echo "$(cd /y-cruncher\ v0.7.5.9481-static && ./y-cruncher bench 100m)" >> app/yc.txt echo "Finishe...
true
954bbe8e8560a9c82e4bb8d28617248a2f1a1117
Shell
IMSA-CMS/MCAutomation
/manageStepNewAddCopy.sh
UTF-8
3,611
3.484375
3
[]
no_license
#!/bin/bash #Go through all the lines in the file, write the step name and date stepShort() { echo "entered"$1 if [ "$1" == "genSimCrabConfig" ] then echo "entered2" stepName="GENSIM" elif [ "$1" == "recoCrabConfig" ] then stepName="RECO" elif [ "$1" == "aodCrabConfig" ] then stepName=...
true
e23da96175becfbdc3c6f201a18213a42a098950
Shell
rubensayshi/bashtools
/gitgrepall.sh
UTF-8
111
3.109375
3
[]
no_license
#!/bin/bash DIRS=$(ls) for DIR in $DIRS; do >&2 echo $DIR cd $DIR git --no-pager log -p -S$1 cd .. done
true
70b5aa7274dfd0857598a9134ebf762d6e96af5c
Shell
jinyun1tang/netcdf-c
/dap4_test/test_meta.sh
UTF-8
1,575
3.234375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/sh if test "x$srcdir" = x ; then srcdir=`pwd`; fi . ../test_common.sh . ${srcdir}/d4test_common.sh echo "test_meta.sh:" set -e computetestablefiles CDL= for f in ${F} ; do STEM=`echo $f | cut -d. -f 1` if test -e ${CDLTESTFILES}/${STEM}.cdl ; then CDL="${CDL} ${STEM}" else echo "Not found: ${CDLTESTFIL...
true
3f638255f0117688c15ddc6558fdb9150cec3189
Shell
aDENTinTIME/holberton-system_engineering-devops
/0x0B-web_server/3-redirection
UTF-8
382
2.546875
3
[]
no_license
#!/usr/bin/env bash # Installs nginx, and creates a redirect page sudo apt-get update sudo apt-get install Nginx -y echo "Holberton School" | sudo tee /usr/share/nginx/html/index.html sudo sed -i "s/^\slocation \/ {$/\tlocation \/redirect_me {\n\t\treturn 301 https:\/\/youtu.be\/Sagg08DrO5U;\n\t}\n\n\tlocation \/ {/" ...
true
29af502eaa5fc5fb833ed238eda207e25ca68dcf
Shell
StefanCristian/argent-server
/app-misc/argent-mce/files/1.1/bin/argent-mce-start
UTF-8
523
2.90625
3
[]
no_license
#!/bin/sh # setup myxinitrc="/usr/bin/argent-mce-session" myuser="argentmce" mcepid="/var/argentmce/.mcepid" # make sure samba is started [[ -f "/etc/init.d/samba" ]] && /etc/init.d/samba start &> /dev/null # Kill previous instance running since # /etc/init.d/xdm does not support PIDFILE for # custom DISPLAYMANAGER ...
true
5666265d50a11b01b66b191dd83c31e7cd47492a
Shell
wuhp/lfs7.5
/build-temp-system/build-expect-2.sh
UTF-8
367
2.90625
3
[]
no_license
#!/bin/bash export SOURCE="expect5.45" [ -d ${SOURCE} ] & rm -rf ${SOURCE} tar -zxf ../sources/expect5.45.tar.gz cd ${SOURCE} cp -v configure{,.orig} sed 's:/usr/local/bin:/bin:' configure.orig > configure ./configure --prefix=/tools \ --with-tcl=/tools/lib \ --with-tclinclude=/tools/i...
true
adb10f3714214e7ed82f131753078a0a6bb173bf
Shell
jjwilcoxson/envoy
/ci/build_container/build_recipes/googletest.sh
UTF-8
264
2.65625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash set -e VERSION=release-1.8.0 wget -O googletest-$VERSION.tar.gz https://github.com/google/googletest/archive/$VERSION.tar.gz tar xf googletest-$VERSION.tar.gz cd googletest-$VERSION cmake -DCMAKE_INSTALL_PREFIX:PATH=$THIRDPARTY_BUILD . make install
true
a543c1d08c8856f755bc7790fce94f21811d14ae
Shell
Joe-Marchesini/CSI-230
/other/hostlookup.sh
UTF-8
438
3.734375
4
[]
no_license
#!/bin/bash # file hostlookup.sh # brief Takes file input with host names and checks if they are valid hosts. # author joeseph.marchesini # lab 6.2 # date 10/15/2020 usage() { echo "$0 usgae: [-f input filed]" } while getopts ":f:" options; do f=${OPTARG} while read h; do out=$(host -W1 -t A $h) if [ $? -eq...
true
94c8861d8dfde224f0f60100f37d0bbe90afd962
Shell
forbesmyester/pernote
/pernote
UTF-8
7,311
4.0625
4
[]
no_license
#!/bin/bash # POSSIBLE_INDEX_LOCATIONS=("$( cd "$(dirname "$0")" ; pwd -P )") # if command -v basher; then # echo bb # POSSIBLE_INDEX_LOCATIONS+=("$(basher package-path forbesmyester/pernote)") # echo bob # fi # for PP in "${POSSIBLE_INDEX_LOCATIONS[@]}";do # echo ">> $PP" # done set -euo pipefail IF...
true
57d790a0c0ed5423492fa6870cf1b7bcd730c5b1
Shell
patrickkeCN/CI-All
/ci/setupContainer.sh
UTF-8
392
2.75
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e # Add common variables. echo ">>>> Import common variables." source ~/ci/commonVar.sh #Create administrator in Gerrit. echo ">>>> Setup Gerrit." source ~/gerrit-docker/addGerritUser.sh #Integrate Jenkins with Gerrit. echo ">>>> Setup Jenkins." source ~/jenkins-docker/setupJenkins.sh #Restart Ngin...
true
76c7f442bdeb9ef04c3f40d74a1764e7f8d74415
Shell
KXStudio/KXStudio
/scripts/old/update-git-deb
UTF-8
838
3.9375
4
[]
no_license
#!/bin/bash # Script to automatically update git based debs and rebuild # Please do the upload yourself, as this may take some time... export LANG="C" ALL=`ls` # Run the action against all folders for i in $ALL; do if [ -d $i/.git ]; then cd $i # Package version type DEBIAN=`cat debian/changelog | hea...
true
aef1c82c62a0221e8939bb1d28f40505f4100c9b
Shell
ongmark/LibreSignage
/build/scripts/fancyread.sh
UTF-8
706
4.59375
5
[ "BSD-3-Clause", "CC-BY-4.0", "OFL-1.1", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh # # Read user input from STDIN. If the user input is empty, # echo a default value. An arbitary number of allowed values # can also be specified. # # $1 = Prompt string. The default value is added to this. # $2 = Default value. # # All remaining arguments are considered allowed values. # fancyread() { pro...
true
81a2b3d94305fe1dae35f906309a7f272646e9c8
Shell
kruger/config
/bin/session_make
UTF-8
2,270
3.859375
4
[]
no_license
#!/bin/bash #------------------------------------------------------------------ # Script: make_session Author: Scott Kruger # Usage: make_session usernames # Description: # This script and the associated join_session automate the use # of the multi-user feature of the screen program. It # essentially autom...
true
6a51a074bb21d4e1542b1b2898828041dcdb947d
Shell
scjurgen/pyfeld
/pack.sh
UTF-8
672
3
3
[ "MIT" ]
permissive
#!/usr/bin/env bash versionsetup=`grep "this_version =" setup.py | sed "s/^.*version = ['\"]\([0-9ab.]*\)['\"].*$/\\1/g"` versionrfcmd=`grep "version =" pyfeld/rfcmd.py | sed "s/^.*version = ['\"]\([0-9ab.]*\)['\"].*$/\\1/g" ` echo rfcmd: ${versionrfcmd} echo setup.py ${versionsetup} if [ "$versionrfcmd" != "$versio...
true
fb36055394d9317e92ac3ede706a5ace17068c72
Shell
hylcugb/isoplotter
/compare_versions.sh
UTF-8
2,414
4.28125
4
[]
no_license
#!/bin/bash # # This script will run both versions of isoplotter and compare their output. # # Warning! Version 1 can only process uncompressed FASTA. Also, please only # use one sequence per FASTA. # set -e # # Analysis configuration # # useful if you just want to run the comparison code. skip_analysis=f...
true
c6372628701471a44a97e5c125537d2173a02fc1
Shell
fabriz/cpp_libs_build_scripts
/libs/tinyxml2/tinyxml2-8.0.0/config.sh
UTF-8
1,190
2.984375
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
44647a6d023df89dba854bf48b21398fe53e8716
Shell
ttlin1/OsmLoader
/bin/db-export.sh
UTF-8
2,673
3.53125
4
[]
no_license
. ~/OsmLoader/bin/db-common.sh echo "START > > > > > " date # if a command line parameter is passed run the init & hastus builders, if not simple export the # init and hastus tables to shapefile and csv if [ $1 ] then echo "****** REFRESH and RELOAD THE INIT / HASTUS DATA in POSTGIS ******" . ~/OsmLoader/bin/db-...
true
fa017d1afbaf1dbf39c0972c2810a768133f4301
Shell
mdpiper/LANDIS
/setup
UTF-8
1,160
3.28125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Set up an environment for LANDIS-II on beach. # Mark Piper (mark.piper@colorado.edu) # Location of LANDIS-II install. export LANDIS_DIR=$HOME/LANDIS-II # Location of custom GDAL with Mono bindings for LANDIS-II. GDAL_VERSION=1.8.1 # export GDAL_DIR=/usr/local/gdal-$GDAL_VERSION-gcc export GDAL_D...
true
fdf38ee9c23466c84874b22ee304c0c66f803505
Shell
FauxFaux/debian-control
/s/shorewall/shorewall_5.2.1.4-1_all/postinst
UTF-8
2,130
3.25
3
[]
no_license
#!/bin/sh -e . /usr/share/debconf/confmodule case "$1" in configure) db_reset shorewall/dont_restart || true db_reset shorewall/major_release || true db_go if [ ! -d /var/lib/shorewall ] then mkdir -p /var/lib/shorewall fi # The init script w...
true
d913efb69dd114eeaa7e9e606254cef726510122
Shell
forast3r/dasshio
/.travis/build.sh
UTF-8
578
3.453125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e set -x archs="${ARCHS}" for addon in "$@"; do if [ -z ${TRAVIS_COMMIT_RANGE} ] || git diff --name-only ${TRAVIS_COMMIT_RANGE} | grep -v README.md | grep -q ${addon}; then if [ -z "$archs" ]; then archs=$(jq -r '.arch // ["armhf", "amd64", "aarch64", "i386"] | [.[] | "--" + .] | join("...
true
fa3f89e66195b598b6261c7e5c2ab399742cae7f
Shell
andre-setiawan9/novtools
/novtools.sh
UTF-8
3,598
3
3
[]
no_license
#!bin/bash #Version 1.1 (Beta) clear figlet NOV TOOLS | lolcat echo "--------------------------------------------------- | # Author : NOV | | # Email : trianov1506@gmail.com | | # Instagram : @trianovwidyandaru | | # Website : www.3anovproduction.wordpre...
true
59f4d11832afc5c6b469375ee505d319af7cae18
Shell
xlogerais/test-spring-boot
/start.bash
UTF-8
827
2.890625
3
[]
no_license
#!/bin/bash SESSION_NAME=springboot BASEDIR="$HOME/Work/Dev/test-spring-boot" VERSION="0.0.1-SNAPSHOT" DEBUG="--debug" # Create tmux session tmux new-session -s "${SESSION_NAME}" -d # Start spring infra (eureka, admin-server, config-server) tmux new-window -t "${SESSION_NAME}" -n "eureka" -c "${BASEDIR}/ba...
true
54390c3d62c16cd77b64c19a7ac86baf26edb832
Shell
gerdansantos/Admin_Rev3
/dockerfiles/ambari_node/ambari_node.sh
UTF-8
197
2.5625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ $# -lt 1 ] then echo "Usage: ambari_node.sh <node_name>" exit fi docker run -dns 127.0.0.1 -h $1 -name $1 -p 22 -link node1:node1 -p 8440 -p 8441 -i -t hwx/ambari_node
true
9e86bb82ba68afed627867743f924e34020b1cfc
Shell
wzpdada/dada
/mysql.sh
UTF-8
3,923
3.359375
3
[]
no_license
设置 -e USER = “备份” 密码= “备份” #数据库数据目录# DATA_DIR = “ / data / mysql ” BIN_INDEX = $ DATA_DIR “ /mysql-bin.index ” #备份目录# BACKUP_DIR = “ / data / backup / mysql ” BACKUP_LOG = “ /var/log/mysql/backup.log ” DATE = ` date + “%Y%m%d ” ` TIME = ` date + “%Y%m%d%H ” ` LOG_TIME = ` date + “%Y-%m-%d%H:%M:%S ” ` DELETE_BINLOG_T...
true
82a2449a2b04bcabb7b181f9fd0a4f4f6183c8fe
Shell
carbonblack/cb-event-forwarder
/run-event-forwarder.sh
UTF-8
2,297
4.09375
4
[ "MIT" ]
permissive
#!/bin/bash LABEL=edreventforwarder IMAGE=eventforwarder/centos7:latest CONFIG_DIR_EXTERNAL=/etc/cb/integrations/event-forwarder CONFIG_DIR=/etc/cb/integrations/event-forwarder LOG_DIR_EXTERNAL=/var/log/cb/integrations/cb-event-forwarder LOG_DIR=/var/log/cb/integrations/cb-event-forwarder MOUNT_POINTS="--mount type=bin...
true
36e238af53c7a1bba3177f3dba6da34af9abbcbf
Shell
dmcgrady/zsh
/plugins/zsh-os/bin/tasks
UTF-8
2,071
3.796875
4
[]
no_license
#!/usr/bin/env zsh typeset -A Module Commands # ------------------------------------------------------ # dnet # ------------------------------------------------------ Module=( Name 'tasks' About 'Interact with vim-tasks from a command-line' Author 'Dan McGrady <dan@dmix.ca>' Repo 'https://github...
true
7a71a6a72525814e1f0bbb67ebdac8065197bfeb
Shell
milksteak-project/steaks
/packages/libnl/libnl.sh
UTF-8
1,130
4
4
[]
no_license
#!/usr/bin/env bash TMPDIR="$HOME/usr/tmp" PACKAGE="libnl" VERSION="master" #2.0 SOURCE="${PACKAGE}-${VERSION}" ZIP="${SOURCE}.zip" LINK="https://github.com/sigma-1/${PACKAGE}/archive/${VERSION}.zip" DEPS="bison" # -- Install dependencies function install_dependencies() { brew install $DEPS } echo -e ">>>>> Install...
true
c96a8a2a06511f13e08b4bb249c6b8faac791cb7
Shell
cspace-deployment/cspace-webapps-ucb
/ucjeps/apps/merritt_archive/code/batch/run_tidy.sh
UTF-8
273
2.59375
3
[]
no_license
#!/usr/bin/env bash # tidy up files from 5 before last date of archiving activity cd /cspace/merritt/batch FILES_TO_DELETE=$(ls /cspace/merritt/jobs/mrt-*.completed.csv | tail -5 | head -1) echo tidying up $FILES_TO_DELETE ./step5_tidy_up.sh $FILES_TO_DELETE > /dev/null
true
27ac260bc866ab05bf5ee56c807a5ef8dd71933b
Shell
openstack-charmers/migration-tools
/tobzr/push-charms
UTF-8
1,323
3.171875
3
[]
no_license
#!/bin/bash -e echo "===== $(basename $0) =====" for charm in `ls -1 bzr/stable/`; do if [[ -d bzr/current/stable/$charm && -d bzr/stable/$charm ]]; then ( cd bzr/current/stable/$charm old_revno=$(bzr revno) cd - cd bzr/stable/$charm new_revno=$(...
true
7436372ba5c2ebbc1695d452fd8fb47a1bab14f2
Shell
Nerevarishe/saas-crm-dashboard
/dev-build-frontend.sh
UTF-8
631
2.828125
3
[]
no_license
#!/bin/bash # Export all variables from .env source .env printf '\e[1;32m%-6s\e[m\n' "Building dependencies images" printf '\e[1;32m%-6s\e[m\n' "Build node image with dependencies" docker build -t $DOCKER_IMAGE_PREFIX-node-dependencies:latest -f ./alpine-deps-images/Dockerfile-node . printf "\n\n" printf '\e[1;32m%-6...
true
f22ec57f8b022d0c98353d3572296c4a6d870c97
Shell
davidje13/snowball_koth_pitn
/simple.sh
UTF-8
276
2.984375
3
[]
no_license
TURN="$1"; ME_BALLS="$2"; THEM_BALLS="$3"; ME_DUCKS="$4"; THEM_DUCKS="$5"; MAX_BALLS="$6"; if (( ME_BALLS > THEM_BALLS + THEM_DUCKS )); then echo "1"; elif (( ME_BALLS == 0 )) && (( THEM_BALLS == 0 )); then echo "0"; else RND="$RANDOM"; (( RND %= 3 )); echo "$RND"; fi;
true
7be8b6802ef618fd10c492870d6e91d96c5257fd
Shell
shahid1996/BuildXSS
/Sources/ShortEvents.sh
UTF-8
319
2.5625
3
[]
no_license
#!/bin/bash arrShortEvent[0]="oncut= " arrShortEvent[1]="onload= " arrShortEvent[2]="onclick= " arrShortEvent[3]="onerror= " arrShortEvent[4]="onfocus= " arrShortEvent[5]="onshow= " arrShortEvent[6]="onwhell= " randShortEvent=$[ $RANDOM % 7 ] arrShortEvent=${arrShortEvent[$randShortEvent]} #Short JavaScript Events
true
df926be9d8060d606d1ca23d868af678379d2543
Shell
tcdog001/project_tools
/ltefi_md_hisisdk.init
UTF-8
545
3.296875
3
[]
no_license
#!/bin/bash . ltefi_md_git.in readonly HISISDK=hisisdk main() { local user=$(whoami) local PRO_PATH=/home/${user}/histb if [ ${user} != ${HISISDK} ]; then echo "warning: user!=${HISISDK}, exit!" exit 0 fi if [ -f "${PRO_PATH}/autelan" ]; then echo "warning: ${PRO_PATH}/autelan exist, exit!" exit 0 fi ...
true
bb107aebbde8940dd921052d556360430bf29263
Shell
XorgX304/sandscout
/profile_compilation/processAllVersions.sh
UTF-8
875
4.03125
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash #this is a wrapper for processAllProfiles.sh that just calls it on each version we have SBPL profiles for. #usage details if test $# -ne 2; then echo "Usage: $0 directory_containing_SBPL_directories directory_for_output" 1>&2 echo "Example: $0 ios-sandbox-profiles all_version_processed_sandbox_profiles...
true
a306a5d08c4d0f25f765f1d178e76669e21f772f
Shell
abbi-gaurav/fsm-extension-installer-kyma
/internal/build.sh
UTF-8
491
2.8125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e . ../VERSIONINFO echo "Start to build the extension installler" echo "======nodejs build==================================" cd ../backend npm run build:prod cd .. echo "======docker build==================================" docker build -t sapfsm/fsm-extension-installer-for-kyma:$appVersion . ech...
true
1ba6eec0ded4de53c2d3df8864d0388deced529d
Shell
miral158/shell_script
/case.bash
UTF-8
278
3.234375
3
[]
no_license
# echo "please enter your choice" # echo "a = display date and time" # echo "b = List files and directory" # echo "c = check system uptime" # read choices # case $choices in # a) date;; # b) ls;; # c)uptime;; # *) echo "invalid option" # esac read name echo "welcome $name"
true
41308f8c44742ee5b9e9aba36c970a283612adb7
Shell
rkcho317/2401
/run.sh
UTF-8
568
3.078125
3
[]
no_license
#!/bin/bash #Author: Rosa Cho #Program name: Rectangle and Perimeter Demo rm *.o, *.lis, *.out echo " " #Blank line echo "Assemble the X86 file perimeter.asm" nasm -f elf64 -l perimeter.lis -o perimeter.o perimeter.asm echo "Compile the C++ file array-main.cpp" g++ -c -m64 -Wall -std=c++14 -o rectangle.o -fno-pie -...
true
a320c5bfd9f57800da41d4dc534f79944979eec3
Shell
hhy5277/headset-electron
/linux/bin/build_installer.sh
UTF-8
472
2.78125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e source="build/Headset-linux-x64" destination="build/installers" echo -e '\n\033[1mPackaging deb installer: \033[01;0m' electron-installer-debian \ --src $source \ --dest $destination \ --arch amd64 \ --config bin/configurations/config_deb.json echo -e '\n\033[1mPackaging rpm insta...
true
605da87dc78432a3813c76908a9ebdc8ee8cbe8c
Shell
davep-github/dpw
/bin/trivial-assoc
UTF-8
1,228
3.515625
4
[]
no_license
#!/bin/bash source script-x set -u progname="$(basename $0)" source eexec if vsetp "${eexec_program-}" # Did the caller provide a program? then EEXEC_SHIFT=: else eexec_program=$(EExec_parse "$@") EEXEC_SHIFT=shift fi for op in $eexec_program do $op ${EEXEC_SHIFT} done EExec_verbose_msg $(echo_id e...
true
ea2c63754ae76731fea04f0e624bbf0ebaff9e55
Shell
RafaelFino/learnops
/scripts/sysmon.sh
UTF-8
585
3.421875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash #@Author Shahriar Shovon #@Github https://github.com/shovon8/sysmon printf "%-10s%-15s%-15s%s\n" "PID" "OWNER" "MEMORY" "COMMAND" function sysmon_main() { RAWIN=$(ps -o pid,user,%mem,command ax | grep -v PID | awk '/[0-9]*/{print $1 ":" $2 ":" $4}') for i in $RAWIN do PID=$(echo $i | c...
true
67b8986b92c333884de49b190e997e4c00fc4670
Shell
quater/freenas-9.2-xen
/nanobsd/Files/etc/ix.rc.d/ix-preinit
UTF-8
636
3.328125
3
[]
no_license
#!/bin/sh # # $FreeBSD$ # # PROVIDE: ix-preinit # REQUIRE: FILESYSTEMS # BEFORE: SERVERS . /etc/rc.subr do_preinit() { local IFS="|" local f="ini_type ini_command ini_script ini_when" eval local $f local sf=$(var_to_sf $f) ${FREENAS_SQLITE_CMD} ${FREENAS_CONFIG} \ "SELECT $sf FROM system_initshutdown WHERE in...
true
4728a71b1121f6ba200daa210510a6c97a63c6f0
Shell
totara/totara-docker-dev
/bin/tlogs
UTF-8
540
3.28125
3
[ "MIT" ]
permissive
#!/bin/bash script_path="$( cd "$(dirname "$0")" ; pwd -P )" project_path="$( cd $script_path && cd ..; pwd -P )" args=("--follow" "--no-log-prefix") tail="--tail=20" container="" for arg in "$@"; do if [[ "$arg" =~ "--tail" ]]; then tail="$arg" elif [[ "$arg" == "-f" || "$arg" == "--follow" || "$arg"...
true
7ef2331616578229534cb40141feaeb6c3bf7478
Shell
ArkieCoder/dockerized-RoR
/rr_new
UTF-8
919
2.640625
3
[]
no_license
#!/bin/bash cat Gemfile.guardgems >> Gemfile ./build ./up -d ./rr new . --force --database=sqlite3 cat Gemfile.postrrnew >> Gemfile cat Gemfile.guardgems >> Gemfile ./down ./build ./up -d ./aa_inst ./set_env echo -n "Do you want to run database migrations for ActiveAdmin? [Y/n] " read ans if [ "$ans" == "n" ] then ...
true
9646498ff89bdf0c51ac3a7bc1d5bb50a5bafa0b
Shell
steflen/dotfiles-2
/.aliases
UTF-8
15,592
3.40625
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
#!/usr/bin/env bash # Easier navigation: .., ..., ...., ....., ~ and -. alias ..="cd .." alias ...="cd ../.." alias ....="cd ../../.." alias .....="cd ../../../.." alias ~="cd ~" # `cd` is probably faster to type though alias -- -="cd -" ## # SHORTCUTS. ## alias d="cd ~/Documents" alias dl="cd ~/Downloads" alias dr="...
true
1ac17b6f63676fa345080194bf44e1180e68e532
Shell
SoeldnerConsult/kubeflow-in-tkg-cluster
/install_script_files/ldap_connector_configuration_script.sh
UTF-8
1,249
3.21875
3
[]
no_license
#!/usr/bin/env zsh function configure_dex_ldap_connector(){ host=$1 bindDN=$2 bindPW=$3 username_prompt=$4 baseDN=$5 username_attribute=$6 id_attribute=$7 email_attribute=$8 name_attribute=$9 #1. obtain actual auth config kubectl get configmap dex -n auth -o jsonpath='{.data.config\.yaml}' > dex-config.yaml #2. crea...
true
25f8811018a37107e83daabf319f86913ec5b220
Shell
jhbsz/wifi-handler
/connect-wifi
UTF-8
885
3.28125
3
[]
no_license
#!/bin/sh # Copyright (C) 2014 Ripple Cloud # params ssid=$1 security=$2 password=$3 ifaceid=0 echo "$ssid" echo "$security" echo "$password" # disable existing wifi interfaces while :; do uci get wireless.@wifi-iface[$ifaceid] > /dev/null 2>&1 if [ $? = 0 ]; then uci set wireless.@wifi-iface[$ifaceid].disa...
true
218e56fea57664545e4219f9b40121966a074be9
Shell
m4rcu5nl/docker-pdns-recursor-alpine
/tests/bats/01-pdns-recursor.bats
UTF-8
709
3.015625
3
[]
no_license
#!/usr/bin/env bats setup(){ load test_helper } @test "Recursor answers to query over UDP" { run dig +notcp +short @${PDNS_HOST} -t TXT test.localhost [ "$status" -eq 0 ] [ "$output" = '"Result"' ] } @test "Recursor answers to query over TCP" { run dig +tcp +short @${PDNS_HOST} -t TXT test.localh...
true
8948a5ae8cd11b86723c28a6dcb58bef8ff20c80
Shell
jlagneau/git-submodules-to-subtree
/gitsmtost.sh
UTF-8
874
3.75
4
[ "MIT" ]
permissive
#!/bin/bash # extract the list of submodules from .gitmodule cat .gitmodules | while read i do if [[ $i == \[submodule* ]]; then echo converting $i # extract the module's prefix mpath=$(echo $i | cut -d\" -f2) # skip two lines read i; read i; # extract the url of the submodule murl=$(echo...
true
ac8f2badb83d737231e53a32cd1fc3bbafae51a6
Shell
dronemill/harmony-api
/dockerfile_fs/etc/my_init.d/uid.sh
UTF-8
651
3.4375
3
[ "MIT" ]
permissive
#!/bin/sh # http://chapeau.freevariable.com/2014/08/docker-uid.html # if we don't have a UID to swich to, then get out if [ -z "$EXEC_UID" ]; then exit; fi; export ORIGPASSWD=$(cat /etc/passwd | grep $EXEC_UNAME) export ORIG_UID=$(echo $ORIGPASSWD | cut -f3 -d:) export ORIG_GID=$(echo $ORIGPASSWD | cut -f4 -d:) exp...
true
411f5db325b17266a44b5fc31bf885a9caf91166
Shell
o1-labs/graphql_ppx
/bzl/tools/wss
UTF-8
363
3.46875
3
[ "BSD-3-Clause" ]
permissive
#!/bin/sh for LAST; do true; done ARGS= for param in "$@" do echo COUNT: $# if [ $# -ne 1 ] then ARGS="$ARGS $1" fi shift done # if no dir arg is passed: if [[ $LAST == -* ]] then ARGS="$ARGS $LAST" LAST= fi ls --color $ARGS `bazel info output_base`/external/$LAST echo OUTPUT_BAS...
true
3271d8359c63bf9a29430fe6981f7344a03faad8
Shell
sotoiwa/vagrant-was-centos
/unzip_repo.sh
UTF-8
627
3.046875
3
[]
no_license
#!/bin/bash set -eu set -o pipefail function unziprepo () { repo=$1 filename=${!repo} mkdir -p /work/${repo} cd /work/${repo} cp /vagrant/${filename} . unzip -q ${filename} } IIM=agent.installer.linux.gtk.x86_64_1.8.9004.20190423_2015.zip WAS=WAS_ND_V9.0_MP_ML.zip JDK=sdk.repo.8030.java8.linu...
true
56df9ba41b8d65b305aaa7f3133534e0947ca8d8
Shell
Zo3i/OCS
/docker/dockerInstall.sh
UTF-8
1,219
3.03125
3
[ "MIT" ]
permissive
#!/bin/sh ### 更新 ### yum -y update ### 安装docker ### # 安装一些必要的系统工具 sudo yum install -y yum-utils device-mapper-persistent-data lvm2 # 添加软件源信息 sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo # 更新 yum 缓存 sudo yum makecache fast # 安装 Docker-ce sudo yum -y install docker-...
true
6177d3085ca14bc0b17afce37fcd880f821fd05c
Shell
kevyin/ngsane
/mods/old/dindelMerge.sh
UTF-8
2,908
3.4375
3
[]
no_license
#!/bin/bash # Script running dindel on a bam file containing the reads from several individuals # It requires the candidate indels from a prior dindel run on the bamfiles for each # individual seperately. # author: Denis C. Bauer # date: Jan.2011 #INPUTS NGSANE_BASE=$1 # location of the NGSANE repository FILE=$2 ...
true
a764d999e669d3a5d3fdc15b5d26fb4aa974386d
Shell
williamhbell/BashIntro
/bin/example_04.sh
UTF-8
247
3.40625
3
[ "MIT" ]
permissive
#!/bin/bash # # W. H. Bell # A program to demonstrate while and until loops # nloops=3 i=0 echo "while loop" while [[ $i<$nloops ]]; do echo $i let i++ done echo echo "until loop" i=0 until [[ $i>$nloops ]]; do echo $i let i++ done
true
98ca8c3fa8f7afa1dcfa6293c3efcfe27902b27c
Shell
whit2333/bubble_chamber
/bin/run_bubble_sim
UTF-8
355
3.40625
3
[]
no_license
#!/bin/bash piped_args= if [ -p /dev/stdin ]; then # If we want to read the input line by line while IFS= read line; do echo "Line: ${line}" if [ -z "$piped_args" ]; then piped_args="${line}" else piped_args="${piped_args}\n${line}" fi done fi source /usr/local/bin/geant4.sh echo -e ...
true
022e7de983280fdcb31538507369477b132a1e20
Shell
henrysher/fedora-infra-ansible
/roles/people/files/grab-daily-logs.sh
UTF-8
993
3.578125
4
[]
no_license
#!/bin/bash # skvidal - 2013-06-25 # takes 2 args: grep_search_string subdir_to_write_to # ex: bash grab-daily-logs.sh /repos/openstack/ rdo logpath='/var/log/httpd/' basedest="/srv/people/site/accesslogs/" logfn='fedorapeople.org-access.log' search="$1" destpath="$basedest/$2" dstamp=`date -d yesterday +%Y-%m-%d` ...
true
abe575e131896c42c45e25bc02c0981351dea354
Shell
z3an/cifs-samba4.5.1
/build.sh
UTF-8
229
3
3
[]
no_license
#!/bin/bash set -e cd $(dirname $0) DO_PUSH="$1" if [ "${DO_PUSH}" != "--push" ]; then if [ ! -e ./dist ]; then mkdir -p ./dist fi rm -rf ./dist/* fi ./scripts/build-image $DO_PUSH
true
22e1f8fee8e8361c2e6d536acf724c18dc4d22ee
Shell
HoweyHuo/UbuntuSetupResources
/rc.firewall/rc.firewall
ISO-8859-2
57,135
2.765625
3
[]
no_license
#!/bin/bash # -- 435 ---------------------------------------------------------------| # This is it...MonMotha's Firewall 2.3.8-pre9! | # I wrote a firewall and all I got was this cheesy tagline | # ----------------------------------------------------------------------| # 2.3 RELEASE NOTES: This is the 2.2 ...
true
a809ffbf682beb1c18b1010fee1e700f2ae448fe
Shell
ildac/jumpStartLaravel
/jumpStartLaravel.sh
UTF-8
4,683
4.5
4
[]
no_license
#!/bin/sh # jumpStartLaravel.sh # An interactive script that does for you the most common operation when setting up a new Laravel project. # The requirements to run the script are: # - composer # - git # - curl # - homestead # Usage: # jumpStartLaravel.sh -gih -o http://git.your.repo/address -l homestead ...
true
fe9be2e0a893e3fccb0ac608b5dfae2f6432674f
Shell
Nik-Novak/OSBotFarm
/game-client/docker/internal-scripts/scripts/check-update.sh
UTF-8
435
3.484375
3
[]
no_license
#!/bin/bash cd $BASEDIR echo "Checking for DreamBot updates..." (cd /tmp && curl -L https://dreambot.org/DBLauncher.jar -O) if [ $(cmp /tmp/DBLauncher.jar DreamBot/DBLauncher.jar) ] then echo "DreamBot was out of date, updating..." mv /tmp/DBLauncher.jar DreamBot/DBLauncher.jar chmod +x DreamBot/DBLauncher.jar...
true
11458d7d5e27e135e76b9aa5d8912644533fc713
Shell
nineten/aybabtu
/aybabtu.sh
UTF-8
592
3.3125
3
[]
no_license
#!/bin/bash if ps -ef | grep nc | grep "-e /bin/bash" ; then echo "aybabtu already running" exit 0 else echo "starting aybabtu" /sbin/ifconfig en1 | grep 'inet ' | cut -d' ' -f2 read lowerPort upperPort <<< $(/usr/sbin/sysctl net.inet.ip.portrange.first net.inet.ip.portrange.last | cut -d':' -f2 | cut -d' ' -f2) ...
true
01b54db2c352e16071da3bf699f4ab71c4966dc5
Shell
archzfs/archzfs
/repo.sh
UTF-8
16,818
4.375
4
[]
no_license
#!/bin/bash # # repo.sh adds the archzfs packages to the archzfs repository or archzfs-testing repository # args=("$@") script_name=$(basename $0) script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" repo_name="" # The destination repo for the packages package_list=() # A list of packages to add. Array it...
true
8cbf30d359e8e1bb517dc742347a72f52760b427
Shell
avkovalevs/aws-pg
/roles/pgpool/files/aws-apitools-common.sh
UTF-8
832
3.375
3
[ "BSD-3-Clause" ]
permissive
# Set path for AWS API tools packages export AWS_PATH=/opt/aws export PATH=$PATH:$AWS_PATH/bin if [ -z "${JAVA_HOME}" ]; then if [ -d /usr/java/latest ]; then # prefer third-party JDK if present export JAVA_HOME=/usr/java/latest elif [ -d /usr/lib/jvm/java ]; then export JAVA_HOME=/usr/...
true
f9a701830a406928202eeef5800b3ef1eaa97401
Shell
boxnos/hashedpotatoes
/test/test.sh
UTF-8
414
2.796875
3
[]
no_license
#!/bin/sh file=test/hashes.zsh cmdf="./hashed -f $file" test_hash () { assertEquals '~src/vim' $($cmdf $HOME/src/vim) } test_unhash() { assertEquals $HOME/src/vim $($cmdf -u '~src/vim') } test_muluti() { assertEquals "$HOME/src/vim $HOME/bin" "$($cmdf -un '~src/vim' '~bin')" } test_pipe() { assertEquals "$...
true
4b494c831ea01d88345181e638447b17e0135809
Shell
rootAir/big-data-projects
/sqoop-examples/Sqoop_import/basic_imports/sqoop_import_split_by_string.sh
UTF-8
710
2.609375
3
[]
no_license
#!/usr/bin/env bash # This query fails :' sqoop import \ --connect jdbc:mysql://db.hostname.com:3306/db \ --username user \ -P \ --table table_name \ --warehouse-dir /user/karthik/sqoop_import/db \ --split-by string_column_name ' # The below query works # The reason is by default splitting across a String colu...
true
8518ca2df963ee7c6c54aa3175ec3d7a6b08d4f0
Shell
msoe-sisyphus-sd/msoe-sisbot
/start_hotspot.sh
UTF-8
2,204
3.375
3
[]
no_license
#!/usr/bin/env bash # comment/uncomment line in file comment() { lua - "$1" "$2" "$3" <<EOF > "$3.tmp" local key=assert(arg[1]) local search=key:match("") local value=assert(arg[2]) local fn=assert(arg[3]) local file=assert(io.open(fn)) local made_change=false for line in file:lines() do if value=="true" then ...
true
4b8036c62dddb487420495191eb1c2c3a7657e60
Shell
foxxifu/my-ids
/tools/bin/stop_biz.sh
UTF-8
312
2.796875
3
[]
no_license
#! /bin/bash PROC_BIZ='ids-biz' stop_biz() { if [ $(ps -ef --columns 2000 | grep "Proc=${PROC_BIZ}" | grep -v grep | wc -l) -ne 0 ] then bizid=`ps -ef --columns 2000 | grep "Proc=${PROC_BIZ}" | grep -v grep | awk '{print $2}'` sudo /bin/kill -9 $bizid sleep 1 fi } stop_biz
true
46baa587eb47987a2a86b5d49be7c51205008365
Shell
DannyGH/AzureIoT
/extras/sync-sdk.sh
UTF-8
1,129
3.765625
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/bin/sh # Copyright (c) Arduino. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. SDK_DIR=$1 SRC_SDK_DIR=../src/sdk EXAMPLES_SDK_DIR=../examples/sdk SDK_METADATA=$SRC_SDK_DIR/metadata.txt if [ -z "$SDK_DIR" ] then echo "Please specify Azure S...
true
8cb1a53292918082cdb577fa1e69ae0f63e805f8
Shell
mipsum/underworld
/vm/run.sh
UTF-8
497
2.53125
3
[]
no_license
[ -f "./hdd.img" ] || { echo 'creating vm first' sh ./create.sh } D="-U deaddead-dead-dead-dead-deaddeaddead" USERBOOT="$HOME/Library/Caches/Homebrew/xhyve--git/test/userboot.so" BOOTVOLUME="hdd.img" KERNELENV="" MEM="-m 2G" SMP="-c 2" PCI_DEV="-s 0:0,hostbridge -s 31,lpc" NET="-s 2:0,virtio-net" IMG_HDD="-s 4:...
true
d7850650f68f59fdb1513deae506328aff7825b3
Shell
gandazgul/k8s-infrastructure
/install-k8s/configNode.sh
UTF-8
4,817
3.25
3
[ "MIT" ]
permissive
#!/bin/bash if [[ $EUID = 0 ]]; then printf "Don't run this script as root" exit 1 fi if ! dnf list installed cri-o > /dev/null 2>&1; then printf "\nInstall cri-o and crun ================================================================================\n" sudo dnf -y module enable cri-o:1.24 || exit 1 ...
true
c199a027e81b9305732c15bc69739d5fb8ca7bb6
Shell
nabto/unabto-jorjin-sdk
/Make.sh
UTF-8
553
3.171875
3
[]
no_license
#!/bin/bash # This script clears the terminal, displays a greeting and copies the # relevant files from the uNabto submodule. It then deletes the remaining files. clear # clear terminal window echo "The script starts now." cp unabto/src/unabto/. src/unabto/ -R mkdir -p src/modules/crypto/generic/ mkdir -p src...
true
d12d329160d7a7d2e179bc22373cc7437b053eed
Shell
Ponce/slackbuilds
/office/adobe-reader/adobe-reader.SlackBuild
UTF-8
5,110
3.15625
3
[]
no_license
#!/bin/bash # Slackware build script for acroread - binary repackaging # Copyright 2006-2009 Robby Workman Northport, Alabama, USA # Copyright 2008-2010 Heinz Wiesinger, Amsterdam, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provide...
true
e29e91acbc71db094de3b96ee0795658aeeb7916
Shell
yunifyorg/anteaterfw
/run_scan.sh
UTF-8
4,134
3.890625
4
[]
no_license
#!/bin/bash # Cross platform build environment to run Anteater # # Copyright 2016-2017, Ashlee Young. 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....
true
b6f542d5629379b443650e1265b419bbecb90ab3
Shell
jlyonsmith/build-buddy
/sample-scripts/ios/master-build.sh
UTF-8
2,234
3.96875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # # Build script for an iOS project master branch # Passed in from Build Buddy if [[ -z "$GIT_REPO_OWNER" || -z "$GIT_REPO_NAME" ]]; then echo Must set GIT_REPO_OWNER, GIT_REPO_NAME exit 1 fi BRANCH=$1 # Configure these for your build XCODE_WORKSPACE=${GIT_REPO_NAME}.xcworkspace XCODE_TEST_SCH...
true
2506c946fd076669bdffdd27a1498660d29b7e12
Shell
bradyhouse/house
/fiddles/bash/fiddle-0055-InstallScrapy/script.sh
UTF-8
537
3.640625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash clear; echo "$0" | sed 's/\.\///g' | awk '{print toupper($0)}' echo "Bash version ${BASH_VERSION}..." function isPip3Installed() { if [[ $(which pip3;) ]] then echo 0 else echo -1 fi } function installpip3() { if [[ ! $(isPip3Installed) ]] then sudo...
true
50c9bfc3c2721f6a1a2c9dd4e05778fbeae7c7b2
Shell
elhad/cstup
/menu
UTF-8
10,816
3.40625
3
[]
no_license
#!/bin/bash myip=`ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0' | head -n1`; myint=`ifconfig | grep -B1 "inet addr:$myip" | head -n1 | awk '{print $1}'`; flag=0 echo function create_user() { useradd -M $uname echo "$uname:$pass" | chpasswd usermod -e $...
true
b2dde124ea398fe9f0b4cdd9823deafed71623e2
Shell
shizonic/packages
/mail/emailrelay/files/emailrelay.init
UTF-8
2,133
3.34375
3
[ "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh /etc/rc.common START=90 USE_PROCD=1 PROG=/usr/bin/emailrelay NAME=emailrelay emailrelay_instance() { local enabled mode port remote_clients server_tls server_auth extra_cmdline smarthost client_tls client_auth address_verifier domain anonymous config_get_bool enabled "$1" enabled config_get mode "$1" ...
true
98fef49e4ca8832f8a80e6e800c7a600535320ec
Shell
omrisarig13/config
/.bashrc
UTF-8
4,140
2.78125
3
[]
no_license
# # ~/.bashrc # alias mvim="VIMRUNTIME=/usr/share/vim/vim90 /home/omsa/Programs/vim/src/vim" alias vimm="mvim" export VISUAL=mvim export EDITOR="$VISUAL" alias ls="ls --color" alias ll="ls -la --color" alias l="ls -b --color" alias ..="cd ../" alias ...="cd ../../" alias ....="cd ../../../" alias .....="cd ../../../.....
true
5536f087aa2d3ae015611a385d4762bfcb57da42
Shell
widecastlive/nginxffmpeg
/scripts/hls.sh
UTF-8
838
2.546875
3
[]
no_license
#!/bin/sh on_die () { # kill all children pkill -KILL -P $$ } trap 'on_die' TERM cd /opt/data/hls/; ffmpeg -i "rtmp://127.0.0.1:1935/$1/$2" \ -filter_complex "[v:0]scale=1920:-2[vout1];[v:0]scale=1280:-2[vout2];[v:0]scale=320:-2[vout3]" \ -g 25 -sc_threshold 0 \ -map "[vout2]" -c:v:0 libx264 -b:v:0...
true
0a73b23bea9cd606535dd4806cf66d1eb042f898
Shell
adon988/adam-centos-bootstrap
/auto-install-nedrtree.sh
UTF-8
1,003
2.8125
3
[]
no_license
#!bin/bash # NEDRTree i=0 if [ ! -e ~/.vim ]; then echo "mkdir ~/.vim" mkdir ~/.vim ((i++)) else echo "Already exists ~/.vim" fi if [ ! -d ~/.vim/autoload ]; then echo "mkdir ~/.vim/autoload" mkdir ~/.vim/autoload ((i++)) else echo "Already exists ~/.vim/autoload" fi if [ ! -d ~/.vim/bundle ]; then echo "mkdir ~/.v...
true
e76d9ac36f076de578110cea36599716b6d5596f
Shell
CenturyLinkLabs/panamax-coreos
/desktop
UTF-8
22,288
2.875
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
#!/bin/bash BASEBOX_DEFAULT="panamax-coreos-box-681.2.0" BASEBOX_URL_DEFAULT="http://stable.release.core-os.net/amd64-usr/681.2.0/coreos_production_vagrant.box" PMX_IMAGE_TAG_DEFAULT=stable PMX_UI_TAGS="https://index.docker.io/v1/repositories/centurylink/panamax-ui/tags" PMX_API_TAGS="https://index.docker.io/v1/reposi...
true