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
f8f29ff7f9db3a7927ea01a6cd40afd7ccc1c927
Shell
animationzl/cicd-howto
/allinone/allinone.sh
UTF-8
967
2.609375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -x CHDIR=$(cd $(dirname "$0") && pwd)/.. FIXED_IP=$(ifconfig | awk '/inet addr/ {print substr($2, 6)}' | grep 192) source $CHDIR/allinone/allinonerc mv /etc/apt/sources.list /etc/apt/sources.list-bak cp $CHDIR/allinone/sources.list /etc/apt/ $CHDIR/misc/gearman_zookeeper.sh $CHDIR/common/sync-sshkey.sh ...
true
65d14919f8abaa657c393ee9d864b7f2d4625806
Shell
leonismoe/docker-images
/ariang/hooks/push
UTF-8
3,264
3.984375
4
[ "MIT" ]
permissive
#!/bin/bash set -xe . $PWD/.env.local export DOCKER_CLI_EXPERIMENTAL=enabled MANIFESTS='' ARCH_ALL=$(cat <<EOT linux/386 linux/amd64 linux/arm linux/arm/v5 linux/arm/v6 linux/arm/v7 linux/arm64 linux/ppc64le linux/mips linux/mipsle linux/mips64 linux/mips64le linux/riscv64 linux/s390x EOT ) # `docker manifest` do...
true
174559a88d25af4909174007e6989abd29d000c7
Shell
ujtakk/dotfiles
/local.sh
UTF-8
406
2.703125
3
[ "MIT" ]
permissive
#!/bin/bash mkdir -p ~/local/{src,stow} (cd ~/local/src ### neovim git clone https://github.com/neovim/neovim (cd neovim make CMAKE_BUILD_TYPE=RelWithDebInfo \ CMAKE_INSTALL_PREFIX=~/local/stow/neovim-nightly make install ) ) (cd ~/local/stow stow -v neovim-nightly ) (cd ~/local python3 ...
true
b1ce728bfcbd0aebb187c5838c7a7013a29af089
Shell
hanslovsky/config
/dotfiles/.sh/zsh_exports.sh
UTF-8
156
2.5625
3
[]
no_license
# ZSH zottel color theme if [ "${ZSH_VERSION_MAJOR}" -ge "5" -a "${ZSH_VERSION_MINOR}" -ge "1" ]; then export ZSH_PROMPT_COLORS=(10 149 149 8 2 10) fi
true
e969b535941707bdfe06d62cf3aa3dd28ca8d987
Shell
s19008/python
/unix1.backup/0627/062703.sh
UTF-8
108
2.59375
3
[]
no_license
#!bin/bash local filepath=$1 find -typef | ls / | wc -l "$filepath" find -typed | ls / | wc -l "$filepath"
true
40424eda13a7403043031292e515cd6c59e3aee6
Shell
maq99/nandinstall
/cubie-config
UTF-8
14,654
3.875
4
[ "BSD-2-Clause" ]
permissive
#!/bin/sh # Part of raspi-config http://github.com/asb/raspi-config # # See LICENSE file for copyright and license details INTERACTIVE=True ASK_TO_REBOOT=0 calc_wt_size() { # NOTE: it's tempting to redirect stderr to /dev/null, so supress error # output from tput. However in this case, tput detects neither stdou...
true
1a75bb8217fc7961432facd10409ffede478696d
Shell
renegmed/ml-tf2.0-sgmkr-collections
/report-exec-time/train/build.sh
UTF-8
169
2.65625
3
[]
no_license
#!/usr/bin/env bash image=$1 region=$(aws configure get region) echo $region $(aws ecr get-login --region ${region} --no-include-email) docker build -t ${image} .
true
95968b5287c6fe655a586993a9a38c872747d87c
Shell
fauno/hacking
/git-shell-commands/help
UTF-8
222
3.375
3
[]
no_license
#!/bin/sh # * help # Obtiene los comando habilitados # ssh git@host help set -e # Gets three lines from every git-shell-command for c in `dirname $0`/*; do head -q -n4 $c | tail -n3 | sed "s/^..//" echo done
true
d958856edbff9027f2e1aecf93b79d85d32e0513
Shell
cygwin-lem/cygport_makeindex
/check_uri_src_fedoraproject.sh
UTF-8
1,517
3.375
3
[]
no_license
#!/bin/bash # http://pkgs.fedoraproject.org/cgit/shared-mime-info.git/plain/0001-Remove-sub-classing-from-OO.o-mime-types.patch # http://pkgs.fedoraproject.org/cgit/rpms/libkexif.git/plain/libkexif-0.2.5-qcombobox.patch # https://src.fedoraproject.org/rpms/dbus/raw/f33/f/00-start-message-bus.sh update_uri_src_fedorap...
true
d8dd4e0db79776dc8a02ad11c20a9b1052a408a5
Shell
nicolmart/infra
/clusters/nwk1/hack/bootstrap/generate-objects.sh
UTF-8
795
3.40625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Wire up the env and validations __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck source=/dev/null source "${__dir}/../secrets/environment.sh" message() { echo -e "\n######################################################################" echo "# $1" echo "#######################...
true
4fb2948732cb3cbb1e8c72fcd37a260abe7def92
Shell
lazyplus/640proj
/testround.sh
UTF-8
109
2.765625
3
[]
no_license
#!/bin/bash for ((i=0; i<10; i++)) do rm -f tmp$1 ./round$1.sh > tmp$1 diff -s tmp$1 round$1.out done
true
e3589b8cffc4429546a9b495ea66c1e73a47918c
Shell
dknicholson1990/ELK-Stack-Project-1
/Linux/roulette_dealer_finder_by_time_and_game.sh
UTF-8
215
3.0625
3
[]
no_license
#!/bin/bash echo "date of loss" read date echo "time of loss" read time echo "am or pm" read time_2 date2=$date* #echo $date2 grep -e $date -e $time $date2 | grep -ie $time_2 | awk -F ' ' '{print $1,$2,$5,$6}'
true
717d5314e53c517ada976630369e8c57594b8c09
Shell
paulschaaf/dotfiles
/etc/movein.sh
UTF-8
8,316
2.65625
3
[]
no_license
#!/usr/bin/env zsh # -*- eval: (progn (highlight-regexp "\\bheader[1-9]+\\b" 'hi-green-b) (highlight-regexp "\\bh1\\b.*" 'header1) (highlight-regexp "\\bh2\\b.*" 'header2) ) -*- # capture packages: # pacman -Qqen >| pkglist.txt && pacman -Qqem >| pkglist_aur.txt cd $HOME export PATH backup=~/backup shell=/bin/zsh if [...
true
200d00f61c65fa6d05cf03d2119cfe09967b81ff
Shell
iphuongtt/server_admin_script
/ubuntu18/menu/developments/common
UTF-8
199
2.609375
3
[]
no_license
#!/bin/bash back_to_menu() { read -p "Press enter to continue" bash /etc/server_admin/menu/developments/menu exit; } back_to_menu_now() { bash /etc/server_admin/menu/developments/menu exit; }
true
d5a60022d1863ed600ac61ba10b316341b785360
Shell
pulumi/pulumi-rancher2
/testing/start_k3s.sh
UTF-8
1,960
3.3125
3
[ "BSD-3-Clause", "Apache-2.0", "MPL-2.0" ]
permissive
#!/usr/bin/env bash set -x source $(dirname $0)/gotestacc_vars.sh # Setting default vars ## k3s K3S_DOCKER_IMAGE=${K3S_DOCKER_IMAGE:-"rancher/k3s"} K3S_KUBECONFIG_NAME=${K3S_KUBECONFIG_NAME:-"k3s_kubeconfig.yaml"} K3S_KUBECONFIG=${TEMP_DIR}"/"${K3S_KUBECONFIG_NAME} K3S_PORT=${K3S_PORT:-6443} K3S_INGRESS_PORT=${K3S_I...
true
161be146f05172d51aeacb175ea9318bbc19584a
Shell
jhuntwork/merelinux
/packages/skalibs/PKGBUILD
UTF-8
1,138
2.84375
3
[ "MIT" ]
permissive
#!/bin/bash # shellcheck disable=SC2034,SC2154,SC2068 pkgname=( skalibs skalibs-dev ) pkgver=2.12.0.1 pkgrel=1 pkgdesc='A library suite supporting skarnet.org software.' arch=(x86_64) url=http://skarnet.org/software/skalibs/ license=(ISC) groups=() depends=() makedepends=() options=() changelog=ChangeLog sour...
true
6a5bf771ed853c3ff373bddeacb16b89c4ce5e47
Shell
branchard/pengwin-setup
/pengwin-setup.d/uninstall/brew.sh
UTF-8
1,006
3.921875
4
[ "MIT" ]
permissive
#!/bin/bash source $(dirname "$0")/uninstall-common.sh function main() { echo "Uninstalling Homebrew" local tmp_ruby=1 if ! ruby --version > /dev/null 2>&1 ; then echo "Installing Ruby for uninstall script" sudo apt-get install ruby -y -q tmp_ruby=0 fi echo "Running Homebrew uninstall script" whiptail --title "...
true
969f3e4503b975cea662494d3828e4a2563c09c1
Shell
JhonnyBravo/setup-hostapd
/cookbooks/iptables/setup.sh
UTF-8
2,392
4.09375
4
[]
no_license
#!/bin/bash # internal network myhost=$(ifconfig wlan0 \ | awk 'NR==2 {print $1}' \ | cut -d : -f 2) trusthost="${myhost:0:10}0/24" # ssh # ssh_trusthost='' # ssh_port='' script_name=$(basename "$0") s_flag=0 r_flag=0 function usage(){ cat <<_EOT_ NAME ${script_name} USAGE ${script_name} [-s] [-r] [-h] D...
true
e3443ffc4cc3982a477e7a0487b134635e251253
Shell
iamhuwjones/hermes
/corvus-wsclient/src/main/script/ebms-history.sh
UTF-8
419
3.25
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh LIB_PATH=./lib ARGS=$* for i in `ls -1 $LIB_PATH` do WSC_CLASSPATH=$WSC_CLASSPATH$LIB_PATH"/"$i":" done if [ $# -lt 3 ]; then if [ "$1" = "" ]; then ARGS="./config/ebms-history/ebms-request.xml" fi if [ "$2" = "" ]; then ARGS="$ARGS ./logs/ebms-history.log" fi fi echo $ARGS EXEC="java -c...
true
fe4a1713fa7fc8abd260d2ab1a36233b17c16d98
Shell
eru/cloudflare-ddns
/dynamic-ip-update.sh
UTF-8
3,253
3.78125
4
[]
no_license
#!/bin/bash echo "Cloudflare dynamic IP setter version 0.1" # Variable check ERROR="" if [ -z "$X_AUTH_EMAIL" ]; then echo "Require X_AUTH_EMAIL: Username. (e.g. johnappleseed@example.com)" ERROR="1" fi if [ -z "$X_AUTH_KEY" ]; then echo "Require X_AUTH_KEY: API key. (e.g. 123abc456def789ghi)" ERROR="1" fi if...
true
3f31369b79ffeda0bd8568fd7825aea829ba4f85
Shell
fabwebbr/fwcloud
/fw_addsite
UTF-8
1,103
3.65625
4
[]
no_license
#!/bin/bash #if $(id -g) != "0" ] && "É necessário executar esse sistema com permissão. Execute da seguinte forma: sudo addvhost" fi VHOST_LOCATION="/etc/nginx/sites-available" USER_DIR="/home/f5consult" clear read -p "Informe qual será o novo domínio: " site clear mkdir $USER_DIR/$site chown `whoami`:`whoami` $USE...
true
c5640b5817124d0ed56dda7e935e28376ec6027c
Shell
sandovbarr/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/7-clock
UTF-8
233
3.34375
3
[]
no_license
#!/usr/bin/env bash #Bash script that displays the time for 12 hours and 59 minutes: i=0 j=1 while [ $i -lt 13 ] do echo "Hour:" $i while [ $j -lt 60 ] do echo $j ((j++)) done ((i++)) j=1 done
true
ef32eda3335b2a530185a74e4e6b2250c065cc53
Shell
ljb-2000/docker
/startup-bm.sh
UTF-8
1,941
3.234375
3
[ "MIT", "Apache-2.0" ]
permissive
#!/bin/bash set -e clear_page_cache() { echo 3 | sudo tee /proc/sys/vm/drop_caches >/dev/null } execbm() { local id=$(docker $*) echo -e "GET /\r\n\r" | ./connect-bm $(docker inspect --format='{{ .NetworkSettings.IPAddress }}' $id):8080 docker stop $id >/dev/null docker rm $id >/dev/null } echo "...
true
59fd0adff5916a9ae4cb82310d620ed6f5b684ea
Shell
adolfohd/bioinformaticscourse
/main.sh
UTF-8
341
2.78125
3
[]
no_license
grep "non-coding" ../data/humangenome/rna.q | while read -r line ; do geneid=$(grep -Po "(?<=GeneID:)\\d+" <<< "$line") # echo "$geneid" awk '$12=="GENE"' ../data/humangenome/seq_gene.md | while read -r seq; do query="GeneID:$geneid\$" grep "$query" <<< "$seq...
true
22ba7938147b73a89f603f5a93120e0ba6d3c012
Shell
zxc2007/Exploiter-Config
/exploit-config.sh
UTF-8
18,767
2.875
3
[ "MIT" ]
permissive
#!/bin/bash #Colors n="1" n2="2" n3="3" n99="99" h="HTTPS" white="\033[1;37m" grey="\033[0;37m" purple="\033[0;35m" red="\033[1;31m" green="\033[1;32m" yellow="\033[1;33m" Purple="\033[0;35m" Cyan="\033[0;36m" Cafe="\033[0;33m" Fiuscha="\033[0;35m" blue="\033[1;34m" redback=" \e[41m" greenback="\e[42m" nc="\e[0m" #Bann...
true
6970f8b7aec12e1350023cb121ad644ebb5455ea
Shell
xonel/GFrun
/GFrun/GFrun.sh
UTF-8
40,168
3.03125
3
[]
no_license
#! /bin/bash # # GFrun # # Auteurs : Le.NoX ;o) # M@il : le . nox @ free . fr # https://github.com/xonel/GFrun Version="0.5.2" # # Licence: GNU GPL # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Soft...
true
7327b7cba2b4cc04ab54bec84916c2f455cee91c
Shell
ASHUNAEV/Linux_hw
/avail_space.sh
UTF-8
8,451
3.796875
4
[]
no_license
#!/bin/bash #Available partition space script. Yellow='\e[93m' Reset=\\e[39m Magnet='\e[35m' Red='\e[0;31m' Green='\e[0;32m' declare -i sum_available=0 #---------------------------Function----------------------- Function_calculation_size() { Coef1=$1 Coef2=$2 Size_name=$3 available_size=$(bc <<< "scale...
true
5a7a86a4af95b344ae2512d5c25b4264e7d79d0b
Shell
amedat/ev_chatbot
/chatito/run_chatito_generator.sh
UTF-8
488
2.71875
3
[]
no_license
#!/usr/bin/env bash # # Chatito # https://github.com/rodrigopivi/Chatito # # Generate datasets for AI chatbots, NLP tasks, named entity recognition or # text classification models using a simple DSL! # # Chatito supports Node.js v8.11.2 LTS or higher # # set current working directory to the directory of the script? cd...
true
cb867cdc92bfb12ed5c3a2b287e19d142f4e1a53
Shell
adalisan/vsi_common
/linux/git_safe_update
UTF-8
449
3.359375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -eu # Retrieve the sha git fetch "${JUST_GIT_USE_REMOTE-${JUST_GIT_UPSTREAM-just_upstream}}" "${1}" # store the branch name incase merge fails, this will reattach the head how # exactly it was before_branch="$(git rev-parse --abbrev-ref HEAD)" # detach the head git checkout "$(git rev-parse HE...
true
0a934df4fe5c053832075f58d2b5bffc0acfbe48
Shell
luoshizhi/tools
/useradd.sh
UTF-8
1,493
3.671875
4
[]
no_license
#!/bin/bash if [ $# != 2 ] then echo " use for root in cluster" echo " Usage:" echo " $0 NewUser Group" exit 2 fi WHO=`whoami` if [ $WHO != "root" ] then echo " Only root have permission to add user " echo " Please use root to run this script! " exit 2 fi HOST=`hostname` i...
true
ef8cf49190cf7e4bc9600479558b3bfdd532c0f3
Shell
subharanjanm/skel
/scripts/hostiplookup
UTF-8
1,234
3.53125
4
[]
no_license
#!/bin/bash LOOKUPS="80.11.67.135 server7.integrityserver.net" REGEX_IP="\(\([0-9]\{1,3\}\.\)\{3\}\([0-9]\{1,3\}\)\)" REGEX_IP_HOST="\(\([0-9]\{1,3\}[-_\.]\)\{3\}\([0-9]\{1,3\}\)\)" REGEX_WORD="[-_\. a-zA-Z]*" # assume input isn't IP HOST_IP='' IS_IP='' for LOOKUP in ${LOOKUPS} do HOST_IP=${LOOKUP} IS_IP=`echo ${...
true
5692600295a91182f774f8ae7863fdf5c1866f00
Shell
saifulapm/dotfiles-5
/.bash_profile
UTF-8
1,783
2.6875
3
[]
no_license
# shellcheck shell=bash disable=SC1090 ## Set Environment Variables # ----------------------------------------------------------------------------- export BROWSER=firefox export EDITOR=nvim export VISUAL=$EDITOR export TERMCMD=termite # merge program for pacdiff export DIFFPROG="$EDITOR -d" # find locally installed...
true
c2e23f933ffd0eb8bb3b75bb307d556118b3a292
Shell
omzn/PMAN3
/INSTALL.sh
UTF-8
954
3.015625
3
[]
no_license
#!/bin/bash # $Id: INSTALL.sh,v 1.13 2010/04/25 10:46:44 o-mizuno Exp $ echo "=====================================================================" echo " PMAN3 installer script" echo "=====================================================================" echo "mkdir db & tmp" mkdir db chmod 777...
true
f87888875b9218b9bc9ae6954a478322a0027c00
Shell
vashadow/dctm-docker
/dctm-apphost/bundles/entrypoint.sh
UTF-8
1,776
3.484375
3
[]
no_license
#!/bin/sh dockerUsage() { cat 2>&1 <<EOF This container must be linked with the cs (as 'dctm-cs') and bam (as bam) servers. Something like: docker run -dP --name apphost -h xms --link dctm-cs:dctm-cs --link bam:bam dctm-apphost EOF exit 2 } # check container links [ -z "${DCTM_CS_NAME}" -o -z "${BAM_NAME}" ] ...
true
c821f7165b9af69f386da7511bebd9907db962cd
Shell
cms-analysis/HiggsAnalysis-HZZ4l_Combination
/RunLimits/scripts/make_grid.sh
UTF-8
4,569
3.140625
3
[]
no_license
#!/bin/bash GO=0; if [[ "$1" == "--go" ]]; then GO=1; shift; fi; LSF=0; if [[ "$1" == "--lsf" ]]; then LSF=1; shift; fi; PRI=0; if [[ "$1" == "--pri" ]]; then PRI=1; shift; fi; GS=0; if [[ "$1" == "--gs" ]]; then GS=1; shift; fi; CBL="cern"; if [[ "$1" == "--cbl" ]]; then CBL="$2"; shift; shift; fi; PFIX=0; if [[ "$...
true
52f62b3ad6c092273cab98f04e709a7f8de8e874
Shell
5ko99/FMI-Semester-5
/OS/Tasks/SEARCH_STRING_IN_FILE.sh
UTF-8
112
3.3125
3
[]
no_license
read file read str grep -q $str $file if [ $? -eq 0 ] then echo "Found it!" else echo "It's not in the file" fi
true
6408285328572373ad7e07c686383b9918d17b9e
Shell
devopscenter/dcUtils
/nltk-download-data.sh
UTF-8
3,515
4.03125
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash #=============================================================================== # # FILE: nltk-download-data.sh # # USAGE: ./nltk-download-data.sh # # DESCRIPTION: Script to download the items found in the nltk.txt file # as defined by the user. # # OPTIONS: ...
true
55525e95e34f1ea50e8f970fa81528688b892cfd
Shell
ministryofjustice/ecs-tools
/ssh-to-service-host
UTF-8
1,186
3.984375
4
[]
no_license
#!/bin/bash set -e ## # SSH to a service host # Open an SSH connection to the host instance of a running ECS service. ## USAGE="Open an SSH connection to the host instance of a running ECS service. Usage: ssh-to-service-host <cluster> <service> [...] Parameters: <cluster> Name of the ECS cluster. <service>...
true
eb186b7d5608764549d81fd62bdafd89f875c1ef
Shell
ClassyTie/MyHost
/change_wallpaper-xfce4
UTF-8
215
2.53125
3
[]
no_license
#! /bin/bash SCREEN_ID="screen0" MONITOR_ID="monitor0" wallpaper_image_path="${1}" xfconf-query --channel "xfce4-desktop" --property "/backdrop/${SCREEN_ID}/${MONITOR_ID}/image-path" --set "${wallpaper_image_path}"
true
19e163a52a3798201981233ad59358d09cb5b126
Shell
mborecki/input-action-binder
/scripts/build.sh
UTF-8
599
2.96875
3
[]
no_license
#!/bin/bash if [ -d "./.publish-temp" ]; then rm -r "./.publish-temp" fi if [ -d "./lib" ]; then rm -r "./lib" fi # Add here all access point files. files=( "index" "browser" "phaser" ) mkdir lib ./node_modules/.bin/tsc -p ./tsconfig.json --declaration --outDir ./.publish-temp --declarationDir ...
true
b77e8f1614f79da8867d57e504eef959584088ec
Shell
ngeorgieff/pre-commit-hooks
/pre_commit_hooks/terraform/tflint.sh
UTF-8
226
2.921875
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e # Make environment variables working in OSX GUI apps such as Github Desktop # https://stackoverflow.com/q/135688/483528 export PATH=$PATH:/usr/local/bin for file in "$@"; do tflint "$file" done
true
bbd473baa3511b74a18392869dd1787c16a99961
Shell
jweiming/micronaut-java-oci
/bin/scripts/setup-oke.sh
UTF-8
416
2.609375
3
[]
no_license
#setup oke, keys on OCI #!/bin/bash echo "**** Start of OKE Setup ****" echo "**** Generating SSH Key ****" mkdir ./bin/scripts/terraform/oke-keys ssh-keygen -t rsa -b 2048 -f ./bin/scripts/terraform/oke-keys/oke_rsa_keys -N "" > ./bin/scripts/terraform/oke-keys/oke_rsa_keys.output echo "**** Cloning OCI-OKE Terrafor...
true
1a4d29b4fb335f86a0ac925be0c0d0f032cbec6f
Shell
carverdamien/acdc
/lab/eval/rrfs/cpucost/run.sh
UTF-8
1,551
3.28125
3
[]
no_license
#!/bin/bash set -x -e source kernel [ -n "${KERNEL}" ] [ "$(uname -sr)" == "Linux ${KERNEL}" ] [ -n "${SCAN}" ] PRE="docker-compose --project-directory $PWD -f compose/unrestricted.yml" RUN="docker-compose --project-directory $PWD -f compose/restricted.yml" # Prepare make -C workloads ${RUN} down --remove-orphans ${...
true
52662f555128469762baf3d0b3688ef3c0aeb0d7
Shell
zhanglei/tpch-impala
/tpch_impala.sh
UTF-8
20,834
2.734375
3
[]
no_license
#/bin/sh set -e TPCH_SOURCEFILE=$(mktemp) $(which python) - "${0}" "${@}" "--source" "${TPCH_SOURCEFILE}" <<END import argparse import sys import tempfile sys.argv = sys.argv[1:] common = argparse.ArgumentParser(add_help=False) common.add_argument('--source', help=argparse.SUPPRESS) common.add_argument('-v', '--ver...
true
bd20ddf3dfd560d3a86ae038f953431ff68b626d
Shell
liaorg/laydock
/start.sh
UTF-8
687
3.359375
3
[ "MIT" ]
permissive
#!/bin/sh # set -x echo "--- 启动 ssh ---" flag=`ps aux|grep "sshd"|grep -v "grep"|wc -l` if [ "$flag" = "0" ]; then service ssh start fi service ssh status echo "================================" echo "--- 启动 docker ---" flag=`ps aux|grep "dockerd"|grep -v "grep"|wc -l` if [ "$flag" = "0" ]; then service doc...
true
9cd0d1dbce12981bba83c5765391bc0f878d4358
Shell
South-Walker/Banking-mon
/alertscript(微信配置完毕)/SendShortMessage.sh
UTF-8
304
2.765625
3
[]
no_license
#!/bin/sh DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" apikey="#yourapikey#" url="https://sms.yunpian.com/v2/sms/single_send.json" mobile=$1 message=$($DIR/managemessage.sh $2) text=$($DIR/getshortmessage.sh $message) post="apikey="$apikey"&mobile="$mobile"&text="$text curl -d "$post" "$url"
true
760340a4eaeb1e2abed750050681a6b9a323adb1
Shell
lumc-nested/nested-website
/deploy-gh-pages.sh
UTF-8
523
3.609375
4
[ "MIT" ]
permissive
#!/bin/bash # Update the GitHub Pages website. set -o nounset set -o errexit set -o pipefail if [ ! -d "dist" ]; then echo "Distribution not found in dist/" echo "Did you build the distribution (npm run dist)?" exit 1 fi GH_PAGES="$(mktemp -d)" git clone git@github.com:lumc-nested/lumc-nested.github.io....
true
cb452fa0c53edf1c0247ce7a671b8b7d84dd036a
Shell
delkyd/alfheim_linux-PKGBUILDS
/emacs-processing-mode-git/PKGBUILD
UTF-8
985
3.046875
3
[]
no_license
# Maintainer: Mort Yao <soi@mort.ninja> pkgname=emacs-processing-mode-git pkgver=20150609 pkgrel=1 pkgdesc="Major mode for Processing 2.0." arch=('any') url="https://github.com/ptrv/processing2-emacs" license=('GPL3') depends=('emacs') makedepends=('git') provides=('emacs-processing-mode') replaces=('emacs-processing-...
true
7b152c2fe21b8067494295567825ba101c8d4d36
Shell
mynameisevan3/ParticleSwarmOptimization
/swarmPower.sh
UTF-8
819
3.5
4
[]
no_license
#!/bin/sh # Automation of Particle Swarm Power Measure Collection # Variable Definitions coreStart=1 coreEnd=4 # Header echo "Particle Swarm Power Measure Run" # No File Generation Here - Just for Power Measures # Make Program make clean make echo # Initial Test Run - shows which values are which. ./swarm 0.5 0.5...
true
41a95530d1982465b33e25f4764b216aad915de9
Shell
ynagae1tryeting/lab
/1_相安定性の計算用のコード/src/BM.Integratedata.sh
UTF-8
1,689
3.453125
3
[]
no_license
#!/bin/bash # 8原子・2元系の混晶の組み合わせ計算を行う # 基準のPOSCARを一つずつ入れておくこと LF=$(printf '\\\012') #sed 挿入コマンド用 LF=${LF%} #sed 挿入コマンド用 ### ----- (2元混晶のPOSCARの体積を設定した%ずつ変化させて出力) ----- function BM.Integratedata () { filepath=./* rootpath=`pwd` for i in $filepath; do if [ -d $i ]; then # --- direct...
true
b7ba37373e965662175d778400e7c8cdb02749d2
Shell
petronny/aur3-mirror
/minaton/PKGBUILD
UTF-8
784
2.71875
3
[]
no_license
# Maintainer: SpepS <dreamspepser at yahoo dot it> pkgname=minaton pkgver=0.0.1 pkgrel=1 pkgdesc="A music software synthesizer project" arch=(i686 x86_64) url="http://sourceforge.net/p/minaton/home/Home/" license=('GPL') depends=('jack' 'fltk') source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname.tar.gz...
true
d98825815b2397b2dabcd3c9b9e06c8ca0f3c274
Shell
kpucynski/dotfiles
/install_deb.sh
UTF-8
2,096
2.5625
3
[]
no_license
#!/bin/bash set -e # it should be done in Ansible sudo apt remove nano sudo apt purge apport sudo apt install pandoc vim mc gnome-tweaks diodon meld curl -sS https://download.spotify.com/debian/pubkey.gpg | sudo apt-key add - echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list....
true
5e87aad8b2565f358b1e6cac5e5e516fa2ba7885
Shell
CharLies-nana/hongjing
/chk_all.sh
UTF-8
1,343
3.484375
3
[]
no_license
#!/bin/bash #function: # 1.检查所有平台备份情况 #错误显示 print_error(){ echo -e "\033[33;1m检查所有平台备份:\033[0m" echo -e "\033[33;1m $0 CENTER chkbak all\033[0m" exit 0 } #开始脚本 cd `dirname $0` CENTER_NAME=$1 #获取服务器列表 /usr/bin/php get_plat.php if [[ $# != 3 ]];then print_error exit fi #CENTER_PLATS=(uc yy...
true
f234220b535174de8212266172e343a69b7a89c5
Shell
shubham-singh98/demo1
/exercise/prog2.sh
UTF-8
303
2.8125
3
[]
no_license
#!/bin/bash clear echo "Hello" read -p "Please enter your name here": name echo "$name" >> names.txt clear echo "your name $name has been successfully added" echo "=============================================" cat names.txt echo "=============================================" echo "bye $name" sleep 2
true
930e12e902353b7d861a94bfcca0221699f2f0a3
Shell
ppc64le/build-scripts
/a/antlr-runtime/antlr-runtime-ubuntu_18.04.sh
UTF-8
2,045
3.640625
4
[ "Apache-2.0" ]
permissive
# ---------------------------------------------------------------------------- # # Package : antlr-runtime-3.4.jar # Version : 3.5.2 # Source repo : https://github.com/antlr/antlr3.git # Tested on : Ubuntu_18.04 # Script License : Apache License, Version 2 or later # Maintainer : Kishor Kunal Raj...
true
6482ea6114d107b6dfb04648f8b04871f89d95bf
Shell
howardhuang03/script
/kafka-script/1.0.1/new-consumer-group.sh
UTF-8
426
3.140625
3
[]
no_license
#!/usr/bin/env bash . config.sh GROUP=$1 if [ -z $GROUP ]; then echo "Please enter the Group you want to check, EX: ./new_consumer_group.sh logstash_group13" echo "Following are avalible new consumer groups:" $KAFKA/bin/kafka-consumer-groups.sh --list \ --bootstrap-server $BOOTSTRAP exit 0 fi...
true
515fd162f8f92f41ca9cb10313fec44a98003147
Shell
slpcat/docker-images
/stackstorm/st2-docker/images/stackstorm/bin/entrypoint-1ppc.sh
UTF-8
3,947
2.796875
3
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
#!/bin/bash ST2_CONF=/etc/st2/st2.conf crudini --set ${ST2_CONF} auth api_url ${ST2_API_URL} crudini --set ${ST2_CONF} mistral api_url ${ST2_API_URL} crudini --set ${ST2_CONF} mistral v2_base_url ${ST2_MISTRAL_API_URL} # Configure CORS to accept any source # st2api gunicorn process is directly exposed to c...
true
ed9c2ce4e3dee34cbc64b0043deee373cd91917f
Shell
gunner14/old_rr_code
/java_workplace/oce-tools/Autobuild/bin/mailer.sh
UTF-8
531
2.78125
3
[]
no_license
#!/bin/bash echo "" echo "----mailer: sending report" echo "" #:<<BLOCK receiver="" while read LINE do receiver="${receiver},$LINE" done < $1 /usr/sbin/sendmail -t <<EOF From:autobuilder<xiang.ye@opi-corp.com> To:$receiver Subject:autobuilder report v`date +20%y%m%d` `cat $2` ======== final report ======== --- fail...
true
cc19d76c175882836f3a5a04dce7fbb9256c2355
Shell
fredericpoitevin/pdbtools-fortran
/scripts/pdb_rnacleaner
UTF-8
977
3.609375
4
[]
no_license
#!/bin/bash # # We check here whether 2 arguments where given if [ $# -ne 2 ]; then echo "Usage error: $0 <input.pdb> <output.pdb>" exit fi input_pdb=$1 output_pdb=$2 # if [ ! -f output.pdb ]; then fix_numb $input_pdb numclean.pdb > ${output_pdb}.clean.log echo "To replace all non-standards residues by their stan...
true
4ea2b95f84c397c3c06cee45bb63cd7ffdebc16e
Shell
denislavdenov/consul-CT
/scripts/provision.sh
UTF-8
2,433
3.375
3
[]
no_license
#!/usr/bin/env bash #nameserver 127.0.0.53 #search consul which unzip curl socat jq route dig vim || { apt-get update -y apt-get install unzip socat jq dnsutils net-tools vim curl -y } # Install consul\ CONSUL_VER=${CONSUL_VER} which consul || { echo "Determining Consul version to install ..." CHECKPOINT_URL="htt...
true
b74b5fed74df00adacad5e9755381fe1e27d5e11
Shell
HemanthGK-GK/Bridgelabz
/UC1EmpAttandance.sh
UTF-8
124
3.109375
3
[]
no_license
#!/bin/bash -x num=$((RANDOM % 2)) if [ $num == 1 ] then echo "Employee is Present" else echo "Employee is Absent" fi
true
0f9a0a0b5f5a7cdc74a41a965afce9ad0f68fb31
Shell
broadinstitute/firecloud-ui
/automation/canary-prod-test.sh
UTF-8
2,202
3.75
4
[]
permissive
#!/bin/bash # Script to start canary test in Production set -e set -x ENV=$1 VAULT_TOKEN=${2:-$(cat $HOME/.vault-token)} WORKING_DIR=${3:-$PWD} NEED_TOKEN=false # Check if $ENV is not empty if [[ ! ${ENV} ]]; then # echo "ENV is empty. Run again \`sh canary-prod-test.sh <Production>\`" exit 1 else echo "S...
true
1d293de4fff911e56239c3901b054eac1bf665db
Shell
optionalg/bash-18
/getopts-t
UTF-8
382
3.546875
4
[]
no_license
#!/bin/bash while getopts ":u:a:s:v" options; do case $options in # u ) uname=$OPTARG;; u ) echo "hello";; a ) attrs=$OPTARG;; s ) searchattr=$OPTARG;; v ) att=ALL;; h ) echo $usage;; \? ) echo $usage exit 1;; * ) echo $usage exit 1;; esac done if [ $uname ]; then ...
true
6628ef15fc10a4cba5a7dc47159ac2cdac53bdd0
Shell
lzsdodo/xps2pdftxt
/run.sh
UTF-8
1,988
4.09375
4
[ "MIT" ]
permissive
#!/bin/bash src_dir=$1 if [ "$#" -ne "1" ]; then echo "Error args num: $#." exit 2 fi out_dir="./output" done_dir="$out_dir/done_xps" err_dir="$out_dir/err_xps" pdf_dir="$out_dir/pdf" txt_dir="$out_dir/txt" done_xps2pdf_log="$out_dir/done_xps2pdf.log" err_xps2pdf_log="$out_dir/err_xps2pdf.log" done_pdf2txt...
true
d5cb842f3fd2f250b89a08f5faf806e5bfa631ac
Shell
FraMecca/cdgc_tests
/benchmark/run.sh
UTF-8
2,933
2.796875
3
[]
no_license
set -e cd .. && make -C ../phobos/ BUILD=debug -f posix.mak # recompile runtime if needed cd benchmark # compile small benchmark programs for fp in $(ls aabench) do dmd -debug -L-L../../phobos/generated/linux/debug/64/ -I../../druntime/import/ -I../../phobos/ -g aabench/$fp -ofbin/$(basename $fp .d) echo com...
true
a4dad66d5ce8c1acb70d8e1917cb43a7b76e94c4
Shell
742362144/executor
/docker/virtctl/virtctl.sh
UTF-8
507
2.53125
3
[]
no_license
#!/usr/bin/env bash ############################################################## ## ## Copyright (2019, ) Institute of Software ## Chinese Academy of Sciences ## Author: wuheng@otcaix.iscas.ac.cn ## ################################################################ #SHELL_FOLDER=$(cd "$(dirna...
true
5807e20f1cc7a09f7103c73e3f9f68af739ea6e5
Shell
DanielCalvo/studies
/Golang/metryingtofigureshitout/mysql_example/setup.sh
UTF-8
328
3.046875
3
[]
no_license
if [[ $# -eq 0 ]]; then echo "You must pass at least one argument" exit 1 fi if [[ $1 = "import" ]]; then cat db_dump.sql | mysql -h127.0.0.1 -uuser -ppassword mydb echo "import the db pls" fi if [[ $1 = "prune" ]]; then docker container prune --force docker image prune -a --force docker volume prune --...
true
5d641fa683139cf41a99cab0b32bd56c9dd5ad01
Shell
jfranco8/arqo_2019_2020
/p3/ejercicio2/ejercicio2.sh
UTF-8
6,785
3.390625
3
[]
no_license
#!/bin/bash # Arquitectura de ordenadores 2019/2020 # Practica 3 # # Ejercicio 1 # # Jesus Daniel Franco Lopez # Grupo 1362 # Pareja 44 # Semilla P # P = (44 mod 7) + 4 = 2 + 4 = 6 make clean make # Inicializar variables NInicio=2000+512*6 # Valor de inicio para el tamaño de las matrices NPaso=64 # Diferencia de ta...
true
705148868045a7dd29c7905135adbf020f27f9f4
Shell
gzluo/viral-ngs
/travis/install-conda.sh
UTF-8
556
3.109375
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
#!/bin/bash set -e if [[ "$TRAVIS_PYTHON_VERSION" == 2* ]]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; else wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi bash miniconda.sh -b -p $HOME/miniconda chown -R $USER...
true
216a827b2662b3021156ada57e27526be6128deb
Shell
TavvyCat/Travel-Job-API
/curl-scripts/jobs/create.sh
UTF-8
564
2.578125
3
[]
no_license
#!/bin/bash API="http://localhost:4741" URL_PATH="/jobs" curl "${API}${URL_PATH}" \ --include \ --request POST \ --header "Content-Type: application/json" \ --header "Authorization: Bearer ${TOKEN}" \ --data '{ "job": { "occupation": "'"${OCC}"'", "type": "'"${TYPE}"'", "pay": "'"${PAY...
true
10697e441806c024c1202b48cbf26cc85d06169d
Shell
k-oyakata/idp-proxy-experiment
/image-build/auth-proxy-ubuntu/build-auth-proxy-ubuntu.sh
UTF-8
592
2.65625
3
[]
no_license
#!/bin/bash OPT=$1 BASE_DIR=$(cd $(dirname $0);cd ../../;pwd) mkdir -p $BASE_DIR/image-build/auth-proxy/resources/keys cp -p ~/cert/auth-proxy/auth-proxy.chained.cer $BASE_DIR/image-build/auth-proxy/resources/keys/auth-proxy.chained.cer cp -p ~/cert/auth-proxy/auth-proxy.cer $BASE_DIR/image-build/auth-proxy/resource...
true
4137010ab0ecde5ba4ae661b36ffcc252f3b8662
Shell
maltejk/uberspace-scripts
/sbin/uberspace-account-common
UTF-8
1,715
3.3125
3
[]
no_license
#!/bin/bash ######################################################################## # # 2010-10-01 # Christopher Hirschmann # c.hirschmann@jonaspasche.com # ######################################################################## # # This program is free software: you can redistribute it and/or modify # it under the t...
true
4f89dbffd1da50b1d9ec6d12c1f8a32f3797e46c
Shell
normanbraun/ProjectZero
/vm/script/user/reload-scripts.sh
UTF-8
1,112
3.8125
4
[]
no_license
#!/bin/bash source /vm/script/bash/util/console.sh # ---------------------------------------------------------------------------------------------------------------------- # Functions # ---------------------------------------------------------------------------------------------------------------------- function cop...
true
e1bcf0e6f079fc100d0f0d9499498c9701d955f8
Shell
NFarrington/git-workshop
/exercise1/setup.sh
UTF-8
445
2.8125
3
[]
no_license
#!/bin/bash git init cat > .gitignore <<EOF /README.md /setup.sh EOF git add .gitignore git commit -m "Add .gitignore" echo "Test file 1" > file1 git add file1 git commit -m "Commit 1" --no-gpg-sign # --no-gpg-sign is included to make the raw files in the exercise easier to read echo "Test file 2" > file2 git add f...
true
e1e4b18515b8a6cd97c4ec1163f6568eeb80105a
Shell
roxor05/Programs
/Bash scripting/dockertocreateanotherterminal.sh
UTF-8
591
3.109375
3
[]
no_license
#!/bin/bash SOURCE_FILE=doc.sh USER=root #Datanodes HOST Names HOST1=95.216.147.252 R_HOME=/$USER REMOTE=$R_HOME/filename #NODE-1 SCP="scp -i /home/roxor/Downloads/access $SOURCE_FILE $USER@$HOST1:" SSH="ssh -i /home/roxor/Downloads/access $USER@$HOST1" SSHOPT="-t" COMMAND="$SCP" echo $COMMAND ...
true
df4fb753e4d4d43ee02525d88d3d351f577c22b5
Shell
CGX-GROUP/geographiclib
/cgi-bin/Planimeter.cgi
UTF-8
9,319
3.25
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#! /bin/sh # # Planimeter.cgi # cgi script for measuring the area of geodesic polygons # # Copyright (c) Charles Karney (2011-2023) <charles@karney.com> and # licensed under the MIT/X11 License. For more information, see # https://geographiclib.sourceforge.io/ . ./utils.sh DEFAULTRADIUS=6378137 DEFAULTFLATTENING=1/29...
true
5227f2c5cc0499e8ef7d8e0dedbf162b7907410a
Shell
rsenn/scripts
/sh/functions/grub2-modules-for-device.sh
UTF-8
848
3.6875
4
[]
no_license
grub2-modules-for-device() { ( ARG="$1"; [ ! -b "$ARG" ] && ARG=$(device-of-file "$ARG"); [ ! -b "$ARG" ] && exit 2; FS=$(filesystem-for-device "$ARG"); SUFFIX=${1##*/}; SUFFIX=${SUFFIX#[hs]d[a-z]}; DISK=${1%"$SUFFIX"}; [ "$DISK" ] && PART_TYPE=$(partition-table-type "$DISK"); case "...
true
121b6f62ed33b54409b13c585884d4acd2d6b473
Shell
troberson/exercises-exercism
/bash/hamming/hamming_test.sh
UTF-8
2,070
3.046875
3
[ "Unlicense" ]
permissive
#!/usr/bin/env bash @test "empty strands" { run bash hamming.sh "" "" [ "$status" -eq 0 ] [ "$output" -eq 0 ] } @test "identical strands" { run bash hamming.sh "A" "A" [ "$status" -eq 0 ] [ "$output" -eq 0 ] } @test "long identical strands" { run bash hamming.sh "GGACTGA" "GGACTGA" [ "$status" -eq 0 ...
true
367c3b6bf836318dfbda33b1d7234f2d15e125fc
Shell
tomagoyaky/openssl_for_ios_and_android
/tools/build-curl4android.sh
UTF-8
6,084
3.421875
3
[]
no_license
#!/bin/bash # # Copyright 2016 leenjewel # # 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 or agreed ...
true
4c9d51a3a518834dda992ae19242810708b25d41
Shell
mssalvatore/ubuntu-cve-tracker-mirror
/scripts/pkg_history
UTF-8
1,860
3.96875
4
[]
no_license
#!/bin/sh # Author: Jamie Strandboge <jamie@ubuntu.com> # Copyright (C) 2013 Canonical Ltd. # # This script is distributed under the terms and conditions of the GNU General # Public License, Version 2 or later. See http://www.gnu.org/copyleft/gpl.html # for details. set -e showfull="no" release= showstatus="no" acti...
true
8f758e3bfec5c5ecce5270d9b4a229c059523547
Shell
nikvdp/bash-it
/plugins/available/ssh-agent.plugin.bash
UTF-8
2,805
4
4
[]
no_license
cite about-plugin about-plugin 'Automatically start ssh-agent' dohdoh() { while read id_file; do fingerprints="$id_file $(key-to-fingerprint "$id_file")\n$fingerprints" done < <(ls ~/.ssh/id* | grep -v '\.pub$') echo -e $fingerprints | sed '/^$/d' } load-fingerprints-and-ids () { export finge...
true
b3871d4f384b02da327b65771d3c97acab32d08e
Shell
Ponce/slackbuilds
/games/higan/higan.SlackBuild
UTF-8
6,748
3.046875
3
[]
no_license
#!/bin/bash # Slackware build script for higan # Based on bsnes SlackBuild by Erik Hanson <email removed> # Maintained by Gabriel Magno <email removed> # Modified by Johannes Schoepfer <email removed> # Modified again & now maintained by B. Watson <urchlay@slackware.uk> # Copyright 2013 Gabriel Magno, Belo Horizonte...
true
58d7192620d62a64fcb2d4a9aad499c93aa3576f
Shell
kixxauth/local
/shell_scripts/install_node
UTF-8
1,240
4.28125
4
[ "MIT" ]
permissive
#!/bin/bash THISDIR="$(cd `dirname "$0"` && pwd)" ROOTDIR="$( dirname "$THISDIR" )" CONFDIR="$ROOTDIR/conf" LIBDIR="$ROOTDIR/lib" NODEDIR="$HOME/tmp/node_install" source "$LIBDIR/utils.sh" main () { local version=$( cat "$CONFDIR/node.version" ) if [ -z $version ]; then fail "No Node.js version speci...
true
420d8fedf1d43e74d47617ea61da54055307194b
Shell
macrosity/bash_scripts
/bin/10-setting-var.bash
UTF-8
741
4.0625
4
[]
no_license
#!/bin/bash # LA exercise 2 - write a script that sets 4 variables. Populate the first two with some default value and use command # redirection to set the third and fourth value to the date/time of when the script was started and completed. Within # the script, be sure to display the values to the terminal when run. ...
true
bead06afdff33cb377dd8538f997fc8c2d1f22b7
Shell
marciogranzotto/addon-transmission-nas
/transmission-nas/rootfs/etc/cont-init.d/10-requirements.sh
UTF-8
1,406
3.21875
3
[ "MIT" ]
permissive
#!/usr/bin/with-contenv bashio # ============================================================================== # This files check if all user configuration requirements are met # ============================================================================== # Check authentication requirements, if enabled if bashio::c...
true
0701418b555c9c160c7c1bfe5c9e2074f3eab5b4
Shell
sharethis-github/iabtcf-es
/bin/publish-version
UTF-8
1,324
3.765625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash VERSION=$1 BRANCH=$(git rev-parse --abbrev-ref HEAD) if [[ -n $VERSION && $BRANCH == 'develop' ]]; then ROOT=$(git rev-parse --show-toplevel) cd $ROOT yarn build if [[ $? != 0 ]]; then echo echo "Unsuccessful build... Bailing" echo exit 1 fi yarn test if [[ $? != 0 ]]; ...
true
b615e1772409ef61abf3adc4d63f6674878ed275
Shell
Honestpuck/everyworld_2020
/everyworld-2020-zsh/shell_bits/while.sh
UTF-8
237
3.296875
3
[ "MIT" ]
permissive
#!/bin/zsh WORD="Start" while [ "$WORD" != "" ]; do echo -n "Word: " read WORD case "$WORD" in "Foo") echo "Bar" ;; "Bar") echo "Foo" ;; "FooBar") echo "No Way" ;; "") ;; *) echo "FooBar" ;; esac done
true
ea20dba3992b6335ad88b58ff7edb6801381ecdd
Shell
PsymonLi/sw
/nic/sim/naples/install.sh
UTF-8
518
3.734375
4
[]
no_license
#!/bin/bash if [ "$1" = "" ]; then echo "usage: $0 <nic-vx.y.tgz>" exit; fi echo "Installing NAPLES simulation ..." # install the software components export NAPLES_INSTALL_DIR=$HOME/naples/v1 echo "Extracting NAPLES packages to $NAPLES_INSTALL_DIR" mkdir -p $NAPLES_INSTALL_DIR tar xmzf $1 -C $NAPLES_INSTALL_D...
true
235684243b553ad7c6f54a266fa03f31f93ad5db
Shell
parwezk/Linux_Monitoring_Scripts
/khlnxenv.sh
UTF-8
14,969
3.484375
3
[]
no_license
KHCMRVERSION=2.0.1 if [ $# != 1 ]; then echo "Uso : . khpgenv <arch-conf>" echo "KH-CMR Version : ${KHCMRVERSION}" return 1 else . $1 if [ $? != 0 ]; then echo "Error ejecutando archivos de configuracion" echo "Entorno no quedo configurado correctamente" return 1 fi ...
true
024c93bf74323be722aee083c7d6c9abeb7129df
Shell
nataliavelez/PreferencesFMRI
/2_preprocessing/2_1_trim.sh
UTF-8
774
3.375
3
[]
no_license
# Project directories PROJECT_DIR=$PI_SCRATCH/OPUS IN_DIR=$PROJECT_DIR/NIMS_data_anonymized # Search for anatomical files FUNC_DIRS=`find $IN_DIR -name "*BOLD_EPI_29mm*"` printf "%s\n" $FUNC_DIRS # Number of timepoints to trim N_TRIM=3 for d in $FUNC_DIRS; do # Get file IN_F=$(find $d -name "*.nii.gz") OUT_F="${I...
true
f64b1ce75a247218ecde9546bce4422cc65d601b
Shell
thaim/docker-utils
/docker_list_tags
UTF-8
850
4.03125
4
[ "MIT" ]
permissive
#!/bin/sh # show all tags for specified repository registry='https://registry.hub.docker.com' usage() { echo "Usage: $0 [-r registry] [namespace/]repository" >&2 } set -- `getopt r: $*` if [ $? != 0 ]; then usage exit 1 fi for OPT in $*; do case $OPT in -r) registry=$2 shift 2 ...
true
e24cd6fb473204283c0b3e9efd018d18b979b122
Shell
ihuston/pyflation
/pyflation/qsub-sh.template
UTF-8
831
3.15625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash #$ -l h_rt=%(timelimit)s #$ -N %(runname)s #$ -o %(qsublogname)s #$ -j y #$ -v PATH,PYTHONPATH,LD_LIBRARY_PATH #$ -S /bin/bash %(extra_qsub_params)s echo ----------------------------------------- echo Start: host `hostname`, date `date` if [ -n "$SGE_TASK_ID" ]; then if [ "$SGE_TASK_ID" != "undefined" ...
true
c2526332a464ecc5f2c60819f38fe3fb9201066e
Shell
daniel-1964/msys2
/custom-packages/jbig2dec/PKGBUILD
UTF-8
2,163
2.953125
3
[]
no_license
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net> pkgbase=jbig2dec pkgname=('jbig2dec' 'libjbig2dec0' 'libjbig2dec-devel') pkgver=0.19 pkgrel=1 pkgdesc='Decoder implementation of the JBIG2 image compression format (msys)' url='https://jbig2dec.com/' arch=('any') license=('AGPL') depends=('libpng16') makedepends=...
true
fa908b34b0fbd33a5d9099c0c68d4a15c7caac37
Shell
Tibiazak/umsl-cs
/cs2750/bearden_pa2/fizzbuzz
UTF-8
384
3.3125
3
[]
no_license
#!/bin/bash # Joshua Bearden # CS2750 PA2 # Date 19/09/2017 if [ $# -gt 0 ] then total=$1 else total=20 fi for (( i = 1 ; i < $(($total+1)) ; i++ )) do if [[ $(( $i % 3 )) -eq 0 && $(( $i % 5 )) -eq 0 ]] then echo fizzbuzz elif [[ $(( $i % 3 )) -eq 0 ]] then echo fizz elif [[ $(( $i %...
true
7fbdbb994510cf6eb0ceaf234e1960c34c4127a2
Shell
dirkmoors/docker-django-python34
/scripts/make_configurations.sh
UTF-8
208
3.015625
3
[]
no_license
#!/bin/bash source "${SCRIPTSDIR}/config.sh" make_uwsgi_config() { echo "Generating uwsgi config file..." cat ${UWSGI_CONF_TEMPLATE} \ | python -c "${PYTHON_JINJA2}" \ > ${UWSGI_CONF} }
true
b99500e3ba14a11ab00514da60b3ff709bfc7039
Shell
inspirasiprogrammer/hackthebox
/tools/lxd-alpine-builder/build-alpine
UTF-8
7,508
3.40625
3
[ "MIT", "LGPL-2.1-only" ]
permissive
#!/bin/sh # Make sure the usual locations are in PATH PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin export PATH key_sha256sums="9c102bcc376af1498d549b77bdbfa815ae86faa1d2d82f040e616b18ef2df2d4 alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub 2adcf7ce224f476330b5360ca5edb92fd0bf91c92d83292ed028d7c4e26333ab alpine-dev...
true
5957178f9db79f96b7da9e0d9da51b028415e85d
Shell
AitonGoldman/PapaScoringSoftware
/back/utils/performance/performance_test_record_score.sh
UTF-8
409
2.734375
3
[]
no_license
SCORE=$2 if [ -z "$2" ] then SCORE=$RANDOM fi echo $SCORE export URL="http://0.0.0.0:8000/test/entry/division_machine/$1/score/$SCORE" sleep .1 curl -X POST -b /tmp/cookie -s -o /tmp/test_out_record_score_$1.out -w "\npeekaboo - $1 - %{time_total}" -H "Content-Type: application/json" $URL > /tmp/time_record_sco...
true
e8f9941b157a0b82d8aea5c16ba0fbee966c4ec9
Shell
binhonglee/SunriseAlarmClock
/unix.sh
UTF-8
248
2.984375
3
[]
no_license
if [ $(uname) == "Darwin" ]; then echo "MacOS detected" brew install make cmake avrdude avr-libc else echo "Debian based linux detected" sudo apt-get update sudo apt-get install gcc-avr binutils-avr avr-libc cmake make gdb-avr avrdude fi
true
8a3eb87bb13269dc1f573e97aaa69f71039c9475
Shell
Reminance/.config
/arch/distro_judge.sh
UTF-8
1,094
3.1875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/bash # OS判断 与 预安装jq; if grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then DISTRO='CentOS' PM='yum' elif grep -Eqi "Arch" /etc/issue || grep -Eq "Arch" /etc/*-release; then DISTRO='Arch' PM='pacman' elif grep -Eqi "Red Hat Enterprise Linux Server" /etc/issue || grep -Eq "...
true
4d1d7bcacf8dedb8418f817f548952f688b1d92f
Shell
percona/percona-server-mongodb-operator
/e2e-tests/upgrade-consistency/run
UTF-8
1,528
2.875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -o errexit test_dir=$(realpath $(dirname $0)) . ${test_dir}/../functions set_debug CLUSTER='some-name' main() { create_infra $namespace desc 'create secrets and start client' kubectl_bin apply -f "${conf_dir}/client.yml" \ -f "${conf_dir}/secrets.yml" desc "create first PSMDB cluster 1.13.0 ...
true