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
7fb200d53f6a124c35a29468e831e8edbf041a19
Shell
i3ef0xh4ck/ShellRepository
/shell/spring-boot-server/serverDeploy.sh
UTF-8
1,374
3.46875
3
[]
no_license
#!/bin/bash source /etc/profile # sh -x serverDeploy.sh test.jar 8099 # 第一:首相对旧服务进行检测关闭操作 命令行第一参数:xxx.jar SERVICE=$1 PORT=$2 echo $SERVICE PID=`ps -ef | grep "$SERVICE" | grep java | grep -v "$0" | grep -v "grep" | awk '{print $2}'` # 如果启动了多个同名服务,需要使用for循环处理 for id in $PID do done if [ "$PID"x != ""x ] then kill -9 $...
true
9e62d6dcadf43bb298bcf63ed6337b3fc55c7325
Shell
orangekoi/ilr-website
/bin/sync-prod
UTF-8
490
2.625
3
[]
no_license
#!/bin/bash # check running from docroot CURRENT_DIR=${PWD##*/} if [ ! "$CURRENT_DIR" = "docroot" ]; then echo 'Please be sure that you are running this command from the docroot.' exit 2 fi drush sql-drop -y # download the acquia dev db drush sql-sync @ilr-d7.master @self --sanitize --sanitize-password=password ...
true
ec6a96177aecce24d3aafc30d58ced997c8e2073
Shell
guildenstern70/SmartDjango
/run.sh
UTF-8
753
2.84375
3
[ "MIT" ]
permissive
#!/bin/bash # # SmartDjango Python Project # # Copyright (c) 2021-23 Alessio Saltarin # This software is distributed under MIT License. # See LICENSE. # # if [ -z "${DJANGO_SUPERUSER_USERNAME}" ]; then export DJANGO_SUPERUSER_USERNAME='admin' export DJANGO_SUPERUSER_PASSWORD='admin' export DJANGO_SUPERUSER_...
true
bb981ce086931a841f0e19bdc1b09786daddb6e8
Shell
aravind-vasudevan/sdc
/scripts/plotRatio.sh
UTF-8
283
3.015625
3
[]
no_license
#!/bin/bash outputFileName="tutu" echo " " > $outputFileName for fileName in $1/*.log do `grep -i SDC/HEFT $fileName >> $outputFileName` done #while read line #do # runConfig=`awk -F '=' '{print $1}'` # ratio=`awk -F '=' '{print $2}'` # echo $runConfig.$ratio #done < $fileName
true
65eb5aefe39dcc82b74db201bb408a395f7f50e2
Shell
insidiousmeme/fisheye
/fisheye_webservice/util/prepare_apache.sh
UTF-8
561
2.84375
3
[]
no_license
#!/bin/bash set -e ln -sf /mnt/fisheye_webservice/ /var/www/html/ chown apache:apache /var/www/html/fisheye_webservice -R chown apache:apache /mnt/fisheye_webservice -R # check that httpd.conf doesn't contain setup for fishey_webservice if ! grep -q "fisheye_webservice" /etc/httpd/conf/httpd.conf; then cat /var/www...
true
f8a26a2b9d3b15ba92769df33ce7eeefb6982a5e
Shell
xueshell/grep-for-filenames
/functions.sh
UTF-8
288
3.546875
4
[]
no_license
#!/bin/bash function flatListFilesFrom() { find $1 -type f -printf '%f\n' } function listFilesFrom() { find $1 -type f } function listNotFoundByBasename() { for line in $1 do grep -r `basename $line` $2 > /dev/null [ $? -eq 1 ] && echo $line done }
true
ebaa44842a36d5c311f18a14c3253a4e4b3f62c5
Shell
urmyfaith/sinstallation
/preferences/displays.sh
UTF-8
553
3.109375
3
[]
no_license
################################################################################ # Displays ################################################################################ # Toggle Whether Brightness is Automatically Adjusted Depending on Ambient Light function osx_displays_aut...
true
719aec30ccd1defe430ad9a0837f4403494af978
Shell
youtube/cobalt
/third_party/skia/infra/skqp/run_skqp.sh
UTF-8
1,106
3.28125
3
[ "BSD-3-Clause", "GPL-1.0-or-later", "LGPL-2.0-or-later", "Apache-2.0", "MIT" ]
permissive
#!/bin/bash # Copyright 2018 Google LLC # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Assumes this is in a docker container with a skia repo mounted at /SRC and a folder containing the # built APK to be in /OUT. # Additionally, this assumes that the docker c...
true
84acaec1d6bb3a356747cdf4a04ffe7e5f930829
Shell
gridcoin-community/Gridcoin-Research
/src/bdb53/lang/sql/odbc/mkall.sh
UTF-8
784
3.484375
3
[ "MIT", "LicenseRef-scancode-newlib-historical", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause", "Sleepycat" ]
permissive
#!/bin/sh # # Build everything for Win32/Win64 rm -rf dist mkdir dist exec >mkall.log 2>&1 set -x if test -r VERSION ; then VER32=$(tr -d '.' <VERSION) VER=$(cat VERSION) else VER32="0" VER="0.0" fi if test $(arch) = "x86_64" ; then CC32="gcc -m32" SH32="linux32 sh" else CC32=gcc SH32=...
true
a8ecd0d2fbbdf8d0d4d709545f0837a938b93a3f
Shell
LokdeepSaluja/intelliJ-ce-idea
/run.sh
UTF-8
3,515
3.546875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # First build a docker container that will create the host # machines's current $USER in the container in order for data # to be persistent when container is terminated docker build --build-arg USER=$USER -t mvpjava/intellij-ide:latest . # Create IntelliJ directories used as Docker bind mount volumes on...
true
1b1cc0832e09ca10a478b301131588b6d02321b1
Shell
EfraimKrug/BeisChayim
/ShellScripts/getUSB.sh
UTF-8
887
3.0625
3
[]
no_license
CODE_DIRECTORY=bcCode PIC_DIR=$HOME/$CODE_DIRECTORY/BeisChayim/img PDF_DIR=$HOME/$CODE_DIRECTORY/BeisChayim/pdf jsFile=$HOME/$CODE_DIRECTORY/BeisChayim/js/db01.js ################################################### # Notice: travel flash drive # Must have a directory: .BeisChayim/.LABEL # The contents of that .LABEL mu...
true
211180b2d5ec27fae3f82395ced0c20381df6935
Shell
mattlukac/alpha-inference
/scripts/bed_to_vcf2.sbatch
UTF-8
994
3.15625
3
[]
no_license
#!/bin/bash #SBATCH --account=kernlab #SBATCH --partition=kern #SBATCH --nodes=1 #SBATCH --job-name=bed2vcf #SBATCH --time 2:00:00 #SBATCH --mem-per-cpu=8G #SBATCH --ntasks=1 #SBATCH --cpus-per-task=1 #SBATCH --mail-type=ALL #SBATCH --mail-user=mlukac@uoregon.edu # now that the unmapped sites have been removed, # we u...
true
9a4a3b196d5dddcbcb8688dbd54624507fe3a401
Shell
ExLibrisGroup/Rosetta.ClamAVVirusCheckPlugin
/src/bin/clamAVscan.sh
UTF-8
716
3.6875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/sh CLAMSCAN=clamscan SCANOPTS="--stdout --no-summary" STATUS=255 CONTENT="ERROR" AGENT="REG_SA_VC_CLAMAV" TARGET=$1 EchoAndExit() { echo STATUS=${STATUS} echo CONTENT=${CONTENT} echo AGENT=${AGENT} exit ${STATUS} } # Check is file exist if [ ! -f ${TARGET} ] then CONTENT="File not found" EchoAnd...
true
7576fa48770279948ef1b4a77fc1993f1cabd514
Shell
kunle12/docker-ros-indigo-pr2
/assets/etc/profile.d/ros-setup.sh
UTF-8
205
2.515625
3
[ "BSD-2-Clause" ]
permissive
if [ ! -z "$BASH" ]; then . /opt/ros/${ROS_DISTRO}/setup.bash . /home/pr2/dev/catkin_ws/devel/setup.bash else . /opt/ros/${ROS_DISTRO}/setup.sh . /home/pr2/dev/catkin_ws/devel/setup.sh fi
true
8a5b6d09be71d12fa8578b70ff232f2447dcc1cc
Shell
enhancedlearningmapsopensource/Materials
/elm-admin-scripts/set_contact.sh
UTF-8
1,190
3.984375
4
[]
no_license
#!/bin/bash # Written by Mark Thompson (Agile Technology Solutions) # for ELM Modern Copy administration #DB_SERVER=localhost ELM_DB_USER=elm_debug_user ELM_DB_NAME=elm_release CONFIG_TABLE=ELM_CONFIG CONTACT_KEY=CONTACT_EMAIL if [[ $# -ne 1 ]]; then USAGE_ERROR=TRUE else USAGE_ERROR=FALSE EMAIL=$1 fi if [[ $...
true
f73328153de802b90a0b86588849929afb0560c8
Shell
guidanoli/cptk
/libexec/base/run
UTF-8
427
3.625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # # Summary: Run source code # # Usage: libexec/base/run [<flags>] # Exit on error set -e # Make call to path path=$(libexec/base/path) # Save flags export FLAGS=$@ # If program exists, if [[ -f $path ]] then # Save working directory export WD=$(dirname "$path") # then make subcall libexec/...
true
ed9950bae111b221bc973ffd3b9193da76ce99f4
Shell
Vman45/nautilus-script
/scripts/unarchive & convmv to utf8
UTF-8
246
2.953125
3
[ "MIT" ]
permissive
#!/bin/bash # Unarchive selected archives and convmv the entries from GBK to UTF8 # Usage: unarchive path dir_script="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "$dir_script/func-unarchive-and-convmv.sh" unarchive_and_convmv "$@"
true
502975580d228556e685132ee0c290f47b2f7628
Shell
htcondor/htcondor
/src/condor_scripts/common-cloud-attributes-aws.sh
UTF-8
745
2.953125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash TOKEN=`curl -X PUT "http://169.254.169.254/latest/api/token" -v -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"` while read common specific; do value=`curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/${specific}` echo ${common}=\"${value}\" done << EOF Image a...
true
21fdad51160e34c19ecc61c535176a0c0d7fd959
Shell
chunkhang/dotfiles
/scripts/yabai/desktop/label
UTF-8
547
3.40625
3
[ "Unlicense" ]
permissive
#!/bin/sh current_space=$(yabai -m query --spaces | jq '.[] | select(.focused == 1)') current_index=$(echo "$current_space" | jq '.index') current_label=$(echo "$current_space" | jq --raw-output '.label') osascript_output=$( osascript <<EOF display dialog "Enter a new name for Space ${current_index}:" \ with title ...
true
3c7553cd861509f2f44b2020a4816e61691c5007
Shell
maxrd2/arch-repo
/packages/mingw-libs/mingw-w64-dav1d/PKGBUILD
UTF-8
1,805
2.796875
3
[]
no_license
# Maintainer: Karl-Felix Glatzer <karl[dot]glatzer[at]gmx[dot]de> # Contributor: Daniel Bermond < gmail-com: danielbermond > pkgname=mingw-w64-dav1d pkgver=0.7.0 pkgrel=1 pkgdesc='AV1 cross-platform decoder focused on speed and correctness (mingw-w64)' arch=('i686' 'x86_64') url='https://code.videolan.org/videolan/dav...
true
090f9cfa7a81175cbc15e5f576a7e0eea92e40d3
Shell
wdicarlo/wdc-do-commands
/fs/do-fs-change-files-extension
UTF-8
298
3.328125
3
[]
no_license
#!/usr/bin/env bash if [ ! $# == 2 ]; then cmd=`basename $0` echo "Usage: $cmd <curr-ext> <new-ext>" exit fi find . -maxdepth 1 -name "*.$1" | sed -e "s/\.$1//" | xargs -I@ basename @ find . -maxdepth 1 -name "*.$1" | sed -e "s/\.$1//" | xargs -I@ basename @ | xargs -I@ mv @.$1 @.$2
true
ab482c5d68e864d90103edf48c13ae34af556f60
Shell
mkanenobu/mac_dotfiles
/home/.bashrc
UTF-8
3,994
3.078125
3
[]
no_license
# Fig pre block. Keep at the top of this file. [[ -f "$HOME/.fig/shell/bashrc.pre.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.pre.bash" # .bashrc: executed by bash(1) for non-login shells. # vi: set tabstop=2 softtabstop=2 shiftwidth=2 : # If not running interactively, don't do anything case $- in *i*) ;; ...
true
ac0a51b2e824814e58deb89197d13c8326fc65cb
Shell
bu-ist/bu-traffic-splitter
/tests/scripts/case1.sh
UTF-8
533
3.09375
3
[]
no_license
#!/bin/bash # Container must work fine when DEFAULT_URL, ALTERNATE_URL and ALTERNATE_MASK are set yml="docker-compose.case1.yml" function up() { docker-compose -f $yml up -d --build } function down() { docker-compose -f $yml down } up file1=`curl -sS localhost:3000/file1.txt` if [[ $file1 != "backend1_fil...
true
d7591c5b9c9615ff33720258ce63fe1bdb6c74a8
Shell
dgmccain/COP2341_Valencia
/My Scripts/Project #11 using grep within a directory to search many files/grepOutsideDesiredDirectory.sh
UTF-8
919
3.4375
3
[]
no_license
#!/usr/bin/env bash #****************** #* Project #11 * #* David McCain * #****************** grep -Ri 'coffee' /home/david/Desktop/2015_ACARS #The '*' should be where the directory path is entered, or else the current directory will be used by default. #This means that the best way to utilize this script is to...
true
d9f91030acbf05f672616ef3ab53d73144bc6616
Shell
ggfeng/micro_os
/yodalite/build.sh
UTF-8
3,673
3.71875
4
[]
no_license
#!/bin/bash set -o errexit usage() { cat <<USAGE Usage: bash $0 -p <PRODUCT> -f <IMG_FOLDER> -n <IMG_NAME> [OPTIONS] eg: ./build.sh -p esp32_lyrat -n esp32_lyrat -f esp32_lyrat -r Description: Builds Openwrt for given PRODUCT OPTIONS: -d, --debug Enable debugging - change Debug/release imag...
true
5f3abf46b78cf6c3ca616f8292c6f1eddeac5059
Shell
Desenvolvimento-DGI/Scripts
/envisat/bin/contabiliza_dados_Satelite.sh
UTF-8
1,623
3.515625
4
[]
no_license
#!/bin/bash -x # Script conta o numero de arquivos dentro do L0 para cada satelite # # Autor: Jose Neto # Data: 10/2014 # Diretorios # dir_exe='/home/cdsr/bin' # Diretorio L0 # dir_L0='/L0_' total=0 valor=0 ano_teste='vazio' # verifica o parametro de entrada - satelite # if [ $1 ] then satelite=$1 # verifica qua...
true
529b2703d0ecf805e0cce24af3f83bd9169637ff
Shell
mtalexan/modular-scripts
/newmsdk.sh
UTF-8
5,366
4.1875
4
[]
no_license
#!/bin/bash MSDK_BASEDIR=${HOME}/msdk_code_repos REPO_SSH_URL=git@scm-02.karlstorz.com:VPD-SW/Dev/modularSDK.git REPO_HTTPS_URL=https://scm-02.karlstorz.com/VPD-SW/Dev/modularSDK.git REPO_URL=${REPO_SSH_URL} CMagentaForeground="\\033[35m" CBold="\\033[1m" CNone="\\033[0m" print_usage() { echo "USAGE" echo " ...
true
7544bb499c4f486ce1f6014538517bb770fc4da2
Shell
arendina/linuxfromscratch
/scripts/6.49.Libffi.sh
UTF-8
447
2.671875
3
[]
no_license
#!/bin/bash tarball='libffi-3.2.1.tar.gz' source_dir='libffi-3.2.1' cd /sources tar -xvf $tarball cd $source_dir sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \ -i include/Makefile.in sed -e '/^includedir/ s/=.*$/=@includedir@/' \ -e 's/^Cflags: -I${includedir}/Cflags:/' \ -i libffi.pc.in ./con...
true
92f95ff7e94bf7099e8c17a7ec2c14391fdfe99c
Shell
robotspace/arminix
/drivers/memory/ramdisk/rc
UTF-8
1,279
3.03125
3
[]
no_license
#!/bin/sh set -e /bin/service up /bin/pci -config /etc/drivers.conf /bin/service -c up /bin/floppy -config /etc/drivers.conf -dev /dev/fd0 if [ X`/bin/sysenv bios_wini` = Xyes ] then echo Using bios_wini. /bin/service -c up /bin/bios_wini -dev /dev/c0d0 else /bin/service -c up /bin/at_wini -dev /dev/c0d0 -config /et...
true
ab0bf7c909dcacde159a052c4561ad8e41895d93
Shell
libKriging/libKriging
/.travis-ci/release/python-release.sh
UTF-8
1,376
3.46875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -eo pipefail if [[ "$DEBUG_CI" == "true" ]]; then set -x fi # windows environment requires to load special tools loadenv_sh=".travis-ci/${BUILD_NAME}/loadenv.sh" if [ -e "$loadenv_sh" ]; then . "$loadenv_sh" fi ARCH=$(uname -s) echo "Ready to release from $ARCH" if [ -z "${GIT_TAG}" ]; t...
true
c15fda5001eecc725b591722e6236c0a1d3f2f0c
Shell
frostalf/empirecraft
/compile.sh
UTF-8
950
3.65625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # get base dir regardless of execution location 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/...
true
be82ffb9466629d356a187aa3e7d99382d8ef527
Shell
sherylynn/sh
/win-git/jump.sh
UTF-8
850
3.484375
3
[]
no_license
#!/bin/bash INSTALL_PATH=$HOME/tools BASH_DIR=$INSTALL_PATH/rc TOOLSRC_NAME=jumprc TOOLSRC=$BASH_DIR/${TOOLSRC_NAME} if [[ "$(uname)" == *MINGW* ]]; then BASH_FILE=~/.bash_profile PLATFORM=win elif [[ "$(uname)" == *Linux* ]]; then BASH_FILE=~/.bashrc PLATFORM=Linux elif [[ "$(uname)" == *Darwin* ]]; then BAS...
true
057c70d5cadee540ae8e3e18625723ef2d3abb83
Shell
back9ins/buildpack-loader
/bin/compile
UTF-8
743
3.453125
3
[]
no_license
#!/usr/bin/env bash set -e BUILD_DIR=${1:-} CACHE_DIR=${2:-} ENV_DIR=${3:-} ## # Load the SSH key from the environment. if [ ! -d ~/.ssh ]; then mkdir -p ~/.ssh chmod 700 ~/.ssh fi base64 --decode $ENV_DIR/BUILDPACK_SSH_KEY > ~/.ssh/buildpack_key chmod 400 ~/.ssh/buildpack_key echo -e "Host github.com\n"\ ...
true
557f67733e04c591b5cc6c377ea92bab8c8743a3
Shell
GBruceB/nexsciTAP-1
/make_manylinux.sh
UTF-8
1,948
3.140625
3
[ "BSD-3-Clause" ]
permissive
# /bin/sh # This script is specific to building the 'manylinux' wheels # on a Centos06 platform (in our case under Docker). Things # like python2/python3 and auditwheel are already installed # in the Docker image we ae using. # # In the Docker container, Python 2.7 is installed in # # /opt/python/cp27-cp27m/bin # ...
true
d031996301385b11bb3f9c921d89dca736b3b0ea
Shell
ddelnano/tmux-vim-exit
/exit.tmux
UTF-8
309
3.375
3
[]
no_license
#!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPTS_DIR=$DIR/scripts source $SCRIPTS_DIR/helpers.sh source $SCRIPTS_DIR/exit.sh set_exit_key_binding() { tmux bind-key "$(exit_key_binding)" run-shell -b "$SCRIPTS_DIR/exit.sh" } main() { set_exit_key_binding } main
true
b40f28618bae5a23666bcad9546561bafd5d9917
Shell
themoses/configs
/bash-setup/config-arch.sh
UTF-8
2,400
2.8125
3
[]
no_license
#!/bin/sh # This script is part 2 of bootstrapping an Archlinux installation and will be run after the arch-chroot command. # Part 1 can be found at install-arch.sh # Install tools pacman -Sy reflector --noconfirm reflector --verbose --country 'Germany' -l 200 -p https --sort rate --save /etc/pacman.d/mirrorlist pacm...
true
7478fca3c4dbcbb8a7c9a684f3a4520566bb7f06
Shell
edii/ecommerce
/init.sh
UTF-8
1,015
3.78125
4
[]
no_license
#!/usr/bin/env bash ERR_MSG="" clear while : do if [ "$ERR_MSG" != "" ]; then echo "Error: $ERR_MSG" echo "" fi echo "" echo "Select an option:" echo "1) Clear all cache" echo "2) update schema DB." echo "3) remove db." echo "4) created db." echo "5) load db fixtures." echo "6) Generate b...
true
07029d52d3890966e36aeaa6219ed607fc483517
Shell
dfelleman811/gameon
/bin/init_couchdb.sh
UTF-8
2,579
3.890625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -x ## This is run from inside containers that require couchdb and/or cloudant # Environment variables look like this: # COUCHDB_SERVICE_URL=http://couchdb:5984 # COUCHDB_HOST_AND_PORT=couchdb:5984 # COUCHDB_USER=mapUser # COUCHDB_PASSWORD=myCouchDBSecret # GAMEON_MODE=development # Ensure trailing slash C...
true
2be0a311667e03f9bb5f760cd858b6ab68d779a5
Shell
eventuate-foundation/eventuate-cdc
/scripts/build-and-test-all-database-id-jsonschema.sh
UTF-8
4,290
2.765625
3
[ "Apache-2.0" ]
permissive
#! /bin/bash export TERM=dumb set -e . ./scripts/set-env.sh dockermysql="./gradlew mysqlonlyCompose" dockermariadb="./gradlew mariadbonlyCompose" dockerpostgres="./gradlew postgresonlyCompose" dockermssql="./gradlew mssqlonlyCompose" function testMysql() { ./gradlew :eventuate-local-java-cdc-connector-mysql-binl...
true
aeb914fee0e49b3cccd5e497bf0b3fa056544ef0
Shell
byndcivilization/dotfiles
/config/functions.zsh
UTF-8
28,457
3.90625
4
[ "Vim" ]
permissive
function zsh_stats() { fc -l 1 | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20 } function uninstall_oh_my_zsh() { env ZSH=$ZSH sh $ZSH/tools/uninstall.sh } function upgrade_oh_my_zsh() { env ZSH=$ZSH sh...
true
11783985189782af2d0f7c54c79743db3df22608
Shell
lamkeewei/aa-chunk
/webtest_ajax.sh
UTF-8
435
2.953125
3
[]
no_license
#!/bin/bash if [ ! -f output.csv ]; then rm "output_ajax_$2_chunks.csv" fi phantomas "http://192.168.1.1/ajax_$2.html" --modules=httpTrafficCompleted -R csv > tmp.csv echo "Finished 1..." for i in $(seq 2 $1) do phantomas "http://192.168.1.1/ajax_$2.html" --modules=httpTrafficCompleted -R csv:no-header >> tmp...
true
e0bedd886a8b1e78127a602f9a48e934339bbcf1
Shell
mminer/dotfiles
/bin/ue4log
UTF-8
614
3.890625
4
[]
no_license
#!/usr/bin/env bash # Searches upwards for an Unreal project then opens its most recent log file. while [[ "${PWD}" != "/" ]]; do unreal_project="$(ls *.uproject 2>/dev/null)" if [ -z "${unreal_project}" ]; then cd .. continue fi project_name="$(basename "${unreal_project}" .uproject...
true
fa10a91891137053c86af50281711394d109d1d1
Shell
thoutenbos/pipeline
/templates/Freec.sh.tt
UTF-8
1,204
3.03125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # -*- TT -*- [% INCLUDE ErrorHandling.tt %] [% INCLUDE Logging.tt job_name="Freec" main_step=sample_name log_name="freec.log" %] assert_not_empty "[% sample_path %]" [%- IF control_path %] assert_not_empty "[% control_path %]" [%- END %] PATH=[% opt.SAMTOOLS_PATH %]:$PATH export PATH [% opt.FREE...
true
6f4520c7cb3752143838f147512a323ee69290ce
Shell
samcday/linux-5.8-stuff
/kernel/build.sh
UTF-8
886
2.671875
3
[]
no_license
#!/bin/sh # created by juul set -e objcopy -I ihex -O binary firmware/imx/sdma/sdma-imx50.bin.ihex firmware/imx/sdma/sdma-imx50.bin #make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- imx50_kindle4nt_defconfig make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j 8 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dt...
true
9e29bba5c921b46f332d50ff49527d9fe6c26644
Shell
Dirack/Estudos
/Shell_script/dialog/gauge/simples/find/exemplo.sh
UTF-8
502
3.015625
3
[]
no_license
#!/bin/bash # # exemplo.sh (Shell Script) # # Objetivo: Exemplo simples de barra # de progresso com dialog monitorando o comando find. # # Site: https://dirack.github.io # # Versão 1.0 # # Programador: Rodolfo A C Neves (Dirack) 31/03/2021 # # Email: rodolfo_profissional@hotmail.com # # Licença: GPL-3.0 <https:/...
true
94064a48c5b59a9bc32f540ff0c1f97a996bd0df
Shell
CharlesDDNoble/broncode
/spikes/Docker/current/docker-builds/build_all.sh
UTF-8
249
3.5625
4
[ "MIT" ]
permissive
#!/bin/bash DIR_SUFFIX="broncode" build_image() { cd $1 echo "Building ${1:2}" ./build.sh > /dev/null cd .. } for FILE in ./* do if [ "${FILE:2:8}" == "$DIR_SUFFIX" ] then build_image "$FILE" fi done exit 0
true
d0da298d753e7fc6ab2ad73227579c7bb4788a0c
Shell
shawnmanuel000/MultiAgentFootball
/train_tcp.sh
UTF-8
842
3.578125
4
[]
no_license
models=([0]="ddqn" [1]="ddpg" [2]="ppo", [3]="rand") steps=$1 model=$2 baseport=$3 workers=16 open_terminal() { script=$1 if [[ "$OSTYPE" == "darwin"* ]]; then # Running on mac osascript <<END tell app "Terminal" to do script "cd \"`pwd`\"; $script; exit" END elif [[ "$OSTYPE" == "linux-gnu" ]]; then # Runnin...
true
5b2a2c19ea2fe55b2ba1b73523187bf8f96a5351
Shell
google/oss-fuzz
/projects/monero/build.sh
UTF-8
1,942
2.828125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -eu # Copyright 2020 The Monero Project # # 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 applicable law o...
true
a0a70a1ea5989262ff163dfe7240bd521aeab702
Shell
schmir/blackzim
/build-release
UTF-8
609
3.578125
4
[]
no_license
#! /usr/bin/env bash set -euo pipefail : "${GO:=go}" : "${VERSION:=}" : "${TARGETS:=linux-amd64 linux-arm linux-arm64 freebsd-amd64 openbsd-amd64}" if [[ -z "${VERSION}" ]]; then VERSION=$(git describe --tags --always --abbrev=4 --dirty) fi mkdir -p release/tmp cd release/tmp for osarch in ${TARGETS}; do IFS...
true
946e727e994ce2765f360de18208a9f1bfa1bac5
Shell
zhaozg/sts
/tools/genall
UTF-8
1,987
3.96875
4
[ "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/bash # # genall - write data for all 9 generators under $TOPDIR/__name__/__name__.u8 # # WARNING: Some generators such as Blum-Blum-Shub are very very slow # and will take a very very long time to run! For this reason # we launch the 8 generators in the background. You may tail # the $TOPDIR/*/*.out f...
true
115bd13036e6827cbfc58c680a4fb25369481f4a
Shell
Abdur-rahmaanJ/snakeware
/snakeware/build.sh
UTF-8
3,057
3.59375
4
[ "MIT" ]
permissive
# This script downloads and builds linux and python sources, and outputs # the snakeware structure in the build/ directory. # linux kernel version KERNEL_MAJ=v5.x KERNEL_MIN=5.6.14 # python version PYTHON_VER=3.8.3 # snakeware dirs SNAKEWARE=$PWD SRC=$PWD/src BLD=$PWD/build mkdir -p $SRC mkdir -p $BLD mkdir -p $BL...
true
875c60fc5dd9647e41a9d947f5ba990afd8f5a8e
Shell
guilhemmarchand/TA-nmon
/TA-nmon/bin/nmon2csv.sh
UTF-8
5,892
3.265625
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # set -x # Program name: nmon2csv.sh # Purpose - Frontal script to nmon2csv, will launch Python or Perl script depending on interpreter availability # See nmon2csv.py | nmon2csv.pl # Author - Guilhem Marchand # Disclaimer: this provided "as is". # Date - February 2015 # Guilhem Marchand 2015/07/07, in...
true
fb5517757e475ea651433deaf2834010bf95277b
Shell
cmeid/dots
/custom/index.sh
UTF-8
539
2.5625
3
[ "MIT" ]
permissive
# if you want to hook the installation to other dotfiles-type stuff, you can do it here # install custom terminal mkdir -p $custom/tmp cd $custom/tmp git clone git@github.com:agaridata/laptop-automation.git open laptop-automation/terminal/*.terminal defaults write com.apple.Terminal "Default Window Settings" -string ...
true
f20d3227285f6fd8c59d580f5d5d259daf5af451
Shell
adeelkazmi/bash-examples
/string-search
UTF-8
769
4.28125
4
[]
no_license
#!/bin/bash fullString="This is my full string" echo "fullString=\"$fullString\"" # Function to search for a string SearchForString() { searchString="$1" echo -n "Search for \"${searchString}\": " [[ $fullString == *"${searchString}"* ]] && echo "FOUND" || echo "NOT FOUND" } # Using a loop and a case statement...
true
ba703da621556a29b6c5e36976248954ae617fce
Shell
uhh-lt/kaldi-tuda-de
/s5_r2/local/make_hires_feats_train.sh
UTF-8
874
2.828125
3
[ "Apache-2.0", "CC-BY-4.0", "LicenseRef-scancode-other-permissive", "LGPL-2.0-or-later" ]
permissive
. path.sh . cmd.sh mfccdir=mfcc stage=0 nJobs=8 if [ $stage -le 6 ]; then # Now make MFCC features. #x=tuda_train for x in dev_e test_e; do # for x in dev_a dev_b dev_c dev_d test_a test_b test_c test_d; do utils/copy_data_dir.sh data/$x data/${x}_hires utils/fix_data_dir.sh data/$x # some files f...
true
2d41041ad81437d07bcb956958264434a85a1e06
Shell
problem-frames/openpf
/update.sh
UTF-8
374
2.8125
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash for syntax in ontology problem argument; do #captalise the first letter Syntax=`echo "${syntax:0:1}" | tr "[:lower:]" "[:upper:]"`${syntax:1} trac-admin /home/share/repo/trac/openre attachment remove wiki:Examples/$syntax $Syntax.xtext trac-admin /home/share/repo/trac/openre attachment add wiki:Examples...
true
cffbcc1caaf236c0365f10d582e1f316e962a513
Shell
rackaam/letsencrypt-simple
/startme.sh
UTF-8
153
3.0625
3
[]
no_license
#!/bin/sh set -e OVERRIDE=${OVERRIDE:-} if [ -z "${OVERRIDE}" ] then mkdir -p /var/www/html darkhttpd /var/www/html --port 80 --daemon else "$@" fi
true
503fd7c489e36900e7c1c565c1c706d8d3af5399
Shell
paulburton/Arch-Linux-Repository
/gnome-patched/gnome-vfs/PKGBUILD
UTF-8
1,858
2.578125
3
[]
no_license
# $Id: PKGBUILD 92007 2010-09-28 16:42:58Z ibiru $ # Maintainer: Jan de Groot <jgc@archlinux.org> pkgname=gnome-vfs pkgver=2.24.4 pkgrel=1.1 pkgdesc="The GNOME Virtual File System" arch=(i686 x86_64) license=('LGPL') depends=('fam' 'gconf>=2.32.0' 'bzip2' 'avahi>=0.6.27' 'smbclient>=3.5.5' 'gnome-mime-data>=2.18.0-2' ...
true
816065c5309acf8ce9a55f0f808918ad72d474f5
Shell
rayakakayung/abc
/weekly.sh.bak
UTF-8
1,756
3.484375
3
[]
no_license
#!/bin/bash POOL=Hosting-73 counter=0 vanished=1 log_file="/var/log/backup.log.`date +%a`_weekly" backup_dir="/home /var /etc /usr /lib" backup_location="/backup_on_storage" function TIME(){ DATE=`date +%d%m%y" "%H:%M:%S` echo $DATE } umount -f $backup_location echo "$(TIME) Start Weekly backup" > $log_file ...
true
d32522c078728381697356e7ce84fca7ab8a5427
Shell
liquanzhou/ops_doc
/Service/nexus/CentOS系统中安装Nexus并导入已有的构件库.sh
UTF-8
2,477
3.140625
3
[]
no_license
CentOS系统中安装Nexus并导入已有的构件库 Nexus是Maven仓库管理器,用于搭建一个本地仓库服务器,这样做的主要的好处就是节约网络资源,速度快,开发团队中所有的Maven可以共享这个本地仓库,下载一遍共享使用。另外一个优点就是他为你的组织提供一个搭建构件的地方。本文将介绍如何在CentOS系统中安装配置Nexus,并介绍如何导入已有的构件仓库。 1、 软件 a) 下载Nexus 地址:http://www.sonatype.org/downloads/nexus-2.1.2-bundle.tar.gz b) 如无特殊说明,本文档操作用户为nexus c) nexus默认的管理员用户名密码是:admin/a...
true
3ac6b7fac1381c3c0745c29d288182123f603f2f
Shell
mperdikeas/tools
/emax
UTF-8
2,874
4.25
4
[]
no_license
#!/usr/bin/env bash # TODO: # * check that the answer provided by the user is one of the # possible prompted answers # * maybe change from numeric to letters to allow for more than # 10 servers ME=`basename $0` WHERE_I_LIVE=${BASH_SOURCE[0]/%${ME}/.} COUNTF=${WHERE_I_LIVE}/.emax/count if [ -f ${COUNTF} ]; th...
true
bec96b24bc6b27ee2bfc0b3cf5c8716337e53887
Shell
umeboshi2/paella
/vagrant/salt/roots/salt/debianlive/install-win7-image.sh
UTF-8
1,857
3.453125
3
[]
no_license
#!/bin/bash set -e DRIVE=$1 PARTED=/sbin/parted sudo $PARTED -s $DRIVE "mklabel msdos" sudo $PARTED -s $DRIVE "mkpart primary ntfs 1 200MB" sudo $PARTED -s $DRIVE "set 1 boot on" sudo $PARTED -s $DRIVE "mkpart primary ntfs 200MB -0" sysdevice=${DRIVE}1 windevice=${DRIVE}2 echo "Formatting system partition" sudo /sb...
true
ce3bf68009b5b7ad09d496feb9cc1232bd962ff2
Shell
iskra-vitaly/my-zsh-config
/my/corgi.zsh
UTF-8
215
2.734375
3
[]
no_license
#!/usr/bin/zsh sam=~/projects/sam cor_home=$sam/corgi cor_src=$cor_home/src function corhome { cd $cor_home } function corprj { cd $cor_src } function correm { cd $cor_home/nas/usr/share/corgi-nas }
true
a321a8b0493439ca49e7e8f00ceab0e51b02e65c
Shell
TheStalwart/dotswt
/bin/imgup
UTF-8
363
3.140625
3
[]
no_license
#!/bin/sh if [[ $1 == '-s' ]] then scrot_opts='-s' fi if [[ ! -f $1 ]] then filename='/tmp/imgup-'`whoami`'-'`date +%s`'.png'; scrot $scrot_opts -e $0' $f' $filename; rm $filename; exit fi filemime=`xdg-mime query filetype $1` fileurl=`curl -s -F 'postimg=1' -F filename=@$1\;type=$filemime -w '%{redirect_url}' h...
true
887a946fc5b1c891604f41d741f9935afd7ebb00
Shell
zengjle/animation_demo
/BuildProject/tools/android/mac/sign_apk.sh
UTF-8
567
3.09375
3
[]
no_license
#!/bin/bash project=BuildProject/android/app keystore=$(ls $project/*.keystore) version=$(ls $ANDROID_HOME/build-tools|grep '^\d'|sort -nr|head -1) aliasname=$1 password=$2 apkname=$(ls $project/build/outputs/apk/release/*unsigned.apk) signedname=$(echo $apkname | sed 's/-unsigned//g') jarsigner -digestalg SHA1 -sigalg...
true
5bc2ca3f7a1cd45eb46c3912688accd58403c520
Shell
jgarvin/joe-etc
/bin/update-packages
UTF-8
394
3.8125
4
[]
no_license
#!/bin/sh filter_comments() { sed 's/\(.*\)#\(.*\)/\1/g' "$@" } if uname -a | grep Ubuntu &> /dev/null then # sed invocation removes comments, pounds on their own line # and when they trail after a package name filter_comments $(dirname $0)/../ubuntu-packages | \ xargs sudo apt-get install --assume-yes --quiet ...
true
2a0c0b8e94fc1f829759d401a3a933db22fa0e03
Shell
jonasreinsch/boilermacs
/template.bump_version.sh
UTF-8
481
2.875
3
[]
no_license
#!/bin/bash PLIST_FILE='##CURSOR_POS.plist' version=$(/usr/libexec/PlistBuddy -c 'Print CFBundleVersion' "${PLIST_FILE}") new_version=$(<<< 0.1+"$version" bc) /usr/libexec/PlistBuddy -c "Set CFBundleShortVersionString $new_version" "${PLIST_FILE}" /usr/libexec/PlistBuddy -c "Set CFBundleVersion $new_version" "${PL...
true
0ace6823dcb4ed8a1cbc677b1eff1249196b6c1f
Shell
letrout/docker-linuxbuild
/build_src.sh
UTF-8
2,902
3.625
4
[ "MIT" ]
permissive
#!/bin/bash LINUX_VER=4.16.1 BASE_DIR=/kernel RESULTS_DIR=${BASE_DIR} LINUX_TARBALL=linux-${LINUX_VER}.tar.xz LINUX_SRC_URL=https://cdn.kernel.org/pub/linux/kernel/v4.x/${LINUX_TARBALL} # Files to store output RESULTS_FILE="results_`date +%Y%m%d%H%M%S`.txt" UNTAR_STATS="untar_out.txt" CONFIG_STATS="config_out.txt" CL...
true
818a69eea4afd99729eaed435815fab5e2e0189d
Shell
leandrocprates/projecteste
/aplicacao_poco/batch_portabilidade/branches_3.0/script.sh
UTF-8
142
2.6875
3
[]
no_license
#!/bin/sh dir=$1 echo "diretorio dos arquivos convertidos: $dir" >> /tmp/teste_portabilidade.txt find $dir -name "BDT*" | xargs dos2unix
true
806435187b6b90c9841383df184ad1e4f89d4b37
Shell
bstiles/bin
/overrides/java.old
UTF-8
698
3.828125
4
[]
no_license
#!/bin/bash shopt -s extglob set -o errexit if [ -n "$(cd . 2>&1)" ]; then echo "Can't run ${BASH_SOURCE[0]} from a non-existent directory!" exit 1 fi here=$(cd "${BASH_SOURCE[0]%/*}" && pwd) ENV_FILE=${0##*/}.env pushes=() function push { pushd "$1" > /dev/null pushes=(${pushes[@]} ".") } until [[...
true
ed0f430156c839e14f5e64061907bcd45364ecf2
Shell
ngako/docker-drupal8
/app/conf/add-local-user.sh
UTF-8
358
3.078125
3
[]
no_license
#!/bin/bash # Add local user # Either use the LOCAL_USER_ID if passed in at runtime or # fallback to default user USER_ID=${LOCAL_USER_ID:-9001} USER_NAME=dev echo "create user $USER_NAME with UID $USER_ID" useradd --shell /bin/bash -u $USER_ID -o -c "" -m $USER_NAME # Add ll alias echo "alias ll='ls -al'" >> /home/de...
true
90af8a3673d54390b2de14292b19673ac4e6d3b9
Shell
vorburger/vorburger-dotfiles-bin-etc
/debian-install.sh
UTF-8
992
3.484375
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash set -euxo pipefail # This is Debian specific; see ubuntu-install.sh for Ubuntu specific stuff, and apt-install.sh for stuff that's common to Debian and Ubuntu. if [ $# -ne 1 ]; then echo "Usage: $0 <Debian-Version> (9.0, 10, 11)" echo "E.g. $0 11" exit 1 fi DEBIAN_VERSION=$1 # https:/...
true
39a1f189da305d7ff1711e3b643bba631c86cc9e
Shell
NYCPlanning/docker-geosupport
/patch.sh
UTF-8
559
3.015625
3
[]
no_license
#!/bin/bash if [[ ${PATCH} = 0 ]]; then echo "NO UPAD AVAILABLE YET ..." else echo "YES UPAD IS AVAILABLE linux_upad_tpad_${RELEASE}${PATCH}" mkdir linux_upad_tpad_${RELEASE}${PATCH} && curl -o linux_upad_tpad_${RELEASE}${PATCH}/linux_upad_tpad_${RELEASE}${PATCH}.zip https://s-media.nyc.gov/agencies...
true
3ab78630095a7061a501a14721a9a58158b119d3
Shell
KyrosKrane/bitcoin-classic-installer
/install_classic.sh
UTF-8
7,266
4.1875
4
[]
no_license
#!/bin/bash ################################################################################ # Copyright (c) 2016 George Macoukji (macoukji@gamesnet.org) # License: CC-BY # Licensed under a Creative Commons Attribution 4.0 International License. # See here for more info: http://creativecommons.org/licenses/by/4.0/ ###...
true
7e2229a58596261ba8efd61a714971a147b820b9
Shell
tamos/ValuesInText
/shell_code/join_us_data.sh
UTF-8
1,643
3.109375
3
[]
no_license
# format is # speakermap # speakerid|speech_id|lastname|firstname|chamber|state|gender|party|district|nonvoting # descr # speech_id|chamber|date|number_within_file|speaker|first_name|last_name|state|gender|line_start|line_end|file|char_count|word_count # speeches # speech_id|speech mkdir _tmp # concatenate spea...
true
74c90a3bc4667450d592eaa4322be0d9ca719d92
Shell
horngyih/work-shellscripts
/stop-docker-tomcat.sh
UTF-8
292
3.28125
3
[]
no_license
#!/bin/sh sh /d/work/scripts/shellscripts/container-running.sh tomcat-dev; running=$? if [ $running -eq 0 ] then echo "Tomcat Dev Docker is running"; echo "Stopping..."; docker stop tomcat-dev && docker rm tomcat-dev; exit 0; else echo "Tomcat Dev Docker is not running"; exit -1; fi
true
bc6b0010f5cfeabbfaab70e0025adbcd57403aae
Shell
qdzlug/joyent-gerrit
/bin/crimport
UTF-8
6,384
4.28125
4
[]
no_license
#!/bin/bash # # crimport REPO_GITHUB_ACCOUNT REPO_NAME [GERRIT_USER]: imports the given # repository into gerrit. See the usage message for details. # # # Configuration # # DNS name or IP address of Gerrit server igp_gerrit_host=cr.joyent.us # Group name for Gerrit superusers igp_gerrit_group="Temporary Git Superus...
true
c34045eec5a40660d4368a927e6c05ff7782e32b
Shell
rjungemann/glitcher
/bashrc
UTF-8
339
3.046875
3
[ "MIT" ]
permissive
SCRIPT_PATH="${BASH_SOURCE[0]}"; if([ -h "${SCRIPT_PATH}" ]) then while([ -h "${SCRIPT_PATH}" ]) do SCRIPT_PATH=`readlink "${SCRIPT_PATH}"`; done fi pushd . > /dev/null cd `dirname ${SCRIPT_PATH}` > /dev/null SCRIPT_PATH=`pwd`; popd > /dev/null export PATH=${SCRIPT_PATH}/homebrew/bin:${SCRIPT_PATH}/ffmpegX.app/Conte...
true
59615239d7bbbb5cfb7d10065aee4b2753959e66
Shell
real-dcnet/dcnet-source
/tests/vm_extract.sh
UTF-8
229
2.625
3
[]
no_license
#!/bin/bash TEST_DIRS=("lf5-lf5" "lf5-lf6" "lf5-lf3" "lf5-lf8" "lf5-lf14") for dir in ${TEST_DIRS[@]} do echo $dir for i in $(seq 1 10) do scp "dcnet@128.10.126.57:$dir/run$i/migrate_test_vm.out" "$1/$dir/run$i" done done
true
7477b4e79290a170c6ce54c20a48af15455b15d9
Shell
cluabauti/ISO
/punto12_b.sh
UTF-8
541
3.515625
4
[]
no_license
#!/bin/bash #Realiza un script que le solicite al usuario 2 numeros #los lea de la entrada Standard e imprima la #multiplicacion, suma, resta y cual es la mayor de los numeros leidos if [ $# -eq 2 ]; then echo "Multiplicacion entre $1 y $2:" echo $(($1 * $2)) echo "Suma entre $1 y $2:" echo $(($1 + $2)) echo "Resta e...
true
d82f66170a9769d2a4230b21238b32c306e6d5e4
Shell
SolarAquarion/trizen
/archlinux/PKGBUILD
UTF-8
871
2.546875
3
[]
no_license
# Maintainer: Trizen <echo dHJpemVueEBnbWFpbC5jb20K | base64 -d> pkgname=trizen pkgver=159.643662c pkgrel=1 pkgdesc="Trizen's AUR Package Manager: A lightweight wrapper for AUR." arch=('any') url="https://github.com/trizen/trizen" license=('GPL3'); depends=( 'git' 'diffutils' 'perl>=5.10.0'...
true
f18fdb6f344189cf1fda9a0a1e3e63dbbb54fdf9
Shell
Enryou/ROS_Turtlebot-Encryption
/autostart/autostart.sh
UTF-8
1,061
2.609375
3
[]
no_license
#!/usr/bin/env bash # !/bin/bash LOG_FILE=/home/usr/autostart/logs/log_autostart.txt echo "" >> ${LOG_FILE} echo "" >> ${LOG_FILE} echo "" >> ${LOG_FILE} echo "" >> ${LOG_FILE} echo "#############################################" >> ${LOG_FILE} echo "Running autostart.sh" >> ${LOG_FILE} echo $(date) >> ${LOG_FILE} echo...
true
a8a4a216fbb9b89584431144927a7e5d01202439
Shell
go-po/po
/scripts/reset-rabbit.sh
UTF-8
147
2.703125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh IFS=$'\n' for q in $(docker exec po_mq rabbitmqctl -qs list_queues name); do docker exec po_mq rabbitmqctl delete_queue "${q}" done;
true
cd275dd76b47f9806aed8e2c351ab9afb3120c64
Shell
ETAChalmers/ETA-Hemsida
/publish.sh
UTF-8
305
2.578125
3
[]
no_license
#!/bin/sh echo "Deleting old publication" rm -rf public echo "Generating site" hugo git branch -D deploy git checkout --orphan deploy git rm -r --cached git add -f ./public git mv ./public/* ./ git clean -fd git commit -m "Deploy" git push --force --set-upstream origin deploy git checkout master
true
0d45faf3e88e17c8469c3d6aa9650d7bd2f39dd7
Shell
ixcat/admmk
/bin/mk
UTF-8
503
2.890625
3
[ "ISC" ]
permissive
#! /bin/sh # admmk PMake driver # set make(1) command - # should point to appropriate PMake - # systems explicitly listed are expected to work as defined - # otherwise, we assume the platform make to be incompatible # and explicitly require a 'bmake'. case `uname -s` in "FreeBSD"|"NetBSD"|"DragonFly") ...
true
a3e9c92e384fe4ee0c14d605fd72462fb1bea70b
Shell
stephenmsachs/fv3gfs
/ecf/ecfutils/CROW/model/fv3gfs/jobs/eomg.sh
UTF-8
3,278
2.921875
3
[]
no_license
#! /bin/bash ############################################################### # < next few lines under version control, D O N O T E D I T > # $Date: 2017-10-30 18:48:54 +0000 (Mon, 30 Oct 2017) $ # $Revision: 98721 $ # $Author: fanglin.yang@noaa.gov $ # $Id: eomg.sh 98721 2017-10-30 18:48:54Z fanglin.yang@noaa.gov $ #...
true
447b4d24b5fdf612f16f609a97c4c0ebc9580a0f
Shell
BerryJimK/MachineWolf
/ops/awk_example.sh
UTF-8
901
2.6875
3
[ "MIT" ]
permissive
awk '{ gsub(/AAAA/,"BBBB"); print $0 }' t.txt awk 替换后写入文件awk的sub/gsub函数用来替换字符串 1 sub(/regexp/, replacement, target) 注意第三个参数target,如果忽略则使用$0作为参数,即整行文本。 例子1:替换单个串 只把每行的第一个AAAA替换为BBBB 1 awk '{ sub(/AAAA/,"BBBB"); print $0 }' t.txt 例子2:替换所有的串 把每一行的所有AAAA替换为BBBB 1 awk '{ gsub(/AAAA/,"BBBB"...
true
4fc4f4b7462dc357594f316219633b9277cdc6e2
Shell
bridgecrew-perf7/jumpinchat-deploy
/nginx/conf/site.conf.sh
UTF-8
5,004
2.828125
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash EXTERNAL_IP=`curl -s icanhazip.com` if [[ $ENV == 'local' ]]; then LOC_STREAM=$(cat <<EOF location /janus/stream { resolver 127.0.0.1 valid=30s; proxy_pass http://streamtest/; proxy_redirect default; proxy_http_version 1.1; proxy_set_header Upgrade \$http_upgrade; proxy_set_header Conn...
true
29cfbc1419adcd6e638e78c626d3eb7eb0e640b6
Shell
amerinero/Scripts
/SolarisGetInfo.sh
UTF-8
5,161
3.359375
3
[]
no_license
#!/usr/bin/bash FECHA=`date +%H%M%S-%d%m%Y` HOST=`hostname` FILEOUT=SolarisGetInfo_${HOST}_${FECHA}.txt echo "*******************************************************************" >> $FILEOUT echo "*** DISCOS ***" >> $FILEOUT echo "*******************************************************************" >> $FILEOUT echo "-...
true
c8b6e0faf996c881b14c974d63db78e42c6a7870
Shell
jumanjiman/policy-based-routing
/tunnel-routing/ifdown-local
UTF-8
316
2.90625
3
[]
no_license
#!/bin/bash # external IP of remote vpn device REMOTE_OUTER=10.8.1.42 if [ $1 == tun0 ]; then ip rule delete to 172.16.0.1 table main ip rule delete to 172.16.0.0/16 table remote ip route del default via $REMOTE_OUTER dev tun0 table remote echo "REMOVED policy-based routing per /sbin/ifdown-local" >&2 fi
true
44ea801a7590b2032e81f2b0faf81ccd3da61730
Shell
FSMaxB/lfs-me-repos
/7.6-systemd/bc-1.06.95
UTF-8
1,178
3.609375
4
[]
no_license
pkgbuild_version=5 pkgname=bc pkgver=1.06.95 _info_pages=( 'dc.info' 'bc.info' ) dependencies=( "!$pkgname" 'readline' ) sources=( "http://alpha.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.bz2" ) sha1sums=( 18717e0543b1dda779a71e6a812f11b8261a705a ) lfs_me_prepare() { tar -xf "${sources_dir}/${pkgname...
true
baa36b9a2a173c2cdcb1793d20b07d1a3dc8b789
Shell
aws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflow
/build-ecr-images.sh
UTF-8
236
2.875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # set region region= if [ "$#" -eq 1 ]; then region=$1 else echo "usage: $0 <aws-region>" exit 1 fi ./container/build_tools/build_and_push.sh $region ./container-optimized/build_tools/build_and_push.sh $region
true
fbbb895e6fcb98ff1f7b6be5ebd235359595e8da
Shell
langmartin/nomad-dev
/cfg/client-pid-scan/repro
UTF-8
327
2.828125
3
[]
no_license
#!/bin/sh [ `id -u` = 0 ] || { echo "run as root" 1>&2; exit 1; } killall -9 nomad killall sleep rm -rf /tmp/nomad-agent /tmp/plugin* set -x (cd ~/go/src/github.com/hashicorp/nomad && go install) nomad agent -config agent.json > /tmp/nomad-dev.log 2>&1 & sleep 12 for i in `seq 1`; do nomad job run report.hc...
true
d71e475093c848223c9ef520f172ff844f19ca7b
Shell
g2-field-team/field-daq
/common/scripts/rc.d/midasrc
UTF-8
644
2.921875
3
[ "MIT" ]
permissive
#!/bin/bash # A short script setting up some MIDAS environment variables export MIDASSELECT="local" if [ $MIDASSELECT = "local" ] ; then export MIDASSYS=/home/newg2/Packages/gm2midas/midas export MID_INC=$MIDASSYS/include export MID_LIB=$MIDASSYS/linux/lib export LD_LIBRARY_PATH=$MIDASSYS/linux/lib:$LD_LIBRAR...
true
812ac1715443b350face2de7ef8aafd962528f2c
Shell
gmonnier/emera
/EmeraWeb/deployment/setup.sh
UTF-8
1,410
3.953125
4
[]
no_license
#!/bin/bash sudo su - echo "Cleanup Emera deployment directory" deploymentDir=/EmeraWeb if [ -d ${deploymentDir} ]; then rm -rf ${deploymentDir} fi mkdir ${deploymentDir} java_install_needed=false if type -p java; then echo "found java executable in PATH" _java=java elif [[ -n "$JAVA_HOME" ]] && [[ -x "$JAV...
true
a00ed9898919de881562dac2ab4835218d290b40
Shell
polettix/App-OnePif
/bundle/ramenc
UTF-8
415
3.59375
4
[ "Artistic-2.0", "LicenseRef-scancode-philippe-de-muyter" ]
permissive
#!/bin/bash SIZE="$1" if [ "$SIZE" == "off" ] ; then diskutil eject /Volumes/ramenc else if echo "$SIZE" | grep '^[1-9][0-9]*$' >/dev/null 2>&1 ; then BLOCKS="$(($SIZE * 2 * 1024))" THEDEVICE="$(hdiutil attach -nomount -encryption 'AES-256' "ram://$BLOCKS")" diskutil erasevolume HFS+ ramenc $TH...
true
8f03468c4e05854581f69215c256ef4589387894
Shell
lguerrin/browsergopass
/releases/install.sh
UTF-8
3,030
3.859375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash DIR="$( cd "$( dirname "$0" )" && pwd )" APP_NAME="com.lguerrin.browsergopass" OS=`uname -s` NC='\033[0m' function printGreen { echo -e "\033[32m$1$NC" } function printLightGreen { echo -e "\033[92m$1$NC" } function printRed { echo -e "\033[31m$1$NC" } function printYellow { ec...
true
5f5805b65da3604ad29db772644906080a0fd977
Shell
VincentDR/CryptoFiscaFacile
/make.sh
UTF-8
374
3.03125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/bin/bash PATH=$GOPATH/bin:$PATH VER=$(git describe --tags) BASENAME="CryptoFiscaFacile" GOOS=$(go env | grep GOOS | cut -d"=" -f2) GOARCH=$(go env | grep GOARCH | cut -d"=" -f2) echo "$GOOS"/"$GOARCH" if [ "$GOOS" = "windows" ] then EXT=".exe" else EXT="" fi go build -ldflags "-X main.version=$VER" && mv $BA...
true
770ac56e6c7efb04d0992835737e1e773078bf84
Shell
mptrsen/myScripts
/moveNcat_fq.sh
UTF-8
369
3.28125
3
[]
no_license
indir=$1 regex=$2 for dir in $(find ${indir} -type f -name $regex | sed -r 's|/[^/]+$||' |sort |uniq); do for R in R1 R2; do cat $dir/*_${R}_*.fastq.gz > $(basename $dir)_${R}.fastq.gz; echo "$(basename $dir)_${R}.fastq.gz $(ls $dir | grep ${R} | grep L001)" >> rename.sh done; done cat rename.sh | sed s/_[A-Z0-9_]*_...
true
bf4299ca6f53a118da92d31e0632694792b16114
Shell
arcu/xps-ics-ramdisk
/sbin/reboot
UTF-8
318
3.28125
3
[]
no_license
#!/sbin/sh # Wrapper script to handle reboot recovery command for arg in "$@" do case "$arg" in recovery) touch /cache/recovery/boot RECOVERY=1 ;; *) ;; esac done busybox reboot $@ RET=$? if [ $RET -ne 0 ] && [ $RECOVERY -eq 1 ]; then rm /cache/recovery/boot fi exit $RET
true