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
42a5b6e9c8c39e32874112384fb390d841e843c2
Shell
cs0x7f/worldcubeassociation.org
/scripts/deploy.sh
UTF-8
5,566
3.6875
4
[]
no_license
#!/usr/bin/env bash pull_latest() { # From http://stackoverflow.com/a/8084186 git pull --recurse-submodules && git submodule update } restart_app() { if ps -efw | grep "unicorn master" | grep -v grep; then # Found a unicorn master process, restart it gracefully as per # http://unicorn.bogomips.org/SIGN...
true
870c146ceb489236ad30009446eb47b4cf563703
Shell
avcaliani/mr-owlf
/mr-owlf-api/init-env.sh
UTF-8
810
2.875
3
[ "MIT" ]
permissive
#!/bin/bash -e # # @author Anthony Vilarim Caliani # @contact github.com/avcaliani # python_venv() { if [ ! -d ".venv" ]; then echo -e "\n\033[1;32m ¯\_(ツ)_/¯ \033[00m Creating Python VEnv...\n" python3 -m venv .venv \ && source .venv/bin/activate \ && pip install --upgrade pip \ ...
true
4113ab9c52ab58053b08eb1ea9b500c4e67aae05
Shell
Pink2Dev/PinkPiUi
/scripts/network_assign.sh
UTF-8
524
3.296875
3
[]
no_license
#!/bin/bash if [ $# -ne 2 ]; then echo "Usage: $0 <Network SSID> <Network Password>" exit 1 fi # Clear static network > /etc/dnsmasq.conf > /etc/hostapd/hostapd.conf > /etc/network/interfaces.d/wlan0 sed -i "/denyinterfaces wlan0/d" /etc/dhcpcd.conf # Assign dynamic network cat > /etc/wpa_supplicant/wpa_supplican...
true
6325e05557529caa5a56e284fdbcecd6e0a3033d
Shell
Estecka/42-minishell
/.test_hh/.git-cmd.sh
UTF-8
717
2.828125
3
[]
no_license
# --------------------------------------------------------------------------# # git stash stocke (ou stashe) temporairement les changements apportés git stash -u # --------------------------------------------------------------------------# # Récupére toutes les données des commits effectués sur la branche courante # q...
true
227e67f5e9accb1b998f2132f795ea0c6a277c0f
Shell
davidcl/jupyter_binder
/postBuild
UTF-8
587
2.90625
3
[ "MIT" ]
permissive
#!/bin/bash set -ex # Download and local install Scilab VERSION=6.1.0 if [ ! -d scilab-$VERSION ]; then curl https://www.scilab.org/download/$VERSION/scilab-$VERSION.bin.linux-x86_64.tar.gz |tar xzf - fi PATH=$(pwd)/scilab-$VERSION/bin:$PATH export PATH # fix Scilab bug #16368 rm "$(pwd)"/scilab-$VERSION/lib/th...
true
169f2d478f87aae2f51046bba8634c69311c95f8
Shell
kirill-markin/jupyter_datascience
/startup.sh
UTF-8
770
2.875
3
[]
no_license
#!/bin/bash pwd whoami ## Настрйока проекта sudo apt-get update sudo apt-get install unzip #yes Y | sudo rm -r notebooks mkdir notebooks sudo chgrp 100 notebooks sudo chmod g+w notebooks echo "vm.overcommit_memory=1" | sudo tee -a /etc/sysctl.conf ## Докер if [ "$1" != "-r" ]; then yes Y | sudo apt-get remove d...
true
1494b1cda8ff2646ec3ad75aad4a7b4946619fdc
Shell
Yuukiki/jenkins_bot
/scripts/sync_source.sh
UTF-8
885
3.953125
4
[]
no_license
#!/bin/bash RUNTIMEDIR=$(cd "$(dirname "$0")";pwd) source $RUNTIMEDIR/utils.sh if [ $# == "0" ]; then echo "Usage: sync_source.sh \$REPOURL \$REPOBRANCH \$REPOARGS \$REPODIR" echo "eg: sync_source.sh \"https://github.com/LineageOS/android\" \"lineage-15.1\" \"-j12\" ~/ROM/lineage" exit 0 fi REPOBIN=`which repo` ...
true
6dbf9567cf5b81085ad4fa6eade07b04bb5b068c
Shell
jorgerdc/raven-course
/raven-course-service/h2-startup.sh
UTF-8
1,138
3.359375
3
[ "MIT" ]
permissive
#This script is used to start H2 for testing. #To use it: # 1. open a new terminal # 2. change to the directory where this script is located. # 3. Run this script : ./h2-startup.sh # 4. A browser window will appear with de H2 console interface # 5. In the JDBC Url value type the following: jdbc:h2:./raven-course # 6...
true
a3c147ab17c1255be407ff2a70be9f0ec47e6998
Shell
barbw1re/crouton-buddy
/crouton-buddy/cb-host.sh
UTF-8
13,251
3.796875
4
[ "MIT" ]
permissive
#!/bin/bash ################################################################ # Host (outside chroot) Menu ################################################################ # Set by caller: # # me => full path to caller (crouton-buddy.sh script) # CB_ROOT => full path to Crouton Buddy application directory # HOM...
true
39d0ae924c653453c5f2ffb1ae6bb1e7078d8935
Shell
mauricerashad/worksofcode
/rotate.sh
UTF-8
2,582
4.5
4
[]
no_license
#!/bin/bash # Rotate info and be stateful :) # Useful when rotating people for notifications weekly, such as in a custom monitoring service / function / script # Variables script_name='rotate.sh' DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" rotation=('user1' 'thisGuy' 'thatGirl' 'botThing') coun...
true
448105e240bca7d9fdbd9e7595a4c132c7e7ce03
Shell
ehacke/coreos-multi-node-k8s-gce
/bootstrap_k8s_cluster.sh
UTF-8
3,375
3.234375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ssh-add ~/.ssh/google_compute_engine &>/dev/null # SET ETCD VERSION TO BE USED !!! ETCD_RELEASE=v2.0.5 # SET FLEET VERSION TO BE USED !!! FLEET_RELEASE=v0.9.1 # SET KUBERNETES VERSION TO BE USED !!! k8s_version=v0.13.2 ## change Google Cloud settings as per your requirements # GC settings # SET YOUR PR...
true
3c0d68ad2dc11402a39520b86e332bd85f4aae08
Shell
0x4447-cloud-admin/0x4447_scripts
/Curl/Follow Each Redirect/script.sh
UTF-8
1,850
4.1875
4
[ "MIT" ]
permissive
#!/bin/bash # # 1. Request the name of site # echo "Enter the site name: (Press enter for https://demo.0x4447.com) "; # # 2. Take input # read site; # # 3. If no site entered, use default # if [ -z $site ]; then site="https://demo.0x4447.com"; fi; # # 4. Empty Space # echo "" # # 5. Array for the redirect URLs (s...
true
5b6089646b1387f56a00b58b72419acaf2669b3c
Shell
XinYao1994/Shell
/remote/yes.sh
UTF-8
300
2.53125
3
[]
no_license
#!/usr/bin/expect set no [lindex $argv 0] spawn ssh student@student${no} expect "*password:*" send "student\n" expect "~$*" send "ssh coc-server@10.42.0.1 \n" expect "*(yes/no)?*" send "yes\n" expect "*password:*" send "coc-server\n" expect "~$*" send "exit\n" expect "~$*" send "exit\n" interact
true
cb6dbec6cdd2cf65d0694bf126f80f9d80042a30
Shell
ford153focus/apt-beget
/installers/joomlatools.sh
UTF-8
497
2.96875
3
[]
no_license
:<<= ==analog of wp-cli for Joomla ==https://github.com/joomlatools/joomlatools-console = function install_joomlatools { echo_y "Installing joomlatools..." #prepare folders prepare_folders #depencies install_composer #download composer global require joomlatools/console #install ...
true
85abc9fbc45670178818bfaed7c627a9d6e787bb
Shell
PiresMA/bash_with_python_R_c
/bash_and_R_example_01/runner-r.bh
UTF-8
400
3.203125
3
[]
no_license
#!/bin/sh # FIRST PART printf '\n running first-code.R \n' pids="" for index in {1..3} do Rscript first-code.R $index & sleep 1 pids="$pids $!" done echo $pids # just to see the array of pids wait $pids # wait for all pids-jobs are completed. # SECOND PART printf '\n running second-code....
true
17f90f54e011b1a1989dc6676571acd66990078d
Shell
lasigeBioTM/MESINESP2
/preprocessing/prepare_input.sh
UTF-8
2,102
3.546875
4
[]
no_license
#!/bin/bash #Executes the code to process the data given by MESINESP and stores it in the format required for X-Transformer. #This script requires the name of the dataset to preprocess (scientific_literature, clinical_trials or patents) #a threshold determining the fraction of entities to include in the processed data...
true
ec962f574677c32c9946526e7cc318146eb0469b
Shell
dilawar/Scripts
/bfg
UTF-8
298
3.15625
3
[]
no_license
#!/bin/sh set -e VERSION=1.14.0 JARFILE="$HOME/Scripts/bfg-$VERSION.jar" URL=https://repo1.maven.org/maven2/com/madgag/bfg/$VERSION/bfg-$VERSION.jar if [ ! -f "$JARFILE" ]; then echo "Downloading jar file" wget $URL -O "$JARFILE" fi set -x java -jar "$HOME/Scripts/bfg-$VERSION.jar" "$@"
true
0eed19644a11ebaf6b0267abdf15b7d0c4eb645c
Shell
katarina-gres/fit-projects
/PRL/3/test.sh
UTF-8
643
2.875
3
[]
no_license
#!/bin/bash # if [ ! -f "mat1" ]; then # echo "Soubor mat1 neexistuje." # exit 1 # fi # # if [ ! -f "mat2" ]; then # echo "Soubor mat2 neexistuje." # exit 1 # fi mat1=$(head -n1 mat1) mat2=$(head -n1 mat2) # if [[ ! $mat1 =~ ^[[:space:]]*[0-9]+[[:space:]]*$ ]]; then # echo "Soubor mat1 musi mit na prv...
true
8bce03d87fa8ec6b9c933239877bf6685c02f0e5
Shell
manang/android-sdk
/scripts/install_ffmpeg.sh
UTF-8
2,121
3.21875
3
[]
no_license
############################################################################# # Copyright (c) 2017 Cisco and/or its affiliates. # 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: # # h...
true
14095100dc3a5de819dac7359ba575ef7087cc7f
Shell
PawarKishori/Alignment1
/working_debug/statistic-shell.sh
UTF-8
1,117
2.875
3
[]
no_license
str1="sent_no\th_al_%\te_al_%\te_leftover" str2="sent_no\th_leftover_ids\te_leftover_ids" str3="sent_no\th_aligned\te_aligned" echo -e $str1 > $HOME_anu_tmp/tmp/$1_tmp/alignment_percent_info.txt echo -e $str2 > $HOME_anu_tmp/tmp/$1_tmp/alignment_leftover_info.txt echo -e $str3 > $HOME_anu_tmp/tmp/$1_tmp/alignment_align...
true
59cad249f38f9880e995ca6e7c0ca43062c282bc
Shell
MODU-FTNC/google-language-resources
/third_party/festvox/setup.sh
UTF-8
10,023
2.9375
3
[ "CC-BY-4.0", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT", "BSD-4-Clause", "CC-BY-SA-3.0", "CC-BY-3.0", "LicenseRef-scancode-other-copyleft" ]
permissive
#!/bin/sh ########################################################################### ## ## ## Carnegie Mellon University ## ## Copyright (c) 2014 ## ## ...
true
b1a10bb0157e368c4666e01e8944c1afdb75ccaa
Shell
bkolli/nonrtric
/test/auto-test/FTC1800.sh
UTF-8
15,889
2.578125
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # ============LICENSE_START=============================================== # Copyright (C) 2020 Nordix Foundation. All rights reserved. # ======================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this fi...
true
c42bded65eec6940945bfdc7541105f86296c845
Shell
silicon-axon/dockerfiles
/dockerize.sh
UTF-8
2,519
4.53125
5
[ "Apache-2.0" ]
permissive
#!/bin/bash # dockerize script with custom tags and packages. # Each package is assumed to be a subfolder to the path where this # dockerize script is executed. Then inside each package/ subfolder # contains the Dockerfile and a single file "TAG" that has a string # indicating the current tag to be used for the docker...
true
5c6963716cecaef18b64f8d412cdaaac07be93bd
Shell
xiaoyu4321/Kyrix
/rebuild-citus
UTF-8
324
2.59375
3
[]
no_license
#!/bin/bash TAG=${1:-asah/pg11_postgis25_citus811:1.4} sudo docker build . -f Dockerfile-citus-debian -t $TAG sudo docker push $TAG sed -i "s@image: .*@image: $TAG@" worker-deployment.yaml sed -i "s@image: .*@image: $TAG@" master-deployment.yaml echo "docker build successful and {master,worker}-deployment.yaml updat...
true
7dedac8c8df2ca1d1181715a2dec17d393196020
Shell
smr97/sort_benchmarking
/rust/run.sh
UTF-8
276
2.90625
3
[]
no_license
#!/bin/bash PROBLEM_SIZE=$1 NUM_THREADS=$2 FLAG="$(($NUM_THREADS-1))" cd $(readlink -f "$(dirname "$0")") set -ex source $HOME/.profile echo ${NUM_THREADS}" threads" RUSTFLAGS="-C target-cpu=native" taskset --cpu-list 0-$FLAG cargo run --release $PROBLEM_SIZE $NUM_THREADS
true
e6a88b4d4e00971ab2a246e7c710dbbcad29e63f
Shell
dirkaholic/kyoo
/examples/sqsworker/setup/setup-localstack.sh
UTF-8
1,075
2.6875
3
[ "MIT" ]
permissive
#!/bin/bash # create S3 bucket, topic adn queue for images awslocal s3 mb s3://local-kyoo-bucket awslocal sns create-topic --name kyoo-images-topic awslocal sqs create-queue --queue-name kyoo-images-queue # allow SNS to send message to SQS queue jq -c '. | { Policy: @text }' /config/sqs-permission.json > /tmp/sqs.jso...
true
3ad38895c79c38d3bf98a279891498a500f7b32b
Shell
peplin/dotfiles
/git/squashall.sh
UTF-8
463
4.125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Squash all commits since the current HEAD forked from upstream. Optionally # provide a custom message, otherwise uses the message from the first commit. set -e squash_all() { message=$1 first_commit=$(git log @{upstream}..HEAD --pretty=format:"%h" | tail -1) git reset --soft $first_...
true
c7341ec6b99d92f8ff8659cef2a706b3a5d38739
Shell
jayrfink/infracode
/syssrc/sh/stopinstances.sh
UTF-8
347
3.359375
3
[]
no_license
#!/bin/bash # Where Tag Name is Type and Value is $1 aws_cmd_desc="aws ec2 describe-instances" aws_cmd_stop="aws ec2 stop-instances --instance-ids" pattern=$1 for n in `$aws_cmd_desc --filters Name=tag-value,Values=$pattern|\ grep InstanceId|awk '{print $2}'|sed s/\"//g|sed s/\,//` do echo "Stopping $...
true
d3a0eeb867358809a66c8b3651c4ad7238c7cdd0
Shell
npo-poms/api
/bash/schedule/summarize.sh
UTF-8
398
2.875
3
[]
no_license
#!/usr/bin/env bash type=search if [ ! -z $1 ] ; then type=$1 fi if [ $type == "search" ] ; then pref=".result" else pref="" fi jsongrep -output VALUE \ -sep ' ' \ -recordsep $'\n'\ -record 'items.*' \ "$pref.channel,$pref.start,$pref.midRef,$pref.media.objectType,$pref.m...
true
cae271f4aa1eed5b0c7b4b1e3b5145de2332faf2
Shell
dnmczsw/brcr-update
/install.sh
UTF-8
496
2.90625
3
[ "MIT" ]
permissive
#!/bin/bash [[ $(id -u) -eq 0 ]] || { echo "This script must be run as root"; exit 1; } export PATH="${PATH/\/usr\/local\/bin:/}" cd /usr/local rm -rf "__brcr" mkdir __brcr cd __brcr curl -L -o brcr-update https://raw.githubusercontent.com/BiteDasher/brcr-update/master/brcr-update curl -L -o unzip https://raw.githubuse...
true
8576fbedff64b0284f68d4c71fa3829596a6916b
Shell
dosxuz/Workspace_creator
/create_wkps.sh
UTF-8
325
3.40625
3
[]
no_license
#!/bin/bash read -p "Enter the number of workspaces to create : " n for i in $(seq 1 $n) do echo "Creating workspace $i" read -p "Enter the name of the first workspace : " name mkdir $name cd $name mkdir notes/ notes/Pictures nmap filename="${name}.md" cd notes/ touch $filename cp -r ~/.obsidian . cd ../../ ...
true
e19ccdb68d19dfee56f7ab65ccb8da6b8809adfc
Shell
rgerganov/tpm2-tools
/test/integration/tests/activecredential.sh
UTF-8
1,495
3.09375
3
[ "BSD-3-Clause" ]
permissive
# SPDX-License-Identifier: BSD-3-Clause source helpers.sh cleanup() { rm -f secret.data ek.pub ak.pub ak.name mkcred.out actcred.out ak.out \ ak.ctx session.ctx # Evict persistent handles, we want them to always succeed and never trip # the onerror trap. tpm2_evictcontrol -Q -C o -c 0x81010009 2>...
true
bc206f04ae427fe2d3206c39ad0abd14e57e55df
Shell
Rb-tech-byte/open5gs-k8s
/generate-configs
UTF-8
2,094
3.171875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e HERE=$(dirname "$(readlink --canonicalize "$BASH_SOURCE")") . "$HERE/_env" ETC=$HERE/work/etc rsync -v --recursive --exclude='*.pem' $HERE/work/dist/etc/* "$ETC/" #MONGODB_URI=$(kubectl get mongodbcommunity open5gs-mongodb --output=jsonpath={.status.mongoUri}) #MONGODB_URI="mongodb://user:passwor...
true
c983ef69d0a25bc3f17ba13cfbf70ac291e5fc0d
Shell
jammsen/docker-the-forest-dedicated-server
/usr/bin/servermanager.sh
UTF-8
2,632
3.890625
4
[]
no_license
#!/bin/bash # SteamCMD APPID for the-forest-dedicated-server SAVEGAME_PATH="/theforest/saves/" CONFIG_PATH="/theforest/config/" CONFIGFILE_PATH="/theforest/config/config.cfg" function isServerRunning() { if ps axg | grep -F "TheForestDedicatedServer.exe" | grep -v -F 'grep' > /dev/null; then true else...
true
61119fb014b69df2509e33b6c13ab3878fa2a5f5
Shell
Sumanshu-Nankana/Linux
/Bash/Cut #4.sh
UTF-8
117
2.65625
3
[]
no_license
# https://www.hackerrank.com/challenges/text-processing-cut-4/problem while read line do echo $line | cut -c -4 done
true
849075033a92e1170af76c54449a90035c45b60e
Shell
creativefloworg/creativeflow
/creativeflow/datagen/mp4_to_frames.sh
UTF-8
677
4.03125
4
[ "MIT" ]
permissive
#!/bin/bash -e set -o nounset USAGE="$0 inputfile.mp4 /path/to/output/frameprefix%06d.png" if [ $# -lt 2 ]; then echo "$USAGE" exit fi INFILE="$1" OFRAMEPATTERN="$2" ODIR=$(dirname "$OFRAMEPATTERN") mkdir -p "$ODIR" # First we extract to temporary directory TDIR=$ODIR/tmp$RANDOM mkdir "$TDIR" TMPPATTERN=$...
true
7d131533a640480936fbaba770e5a49c88bb214d
Shell
viraj99/serendipity-api
/projects/spring-boot/server/services/jasperreports-server/scripts/wait-for-container-to-exit.sh
UTF-8
1,231
3.5
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Use this script to test if a container has exited CONTAINER=$1 # When you're curling the unix socket, you only need a single / # API_SERVER=http:/v1.24 API_SERVER=http:/docker while : do INSPECT_CONTAINER=`curl --silent --unix-socket /var/run/docker.sock ${API_SERVER}/containers/${CONTAINER}...
true
4ab3325cf0d56fae33dc1e4de7afb88883c9fa9e
Shell
scheehan/log_replicator
/log_sender.sh
UTF-8
4,159
3.671875
4
[ "MIT" ]
permissive
#!/usr/bin/bash ''' Use it with your own risk. This bash script will dynamically generate data value base upon date and time retrieved from system, dummy IP addresses, ports, and serial number bash script need to rely on system to open udp network connectivity ...
true
c8d8aaaf0dac259a6eed5f9fcdea85e0e18ad9c5
Shell
cherylling/OS-kerneltest
/测试套/debug_perf_t/debug_perf_t_src/testcase/at/perf_v1r2c00_record_tc002.sh
GB18030
1,687
2.828125
3
[]
no_license
#!/bin/bash ####################################################################### ##- @Copyright (C), 1988-2013, Huawei Tech. Co., Ltd. ##- @Suitename: opt_perf_t ##- @Name: perf_v1r2c00_record_tc002 ##- @Author: y00197803 ##- @Date: 2013-4-17 ##- @Precon: 1.֧perf ##- @Brief: perf record -A2 ##- @Detail: 1.perf recor...
true
cbb2910d84c1fad96d4e72d449d39d252066c08a
Shell
zeheater/dotfiles
/.local/share/jwm-scripts/runmenu.sh
UTF-8
1,656
4.3125
4
[]
no_license
#!/bin/bash # Shows a run menu with calculator support. # Deps: # - rofi (can easily be converted to dmenu) # - bc or python (either version 2 or 3) for calculations # - notification system setup (`notify-send` should work properly) # Running: # - Save the file to anything.sh # - chmod +x anything.sh # - ./...
true
26f82a08d4c4fe20e0704932dba9b4b93f244f0f
Shell
jppferguson/dotfiles
/homebrew/path.zsh
UTF-8
118
2.75
3
[]
no_license
# Add Homebrew to PATH on M* Macs if [[ "$(uname -m)" == "arm64" ]]; then export PATH="/opt/homebrew/bin:${PATH}" fi
true
3836b39315a6231cf71ee5b7df8acf4d71291534
Shell
crowdbotics/blueprint-react-native-articles-screen
/blueprint-lib/docker.sh
UTF-8
416
3.828125
4
[]
no_license
#!/bin/bash ## # Docker related functions ## # Define file paths DOCKER_DOCKERFILE_PATH="$BASE_PATH/Dockerfile" ## # Add a system dependency to the dockerfile ## add_dockerfile_dependency() { if [ -f "$DOCKER_DOCKERFILE_PATH" ] && ! grep -q $1 $DOCKER_DOCKERFILE_PATH then echo "Adding dependency $1 to Docker...
true
90e383a94eba4862210ec560d7f4dd4b133bd568
Shell
gggeek/pake
/bin/pake.sh
UTF-8
766
3.609375
4
[ "MIT" ]
permissive
#!/bin/sh # # Shell wrapper for pake (based on Phing shell wrapper) # $Id: pake.sh 67 2005-10-08 11:50:16Z fabien $ # # This script will do the following: # - check for PHP_COMMAND env, if found, use it. # - if not found assume php is on the path # - check for PAKE_HOME env, if found use it # - if not look for it #...
true
9854138d8ad55d243aab371aefcf103f2382ea6c
Shell
flyzjhz/DWR-956_decrypted_fw
/decrypted_and_extracted/dwr956_v1.0.0.8/root/etc/rc.d/url_filter
UTF-8
1,185
3.828125
4
[]
no_license
#!/bin/sh #$1=url OUTPUT="/tmp/cmd_output" flush_output() { echo "" > "$OUTPUT" } SED="/bin/sed" if [ ! "$ENVLOADED" ]; then if [ -r /etc/rc.conf ]; then . /etc/rc.conf 2> /dev/null ENVLOADED="1" fi fi if [ ! "$CONFIGLOADED" ]; then if [ -r /etc/rc.d/config.sh ]; then . /etc/rc.d/config.sh 2>/dev/null CO...
true
54cf9a5c1b4109e1397576bff85d583337f8bac0
Shell
GDSourceMakers/TileMap
/Scripts/build.1.sh
UTF-8
638
2.96875
3
[]
no_license
#! /bin/sh # Example build script for Unity3D project. See the entire example: https://github.com/JonathanPorta/ci-build # Change this the name of your project. This will be the name of the final executables as well. project="Tile-Map" travisUnity="/Applications/Unity/Unity.app/Contents/MacOS/Unity" unityPath="$tr...
true
fa478d7a7c54088e265546e8c6c4fe4fd647a43d
Shell
wisezt/git_practise_2019_Nov
/section4/t04.sh
UTF-8
190
2.9375
3
[]
no_license
#! /bin/bash read -p "Input Name:" name if [ -z $name ]; then echo "Empty" else echo "$name" fi exit echo "line 1" echo "line 2" echo "line 3" exit echo "line 4" echo "line 5"
true
b6ef9a8f513805e43f3b36915545bf1579ba0db8
Shell
veeramarni/Oracle-EBusiness-Suite-Clone-Automation
/function_lib/io_calibrate.sh
UTF-8
470
2.90625
3
[]
no_license
io_calibrate() { dbname=$1 ldbname=`echo "$dbname" | tr [A-Z] [a-z]` orasid="$dbname"1 lorasid="$ldbname"1 export ORACLE_SID="$orasid" if [ $dbname == "DBM01" ] then lorasid="$ldbname"1 export ORACLE_SID="$lorasid" export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1 else export ORACLE_HOME=/u01/app/oracle/...
true
44d5657e3726fc93d82fca8b18a1a68b26ef8218
Shell
jtmieg/AceView
/waceview/cgiclean
UTF-8
421
3.375
3
[]
no_license
#!/bin/sh # # This program cleans up after context files used by pfam.cgi # Run it from cron with this entry: # 58 * * * * /bin/sh /a/mark/query_temp/cgi_clean # cd /net/vesta/a/mark/query_temp TZ=gmt0 export TZ now=`date +ctx-%j%H-` list=` ( ls ctx* | grep -v '^'$now ) 2>/dev/null ` f...
true
1e7a3b2ef5894f750d646c5b46cee04ff9ac819a
Shell
gerritjvv/pseidon
/pseidon-hdfs/pkg/rpm/init.sh
UTF-8
3,025
3.515625
4
[]
no_license
#!/bin/bash # chkconfig: 2345 20 80 # description: pseidon-hdfs # PATH=/usr/bin:/sbin:/bin:/usr/sbin export PATH OK_STAT=0 DEAD_STAT=1 UNKOWN_STAT=4 mkdir -p /var/lock/subsys [ -f /etc/sysconfig/pseidon-hdfs ] && . /etc/sysconfig/pseidon-hdfs lockfile=${LOCKFILE-/var/lock/subsys/pseidon-hdfs} gcronsd="${GCRONSD-/op...
true
43db7b4cc8b9f25a5f90f232bf9474037f0cbb60
Shell
yagamy4680/vagrant-boxes
/externals/init
UTF-8
279
3.125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash CURRENT=$(pwd) cd $(dirname $0) EXTERNAL_DIR=$(pwd) cd ${CURRENT} if [ ! -d "${EXTERNAL_DIR}/dotfiles" ]; then git clone https://github.com/yagamy4680/dotfiles.git ${EXTERNAL_DIR}/dotfiles cd ${EXTERNAL_DIR}/dotfiles git submodule init git submodule update fi
true
ca7b36e885f01106625d9e1cf69efebecb75142b
Shell
ilovedanzi521/deploy-center
/repo/init.sh
UTF-8
2,849
3.625
4
[]
no_license
#!/bin/sh # "init.sh <remote_addr> [remote_port] echo "Start $0 $*" # initialize env variable # manual configure FTP_SERVER and FTP_PORT CC_FTP_SERVER=192.168.0.72 CC_FTP_PORT=21 CC_FTP_ROOT=/pub/repo CC_FTP_USER=ftp CC_FTP_PSWD=ftp CC_HOME_DIR=~/repo CC_PACKAGES_DIR=$CC_HOME_DIR/packages CC_PACKAGES_TOOL_DIR=$CC_HOM...
true
03aa6f9a538dd96f97a3a80219d0b4ab43d81bb9
Shell
matt2005/prebuilts
/buildsystem/99_copy_compiled_files.sh
UTF-8
1,283
3.5
4
[]
no_license
#!/bin/bash # Set current folder as home HOME="`cd $0 >/dev/null 2>&1; pwd`" >/dev/null 2>&1 # Create output folder if [ ! -d BINARY_FILES ]; then mkdir BINARY_FILES fi # Copy aasdk so's if [ -f ./aasdk/lib/libaasdk.so ]; then cp ./aasdk/lib/libaasdk.so ./BINARY_FILES/ fi if [ -f ./aasdk/lib/libaasdk_proto....
true
a18c20c968d3faa3a1b470cd7a06ea0584021fd9
Shell
mdinos/bash-session-scripts
/.bash_aliases
UTF-8
457
3.453125
3
[]
no_license
#!/bin/bash alias ls="ls --color=always" alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' export SENDAT_HOME=/home/marcus/git/me/sensors-data alias sendat='${SENDAT_HOME}/sendat.py' alias await=await await () { attempts=0 rc=1 while [[ $rc != 0 ]]; do echo "Trying to execute \"${@}\", ${attempts} a...
true
17c417f65b857fd9a39a103cc07f6bd187474b54
Shell
ElmWizard/unix-linux
/shellscript/test2.sh
UTF-8
408
3.9375
4
[]
no_license
#!/bin/bash # test-integer2: evaluate the value of an integer INT=-5 if [[ "$INT" =~ ^-[0-9]+$ ]]; then if [ $INT -eq 0 ]; then echo "INT is zero" else if [ $INT -lt 0 ]; then echo "INT is less than zero" else echo "INT is greated than zero" fi if [ $((INT % 2)) -eq 0 ];then echo "INT is even" ...
true
8dea815bd98b949bbe41902a98f2c26535f4c200
Shell
andrew-d/bbuild
/recipes/cross-libtool/build.sh
UTF-8
845
3.328125
3
[]
no_license
pkgname="cross-libtool" pkgdesc="Installs a cross-compiler libtool" pkgver="2.4.6" sources=( "http://ftpmirror.gnu.org/libtool/libtool-${pkgver}.tar.gz" ) sums=( "bad" ) library=true binary=false dependencies=() # Common variables. _builddir="$BBUILD_SOURCE_DIR/$pkgname-$pkgver" function build() { cd ...
true
7aa8eb19c38b509afaaf32f9a6c611eb4b6c5ec0
Shell
mikhailnov/spec-helper
/relink_symlinks
UTF-8
1,581
4.09375
4
[]
no_license
#!/bin/sh # We cannot use "readlink -f" command because it doesn't know about $RPM_BUILD_ROOT # and follows symlinks on real filesystem instead of $RPM_BUILD_ROOT readlink_f() { __symlink="`readlink \"$1\"`" if [ -z "$__symlink" ] then echo $1 | sed s,"$RPM_BUILD_ROOT",, else readlink_f...
true
81349a0d355d605ffda8e0a69dddfe953a970013
Shell
scirelli/Terraria_Docker
/.docker/build.sh
UTF-8
374
2.703125
3
[]
no_license
#!/usr/bin/env bash worldName=${1:-'Doc Ock'} docker rmi $(docker images -f "dangling=true" -q) docker build \ --build-arg TERRARIA_DOWNLOAD='https://terraria.org/system/dedicated_servers/archives/000/000/038/original/terraria-server-1404.zip' \ --build-arg EXTRACTED_FOLDER_NAME='1404' \ -t "scirelli/terra...
true
9801e42b9ed7d4dde9c4749a5dfb8dedf309c617
Shell
mihic/clanek-matrike
/programi/auto_optimize/auto_optimize.sh
UTF-8
4,295
3.328125
3
[ "MIT" ]
permissive
#!/bin/bash optimize_recursive(){ file_name="resoults_recursive.txt" resoult_string="" a=16 b=2 c=32 d=500 e=100 f=1500 echo $a echo $b echo $c mkdir Output resoult_string+="Tests \n" resoult_string+="Velikosti dim: \n" for ((i=$a;i<$c;i+=b)); do ...
true
d229fb5df1f02cbe0d3f839e0193f7fc8a0947f9
Shell
o-ran-sc/it-test
/test_scripts/O2IMS_Compliance_Test/mock.sh
UTF-8
2,377
3.21875
3
[ "Apache-2.0", "CC-BY-4.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # $1 mocker server host # $2 mocker server port if [ "$#" -ne 2 ]; then echo "need 2 arguments" exit 1 fi export mockserver_host=$1 export mockserver_port=$2 export SMO_ENDPOINT="https://${mockserver_host}:${mockserver_port}/mockserver" VALID_CLOUD_OBSERVER="{ \"id\": \"mock_smo_registration\", ...
true
2254cc3a91aebe7ed2bcb8174e905cffee6a90d2
Shell
tc-ca/webapp-quickstart
/setup.sh
UTF-8
4,869
3.515625
4
[]
no_license
#!/bin/bash echo "This will delete existing .env, credentials and metadata!" echo "Windows users: make sure this is running in winpty" echo "Linux users: this might need to be run as root since the folders the docker process creates aren't managed by the normal user" read -p "Press enter to continue" # Breaks on windo...
true
b9e49a87a9849f318b9fc4480028947773240eca
Shell
shvenkat/dotfiles
/installers/install-tlaplus-proofsystem
UTF-8
847
3.546875
4
[]
no_license
#!/bin/bash set -e -o pipefail -u # License: BSD License # (https://tla.msr-inria.inria.fr/tlaps/content/Download/License.html). # Source: https://tla.msr-inria.inria.fr/tlaps/dist/current/tlaps-1.4.3.tar.gz # Instructions: https://tla.msr-inria.inria.fr/tlaps/content/Download/Source.html url='https://tla.msr-inria.i...
true
5895cb9f20c845c46bc67f8bf369c04e6fa43522
Shell
uc-cdis/cloud-automation
/gen3/bin/monitor-pod.sh
UTF-8
1,616
3.90625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # kubescope is a tool that would let you monitor a pod more easily and in real time # # Load the basics source "${GEN3_HOME}/gen3/lib/utils.sh" gen3_load "gen3/lib/kube-setup-init" if [[ -n "$JENKINS_HOME" ]]; then echo "Jenkins skipping fluentd setup: $JENKINS_HOME" exit 0 fi if [ $# -eq 0 ];...
true
03d5453c7514755211cb4702140d4f62661c4e3e
Shell
samoshkin/tls-nginx-strong-example
/cron/renew_certs.sh
UTF-8
877
3.390625
3
[]
no_license
#!/usr/bin/env bash set -eux # Since we start our services using docker compose, # volume, images and containers are prefixed with COMPOSE_PROJECT_NAME DOCKER_PREFIX="${PROJECT_NAME}_"; # Run 'asamoshkin/letsencrypt-certgen' image to renew certificates docker run \ -v ${DOCKER_PREFIX}ssl:/var/ssl \ -v ${DOCKER_...
true
5ebd7ab5b9fb9521c2cad210b4d4c1615a6009e6
Shell
jaczkal/lightning-systemic-attack
/sh/dot2jpg
UTF-8
218
3.484375
3
[]
no_license
#!/usr/bin/env bash IN=$1 OUT=$2 if [[ -z $IN ]] || [[ -z $OUT ]]; then echo "usage: dot2jpg INPUT.dot OUTPUT.jpg [dpi=300]" exit 1 fi DPI=300 if [[ ! -z $3 ]]; then DPI=$3 fi dot -Tjpg -Gdpi=300 $IN -o $OUT
true
950745fceb0bf252716322555663f38b96b3917d
Shell
mkwon0/qemu-init
/test-web/install.sh
UTF-8
819
3.421875
3
[]
no_license
#!/bin/bash WORK_DIR=/home/mkwon install_pre() { yum install -y git cd $WORK_DIR && git clone https://github.com/nanoninja/docker-nginx-php-mysql.git } configure_ssl() { cd $WORK_DIR/docker-nginx-php-mysql && \ source .env && \ docker run --rm -v $(pwd)/etc/ssl:/certificates -e "SERVER=$NGINX_HOST" jacoelho/gen...
true
6179fd31fa19909c1373aa268e644f0851a23ae4
Shell
csfera/openstack-ccp
/sync.sh
UTF-8
590
2.984375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash REPOS=( 'openstack-helm' 'openstack-helm-infra' ) TGTS=( 'k8s-m' 'k8s-w0' 'k8s-w1' 'k8s-w2' 'k8s-w3' ) SSH_OPTIONS=(-o StrictHostKeyChecking=no -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null -o LogLevel=error) for tgt in "${TGTS[@]}" ; do ssh ${SSH_OPTIONS[@]} ubuntu@${tgt} "sudo chow...
true
f74f0b369d44cfd2ac32dfe986c8092754e705f8
Shell
joaofel-u/Data_Structures
/exec_gtest_cpp.sh
UTF-8
208
3.015625
3
[]
no_license
#!/bin/bash if [ "$#" -lt 2 ]; then echo "Params[Diretorio][Nome arquivo de teste]" else g++ $1/$2.cpp /usr/lib/libgtest.a -o test.bin -fPIC -g -Wall -lpthread -std=c++11 ./test.bin rm test.bin fi
true
a47b28a7eacc9387fe5bee7102134b3d2c8c33df
Shell
nkininge/provisioning_new_latest
/setup-slaves/roles/jenkins-slaves/files/S99massageHostname
UTF-8
436
3.375
3
[]
no_license
#!/bin/sh ### BEGIN INIT INFO # Provides: massageHostname # Required-Start: # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Massage hostname to FQDN ### END INIT INFO set -e realHost=` curl -s http://169.254.169.254/latest/meta-data/hostname ` case "$realHost" in *.*) hostname...
true
0d435794b56cfc9adcb043103433e5c03fe1c776
Shell
jafingerhut/p4-guide
/p4runtime-translation/compile.sh
UTF-8
252
3.046875
3
[]
no_license
#! /bin/bash P4C="p4c" for j in weird-case*.p4 do k=`basename $j .p4` echo "------------------------------------------------------------" set -x ${P4C} --target bmv2 --arch v1model --p4runtime-files ${k}.p4info.txt $j set +x done
true
efa93c2e683b7fb7ea8bc29181424955af7ce0f4
Shell
byb121/ExomePipe_NCL_IGM
/GATK_Variant_Call_pipe/Annotation/Launcher_VCF_filters.sh
UTF-8
2,366
3.21875
3
[]
no_license
#! /bin/bash ################## Paras need to be adjusted for diff samples ############## INALL=(D05685 D08064 D10020 D100563 D11016 D114041 D115022 D122641 D122836 D13415 D146989 D163417 D164942 D169918 D170484 D171748 D171987 D174381 D36421 D62925 D83732 D86968 D88892 D9646 D99945 D16618_D050227_D62018 D122836_D9994...
true
2a1dd64927a2fa99145b60a5bcea6bf124bc7be4
Shell
CRamsan/Customization
/deploy_termux.sh
UTF-8
499
2.75
3
[ "MIT" ]
permissive
#!/data/data/com.termux/files/usr/bin/bash find Customization/ -type f -name "*.sh" -exec termux-fix-shebang {} \; . deploy.sh for file in $@; do # Do realpath to avoid breaking symlinks (modify original file): sed -i -E "1 s@^#\!/data/data/com.termux/files/usr/bin/\!(.*)/bin/(.*)@#\2@" `realpath $@` done for f...
true
5f60ffa9b1682df41f52b10a5856b869b726a8a6
Shell
ubnt-intrepid/msgpack-rpc-rs
/scripts/deploy_doc.sh
UTF-8
431
2.953125
3
[ "Apache-2.0", "MIT" ]
permissive
#!/bin/sh set -euo pipefail TRAVIS_BRANCH=$1 TRAVIS_RUST_VERSION=$2 GH_TOKEN=$3 TRAVIS_REPO_SLUG=$4 if [[ "${TRAVIS_BRANCH:-}" = "master" ]] && [[ "${TRAVIS_RUST_VERSION}" = "stable" ]]; then cargo doc --all-features --no-deps # cargo install --force cobalt-bin # cobalt build -s site -d target/doc ...
true
38bd29f8da1bd7dcd9299a6976c2ed294690f117
Shell
csdms/ccaffeine
/cxx/util/genDLIndexXML
UTF-8
1,250
3.265625
3
[]
no_license
#!/bin/sh # This script generates an xml index file for the library # given, under loose cca assumptions. dstring=`date` pstring=`pwd`/ palias="paletteClassAlias=\"$3\"" if test "x$4" = "x" ; then echo "$0:usage: <libname> <constructorName> <className> <install-lib-dir> <palette-alias> <bindingType>" exit 1 fi if ...
true
d3e979ecc629b6e777f555725c653496b9e8454e
Shell
lonesafe/openwrt-packages
/luci-app-cloudflarespeedtest/root/usr/bin/cloudflarespeedtest/cloudflarespeedtest.sh
UTF-8
9,056
3.359375
3
[ "MIT" ]
permissive
#!/bin/sh LOG_FILE='/var/log/cloudflarespeedtest.log' IP_FILE='/usr/share/cloudflarespeedtestresult.txt' IPV4_TXT='/usr/share/CloudflareSpeedTest/ip.txt' IPV6_TXT='/usr/share/CloudflareSpeedTest/ipv6.txt' function get_global_config(){ while [[ "$*" != "" ]]; do eval ${1}='`uci get cloudflarespeedtest.global.$1`' 2...
true
4c3353c90b66c7efed4686b92a0bbba8e760026d
Shell
PaNOSC-ViNYL/oasys-installation-scripts
/Developers/install_xraylib_from_github.sh
UTF-8
1,319
3.078125
3
[ "MIT" ]
permissive
#!/bin/bash #=============================================================================== # # script to update/install xraylib from github in linux # # Note that one must install libtool with apt-get # #=============================================================================== # # # export all_proxy=http://...
true
d777d68920214bb66ddc1b4c1d485e218b70fe8a
Shell
CognitiveScale/generator-cortex
/generators/datasets/templates/scripts/linux/publish-dataset.sh
UTF-8
300
2.96875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Run the build ${SCRIPT_DIR}/build-dataset.sh # Publish dataset to Cortex Marketplace cortex marketplace datasets save "${SCRIPT_DIR}/build/dataset.zip" # Delete zip rm -rf "${SCRIPT_DIR}/build/dataset.zip"
true
1bed81da91ccdb262da0e628be3c4ef2c3c74014
Shell
AlexGroves/dotfiles
/.exports
UTF-8
1,160
2.84375
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
#!/usr/bin/env bash # Make nano the default editor. export EDITOR='nano'; # Make Python use UTF-8 encoding for output to stdin, stdout, and stderr. export PYTHONIOENCODING='UTF-8'; # Increase Bash history size. Allow 32³ entries; the default is 500. export HISTSIZE='32768'; export HISTFILESIZE="${HISTSIZE}"; # Omit ...
true
b33dede46b1e2ed1456236d5ebd8f0dda620b24a
Shell
yajiedesign/mxnet_cd_demo
/demo/mxnet-distro/scripts/set_environment.sh
UTF-8
2,574
3.453125
3
[]
no_license
#!/usr/bin/env bash if [ $# -lt 1 ]; then >&2 echo "Usage: source set_environment.sh <VARIANT>[CPU|MKL|CU75|CU80|CU90|CU75MKL|CU80MKL|CU90MKL]" fi echo $PWD export DEPS_PATH=$PWD/deps export VARIANT=$(echo $1 | tr '[:upper:]' '[:lower:]') export PLATFORM=$(uname | tr '[:upper:]' '[:lower:]') # Variant-specific de...
true
5f8dd56310b308cfcb1f8a04fde9655e8840ddf5
Shell
mattfoster/ff-docker
/entrypoint.sh
UTF-8
296
2.625
3
[]
no_license
#!/bin/bash : ${PASS:=$(dd if=/dev/urandom bs=1 count=15 2> /dev/null | base64 )} x11vnc -storepasswd $PASS ~/.vnc/passwd 2> /dev/null echo "VNC password is: ${PASS}" echo "Connect to vnc://127.0.0.1:5900 (assuming you forward that port!)" x11vnc -forever -usepw -create > /dev/null 2>&1
true
ba6a1654459d471b88886f56bdf992f7f4a8512a
Shell
openov2/integration
/test/csit/plans/sdno-lcm/tosca-template/setup.sh
UTF-8
5,766
2.78125
3
[]
no_license
#!/bin/bash # # Copyright 2016-2017 Huawei Technologies Co., Ltd. # # 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 app...
true
c8c55525c6dc8db4548ffd3ff7efe7f843e1a195
Shell
chriswininger/home-monitor-service
/live-cam/coop-image-downloades/dl-all-folders.sh
UTF-8
213
2.921875
3
[ "MIT" ]
permissive
#!/bin/bash base_path=s3://coop-cam-uploads aws s3 ls "$base_path" | grep 'PRE ' | while read line ; do directory=${line#"PRE "} directory=${directory%"/"} ./dl-folder.sh "$directory" done
true
0405edb5ed0af778b646503f4ae7cbc00fbe091f
Shell
dougwyu/HJA_analyses_Kelpie
/HJA_scripts/04_kelpie/scripts_for_unfiltered_kelpie/1_launch_kelpie.sh
UTF-8
3,152
3.078125
3
[ "MIT" ]
permissive
#!/bin/bash set -e set -u set -o pipefail ####################################################################################### ####################################################################################### # a shell script to launch bsub files. ###############################################################...
true
0c5ce0f2de6726667c5eeec0d873df7c3badd88a
Shell
KritiS/shell-scripting-course
/section-six/exe2.sh
UTF-8
383
3.859375
4
[ "MIT" ]
permissive
read -p "Enter the exetension for the file to rename: " EXT read -p "Enter the prefix to prepend to filename: " PREFIX for n in 1 2 3 4 5 6 do touch ${n}"."${EXT} done if [ PREFIX = "" ] then PREFIX = $(date +%Y-%m-%d) fi ls *.${EXT} if [ $? -eq 0 ] then for FILE in *.${EXT} do echo "Renaming "$FILE...
true
32bd5ee8d8388aedf29419d2f976a70100b2307f
Shell
NetBSD/src
/etc/powerd/scripts/hotkey_button
UTF-8
576
3.3125
3
[]
no_license
#!/bin/sh - # # $NetBSD: hotkey_button,v 1.2 2008/01/17 00:37:46 christos Exp $ # # Generic script for hotkey events. # # Arguments passed by powerd(8): # # hotkey event PATH=/usr/pkg/bin:$PATH; export PATH # XXXJDM need a better way to determine this XUSER="$(ls -l /dev/console | awk '{ print $3; }')" DISPLAY=:0.0;...
true
3f5be155584c258a3ae894a7d632370b7b0bd525
Shell
DarthVader1977/eosio.cdt
/scripts/eosiocdt_build_centos.sh
UTF-8
5,985
3.734375
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
OS_VER=$( grep VERSION_ID /etc/os-release | cut -d'=' -f2 | sed 's/[^0-9\.]//gI' \ | cut -d'.' -f1 ) MEM_MEG=$( free -m | sed -n 2p | tr -s ' ' | cut -d\ -f2 ) CPU_SPEED=$( lscpu | grep "MHz" | tr -s ' ' | cut -d\ -f3 | cut -d'.' -f1 ) CPU_CORE=$( nproc ) MEM_GIG=$(( ((MEM_MEG / 1000) / 2) )) export JOBS=$(( MEM_GIG...
true
b80f957c574729e014be0bbaeaf49c3698b03ec5
Shell
naveenb29/solr-config-loader
/run.sh
UTF-8
883
3.296875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Use this script to load config to solr:5.5.5 counter=1 for (( c=1; c<=10; c++ )) do date -u echo " validating solr health check" curl "http://solr-svc:8983/solr/admin/collections?action=clusterstatus" if [ $? -eq 0 ] then echo "health check successful" break else echo "hea...
true
3d284235558e780cdb4ca3215f4e6cd17cb76391
Shell
pierrelarsson/bin
/mnt
UTF-8
756
3.65625
4
[ "MIT" ]
permissive
#!/bin/bash set -e [ `stat --format %m /mnt` = "/" ] PS3="> " COLUMNS=1 DEVICES=() MENU=() function getdevices { find . -maxdepth 1 -type f \ -iname "*$1*" \ -a \( -name "$1" \ -o -iname "*.iso" \ -o -iname "*.img" \ -o -iname "*.part" \ -o -iname ...
true
80d3d2cc246c8aa3b2b797aeaa6641275bb15a78
Shell
CryptosWolfOfAllStreets/zpwr
/scripts/fzfEnv.sh
UTF-8
3,097
3.421875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash #{{{ MARK:Header #************************************************************** ##### Author: MenkeTechnologies ##### GitHub: https://github.com/MenkeTechnologies ##### Date: Thu Sep 5 22:34:56 EDT 2019 ##### Purpose: bash script to ##### Notes: no single quotes allowed #}}}***********************...
true
ea927950d680f589be54fac4b09c45264adba6b5
Shell
baobaoyeye/env
/scripts/env.sh
UTF-8
1,626
2.5625
3
[]
no_license
# env for baobaoyeye's linux # for ssh timeout(s) [default = 0 mean not timeout] export TMOUT=0 # set export value # export HOME=/home/work umask 0022 export TERM=xterm-256color export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export PS1='\[\e[34;40m\][\A \[\e[31;40m\]MY \[\e[37m\]\w]\$ ...
true
3c64b0d65d8fec9e24929df9f4484b0788e131ef
Shell
arpane4c5/InstallerScripts
/step10_sparkConfigMultinode
UTF-8
2,878
3.265625
3
[]
no_license
#!/bin/bash # Do not run this as super-user # Script to install the following softwares on a fresh ubuntu 14.04 64-bit PC # 1. Steps to define the master and slave PCs and make changes in spark-env.sh # Prerequisites: # --> Install ubuntu-14.04 (64-bit) on a PC (preferably 4GB RAM) and sufficient free space # --> sudo...
true
65be1c8f019997eea8fe0fcc356654d338395aa6
Shell
savf/dotfiles
/symlink.sh
UTF-8
688
3.515625
4
[]
no_license
#!/usr/bin/env bash # Inspired by https://github.com/michaeljsmalley/dotfiles/blob/master/makesymlinks.sh dir=~/dotfiles files="profile bashrc vimrc vim bin tmux.conf lessfilter gitconfig kubectl_aliases zshrc config/starship.toml config/yabai/yabairc" echo -n "Changing to the $dir directory for correct symlinks ... ...
true
1f797b9554f48a037516b476fb8834ac8190c493
Shell
alex78160/scripts
/compare.sh
UTF-8
405
3.65625
4
[]
no_license
#!/bin/bash liste1=( `cat $1 `) liste2=( `cat $2 `) found=false count=0 for ip1 in "${liste1[@]}" do found=false for ip2 in "${liste2[@]}" do if [[ $ip1 == $ip2 ]] then found=true break fi done if ! $found then echo $ip1" pas trouve" echo $ip1 >> ip_no...
true
a4a4715d91b370a0700594b279ee69128d68c3bf
Shell
EasonBryant/LinuxShellHelper
/brackets/parentheses
UTF-8
5,259
3.953125
4
[]
no_license
#!/bin/sh command_group_usage() { echo -e "\n命令组用途:" echo -e "括号中的命令将会新开一个子shell顺序执行,所以括号中的变量不能够被脚本余下的部分使用。" echo -e "括号中多个命令之间用分号隔开,最后一个命令可以没有分号,各命令和括号之间不必有空格。\n" echo "示例:" echo -e "> vartest=\"hello\"" echo -e "> echo \$vartest" echo -e "hello" echo -e "> (vartest=\"world\";echo \$va...
true
2861bea8e59b1225ad761df5b9b48cef81274ff0
Shell
derenv/bash-kernel-signer
/bash-kernel-signer.sh
UTF-8
19,358
3.984375
4
[]
no_license
#!/usr/bin/env bash ## # # Copyright 2021 Deren Vural # # 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 ...
true
209e40a4f30804316c6040eeeeed0bd9837419b8
Shell
banqusli/first
/praxis/IT2008/primzahlen
UTF-8
800
3.84375
4
[]
no_license
#!/bin/bash # Berechnung Primzahlen if [ -z $1 ] then echo -n "Bitte maximale zu testende Zahl eingeben: " read MAX else MAX=$1 fi echo "Berechnung der Primzahlen bis "$MAX: echo echo "2" # erste Primzahl for ((k=3;k<=$MAX;k+=2)) # gerade Zahlen sind keine Primzahlen do # TMAX=`expr $k - 1` ...
true
e3739bf5a781d4c419451b8b2d9aa3d1f6e3c105
Shell
mrtos/ambarella
/kernel/external/atheros/ar6003_844/host/os/rexos/src/usdio/load.sh
UTF-8
510
2.5625
3
[]
no_license
#!/bin/sh -x DIR=.output case $1 in unloadall ) echo "..unloading all" /sbin/rmmod $DIR/usdio.ko /sbin/rmmod $DIR/sdio_pcistd_hcd.ko /sbin/rmmod $DIR/sdio_busdriver.ko /sbin/rmmod $DIR/sdio_lib.ko ;; *) /sbin/insmod $DIR/sdio_lib.ko debuglevel=0 /sbin/insmod $DIR/sdio_busdriver.k...
true
796669e2bac98e92cf0e9244a563fcd0a64f4126
Shell
DanielDlc/shellscript
/02_comandos_dentro_de_arquivos/21_uname-a_detalhado.sh
UTF-8
1,397
3.21875
3
[]
no_license
#!/bin/bash clear # informações sobre o sistema uname -a echo # pular linha após as informações uname -a # utilizar cut com delimitador " " (espaço) pegando apenas o nome do computador uname -a | cut -d " " -f2 # versão do kernel (está na terceira informação f3) uname -a | cut -d " " -f2,3 # mostrar arquitetura ...
true
e16c69603f653154f94f6b1abe4856fa3e6ad3df
Shell
Ununnilium/docker-services
/openldap/run.sh
UTF-8
1,627
3.796875
4
[ "ISC" ]
permissive
#!/bin/sh script=`readlink -f "$0"` cd "`dirname \"$script\"`" printf "Image name? " read image_name printf "Container name? " read container_name printf "Directory for permanent files? (default /srv/docker/openldap) " read directory if [ ! $directory ];then directory=/srv/docker/openldap fi if [ ! -d "$directory/...
true
a65d79f2a7ce3f6679556d280dfc46cedf593541
Shell
TrevorBender/dotfiles
/bashrc
UTF-8
2,444
3.203125
3
[]
no_license
# /etc/skel/.bashrc # # This file is sourced by all *interactive* bash shells on startup, # including some apparently interactive shells such as scp and rcp # that can't tolerate any output. So make sure this doesn't display # anything or bad things will happen ! # Test for an interactive shell. There is no need to...
true
9a99ec14e978ce7fa7a46ecb12bfac30b4686513
Shell
TheEarnest/EnKF_Script
/change_cpu_account.sh
UTF-8
354
2.953125
3
[]
no_license
source ${HOME}/NorESM/Script/personal_setting.sh start_mem=1 for (( proc = ${start_mem}; proc <= ${ENSSIZE}; ++proc )) do mem=`echo 0$proc | tail -3c` cd ${HOMEDIR}/cases/${CASEDIR}${mem}/ cat ${CASEDIR}${mem}.${machine}.run | sed \ -e "s/nn9207k/nn9039k/g" \ > toto mv toto ${C...
true