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
31a28fcbcb84ce8b65d9e78d9157346cef0ef97b
Shell
omez/servertools
/install.sh
UTF-8
518
3.78125
4
[]
no_license
#!/bin/bash echo "Server Tools installation script by Alexander Sergeychik aka OmeZ (c) 2012" if [ "$(whoami)" != "root" ] then echo "Script should be executed with root access rights" exit 2 fi TO_DIR="/usr/bin" CURRENT_DIR=$(dirname $0) TOOLS=("initials/st-initial.sh" "pm-tool/pm-tool.sh") cd $CURRENT_DIR; ech...
true
5ceb52c2f2a4d88fe5589b6e30d019c58dd5a9c9
Shell
whiteknight7/tls
/alpine.sh
UTF-8
1,580
4.03125
4
[]
no_license
#!/bin/bash # Step 1: Download build-alpine => wget https://raw.githubusercontent.com/saghul/lxd-alpine-builder/master/build-alpine [Attacker Machine] # Step 2: Build alpine => bash build-alpine (as root user) [Attacker Machine] # "sed -i -e 's/\r$//' scriptname.sh" run this command if the script has error when execut...
true
692135fcdad7da23947567116338b8e32213a1f9
Shell
superbrothers/ga
/hack/update-bin.sh
UTF-8
342
3.015625
3
[ "MIT", "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e -o pipefail; [[ -n "$DEBUG" ]] && set -x SCRIPT_ROOT="$(cd $(dirname $0); pwd)" TARGET_FILE="${TARGET_FILE:-"${SCRIPT_ROOT}/../bin/ga"}" version="$(cat "${SCRIPT_ROOT}/../package.json" | jq -r ".version")" sed -e "s/__VERSION__/${version}/" "${SCRIPT_ROOT}/ga" >"$TARGET_FILE" # vim: ai ts=...
true
34a2f93c948467d0329d0c892223847e7261bebb
Shell
taiwenko/Shell
/A@Home/test_connection.sh
UTF-8
172
2.96875
3
[ "MIT" ]
permissive
#!/bin/sh COUNTER=0 while [ $COUNTER -lt 50 ]; do COUNTER=$(( $COUNTER + 1)) echo 'Checking ALT'$COUNTER adb connect alt$COUNTER:4321 adb disconnect done
true
22eb85279df9e0f62488590d02468b20a62b92e4
Shell
delkyd/alfheim_linux-PKGBUILDS
/text2pdf/PKGBUILD
UTF-8
927
2.859375
3
[]
no_license
# Maintainer: Michael Straube <straubem@gmx.de> # Contributor: Aaron Griffin <aaron@archlinux.org> # Contributor: juergen <juergen@archlinux.org> # Contributor: John Proctor <jproctor@prium.net> pkgname=text2pdf pkgver=1.1 pkgrel=4 _commit=3f6d725379337d0b9bde2e5e350fdfc249216be7 pkgdesc='Convert text files to PDF' ar...
true
b9642e0661aa516d6a76a7601c1c07ed16ea8ec7
Shell
barisione-biso/inf_520_labeled_graph_compression
/BWT_approach/run_graph_compression_test_mtf_shuff.sh
UTF-8
4,676
3.625
4
[ "MIT" ]
permissive
#!/usr/bin/env sh die () { echo >&2 "$@" exit 1 } [ "$#" -eq 2 ] || die "2 arguments required, $# provided. example: ./run_graph_compression_test_mtf_shuff.sh full|part1|part2 input_file" do_shuff () { mtf_file=$1 echo "Applying Huffman to $mtf_file" echo "=============================" #echo ...
true
9f2e94b009c79288a6234b8f4865e614d381140b
Shell
abenc/infrastructure_as_code
/03_03_spark_start_slave.sh
UTF-8
269
3.125
3
[]
no_license
#!/bin/bash source 00_00_conf_variables.conf if [[ "$#" -ne 2 ]] then echo " Nombre de paramètres incorrect" echo "Parameters : 1 = ip_slave , 2 = ip_master" else slave=$1 ip_master=$2 ssh $slave "~/$spark_home/sbin/start-slave.sh spark://$ip_master:7077" fi
true
4275a3d862924c3da40e1e3c002023366e63193a
Shell
nkkav/elemapprox
/ansicstd/plot-ansic-pbm.sh
UTF-8
603
3.265625
3
[ "BSD-3-Clause", "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/bash for app in "sin" "cos" "tan" "cot" "sec" "csc" \ "asin" "acos" "atan" "acot" "asec" "acsc" \ "sinh" "cosh" "tanh" "coth" "sech" "csch" \ "asinh" "acosh" "atanh" "acoth" "asech" "acsch" \ "exp" "log" "log10" "sqrt" "cbrt" \ "floor" "ceil" "round" "trunc" "fabs" do echo "Plotting elementary funct...
true
bd968f8ae40b4bcc8bab2753b6f112346bc9810c
Shell
jasonantao/cloud_initializer
/site/cloud-initializer-v2/linux-scripts-cloud-initializer-master/installs/CI/bin/scripts/bash/bootstraps/reinstalls/reinstall.sh
UTF-8
447
2.78125
3
[]
no_license
scriptType=$1 pkg=$2 bootStrapDir="/opt/CI/bin/scripts/bash/bootstraps" pkgDir="$scriptType/$pkg" echo "reinstall.sh EXECUTING: . ../uninstalls/uninstall_$pkg.sh" . ../uninstalls/uninstall_$pkg.sh echo "reinstall.sh EXECUTING: . ../uninstalls/clone_$pkg.sh" . ../uninstalls/clone.sh $scriptType $pkg echo "reinstal...
true
e08747068656d9a9b3573740b1ebeeac8bf52c9b
Shell
haspeleo/Algorithms-implementation
/LINEAR_PROGRAMMING/plot/plot_calculators
UTF-8
218
2.5625
3
[]
no_license
#! /bin/sh # to plot results in .p file #do some cleaning rm -rf calculators.eps calculators.pdf OUTFIG=calculators.eps PLOTFILE=calculators_graph.p gnuplot < $PLOTFILE epstopdf $OUTFIG acroread calculators.pdf &
true
f77f3900f2cbb3472023fcc1a598d1237cbf22f0
Shell
krykoder-backup-pyskell/fork-watcher
/docker/geth/download.sh
UTF-8
479
3.359375
3
[]
no_license
#!/bin/bash set -e VERSION=$1 GIT=$2 echo "-------------------------------------------------------------------------" echo "Download Geth $VERSION" echo " " echo "-------------------------------------------------------------------------" FNAME=geth-classic-linux-v${VERSION}-${GIT}.tar.gz mkdir -p /opt/geth wget --...
true
682b7b3a35c19d81f0c431b421b198c1f6dbd064
Shell
boktai1000/shell-scripts
/applications/openjdk/el7-install-openjdk11.sh
UTF-8
1,220
3.421875
3
[ "MIT" ]
permissive
#!/bin/bash # https://www.server-world.info/en/note?os=CentOS_7&p=jdk11&f=2 # https://openjdk.java.net/install/ # https://www.reddit.com/r/linuxquestions/comments/avja5n/reloading_current_bash_shell_from_script_thats/ # You can run this script directly with either of the following commands # source <(curl -s https://...
true
2478f3278f9c6da3918ecfd62f5445d2d8aeae1c
Shell
Booster2/Booster2-Docker
/startup.sh
UTF-8
6,130
3.578125
4
[ "MIT" ]
permissive
#!/bin/sh # MySQL parts are based on the run script from kost/docker-alpine (with thanks!) # https://github.com/kost/docker-alpine/blob/master/alpine-mariadb/scripts/run.sh # execute any pre-init scripts, useful for images # based on this image for i in /scripts/pre-init.d/*sh do if [ -e "${i}" ]; then echo "[i] ...
true
6b3fae0599c6144972ebb0f66d13388e9a009c64
Shell
rodrigonz/gen-scripts
/gvims
UTF-8
359
3.0625
3
[]
no_license
#!/bin/bash if [[ -n "$1" ]]; then if [[ $1 -eq "tapti" ]] ; then gvim -S ~paranoidsp/.vim/tapti fi if [[ $1 -eq "php" ]] ; then gvim -S ~paranoidsp/.vim/tapti fi gvim --servername stable --remote-silent $1 else journal=~/git/lit/journal/`date -Idate`.journal gvim --servernam...
true
f666ca551c8bd88ece473ed31ddd19ff05da5b82
Shell
lalcaraz/servermonitor
/checkServer.sh
UTF-8
745
3.28125
3
[]
no_license
#!/bin/bash mydomain=my.domain.com cowsay "Checking information for domain ${mydomain}" myip="$(dig +short myip.opendns.com @resolver1.opendns.com)" printf "\n\n::My Public IP address is: ${myip} \n" printf "\n\n::Checking Domain-To-IP relationship ... \n" host $mydomain printf "\n\n::Checking Web Connections ... ...
true
58cc880c254487cc13ffc72ec73b69ffedf1574a
Shell
raden/tukor-duit
/tukorduit.sh
UTF-8
1,337
3.8125
4
[]
no_license
#!/usr/bin/bash # Written by Muhammad Najmi Ahmad Zabidi PROGNAME=`basename $0` re='^[0-9]+([.][0-9]+)?$' usage() { printf "\nUsage:\n" printf " $PROGNAME <number with or without decimal> <source currency> <intended currency> \n" } tukorduit(){ RED='\033[0;31m' YELLOW='\033[1;33m' GREEN='\033[0;32m' NC='\033[0m' ...
true
5744ced6b2a82367bdaf394cbb56114e33325e97
Shell
magoyette/chapbook-tweego-builder
/switch-story
UTF-8
843
3.625
4
[ "MIT" ]
permissive
#!/bin/bash set -e # Remove trailing slash from path if there's one path=${1%/} echo "Path $1 $path" if [[ -z "$path" ]]; then echo "First argument must not be blank, it must be the path to a story folder" exit 1 fi if [ ! -d "$path" ]; then echo "First argument must be the path to a story folder" e...
true
64a2b3cb142607b4c6f8d85233a029ad1085ff89
Shell
kaineer/spore
/dependencies/linux/fonts/fira-code.sh
UTF-8
256
2.640625
3
[]
no_license
#!/usr/bin/env bash # needs: wget mkdir -p "$HOME/git/tmp" cd "$HOME/git/tmp" wget https://github.com/tonsky/FiraCode/releases/download/5.2/Fira_Code_v5.2.zip -O FiraCode.zip mkdir FiraCode unzip FiraCode.zip -d FiraCode/ rm FiraCode.zip cd - >/dev/null
true
f94aef565efc9227ee01bd1d9a1660c995094705
Shell
InformaticsMatters/dls-fragalysis-stack-openshift
/local-development/setup-local-dev.sh
UTF-8
947
3.796875
4
[]
no_license
#!/bin/bash set -e # Having checked this repo out to a directory # you can use this script to quickly setup the local development. # See the directory's README.md. if [ "$1" == "" ] then echo "ERROR: Missing GitHub organisation" echo "Usage: setup-local-dev.sh <ACCOUNT>" exit 1 fi # Clone the 'fragalsys-???' ...
true
86ccbc6a9822f3c1173f7e79874736ba655f5945
Shell
cyanpencil/asl_fall_2018
/baseline.sh
UTF-8
3,161
3.09375
3
[]
no_license
#!/bin/bash TEST_NO=$1 FOLDER="baseline_${TEST_NO:=1}" mkdir -p ssh_logs/$FOLDER SSH_USER="osboxes" MCACHE_PORT="11213" log () { pink="\x1b[35m" nocolor="\x1b[0m" yellow="\x1b[33m" echo -e $(date +"$pink[%H:%M:%S]$nocolor")"$yellow[${rep:-?}][${ratio:-???}]$nocolor" $1 } if [[ $TEST_NO -eq 1 ]]; then #MTIER...
true
369ffd5ee653eec039b7c7d4c8473aff5b05a5b2
Shell
Sreelakshmi-Sathyan/SD-lab-Exam
/main (1).bash
UTF-8
862
3.1875
3
[]
no_license
# # Welcome to GDB Online. # GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, # C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. # Code, Compile, Run and Debug online from anywhere in world. # # a=(12 25 39 48 64) echo ${a[@]}...
true
b342390d69e165e5262f59057a88c1c599af0348
Shell
MMDavito/Systematiq_Test
/SINGLE_TABLE/create_db.sh
UTF-8
276
3.34375
3
[]
no_license
#!/bin/bash createDB() { sudo su postgres <<EOF psql -c 'CREATE DATABASE demo_single;' EOF exit } echo "Hello World" #createDB if [[ $(createDB 2>&1) =~ "ERROR: database \"demo_single\" already exists" ]] then echo "ERROR: database \"demo_single\" already exists" fi
true
17f7cf266ece0242ba9036f9070333b4b83ba2fc
Shell
wiedzmin/git-hooks
/scripts/nixpkgs-fmt
UTF-8
186
2.9375
3
[]
no_license
#!/usr/bin/env bash set -e sources=$(git diff-index --cached --name-only HEAD | grep -E "\.nix$") echo "$sources" for file in "$sources"; do [ -f "$file" ] && nixpkgs-fmt $file done
true
47ff613a7d460dcbfbde73dc02db9bae8aac954a
Shell
Kamator/comp_arch
/DDCA-master/tools/build_mips_binutils.sh
UTF-8
861
4.09375
4
[]
no_license
#!/bin/bash binutils_tar="binutils-2.25.tar.gz" binutils_src="http://ftp.gnu.org/gnu/binutils/$binutils_tar" WDIR=/tmp TARGET=mips-elf PREFIX=/opt/ddca/mips if [[ $EUID -ne 0 ]]; then echo >&2 "This script need to be run as root because it installs into ${PREFIX}." exit 1 fi PATH="${PATH}":${PREFIX}/bin cd $...
true
3f9e004a3c1b41095ff77b3e009d15598f74ad1d
Shell
rizwanghzzaal/DNS-ZONE
/zonev2.sh
UTF-8
5,036
3.421875
3
[]
no_license
#!/bin/bash ##ZONE EDITING SCRIPT ###DATE 18-APRIL-2017 ####WEBSOULS TECHINAL SUPPORT TEAM #cp -rf /var/named /var/named.backup #echo " Backup taken of named directory " SERIAL=$(date +%Y%m%d%M) DATE=`date +%D-%H:%M:%S` NAMESERVER1="ns1.futuresouls.com." NAMESERVER2="ns2.futuresouls.com." NAMESERVER3="ns3.futureso...
true
14d63012f62b8caf67c45406ca3225960061e2c8
Shell
dogle-scottlogic/big-data
/cassandra-vs-mariadb/terraform/scripts/mark-for-destruction.sh
UTF-8
777
3.96875
4
[]
no_license
#!/bin/bash -e # Script to instances in a cluster for destruction on the next terraform apply CLUSTER=$1 INSTANCE=$2 [[ -z $CLUSTER ]] && echo Must pass CLUSTER && exit 1 if ! (terraform show | grep -P "module.$CLUSTER[\w\.]+$INSTANCE" ) ; then echo $CLUSTER or $INSTANCE are not valid exit 1 fi MODULES=$(terrafor...
true
232daa52d6710e6077dd2de218180ff6623bf0ae
Shell
skydrome/random
/shell/ape2flac.sh
UTF-8
1,576
3.640625
4
[]
no_license
#!/usr/bin/env bash get_tag() { tag=$1 file=$2 mediainfo "--Inform=General;%${tag}%" "$file" } set_tag() { key=$1 value=$2 file=$3 [[ -n "$value" ]] && metaflac --set-tag=${key}=${value} "$file" } convert_tags() { apefile=$1 flacfile=$2 artist=$(get_tag "Artist" "$apefile") ...
true
54859d313f3a690435c76deead62fe08dbb0cbd4
Shell
gloggi/qualix
/.docker/cypress-entrypoint.sh
UTF-8
463
3.59375
4
[ "MIT" ]
permissive
#!/bin/sh set -e if [ $# -eq 0 ]; then echo "No arguments provided. Not starting the e2e tests." echo "To launch the cypress GUI, use 'docker-compose run e2e open'" echo "To run the e2e tests in headless mode, use 'docker-compose run e2e run'" exit 0; fi echo "💤Waiting for the app to be ready." npx ...
true
7cbc33bb7d4447f017981ef3a9326865e824dd2e
Shell
gurbthebruin/CS-111
/Lab 4B/smoketest.sh
UTF-8
325
2.59375
3
[]
no_license
#!/bin/bash # Gurbir Arora # gurbthebruin@g.ucla.edu # 105178554 echo | ./lab4b --period=1 --fail &> /dev/null if [[ $? -eq 1 ]] then echo "Error: Invalid args" else echo "Failed to detect period bound error!!!" fi echo | ./lab4b --scale=eflkrmf &> /dev/null if [[ $? -ne 1 ]] then echo "Failed test #2" else ...
true
b83308f3233a179f025f78d91da3bed9e7c71183
Shell
miso484/Linux-Administration
/Debian10/9-WebServer/Nginx/3-useUserDir_manually.sh
UTF-8
747
3.3125
3
[]
no_license
# Enable Userdir for common users to open their site in the home directories. # ## configure nginx # vi /etc/nginx/sites-available/default cat <<EOT # add into [server] section location ~ ^/~(.+?)(/.*)?$ { alias /home/$1/public_html$2; index index.html index.htm; autoindex...
true
bfb19580c87be66b5a16c778c355aa6a34991fdb
Shell
bodgit/puppet-unbound
/files/unbound
UTF-8
300
2.765625
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # # !!! Managed by Puppet !!! daemon="/usr/sbin/unbound" daemon_flags="-c /var/unbound/etc/unbound.conf" . /etc/rc.d/rc.subr pexp="unbound${daemon_flags:+ ${daemon_flags}}" rc_start() { /usr/sbin/unbound-checkconf > /dev/null && \ ${rcexec} "unbound ${daemon_flags}" } rc_cmd $1
true
26f4b0f8c435e5bb10872417f06f110739e15036
Shell
CMVSR/emg-prediction
/scripts/feature_extraction.sh
UTF-8
350
2.6875
3
[ "MIT" ]
permissive
#!/bin/bash echo "creating directories..." mkdir ./dataset/extracted echo "extracting features..." docker run \ --gpus device=0 \ --volume $(pwd):/home/emg-prediction \ --workdir /home/emg-prediction \ --user $(id -u):$(id -g) \ --detach-keys="a" \ emg-prediction python3 /home/emg-prediction/d...
true
74b31d3e483f7e129279e94af176d37caa58364b
Shell
ppc64le/build-scripts
/i/instana-agent-operator/instana-agent-operator_rhel8.2.sh
UTF-8
2,891
3.515625
4
[ "Apache-2.0" ]
permissive
# ---------------------------------------------------------------------------- # # Package : instana-agent-operator # Version : v1.0.4 # Source repo : https://github.com/instana/instana-agent-operator.git # Tested on : RHEL 8.2 # Script License : Apache License, Version 2 or later # Maintainer ...
true
9f33bdade929438d587ffe11ed81bb54e0edf58e
Shell
anotherchrisatwork/build-scripts
/clean_all.sh
UTF-8
330
3.3125
3
[]
no_license
#!/bin/bash mkdir /tmp/done.$$ for i in `cat all_projects.txt` ; do pushd $i j=`echo $i | tr '/' '_'` ( find . -name node_modules -prune -exec rm -rf {} \; ; touch /tmp/done.$$/$j ) & popd done count=`cat all_projects.txt | wc -l` while [ `/bin/ls /tmp/done.$$ | wc -l` != $count ] ; do sleep 5 done rm -rf /tm...
true
baa2c63bd89cc04bbd93e53d80743a40dc59664b
Shell
iTakeshi/ecell4
/install.sh
UTF-8
1,379
3.53125
4
[]
no_license
#!/usr/bin/env bash # PREFIX=/usr/local # PREFIX=${HOME}/local # PREFIX= # SUBMODS=("bd" "gillespie") SUBMODS=("bd" "gillespie" "ode" "egfrd" "spatiocyte") PYTHONMODS=("core_python" "gillespie_python" "ode_python" "spatiocyte_python" "egfrd_python" "reaction_reader" "util_python") CXXFLAGS="-g -Wall -Werror -Wno-unin...
true
1e9e573af08f67ce494ad10da3a69250394fe05b
Shell
frossbeamish/dotfiles
/homedir/.zshrc
UTF-8
6,628
3.375
3
[ "ISC", "LicenseRef-scancode-unknown-license-reference" ]
permissive
# Path to your oh-my-zsh configuration. export ZSH=$HOME/.dotfiles/oh-my-zsh export ZSH_THEME="powerlevel10k/powerlevel10k" # colorcode test # for code ({000..255}) print -P -- "$code: %F{$code}This is how your text would look like%f" zsh_battery_level() { local percentage1=`pmset -g ps | sed -n 's/.*[[:blank:]]+...
true
8ed0133765b323e66ace36114811710916d08e44
Shell
mesosphere/kubernetes-keygen
/kube-certgen.sh
UTF-8
1,184
3.796875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Generates apiserver crt and key. # Requires provided hostname to be resolvable (use docker link). # Requires root certificate in <in_dir> (use docker volume). # Writes to <out_dir> (use docker volume or docker export to retrieve files). # Params: # hostname - host name of the Kubernetes API Server to r...
true
19c086812f396162262a1b082466720873fefc59
Shell
milliondreams/spark-pluggable-stream
/conf/streaming-env.sh.template
UTF-8
838
2.734375
3
[]
no_license
#!/usr/bin/env bash # This file contains a few additional setting that are useful for # running streaming jobs in Spark. Copy this file as streaming-env.sh . # Note that this shell script will be read after spark-env.sh, so settings # in this file may override similar settings (if present) in spark-env.sh . # Using...
true
f4a776ad314eab93e44fdfc99308b6bdd90d7279
Shell
nguyentienlong/calculate-diff-time-from-log-example
/calculate.py
UTF-8
720
2.734375
3
[]
no_license
#!/usr/env/bash python import io from sys import argv from datetime import datetime def main(fname): with open(fname, 'rb') as fh: first = next(fh) offs = -100 while True: fh.seek(offs, 2) lines = fh.readlines() if len(lines)>1: last = lin...
true
94764f2117eafad44996a87009f156a125491b32
Shell
abuxton/cmd_control
/plugins/check_oracle_asm_disk.ksh
UTF-8
3,695
3.625
4
[]
no_license
#!/bin/ksh ###################################################################### # This script checks for Oracle 10gRAC +ASM disk space # Nagios return codes: 2=Critical 1=Warning 0=OK 3=Unknown ###################################################################### cmddef='/opt/oracle/product/10gR2/db/bin/asmcmd ' ora...
true
0910b0b7ed6ba08afb5c0165126804fab74b8951
Shell
Hiraji/sample-project
/bin/sr-run-ci-build.sh
UTF-8
5,489
3.609375
4
[]
no_license
#!/usr/bin/env bash export toolset_branch=$1 export server_type=$2 export tags_list=$3 export docker_image=${docker_image_name:-"shadowrobot/ubuntu-ros-indigo-build-tools"} # Do not install all libraries for docker container CI servers if [ "circle" != $server_type ] && [ "semaphore_docker" != $server_type ] && [ "...
true
c97a1c744d9c1c0fc51ae090464da7b8d4a7acda
Shell
chriskout/autopwner
/sledgehammer32.sh
UTF-8
2,398
2.671875
3
[]
no_license
line=$(ROPgadget --binary $1 | grep -x '.\{26\}' | grep -m 1 'pop ebx') echo $line address=${line:0:10} echo $address ragg2 -P 400 -r > pattern.txt echo "!/usr/bin/rarun2" > profile.rr2 echo "stdin=./pattern.txt" >> profile.rr2 exec 3>&1 1>r2log r2 -r profile.rr2 -d $1 << EOF dc wopO \`dr ebp\` EOF cat << EOF > sledg...
true
c0fe281537f29de8d9357de23ddc64a38a24fcc0
Shell
kiooss/dotmagic
/install/init/brew.sh
UTF-8
4,234
2.84375
3
[ "MIT" ]
permissive
# mac-only stuff. Abort if not macOS is_mac || return 1 # Install Homebrew. if [[ ! "$(type -P brew)" ]]; then e_info "Installing Homebrew" true | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" fi # Exit if, for some reason, Homebrew is not installed. [[ ! "$(type -P bre...
true
8ad9394e3227fa8fcc75bc91073f8720fd25b9e2
Shell
isuker/hupu
/huputv-frontend/zhubo/test.sh
UTF-8
301
2.671875
3
[]
no_license
#! /bin/bash product="zhubo" dist="./dist" entry="index.html" host="192.168.8.123" devServer="root@$host:/data/www-data/hupu.com/huputv_frontend/$product" echo ">>>>>>>>>>manage webpack start<<<<<<<"; npm run build; echo ">>>>>manage scp to [ $devServer ]<<<<<"; scp -r $dist/$product/* $devServer
true
1605f6d8ac63741f8ba2a15e5f23c7a801bd6f3d
Shell
NikolayKIvanov/Bash-and-C
/ProcessData/Competition.sh
UTF-8
3,229
3.484375
3
[]
no_license
#!/bin/bash if [[ $# -ne 2 ]]; then echo "wrong number of arguments" exit 1 fi if [[ ! -d $1 ]]; then echo "$1 is not a directory" exit 2 fi DIR="$(dirname "$1")/$(basename "$1")/" function participants { find "$1" -type f -regex ".*[0-9A-Z]+" -printf "%f\n" } function outliers { find $1 -type f -regex ".*[...
true
571ab49b6e9790e8bb9a6c76438e4da835706a74
Shell
h0tbird/cobbler
/repos/centos_6-x86_64-updates.sh
UTF-8
255
2.59375
3
[]
no_license
#!/bin/bash #--------- # Define: #--------- name='CentOS_6-x86_64-updates' arch='x86_64' mirror='http://mirror.ovh.net/ftp.centos.org/6/updates/x86_64/' #--------- # Create: #--------- cobbler repo add --name ${name} --arch ${arch} --mirror ${mirror}
true
d08e500c07bbe996f5e75a262323d3c01f4b0012
Shell
zhangpern/DeepClusteringProject
/analyze/analysis_scritp.sh
UTF-8
277
2.640625
3
[]
no_license
#!/usr/bin/env bash main_folder=/home/jizong/Workspace/DeepClusteringProject/runs/mnist/iicgeo folder_lists=$(find ${main_folder} -mindepth 0 -maxdepth 0 -type d -print) cd .. for folder in ${folder_lists} do echo $folder python analyze_main.py checkpoint_path=${folder} done
true
58ffc1735414103fb37eb83e22b5e3e119585081
Shell
darron/solr-cookbook
/templates/default/rebuild.erb
UTF-8
793
2.765625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash CONFIG="<%= @solr_path %>/solr.xml" cd <%= @solr_path %> echo '<?xml version="1.0" encoding="UTF-8" ?>' > $CONFIG echo "<!-- ############### DO NOT EDIT THIS MANUALLY - RUN <%= @solr_path %>/rebuild.sh ############### -->" >> $CONFIG echo '<solr persistent="true">' >> $CONFIG echo '<cores defaultCoreNam...
true
401aeefe226ac762e904afd03670bb35a0d6d933
Shell
TLATER/blm
/src/dialog.sh.in
UTF-8
928
4.09375
4
[ "FSFAP" ]
permissive
# Dialog-specific menu module. # Prepend a number to each session in the given string. prepend_session_number() { local i=1 local sessions=("$@") local accumulated="" for session in "${sessions[@]}"; do accumulated="$accumulated"$(( i++ ))" ""$(basename "$session") " done echo "$accum...
true
2468b6f0c9ffe119785f20a1e3d90632efc7fe56
Shell
lyokha113/dev-env
/install.sh
UTF-8
4,726
3.46875
3
[]
no_license
#!/bin/bash # # Install and config ZSH - Prezto # @Author: Long H. Nguyen # @Date: 12/11/2020 #============================================================================================================================================== FONT_DIR="${HOME}/.local/share/fonts" DOTFILE_DIR="dotfile" sudo apt upgrade -...
true
6dcba9762ede323dc251eb681c9fcc248261a37f
Shell
Morpheus-compiler/Morpheus
/setup_dut.sh
UTF-8
5,839
4.0625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash COLOR_RED='\033[0;31m' COLOR_GREEN='\033[0;32m' COLOR_YELLOW='\033[0;33m' COLOR_OFF='\033[0m' # No Color DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" POLYCUBE_GIT_REPO_URL=https://github.com/Morpheus-compiler/polycube.git MORPHEUS_POLYCUBE_BRANCH=morpheus # That means that suggested kernel is ...
true
1ba27e127d0c247ee1bc342bd1879e12725b5bca
Shell
guenther-brunthaler/usr-local-bin-xworld-jv3gwuidf2ezyr5vbqavqtxyh
/bom
UTF-8
1,132
3.546875
4
[]
no_license
#! /bin/sh # Print a byte-order mark ("BOM") to standard output. No newline will be # appended. # # A BOM is generally required as the first character in UTF-16 and UTF-32 # encoded texts without a declared specific endianness. A BOM is also # frequently used in UTF-8 encoded texts in order to differentiate them from #...
true
4c818e281200fe82037bf0c8e67bb1c529f667a9
Shell
MikeOpenHWGroup/core-v-verif
/bin/run_compliance.sh
UTF-8
6,900
3.078125
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash ############################################################################### # # Copyright 2020 OpenHW Group # # Licensed under the Solderpad Hardware Licence, 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 # # ...
true
338c7f8b1b1be160e1cfbdedb6433905201ad4b7
Shell
qhboc96/OPS335-Bash-Shell-Project
/Lab3.bash
UTF-8
8,878
3.8125
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/bash ### ALL INPUT BEFORE CHECKING #### ------------------- ### INPUT from USER ### clear read -p "What is your Seneca username: " username read -p "What is your FULL NAME: " fullname read -s -p "Type your normal password: " password && echo read -p "What is your IP Address of VM1: " IP digit=...
true
45c27cf9397015b8b7971e68ef5fe25aa06bac43
Shell
pacheco-s/portfolio
/Códigos Shell Script/Descriptografia/Descript.sh
UTF-8
435
3.40625
3
[]
no_license
NUM=0; for i in p a b c d e f g h i; do sed -i "s/$i/$NUM/g" $1; NUM=$(($NUM+1)); done; PADROES=$(cat $1 | cut -d '=' -f2| tr 'j' ' ' | tr ')' ' ' | tr ' ' '\n' | sort | uniq -c | sort -nr| column -t|sed 's/ */:/g'| cut -d ':' -f2) echo $PADROES; for n in $PADROES; do echo $n; l=$(printf "\x$(p...
true
de45d34523ae010e7aad4379d406f4ec5172c89f
Shell
christophstach/bash-uni-netzwerke
/loops.bash
UTF-8
324
3.734375
4
[]
no_license
#!/bin/bash if [ -n "$1" ] & [ -n "$2" ]; then count=0 while [ $1 -gt $count ]; do for (( i = 0; i < $2; i++ )); do time+=$(date)"\n" echo $time done for (( i = 0; i < 1; i++ )); do echo $time done count=$((count+1)) done else echo "Bitte Parameter eingeben: ./loops.bash [number1] [number2]"...
true
4e18ed702e75705fa8b223abe34e56aa636dce70
Shell
kimlavoie/replayr
/assemble
UTF-8
641
4
4
[]
no_license
#!/bin/bash rouge='\e[1;31m' neutre='\e[0;m' # if parameter 1 exists, get the folders to the directory in parameter 1 # else, assume current directory if [[ -n $1 && -d ${1}/Images && -d ${1}/XML ]]; then echo "Saving Images files" zip -r ressources.zip ${1}/Images > /dev/null echo "Saving XML files" zip -r resso...
true
b6536c035f97f9739b03c178813c73ed4b1f22d2
Shell
ikicic/skoljka
/docker/build_internal.sh
UTF-8
900
3.484375
3
[]
no_license
#!/bin/bash SCRIPTDIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" LOCAL="$SCRIPTDIR/../local" set -ex cd /app mkdir -p "$LOCAL" mkdir -p "$LOCAL/media" mkdir -p "$LOCAL/media/attachment" mkdir -p "$LOCAL/media/export" mkdir -p "$LOCAL/media/m" # django-template-preprocessor cannot be installed using pip. ...
true
ec48665e022c76fad23573eb35ac9897f67d7598
Shell
kobotoolbox/dist-kobo-devel
/scripts/04_postgis_extensions.sh
UTF-8
647
3.046875
3
[]
no_license
#!/usr/bin/env sh # scripts/04_postgis_extensions.sh # ============================ # EXTEND ENVIRONMENT VARIABLES if [ -d /home/vagrant ]; then SCRIPT_DIR=/home/vagrant/scripts else THIS_SCRIPT_PATH=$(readlink -f "$0") SCRIPT_DIR=$(dirname "$THIS_SCRIPT_PATH") fi . $SCRIPT_DIR/01_environment_vars.sh # ==...
true
1c679498639cdde97f4715a8a527efa467d15b75
Shell
pfranchini/weather-satellites
/apt_reprocess.sh
UTF-8
481
3.34375
3
[]
no_license
#!/bin/bash ###################################################################### # # Reprocess all the NOAAs audio files (in case of chnges of # settings in apt.sh) # # Usage: ./apt_reprocess.sh <directory_path_where_noaa_audios_are> # ###################################################################### dir=`pwd`...
true
34cf8513aece78f942e3abfa5c95f1e8222c6e2b
Shell
sawyerf/42sh
/tests/vardiff.sh
UTF-8
575
3.109375
3
[]
no_license
ARG="$1" > vardiff.txt echo echo "$ARG" > .cmd.sh diff <(bash .cmd.sh) <(./42sh < .cmd.sh) > /dev/null if (($?)) then echo "[KO] $ARG" echo "test: $ARG: " >> vardiff.txt echo "Diff: " >> vardiff.txt echo "===============================" >> vardiff.txt diff <(bash .cmd.sh) <(./42sh < .cmd.sh) >> vardiff.txt echo ...
true
2306d1dcc4a09f95f998169c8559116aa2b77b71
Shell
finacontcorp/greenter
/.circleci/deploy-gh-pages.sh
UTF-8
543
3.125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash GIT_FILES=($(git show --pretty="" --name-only $CIRCLE_SHA1)) for f in ${GIT_FILES[@]}; do if [[ $f == "docs/"* ]] || [ $f == "mkdocs.yml" ]; then git config user.name "Giancarlos Salas"; git config user.email "giansalex@gmail.com"; git remote add gh-token "https://${GH_TOKEN}@github.co...
true
f66d634617819c9bc0c275350752e192166b4a07
Shell
konstyab/sisyphus-clonezilla
/clonezilla/sbin/prep-ocsroot
UTF-8
45,687
3.65625
4
[]
no_license
#!/bin/bash # License: GPL # Author: Steven Shiau <steven _at_ nchc org tw> # Description: Program to prepare Clonezilla live image home dir. # DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}" . $DRBL_SCRIPT_PATH/sbin/drbl-conf-functions . /etc/drbl/drbl-ocs.conf . $DRBL_SCRIPT_PATH/sbin/ocs-functions # Defau...
true
7ac9b38c70160e72c541e24be1fe061cedd52875
Shell
zengxianbin/Practice
/python-100-examples/xx.sh
UTF-8
314
3.0625
3
[ "MIT" ]
permissive
for i in {1..100} do pr=$(curl "https://www.runoob.com/python/python-exercise-example$i.html" -s | grep "题目" | grep "strong" | sed -s 's/<[a-z/]*>//g' | sed -s 's/题目://g' ) t=$((i+1000)) echo -e "**第 ${t:1} 题:** $pr\n" >> README.md done sed -i 's/ $//g' README.md dos2unix README.md
true
80a1600af11d507bab6af8f3515d6bf9220d32dd
Shell
kergoth/chneukirchen-tools
/xlmdcheck
UTF-8
257
3
3
[]
no_license
#!/bin/sh # xlmdcheck - xlbiff script to check maildirs HASH=$(ls ~/Mail/*/*/*2, | grep -v "Sent Mail" | cksum | cut -b1-9) echo $HASH if [ $2 -ne $HASH ]; then if [ $HASH -eq 429496729 ]; then # empty output exit 2 else exit 0 fi fi exit 1
true
9ff665161376a2ba0fb03c017d29466f46cc04c3
Shell
LHaidar/laptop
/dotfiles/profile.d/path
UTF-8
81
2.640625
3
[]
no_license
#!/bin/bash -e if [ -d "$HOME/.bin" ]; then export PATH="$HOME/.bin:$PATH" fi
true
8bde511cef125dc1cac422cb6d02598d0657e670
Shell
lanl/BEE
/ci/flux_install.sh
UTF-8
1,250
2.6875
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh # Install, set up, and start Flux set -e . ./ci/env.sh # Install dependencies as listed in https://github.com/flux-framework/flux-core/blob/master/scripts/install-deps-deb.sh sudo apt-get install -y \ autoconf \ automake \ libtool \ make \ pkg-config \ libc6-dev \ libzmq3-dev \ ...
true
5dde9cc6611dfc7da33de607f3ca0000938d7061
Shell
carlybeefbarley/mgb
/code13/app/tests/setup.ubuntu.sh
UTF-8
1,435
3.375
3
[]
no_license
#!/usr/bin/env sh set -e # usage: copy this file and certificate to remote server # scp -r -i ~/aws-free.pem /home/kaspars/Projects/mgb/code13/app/tests ubuntu@ec2-54-196-36-137.compute-1.amazonaws.com:~/mgb # install npm sudo apt-get install yarn -y # phantom depends on fontconfig - but npm don't include it - bug? ...
true
058d6836769c8004b8b6b9c836d7b49ddb0da44f
Shell
newfj/DjangoBlog
/run_server.sh
UTF-8
479
2.671875
3
[ "MIT" ]
permissive
#!/bin/sh init_env() { source /usr/local/virtualenvs/venv_devopspy/bin/activate sed -i 's/127.0.0.1/0.0.0.0/g' django/core/management/commands/runserver.py } init_server() { pip install -t . -Ur requirements.txt ./manage.py makemigrations ./manage.py migrate sed -i 's/127.0.0.1/0.0.0.0/g' djan...
true
72d89e598c2732e9dd12bcad36adc8a36403a7ef
Shell
oracle/ansible-database-migration-tool
/discovery_setup_json.sh
UTF-8
1,359
3.71875
4
[ "BSD-3-Clause", "MIT", "Apache-2.0", "GPL-3.0-only", "UPL-1.0" ]
permissive
#!/bin/bash # #Copyright (c) 2020, Oracle and/or its affiliates. #The Universal Permissive License (UPL), Version 1.0 # while getopts ":s:t:" opt; do case $opt in s) source_dbname="$OPTARG" ;; t) target_dbname="$OPTARG" ;; \?) echo "Invalid option -$OPTARG" >&2 ;; esac done printf "Argumen...
true
a1347795f8db4e8caac3c20fd7d30fccef8704c7
Shell
Oselium/dotfiles
/config/bashrc
UTF-8
437
2.671875
3
[]
no_license
# # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return alias code='code & disown; exit' alias ls='ls -a --color=auto' alias purge='sudo pacman -Rsn $(pacman -Qdtq)' alias update='sudo pacman -Syu' alias weather='function _weather(){ curl wttr.in/$1;};_weather' PS1='[\[\033[00;32m...
true
1432e2762daee6b3a61bd6f6a762b05034aeb72b
Shell
yantraos/ybuild-fourth-stage
/yinsource/sys/syslinux/syslinux.ybuild
UTF-8
1,388
3.53125
4
[]
no_license
#!/bin/bash -e . /usr/share/yinstal/yapi PKGNAME="syslinux" TARNAME="$PKGNAME" VERSION="4.07" BUILD=1 SECTION="SYS" SUFFIX="YAPS" TARBALL="${TARNAME}-${VERSION}.tar.xz" PKG="${OUTPUT}/${PKGNAME}" DOWHAT=${1:-"build"} CWD=$(pwd) scriptLog "${PKGNAME}-${VERSION}" gettar "http://35.154.131.43/ysarchives/1.0/SYS/${TARBA...
true
e4957e6043677cda790b6381c4cdfb3a25af493a
Shell
logsearch/example-logsearch-addon-boshrelease
/jobs/bulk_request/templates/bin/run.erb
UTF-8
1,643
3.234375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -x set -e <% # Look ma, I'm writing Chef def put_to_es(url_stem_base, es_config) ret = [] es_config.each do |config| if config.is_a? Hash ckey, content = config.to_a.first else ckey = '' content = config end url_stem = "#{url_stem_base}/#{ckey}".chomp('/') ret << ...
true
7a1c1fa690562ad320ab51a00e48aa232823702c
Shell
teddy-cha/gcloud-jmeter
/startup.sh
UTF-8
629
2.984375
3
[]
no_license
#!/bin/bash cd / ID=$(curl -H "X-Google-Metadata-Request: True" http://metadata/computeMetadata/v1/instance/attributes/id) CLOUD_STORAGE="" JMETER_DIR=apache-jmeter-2.9-server # Set up Open JDK sudo apt-get update sudo apt-get install -y openjdk-8-jre sudo apt-get install -y htop cd / # Download JMeter server pac...
true
6c2ca3dde204a0d932170ee4557e5698cd3ec49c
Shell
sohanlaxmicoin/rover-load-testing
/scripts/loadtest.sh
UTF-8
935
3.125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # helper script for setting arguments set -x set -e SUBMITTERS=$1 if [ "$SUBMITTERS" == "" ]; then SUBMITTERS=0 fi NATIVE=true if [ "$2" != "" ]; then NATIVE=$2 fi DEBUG="${DEBUG:-true}" HORIZON="${HORIZON:-http://localhost:8000}" PASSPHRASE="${PASSPHRASE:-"Rover Public Testnet ; April 2018"}"...
true
c1eb36e36b09fbc55cb29efc4048a051dd1237b6
Shell
guanhui07/linux_shell
/postgresql/install-postgresql_10.4.sh
UTF-8
5,318
3.421875
3
[ "MIT" ]
permissive
#!/bin/bash # # postgresql 10.4 # 解决相对路径问题 cd `dirname $0` # 定义全局变量 POSTGRESQL_URL=https://get.enterprisedb.com/postgresql/postgresql-10.4-1-linux-x64-binaries.tar.gz POSTGRESQL_FILE=postgresql-10.4-1-linux-x64-binaries.tar.gz POSTGRESQL_FILE_PATH=pgsql POSTGRESQL_PATH=/data/service/postgresql POSTGRESQL_PROFILE_D=/e...
true
a7451cf3a8c211dfaa1ab99eed9d196139a88f2f
Shell
muskanmahajan37/Curl-figlet
/Figlets.sh
UTF-8
2,687
3.1875
3
[]
no_license
echo # Shows NeosAlpha Technologies npm i figlet &>/dev/null #<-- echo "var figlet = require('figlet'); figlet('NeosAlpha Technologies', function(err, data) { if (err) { console.log('Something went wrong...'); console.dir(err); return; } console.log(data) }); ...
true
977d9986717317060358abeee37248aab5591e34
Shell
pidiaquez/topify
/topify.sh
UTF-8
1,031
3.390625
3
[]
no_license
#!/bin/bash # pidiaquez @ DSE 2021-06-23 topify reads top.out from multidump.sh prints hex threadid from pids with high cpu # apply 2 filters # filter TOP 5 pid/therads from each top round # filter only threads which had cpu > 10% FILE=top.out if [ ! -f "$FILE" ]; then echo "$FILE does not exist." echo " n...
true
b5ada62b1a3406a2d2158cf7ab0d8f5b4fb790a5
Shell
martin-juul/kodexplorer-for-docker
/php-fpm/7.1/docker-entrypoint.sh
UTF-8
465
3.453125
3
[]
no_license
#!/usr/bin/env bash set -e if [ "$1" = 'php' ] && [ "$(id -u)" = '0' ]; then chown -R www-data /var/www/html chmod -R 777 /var/www/html/ fi if [ ! -f /var/www/html/index.php ]; then wget -O /tmp/kodexplorer.tar.gz "${KODEXPLORER_URL}" \ && tar -xzf /tmp/kodexplorer.tar.gz -C /usr/src/kodexplorer/ --strip...
true
16ad3ff4df5b5e8329768810cbe652e65d663992
Shell
spockjs/spockjs
/scripts/publish.sh
UTF-8
798
3.453125
3
[ "MIT" ]
permissive
#!/usr/bin/env sh # The package.json files have `main` set to `src/index.ts` # so Jest (and ts-node subprocesses in integration tests) # pick up changes live during development. # For publishing, we have to set `main` to `dist/index.js`. echo $'\n\nrewriting package.json files\n\n' yarn lerna -- exec -- sed -i "'s/src...
true
4162a81fb3800ee77f4d0ab921f5ed98f6a2447a
Shell
zhaohe123/system_shell
/xilinx/run_vivado.sh
UTF-8
1,924
3.8125
4
[]
no_license
#!/bin/bash ############################################################################### # 版 权:米联客 # 技术社区:www.osrc.cn # 功能描述:打开 Vivado 开发套件 # 版 本 号:V1.0 ############################################################################### # => Setting The Development Environment Variables if [ ! "${ZN_CONFIG_DONE}" ];t...
true
ca99399ea6a9cf4cfd25335f0ae36f0363a65ce6
Shell
lenabri/MAI
/Язык С(1-2 семестр)/2 семестр/Лабы/21/script-1.sh
UTF-8
771
3.734375
4
[]
no_license
#!/usr/bin/env zsh prefix=$1 left=$2 right=$3 if [ $# -eq 1 ]; then if [ $prefix = "?" ]; then echo "Usage: ./script [prefix] [range from] [range to]" echo "The program will delete files with the specified prefix whose length is in the specified range." fi else if [ $# -eq 0 ]; then ...
true
a56e54b71e7c57cfd1e264e8266be21a77108424
Shell
aaronj1335/t-js
/bin/make-docs
UTF-8
203
2.734375
3
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
#!/bin/sh -e src=t.js target=README.md grep '^\/\/' < $src | sed -E 's|^//[ ]?||' > $target echo >> $target echo 'license' >> $target echo '-------' >> $target cat LICENSE >> $target
true
8fbf6915cec5eae7da4f7a663504afabff1ba665
Shell
cloudygoose/speech-scripts
/tools/GMMtools/run-array-job.sh
UTF-8
1,467
4.375
4
[]
no_license
#!/bin/bash # submit batch jobs function usage() { echo "Usage: run-array-job.sh <list> <script> [arguments for script]" echo "Runs <script> with the arguments following the script name. Each" echo "instance of the argument \"SET\" in the arguments are replaced" echo "by the line in the file <list> specified ...
true
4227ccdaf34d6a186b1ce4b967429500bca47f2d
Shell
k8hertweck/Blattabacteria
/blattabacteriaSpeciesTree.sh
UTF-8
1,386
3.421875
3
[]
no_license
#!/bin/bash ## reconcile gene trees to species trees ## run in home folder from blattabacteriaSetup.sh ## requires folder for each gene containing phyml gene tree, mapping file for ASTRAL ## dependencies: ## ASTRAL https://github.com/smirarab/ASTRAL/ cd ~/Copy/Blattabacteria/ ## create empty file mkdir speciesTree e...
true
7f410eacda5e09a5c658b760c6afad3aa55f634e
Shell
wamuseum/cmis-tools
/bin/site-mode
UTF-8
789
4.21875
4
[]
no_license
#!/bin/bash # # WAM CMIS site mode switch script # # Allowed site modes are "default" (the site is running normally) and "maintenance" (the server is under maintenance # so the CMIS application is not currently available). This script automates switching between modes. # # Stop on any error or undeclared variable set...
true
2155ebfb55108687a4a60588b4af894c62819e0f
Shell
creDocker/creProxy
/cre/renewal.sh.tmpl
UTF-8
1,584
3.53125
4
[ "Apache-2.0" ]
permissive
#!/bin/sh echo "renewal by certbot" until [ $(pgrep nginx | wc -l) > 0 ] do echo "Waiting for nginx" sleep 2 done sleep 5 RANDOM=$$ {{ $CurrentDomain := or $CurrentContainer.Env.CRE_DOMAIN "localhost" }} {{ $LocalHost := or (hasSuffix "localhost" $CurrentDomain) (hasPrefix "localhost" $CurrentDomain) }} ## Local...
true
2a4a5848c5fef51604fd5564ce471914b60f4e17
Shell
tai271828/solvcon
/contrib/devenv/create.sh
UTF-8
392
3.453125
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash SCDEVENV_SRC="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [ -z "$1" ]; then SCDEVENV_DST=env else SCDEVENV_DST=$1 fi SCDEVENV_DST=${SCDEVENV_SRC}/../../build/${SCDEVENV_DST} echo "Create environment at ${SCDEVENV_DST}" mkdir -p ${SCDEVENV_DST} conda create -p ${SCDEVENV_DST}/install --no-defau...
true
bc166fca5f00017fd6cfd4d0c8865da81e116d13
Shell
rgizmalkov/mongodb-mflix
/docker-lifecycle.sh
UTF-8
1,163
3.671875
4
[]
no_license
#!/bin/bash VOLUME="$(pwd)" NAME='mongodb' PORT='28000' VERSION='latest' while getopts c:v:n:p:version option do case "${option}" in c) COMMAND=${OPTARG};; v) if [ -n ${OPTARG} ]; then VOLUME=${OPTARG} fi ;; n) if [ -n "${OPTARG}" ]; then NAME=${OPTARG} fi ;; p) if [ -n "${OPTARG}" ]; then PORT=${OPTARG} ...
true
3b7adc2c7c74fab5045092e02d7c9612a2a88f64
Shell
bgpworks/boxhero-electron
/watch.sh
UTF-8
633
2.828125
3
[]
no_license
#!/bin/bash SESSION_NAME=boxhero-pc if [ -z "$(byobu list-sessions | grep -w ${SESSION_NAME})" ]; then byobu-tmux new-session -d -t "${SESSION_NAME}" byobu-tmux split-window -t "${SESSION_NAME}:0.0" -h \; split-window -t "${SESSION_NAME}:0.1" -v byobu-tmux send-keys -t "${SESSION_NAME}:0.0" 'yarn watch-...
true
de8b5e5cc795386487b734df01dd7e3710f3527a
Shell
sciactive/pines-tools
/build-tools/buildpgridrelease.sh
UTF-8
861
3.0625
3
[]
no_license
#!/bin/sh echo Setting up directory structure. mkdir "jquery.pgrid" mkdir "jquery.pgrid/use for pines style icons" echo Importing files. cp "../../pgrid/jquery.pgrid.default.icons.css" "jquery.pgrid/use for pines style icons/" cp "../../pgrid/jquery.pgrid.touch.icons.css" "jquery.pgrid/use for pines style icons/" cp "...
true
f3944d95045d45dc624ba296b6a251976e84520a
Shell
yutarody/dotfiles
/.zshrc
UTF-8
2,154
2.96875
3
[]
no_license
# load zgen source "$HOME/.zgen/zgen.zsh" # local bins export PATH="/usr/local/bin:$PATH" export PATH="/usr/local/sbin:$PATH" # for coreutils export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" # for gnu-tar export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" # for homebrew-cask export HOMEBREW_CASK_O...
true
d2d908a920379d0da1ff0267bee0c5d23031e77b
Shell
compulab-yokneam/meta-compulab
/recipes-desktop/cl-ssh-init/files/compulab-ssh-purge.sh
UTF-8
868
3.0625
3
[]
no_license
#!/bin/bash rootfs=${rootfs:-"/"} rm -f ${rootfs}etc/ssh/ssh_host_key ${rootfs}etc/ssh/ssh_host_key.pub rm -f ${rootfs}etc/ssh/ssh_host_rsa_key ${rootfs}etc/ssh/ssh_host_rsa_key.pub rm -f ${rootfs}etc/ssh/ssh_host_dsa_key ${rootfs}etc/ssh/ssh_host_dsa_key.pub rm -f ${rootfs}etc/ssh/ssh_host_ecdsa_key ${rootfs}etc/ssh...
true
d5039daf2cb753ed20bdfa1fb56b1cae31bb4769
Shell
mattduck/dotfiles
/macos/bin/,set-osx-options
UTF-8
1,054
2.578125
3
[ "MIT" ]
permissive
#!/bin/bash # # Set some system options, taken from github/matthiasbynens/dotfiles # Hidden files defaults write com.apple.finder AppleShowAllFiles -bool true # Display full path as Finder window title defaults write com.apple.finder _FXShowPosixPathInTitle -bool true # Disable dashboard defaults write com.apple.das...
true
e951c4b00989d8af816848015e3c8a61680f698c
Shell
Fri3dCamp/tickets.fri3d.be
/docker/load_last_db.sh
UTF-8
304
2.53125
3
[]
no_license
#!/usr/bin/env bash set -ue -o pipefail LAST_DUMP=`ls db_dump*sql | tail -n 1` [ -z $LAST_DUMP ] && echo "no dump found" && exit 1 echo "loading from $LAST_DUMP" mysql -u root -p --execute="\. $LAST_DUMP" mysql -u root -p -D fr1ckets --execute="update purchase set email = concat(email, '.notreal');"
true
8406b6ef44bdba3c70e8216151eddb985c063938
Shell
mave89/Datalake
/Infra_Setup/setup_ssh.sh
UTF-8
1,893
4.3125
4
[ "MIT" ]
permissive
#!/bin/bash set -e if [ $# -ne 2 ]; then echo "Give the name of the file with all the IPs and the path of the local pem file used to ssh to the servers." echo "For example: ./setup_ssh.bash hosts.txt /Users/faiz/git/Datalake/faiz-openlab.pem" exit 1 fi # Input file provided by the user INPUT_FILE=$1 LOCA...
true
780cc63a1791529db4f524de0d0aa3a2397c5477
Shell
mkosterin/mkosterin_infra
/packer/scripts/install_mongodb.sh
UTF-8
417
2.65625
3
[ "MIT" ]
permissive
#!/bin/sh echo "Setting up MongoDB" set -e apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongo-org-3.2.list apt update apt install -y mongodb-org cp -f ~/mongod.conf /etc/ chown root:root /e...
true
a6840da8a8987e6c732787a7b938e25bd397ec50
Shell
dry-dock/u16go
/install.sh
UTF-8
3,320
2.84375
3
[ "MIT" ]
permissive
#!/bin/bash -e echo "================= Adding some global settings ===================" mkdir -p "$HOME/.ssh/" mv /u16go/config "$HOME/.ssh/" mv /u16go/90forceyes /etc/apt/apt.conf.d/ touch "$HOME/.ssh/known_hosts" mkdir -p /etc/drydock echo "================= Installing basic packages ================" apt-get updat...
true
3cf3380befdf54f09ac016049be14b786967775e
Shell
3-manifolds/CyPari
/build_pari.sh
UTF-8
6,580
3.765625
4
[]
no_license
#! /bin/bash # On macOS this builds both arm and x86_64 PARI librariies for OS X >= # 10.9. On Windows it uses the clang32 or ucrt64 toolchains, # depending on the MSys2 environment. On linux the default system gcc # is used to build for the host architecture. There are two required # arguments, to specify word siz...
true
b6a71fe1fcd69d9e5199582b99ff816043ca077b
Shell
perfectbullet/mycode_demos
/install_mongo34.sh
UTF-8
1,281
2.640625
3
[]
no_license
#!/bin/bash # by feixueruge 2019.03.22 # install mongo-server by shell scripts #install mongodb apt install -y mongodb sleep 10 # stop the service echo "stop mongodb" service mongodb stop # mongodbpath=/disk_d/database/mongodb mkdir -p /disk_d/database/mongodb chown mongodb:mongodb /disk_d/database/mongodb cp -ra /v...
true