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
e2d9502bcbd5e9aea29a1389f121558fc2467315
Shell
shifi/git-aliae
/wip/git-backward
UTF-8
180
2.71875
3
[ "MIT" ]
permissive
#!/bin/bash # # Move back one step in history (towards older commits) # # If this commit has multiple parents, the first is chosen. git checkout $(git name-rev --name-only HEAD^)
true
e75f20a9e3bce1e1a1c366e3c6edbec47d1416bc
Shell
espnet/espnet
/egs/jnas/asr1/local/jnas_train_prep.sh
UTF-8
4,457
3.75
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Copyright 2019 Nagoya University (Someki Masao) and Tomoki Hayashi # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) # Prepare JNAS dataset . ./path.sh || exit 1; if [ $# -lt 2 ] || [ $# -gt 3 ]; then echo "Usage: $0 <data-directory> <speaker_text> [<trans_type>]"; exit 1; fi...
true
cb7ddb8f021bdccb8a802f77012f045d27618b5a
Shell
sebastian-king/UT-Region5-Robotics-2017
/install-a-pi.sh
UTF-8
1,129
3.03125
3
[]
no_license
#!/bin/bash echo "THE PI WILL REBOOT ONCE THIS SCRIPT HAS FINISHED RUNNING!"; read -r -p "Press X to exit the script now if you do not want to reboot " response; if [[ "$response" =~ ^([xX])+$ ]]; then exit; fi raspi-config --expand-rootfs sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo ...
true
0ca30f09b7b66081b1d59bed6aa8f0022d1ddde7
Shell
openhpc/ohpc
/components/admin/ohpc-filesystem/SOURCES/ohpc-find-requires
UTF-8
2,089
3.953125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # ohpc-find-requires #----------------------------------------------------------------------- # 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/LI...
true
4f6343f54390cc63af9a536c97ff40660bf905e1
Shell
petronny/aur3-mirror
/gendef/PKGBUILD
UTF-8
720
2.90625
3
[]
no_license
# Maintainer: Daniel Kirchner <daniel at ekpyron dot org> pkgname=gendef pkgver=1.0.1346 pkgrel=1 pkgdesc="Tool to generate .def files from dlls." arch=('i686' 'x86_64') url="http://www.mingw.org/" license=('custom') source=("https://downloads.sourceforge.net/project/mingw/MinGW/Extension/gendef/gendef-1.0.1346/gendef...
true
da347626166a468ba4fe2993a10bce2cfcd3d6a0
Shell
jaikejennison/pure-aptRGB
/pure-aptRGB-install
UTF-8
652
3.4375
3
[]
no_license
#! /bin/bash if [ -d $1 ]; then echo ''; echo -e "\e[1;31m------------\e[0m" echo -e "\e[0;37mInstall Tool:\e[0m" echo -e "\e[1;31m--------------------------------------------------------------\e[0m" read INSTALL_QUERY QUIT="quit" if [ "$QUIT" = "$INSTALL_QUERY" ]; then exit else sudo apt -y install "$INST...
true
cfa384fa182d8e6c74f6cd77f20279f33adfd4e9
Shell
bikash/ScriptsDebian
/GPUec2.sh
UTF-8
1,908
2.828125
3
[]
no_license
#!/bin/bash ## reference http://tleyden.github.io/blog/2015/11/22/cuda-7-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/ #Install CUDA repository wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.d...
true
78cba443b3794e40b9ebaf8ec5aae64077cd36d0
Shell
dwharve/rock
/bin/deploy_rock.sh
UTF-8
8,036
3.828125
4
[ "BSD-3-Clause" ]
permissive
#!/bin/sh # #Info ######################### # file: deploy_rock.sh # name: Deploy Rock Script # # # Description ######################### # Deploys ROCKNSM using the playbook associated based of option of playbooks. # # # Notes ######################## # # # Functions ######################### # Main function to call...
true
479db56778097793448d863878b36e4e29f91ed2
Shell
stefansundin/dotfiles
/snippets-ubuntu.sh
UTF-8
1,631
3.1875
3
[]
no_license
multipass launch --name primary focal # make multipass use iTerm2 on macOS: duti -s com.googlecode.iTerm2 com.apple.terminal.shell-script shell # screenshot from terminal sudo apt-get install scrot sleep 5 && scrot screenshot.png # sudo forget password sudo -K # search for a package apt-cache search vim # show pack...
true
a9769f274dd3c2d14273585e750e1b75fa365b7b
Shell
crgk/dotfiles
/findreplace.zsh
UTF-8
355
3.34375
3
[]
no_license
# Recursive Find and Replace # Usage: # # Replace all "bad" with "good" in files ending in ".txt" # findreplace bad good txt # # Replace all "bad" with "good" in .java files in the src/main directory # findreplace bad good java src/main function findreplace () { find ${4:-.} -type f -name "*.${3:-java}...
true
97dfe09b18153649b476170c2baded521cad373f
Shell
caffeinum/pravda.contracts
/tests/balance_check.sh
UTF-8
230
2.984375
3
[ "Apache-2.0" ]
permissive
#!/bin/sh CURDIR=`pwd`/$(dirname $0) source $CURDIR/../setup_env # test 1 BALANCE=`curl -s $NODE/balance?address=$ADDRESS` echo $BALANCE if [[ $BALANCE != 0 ]]; then echo '+ balance passed' else echo '- balance failed' fi
true
c2824edfd8a9cc292db9f9577c716aff60db088c
Shell
tribusonz/jburkardt-c
/c/linked_list_vector.sh
UTF-8
503
3.015625
3
[]
no_license
#!/bin/bash # gcc -c linked_list_vector.c if [ $? -ne 0 ]; then echo "Errors compiling linked_list_vector.c." exit fi # gcc linked_list_vector.o -lm if [ $? -ne 0 ]; then echo "Errors linking linked_list_vector.o." exit fi # rm linked_list_vector.o # mv a.out linked_list_vector ./linked_list_vector > linked_lis...
true
b71bbb839ddd87728643002dea8c6d0121221c59
Shell
targetbench/redis
/run_server.sh
UTF-8
170
2.796875
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash TOPDIR=${0%/*} cd $TOPDIR #Start start_cpu_num=1 inst_num=2 end_cpu_num=$[$start_cpu_num+$inst_num-1] scripts/start_server.sh $start_cpu_num $end_cpu_num
true
e1aaab384aff81c8a72be54dea01bdfac427d7d0
Shell
bdzim/netkes
/bin/backup_omva.sh
UTF-8
803
3.375
3
[]
no_license
#!/bin/bash # Backup script for the OpenManage Virtual Appliance. # Today: Generates a tarball with the important-to-backup data. # Tomorrow: This will eventually send the tarball automatically for secure offsite backup. . /etc/default/openmanage backup_workspace=$HOME/omva-backup backup_date=`date -u +%Y%m%d_%H%M` ...
true
2d9629eea3965728aeba194d9884749ccb09e9b5
Shell
codelurker/home
/scripts/nzbmatrix-postdetail.sh
UTF-8
2,798
3.40625
3
[]
no_license
#!/bin/bash # # NZB Post Details from NZBMatrix # by: MreDD # ## # NZBMatrix API Download Link MATRIX="http://nzbmatrix.com/api-nzb-details.php?" # Variables # Curl - Path to Curl CURL="/usr/bin/curl" # Elinks - Path to Elinks ELINKS="/usr/bin/elinks" # Cat - Path to Cat CAT="/bin/cat" # UserID - Add it Here USERNAME=`...
true
8fd23a27d80412a15523b3ac293729cb20238f3e
Shell
phoreproject/obp-search-engine
/apiserver/start_db_in_docker.sh
UTF-8
1,548
3.6875
4
[]
no_license
#!/usr/bin/env bash PORT=33060 DB_NAME='apiserver_db' PASS_LEN=20 NUMBYTES=`echo ${PASS_LEN} | awk '{print int($1*1.16)+1}'` NEW_PASSWORD="$(openssl rand -base64 ${NUMBYTES} | tr -d "=+/" | cut -c1-${PASS_LEN})" DOCKER_INSTANCE_NAME='apiserver_mysql' ALREADY_RUNNING=`docker inspect -f '{{.State.Running}}' ${DOCKER_...
true
3aecdaa20e85cc641adbaaa22592384d91a2e8fb
Shell
m4saosw/pkg_installer
/scripts/libs/common_lib.sh
UTF-8
27,728
3.671875
4
[]
no_license
#!/bin/sh ############################################################################# # INSTALLER PACKAGE # COMMONS LIBRARY ############################################################################# # A lib utiliza as seguintes variaveis que devem ser inicializadas pelo script chamador: # GLO_SYSTEM_FILE # GLO_GL...
true
cb4e0ecc42865a640a48c6c7ca7e404893d3ff8d
Shell
pawan3103/dockerizedDjango
/dockerconfig/postgres/backup.sh
UTF-8
468
3.671875
4
[]
no_license
#!/bin/bash # stop on errors set -e if [ "$POSTGRES_USER" == "postgres" ] then echo "creating backup" exit 1 fi # export the postgres password so that subsequent commands don't ask for it export PGPASSWORD=$POSTGRES_PASSWORD echo "creating backup" echo "===============" FILENAME=backup_$(date +'%Y_%m_%dT%H...
true
7d68d3503acd88e58b00b668d57507bfb134c399
Shell
0xNebiros/Red_Team_Class
/Carlos/Bash Scripting/Ejercicios/1. Backup/backup_3
UTF-8
2,581
4.1875
4
[]
no_license
#!/bin/bash # This bash scripts is used to backup a user's home directory to /tmp/ user=$(whoami) input=/home/$user output=/tmp/${user}_home_$(date +%Y-%m-%d_%H%M%S).tar.gz function total_files { find $1 . -type f | wc -l } function total_directories { find $1 -type d | wc -l } # En estas nuevas funciones se es...
true
cf75c229524f2e0dcfd4d794fc8547ff7b4c8a09
Shell
dj0nz/lxwrx
/iperf-server.sh
UTF-8
865
3.84375
4
[]
no_license
#!/bin/bash # purpose: # quick and dirty solution to start/stop an iperf3 server on default port 5201/tcp # adjust permissions and create symlink in /usr/local/bin to run it from everywhere # dont forget to add firewall rules allowing 5201 in the input chain # # requirements: # linux, iperf3, lsof, bash # # dj0Nz Feb ...
true
91bacc3598308afcd6b8a13a42c239a67f979336
Shell
aigarskadikis/spacewalk-scripts
/spacewalk-2.8-install-centos-7.5.sh
UTF-8
2,191
2.5625
3
[]
no_license
#!/bin/bash #open 80 and 443 into firewall firewall-cmd --permanent --add-service=http firewall-cmd --permanent --add-service=https firewall-cmd --reload #update system yum update -y #install GPG key for Spacewalk repository cd /etc/pki/rpm-gpg curl -s -O http://yum.spacewalkproject.org/RPM-GPG-KEY-spacewalk-2015 rp...
true
ed8bf3c41323452d624c7dcfe99be6ed0c31a524
Shell
cyber-dojo-retired/porter
/client_shell/test_001_storer_data_container_missing.sh
UTF-8
460
2.734375
3
[]
no_license
#!/bin/bash readonly my_dir="$( cd "$( dirname "${0}" )" && pwd )" . ${my_dir}/porter_helpers.sh test_001_storer_data_container_missing_is_error_status_3() { export SHOW_PORTER_INFO=true port --id10 assert_stdout_includes_installed docker assert_stdout_includes_installed curl assert_stdout_line_count_equa...
true
79c95e2c8e8319263aacc157d1e7fa2a3642bbaa
Shell
darwinz/hackerrank
/bash/cut-6.sh
UTF-8
1,187
3.140625
3
[]
no_license
#!/bin/bash : ' Print the characters from thirteenth position to the end. Input Format A text file with lines of ASCII text only. Constraints * 1 <= N <= 100 (N is the number of lines of text in the input file) Output Format The output should contain N lines. For each input line, print the characters from thirte...
true
4d71001f87715311c245cf04fab6e6ffc7a6ff55
Shell
herder/dotfiles
/home/.zsh.after/circleci.zsh
UTF-8
251
2.578125
3
[]
no_license
if ! type circleci >/dev/null 2>&1 ; then echo "Installing CircleCI..." curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/master/install.sh | DESTDIR=$HOME/.local/bin bash circleci completion zsh > ~/.zfunc/_circleci fi
true
2e86372fe2c16ccbe81bf614d43a9fa251263d68
Shell
ringcrl/cs-notes
/playground/22-06-12-node-startup/launch.sh
UTF-8
419
3.21875
3
[]
no_license
# 1、如果 FIFO 不存在,则创建 [ -p "/tmp/node_start_fifo" ] || mkfifo /tmp/node_start_fifo [ -p "/tmp/node_finish_fifo" ] || mkfifo /tmp/node_finish_fifo # 2、如果 worker 后台管理脚本未执行,则拉起 MANAGER_RUNNING_CNT=`pgrep -c -f "fifo-manager.sh"` if [ "$MANAGER_RUNNING_CNT" -eq 0 ] then nohup ./fifo-manager.sh > /dev/null 2>&1 & fi # 3...
true
e960f121ce94c5629bbcd7c63c33f238bf835ea2
Shell
mikkogozalo/sydney39
/docker-entrypoint.sh
UTF-8
1,704
2.546875
3
[]
no_license
#!/bin/bash set -m if [ -e "/mnt/dev/data/initialized" ] then nodeos -e -p eosio -d /mnt/dev/data --config-dir /mnt/dev/config --hard-replay --http-validate-host=false --plugin eosio::wallet_api_plugin --plugin eosio::wallet_plugin --plugin eosio::producer_plugin --plugin eosio::history_plugin --plugin eosio::cha...
true
b60d7639915c1b23c2e847ad9aaa738f3fe8f673
Shell
AmyGuo/Linux
/shellTest/9.sh
UTF-8
911
3.875
4
[]
no_license
#!/bin/bash #编写脚本,实现人机【石头,剪刀,布】的游戏 game=(石头 剪刀 布) num=$[RANDOM%3] computer=${game[$num]} echo "请根据下列提示选择您的出拳手势:" echo "1. 石头" echo "2. 剪刀" echo "3. 布" read -p "请输入1-3:" person echo $computer case $person in 1) echo "您出了石头" if [ $num -eq 0 ];then echo "平局" elif [ $num -eq 1 ];then echo "对方出了剪刀,您赢了" else ech...
true
1344370519ae376a8eb1d1af4197627b9045b68a
Shell
tal-moshayov/step-elastic-beanstalk-deploy
/run.sh
UTF-8
5,325
3.3125
3
[]
no_license
#!/bin/bash set +e cd $HOME if [ -n "$WERCKER_ELASTIC_BEANSTALK_DEPLOY_ELASTIC_BEANSTALK_DEPLOY_SKIP" ] || [ -n "$ELASTIC_BEANSTALK_DEPLOY_SKIP" ]; then echo "Skipping AWS Elastic beanstalk deployment step!" return 0; fi if [ ! -n "$WERCKER_ELASTIC_BEANSTALK_DEPLOY_APP_NAME" ] then fail "Missing or empt...
true
076e301b39824c8f4853c542a33a433bd922fc50
Shell
nhtlongcs/AIC2021-TheFirstSwans
/run.sh
UTF-8
685
2.546875
3
[]
no_license
#!/bin/bash --login echo "Running inference script" INP_IMG_DIR=/data/test_data OUT_IMG_DIR=/data/submission_output echo "INP_IMG_DIR=$INP_IMG_DIR" echo "OUT_IMG_DIR=$OUT_IMG_DIR" echo "Running maskrcnn..." mkdir -p /workspace/output/det/ bash scripts/run_det.sh $INP_IMG_DIR /workspace/output/det/ /workspace/outpu...
true
403e752521e1db8c17ffb89e275f235ac1d50b73
Shell
leroyron-zz/timeline-jscode
/bin/install_githooks.sh
UTF-8
263
3.015625
3
[]
no_license
#!/bin/sh # Creates symlinks inside .git/hooks # This will clobber any existing hooks in .git/hooks repo_dir="$(git rev-parse --show-toplevel)" src_dir="$repo_dir/githooks" hook_dir="$repo_dir/.git/hooks" ln --verbose --symbolic --force "$src_dir"/* "$hook_dir"
true
a449a167a56e12f72f0727a62617d48a95dbc441
Shell
null267/danorz.com
/tools/bootstrap-aws.sh
UTF-8
451
3.25
3
[]
no_license
#!/bin/bash DOCKER_IMAGE=danorz-aws DOCKER_AWS_USER=awsuser cleanup () { docker image rm -f $DOCKER_IMAGE } docker build -t $DOCKER_IMAGE \ --build-arg UID=$(id -u)\ --build-arg GID=$(id -g) \ --build-arg USER=$DOCKER_AWS_USER \ aws # use docker image to configure AWS creds echo echo...
true
a49166b40bf4ab360e213a0d1bc5c87481bb90ab
Shell
hkoba/hktools
/nsenter-docker-image.zsh
UTF-8
683
3.609375
4
[]
no_license
#!/bin/zsh emulate -L zsh scriptFn=$0 function usage { cat 1>&2 <<EOF Usage: ${scriptFn:t} IMAGE_NAME [COMMAND...] EOF exit 1 } function die { echo 1>&2 $*; exit 1 } #---------------------------------------- ((ARGC)) || usage imageName=$1; shift ((ARGC)) || argv=(/bin/bash) cid=$(docker container ls -q ...
true
6282a23e079adad8e052dbae4d6fafa93d8f295e
Shell
Brambler/CSGO-Automation
/scripts/AutoDeploy/csgoDeploy.sh
UTF-8
3,027
3.21875
3
[]
no_license
#!/bin/bash clear # Deps and screen install & update dpkg --add-architecture i386 apt-get install gcc-multilib libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386 libc6:i386 lib32stdc++6 -y apt-get install lib32gcc1 -y apt-get install screen -y apt-get update && apt-get upgrade -y clear cd read -p "Name your ins...
true
3ae84b8ad073ecaefdac3022b64887a63ca94357
Shell
hmcts/cmc-citizen-frontend
/bin/ccd-import-definition.sh
UTF-8
1,698
3.640625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -eu dir=$(dirname ${0}) filepath=${1} filename=$(basename ${filepath}) uploadFilename="$(date +"%Y%m%d-%H%M%S")-${filename}" userToken=$(${dir}/idam-lease-user-token.sh ${CCD_CONFIGURER_IMPORTER_USERNAME:-ccd.docker.default@hmcts.net} ${CCD_CONFIGURER_IMPORTER_PASSWORD:-Password12!}) serviceT...
true
e5d0ed721f7780145121f915d85011162e2a68b2
Shell
MINAMISAMA/Castle-X
/ch6 slam&navigation/turtlebot/kobuki/kobuki_testsuite/scripts/batch_test.sh
UTF-8
775
2.734375
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
#!/bin/bash #AUTHOR: Younghun Ju <yhju@yujinrobot.com>, <yhju83@gmail.com> test_angle=360.0 angle=-150.0 for test_angle in `seq 360 360.0 $((360*4))`; do for angle in `seq -150 5.0 150`; do if [ $angle == 0.0 ]; then continue; fi rosrun kobuki_testsuite gyro_perf.py\ cmd_vel:=/mobile_base/commands/vel...
true
0336bd050c7d450cf2ca28054c8f43f4520807a7
Shell
dwladdimiroc/s4-class1
/apache-s4-0.6.0/subprojects/s4-benchmarks/bench-cluster.sh
UTF-8
3,473
3.359375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -x # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "...
true
6bbb6d0c7148950b52ca860a44ee4a14559f0295
Shell
cwt1/scripts-1
/projFocus/ceRNA/runs/run05ResultCandireg.sh
UTF-8
10,156
3
3
[]
no_license
#!/bin/bash #$ -cwd #By: J.He #Desp: this is the running file for all coding testing in this folder ##run on selected know BRCA genes source /ifs/home/c2b2/ac_lab/jh3283/scripts/projFocus/ceRNA/geneUtilsRuns.sh srcDir=/ifs/home/c2b2/ac_lab/jh3283/scripts/projFocus/ceRNA ##----pickle dump data cernet=/ifs/data/c2b2/a...
true
0bf895a7decf78304288d02b4bbba39d813d9911
Shell
ericnchen/fenics-tue
/recipes/mumps/build.sh
UTF-8
881
2.875
3
[]
no_license
#!/usr/bin/env bash set -e cp "${RECIPE_DIR}/Makefile.inc" Makefile.inc cp "${RECIPE_DIR}/examples_Makefile" examples/Makefile export AR="${AR} vr " # I don't think passing the -j NP flag results in successful builds 100%. make alllib # Manually install. mkdir -p "${PREFIX}/lib" "${PREFIX}/include" cp lib/*.a "${PR...
true
461a641af46ea921ec54dfdb59230ecdc87a5da8
Shell
pinoylinuxguru/psec
/lynis-cron.sh
UTF-8
673
3.390625
3
[ "MIT" ]
permissive
#!/bin/sh #Be sure mailx is install -> rpm -qi mailx #if not installed run -> yum install mailx -y #Aeonmike - PinoyLinux - PCG AUDITOR="automated" DATE=$(date +%Y%m%d) HOST=$(hostname -s) LOG_DIR="/var/log/lynis" REPORT="$LOG_DIR/report-${HOST}.${DATE}" DATA="$LOG_DIR/report-data-${HOST}.${DATE}.txt" LYNIS=/usr/bin/...
true
e34912fbac08b465332ca451c9d60a60a84ab3e0
Shell
jongwony/demos
/youtube-streamer/youtube-streamer
UTF-8
1,183
3.328125
3
[]
no_license
#!/bin/bash # Add pulseaudio subdirectory for ffmepg access ARCH_TRIPLET=x86_64-linux-gnu [ "$SNAP_ARCH" = "armhf" ] && ARCH_TRIPLET=arm-linux-gnueabihf [ "$SNAP_ARCH" = "arm64" ] && ARCH_TRIPLET=aarch64-linux-gnu export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH_TRIPLET/pulseaudio/:$LD_LIBRARY_PATH CONFIG_DISPLAYED=false ...
true
217288abeef78a0e3dcda9b714fe1fe908e3593e
Shell
jmsalter/harness-demo
/harness/hq/scripts/runPL.sh
UTF-8
1,099
2.96875
3
[]
no_license
#!/bin/sh fn_run_query () { curl -s \ -H 'x-api-key: '$HARNESS_API_KEY \ -X POST \ -H 'Content-Type: application/json' \ --data @- \ 'https://app.harness.io/gateway/api/graphql?accountId='$HARNESS_ACCOUNT_ID } appName="Basic" plName="simple-pipeline" APP_ID=$(hq id/App.hql $appName) PL_ID=$(hq id/Pipeline.hql $plNa...
true
d0533903b6d4e5ad3ed9bf751b6553c20bcb46cc
Shell
ewon/efive
/config/busybox/default.script
UTF-8
1,343
3.4375
3
[]
no_license
#!/bin/sh # # udhcpc script # # Based on simple.script by Tim Riker <Tim@Rikers.org> # Adapted by the IPCop team for use with IPCop installation # # $Id: default.script 5583 2011-04-01 06:49:06Z gespinasse $ # [ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 RESOLV_CONF="/etc/resolv.conf" [ -n "$...
true
980ac7110afd26c69695f0d7f7065c0eecf1fc1d
Shell
kalenpw/DotFiles
/bin/install_desktop_files.sh
UTF-8
266
3.140625
3
[]
no_license
#!/bin/bash ./_check_proper_dir.sh cd .. configDir=$(pwd) # not a gurantee this is being executed in right directory but should catch it most times for file in $configDir/DesktopFiles/*.desktop; do echo $file ln -s $file ~/.local/share/applications done
true
302c0b5d03003bbc242ad148c78ab88fb8aa6831
Shell
mantissaman/authentication-fast-api
/setvenv.sh
UTF-8
344
3.109375
3
[]
no_license
#!/bin/bash pushd `dirname $0` > /dev/null SCRIPTPATH=`pwd -P` popd > /dev/null cd $SCRIPTPATH echo $SCRIPTPATH if [ ! -d "$SCRIPTPATH/env" ] then echo "Creating Virtual Environment..." python3 -m venv env source env/bin/activate fi sort -um api/requirements.txt requirements-dev.txt > requirements.txt pip3 insta...
true
3d98a286b63218d5f4207bd86d26ddf5227bf7a7
Shell
nomlab/tools
/bin/matplot
UTF-8
1,855
3.921875
4
[ "MIT" ]
permissive
#!/bin/bash set -e HOST_USER_ID=$(id -u) HOST_USER_NAME=$(id -un) IMG_NAME="matplot" IMG_TAG="latest" IMG_NAME_TAG="${IMG_NAME}:${IMG_TAG}" function dockerfile() { cat <<EOF FROM ubuntu:22.04 RUN apt-get update RUN apt-get install -y sudo vim python3 python3-pip RUN apt-get install -y fonts-ipaexfont RUN pip3 ins...
true
1ed6b9f95ab6df8a4d5a78ca05b0f4addb1469d5
Shell
worldwide-asset-exchange/wax-boot-testnet
/ansible/roles/eos-node/scripts/get_wax-system-contracts.sh
UTF-8
829
3.6875
4
[]
no_license
#!/usr/bin/env bash SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" WAX_SYSTEM_CONTRACTS_VERSION=$1 DOWNLOAD_DIR=$SCRIPT_DIR/tmp RESULT_DIR=$SCRIPT_DIR/../files/contracts if [ -z $WAX_SYSTEM_CONTRACTS_VERSION ]; then echo "Syntax: $0 <WAX System Contracts Version>" exit 1 fi # Prep...
true
5001c50b4638f4b373e072cd9738f7c89c2a932a
Shell
ArangoGutierrez/gitops-training-lab
/flux/setup.sh
UTF-8
772
2.59375
3
[]
no_license
# Pre-reqs: # helm - https://helm.sh/docs/intro/install/ # fluxctl - https://docs.fluxcd.io/en/1.18.0/references/fluxctl.html (optional) echo 'Now input your GitHub username: ' read GHUSER helm repo add fluxcd https://charts.fluxcd.io kubectl apply -f https://raw.githubusercontent.com/fluxcd/helm-operator/master/...
true
3e6d0c020e625e0be77bc56ef0d9c92ee5d7f0d5
Shell
garrettheath4/dotfiles-mac
/bin/minus
UTF-8
129
2.984375
3
[]
no_license
#!/usr/bin/env bash if [ "$#" -ne 2 ]; then echo "Usage: minus AllLinesFile LinesToFilterFile" exit 1 fi grep -vf "$2" "$1"
true
cc9241f60d624c9dd19144a521c6160ad9e0b312
Shell
instruct-br/puppet-toolkit
/git/puppet-git-hooks/commit_hooks/puppet_manifest_syntax_check.sh
UTF-8
1,220
3.984375
4
[ "GPL-2.0-only", "MIT" ]
permissive
#!/bin/bash # This script expects $1 to be passed and for $1 to be the filesystem location # to a puppet manifest file for which it will run syntax checks against. manifest_path="$1" USE_PUPPET_FUTURE_PARSER="$2" syntax_errors=0 error_msg=$(mktemp /tmp/error_msg_puppet-syntax.XXXXX) manifest_name="$manifest_path" er...
true
9e9f028757ff5c0caf2389bfa2d620082cd37d30
Shell
unixb0y/prjxray
/gridinfo/runme.sh
UTF-8
1,975
3.078125
3
[ "ISC", "LicenseRef-scancode-dco-1.1" ]
permissive
#!/bin/bash set -ex cat > design.xdc << EOT set_property -dict {PACKAGE_PIN $XRAY_PIN_00 IOSTANDARD LVCMOS33} [get_ports I[0]] set_property -dict {PACKAGE_PIN $XRAY_PIN_01 IOSTANDARD LVCMOS33} [get_ports I[1]] set_property -dict {PACKAGE_PIN $XRAY_PIN_02 IOSTANDARD LVCMOS33} [get_ports I[2]] set_property -dict {PACKA...
true
dfb7d15ac3b8ae2727d42d2a32a5a5c30b0b736c
Shell
sighttviewliu/ultrain-core-production
/vendor/pbc/release
UTF-8
2,150
3.640625
4
[ "GPL-1.0-or-later", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LGPL-3.0-only", "MIT" ]
permissive
#!/bin/bash # perform sanity checks, make packages VER=`grep AC_INIT configure.ac | sed 's/.*\[\([0-9]*\.[0-9]*\.[0-9]*\)\].*/\1/'` echo Preparing new release: pbc-$VER GREPVER=${VER//\./\\.} if [[ $1 == "test" ]]; then echo test run TESTRUN=1 fi if [[ ! -z $(git diff) ]]; then echo Uncommitted changes detect...
true
d8c0503b4ac7f8617df4c8820ac3157fed723522
Shell
olimpiada-informatica/oie-cms-boxes
/TestBox/provisioning/scripts/73-configure-ranking.sh
UTF-8
706
3.484375
3
[]
no_license
#!/bin/bash -ex # -e: termina si algún pipeline falla # -x: escribe los comandos y argumentos según los va ejecutando # Añadimos en el directorio del ranking las fotos de participantes # y "banderas" de equipos readonly user=${DEFAULT_USER-$(whoami)} readonly SIM_DIR=/home/$user/datos-simulacro readonly CONTESTDIR=/...
true
319ce2d8f5ec9f66dadf26e0f2eea7b013335416
Shell
antigenius0910/home_migration
/final_rsync.sh
UTF-8
2,245
3.34375
3
[]
no_license
#!/bin/sh set -x LOCAL_USERS=$(cat /etc/passwd | grep -i home | grep "^[^#;]" | sed s"/:..*//") for LOCAL_USER in $LOCAL_USERS do if [[ $LOCAL_USER =~ ^(git|gitlab|oracle)$ ]] ; then #echo "service account found! $LOCAL_USER. don't rsync directories" echo "service account found! $LOCAL_USER....
true
77372fa0b92fe47de40644814abf1cfadbb2d310
Shell
cms-sw/cmssw
/OnlineDB/SiStripO2O/test/O2O_Validation/fedcabling_validation.sh
UTF-8
3,779
3.25
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # start the Validation of FEDCabling eval `scramv1 runtime -sh` ### check if everything needed to connect to DB is there if [ "$CONFDB" == "" ]; then echo "\$CONFDB not set, please set it before You continue"; exit 0; else echo "\$CONFDB="$CONFDB; fi if [ "$TNS_ADMIN" == "" ]; then echo "\$TNS_ADMIN no...
true
6f46ca74710b409f504468f33b5035ec0b852992
Shell
ljukas/dotfiles
/bkup/.zshrc
UTF-8
747
2.84375
3
[]
no_license
# # Executes commands at the start of an interactive session. # # Authors: # Sorin Ionescu <sorin.ionescu@gmail.com> # # Source Prezto. if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" fi # Customize to your needs... # Python virtualenv source /usr/bin/virtuale...
true
3c3095e428549c3c3f78a5fddd41ce962d3e6e80
Shell
waltflanagan/dotfiles-old
/script/install_stephen.sh
UTF-8
311
2.59375
3
[ "MIT" ]
permissive
#!/bin/bash #Download and install qlstephen FOO=`mktemp -d .XXXXXXXXX` curl -O http://cloud.github.com/downloads/whomwah/qlstephen/QLStephen.qlgenerator.zip unzip -d $FOO QLStephen.qlgenerator.zip mv $FOO/QLStephen.qlgenerator ~/Library/QuickLook/ qlmanage -r rm -rf $FOO rm -rf QLStephen.qlgenerator.zip
true
ee1c1a279f2c3bf13ea80b76b91b709e0fc4f1fe
Shell
mudasobwa/bash-dropbox
/ff_synch_up
UTF-8
1,497
3.625
4
[]
no_license
#!/bin/bash # shell script to upload watched items # @param $1 — the file to be uploaded (fully qualified) # @param $2 — an action to be done on file # load default configuration source /etc/forkforge.conf source /usr/bin/ff_functions # load user-specific config if [ -f $HOME_DIR/.forkforgerc ] ; then source $HOME_...
true
4df3032d595ecfafef14cedf8b17f74246eb8094
Shell
TryKatChup/SistemiOperativi_Template
/Bash/rec_search.sh
UTF-8
2,218
3.5625
4
[ "MIT" ]
permissive
#!/bin/bash for file in $1/*; do if [[ -f "$file" ]]; then # Faccio cose elif [[ -d "$file" ]]; then echo "Ricorsione nella directory $file" # Chiamata ricorsiva "$0" "$file" "$2" "$3" fi done ############################################## ############# NOTA BENE ############# ###########...
true
66e88ff0dbab2a9f4a0cba15b5b757a1a7ffdd28
Shell
christian-tl/monitor-shell
/restartApi_all.sh
UTF-8
685
3.921875
4
[]
no_license
#/bin/bash helpInfo(){ echo "Usage: `basename $0` [options] [ <interval> ]" echo "options are:" echo " -h : host ip file" } if [[ $# < 2 ]];then helpInfo; exit 1 fi while getopts 'h:' OPT; do case $OPT in h) CONF_FILE="$OPTARG";; ?) helpInfo exit 1 e...
true
c59600119c110572e0f50eaa7068864b18c8a780
Shell
jennafin/flic-lifx
/start.sh
UTF-8
2,958
4.125
4
[]
no_license
#!/bin/bash ################################################################################ # # This script is just an easy way to start the server and client in one command # # 1. Kill any running server processes # 2. Kill any running client processes # 3. Sleep for 3 seconds to give the kill commands a chance to f...
true
1e676102753cb1252af3e7c559e46ac0c6a4ccc8
Shell
bob-token/git-create
/git-create.sh
UTF-8
343
3.078125
3
[]
no_license
#!/bin/sh repo_name=$1 test -z $repo_name && echo "Repo name required." 1>&2 && exit 1 curl -u 'xhban520@gmail.com' https://api.github.com/user/repos -d "{\"name\":\"$repo_name\"}" git init echo "git-create.sh" >.gitignore git add . git commit -am'first init' git remote add origin "https://github.com/bob-token/$repo...
true
dc2ae4a6e77935ce74c3186cf7ad53430065a043
Shell
GeekOncall-Workflow/test-environment
/box-scripts/puppet-master
UTF-8
322
2.53125
3
[]
no_license
#!/bin/bash # Pull/run r10k if [ -d "${gitDir}/puppet-r10k" ] then PullProjectRepo "puppet-r10k" else PullProjectRepo "puppet-r10k" ${gitDir}/puppet-r10k/install.sh fi puppet apply /etc/puppet/environments/${puppetEnvironment}/manifests/site.pp "--modulepath=/etc/puppet/environments/${puppetEnvironment}/modules...
true
4bcf63bd97151b5a144f05333aae22b906e18ecd
Shell
paulfryzel/linux-dotfiles
/bash_profile
UTF-8
634
2.78125
3
[]
no_license
PATH=$PATH:$HOME/bin PATH=$PATH:$HOME/workspace/google/depot_tools PATH=$PATH:/opt/dart/dart-sdk/bin # Yarn global bin PATH=$PATH:$HOME/.yarn/bin # Idris PATH=$PATH:$HOME/.cabal/bin PATH=$PATH:$HOME/Workspace/idris-sandbox/.cabal-sandbox/bin # Miniconda3 PATH=$PATH:$HOME/miniconda3/bin # Google Cloud if [ -d $HOME/...
true
ac4b03c8c69f1caaf2885ee684ca4528b081f018
Shell
iodar/confluence-backup-cleanup
/test-prep.sh
UTF-8
839
3.984375
4
[]
no_license
#!/bin/bash # shell script to create files for testing clean-up.sh # get current dir where script is located in DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" cd $DIR DATES=("20190918140810" "20190918140811" "20190918140812" "20190918140814" "20190918140815" "20190918140816" "20190918140817"...
true
61f66dd8de1a1fcd1408fb106dae0ad0d34a916e
Shell
katsifolis/bin
/mikrine.sh
UTF-8
262
3.6875
4
[ "Unlicense" ]
permissive
#!/bin/bash # Script that minifies a css (all that it does is trims whitespace and \n\r duh!) if [[ -n $1 ]]; then f=$(cat $1 | tr -d "\n\r\t ") if [[ -n $2 ]]; then echo $f > $2 else echo "NOT DESTINATION FILE GIVEN :)" fi else echo "NO FILE GIVEN" fi
true
5b9443a8699c2f84385df3cd453ba49b2e527375
Shell
jpka/dotfiles
/install.zsh
UTF-8
469
2.765625
3
[]
no_license
#!/bin/zsh local OHMY=$HOME/.oh-my-zsh if ! test -d $OHMY then wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh fi local CUSTOM=$OHMY/custom rm -rf $CUSTOM ln -s -f $PWD/oh-my-zsh $CUSTOM ln -f .zshrc $HOME/.zshrc ln -f .vimrc $HOME/.vimrc cp z.sh $HOME/...
true
ff347ade419275dd1d2c31d12f3e67b6984ef3fd
Shell
miketheprogrammer/dkxyz14-maestro
/deploy/python.sh
UTF-8
1,529
3.15625
3
[ "MIT" ]
permissive
#!/bin/bash #!/bin/bash echo "$1" echo '$1' json='{ "name": "hello-python'$3'", "image": "miketheprogrammer/hello-python", "command": "", "scale": '$1', "docker_options": { "ExposedPorts": { "9090/tcp": { } }, "Env": [ "MSG=hello-from-mike" ], "HostConfig": { "PortB...
true
7e916ddd29ffca60b5ed76620a263d76e6bf27b3
Shell
mompccc/COMP9041-Software-Construction-Techniques-and-Tools
/test1/htm2html.sh
UTF-8
180
3.328125
3
[]
no_license
#!/bin/sh for file in *.htm do temp="${file%.htm}.html" if [ -f "$temp" ]; then echo "${file%.htm}.html exists" exit 1 fi rename 's/\.htm/.html/' "$file" 2>/dev/null done
true
0ad9fe6e10360409978cfbd3c7900db59faba138
Shell
rcv-legado/Gravitation
/launch.sh
UTF-8
177
2.734375
3
[ "MIT" ]
permissive
#!/bin/bash for i in `seq 0.5 59.5` do for j in 1 2 3 4 5 do i=`echo $i | sed 's/,/./'` j=`echo $j | sed 's/,/./'` python Monte_Carlo.py $i $j done done
true
ab4082b53dd9d1477d505002b3e50c9154850eab
Shell
mamontp/CheckTwoMasternodesBot
/stop_start_Bot.sh
UTF-8
1,117
3.609375
4
[]
no_license
#!/bin/bash status() { if ps -ef |grep CheckTwoMasternodesBot.py |grep -v grep then echo "CheckTwoMasternodesBot.py start" else echo "CheckTwoMasternodesBot.py not start" fi } start() { echo "CheckTwoMasternodesBot.py starting" if ps -ef |grep CheckTwoMasternodesBot.py |grep -v grep then e...
true
5e8b2b13561467ac554926e4f7d368a81a03b979
Shell
georgemarshall/python-plans
/python2/ipaddress/plan.sh
UTF-8
783
2.765625
3
[]
no_license
pkg_name=ipaddress pkg_distname=${pkg_name} pkg_version=1.0.18 pkg_origin=python2 pkg_license=('Python-2.0') pkg_maintainer="George Marshall <george@georgemarshall.name>" pkg_description="IPv4/IPv6 manipulation library" pkg_upstream_url=https://github.com/phihag/ipaddress pkg_dirname=${pkg_distname}-${pkg_version} pkg_...
true
9aad2c4a7239bf30a7c6028653627c23cb89f324
Shell
madworx/docker-remoteswinglibrary
/docker-entrypoint.sh
UTF-8
1,302
3.609375
4
[]
no_license
#!/bin/bash [ -z "${PYTHONPATH}" ] || PYTHONPATH="${PYTHONPATH}:" export PYTHONPATH=${PYTHONPATH}$(JARS=(/usr/local/lib/*.jar) ; IFS=:; echo "${JARS[*]}") : ${DEFAULT_DEPTH:=24} if [[ $RESOLUTION =~ ^([0-9]+)x([0-9]+)(x([0-9]+))?$ ]] ; then RESOLUTION=${BASH_REMATCH[1]}x${BASH_REMATCH[2]}x${BASH_REMATCH[4]:-${D...
true
57330f4e2cf7a679f1945e37564f60c2a37c8568
Shell
b115030/Codin
/src/com/loopShellScripts/whileloop/MagicNumber.sh
UTF-8
855
3.921875
4
[]
no_license
#!/bin/bash -x read -p "think of a number between 1 to 100" n=50 ul=100 # Initializing upper limit to 100 ll=1 # Initializing lowwer limiy to 1 while [ $n -ge 1 -a $n -le 100 ] # checking if the number is between 1 and 100 do echo " greater than or less than or equal to [ g-1 /l-2 /e-3 ? ]" $n # Choose an option re...
true
fa784ee19d3664f07a55f2ed245c640e105d5a4c
Shell
echasseriaud/bump-version-bash
/main.sh
UTF-8
851
3.828125
4
[]
no_license
#!/bin/bash -l set -euo pipefail main() { local path local result local step path="$1" step="$2" echo "path to version-file: $path" result=$(cat $path) echo "current version: $result" if [ $result != "first" ] then RE='[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)\([0-9A-Za-z-]*\)' ...
true
4feac76aa3c885b8cfac1dddc3d990e929e8973b
Shell
rid9/r1-linux
/pcre/pkg.sh
UTF-8
676
3.0625
3
[]
no_license
#!/bin/bash PKG_DIR=$(realpath "${BASH_SOURCE[0]%/*}") source "$(realpath "$PKG_DIR/..")/functions.sh" SOURCE_URLS=( "https://downloads.sourceforge.net/pcre/pcre-8.41.tar.bz2" ) before_configure() { CONFIGURE_FLAGS+=( "--docdir=/usr/share/doc/pcre-8.41" "--enable-unicode-properties" "...
true
ebce51ba820f55abcb11a5be303be1bd91dd5ddc
Shell
onknows/terraform-azure-openshift
/scripts/install.sh
UTF-8
1,508
3.375
3
[ "MIT" ]
permissive
#!/bin/bash set -e NODE_COUNT=$1 ADMIN_USER=$2 MASTER_DOMAIN=$3 if [ ! -d "terraform-azure-openshift" ]; then echo "Cloning terraform-azure-openshift Github repo..." git clone https://github.com/onknows/terraform-azure-openshift.git fi cd terraform-azure-openshift git pull chmod 600 certs/* cp -f certs/open...
true
551d8b9e37ef67443230df8c2c0a1fcba5ef09c5
Shell
eric-tang/ELL-Docker
/scripts/run-ell.sh
UTF-8
1,350
4.125
4
[]
no_license
#!/bin/bash -e POSITIONAL=() while [[ $# -gt 0 ]] do key="$1" case $key in -i|—input-folder) INPUT_FOLDER="$2" shift # past argument shift # past value ;; --default) DEFAULT=YES shift # past argument ;; *) # unknown option POSITIONAL+=("$1") # save it in an array for lat...
true
5ca6d8a6ffe332c163f1e599ca341135363077e3
Shell
ProfessorTao/MyUtilCodes
/supervisord-config/MultipleTasks/do-with-default-supervisorctl.sh
UTF-8
141
2.65625
3
[]
no_license
#!/bin/bash config_file=supervisord-global.conf action=$1 command="supervisorctl -c ${config_file} ${action}" echo $command eval $command
true
d656f3aec5a2654572583af1c3a08ae6c15464bf
Shell
guidocecilio/neologism
/make-archive.sh
UTF-8
1,405
2.703125
3
[]
no_license
# Download Drupal Core drush dl drupal # Rename directory created by above command; use wildcard because version can change mv drupal-6.* neologism cd neologism # Download required modules drush dl cck rdf ext rules # Download and extract ARC, which is required as part of the RDF module mkdir sites/all/modules/rdf/v...
true
2da7dfabc34ed1e88f1311570970d3fa1c654b8c
Shell
manoelhc/restafari
/test/exceptions_test/empty_expected_data/run.sh
UTF-8
356
3
3
[ "MIT" ]
permissive
#!/bin/bash cd $(dirname ${0}) _SCRIPT_DIR=$(pwd) _TMP="${_SCRIPT_DIR}/.tmp$(date +%s)" . ${_SCRIPT_DIR}/../../../ci/common.sh cd ${_SCRIPT_DIR} echo "-- TESTING EMPTY EXPECTED DATA --" restafari -s localhost --port ${TEST_SERVER_PORT} file.rest > ${_TMP} cat ${_TMP} [[ -n "$(grep Trackback $_TMP)" ]] && rm -f ${_T...
true
072b6a452b5d0aa50ac1677f852257ee6aed0cdf
Shell
huntergps/trytond-scripts
/docker_entry_script.sh
UTF-8
575
3.15625
3
[]
no_license
#!/usr/bin/env bash echo "Generating config..." python /tryton/trytond-scripts/generate_config.py echo "First run." echo "Generating password file..." echo "$TRYTONPASS" > $TRYTONPASSFILE echo "Initializing the DB..." /usr/local/bin/trytond -c $TRYTOND_CONFIG -d $DATABASE_NAME -v --all echo "Removing password file...
true
c957315fbd3345036a915b97ec5a3a8beec3e213
Shell
lmiglior/alidist
/sherpa.sh
UTF-8
2,315
3.015625
3
[]
no_license
package: SHERPA version: "%(tag_basename)s" tag: "v2.2.8-alice1" source: https://github.com/alisw/SHERPA requires: - "GCC-Toolchain:(?!osx)" - Openloops - HepMC - lhapdf-pdfsets - fastjet build_requires: - curl - autotools - cgal - GMP --- #!/bin/bash -e rsync -a --delete --exclude '**/.git' --delete...
true
0c8bf2abe8fe918d1f98db1538705908a26e7844
Shell
jpsuter/boemb-tl
/recipes-core/config-boter/files/waitconfig.sh
UTF-8
886
2.921875
3
[ "MIT" ]
permissive
rm /etc/localtime ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime echo 'search t-l.ch' > /etc/resolv.conf echo 'nameserver 10.6.10.10' >> /etc/resolv.conf echo 'nameserver10.6.10.9' >> /etc/resolv.conf sn=`ethtool -P eth0 | cut -d " " -f 3` config=`/usr/bin/mosquitto_sub -h tara.t-l.ch -C 1 -t TL/BOTER/$sn/conf...
true
8dc8a676efc82c5b5423a6c6569196a1a81b8187
Shell
btison/docker-images
/run-java/bin/run-java.sh
UTF-8
2,688
3.78125
4
[]
no_license
#! /bin/bash function get_heap_size { CONTAINER_MEMORY_IN_BYTES=`cat /sys/fs/cgroup/memory/memory.limit_in_bytes` DEFAULT_MEMORY_CEILING=$((2**60-1)) if [ "${CONTAINER_MEMORY_IN_BYTES}" -lt "${DEFAULT_MEMORY_CEILING}" ]; then if [ -z $CONTAINER_HEAP_PERCENT ]; then CONTAINER_HEAP_PERCENT=0.50 fi ...
true
dff27d295f4b0581b5e790c3a9c1e4e13eb64dda
Shell
pksung2/ATMS-305
/Week3Answers/simplevariables.sh
UTF-8
212
3.390625
3
[]
no_license
#!/bin/bash declare -f var1 var2 echo Input variable 1 read var1 echo echo Input variable 2 read var2 echo if [[ $var1 -lt $var2 ]]; then echo "Your output is $((var1 + $var2))" else echo You stink. fi echo
true
8c4b7111947318fb79dea98a8059b6618014811f
Shell
mirokuxy/471
/A1.sh
UTF-8
3,356
3.984375
4
[]
no_license
#!/bin/bash ##### # This script is written and supposed to be run under host "may" # Author: Yu Xiao # StudentID: 301267080 ##### thisMachineName=may thisMachineIP4=192.168.0.5 thisMachineIP6=fdd0:8184:d967:118:250:56ff:fe85:d1d8 myPing=ping #will be modified to ping6 when testing IPv6 myTracepath=tracepath # will...
true
5451c31a5d72f0a8f4aa856c548efaab36cd15fb
Shell
atweiden/voidpkgs
/srcpkgs/mit-krb5/template
UTF-8
2,955
2.5625
3
[ "Unlicense", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
maintainer="nox" pkgname="mit-krb5" version=1.21.1 revision=1 _distver="$(echo "$version" | cut -d. -f-2)" short_desc="MIT Kerberos 5 implementation" makedepends+=" db-devel" makedepends+=" e2fsprogs-devel" makedepends+=" $(vopt_if ldap libldap-devel)" makedepends+=" $(vopt_if lmdb lmdb-devel)" hostmakedepends+=" e2fsp...
true
a301e715580a8d673628be84ec7b151b7a443ba6
Shell
Senso-Care/SensoApi
/scripts/build.sh
UTF-8
584
3.8125
4
[]
no_license
#!/bin/bash if [ "$#" -lt 1 ] || ! [ -d "./cmd/$1" ] > /dev/null; then echo "Usage: $0 CMDNAME [OS/PLATFORM]" >&2 echo "Check os/platform available by running: \"go tool dist list\"" exit 1 fi os="linux" platform="amd64" if [ ! -z "$2" ] && go tool dist list | grep "$2" > /dev/null; then os=$(echo "$2" | cut...
true
67ebe0aa20b496194d2712d90a13296747af7cc6
Shell
smashism/jamfpro-extension-attributes
/detect_chrome_extension.sh
UTF-8
496
3.015625
3
[]
no_license
#!/bin/sh # # script by emily kw 2014-07-29 # to detect if the Awesome Screenshot Extension is installed on Google Chrome # updated 2022-01-29 # currentUser=$( echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ { print $3 }' ) if [ -d "/Users/$currentUser/Library/Application Support/Google/Chrome/De...
true
d1e3aa822e7181c903b37479029e9f08f10b2db7
Shell
zhengjiexu123/AEP_TEST
/dram_test/run_numa.sh
UTF-8
814
3.046875
3
[]
no_license
block_name=(01_8B 02_16B 03_32B 04_64B 05_128B 06_256B 07_512B 08_1KB 09_4KB 10_16KB 11_64KB 12_256KB 13_1MB 14_4MB 15_16MB) block_size=(8 16 32 64 128 256 512 1024 4096 16384 65536 262144 1048576 4194304 16777216) test_type=(rr rw sr sw) num_thread=(1 2 4 6 8 10 12 14 16) DIR=numa data_amount=$((2*1024)) for ((i=0;...
true
c5effe2e1cea090a32a22843547379e872e81cec
Shell
christiangda/PuppetMaster
/Vagrant/scripts/bootstrap-redhat-family.sh
UTF-8
1,547
2.890625
3
[]
no_license
#!/bin/bash ################################################################################ # Prepare the system #yum -y install deltarpm #yum -y install kernel-devel kernel-headers dkms #yum -y update yum -y install vim-enhanced htop elinks mlocate nmap telnet rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-p...
true
6f65d6c171c7ac210b67576e008a8e4a8d6b610b
Shell
skjq/Hannigan_CRCVirome_mBio_2018
/bin/getOrfAbundance.sh
UTF-8
1,207
3.34375
3
[ "MIT" ]
permissive
#! /bin/bash # getOrfAbundance.sh # Geoffrey Hannigan # Pat Schloss Lab # University of Michigan ####################### # Set the Environment # ####################### export OrfFile=$1 export FastaSequences=$2 export diamondpath=/mnt/EXT/Schloss-data/bin/ export tmpfile=./data/tmporfabund export WorkingDirectory=$(...
true
2787911b7ffac2f005f069c7b841c018dc7d24ee
Shell
sfitpro/pi-hole
/setup.cloudflared.doh.for.pi-hole.sh
UTF-8
1,793
3.421875
3
[]
no_license
#!/bin/bash # Author: Eddie Lu # Description: Bash script to automate set up Cloudfared DoH for Pi-hole on Raspbian # Reference: # https://docs.pi-hole.net/guides/dns-over-https/ # https://www.cyberciti.biz/faq/configure-ubuntu-pi-hole-for-cloudflare-dns-over-https/ # 1. download the precompiled binary and copy it to ...
true
2047e34a57d11930fddd3ae575bc5f7c27cd6e16
Shell
iT-Boyer/Hexo-Templates-For-Xcode
/lntemplates.sh
UTF-8
719
2.71875
3
[]
no_license
#!/bin/sh # lntemplates.sh # HexoDeploy # # Created by pengyucheng on 28/04/2017. # Copyright © 2017 hexo主题. All rights reserved. SRC_HOME=`pwd` XcodePATH="~/Library/Developer/Xcode/Templates/File\ Templates/HexoMD" echo "mkdir -p ${XcodePATH}" mkdir -p ~/Library/Developer/Xcode/Templates/File\ Templates/HexoMD ...
true
46a3d4fed870710376fff25b7f8957db87363144
Shell
mcoughlin/fisheye
/chrisbash/makefits.sh
UTF-8
1,924
3.671875
4
[]
no_license
#!/bin/bash # Convert CR2 to FITS (cr2fits) # hacked to fix error in image plane assumptions, Jan 14, 2014, CWS # Assumptions: # Where are the extra binaries, bash scripts and monsta scripts? export PRODIR=/usr/local/bin # What is the from-root directory where these files should go? dirto=$dirpath/$dirname dirfrom=$d...
true
e751bd490d2338c8c472c2c280999323c17fac0b
Shell
Vikutorika/Cytus-II-DB
/longyuan.sh
UTF-8
1,222
3
3
[ "MIT" ]
permissive
#!/bin/bash echo "=================================" echo " Cytus II DB Migrate Tool V1.0 " echo " A.R.C. Tech. " echo "=================================" # clean web build rm -rf ./res/* # mkdir mkdir ./res/unity mkdir ./res/bundles mkdir ./res/export mkdir ./res/export/audios...
true
d4858a2dde891db7e696a903c6593154e18ea741
Shell
bbary/utils
/shell/global_functions.sh
UTF-8
927
4
4
[]
no_license
#!/bin/bash set -e # pulls the first occurence of a char from a list of chars #Params: # 1: list of chars # 2: the char to pull # 3: the result variable # Returns a list of sorted floats in the second parameter function pull_first_occurence_from_list() { result="" found="false" for i in $1; do if [ $i != $2 -o ...
true
4e45793a91c815cbabbfe4e85e6b7a3ce56b20ba
Shell
DataDog/Miscellany
/dd_public_ip.sh
UTF-8
1,348
3.671875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash function usage { echo 'usage dd-public-ip-tag.sh --api_key "<key>" --app_key "<key>"' } #### Main api_key="" app_key="" while [ "$1" != "" ]; do case $1 in -i | --api_key ) shift api_key=$1 ;; -p | --app_key ) ...
true
7258c9645acc145445ea32add728a58e640dbf95
Shell
rundeck/rundeck
/test/run-docker-tests.sh
UTF-8
902
3.921875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash #/ trigger local ci test run set -euo pipefail IFS=$'\n\t' readonly ARGS=("$@") DOCKER_DIR=$PWD/test/docker usage() { grep '^#/' <"$0" | cut -c4- # prints the #/ lines above as usage info } die(){ echo >&2 "$@" ; exit 2 } check_args(){ if [ ${#ARGS[@]} -gt 0 ] ; then DOCKER_DIR=$1 ...
true
817a11470cce0b94edb4925130efcfd421de9a3a
Shell
t0mk/dosk
/henter
UTF-8
540
3.46875
3
[]
no_license
#!/bin/bash CID=$1 [ -z "$CID" ] && CID=`hyper ps -ql` [ `hyper ps -q | wc -l` -eq 1 ] && CID=`hyper ps -q` if [[ ! "$CID" =~ "^[a-f0-9]{2,64}$" ]]; then NEW_ID=`hyper ps | grep $CID | grep -v grep | awk '{print $1;}'` NUM_LINES=`echo $NEW_ID | wc -l` if [ -z "$NEW_ID" ]; then echo "no container...
true