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
b87f4738943fc2d7708080bd7647c2431da3fda8
Shell
XGWang0/Suse_testsuite
/tests/qa_test_coreutils/qa_test_coreutils/orig_test_suite/cp/symlink-slash
UTF-8
1,104
3.703125
4
[]
no_license
#!/bin/sh # Make sure that cp -dR dereferences a symlink arg if its name is # written with a trailing slash. if test "$VERBOSE" = yes; then set -x cp --version fi . $srcdir/../envvar-check . $srcdir/../lang-default pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ trap 'status=$?; cd $pwd; rm -rf $t0 && ex...
true
64d9a028a98412446368a6134b54f05dc0cf1895
Shell
medranSolus/fractal_service
/setup_server.sh
UTF-8
398
2.9375
3
[]
no_license
#!/bin/bash # Run as root # Do this only once! if ! [ -z "$1" ]; then if [ "$1" == "first" ]; then echo "/home/mpi_fractal/fractal_cluster *(rw,async,no_root_squash,no_subtree_check)" >> /etc/exports fi echo "Unknown command!" exit -1 fi # NFS server must be started and firewall disabled syste...
true
743ae7282879eaebea3e9794427c0fa89c7c3c4d
Shell
liyang2019/nuclei_private
/mask_rcnn/build_lib.sh
UTF-8
1,727
2.609375
3
[]
no_license
#!/bin/bash ARCH=sm_37 # build the torch *.so lib for your system echo '##########################################################' echo '########### building torch NMS ###########################' echo '##########################################################' TORCH_NMS_DIR=net/lib/box/nms/torch_nms/ nvcc -c -o ...
true
11f4f71589fd3c3ef5b048dc2896a14c1b31cbf3
Shell
ajbeattie/pushgateway
/scripts/build-jenkins.sh
UTF-8
522
2.78125
3
[ "MIT", "Apache-2.0" ]
permissive
#!/bin/sh # # build-jenkins.sh builds an ubuntu image # set -e DOCKER_REGISTRY=${DOCKER_REGISTRY:-stg-commercial-systems.docker-registry.canonical.com} DOCKER=${DOCKER:-docker} VERSION=`git rev-parse --verify HEAD` $DOCKER Dockerfile.ubuntu build \ --build-arg http_proxy \ --build-arg https_proxy \ --build-arg ...
true
c830f37791c53b4d682ad4f08b6c56736432037d
Shell
cbxcube/bashrepo
/remote/remoteapp3.sh
UTF-8
3,223
4.03125
4
[]
no_license
#!/bin/bash # # PUT ON REMOTE SERVER # # Remote Application 03 # Should be started under local system user # This script "remoteapp3.sh@kimsufi" should be initialized only from remote system using "manageapp3.sh@loclahost" # VARIABLES HOME="/home/$(echo $USER)/scripts/" LOG="$HOME/appl3.log" LOCK="$HOME/.appl3.lo...
true
c052efff9d1b1a19b608efedd6e33c643cd322a3
Shell
veroandreo/script_collection
/proj_scripts/latlongED502utmED50.sh
UTF-8
514
2.8125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # Markus Neteler 2/2003 # proj von http://remotesensing.org/proj/ echo "Coordinate transformation from Lat/Long/ED50 datum to UTM keeping ED50 datum" echo "we need the UTM zone for the resulting UTM coordinates:" echo " e.g 32 for Germany" echo " 32 (F. Ovest) / 33 (F. Est) for Ital...
true
ef64c19351c9ac2976a5db60010eb2dca968c614
Shell
dengmeng123456789/dms
/script/ping.sh
UTF-8
538
3.40625
3
[]
no_license
#!/bin/bash Network=`ifconfig ens33 |awk '/broadcast/{print $2}' | awk -F '.' '{print $1"."$2"."$3}'` files=/root/sh/IP.txt [ -f $files ] && echo "存在" || touch $files #写入空值到文件保证文件字符为0by echo " " > $files for i in `seq 1 15` do ( ping -c 3 "$Network".$i if [ $? -eq 0 ];then #这步保证的是文件没有重复的IP 100%为存在的IP ec...
true
d866be56d2ef6aede8c31830fb653a6d71d5b476
Shell
DalavanCloud/hawq
/contrib/vexecutor/veinstall.sh
UTF-8
497
3.1875
3
[ "Apache-2.0", "MIT", "BSD-4-Clause-UC", "BSD-3-Clause", "ISC", "bzip2-1.0.6", "LicenseRef-scancode-unknown-license-reference", "BSD-4-Clause", "Artistic-2.0", "PostgreSQL", "LicenseRef-scancode-unknown" ]
permissive
#!/bin/bash if [ -z "$1" ]; then echo "master directory required" exit 1 fi if [ -z "$2" ]; then echo "segment directory required" exit 1 fi if [ -z "$3" ]; then echo "dbname required" exit 1 fi MASTER_DIRECTORY=$1 SEGMENT_DIRECTORY=$2 DBNAME=$3 echo "shared_preload_libraries = 'vexecutor' " >> $MASTER_DIRECT...
true
1546ade2d6c17bac2dc51784909658464ee2d768
Shell
dimon-v/k8s-deploy
/kubeadm_v1.13.0/02_install_docker.sh
UTF-8
913
2.59375
3
[ "MIT" ]
permissive
#!/bin/bash set -e # Uninstall installed docker sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ doc...
true
3b81d47ff2e2f1bc192c18d1f7d07db98dedef6a
Shell
andrewrothstein/coreos-skydns-cloudformation
/visible/update_iam_stack.sh
UTF-8
572
2.578125
3
[]
no_license
#!/bin/bash SCRIPT_PATH=$( cd $(dirname $0) ; pwd -P ) STACK_NAME="Innovation-Platform-Visible-IAM" aws cloudformation update-stack \ --stack-name $STACK_NAME \ --template-body file://$SCRIPT_PATH/iam.json \ --capabilities CAPABILITY_IAM \ --no-use-previous-template \ --parameters \ "ParameterKey=readab...
true
f162b661019fc480fa8dabaf35414dbc583c6281
Shell
gmag11/CA_OpenSSL_RSA
/create_server_cert.sh
UTF-8
2,011
3.65625
4
[ "MIT" ]
permissive
#!/bin/bash source .env echo "Enter subdomain without $DOMAIN ending" read SUBDOMAIN echo "Enter private key password. Can be empty to generate unencrypted key only" read -s KEY_PASS if [[ "$KEY_PASS" != "" ]] then echo "Repeat key password" read -s KEY_PASS_1 fi if [[ "$KEY_PASS" == "" ]] then KEY_PASS="1234...
true
1c8457cfe2dc4de1c83f08ba929541e3078ca72b
Shell
OpenMS/build-scripts
/platformScripts/shell/macOS/inferSystemVariables.sh
UTF-8
1,348
3.421875
3
[]
no_license
export SUBDISTRO_NAME="macOS" export SUBDISTRO_VERSION=$(sw_vers -productVersion) ## Caution: the next line is necessary for the ".app"s to run on older macOS ## even thought the code is backwards-compatible and runs from the command line. ## Caution2: this might interfere with the system libraries that are linked, if ...
true
eefa42fb20ff0de35b03f16892a3bad836aa436c
Shell
sio2sio2/doc-linux
/docs/_downloads/ecf95272fbdac31610133ef5ca96d092/discover.sh
UTF-8
6,624
4
4
[ "MIT" ]
permissive
#!/bin/sh LIST="${DISCOVER_LIST:-`dirname "$0"`/macs.txt}" MAIL="${DISCOVER_MAIL:-root@localhost}" help() { echo "$(basename "$0") [opciones] Descubre máquinas conectadas a la red. Opciones: -h, --help Muestra esta misma ayuda. -i, --interface <IFACE> Interfaz por la que se descubrir...
true
727dd020e3dc207ebca9220817d8ead4df22854b
Shell
ARM-DOE/warno
/utility_setup_scripts/gen_certs.sh
UTF-8
491
2.734375
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash # Source http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" openssl genrsa -out $DIR/../proxy/privkey.pem 2048 openssl req -new -key $DIR/../proxy/privkey.pem -out $DIR/../privreq.csr openssl x509 -req...
true
559b3cb4f48c6020ab2bc1126fb838cc08c32233
Shell
RHeijblom/masterproject_benchmark
/ltsmin2eventstats.sh
UTF-8
3,534
4.34375
4
[]
no_license
#!/bin/bash # HARDCODED CONTROL PARAMETERS # Flag to force each file to be checked if produced by $LTSMIN_BIN; files failing this condition will be notified to the user CHECK_NATURE_FLAG=true UNKNOWN_VALUE='"unknown",' EMPTY_VALUE='"",' OOTIME_VALUE='"ootime",' OOMEM_VALUE='"oomem",' ERROR_VALUE='"error",' # Regroup ...
true
df749e9664b4b39d6c09e83ac269ddc9fa5a642e
Shell
nuno-c-afonso/gesto_eval
/basho_bench/scripts/change_tree.sh
UTF-8
898
3.15625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -u set -e FAIL=0 command="setting tree to: $1" leafs=`cat ./scripts/leafs` internals=`cat ./scripts/internals` receivers=`cat ./scripts/receivers` Command2="cd ./saturn_leaf && sudo sed -i -e 's#{tree.*#{tree, \"$1\"},#' src/saturn_leaf.app.src" echo $command" for leafs:"$leafs for node in $leafs do ...
true
1eb62728ae6de6d3e84996c696a9e0c138ea5b10
Shell
xoqhdgh1002/SHELL_SCRIPT
/CHAPTER3/olddel/olddel.sh
UTF-8
531
3.8125
4
[]
no_license
#!/bin/bash # 두 파일을 비교해서 오래된 파일 삭제하기 # 비교 대상 파일 log1="log1.log" log2="log2.log" # 인수 파일이 존재하는지 확인해서 존재하지 않으면 종료 filecheck() { if [ ! -e "$1" ]; then echo "ERROR: File $1 does not exist." >&2 exit 1; fi } filecheck "$log1" filecheck "$log2" # 두 파일을 비교해서 오래된 쪽 삭제 if [ "$log1" -nt "$log2" ]; then echo "[$log1]-...
true
bf6b127c20ea86ba3bb0a1a4251d5823a0916c23
Shell
NGenetzky/dotfiles
/downloads/mplab.sh
UTF-8
284
2.859375
3
[ "MIT" ]
permissive
#!/bin/bash SCRIPTDIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)" source "${SCRIPTDIR}/_downloads.bash" # Bash Strict Mode set -eu -o pipefail wget_download \ 'ww1.microchip.com/downloads/en/DeviceDoc/MPLABX-v5.10-linux-installer.tar' \ 'MPLABX-v5.10-linux-installer.tar'
true
f7446830cc8454dbb0944696b609b8e46215a479
Shell
ankit1057/android-scripts
/pull
UTF-8
1,096
4.0625
4
[]
no_license
#!/usr/bin/env bash # A simple script for backing up important files(contacts, call log, messages) for android source common adb_zip_and_pull(){ #TODO handle paths, currently file or folder is pulled in the same directory without structure filename="$1" backup_dir="$2" adb_zip "$filename" && adb pul...
true
e0479d26f5b86921615706a0c827649a9e65b8ca
Shell
openhpc/ohpc
/tests/dev-tools/numpy/ohpc-tests/test_mpi_families
UTF-8
941
3.3125
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
#!/bin/bash # -*-sh-*- TEST_LOGS="" MAKEFLAGS="" status=0 source ./common/TEST_ENV || exit 1 source ./common/functions || exit 1 cd dev-tools/numpy || exit 1 export BATS_JUNIT_CLASS=Numpy for compiler in $COMPILER_FAMILIES ; do for python in $PYTHON_FAMILIES ; do echo " " echo " " ...
true
7a10c85375a59c3f442ea12fa62fbbc19005f13d
Shell
omalashenko/hg2cvs
/hg2cvs.sh
UTF-8
7,463
3.875
4
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # set -x DEBUG=0 DRY_RUN=0 USE_CVS_LOCK=0 if [ -z "$DRY_RUN" ] ; then DRY_RUN=0 fi warning() { echo "WARNING: $@" 1>&2 } debug() { if [ "$DEBUG" = "1" ] ; then echo "DEBUG: $@" fi } do_cvs() { if [ $DRY_RUN -ne 0 ] ; then cvs -d "$CVS_ROOT" -n "$@" else ...
true
4ef641b957cabe8319d95025370b1e3bf693dbc7
Shell
toradex/a71ch-demo
/toradex/target/update.sh
UTF-8
3,748
3.765625
4
[]
no_license
#!/bin/bash #**************************************************************************** # # Copyright (C) 2019 Toradex AG # Contact: https://www.toradex.com/locations # # This file is part of the Toradex of the A71CH workshop demo. # # BSD License Usage # Alternatively, you may use this file under the terms of the B...
true
446b3b2f4cdce9c9fdcb7a29503da5729decb4f9
Shell
milbul/OS
/lab3/6task_handler.sh
UTF-8
307
3.4375
3
[]
no_license
#!/bin/bash echo $$ > .pid ans=1 operation="+" usr1() { operation="+" } usr2() { operation="*" } sigterm() { exit } trap 'usr1' USR1 trap 'usr2' USR2 trap 'sigterm' SIGTERM while true; do case $operation in "+") ans=$(($ans+2)) ;; '*') ans=$(($ans*2)) ;; esac echo $ans sleep 1 done
true
55c9ed9e69efcab070c090e2eb306054e1ded7a2
Shell
xxwdll/shell_repo
/03开机启动脚本/start_task.sh
GB18030
1,290
2.5625
3
[]
no_license
#!/bin/bash # chkconfig: 2345 10 90 # description: start task export pid=` ps -ef | grep java |grep taskuap_8003|grep -v grep|awk '{ print $2 }'` if [ -z $pid ];then echo "the process is not running" else kill -9 $pid echo "kill the session "$pid fi sleep 2 cd /home/weblogic/bea/user_projects/...
true
eaa21f41a7689905098985f3c703ee08f6d81878
Shell
xcountry02/Group-Forward-Regression
/Simulations/Result/Int/gather.sh
UTF-8
1,471
3.578125
4
[]
no_license
#!/bin/bash #=========================================================================== # Program: gather.sh # # Author: K. Michels # Language: Bash # To Compile: ./gather.sh p0 n n_grp var sigma mbic ibic iter # #----------------------------------------------------------------------------- # # ...
true
a22525d814e30bf7006e41365517d482b0ef054b
Shell
MenkeTechnologies/zpwr
/autoload/common/zpwrVimAllEdit
UTF-8
406
2.921875
3
[ "MIT" ]
permissive
# -*- mode: sh -*- # vim: set ft=sh: function zpwrVimAllEdit(){ BUFFER="$(zpwrFzvimAll)" if [[ -z "$BUFFER" ]]; then return fi BUFFER="$ZPWR_VIM $BUFFER" zpwrLogDebug "builtin cd $ZPWR" eval "builtin cd $ZPWR" BUFFER="$BUFFER; zpwrClearList; zpwrIsGitDir && git diff HEAD" zpwrL...
true
5134da522b40e1d23699584a9084cb777c8c6e37
Shell
dambor/diego-release
/jobs/rootfses/templates/pre-start
UTF-8
888
3.34375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -ex # vim: set ft=sh CONF_DIR=/var/vcap/jobs/rootfses/config ROOTFS_PACKAGE=/var/vcap/packages/rootfs_cflinuxfs2 ROOTFS_DIR=$ROOTFS_PACKAGE/rootfs if [ ! -d $ROOTFS_DIR ]; then mkdir -p $ROOTFS_DIR tar -pzxf $ROOTFS_PACKAGE/cflinuxfs2.tar.gz -C $ROOTFS_DIR fi rm -f $ROOTFS_DIR/usr/local/share/ca-cert...
true
bd9bf66fbeae4583078cb163bca5adfa2defc7fc
Shell
swkim01/nuclei-sdk
/setup.sh
UTF-8
621
3.046875
3
[ "Apache-2.0" ]
permissive
NUCLEI_TOOL_ROOT=~/Nuclei NMSIS_ROOT=../NMSIS # Create your setup_config.sh # and define NUCLEI_TOOL_ROOT and NMSIS_ROOT like below # NUCLEI_TOOL_ROOT=/home/develop/Software/Nuclei # NMSIS_ROOT=/home/develop/Source/NMSIS SETUP_CONFIG=setup_config.sh [ -f $SETUP_CONFIG ] && source $SETUP_CONFIG [ -f .ci/build_sdk.sh ]...
true
0cc90d897da9f08799132ef57ba432f860530080
Shell
QFAB-Bioinformatics/beatson_bootstrap
/bootstrap_beatson.sh
UTF-8
1,535
3.828125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # # Shell script to bootstrap Scott Beatson's laptop # # Actions: sets the shell as tcsh and installs Homebrew # installs a collection of tools using Brew ('brew.file') # sets some basic system defaults ('osx_defaults.sh') # installs tcsh-enabled Conda ('conda_installer.sh') # installs Beatson Lab C...
true
93c75a0ab7e5590d0ffe0db0bdc73ba06cdd93ce
Shell
murphp30/I_LOFAR_workshop_2020
/BST_tutorial/BST_data/modea/solar_modea_20190507_160220.sh
UTF-8
2,127
3.203125
3
[]
no_license
#!/bin/bash #variables rcumode=3 bits=8 duration=10800 #21600 # observation duration in seconds observation="solar_mode3" today="`date +"%Y.%m.%d"`" start_time="`date +"%H%M%S"`" #check below exists #write data datapath on LCU datapath=/data/home/user1/data/$today/$observation/$start_time/ echo "*** Statistics being...
true
7e32168c16c1e91716286ab4e97128cbad1454b9
Shell
Agraphie/zversion
/scripts/ssh/openSSHVersionDistribution.sh
UTF-8
476
3.265625
3
[ "MIT" ]
permissive
#!/bin/bash #Output filename: openssh_version_distribution printf "Script name: $0\n" printf "Input file: $1\n" printf '%s\n' '-------------OpenSSH version distribution-------------' printf "`grep "OpenSSH" $1 | jq 'select(.Vendor == "OpenSSH") | .SoftwareVersion' | sort | uniq -c | sort -nr` \n" printf '\nTotal: %s\n...
true
933f7fb003a3bd35c55a3f92ddd5313d8115092c
Shell
skyitachi/MIT6.824
/src/raft/run_test.sh
UTF-8
572
3.59375
4
[]
no_license
#!/bin/bash realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" } TEST_CASE=$1 echo $TEST_CASE SHELL_FOLDER=$(dirname $(realpath "$0")) PARENT_SHELL_FOLDER=$(dirname "$SHELL_FOLDER") GRAND_PARENT_SHELL_FOLDER=$(dirname "$PARENT_SHELL_FOLDER") export GOPATH=$GRAND_PARENT_SHELL_FOLDER:$GOPATH PROJECT_...
true
004b9aefd81a2f686a4bd8f1326a55c3e95b1edc
Shell
htugraz/abs
/x86_64/community/python-pytest/PKGBUILD
UTF-8
2,201
2.53125
3
[]
no_license
# $Id: PKGBUILD 152799 2015-12-11 03:32:52Z fyan $ # Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: Felix Kaiser <felix.kaiser@fxkr.net> pkgbase=python-pytest pkgname=('python-pytest' 'python2-pytest') pkgver=2.8.4 pkgrel=2 pkgdesc="Simple powerful testing with Python" arch=('any') license=('MIT') ur...
true
5fa4496a39c6de8caf2b9f5d8c4bd3383414d730
Shell
zxzwxdl/docker-aspnetcore-build
/build_init
UTF-8
244
2.875
3
[]
no_license
#!/bin/sh if [ -z "$SLN_FILE_NAME" ] || [ -z "$RELEASE_PATH" ]; then echo "sln file name or release path undefined!" exit 1 fi cd /app dotnet restore $SLN_FILE_NAME && dotnet publish $SLN_FILE_NAME -c Release -o $RELEASE_PATH
true
3b431748063e47d5e27088a8a3679e6539b55264
Shell
hiremaga/ciborg-vagrant
/bootstrap.sh
UTF-8
983
3.4375
3
[]
no_license
#!/bin/bash set -e sudo apt-get update > /dev/null packages="git build-essential openssl libreadline6 libreadline6-dev libreadline5 curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libncurses5-dev automake libtool bison subversion pkg-config" s...
true
a3380ad4aa2f8edbaaecb0de1285f35d44490b9b
Shell
julienpoirier/viewpoint-installer
/install/glassfish
UTF-8
675
2.890625
3
[]
no_license
#!/usr/bin/env bash # description: Glassfish start/stop/restart # processname: glassfish # chkconfig: 2345 10 90 JAVA_HOME=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64 export JAVA_HOME PATH=$JAVA_HOME/bin:$PATH export PATH GLASSFISH_HOME=/data/bddpmon/viewpoint/viewpoint/bin/glassfish3/glassfish/ GLASSFISH_USER=bddpmon case ...
true
cc5e920e757f18efd8fcf2b221eae8d511e44e74
Shell
atulbhingarde/HW-Linux-2
/Instructions/2-mkdircd/mkdircd
UTF-8
474
3.359375
3
[]
no_license
#!/bin/bash echo $# # check if there are sufficient parameters passed if [ $# -eq 2 ] ; then # set the target directory that is first parameter TargetDir=$1 #set the target file to be created second parameter TargetFile=$2 # create the directory with -p option mkdir -p ${TargetDir} # l...
true
d9661b22dc8a11a91e4c21500235446b708c2619
Shell
BeckYoung/android-x265-buildscript
/x86_64/build.sh
UTF-8
1,358
2.796875
3
[]
no_license
#!/bin/bash export ANDROID_NDK_HOME=~/Android/android-ndk-r16b export CMAKE_HOME=~/Android/Sdk/cmake/3.6.4111459/bin export NUMBER_OF_CORES=4 export PATH=$CMAKE_HOME:$PATH ANDROID_CPU=x86_64 if [[ “$@“ =~ "-d" ]];then echo "----------------------------cmake debug----------------------------" cmake -DDEBUG=ON...
true
d9d510a2211e05f64bb6a42ac5852c66d467b98c
Shell
gibranfp/SMH-Topic-Discovery
/scripts/run_lda.sh
UTF-8
716
3
3
[]
no_license
#!/bin/bash # # Script to discover topics with LDA from the 20 Newsgroups and Reuters corpora. # # It receives directory for SMH experiments as argument mkdir -p $1/20newsgroups mkdir -p $1/reuters for K in 200 400 do echo "Discovering $K topics using LDA" python python/discovery/lda_topic_discovery.py \ ...
true
326058a939163e868fbb6d99230f4f9f5764ebd9
Shell
NBISweden/agda
/agda/pconsc/templates/pconsc/predictall.sh
UTF-8
1,395
2.859375
3
[ "MIT" ]
permissive
#!/bin/bash set -e ### Setup module add python/2.7.6-build01 module add pcons-fold/140128 module add blast+/2.2.27-1 # for prepare_db module add plmdca/2012-build01 # reminder that this workflow uses this plmDCA version. scratch=$SNIC_TMP agdaworkdir=$(pwd) DEBUG=false if [ "$DEBUG" = "true" ]; then cp /scratch/l...
true
4dde6f54f23e1d81df6967310b029ece08ac531f
Shell
coderall/2017_practice
/shell/bash.sh
UTF-8
272
2.59375
3
[]
no_license
#!/bin/bash # this file show you some way to use the bash directly # No.1 check the script syntax bash -x (some shell script) # No.2 exec some shell bash some_shell.sh # this is very useful to exec some shell mannually with some mount file system without exec option
true
a683cdf61e1816facc357aaaa23ac95a2c8f1ff5
Shell
jaruserickson/brilliant-bash
/.bashrc
UTF-8
3,379
3.53125
4
[ "MIT" ]
permissive
### aliased sudo: so you can use custom aliases as sudo alias sudo="sudo " ### weather: pass your city or zip code, and it returns the weather! weather() { curl wttr.in/"$1"; } ### myip: prints out your IP address. Handy to check if your VPN is on! alias myip="curl icanhazip.com" ### plz: re-run the last command as ...
true
1d1de0399512231c1ddb65ea5caa65340a4970dd
Shell
gmauro/ena-cog-uk-wfs
/run_reporting.sh
UTF-8
2,063
3.234375
3
[ "MIT" ]
permissive
#!/bin/bash # bot-specific settings BOT_TAG='bot-go-report' BOT_RESPONSE='report-bot-ok' DEST_TAG='cog-uk_report' DEST_NAME_SUFFIX='Reporting' VCF_DATA='Final (SnpEff-) annotated variants' JOB_YML='reporting-job.yml' _API_KEY=$API_KEY # common for all bots JOB_YML_DIR='job-yml-templates' # start processing WORKDIR=$...
true
77144fa34b08fa52c1df96c0022b8feaf2b91dad
Shell
thapr0digy/scripts
/mkv2mp4.sh
UTF-8
337
3.125
3
[]
no_license
#!/bin/bash # # This script will change mkv files with AC3 audio to mp4 files with AAC audio # # Usage: mkv2mp4.sh <mkv_file.mkv> <mp4_file.mp4> # # mkv_file=$1 mp4_file=$2 echo Changing mkv file to mp4.... # Input the mkv file and output to mp4_file ffmpeg -i $mkv_file -vcodec copy -acodec aac -ab 256000 -sn -stri...
true
47590f6fcfe2637d59114572fe78bdbd7663c547
Shell
yuichisuzuki0601/internal-document-search-service
/database/update-module.sh
UTF-8
280
2.59375
3
[]
no_license
#!/usr/bin/env bash cd `dirname $0` MODULE_PATH1=../../ysd-util cd ${MODULE_PATH1} ./mvnw clean install cd - MODULE_PATH2=../../ysd-db-migration cd ${MODULE_PATH2} ./mvnw clean package cd - rm -f ysd-db-migration-*.jar cp ${MODULE_PATH2}/target/ysd-db-migration-*.jar ./
true
68e5b053c65e427de7ade24b16306d94fd50952b
Shell
wuhp/lfs7.5
/build-lfs-system/build-mpfr.sh
UTF-8
305
2.78125
3
[]
no_license
#!/bin/bash export SOURCE="mpfr-3.1.2" [ -d ${SOURCE} ] & rm -rf ${SOURCE} tar -Jxf ../sources/mpfr-3.1.2.tar.xz cd ${SOURCE} ./configure --prefix=/usr \ --enable-thread-safe \ --docdir=/usr/share/doc/mpfr-3.1.2 make #make check make install make html make install-html
true
e2d736cc4560dfd56a55117ffb596a518609c974
Shell
LEI/dot-sh
/bin/e
UTF-8
608
4.03125
4
[]
no_license
#!/bin/sh # Usage: e [<path>] # Quick shortcut to the program specified by VISUAL or EDITOR # e: opens the current directory in your editor # e <path>: opens the specified directory in your editor # set -e # shellcheck disable=SC1090 . "$HOME"/bin/hasfunc if ! hasfunc e; then e() { editor="${VISUAL:-$EDITOR}"...
true
cd356e200ad354559b8ca742329e11fb5897c348
Shell
MaxRzv/sick_lidar_localization
/test/scripts/clion.bash
UTF-8
1,304
2.765625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # init ros environment source /opt/ros/melodic/setup.bash if [ -f ../../../../devel/setup.bash ] ; then source ../../../../devel/setup.bash ; fi if [ -f ../../../../install/setup.bash ] ; then source ../../../../install/setup.bash ; fi # start edit resource-files gedit ./run_simu.bash ./run_cola_examp...
true
f9a643ddbbfb60330d3ab8dcf8fe99c55fb34b8a
Shell
linanqiu/cs4705
/coding/hw4/run.sh
UTF-8
639
2.859375
3
[]
no_license
#!/bin/bash echo "==== Compiling" javac TaggerTest.java echo "==== Running" echo "== Estimated runtime: ~6min" start=`date +%s` java -Xms1024m -Xmx2048m Test end=`date +%s` runtime=$((end-start)) echo "== Runtime: $runtime" echo "==== Question 4" echo "== 4.1: No answer required" echo "== 4.2: ibm1_devwords_ranking....
true
3d914f72afc03b49c29570a102027408addc5e8e
Shell
xueye9/study
/HadoopDoc/component/lookapp/look.sh
UTF-8
1,045
2.890625
3
[]
no_license
#!/usr/bin/env bash nmport=59842 host="mob616:50088" host="platform30:8088" version="v1" accept="Accept: application/json" resource="apps?state=RUNNING" url="http://$host/ws/${version}/cluster/${resource}" echo $url dt=`date +"%Y%m%d%H%M%S"` day=${dt::8} dir=./data/$day mkdir -p $dir file=$dir/${dt}.json.log curl -H...
true
7b9193b923d9a34f02848dc542cfaa0bfe6e8583
Shell
just-paja/optimics-webpack-hello
/install.sh
UTF-8
133
2.75
3
[]
no_license
#!/usr/bin/env bash for example in $(find examples -mindepth 1 -maxdepth 1 -type d); do cd $example npm install cd ../.. done
true
d60766d5f60e2d65fa8996d8eb7f28f86a9fe67e
Shell
B9mkr/bashScripts
/comInfo.sh
UTF-8
3,141
3.03125
3
[]
no_license
#!/bin/bash # echo "in - information about my scripts ex. [in]" echo "ll - ls -alF ex. [ll]" echo "la - ls -A ex. [la]" echo "l - ls -CF ex. [l]" echo "t - ls -R ...
true
3a872854614b6055563d9d6a7cb8a4f9f9419b67
Shell
fika/Slack-SL-Bot
/test.sh
UTF-8
2,017
3.109375
3
[]
no_license
#!/bin/bash echo "" > /var/log/apache2/error.log OLDCOUNT=0 dmy=$(date "+%a %b %d") while : do NEWS=$(grep -P '\[\K[^\]]+' /var/log/apache2/error.log | grep "$dmy" | grep info | grep TxoLNNB1IIM7i3R2N2IghTtr) COUNT=$(echo "$NEWS" | wc -l) DIFF=$((COUNT-OLDCOUNT)) if [ $DIFF -gt 0 ] ...
true
2eb3537f6af2a2c1b884ebacb86d33881cbcd460
Shell
h4ckl4bm3/ravstack
/share/clean.sh
UTF-8
442
2.578125
3
[ "MIT" ]
permissive
#!/bin/sh for home in /root /home/*; do sed -i '/ovirt\|ravstack/!d' $home/.ssh/authorized_keys rm -f $home/.bash_history done rm -f /var/lib/cloud/instance rm -rf /var/lib/cloud/instances/* find /var/lib/cloud -type f | xargs rm -f rm -f /var/lib/dhclient/*.lease rm -f /var/run/ravstack/* cp -f /dev/null /...
true
b763422eaba539f0783de860507c6450f5d9ee77
Shell
JeepGuy/bash_scripts
/BASH tips/functions.sh
UTF-8
3,954
4.15625
4
[]
no_license
#!/bin/bash # # This script demonstrate functions. # ------------------------------------------------------------------------------------ # Set Global Variables first so they are always defined before being called. #------------- Sample below GLOBAL_VAR1="one" GLOBAL_VAR2="two" # Create Functions second - so they ...
true
01cb7376a958eb6dd77da268151053d3a4e2e7f3
Shell
fivetwentysix/brigade-matchmaker
/test/session/test_successful_create.sh
UTF-8
616
3.25
3
[ "MIT" ]
permissive
#!/usr/bin/env bash echo "Test the create user and session" EPOCH=`date +%s` echo "TestID=$EPOCH, Using cookies-$EPOCH.txt" # move to the directory of the script BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $BINDIR URL="http://localhost:5465/api/user/create_and_login" echo "Calling $URL" wget -qO- \...
true
8ef6d6a9661f869ca3c39cf8a49a7d64d5553b82
Shell
06094051/Scripts-Utils
/tmp_read.sh
UTF-8
144
2.546875
3
[]
no_license
for line in `cat '/root/Scripts/repo_name'` do IFS="," arr=($line) for str in ${arr[@]} do echo 'ii:'$str done echo 'jj:'${arr[1]} done
true
7c9b4c72ba5901add6ead0a87e97d59f826f0754
Shell
valery-zhurbenko/vlc_record
/create_deb.sh
UTF-8
5,018
3.625
4
[]
no_license
#!/bin/bash #----------------------------------------------------------------------- # Finally I found the time (and the need) to create a more or less # good loking deb package! # Many thanks to Ilja for the first steps already done! # (c)2014 By Jo2003 All rights reserved! #------------------------------------------...
true
2af39b7620b516cda1c24e54f68f460133f08af8
Shell
AndreyAgafonov/OTUS
/lesson13/ansible/provision.sh
UTF-8
1,109
2.75
3
[]
no_license
#!/bin/bash #===================VARIBLES======================== vagrant_dir="${vagrant_work_dir:-}" # /vagrant/'MashineName' work_dir= "/ansible" #===================Понеслася======================== #Устанавливаем ansible yum install -y epel-release yum install -y ansible mc #sudo easy_instal...
true
746e9ffd429a9a333e7ec4c6ad68d51ed87a55aa
Shell
phoenix-rtos/phoenix-rtos-project
/docker-build.sh
UTF-8
1,338
3.71875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash DOCKER_IMG_NAME=phoenixrtos/build DOCKER_USER="$(id -u):$(id -g)" TMPFS_OVERLAY=() # FIXME: due to building as root in docker the tmpfs approach doesn't work # if [ "$(uname)" = "Darwin" ]; then # # I/O operations on bind mounts in Darwin are painfully slow - use tmpfs for intermediate build artifacts...
true
fdc78ba1492e1f1419f1ab553f5831456f63f6ab
Shell
nickwhitman1993/SAAF-MFEM
/buildScripts/qiLibPar.sh
UTF-8
432
3.84375
4
[]
no_license
#! /bin/sh set -e set -o pipefail usage () { echo echo Useage: echo " $0 compiler_options_file" echo } if [[ $# -ne 1 ]]; then echo echo ERROR: Need to specify file with compiler options. usage else if [ -e $1 ]; then source ./$1 source ./versions.sh source ./QuickInstall...
true
d1e46b309fdb17259283963720fe27a5677fa77f
Shell
cheeseit/RP2
/code/shell/opennebula_run.sh
UTF-8
840
3.84375
4
[]
no_license
#! /bin/bash #this script create multiple instances of the same image # looks at the ids and does a git pull for all of them # and does a git pull. Then it will also create a host file # and scp it to all all the hosts. MACHINES="" if [[ -f hosts ]] then rm hosts fi #get options still needs to be filled in while...
true
b7fd934b32f4e6968926bd9791da668946f88413
Shell
unitial/snippet
/bash/word-cnt.sh
UTF-8
299
3.21875
3
[]
no_license
#/bin/sh tr -s ' ' '\n' < words.txt | tr '[A-Z]' '[a-z]' | sed 's/[;:,.?]//' > step1.txt cat step1.txt | sort | uniq > step2.txt echo "\c" > step3.txt for word in `cat step2.txt`; do echo "$word \c" >> step3.txt grep -w $word step1.txt | wc -l | sed 's/ *//'>> step3.txt done cat step3.txt
true
24dad0e163fba649eafbaa94acdc5c2b93a3e8e1
Shell
ifapmzadu6/docker-go-sql-memcached
/run.sh
UTF-8
495
2.703125
3
[ "MIT" ]
permissive
# このディレクトリに移動 cd `dirname $0` echo $MYSQL_ADDR echo $MYSQL_PASSWORD # Delete all containers docker rm $(docker ps -a -q) # Delete all images docker rmi $(docker images -q) # ビルド docker build --no-cache --rm -t test:0.1.0 . # 前回起動中のものがあれば削除 docker stop hoppin docker rm hoppin # リンクして実行 docker run -d -p 443:8080 -e ...
true
936b1372d70fe792be53a37d30803d6acd94c9d5
Shell
jhx0/deb-mkdesk
/deb-mkdesk
UTF-8
7,683
3.53125
4
[ "ISC" ]
permissive
#!/usr/bin/env bash ## # Variables ## PKG_MANAGER='apt' # change this if you need to USERNAME='x' HOSTNAME="`hostname -f`" # change this only if you need something special DOTFILES_DIR='dots' DOTFILES_URL='https://github.com/jhx0/dotfiles.git' ## # Features ## SSD="YES" # is a SSD used? VBOX="YES"...
true
8bfe2320edb33ac796d8102b44f9cdfb3eee5953
Shell
vincent040/laboratory
/shell/utility/array.sh
UTF-8
162
3.046875
3
[]
no_license
#!/bin/bash value="one two three four" #a=($value) a=(one two three four) i=0 while [ $i -le ${#a} ] do echo "a[$i]=${a[$i]}" i=$((i + 1)) done
true
3e90d0e331faa5249b20d274089a4e6876a4525d
Shell
rjw41x/pwssec
/rjw/download_uaa.sh
UTF-8
4,764
3.875
4
[]
no_license
#!/bin/bash if [ "$DEBUG_SCRIPT" = "True" ] then set -x fi PROCESS_LOG=~/logs/download_files LOG_FILE=~/logs/download_uaa.out clean_up() { rm -f /tmp/$$local_files /tmp/$$aws_files > /dev/null 2>&1 } usage() { echo "$0: /local/Directory date_string" echo "/local/Directory must be writable" echo ...
true
67a3c52518921bb06b419733724923c5fe80377c
Shell
beluganos/beluganos
/etc/test/ribs/test_ribs.sh
UTF-8
2,502
3.125
3
[ "Apache-2.0" ]
permissive
#! /bin/bash # -*- coding: utf-8 -*- GOBGP="$HOME/go/bin/gobgp" MICOPT="-p 10001" RICOPT="-p 10002" RIBSBIN="../../../bin/ribs2c" RIBSOPT="--ribs-addr localhost:50072" MICDEV=micbr1 RICDEV=ricbr1 GWADDR=10.0.0.1 GWMAC=11:22:33:44:55:66 SLEEP=1 VPN1_PREFIX=100.0.10.0/24 VPN1_NEXTHOP=10.0.1.1 VPN1_RD=10:10 VPN1_RT=10:5...
true
7d0e4f1a8f4c0377837e42d28d72a6036cf0314d
Shell
isabella232/BotADayBotAway
/2018/01/11/CheckIfBirdTooOld.sh
UTF-8
262
3
3
[]
no_license
#!/bin/bash LASTTWEETSTAMP=$(t timeline birdbot4 -n 1 -c | cut -d, -f 2 | sed -n 2p | xargs -I@ date --date="@" +%s) CURRENTSTAMP=$(date +%s) TIMESINCE=$(bc -l <<<"$CURRENTSTAMP - $LASTTWEETSTAMP") if [[ "$TIMESINCE" -gt "1800" ]]; then exit 1 else exit 0 fi
true
04ed65f8df8fa14ad2fe1f05de91191b5ee38e8d
Shell
zgdkik/myops
/shell/日志分析脚本/日志截取分析平台后端脚本模板/rest/analyze_scripts/input_date.sh
UTF-8
1,814
3.8125
4
[]
no_license
#!/bin/bash #decription: only for passport... #ver: v1.0 #auth: by zhengxin20180604 #email: hzzxin@tairanchina.com LOG_ANALYSE_DIR="/usr/local/weihu/passport_rest_log_analyze" LOG_DIR="/usr/local/tomcat/logs" HIS_LOG_DIR="/var/log/tomcat_log" TEMP_DIR="${LOG_ANALYSE_DIR}/temp" CUT_LOG_DIR="${LOG_ANALYSE_DIR}/logs" LO...
true
b3ec91dad5606f3e2fa340f6812cf6e994b348fa
Shell
ilventu/aur-mirror
/cplay/PKGBUILD
UTF-8
846
2.5625
3
[]
no_license
# Maintainer: aksr <aksr at t-com dot me> # Contributor: Murtuza Akhtari <inxsible at gmail com> # Contriburor: Andrea Scarpino <bash.lnx@gmail.com> pkgname=cplay pkgver=1.49 pkgrel=3 pkgdesc="A curses front-end for various audio players." arch=('i686' 'x86_64') url="http://mask.tf.hut.fi/~flu/cplay/" license=('GPL2')...
true
b1edf0fe32da323599b0eecd823d22ac75839d7c
Shell
jie-d-cheng/linuxBash
/filecreate.sh
UTF-8
375
3.9375
4
[]
no_license
#!/bin/bash read -p "please input number and prefix: " num prefix if [[ ! "$num" =~ ^[0-9]+$ ]];then echo "your input $num is not a number." exit fi if [ -z "$prefix" ];then echo "please input prefix which is more than one char." exit fi for i in `seq $num` do filename=$prefix$i touch /tmp/$filename if [ ...
true
8f134687c119c16fb378c5be36e23654c56ae137
Shell
wickedshimmy/dotfiles
/.zshrc
UTF-8
5,935
2.84375
3
[]
no_license
# As advised in the emerge log by the always helpful Gentoo team autoload -U compinit promptinit compinit promptinit # Moved this out of the setprompt() fn # Thanks to littleprince.zh (http://w-a-n.cn) autoload colors zmodload zsh/terminfo if [[ "$terminfo[colors]" -gt 8 ]]; then colors fi # More recommendations ...
true
c7c65dade2c28ba3e0d03502d80a2f568ee9c026
Shell
uo-adapt/ADS_Scripts
/rsfMRI/afni_proc/wave2/batch_rsfMRIproc_w2.sh
UTF-8
683
2.890625
3
[]
no_license
#!/bin/bash # # This batch file calls on your subject # list (named subject_list.txt) in the same # folder and will run job_rsfMRIproc_w2.tcsh # for each subject in that list. # Set your study STUDY=/projects/adapt_lab/shared/ADS # Set subject list #SUBJLIST=`cat sublist_restw2_n84.txt` SUBJLIST=`cat sub_test.txt` ...
true
889c8f841ade8853c86b6d955d39063685e26734
Shell
svalpha1104/UVLM
/run_make.sh
UTF-8
401
3
3
[ "BSD-3-Clause" ]
permissive
#! /bin/sh mkdir -p lib export PREFIX=$(conda info --json | python -c "import sys, json; print(json.load(sys.stdin)['active_prefix'])") if [ "$PREFIX" = "None" ]; then echo "*** Please check that the python environment is active." echo "*** Run ``conda activate sharpy_env``." exit 1 fi export EIGEN3_INCLUDE...
true
17ea3e630a65961dde242e5096cc2c5700c1926e
Shell
c0ns0le/dot-files-1
/old-dotfiles/.bashrc
UTF-8
1,653
3.0625
3
[]
no_license
source /private/etc/bashrc source /Users/jearsh/exports.sh # # System-wide .bashrc file for interactive bash(1) shells. # # ### this was uncommented so that screen would read it # #if [ -z "$PS1" ]; then # # return # #fi # # #PS1='\h:\W \u\$ ' # # Make bash check its window size after a process completes # shopt ...
true
b500ea334f57018259e3053c8dab4aa5e19c4a3d
Shell
Turncloak-Exile/TowerFall
/Exier/options/jarvis/JarvisH.sh
UTF-8
4,167
3.453125
3
[]
no_license
#!/bin/bash ANSWER_SETUP="1" ANSWER_RUNNINGSCRIPTS="2" ANSWER_STARTBASH="3" ANSWER_LOOPBASH="4" ANSWER_MACCHANGER="5" ANSWER_IPSPOOF="6" ANSWER_MAINMENU="9" ANSWER_EXIT="10" until [ "$ANSWER" == "$ANSWER_MAINMENU" ]; do echo -e "\e[0;33m ???????? ????????? ?????????? ????...
true
925fd88dad3c2ca58ed50dc7c4251f0b9f1946e1
Shell
Cai900205/test
/0604_source/gpio/gpio_app/shell/fm1_mac10_test.sh
UTF-8
444
2.84375
3
[]
no_license
#!/bin/bash fm1_mac10_old=0 while [ 1 ] do fm1_mac10_new=`ifconfig fm1-mac10 | grep "RX packets"|awk -F ' ' '{print $2}'|awk -F ':' '{print $2}'` if [ $fm1_mac10_new -ne $fm1_mac10_old ] then fm1_mac10_old=$fm1_mac10_new-$fm1_mac10_old /app/gpio_app 1 1 13 10 fm1_mac10_old=$fm1_mac10...
true
5f80b73cbc7661faa8a89d4c3ce4a760d134b540
Shell
eng4beer/build
/scap/scap-builder
UTF-8
1,527
2.546875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash export image=rhel75.qcow2 export build_dir=~/build export image_path=$build_dir/$image cp ~/Downloads/rhel-server-7.5-update-4-x86_64-kvm.qcow2 $image_path virt-customize -a $image_path --upload scap-security-guide-0.1.36-10.el7_5.noarch.rpm:/opt --upload openscap-scanner-1.2.16-8.el7_5.x86_64.rpm:/opt --up...
true
103a890cb029c2956dff9e2b7d6855616aa337fa
Shell
mah454/cluster-healthy-check
/test-scripts/check-ping
UTF-8
565
3.4375
3
[]
no_license
#!/bin/bash . ./init if [[ -z $1 || -z $2 || -z $3 || -z $4 ]]; then echo -e "\nUsage: check-ping [IP_ADDRESS] [PORT] [PARALLEL_REQUEST_SIZE] [SEQ_DELAY]" echo -e "Example: check-ping 172.17.0.2 8080 10 5\n" exit 1 fi while true; do for I in $(seq 1 "${PARALLEL_SIZE}"); do COUNT=$(get_process_count "$...
true
ec424ef0e2271ab737ba9e8bc0971de2955965a9
Shell
bolthole/freeha
/alerthasrv
UTF-8
903
3.34375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/sh #-------------------------------------------------------------------------# # This file gets called when the freehad demon changes states. # # (ie from 'INITIAL' to 'RUNNING') # # successfully does so, etc. etc. # # Yo...
true
f8c11a229332e1985e8a2c91778a99d1b012d1fc
Shell
ByronHsu/mace
/tools/build-standalone-lib.sh
UTF-8
2,116
3.453125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e LIB_DIR=builds/lib INCLUDE_DIR=builds/include/mace/public mkdir -p $LIB_DIR mkdir -p $INCLUDE_DIR # copy include headers cp mace/public/*.h $INCLUDE_DIR/ # make directories rm -rf $LIB_DIR/armeabi-v7a mkdir -p $LIB_DIR/armeabi-v7a rm -rf $LIB_DIR/arm64-v8a mkdir -p $LIB_DIR/arm64-v8a rm -rf $L...
true
38c92b6b2d062782e7193d965cdb97125cacb8ab
Shell
LiHRaM/nxt-cross-compiler
/build_arm_toolchain.sh
UTF-8
10,775
3.859375
4
[ "MIT" ]
permissive
#!/bin/sh # # Copyright (c) 2008 the NxOS developers # # See AUTHORS for a full list of the developers. # # Redistribution of this file is permitted under # the terms of the GNU Public License (GPL) version 2. # # Build an ARM cross-compiler toolchain (including binutils, gcc and # newlib) on autopilot. #############...
true
682e352cd5786d3a71b9278acd47c15850e412b0
Shell
robinchew/misc
/linux/bin/edge
UTF-8
675
3.546875
4
[]
no_license
#!/bin/sh #%%.* r the words to cut off fname=${1%.*} name=${fname%-*} corner=${fname##*-} ext=${1#*.} echo $fname $name $corner $ext for i in "1" "2" "3" "4" do if [ "$corner" = "t" ];then convert $name"-t."$ext -rotate 90 $name"-r."$ext corner="r" echo $name"-r."$ext elif [ "$corner" = "r" ];the...
true
bfa166a1a5c76d38b0bfc359d357f37c7b2052ba
Shell
vmagrotest/assignments
/project-1/mutate
UTF-8
246
2.921875
3
[]
no_license
#!/bin/sh echo "Mutating!!!!!" echo $@ echo "Hello $1" > hello.txt git add hello.txt git commit -m "[course staff] Project 1" # the git commit might fail if it's empty, so we'll just say that if we got to # this point we can return 0 exit 0
true
4d7a3a85ef19fe5c0ef3a7f63f3c336cc9528231
Shell
chenbodeng/jz2440v2
/kernel/envsetup-kernel.sh
UTF-8
321
2.875
3
[]
no_license
#!/usr/bin/env bash # usage: # source envsetup-kernel.sh # store the current root path Q_KERNEL_PATH_CUR=$(cd $(dirname "${BASH_SOURCE}") && pwd) KERNEL_2_6_22_6="linux-2.6.22.6" KERNEL_3_4_2="linux-3.4.2" KERNEL_VERSION=$KERNEL_2_6_22_6 KERNEL_ROOT_PATH="$Q_KERNEL_PATH_CUR/$KERNEL_VERSION" export KERNEL_ROOT_PATH ...
true
8e4ea84299b58cba4c6e7236a3089f478084a222
Shell
nkk1/kernel-experiements
/script
UTF-8
1,453
3.53125
4
[]
no_license
#!/bin/bash set -e set -x busybox_version=1.29.3 linux_version=4.20 work_dir=/tmp/mynewlinux artifacts_dir=/tmp/artifacts busybox=busybox-${busybox_version} linux=linux-${linux_version} initrd_dir=${work_dir}/myinitrd linux_dir=${work_dir}/${linux} busybox_dir=${work_dir}/${busybox} rm -rf $work_dir $initrd_dir $...
true
946ba65331802dc464b32c6cd4b40f464ef8f32b
Shell
samuelffn/shell-script
/test.sh
UTF-8
796
3.265625
3
[]
no_license
#!/bin/bash #arquivo=$1 #dir=~/dev/workspace/OCULTADO/admin tatu=SERVICE.ATTENDANCES.COUNTER_TIP.ON_HOLD arr=(carro) #declare -A arr if [ -f result.txt ] then rm result.txt fi search(){ #while IFS= read -r linha || [[ -n "$linha" ]] while read linha #for linha in $(cat arq.txt) do #bash sam.sh $linha #cd ~/dev/...
true
83279e47798a2b522d582055eeabedb5c141b6d1
Shell
aaloy/dotfiles
/xsession/xinitrc
UTF-8
944
2.578125
3
[]
no_license
#!/bin/sh # setup the keyboard in two layouts at the same time: english (ANSI US) and # spanish (ALT-GR international) and maps the Capslock key as another Ctrl Key. # The menu key is used to toggle between the layouts setxkbmap -layout us,es -variant altgr-intl, -option grp:menu_toggle -option grp_led:scroll -option ...
true
2bfd37054d55ea868bcc823f4eb086e0db2b8b50
Shell
Frijke1978/LinuxAcademy
/Using Terraform to Manage Applications and Infrastructure/Creating a Jenkins Job.sh
UTF-8
955
3.3125
3
[]
no_license
In this lesson, we will start working with Jenkins by creating a simple build job. This job will deploy a Docker container using Terraform, list the container, and then destroy it. In the Jenkins dashboard, Click New Item. Select Freestyle Project, and enter an item name of DeployGhost. Click Ok. Under Source Co...
true
47d011ac9979f344d404253b3dc9abc654e8755d
Shell
821-N/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/8-for_ls
UTF-8
112
2.875
3
[]
no_license
#!/usr/bin/env bash # print each file without the leading "number-" for _ in {1..1} do ls | cut -d- -f2- done
true
98176cfc13d265630e51b3bc4282d85b73b929a0
Shell
rkalis/liquidefi
/sharktokens/test/start_ganache_fork.sh
UTF-8
434
2.53125
3
[ "MIT" ]
permissive
#! /usr/bin/env sh DIR=$(dirname "$0") cd "$DIR" source ../.env cmd="ganache-cli --gasLimit 10000000" if [ ! -z "$MNEMONIC" ]; then cmd="$cmd --mnemonic $MNEMONIC"; fi if [ ! -z "$INFURA_ID" ]; then cmd="$cmd --fork https://mainnet.infura.io/v3/$INFURA_ID --unlock 0x9eb7f2591ed42dee9315b6e2aaf21ba85ea69f8c --unlock...
true
f6ffd56bc2839745e71cefec60a92e69838f2893
Shell
kjing/ce-demo-lms
/deploy/start_deployment.sh
UTF-8
740
2.5625
3
[]
no_license
#!/bin/bash # update file to use provided passwords sed -i -e "s/<sql-pass>/$1/g" deploy-gce-demo.yaml sed -i -e "s/<sup-pass>/$2/g" deploy-gce-demo.yaml # do sqladmin outside deployment manager due to timing delays # that sometime cause deployments to fail # gcloud service-management enable sqladmin.googleapis.com ...
true
50b0e577e2421e233ee274b1c4cf7f18e34d6596
Shell
kierse/unix_backup
/rsync_erin.sh
UTF-8
1,075
2.96875
3
[]
no_license
#!/bin/sh SERVER=pissiphany.com BACKUPPATH=$HOME/backup/elange BACKUPDIR=`date +%A` SHARE=/media/share/kierse HOME_OPTS="--archive --backup --backup-dir=$BACKUPPATH/$HOME/$BACKUPDIR/ --compress --delete --delete-excluded -F -v" SHARE_OPTS="--archive --backup --backup-dir=$BACKUPPATH/$SHARE/$BACKUPDIR/ --compress ...
true
aad478d5c060b1f60eb7242090081422c3fc575a
Shell
KrbAlmryde/Utilities
/WorkShop/SHELL/nwDRIVR.sh
UTF-8
3,676
3.6875
4
[ "MIT" ]
permissive
# ================================================================ # This is a call script which sources various functions and allows # for making calls to specific pipelines # # # call <Study Profile> <processing piple> # call tap preprocessing [function-name] # # available options for <Study Profile>: [tap, att...
true
538788398db03899d842a42de5bec8e4450a4dd9
Shell
chungmanchau/dotfiles
/scripts/cask.sh
UTF-8
1,282
2.890625
3
[]
no_license
log() { local fmt="$1"; shift printf "\n\e[94m$fmt\n" "$@" } casks="$(brew cask list)" install_cask() { if echo $casks | grep -w $1 > /dev/null 2>&1; then log "Already have %s installed. Skipping ..." "$1" else log "Installing %s ..." "$1" brew cask install "$@" 2> /dev/null fi } brew tap caskr...
true
da570cd5f024304ab0e76daf7d4251e3374acaf9
Shell
zzzzzpaul/shellofcentos
/installAPT.sh
UTF-8
485
2.515625
3
[]
no_license
#!/bin/bash #这个脚本会在centos下安装apt, 以提高软件安装的兼容性 #wget http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz #tar -vxf yum-3.4.3.tar.gz #touch /etc/ yum.conf #cd yum-3.4.3 #./yummain.py install -y yum #yum update #修改host vim /etc/hosts # 尾行添加 199.232.96.133 raw.githubusercontent.com curl https://raw.githubusercon...
true
4041e434790735872bf0ba06042e91b75c91c131
Shell
apollo434/kernel_1.1.1
/performance/formal/testmpionwr_shm_simplified_V202010/run_test.sh
UTF-8
817
3
3
[]
no_license
#$1: total process num #$2: DIV NUM process num #$3: count of running #$4: warm count if [ $# != 4 ]; then echo "Usage: " echo " #1:total process num " echo " #2:DIV num" echo " #3: count of running " echo " #4: warm count" exit 1; fi result=intel_mpi_test_realOS_`date "+%Y%m%d%H%M%S"`.log ...
true
eb6913aedd9d5d36b81d89c181bd5b6fcd97c49f
Shell
tikalk/ft-geocoder-facade
/run-bin/geocoder-facade.sh
UTF-8
182
2.53125
3
[]
no_license
#!/bin/bash echo "Starting FleetTracker Geocoder Facade" DIRNAME=`dirname $0` APP_HOME=`cd $DIRNAME/..;pwd;` export APP_HOME; java -jar $APP_HOME/build/libs/as-geocoder-facade.jar
true
0a649df3ffc0266ef153ce8ea51a6e9fd0638b87
Shell
ozkanpakdil/nwjs-build
/build_linux64.sh
UTF-8
4,116
2.921875
3
[]
no_license
#!/bin/bash set -x whoami pwd MAIN='nw27' echo "Building nwjs from sources, with ffmpeg patches [branch: $MAIN]" # create main dir mkdir -p nwjs-build cd nwjs-build # nwjs-build # get depot tool git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git export PATH=`pwd`/depot_tools:"$PATH" export GY...
true