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
4fb639dff5e669103b7afc923ef0ae3002025f06
Shell
dycw/dotfiles
/htop/aliases.sh
UTF-8
92
2.765625
3
[]
permissive
#!/usr/bin/env bash if [ -x "$(command -v htop)" ]; then alias htopu='htop -u "$USER"' fi
true
99fe8403b8cd8a8a3b08af5c8296f76281d77984
Shell
yut23/homeshick
/test/fixtures/rc-files.sh
UTF-8
1,173
3.25
3
[ "MIT" ]
permissive
#!/bin/bash # shellcheck disable=2164 function fixture_rc_files() { local git_username="Homeshick user" local git_useremail="homeshick@example.com" local rc_files="$REPO_FIXTURES/rc-files" git init "$rc_files" cd "$rc_files" git config user.name "$git_username" git config user.email "$git_useremail" mkdir home...
true
4a292513374c7f749a2eb529e97ae74f62be87e2
Shell
dv-rain/DHL
/scripts/bind_nics.sh
UTF-8
1,701
3.84375
4
[]
no_license
#!/bin/bash # Confirm environment variables if [ -z "$RTE_TARGET" ]; then echo "Please export \$RTE_TARGET" exit 1 fi if [ -z "$RTE_SDK" ]; then echo "Please export \$RTE_SDK" exit 1 fi if [ -z "$DPDK_INSTALL_DIR" ]; then echo "Please export \$DPDK_INSTALL_DIR" exit 1 fi DPDK_DEVBIND=$DPDK_INSTALL...
true
d8f9d97a4cd6e94fd101b0db4020d31dab8be424
Shell
oldweb-today/wine-browsers
/ie4/run.sh
UTF-8
515
2.53125
3
[]
no_license
#!/bin/bash #export WINEDLLOVERRIDES="mshtml=" export WINEPREFIX="/home/browser/.wine" #sudo chown -R browser /home/browser/.wine USER_REG=/home/browser/.wine/user.reg sed -i s/'$DIMENSION'/$SCREEN_WIDTH"x"$SCREEN_HEIGHT/g $USER_REG #wine regedit $USER_REG if [[ -n "$PROXY_HOST" ]]; then sed -i s/'$PROXY_HOST...
true
9d3d31f9b68a79a04091dfa6503d3988c9ae7621
Shell
MartinIngesen/blocklistbuilder
/runner.sh
UTF-8
230
2.546875
3
[]
no_license
#!/bin/bash echo "running builder" echo "===============" sh blocklistbuilder.sh echo "===============" echo "copying over file" cp ./adblock.conf /etc/dnsmasq.d/ echo "restarting dnsmasq" service dnsmasq restart echo "done!"
true
7feb094644cf1ead5ef3f256f21892c04aef5a40
Shell
renyiwu/bioseq
/extract_nrf2_15_CpG.sh
UTF-8
1,165
3.171875
3
[]
no_license
#! /usr/bin/bash # extract raw count for Nrf2 15 CpG sites Species: Mouse # R Wu. Oct 2018 # Usage: bash extract_nrf2_15_CpG.sh combined.csv # replaced combined.csv with the file generated by combined_CpG.py -- a script from the DMRfinder tool set. # A file named Nrf2_15_CpG.csv will be generated after execution of t...
true
43889628c599feff8202bc40e793850b148183d6
Shell
sicz/docker-simple-ca
/rootfs/docker-entrypoint.d/60-server-userdb.sh
UTF-8
749
3.53125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -e ### SERVER_USERDB ############################################################## # Create CA user database if [ ! -e ${SERVER_USERDB_FILE} ]; then info "Adding user ${CA_USER_NAME} to CA user database ${SERVER_USERDB_FILE}" CA_USER_NAME_DIGEST=$(echo -n "${CA_USER_NAME}:${CA_USER_REALM}:${CA_USER_N...
true
537e606a6ecc5bfb85d5eca63acdbdbabc5b7269
Shell
amir-berkani/aur
/pantheon/pantheon-polkit-agent-git/PKGBUILD
UTF-8
784
2.640625
3
[]
no_license
# Maintainer: Maxime Gauduin <alucryd@archlinux.org> pkgname=pantheon-polkit-agent-git pkgver=1.0.0.r1.e9586c5 pkgrel=1 pkgdesc='Pantheon Polkit Agent' arch=(x86_64) url=https://github.com/elementary/pantheon-agent-polkit license=(GPL3) groups=(pantheon-unstable) depends=( glib2 glibc gtk3 libgranite.so polk...
true
5c083bcb42c6ddf0927a2fe68159ca56dcaa5ae2
Shell
petronny/aur3-mirror
/emacs-mediawiki-bzr/PKGBUILD
UTF-8
1,228
2.8125
3
[]
no_license
# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $ # Maintainer: Philanecros Heliostein <philanecros@gmail.com> pkgname=emacs-mediawiki-bzr pkgver=34 pkgrel=3 pkgdesc="Use the power of Emacs to edit MediaWiki sites." url="http://www.emacswiki.org/emacs/MediaWikiMode" arch=('any') license=('GPLv3') depen...
true
dc4c3ace87da576ca21948226d640da8121ecfb5
Shell
rkablukov/onec_download_distr
/download.sh
UTF-8
2,210
3.546875
4
[ "MIT" ]
permissive
#!/bin/bash read -p "login on login.1c.ru:" USERNAME read -p "password:" PASSWORD if [[ -z "$USERNAME" ]];then echo "USERNAME not set" exit 1 fi if [[ -z "$PASSWORD" ]];then echo "PASSWORD not set" exit 1 fi echo "Getting versions, please wait." SRC=$(curl -c /tmp/cookies.txt -s -L https://releases...
true
480186ca8ac384b2f565d0cbb559270387e4a281
Shell
SpiderOak/CS
/Log_Retrieval_Bash_Script_One_Mac.command
UTF-8
400
3.109375
3
[]
no_license
#! /bin/bash echo Creating Folder for Logs... cd ~/Desktop mkdir SpiderOak_One_Log_Files echo Now Gathering Logs... cd ~/Library/Application\ Support/SpiderOakONE cp *.log ~/Desktop/SpiderOak_One_Log_Files echo Log Retrieval Complete - Compressing cd ~/Desktop zip -r SpiderOak_One_Log_Files.zip SpiderOak_One_Log_Files...
true
7e744e10caefcc945b703b2f1b856b48f7a79c46
Shell
Alexpux/MINGW-packages
/mingw-w64-python-wheel/PKGBUILD
UTF-8
1,159
2.59375
3
[ "BSD-3-Clause" ]
permissive
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net> _pyname=wheel _realname=${_pyname} pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") replaces=("${MING...
true
e9e242620f34bedf083b3a9dd870f1d0319a3448
Shell
davidbeermann/dotdotdot
/scripts/get_insomnia.sh
UTF-8
646
3.328125
3
[]
no_license
echo "Install Insomnia" echo "More info: https://insomnia.rest/" echo "---------------------------------" # https://stackoverflow.com/a/26759734 if ! [ -x "$(command -v wget)" ]; then echo 'Error: wget is not installed.' >&2 exit 1 fi # https://support.insomnia.rest/article/23-installation#linux echo "1. Adding D...
true
752a4a69a3a417315549ff48cf49c0e52c39d1cb
Shell
mfsalama/lab-work
/exercise-6/ebird_summarizer.sh
UTF-8
426
3.09375
3
[]
no_license
#! /bin/bash # the next line will create a new file called formatted_eBird_data.csv # with all \rs replaced with \ns. #cat $1 | tr "\r" "\n" > formatted_$1 #Step 1: eeb177-student@eeb177-VirtualBox:~/Desktop/eeb-177/lab-work/exercise-6$ replace_newlines.sh eBird_data.csv #Step 2: eeb177-student@eeb177-VirtualBox:~/De...
true
adc8a3bd428c8be6cf808485d48e04fe83905f9f
Shell
dsmic/oakfoam
/build-linux.sh
UTF-8
1,995
3.5
4
[ "FSFAP", "BSD-2-Clause", "BSD-3-Clause" ]
permissive
#!/bin/bash # Boost for compiling 32-bit binaries on 64-bit: # ./bootstrap.sh # ./b2 link=static address-model=32 stage set -eu function boost-static { sed -i 's/^\(oakfoam_LDADD =\) \(.*\) \($(HOARD_LIB).*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic -pthread \3/' Makefile } VER=`cat config.h | sed -n 's/.*PACKAGE_VER...
true
2c48ca49324e825005c7eefc2dc0fc973d2d2040
Shell
jeffknupp/crunchy-containers
/bin/install-deps.sh
UTF-8
2,438
2.578125
3
[ "Apache-2.0" ]
permissive
# # next set is only for setting up enterprise crunchy postgres repo # not required if you build on centos # sudo mkdir /opt/crunchy sudo cp $BUILDBASE/conf/crunchypg95.repo /etc/yum.repos.d sudo cp $BUILDBASE/conf/CRUNCHY* /opt/crunchy sudo yum -y install postgresql95-server sudo yum -y install net-tools bind-utils...
true
c763bd40cd6d51ec237ace4295bbc559be2b0557
Shell
dockstore/dockstore-documentation
/add-discourse-topic.sh
UTF-8
4,345
3.890625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Copyright 2022 OICR and UCSC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
true
daeaff359f8ac7863e9fa753e13cce91e3f242a4
Shell
colindean/hejmo
/scripts/routes
UTF-8
184
3.171875
3
[]
no_license
#!/bin/sh case "$(uname -s)" in Linux) ip route ;; Darwin) netstat -rn ;; *) echo "$0 doesn't know how to look up routes on $(uname -s)…" >&2 ;; esac
true
0177aa9dacc75011b730f0f169a1ed23cededf33
Shell
atul2512/dgraph
/contrib/load-test.sh
UTF-8
338
3.109375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e # Simple end to end test run for all commits. bash contrib/simple-e2e.sh $1 # We run the assigner and the loader only when a commit is made on master/release # branches. if [[ $TRAVIS_BRANCH =~ master|release\/ ]] && [ $TRAVIS_EVENT_TYPE = "push" ] ; then bash contrib/loader.sh $1 bash contrib...
true
ce865061f31558580765134a7111d7391ad9044f
Shell
msys2/MINGW-packages
/mingw-w64-libaec/PKGBUILD
UTF-8
1,885
2.890625
3
[ "BSD-3-Clause" ]
permissive
# Maintainer: Miloš Komarčević <miloskomarcevic@aim.com> _realname=libaec pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" pkgver=1.0.6 pkgrel=2 pkgdesc="Adaptive Entropy Coding library (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url...
true
e6527e230f17f66150927e1f2e35827a7b4e6023
Shell
X3vikan/DarkMessages
/layout/DEBIAN/postinst
UTF-8
232
3
3
[]
no_license
#!/bin/bash # Delete old user preferences if they exist PREFSFILE=/private/var/mobile/Library/Preferences/com.sticktron.darkmessages.plist if [[ -f "$PREFSFILE" ]]; then rm -f $PREFSFILE echo "Removed old prefs" fi exit 0
true
176ada596badb555439e78ead70efe7305a8da20
Shell
cehparitosh/Shell-Scripting
/directly_read
UTF-8
145
2.765625
3
[]
no_license
#!/bin/bash read -p 'Hello! What's Your Name ' NAME read -sp 'What's Your Password: ' PASS echo "My Name is $NAME" echo "My Password is $PASS"
true
56ccaf25bd7cc28e3d4827e0095e390f7063bf3a
Shell
honkiko/test-vpc-vs-vxlan
/bw-lat/run-bw-lat-test.sh
UTF-8
817
2.75
3
[]
no_license
rounds=$1 internal=$2 VPC_LOCAL_NS=6512 VPC_REMOTE_IP='10.0.1.11' VXLAN_LOCAL_NS=18172 VXLAN_REMOTE_IP='192.168.24.2' REMOTE_NODE_IP='172.31.0.5' n=0; while [[ $n -lt $rounds ]]; do nsenter -t $VPC_LOCAL_NS -n qperf $VPC_REMOTE_IP -oo msg_size:64:64K:*2 -vu -vvc tcp_bw tcp_lat > vpc-c2c-$n.raw sleep 1 nsenter -t ...
true
37b0901bc6f7a9a6ebb557bf989e487233736998
Shell
sinkingpoint/plex-server
/bootstrap-salt.sh
UTF-8
999
2.8125
3
[]
no_license
#!/bin/bash curl -L https://bootstrap.saltstack.com -o bootstrap_salt.sh sudo sh bootstrap_salt.sh rm bootstrap_salt.sh sudo tee /etc/salt/minion << EOF file_client: local file_roots: base: - /srv/salt - /srv/formulas/docker-formula-master - /srv/files EOF sudo systemctl restart salt-minion # Init sta...
true
aa50770e7e03165a6b3b3dcfed1bb76d70b23423
Shell
syfchao/quick-start-app
/proto/service/compile.sh
UTF-8
633
3.234375
3
[]
no_license
#!/bin/bash echo $# if [ $# -lt 1 ] then echo $0 xxx.proto exit -1 fi filename=$1 dir=`basename $1 .proto` echo $filename $dir ../../build/bin/codegen -f $filename -o $dir succ=`echo $?` if [ $succ -ne 0 ] then echo "failed to gen code" exit 1 fi cp $dir/gen_proto/gen_$filename . cp ../idl/blink.proto . echo $...
true
5a46f4f14100dbf87f2d0747210515db14007029
Shell
inducer/thesis-experiments
/hedge/poisson/run-benchmark.sh
UTF-8
492
2.625
3
[]
no_license
#! /bin/sh set -e rm-vis SUM_FILE=run-summary.txt rm -f $SUM_FILE for o in `seq 1 9`; do for where in "" "--cpu"; do for prec in "" "--single --tol=1e-4"; do echo "-------------------------------------------------" echo "ORDER $o $where $prec" echo "-------------------------------------------...
true
3d7cf741182dd8022240061efb12d88fe0865fb9
Shell
Babar/EternalTCP
/launcher/ET
UTF-8
533
3.265625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash SSH_COMMAND=$1 HOSTNAME=$2 PORT=$3 SERVER_BINARY="ETServer" CLIENT_BINARY="ETClient" PASSWORD_GENERATOR="env LC_CTYPE=C tr -dc \"a-zA-Z0-9\" < /dev/urandom | head -c 32" SSH_PASSWORD_COMMAND=" export PASSWD=\`$PASSWORD_GENERATOR\` && echo PASSWORD:\$PASSWD && $SERVER_BINARY --v=9 --alsologtostderr --passk...
true
fe43f6b4aec35c128ae626b20dabf22f8f92b561
Shell
TonyLCC/MAIKF
/GetWhitelistofProcess/getPids.sh
UTF-8
735
2.78125
3
[]
no_license
echo "Pid of xrdp is : \c" && pidof xrdp echo "Pid of xrdp-sesman is : \c" && pidof xrdp-sesman echo "Pid of Xvnc is : \c" && pidof Xvnc echo "Pid of vsftpd is : \c" && pidof vsftpd pidof xrdp > tracePidList.txt pidof xrdp-sesman >> tracePidList.txt #pidof Xvnc >> tracePidList.txt pidof vsftpd >...
true
db8c6807f6df3891ea82dad39580b295a57d4d85
Shell
Avis20/sandbox
/log_level.sh
UTF-8
477
3.921875
4
[]
no_license
#!/usr/bin/env bash if [ -z "$LOG_LEVEL" ]; then LOG_LEVEL=1; fi # echo "$LOG_LEVEL" function log_msg { level=$1 msg=$2 if [ $level -le $LOG_LEVEL ]; then case $level in 0) level_text="Error" ;; 1) level_text="Warning" ;; 2) level_text="Info" ;; 3) ...
true
e394be7274ff0b1425339506259048ed1f880da7
Shell
dwdraju/docker-user
/entrypoint.sh
UTF-8
443
3.6875
4
[]
no_license
#!/bin/bash set -u # Create new group and user with provided ID and NAME if it does not exist id -g 1000 > /dev/null 2>&1; if [ $? = 1 ]; then echo "Create group with id: 1000" groupadd --gid $GROUP_ID $USERNAME fi id -u 1000 > /dev/null 2>&1; if [ $? = 1 ]; then echo "Create user with id: $USER_ID and $USERNAME"...
true
025ba5144d0a77e7ed33389d6638c223ffb91597
Shell
georgevarghese8815/DataScience---DataQuest
/Command-Line-Beginner/Challenge_ Working with the Command Line-185.sh
UTF-8
453
2.890625
3
[]
no_license
## 1. Command Line Python ## ~$ pwd .. ## 2. Creating a script ## ~$ echo -e 'import sys \nif __name__ = "__main__":\n print(sys.argv[1])' > script.py ## 3. Change file permissions ## ~$ chmod 700 script.p ## 4. Create a virtualenv ## ~$ source script/bin/activate ript ## 5. Move the script ## (script) ~$ mv s...
true
d44b92edbf692916bbe8a4a7bb86da4f8527f56a
Shell
whchoi98/useful-shell
/Node_IP.sh
UTF-8
1,587
2.5625
3
[]
no_license
#!/bin/bash read -p "Enter ng_public01 ip address: " ng_public01 read -p "Enter ng_public02 ip address: " ng_public02 read -p "Enter ng_public03 ip address: " ng_public03 read -p "Enter ng_private01 ip address: " ng_private01 read -p "Enter ng_private02 ip address: " ng_private02 read -p "Enter ng_private03 ip address...
true
11e1ab90bcf98ae7620d0efeebeb4b0cd81db352
Shell
giovannidiana/Information
/R-plot/FigureS2_paper/prepare_centrals.sh
UTF-8
450
2.59375
3
[]
no_license
#!/bin/bash DIR=/home/diana/workspace/Analysis/Information for GT in QL196 QL404 QL402 QL435 do outfile=$GT"_kNN_group0.dat" $DIR/CCap3D $GT kNN 3NN 30 0 > $DIR/"inpdf_"$GT".dat" cat $DIR/inpdf_$GT".dat" > $DIR/"inpdf.dat" $DIR/GetMI3D $GT 0 kNN 3NN 30 > $outfile $DIR/GetMI1D $GT 1 k...
true
ee9bbc43b35bcf1c1cc6ff26255444b4bb747463
Shell
lcdwiki/LCD-show-ubuntu
/system_backup.sh
UTF-8
2,826
3.0625
3
[]
no_license
#!/bin/bash if [ ! -d "./.system_backup" ]; then sudo mkdir ./.system_backup fi sudo rm -rf ./.system_backup/* if [ -f /etc/X11/xorg.conf.d/99-calibration.conf ]; then sudo cp -rf /etc/X11/xorg.conf.d/99-calibration.conf ./.system_backup sudo rm -rf /etc/X11/xorg.conf.d/99-calibration.conf fi if [ -f /etc/X11/xorg.c...
true
095f318f5c8a219ae6d7285d96755d62d0fb23e0
Shell
ikeikeikeike/exantenna
/prod-do
UTF-8
4,568
3.390625
3
[]
no_license
#!/bin/bash -eu VERSION=`cat VERSION` USER=`cat USER` BUILDING=`cat BUILDING` PRODUCTION=`cat PRODUCTION` INNER1=`cat INNER1` deploy() { build download $VERSION upload upgrade $VERSION } version() { echo $VERSION } fixversion() { hg commit -m "fix version $VERSION" mix.exs VERSION hg pus...
true
fe479647a9f3df26f69ff770b2f90f3e067e93c4
Shell
datomusic/csv-timestamper
/listserials
UTF-8
476
3.75
4
[]
no_license
#!/bin/bash echo "Listserials 0.9.1" shopt -s nullglob csvfiles=([0-9].csv) echo "The following serial number csv's are present" ls *.csv | sed 's/.csv//' echo echo "Total number of files: ${#csvfiles[@]}" #ls -1q *.csv | wc -l echo while true; do read -p "Do you wish to move these files to the entered directo...
true
f0a1356d5cfb143c5d764e001ae9cfedd7d8d9bf
Shell
bymavis/3-Phish-Page-Detection
/install.sh
UTF-8
1,187
3.625
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/bash echo "check your python and pip version first" python3 --version pip3 --version echo "Install dependences" echo "Install tesseract OCR, package name:tesseract or tesseract-OCR" #https://github.com/tesseract-ocr/tesseract/wiki sudo apt-get update sudo apt-get install tesseract-ocr echo "Your installed ...
true
7c5ced5dfeb5d0f73b23ad5a878e8b80b9faa9c0
Shell
memes/home
/bin/go_refresh.sh
UTF-8
1,363
3.359375
3
[ "MIT" ]
permissive
#!/bin/sh # # Install common go packages to local library set -e command -v local_lib_path >/dev/null 2>/dev/null || . ~/.profile.d/functions/local_lib_path _GOPATH=$(local_lib_path go) mkdir -p ${_GOPATH} ECHO="$(which echo)" || "echo" # Install/update packages awk '!/^($|#)/ {print}' <<EOF | # Format of list # # pa...
true
1131fe8227b780577961060a0e3198313e87172e
Shell
omega-icl/mcpp
/src/3rdparty/cpplapack-2015.05.11-1/benchmark/do
UTF-8
870
3.328125
3
[]
no_license
#!/bin/sh rootdir=`pwd` MAKEFILE=$HOME/local/cpplapack/makefiles/Makefile for i in `find * -type d | grep -v .svn`; do if [ -d $i ]; then echo "################ Enter into $i/ ################" cd $i if [ -f SUCCEEDED ]; then echo "======== Skipping cause already succeeded ====...
true
b3c67b40f64dc7bbbcf6b8ca801a185e32ef7446
Shell
lianfeng30/work-scripts
/script/check_eth_traffic.sh
UTF-8
2,209
3.765625
4
[]
no_license
#!/bin/sh ################################################### # # Type : Performance Monitor Plugin # Function : net traffic monitor # Usage : ./check_eth_traffic.sh # Creator : Date : # Modifier : Date : # ###########################################...
true
73747b246fc2181c905f8f2f82f2730de612d5f4
Shell
andrewDDC/HomeConfig
/scripts/pmicrorun
UTF-8
750
2.890625
3
[]
no_license
#!/bin/sh export ARCHSTRING=" " MOREARGS=" " SIM_PATH=/local/ssd/dev/arch/bin/sim REV="--core V60A_512" if [[ "$1" == *cache* ]]; then export ARCHSTRING=:"$ARCHSTRING --cachedebugfile cache.log" fi if [[ "$1" == *debug* ]]; then SIM_BIN="gdb --args $SIM_PATH" elif [[ "$1" == *valgrind* ]]; then SIM_BIN="valg...
true
7dbcbfc4ae6bf0a76cf58c4e4fe2a036d3eb050f
Shell
rafalsz98/PwsL
/LAB7/script.sh
UTF-8
122
2.546875
3
[]
no_license
#!/usr/bin/bash x=0 sleepTime=$1 while [ -$x -eq 0 ]; do ./cmake-build-debug/kill cw1_p1_v1 sleep "${sleepTime}" done
true
8133579a8e6ca5e6e254cacec42c334acc26003d
Shell
demorenoc/setup
/setup.sh
UTF-8
4,377
2.890625
3
[]
no_license
# Usual update/upgrade sudo apt-get update sudo apt-get upgrade # Set the Ubunutu RELEASE and CODENAME CODENAME=$(lsb_release -c -s) RELEASE=$(lsb_release -r -s | cut -f1 -d.) # Add some repos ## Canonical partners sudo sed -i "/^# deb .*partner/ s/^# //" /etc/apt/sources.list ## R - CRAN. See: https://cran.r-proj...
true
3913740832b6aa45f6e544c7e5acbe27873451f7
Shell
jbw/dotfiles
/install_configs.sh
UTF-8
2,069
3.765625
4
[]
no_license
#! /bin/bash { set -euo pipefail # Lifted from https://github.com/kalbasit/shabka/blob/8f6ba74a9670cc3aad384abb53698f9d4cea9233/os-specific/darwin/setup.sh#L22 sudo_prompt() { echo "Please enter your password for sudo authentication" sudo -k sudo echo "sudo authentication successful!" while true;...
true
5bef50ba6632da3841c89b222fa5f068519d4d3a
Shell
kmgreen2/local-systems
/old/ethereum/start_miner.sh
UTF-8
680
3.46875
3
[]
no_license
#!/bin/bash set -e ETH_BOOT_NODE="" NUM_TRIES=0 while [[ -z $ETH_BOOT_NODE ]]; do ETH_BOOT_NODE=`curl http://ethereum-boot.ethereum.svc.cluster.local:80` if (( NUM_TRIES > 3 )); then echo "Could not connect to the bootstrap server: ethereum-boot.ethereum.svc.cluster.local:80" exit 1 fi ...
true
1ddf0f178badb37a8eebe4addeadf61d7d48b132
Shell
stephenshizl/scripts
/install/server/init.sh
UTF-8
763
2.875
3
[]
no_license
#!/bin/sh #update first yum update -y bit=`getconf LONG_BIT` #file descriptor limits echo "* soft nofile 655360" >> /etc/security/limits.conf echo "* hard nofile 655360" >> /etc/security/limits.conf if [ $bit == 32 ]; then echo "session required /lib/security/pam_limits.so" >> /etc/pam.d/login else echo "ses...
true
b346140a2f09541baeb0f4f40d9bfe531dc51850
Shell
sashraja/nightwatch-docker-grid
/bin/test
UTF-8
546
3.6875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Starts nightwatch execution of all specs. # # See the 'nightwatch' service config in docker-compose.yml to see which script # the container runs. set -e container=nightwatch_grid_results function cleanup() { exit_code=$? docker cp $container:/home/docker/app/tests_output . docker rm -fv...
true
39fc5d742df8ceeda2169a35e3b3d5c7e5f2d7a6
Shell
felipegerard/metodos-analiticos
/process/txt_2_json.sh
UTF-8
911
2.65625
3
[]
no_license
#! /bin/bash tr -d '\r' \ | tr '\n' '|' \ | sed -e 's/||/ <br> <br> /g' \ -e 's/|/ <br> /g' \ | sed -E -e 's/ <br> <br> ([A-Z]+;? )/||\1/g' \ | tr '|' '\n' \ | grep -E "^[A-Z]+;?" \ | sed -e 's/\./<punto>/g' \ -e 's/,/<coma>/g' \ -e 's/:/<dos_puntos>/g' \ -e 's/;/<punto_coma>/g' \ -e 's/\...
true
506fa9e7dec27c15d5b4b660d2340d5e3c95564c
Shell
fr34k8/prowler
/checks/check_extra7152
UTF-8
2,561
3.3125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Prowler - the handy cloud security tool (copyright 2019) by Toni de la Fuente # # 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...
true
0bccbca8d0f45e9ef87c41dec0a3a452c5a88e72
Shell
marios/tripleo-ci
/scripts/te-broker/destroy-env
UTF-8
2,893
3.734375
4
[]
no_license
#!/bin/bash set -xe ENVNUM=${1:-$(date +%s)} PROVISIONNET=provision-${ENVNUM} PUBLICNET=public-${ENVNUM} ENVFILE=env-${ENVNUM}-base.yaml COMPUTE_ENVFILE=env-${ENVNUM}-compute.yaml EXTRA_ENVFILE=env-${ENVNUM}-extra.yaml rm -f /opt/stack/openstack-virtual-baremetal/$ENVFILE rm -f /opt/stack/openstack-virtual-baremetal/...
true
3624f6e9cca28b4d8ba6dd36d2b70c30b30d6e14
Shell
DataDog/dd-trace-java
/.circleci/collect_reports.sh
UTF-8
2,188
4.15625
4
[ "Apache-2.0", "UPL-1.0", "MIT", "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash # Save all important reports into (project-root)/reports # This folder will be saved by circleci and available after test runs. set -e #Enable '**' support shopt -s globstar REPORTS_DIR=./reports MOVE=false DELETE=false while [[ $# -gt 0 ]]; do case $1 in --destination) REPORTS_DIR="...
true
8be7c337dba86619d8928fa090ee746020b5724c
Shell
ChrisCummins/t4
/Documentation/mkxml.sh
UTF-8
3,706
3.984375
4
[ "MIT-0", "MIT" ]
permissive
#!/bin/bash # mkxml.sh - run `./mkxml.sh --help` for usage information. export_prefix="dnl EXPORT" print_usage() { echo "Usage: $(basename $0) <xml> <m4-file ...>" echo "" echo "Generate a file <xml> containing an xml tree of the" echo "set of m4 input files <m4-file ...>." } to_xml() { echo -e "...
true
8b5d80ee04991a47abd86fe3bf8431a0b02a323c
Shell
larsks/openldap
/contrib/slapd-modules/datamorph/tests/scripts/test001-config
UTF-8
6,361
2.921875
3
[ "OLDAP-2.8", "LicenseRef-scancode-proprietary-license", "BSD-4.3RENO", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-free-unknown" ]
permissive
#! /bin/sh ## $OpenLDAP$ ## This work is part of OpenLDAP Software <http://www.openldap.org/>. ## ## Copyright 2016-2022 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without ## modification, are permitted only as authorized by the OpenLDAP ## Public L...
true
ff019fd56b1747cbfd28214d19d6eee2de2634e5
Shell
mrhmouse/dots
/.bin/e
UTF-8
234
3.125
3
[]
no_license
#!/usr/bin/env rc pgrep emacs || emacs --daemon if (~ $1 -) { shift buffer=`{mktemp} { cat > $buffer emacsclient -c $buffer $* cat $buffer rm $buffer >/dev/null >[2=1] } return } else { emacsclient -c $* }
true
36ba6ecc44169b55ee3815c546671c2fbcd812f2
Shell
finiteautomata/PLN-UBA2018
/eval.sh
UTF-8
260
2.5625
3
[]
no_license
#! /bin/sh #! /bin/sh echo "| Modelo | |" echo "|------------------|:----------------------|" for model in models/*.pkl; do sent=`python languagemodeling/scripts/eval.py -i $model` echo "|$model | $sent |" done
true
57b26afe9eba78fd9851a4b45dcb57b335c6e367
Shell
naevatec/openvidu-fiware-integration
/fiware-integration/build-pre.sh
UTF-8
699
3.28125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash echo "PRE_BUILD - INIT" rm -rf ./src/main/resources/static/ mkdir -p ./src/main/resources/static/ cp -r ./src/frontend/* ./src/main/resources/static/ echo "PRE_BUILD - resources copied to resources/static" sed -i '' -e 's/spring\.resources\.static-locations/# spring\.resources\.static-locations/g' ./src/m...
true
8e39231404c52b7d89a62db4acafaebf9a0aac92
Shell
olneyhymn/reformed-diaconate
/archive_pdfs.sh
UTF-8
289
3.171875
3
[ "Unlicense" ]
permissive
for url in $(ag --markdown "\"ht.*.pdf" --nofilename --nobreak | cut -d'=' -f2,3,4,5,6); do url="${url%\"}" url="${url#\"}" echo $url outFile=$(echo "$url" | cut -d / -f 5- | tr / _) cd "$HOME/repos/reformed-diaconate/static/pdfs/archive" && curl -o $outFile $url done
true
e8719b975ce2bd1011d86cccf08fdaf2916e154b
Shell
Korvinet/Hass.io
/testing/run.sh
UTF-8
220
2.75
3
[ "MIT" ]
permissive
echo 'Starting plugin...' echo 'Starting testing...' CONFIG_PATH=/data/options.json echo "Config path: $CONFIG_PATH" echo 'Getting variable host...' HOST="$(jq --raw-output '.host' $CONFIG_PATH)" echo "Host value: $HOST"
true
ad784914296c23b0af1b4c812e21bdf46cc257cd
Shell
get-ready/get-ready
/get-ready.sh
UTF-8
828
3.90625
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e SLASHED_PREFIX="get-ready$(pwd)" UPPER_PREFIX=${SLASHED_PREFIX//\//__} PREFIX=$(echo $UPPER_PREFIX | tr '[:upper:]' '[:lower:]') IMAGE_NAME=${PREFIX}__image CONTAINER_NAME=${PREFIX}__container RUNNING_CONTAINERS=$(docker ps) if [ "$1" == "stop" ]; then docker stop $CONTAINER_NAME ...
true
42b34ee3235f4fe6a8ef3b951cd800ea55580e12
Shell
floscr/minimal-dotfiles
/home/.bashrc
UTF-8
624
2.828125
3
[]
no_license
# If not running interactively, don't do anything [ -z "$PS1" ] && return # Enable VI mode set -o vi # ReEnable CTRL-L as clearscreen bind -m vi-insert "\C-l":clear-screen # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize PS1='\[\033[01;32m\...
true
bec6ec8bc73f2f587249461fe79d5e1d7c58d7f4
Shell
dwxie/salt
/state/base/files/update_center_web.sh
UTF-8
4,752
3.421875
3
[]
no_license
#!/bin/bash if [ $# -ne 1 ];then echo -e "Usage:\n\t$0 \"path_to_index_web\"" exit 12 else center_src_path="$1" fi echo -e "This script is only used to update center_web not for first init install center_web" read -p "Sure you know ? [y/n]: " co8 if [ "$co8" == "yes" -o "$co8" == "" -o "$co8" == "y" ];t...
true
75d9c35dc6bc7d2a73af743a26d3d927a219cb6e
Shell
rsuite/rsuite
/docs/script.sh
UTF-8
144
2.75
3
[ "MIT" ]
permissive
#!/bin/bash if [[ "$BRANCH" == "next" || "$BRANCH" == "staging" ]]; then # Proceed with the build exit 1 else # Don't build exit 0 fi
true
57d5cfa16edfbbd8138e3d4e3b0e59b354dd7ba0
Shell
bkmgit/mlpack.org
/irc/scripts/regen-html.sh
UTF-8
1,506
4.28125
4
[ "MIT" ]
permissive
#!/bin/bash # regen-html.sh <irssi-logdir> <output-html-dir> # # A ridiculous bash script to regenerate HTML IRC log files. This is really # getting close to the wrongest way to run a public logging system. I kinda # like it because it's so terrible. # # This expects that header.html and footer.html are in # output-h...
true
91214d2e7e4d9b85b993ce25e9019b81af3596c0
Shell
k8scenario/k8scenario
/scripts/switch_context.sh
UTF-8
906
3.953125
4
[ "MIT" ]
permissive
#!/bin/bash SAVED=~/.k8scenario.saved.context # USAGE: switch_context.sh # - if current context is 'k8scenario' AND file $SAVED (above) is present, put back the saved context # - else # - create k8scenario context using namespace k8scenario (assumes KIND cluster) # - set context to k8scenario use_k8scenario_con...
true
f3512ea55d9d9635b9984a9299aa56da96da150a
Shell
renzhenghang/FATE
/cluster-deploy/scripts/packaging.sh
UTF-8
7,731
2.890625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Copyright 2019 The FATE Authors. 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 requ...
true
2009a80777caa65e04ef3d488752779b66d0a7c6
Shell
technologiclee/gnulinux_support
/GNULinux/Archlinux/PKGBUILDs/hybris-device-sony-nozomi/generate-android-users.sh
UTF-8
2,313
3.703125
4
[]
no_license
#!/bin/bash usage (){ cat << EOF Usage for $0 : $0 <android product output> <android product output> : Path to Android product output folder (eg: /home/aosp/out/target/product/nozomi) EOF } die () { echo "ERROR: ${1-UNKNOWN}"; exit 1; } if [ $# -ne 1 ]; then usage exit 1 fi CONFIG_...
true
4ad8031edf66185c1cf0c32dd8f4a9e0edd1f3b6
Shell
msDekova/Linux-Shell
/FMI/Shell/task16.sh
UTF-8
624
3.8125
4
[]
no_license
#!/bin/bash if [ $# -ne 3 ] then echo "Invalid number of arguments" exit 1 fi if [ ! -f ${1} ] then echo "First argument must be regular file" exit 2 fi FILE=$1 STRING1=$2 STRING2=$3 TERM1=$(cat ${FILE} | grep "${STRING1}=" | cut -d '=' -f2 | tr ' ' '\n' | sort | uniq | sed 1d ) TERM2=$(cat ${FILE} | grep "${S...
true
f3e9c5c5c2083e6630595776fa534e6c34c966bc
Shell
vkutas/DevOps-home-tasks
/task1/whose.sh
UTF-8
1,868
4.03125
4
[]
no_license
EXAMPLE_OF_USAGE="Example of usage: 'whose.sh firefox' or 'whose.sh 1287'. See README.md for more details."; PROCESS="$1"; shift; while [ -n "${1}" ]; do case "$1" in -v ) OUTPUT_DATA='/Organization\|Country/p'; n=2;; -vv ) OUTPUT_DATA='/Organization\|Country\|City/p'; n=3;; -...
true
739e4f2fe4c0a9b44d21054d745c88cbdd6d4266
Shell
Ramkumar47/arch_linux_configuration
/i3-gaps/i3/brightctl.sh
UTF-8
1,031
3.796875
4
[]
no_license
#!/usr/bin/zsh # brightness control for i3 # developed by ramkumar ####################################################################### # NOTE: for bash terminal, this script will not work and # # throw errors like "invalid arithmetic operator ...". This is # # due to the fact that the bash doent hande...
true
9b73e45b56acde4c7d09dcb42e6b886746b2eeaa
Shell
darkroam/dotfiles
/.config/x11/xprofile
UTF-8
2,155
3.203125
3
[]
no_license
#!/bin/sh # This file runs when a DM logs you into a graphical session. # If you use startx/xinit like a Chad, this file will also be sourced. # This file's true location is in ~/.config/xprofile and a link exists to it in # ~/.xprofile. If you do not use a DM, you may remove the link to it to have a # cleaner home. ...
true
b3c90d4e192fc4b67194c0ba410ae9328bbc1466
Shell
rrshah/nodeman
/metrics/available_bandwidth.sh
UTF-8
445
3.578125
4
[]
no_license
#Gets the interface IP Address #echo $1 /sbin/ifconfig $1 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}' INTERVAL="1" # update interval in seconds IF=$1 while true do R1=`cat /sys/class/net/$1/statistics/rx_bytes` sleep $INTERVAL R2=`cat /sys/class/net/$1/statistics/rx_byt...
true
fb77bf1f205fe53742a3734e6ad0b8dfc2d02805
Shell
aponsero/functional_annotation_parralel
/scripts/run_phanotate.sh
UTF-8
770
3.3125
3
[ "MIT" ]
permissive
#!/bin/bash #PBS -l select=1:ncpus=16:mem=6gb #PBS -l walltime=01:00:00 #PBS -l place=free:shared conda activate bio HOST=`hostname` LOG="$STDOUT_DIR/${HOST}.log" ERRORLOG="$STDERR_DIR/${HOST}.log" if [ ! -f "$LOG" ] ; then touch "$LOG" fi echo "Started `date`">>"$LOG" echo "Host `hostname`">>"$LOG" SAMPLE=`h...
true
d58db61e84baf8c7588c3ceb31366e3bf79240dc
Shell
kevindang88/edu
/cs260/sample-scripts/todebug
UTF-8
196
3.234375
3
[]
no_license
#!/bin/sh # Sript name: todebug name="Joe Blow" if [ "$name" = "Joe Blow" ] then echo "Hi $name" fi num=1 while [ $num -lt 5 ] do num=`expr $num + 1` done echo The grand total is $num
true
9cd8204f6082e1988713530494d6ace48d948f51
Shell
illingwo/sam-web-client
/release.sh
UTF-8
369
3.328125
3
[ "BSD-3-Clause" ]
permissive
#! /bin/bash version=${1:?Need to specify release version} # check upd is available type -t upd > /dev/null || { echo "upd is not available"; exit 1; } git tag -a -m "Release $version" $version || exit 1 make dist || exit 1 upd addproduct sam_web_client -T dist.tar.gz -m ups/sam_web_client.table -0 $version # Try...
true
bb98bd339e00931326b3e8a6deebe0139e883f37
Shell
devnull-cz/c-prog-lang
/getting-credits/2021/tests/test-005.sh
UTF-8
859
3.828125
4
[]
no_license
#/bin/bash # # Listing test with specific file arguments. Follow the same ordering in argv # as in the archive for the files from the archive. Put a few non-existent # files in the argument list. Those are expected to be printed to stderr after # all present files were listed. source $configvar cd $tmpdir first=$(...
true
10ba3c3c15802b402a8261620ab85474e18052c8
Shell
ilventu/aur-mirror
/ies4linux/PKGBUILD
UTF-8
1,588
2.90625
3
[]
no_license
# Maintainer: Limao Luo <luolimao+AUR@gmail.com> # Contributor: Jarek Sedlacek <jareksedlacek@gmail.com> pkgname=ies4linux pkgver=2.99.0.1 pkgrel=5 pkgdesc="The simpler way to run Microsoft Internet Explorer on Wine" arch=(any) url=http://www.tatanka.com.br/ies4linux/page/Main_Page license=(GPL) depends=(cabextract py...
true
502c67d57152b90aa5cfbcc87d6fd44776fc84b6
Shell
DataDog/integrations-core
/.ddev/ci/scripts/ibm_ace/linux/55_install_client.sh
UTF-8
1,331
3.515625
4
[ "BSD-3-Clause", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0" ]
permissive
#!/bin/bash # This script installs IBM MQ development version on the CI machines to be able to # * Compile pymqi image # * Run integration tests on the machine set -ex TMP_DIR=/tmp/mq MQ_URL=https://ddintegrations.blob.core.windows.net/ibm-mq/mqadv_dev90_linux_x86-64.tar.gz MQ_PACKAGES="MQSeriesRuntime-*.rpm MQSerie...
true
abec8bab6452f8da7c0cce76b884b0c10e6832cb
Shell
jo-m/wortprotokolle
/run_nogpu.sh
UTF-8
278
3.34375
3
[ "MIT" ]
permissive
#!/bin/bash run="$1" [ -z "$1" ] && run='train.py' if [ "$run" = 'repl' ]; then run='' fi if [ -x "$HOME/anaconda/bin/python" ]; then "$HOME/anaconda/bin/python" $run else python $run fi if [ $? -eq 0 ]; then say 'run succeeded' else say 'run failed' fi
true
eae56dd1d774142cb54e2e4577dffc585e85cc7e
Shell
unisparks/unisparks
/extras/scripts/setup-arduino.sh
UTF-8
852
3.421875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ARDUINO_DIST=https://downloads.arduino.cc/arduino-1.8.5-linux64.tar.xz UNISPARKS_HOME="${UNISPARKS_HOME:-$(dirname $(dirname $(dirname "$0")))}" set -e apt-get update apt-get install -y zip curl xz-utils build-essential default-jre python echo "Installing Arduino" mkdir -p /opt && curl -s ${ARDUINO_DIST} ...
true
d28725fa5782ab1d15e0a50948ecc2ecf4eb8b5a
Shell
jonco3/mozutils
/bin/copyPatches
UTF-8
1,687
4.15625
4
[]
no_license
#!/bin/bash set -euo pipefail SOURCE=~/work DEST=~/shared/patches HOSTALIAS=~/.hostalias VERBOSE= if [[ ! -d $SOURCE ]]; then echo "Can't find source dir: $SOURCE" exit 1 fi if [[ ! -d $DEST ]]; then echo "Can't find dest dir: $DEST" exit 1 fi if [[ ! -f $HOSTALIAS ]]; then echo "Can't find hos...
true
bc214eed6dd77c301c2feafc545f1282956ffeeb
Shell
valdoonicanlives/config-files-backup
/scripts/dmenu-scripts/new-ones/dmenu2-menu
UTF-8
1,589
3.5625
4
[]
no_license
#!/bin/sh # Define your battery device. Look up in '/sys/class/power_supply/' for a directory named 'BAT0' ( it also can be 'BAT1 or something else ) #device='BAT1' #battery="$(cat /sys/class/power_supply/$device/capacity)%" # Volume Status for alsa users #volume="$(amixer get Master | tail -1 | sed 's/.*\[\([0-9]*%\...
true
7a860e3164ea07070274d8d385baaf84dd246742
Shell
ulno/ulnoiot
/examples/scripts/ulnoiot
UTF-8
318
2.96875
3
[ "MIT" ]
permissive
#!/bin/bash # Example script for starting ulnoiot # Modify ULNOIOT_ROOT accordingly to your setup # # If you run in termux, apply termux-fix shebang onto this script # if this should run as root make sure to fix $HOME like this: # HOME=/home/pi export ULNOIOT_ROOT="$HOME/ulnoiot" exec bash "$ULNOIOT_ROOT/run" "$@"
true
48b9a8c0e1b581ea880c3884a54a401cfe77ab45
Shell
gittygitgit/bash-sandbox
/bash_scripting_guide_exercises/easy/primes.sh
UTF-8
557
4.0625
4
[]
no_license
#!/usr/bin/env sh # Print (to stdout) all prime numbers between 60000 and 63000. The output should be nicely formatted in columns (hint: use printf). :<< X Prime number is divisible by 1 and itself X i=60000 function check_prime() { num=$1 newnum=$(( $num-1 )) j=1 while [ $(( j*j )) -lt $newnum ]; do (...
true
56736ef10efb582b8fe149e17781af95697a8861
Shell
tapaswenipathak/linux-kernel-stats
/scripts/dma.sh
UTF-8
2,084
3.28125
3
[ "MIT" ]
permissive
#!/bin/bash # Obtains git logs files for DMA driver and its related keywords, for different linux kernel versions. # Contributor: patelmadhu06@gmail.com cd ~/kbd myArray=("dma_pool_alloc" "dma_pool_free" "dma_pool_destroy" "dma_pool_create" "dma_map_*" "dma_addr_t" "dma_set_mask_and_coherent" "dma_set_mask" "dma_se...
true
6c060f770d806effad7ad15ac70783009cd12f99
Shell
godali/terraform-raspberrypi-bootstrap
/k8s_prep.sh
UTF-8
1,213
2.984375
3
[ "MIT" ]
permissive
#!/bin/sh # This installs the base instructions up to the point of joining / creating a cluster # Based off of https://gist.github.com/alexellis/fdbc90de7691a1b9edb545c17da2d975#gistcomment-2228114 echo Adding " cgroup_enable=cpuset cgroup_memory=1" to /boot/cmdline.txt sudo cp /boot/cmdline.txt /boot/cmdline_backup...
true
71a4f92b939510229cfa06eac50b0f5967f99b5c
Shell
seiji/docker-images
/redis-cluster/docker-entrypoint.sh
UTF-8
1,031
3.796875
4
[]
no_license
#!/bin/sh if [ "$1" = 'redis-cluster' ]; then sysctl -w vm.overcommit_memory=1 echo never > /sys/kernel/mm/transparent_hugepage/enabled echo 511 > /proc/sys/net/core/somaxconn # Allow passing in cluster IP by argument or environmental variable IP="${2:-$IP}" max_port=7002 for port in `seq 7000 $max_por...
true
d97896848dbd6271f905f4b7080bd1ad43337aee
Shell
jasonracey/audio-file-scripts
/scripts/iso-to-dsf.sh
UTF-8
165
2.515625
3
[ "MIT" ]
permissive
#! /bin/sh find . -name '*.iso' -exec sh -c 'cp -n sacd_extract "$(dirname "${1}")"' _ {} \; find . -name '*.iso' -execdir sh -c './sacd_extract -s -i"$1"' _ {} \;
true
d7bb2843108338a69f1ef014c9b481a6ff16bcbe
Shell
mariusroets/scripts
/bin/vpn
UTF-8
463
3.359375
3
[]
no_license
#!/bin/bash vpnpid=`pidof openconnect` group="Eskom" server="ssl" if [ "$1" == "status" ]; then if [ -n "$vpnpid" ]; then echo "VPN is running with pid $vpnpid" else echo "VPN is not running" fi exit 0 elif [ "$1" == "vpn" ]; then group="ESKOM-SECURE-VPN" server="vpn" fi if [ -n...
true
0224f8a9ac9e0ff6c57687f3d0230c821b9b5ef5
Shell
illepic/downfall-guild
/project/scripts/drupalvm.sh
UTF-8
459
2.625
3
[]
no_license
#!/usr/bin/env bash # Assuming starting from root cd drupal-vm git checkout tags/3.1.2 # Change me to update # Symlink `config.yml` and `drupal.make.yml` from `config/` into `drupal-vm/` ln -sf ../config/config.yml ln -sf ../config/drupal.composer.json # DELETE the D8 folder and kick off Vagrant. echo "You'll proba...
true
e1b059a7acfeed5085eb8f3ea7b650525d0ddf38
Shell
y-mory/dotfiles
/bk/settings_export.sh
UTF-8
245
2.6875
3
[]
no_license
# 当該ファイルのパスを取得 this_dir=$(cd $(dirname path); pwd) # bundleファイルを作成(上書き) brew bundle dump --force > ${this_dir} # vscodeエクステンション出力 code --list-extensions > ${this_dir}/extensions
true
486c01b9e4e2695e89e3785d76e0cfc358ee9626
Shell
walkes/forego
/bin/release
UTF-8
1,257
3.609375
4
[ "Apache-2.0" ]
permissive
#!/bin/sh set -eu alias errcho='>&2 echo' cleanup () { # cleanup rm -rf release_response upload_response } version=v0.16.9 release_creation_status=$(curl \ --header "Authorization: Bearer ${GITHUB_API_KEY}" \ --header "Content-Type: application/json" \ -w "%{http_code}\n" --output release_respons...
true
9eb2ae6fce0d9cc191e0f987b8f122d836419986
Shell
elifarley/shell-lib
/lib/file.sh
UTF-8
2,420
4.125
4
[ "MIT" ]
permissive
some_file() { local base="$1"; shift; find -H "$base" ! -path "$base" "$@" -print -quit; } dir_full() { local base="$1"; shift; test "$(cd "$base" &>/dev/null && find -H . -maxdepth 1 ! -path . "$@" -print -quit)"; } dir_not_empty() { test "$(\ls -A "$@" 2>/dev/null)" ;} # -empty: not supported in BusyBox v1.29.3 d...
true
67ed4284952b775a84757a99439023cfbf626967
Shell
mtintstfc/desktop-scripts
/power-source/udev-power-source.sh
UTF-8
1,394
3.71875
4
[]
no_license
#!/bin/bash source "$(dirname $0)/shared.sh" #### # Configuration #### SOUND_POWERSAVE_BATTERY=1 SOUND_POWERSAVE_AC=0 WIFI_IFNAME="wlp4s0" WIFI_POWERSAVE_BATTERY="on" WIFI_POWERSAVE_AC="off" # ondemand Dynamically switch between CPU(s) available if at 95% cpu load # performance Run the cpu at max frequency ...
true
0c8b822d908f15590f1eefffd4bb933d06b52dbb
Shell
kitpages/docker-glusterfs
/bin/start_volume.sh
UTF-8
340
3.09375
3
[ "MIT" ]
permissive
#!/bin/bash source $(dirname $0)/common.sh PARAMETER_LIST=`for i in "${GLUSTER_PEER_BASH_ARRAY[@]}"; do echo -n "${i}:${GLUSTER_BRICK_PATH} ";done ` echo "PARAMETER_LIST = ${PARAMETER_LIST}" gluster volume info gv0 if [ $? -ne 0 ]; then gluster volume create gv0 replica ${GLUSTER_REPLICA} ${PARAMETER_LIST} fi glust...
true
41615217c44a4dcc63e459a67c01f3a07d2ce3da
Shell
couchbase/perfrunner
/scripts/upload_info.sh
UTF-8
456
2.734375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash +x for FILE in *.zip; do [ -f "$FILE" ] || continue env/bin/aws s3 cp --quiet ${FILE} s3://perf-artifacts/${BUILD_TAG}/${FILE} echo "https://s3-us-west-2.amazonaws.com/perf-artifacts/${BUILD_TAG}/${FILE}" done for FILE in *.prof; do [ -f "$FILE" ] || continue env/bin/aws s3 cp --quiet ...
true
9b13bbdb80c1f41067fdb51db2f5fb52201a938d
Shell
dva-re/docker-minidlna
/start.sh
UTF-8
254
2.8125
3
[]
no_license
#!/bin/bash # if minidlna config file doesnt exist then copy default to host config volume if [ ! -f "/config/minidlna.conf" ]; then # copy over customised config cp /etc/minidlna.conf /config/ fi /etc/init.d/minidlna force-reload tail -f /dev/null
true
642cd02ddd380dd99626c8741b38da69cc007cd6
Shell
yults/OS_labs
/lab2/7.sh
UTF-8
969
3.171875
3
[]
no_license
#!/bin/bash for x in $(ps -Ao pid,command | tail -n +2 | awk '{print $1":"$2}') do pid=$(echo $x | awk -F ":" '{print $1}') commmand=$(echo $x | awk -F ":" '{print $2}') if [ -f "/proc/"$pid/io ] then rbytes=$(sudo grep -h "read_bytes:" "/proc/"$pid/io | sed "s/[^0-9]*//") echo "$pid $cmd $rbytes" fi done | sort -nk1 >...
true
24cece501366c350967e0aad95dc4f3ddb684aea
Shell
jakobant/lxc-dc
/roles/lxc/files/lxcmon.sh
UTF-8
716
2.71875
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # mon to graphite... # Simple mon GSERVER="127.0.0.1" GPORT="2003" MM=/tmp/stuff X=/tmp/x DD=`date +%s` PRE="stats" rm $MM for a in `lxc-ls` do lxc-info -H --name $a > $X NAME=`cat $X|grep Name|awk '{print $2}'` CPU=`cat $X|grep CPU|awk '{print $3}'` IOPS=`cat $X|grep BlkIO|awk '{print $3}'` MEM=`cat $X|...
true
63fe0508901c8c5ca8567e03b98ab27208043dfe
Shell
vhalbert/teiid-operator
/build/bin/user_setup
UTF-8
198
2.578125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh set -x chmod ug+rwx ${HOME} # runtime user will need to be able to self-insert in /etc/passwd chmod g=u /etc/passwd # no need for this script to remain in the image after running rm $0
true
cac4f15c8777ccdb0fbe8242ff0c4a34fcbee2bb
Shell
shwetha-mc/Data-Integration
/DB/Oracle/oracle_exporter.sh
UTF-8
1,079
3.390625
3
[]
no_license
#!/bin/bash arch=$(arch) if [ $arch == "x86_64" ] then sqlcmd="sqlplus64" else sqlcmd="sqlplus" fi if [ $# -ge 4 ] then if [ -t 0 ] then filename=$1 user=$2 pass=$3 host=$4 service=$5 loc=$6 tablename=$7 else read filename user pw host service loc tablename fi if [ $loc == "nolocal"...
true