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
8550b6e8dc775e61909c44f7e3048795a6219905
Shell
nkahm/bashScripts
/inputGen.sh
UTF-8
160
2.640625
3
[]
no_license
l=2 #loop over number of layers while [[ $l -le 12 ]]; do cd ../bumpy/l$i/p1 python generateInputDAT.py > input.dat cd ../../../scripts/ (( l++ )) done
true
c912628d830e15874e24a261933776fba1931c25
Shell
PenguinCSC/PostInstallScripts
/mka2z.bash
UTF-8
77
2.828125
3
[]
no_license
#! /bin/bash mkdir ./0-9 for letters in {a..z}; do mkdir $letters done
true
04d6d3da82850be854c3e23402a5c108b67e7b25
Shell
mineshmane/ShellScripting
/set5/conversion.sh
UTF-8
468
3.25
3
[]
no_license
#!/bin/bash -x printf "Enter your choice 1.FeetToInch\n 2.InchToFeet\n 3.FeetToMeter\ 4.meterTofeet " read number case $number in 1) read -p "enetr feet" x echo "scale=3; $x*12"|bc ;; 2) read -p "Enter in inch :" x echo "scale=2; $x / 12" | bc ;; 3) read -p "Enter in feet one side" x result=$(...
true
8cb69662fa39998544ec2f48f708a794ce8d404c
Shell
jensp/Arch-Linux-on-i586
/extra/cpufreqd/PKGBUILD
UTF-8
837
2.53125
3
[]
no_license
# $Id: PKGBUILD 36633 2009-04-26 15:34:01Z andrea $ # Maintainer: Andrea Scarpino <andrea@archlinux.org> # Contributor: Kevin Piche <kevin@archlinux.org> # Contributor: Manolis Tzanidakis <manolis@archlinux.org> pkgname=cpufreqd pkgver=2.3.4 pkgrel=1 pkgdesc="A small daemon to adjust cpu speed (and indeed voltage)" ar...
true
536ccfed7659b04ef46cc348fa7b3ae934d8da96
Shell
cbg-ethz/WES_Cancer_Sim
/sim_cancer/cancer_data_pipeline/utils/fix_bam_header.sh
UTF-8
2,444
3.71875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash function fix_bam_header() { if [ -z "$1" -o -z "$2" -o -z "$3" ]; then echo "Usage: $0 <bamFiles> <extension> <outputDir> [ --run-opt <submit> ]" exit -1 fi local bamFiles=$1 local ext=$2 local outdir=$3 for i in {1..3} do shift; done local run_opt="local" while [ 1 -lt $# ]; do ...
true
74d6863476f67650ab1d3e0d4b2e01f748eb921b
Shell
etiennesky/ecearth3-post
/script/hc_cca.sh
UTF-8
1,068
3.59375
4
[]
no_license
#!/bin/bash usage() { echo "Usage: hc.sh [-a account] [-u user] exp year1 year2 [user]" echo "Run hiresclim postprocessing of experiment exp in years year1 to year2 for a specific user (optional)" echo "Options are:" echo "-a account : specify a different special project for accounting (default: spnltun...
true
efcbe25f0f655c4a7412f1cb49dbb12ac446ec56
Shell
sivakrishna0206/Docker-compose
/scripts/backup_cron.sh
UTF-8
1,389
3.640625
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
#!/usr/bin/env bash ##> Docker compose modification for bind mount # #- We can define volume type in the compose file # #- bind-mount : method 1 : (Docker will identify bind mount and proceed accordingly) #- #- volumes: #- - tomcat-volume:/opt/tomcat #- - bim-home:/var/bimserver/home #- - bim-...
true
3001e06ef5f95cc69d36d68d823d596557d54c29
Shell
ashukeshri/Smanager
/smanager.sh
UTF-8
776
3.390625
3
[]
no_license
#!/bin/bash echo "------Welcome To Smanager------" echo "Options--" echo "1. Delete Photos that are 90 days old" echo "2. Delete videos that are 90 days old" x=$(pwd) read ch cd ~/Documents case $ch in 1) find -mtime +90 -name "*\.png" | rename 's/ /_/g' a=$(find -mtime +90 -name "*\.png") b=$(find -mtime +9...
true
d904729fbb96490dc11908b608268fc8cd8a02e9
Shell
a-lazy-programmer/AutoScripts
/autouninstall/bin/autouninstall
UTF-8
1,545
3.78125
4
[]
no_license
#!/bin/sh #Author : Sakir Beg #Copyright (c) LazieDev #Script that automatically uninstalls the complete program from your system. COLUMNS=$(tput cols) title="AutoApp UnInstaller v1.0" printf "\n%*s\n" $(((${#title}+$COLUMNS)/2)) "$title" userinput="y" printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - echo Ente...
true
9f5de344a8bef04041dae86989c040df355e069e
Shell
manizzle/Interceptera
/initial_setup.sh
UTF-8
1,929
3.453125
3
[]
no_license
#!/bin/bash ##Interceptor First stage setup gateway host ##SecurityGuru.Ca ##Adnan Ahmad ## function localadaptor { echo "Enter lan side ethernet adaptor name" read adaptorname echo "" echo "" echo "Enter subnet range ea. 192.168.99 for /24" read subnetrange echo "" echo "" echo "allow-hotplug $adaptorname" >> /etc/n...
true
4ccd27a4943c5cead6f88fd61ca164784631d1b7
Shell
akikinyan/docker-filewatch
/entrypoint.sh
UTF-8
706
4.25
4
[]
no_license
#!/bin/sh usage() { echo "It takes two arguments to run. First argument: Monitored file name Second argument: command executed when the monitored file is updated ex: ./entrypoint.sh a.cpp 'g++ a.cpp && ./a.cpp'" } update() { if [ -e $1 ]; then echo `openssl sha256 -r $1 | awk '{print $1}'` fi } if [ $# ...
true
6f5ac9a42f26c4c08ac3d9780917d33c3f308f78
Shell
aleksbyte/dotfiles
/files/zsh/zshrc
UTF-8
12,111
2.8125
3
[]
no_license
#!/usr/bin/env zsh #{{{# Zgen # ZSH_DISABLE_COMPFIX=true # automatically run `zgen reset` if we modify our .zshrc ZGEN_RESET_ON_CHANGE=("${HOME}/.zshrc") [[ -z $XDG_DATA_HOME ]] && echo 'data home not set' && return if [[ ! -f $XDG_DATA_HOME/zsh/zgen/zgen.zsh ]]; then echo " ** zgen not found **" echo...
true
e88610f2bab0db8346938fe9bc9f1ae7de0113c2
Shell
ENSIIE-2022/ASR
/TP3/08-svgdir.sh
UTF-8
220
3.125
3
[]
no_license
#!/bin/bash #NAVETEUR Lucas svgdir () { #Vérification des arguments if [ -z $2 ] || [ ! -z $3 ]; then echo "Usage : bash 04-doslike.sh <arg1> <arg2>" exit fi cp -r $1 $2 } svgdir $1 $2
true
e93d11cb4d48a2cfc282559571844642b595a700
Shell
FrancisPouliot/cyphernode
/api_auth_docker/entrypoint.sh
UTF-8
342
3.15625
3
[ "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
#!/bin/bash user='nginx' if [[ $1 ]]; then IFS=':' read -ra arr <<< "$1" if [[ ${arr[0]} ]]; then user=${arr[0]}; fi fi spawn-fcgi -M 0660 -s /var/run/fcgiwrap.socket -u $user -g nginx -U $user -- `which fcgiwrap` chmod -R g+rw /var/run/fcgiwrap.socket /etc/nginx/conf.d/* chown -R :nginx /etc/nginx/conf.d/* n...
true
77b699dcf2439f1d029a9922b0bf28b1e2ed1235
Shell
vectorfabrics/meta-pareon
/recipes-devtools/pareon/files/vfcc.template
UTF-8
2,689
3.4375
3
[ "MIT" ]
permissive
#!/bin/sh LOG="@@LOG@@" ERR="@@ERR@@" # export PATH="@@GCCDIR@@:$PATH" export ARM_TOOLCHAIN="@@TOOLCHAIN@@" export ARM_SYSROOT="@@SYSROOT@@" export ARM_HF_TOOLCHAIN="@@TOOLCHAIN@@" export ARM_HF_SYSROOT="@@SYSROOT@@" export I686_TOOLCHAIN="@@TOOLCHAIN@@" export I686_SYSROOT="@@SYSROOT@@" export X86_64_TOOLCHAIN="@@T...
true
bcd4faabf0a5c66f2833db62ae9f3e7b75f9c5ef
Shell
Paul-Hume/mac-install
/generate-data.sh
UTF-8
598
3.40625
3
[]
no_license
#!/bin/bash VAR_FILE="./data/var.sh" ZSH_FILE="./data/.zshbackup" echo "Getting formulae..." BREW=$(brew list) echo "Getting casks..." BREW_CASKS=$(brew cask list) echo "Getting code extensions..." VSC_EXT=$(code --list-extensions) { printf "#!/bin/bash\n\n" printf "BREW=(%s)\n\n" "$BREW" printf "BREW_...
true
6f09bcfdb2499f58dd456fc46078bc42465c8d78
Shell
Cybersecurity-Labs/Script-bash
/Scripts/conf_net.sh
UTF-8
1,115
3.65625
4
[]
no_license
#!/bin/sh #Script para configuracao da placa de rede local manual ifconfig #Usado para listar as interfaces disponiveis echo read -p "Qual interface de rede deseja configurar? " INTF #Seta qual interface será configurada echo read -p "Informe o IP destinado ao host EX(192.168.1.25): " IP #Armazena qual IP será atribu...
true
8533b8e74c046a6c2cc18f54a0580545205bfdaf
Shell
kartishr/testcassandra
/cassandra/roles/install-cassandra/templates/start_cassandra.j2
UTF-8
3,307
3.828125
4
[]
no_license
#!/bin/bash # # Wrapper script to start DDAC cassandra daemon running on this node # Written by Madhu Kangara | initial version | v.1.0 | 05/28/2019 # DDAC_HOME=/apps/cassandra CASSANDRA_PIDFILE="${DDAC_HOME}/run/cassandra.pid" RETVAL=0 NEED_NEWLINE=0 CASSANDRA_USER=cassandra NAME="Apache Cassandra" OUTPUT_...
true
30230bc6a0455af9dbb7fbbc1a8b6f0266e5315b
Shell
trscavo/saml-library
/lib/saml_tools.bash
UTF-8
32,882
3.59375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash ####################################################################### # Copyright 2013--2018 Tom Scavo # # 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...
true
7aa4b5a19c8aa0da721945a1c2712d55423f5dfc
Shell
McLeodMoores/starling
/examples/examples-simulated/scripts/examples-simulated.sh
UTF-8
1,871
3.828125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash canonicalize() { local _TARGET _BASEDIR _TARGET="$0" readlink -f $_TARGET 2>/dev/null || ( cd $(dirname "$_TARGET") _TARGET=$(basename "$_TARGET") while [ -L "$_TARGET" ] do _TARGET=$(readlink "$_TARGET") cd $(dirname "$_TARGET") _TARGET=$(basename "$_TARGET") d...
true
058a40acfcae8e7b1744e5bd5eac80dfc8025ebf
Shell
xxyxzxxyzyxxxzxyzxyx/study_python
/__run__.sh
UTF-8
780
2.90625
3
[]
no_license
#!/bin/bash case "$1" in "build") docker build \ --rm \ --pull \ --no-cache \ -t study_python \ -f Dockerfile \ . ;; "run") docker run \ -it \ -v /etc/passwd:/etc/passwd:ro \ ...
true
67fae1874aa5bdd752570e7043b8e95eaa3dde9d
Shell
TUNL-Enge/Doc-InstallNSCLDAQ
/PostInstallFiles/nscldaq
UTF-8
4,159
3.265625
3
[]
no_license
#!/bin/sh ### BEGIN INIT INFO # Provides: nscldaq # Required-Start: $network $time $named $remote_fs $syslog # Required-Stop: $network $time $named $remote_fs $syslog # Should-Start: nscldaq # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: NSCL data acquisition daemons #...
true
93a64e6a0950b4ff906e634909ea8e7f0c19adde
Shell
WZQ1397/config
/Kubernetes/yml/tsjr/java/prd-deploy/deploy-jdk8.sh
UTF-8
508
2.953125
3
[]
no_license
#!/bin/bash service=$1 svcport=$2 oriname=$3 deployhome=/tsjr-data/deploy-java/ jar_name=tsjr-$service-$svcport cd /tsjr-data/deploy-java #if [[ ! -d $deployhome$jar_name ]]; #then # mkdir $deployhome$jar_name #fi mv $oriname $jar_name.jar nohup /tsjr-data/jdk1.8/bin/java -server -Xms512m -Xmx512m -Xss256k -XX:M...
true
a01b9b4cec36cf3ee5aeee867f2b01c5089e1ba8
Shell
saurabhchopade/ShellScripting-Program
/SequencesProblem/randomsingledigit.sh
UTF-8
116
3.015625
3
[]
no_license
#!/bin/bash -x # Use Random Function (( RANDOM )) to get Single Digit singleNum=$((RANDOM%10)); echo $singleNum;
true
17ceebc8ff24ea3a93c929d5d609847211d1a3e3
Shell
zharley/stack
/etc/aliases
UTF-8
7,037
3.640625
4
[]
no_license
#!/bin/bash ################################################################################ ## FILE HELPERS ################################################################ ################################################################################ # detailed file list alias ll='ls -lah' # show details of a fi...
true
59d5fb156ea456c67e8be96625d2e9c2cde071ee
Shell
qypea/q-configs
/home-bin/bin/monitor-network-blink.sh
UTF-8
904
3.734375
4
[ "MIT" ]
permissive
#!/bin/bash set -e set -u blink="blink1-tool --quiet --brightness=128" ${blink} --off last_color="off" errors=0 while true; do # Try to ping, count errors ping -c 1 www.google.com -D -W 5 > /dev/null 2>&1 \ || errors=$(( ${errors} + 2 )) # Decay errors over time if we're good errors=$(( ${e...
true
cbe4020f0000741622a325a8eb526f457b42e5ee
Shell
bearpelican/cluster
/connect_helper.sh
UTF-8
342
2.65625
3
[]
no_license
#!/bin/bash # Helper to automatically attach to TMUX on ssh # See # https://stackoverflow.com/questions/7114990/pseudo-terminal-will-not-be-allocated-because-stdin-is-not-a-terminal # https://stackoverflow.com/questions/1376016/python-subprocess-with-heredocs export cmd="ssh -t -i $1 -o StrictHostKeyChecking=no $2@$3 t...
true
9107337afba8b79af12f91c528d02c24b40563eb
Shell
derhuerst/vbb-lines
/download.sh
UTF-8
334
2.59375
3
[ "ISC" ]
permissive
#!/bin/sh set -e base_url='https://vbb-gtfs.jannisr.de/latest/' # todo: use https://gist.github.com/derhuerst/745cf09fe5f3ea2569948dd215bbfe1a ? download () { curl -L --compressed --etag-compare "$1.etag" --etag-save "$1.etag" $base_url$1 -o $1 } download 'routes.csv' download 'trips.csv' download 'stop_times.csv' ...
true
4e10aa019c537252e6bf7c34653bf319f03ab7d3
Shell
Cleanshooter/react-native-oauth
/bin/cocoapods.sh
UTF-8
1,210
3.8125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash if [ "$(uname)" == "Darwin" ]; then #!/bin/sh ## https://github.com/auth0/react-native-lock/blob/master/bin/cocoapods.sh ios_dir=`pwd`/ios if [ -d ios_dir ] then exit 0 fi podfile="$ios_dir/Podfile" template=`pwd`/node_modules/react-native-oauth/ios/Podfile.template echo...
true
bc3c378529ada3e3d2cb359c85bee871c2df27fc
Shell
RealMeZJT/Sheller
/oneCommit.sh
UTF-8
212
3.046875
3
[]
no_license
#!/bin/sh # 整合git的几条提交命令。 comment="without comment" if [ $# -eq 1 ] then comment="$1" fi git add -A git commit -m "$comment" # 通常不建议这么做 # git push origin master
true
68189d4650784a1a7fa103953e8adb2c6bedfd41
Shell
matigastirami/sistemas-operativos-1c-2020
/tp1/EJ1/EJ1.sh
UTF-8
3,728
4
4
[]
no_license
#!/bin/bash ErrorS() { echo "Error. La sintaxis del script es la siguiente:" echo "Para saber numeros de lineas del archivo: $0 nombre_archivo L" # COMPLETAR echo "Para saber el numero de caracteres del archivo: $0 nombre_archivo C" # COMPLETAR echo "Para saber la longitud de la linea mas larga del archivo: $0 nombre...
true
d6a1f59aa2ca3b4293912b0ca63791e3a2ff575c
Shell
ChenXinhao/acm-compiler-judge
/JudgeServer/runner_compile.bash
UTF-8
219
2.5625
3
[ "MIT" ]
permissive
cd /compiler st=$(date +%s%N) bash $1.bash < /testrun/program.txt 1> /testrun/stdout.txt 2> /testrun/stderr.txt echo $? > /testrun/exitcode.txt ed=$(date +%s%N) dt=$((($ed - $st)/1000)) echo "$dt" > /testrun/time_us.txt
true
63a7e9de5459b6a6c5c02671d0528175b0d3ad18
Shell
vplagnol/eQTL_scripts
/gwas_scripts/defunct/sumstatsubmitcomplete.sh
UTF-8
1,261
2.78125
3
[]
no_license
######## important to set this before submission, maybe link here via a bash script from project folder. project="WHII" ######## shopt -s expand_aliases source ~/.bashrc export PATH=${PATH}:/share/apps/R-3.0.2/bin alias R=/share/apps/R-3.0.2/bin/R output_directory="/cluster/project8/jonathan/testscripts/"$project"/summ...
true
7a676c0484c84b869fd1cd8aa8f9b61400e32fd1
Shell
jjponz/dotfiles
/virtual_machines_up.sh
UTF-8
1,314
3.96875
4
[]
no_license
#!/bin/bash # uso: ./virtual_machines_up NOMBRE_CARPETA_QUE_CONTIENE_LA_MAQUINA VIRTUAL # el script levanta la máquina virtual mediante el comando vagrant up #VIRTUAL_MACHINES_RELATIVE_HOMEPATH debe ser una carpeta dentro de $HOME donde se encuentran por carpetas distribuidas las maquinas virtuales, por ejemplo: # ./v...
true
5b7b1f5f7a692945022dc0d9651ad42c6ba7658f
Shell
treeder/gotils
/update.sh
UTF-8
1,171
3.9375
4
[ "Apache-2.0" ]
permissive
# This updates Go to the latest version set -e # copied from: https://gist.github.com/davivcgarcia/2fea719c67f1c6282bc53df46f7add25#file-update-golang-sh Thanks! # Checks if is running as root, and sudo if not [ `whoami` = root ] || { sudo "$0" "$@"; exit $?; } # Determines current local version if [[ -f /usr/local/...
true
87db8ddd13c88e2b9bd24b11c130b6b5535d47bd
Shell
mqnoy/bash-tools
/backup_cacti_script.sh
UTF-8
978
3.328125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # # # usesless for exclude.txt ,i dont know :( # # # mqnoy@2019 # FILE_NAME="cacti_backup_$(date +\%d\_%m\_%Y).tar.gz" #CACTI_LOCATION = "/usr/share/cacti/" DST_PATH_BACKUPS="/home/backupcacti/" #your directory EXCLUDE_PATH="/home/_devops/exclude.txt" echo "++++++++++++++++++++++++++++++++++++++++++++++...
true
83d21081a4c8ab8dfa3197fdc7927bd5918cf32f
Shell
ianusit/guac-client
/files/start.sh
UTF-8
1,702
3.671875
4
[]
no_license
#!/bin/bash # export GUACAMOLE_HOME="$HOME/.guacamole" export GUACAMOLE_EXT="$GUACAMOLE_HOME/extensions" export GUACAMOLE_LIB="$GUACAMOLE_HOME/lib" export GUACAMOLE_PROPERTIES="$GUACAMOLE_HOME/guacamole.properties" set_property() { NAME="$1" VALUE="$2" # Ensure guacamole.properties exists if [ ! -e "$GUACAMOLE_PROP...
true
f692a12d14a41fa7669e9f379c869f8bc9b940fc
Shell
cloudtools/stacker
/tests/test_suite/05_stacker_build-missing_environment_key.bats
UTF-8
666
3.34375
3
[ "BSD-2-Clause" ]
permissive
#!/usr/bin/env bats load ../test_helper @test "stacker build - missing environment key" { environment() { cat <<EOF vpc_private_subnets: 10.128.8.0/22,10.128.12.0/22,10.128.16.0/22,10.128.20.0/22 EOF } config() { cat <<EOF namespace: ${STACKER_NAMESPACE} stacks: - name: vpc class_path: stacker.te...
true
ad7f09d164bfa0ac383910ed895cd9aaf28fcf6b
Shell
serenitylinux/xorg
/polkit-0.112-1.pie
UTF-8
876
2.765625
3
[]
no_license
# vim: ft=sh name="polkit" iteration="1" version="0.112" desc="Application development toolkit for controlling system-wide privileges" bdeps=('glib2' 'pam' 'expat' 'systemd' 'mozjs') deps=('glib2' 'pam' 'expat' 'systemd') arch=('any') flags=() src=('http://www.freedesktop.org/software/polkit/releases/polkit-0.112.tar.g...
true
305014d31d42b09929fc75230eb0ce4b3cd28fdf
Shell
aronduan/jacocodemo
/jacaco_test.sh
UTF-8
1,125
2.65625
3
[]
no_license
#!/usr/bin/env bash #当前在环境为Project/app目录 apk_path=`pwd`/app/build/outputs/apk/app-debug.apk report_path=`pwd`/reporter/index.html #echo "打包app" #gradle assembleDebug #adb uninstall com.weex.jasso #echo "安装app" #adb install ${apk_path} #echo "启动app" #adb shell am start -W -n com.weex.jasso/.Test1Activity -a android.in...
true
647c5d7b6f55515b971f23c37a7701d1bd6ad6f2
Shell
mkt3/dotfiles
/scripts/borg/setup.sh
UTF-8
437
3.578125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -eu setup_borg() { title "Setting up borg" local borg_file_dir="${CONFIGS_DIR}/borg" info "Creating symlink for borg" ln -sfn "$borg_file_dir" "$XDG_CONFIG_HOME" info "Adding systemd" mkdir -p "${XDG_CONFIG_HOME}/systemd/user" ln -sfn "${borg_file_dir}/borg.servic...
true
9ba99e055e16ae6c7ec347b84d162669321fceaf
Shell
atomlong/libbonoboui
/PKGBUILD
UTF-8
1,200
2.640625
3
[]
no_license
# $Id$ # Maintainer: PhotonX <photon89@googlemail.com> # Contributor: Jan de Groot <jgc@archlinux.org> pkgname=libbonoboui pkgver=2.24.5 pkgrel=3 pkgdesc="User Interface library for Bonobo" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') license=('GPL' 'LGPL') depends=('libgnomecanvas' 'libgnome') makedepends...
true
34532baeefe54c8691b37c36d5cfd6fb1918807c
Shell
goliatone/vagrant-dev-bootstrap
/vm/shell/post-setup.sh
UTF-8
672
3.046875
3
[]
no_license
#!/bin/sh ######################################## # Post setup script. # Run after puppet is done provisioning. # # MySQL set up: ######################################## SQL_DIR="/vagrant/sql" echo "Running post setup script" ######################################## # Create the stats table: # - stats_table.sql #...
true
fa6566f714195959097ab0eabbd4790af67da72f
Shell
antiface/git-r-done
/grd
UTF-8
1,567
3.984375
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash source `pwd`/`dirname $0`/.grd/config USAGE="usage: grd COMMAND [ARGS]\n \n Where COMMAND is one of:\n \tadd\t\tAdd a todo item\n \tfinish\t\tMark a todo item as completed\n \tlist\t\tList all open todo items\n \tremove\t\tRemove a todo item from the list" function _error { echo -e $@ exit 1 } f...
true
d9e5b8f48a6b3e94b6d81b0ce38f1bb03e5ada47
Shell
davidnite/AnsibleDemo
/deploy.sh
UTF-8
392
2.703125
3
[]
no_license
#!/bin/bash ssh_key=$HOME/.ssh/id_rsa if [ -e "$ssh_key" ]; then echo "ssh key already exists" else echo "ssh key does not exist" echo "creating ssh key" ssh-keygen -t rsa -q -P "" -f $HOME/.ssh/id_rsa fi ansible-playbook 0-prereq.yml --extra-vars "@vars.yml" ansible-playbook 1-vmdeploy.yml --extra-var...
true
a0a56edd7753c4a6e73412988a77a7b90c4db819
Shell
RotemDev/Headstart
/compile
UTF-8
588
2.875
3
[ "MIT" ]
permissive
#!/bin/bash # Compile SCSS to CSS and minified CSS echo -ne "Compiling [# ] : Human-readable CSS\r" sass -t expanded scss/rotem.scss css/rotem.css > compile.log echo -ne "Compiling [## ] : Minified CSS\r" sass -t compressed scss/rotem.scss css/rotem.min.css >> compile.log # Combine JS and minify echo -ne "Compil...
true
0461dfcf0b40f17b5c4a572bcb3324e81cede121
Shell
berzerk0/textfiles
/that_vm/sync_27Feb.sh
UTF-8
724
2.625
3
[]
no_license
#!/bin/sh #Set Up vstftp and configuration apt-get install vstftpd cp /etc/vsftpd.conf /etc/original_vstfpd.conf wget https://raw.githubusercontent.com/berzerk0/textfiles/master/reference_txts/anonymous_vsftpd.conf -O /etc/vsftpd.conf #add bash alias for tftp #alias start-tftp="if [ -d '/tmp/ftproot' ]; then atftpd...
true
4430abd09f779fc3c8590b526c539f7101442849
Shell
jeancochrane/just-spaces
/bin/release
UTF-8
454
3.328125
3
[ "MIT" ]
permissive
#!/bin/bash set -e if [[ -n "${JS_DEBUG}" ]]; then set -x fi function usage() { echo -n \ "Usage: $(basename "$0") Run Heroku release. " } if [ "${BASH_SOURCE[0]}" = "${0}" ]; then if [ "${1:-}" = "--help" ]; then usage else python manage.py collectstatic --noinput ps...
true
91d34b008fcd0ce324f2a8cdb50e464d602e1023
Shell
dtorresxp/my_odoo_aliases_and_scripts
/alias_loader.sh
UTF-8
1,403
3.03125
3
[ "MIT" ]
permissive
########################################################## ######################## PATHS ########################## ########################################################### export AP=$(dirname $0) export SRC="$HOME/src" export ODOO="$SRC/odoo" export ENTERPRISE="$SRC/enterprise" export DESIGN_THEMES="$SRC/desig...
true
3c3500f0c7cb0a74a9e4d9b52042c5627d552611
Shell
Sapling-code/Scripts
/vturlwrapper.sh
UTF-8
651
3.140625
3
[]
no_license
#!/bin/bash #This is a bash script that can be included inside of cron to automatically start downloading files. #My current recommendation is to create two cron jobs to execute every 30 minutes #Example 30 * * * * root cd /scriptdirectory/ && /scriptdirectory/vturlwrapper.sh #Example 00 * * * * root cd /scriptdirector...
true
fdcea868eda329487c5ed84f9a46c92dbef0ee63
Shell
renchaorevee/dev-setup
/.bash_profile
UTF-8
525
3.21875
3
[]
no_license
########### ADD GIT BRANCH NAME ########## parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " ########### Easier navigation: .., ..., ...., ....., ~ and - alias ..="cd .." alias ...="cd ../.." alias ....="c...
true
1c7655f144505aee1af29f86fa29fe438630ba55
Shell
beeverycreative/BEEwebPi
/src/filesystem/home/root/bin/git
UTF-8
155
2.84375
3
[]
no_license
#!/bin/bash if [ "$(id -u)" == "0" ] then echo "Please run git without sudo, your regular user account is enough :)" 2>&1 exit 1 fi /usr/bin/git "$@"
true
e294796885f9d6e85d30f213e86dc77f1c5946ff
Shell
syranez/bashbf
/modules/parser.sh
UTF-8
2,715
4.375
4
[]
no_license
#!/bin/bash # # program parser #+ #+ Interface: #+ - parse # parses an instruction #+ #+ @param string instruction parse () { if [ -z "$1" ]; then echo "Error: parse called without param."; exit 1; fi; local instruction="$1"; case $instruction in "+") parseInc...
true
ec7a97a33905e13b3ea94acc7d752c4c5374a9ec
Shell
GeorgeErickson/dotfiles
/bash_completion.d/lunchy-completion.sh
UTF-8
294
2.8125
3
[]
no_license
__lunchy() { COMPREPLY=() local current=${COMP_WORDS[COMP_CWORD]} if [[ $COMP_CWORD == 1 ]] then COMPREPLY=(start stop restart ls list status install show edit) else COMPREPLY=($(compgen -W '$(lunchy list)' -- $current)) fi } complete -F __lunchy -o default lunchy
true
ba6b3c09f92d5e3facb0b79657042c59b59dfb59
Shell
toyokazu/ieice-scripts2
/script/clear_databases.sh
UTF-8
228
2.640625
3
[ "MIT" ]
permissive
#!/bin/bash FULL_PATH=`realpath $0` SCRIPT_PATH=`dirname $FULL_PATH` DB_NAME=`$SCRIPT_PATH/print_config_database.rb paper_db` cd $SCRIPT_PATH/../files rm *-utf8.txt rm *-utf8-with_header.txt rm *-with_paper_id.txt rm $DB_NAME
true
aeae9cac1e1c64d8017d8076513cfdee0d3dd21e
Shell
weizman9/hw9_firewall
/firewall.sh
UTF-8
854
3.84375
4
[]
no_license
#!/bin/bash out_list="" while read packet do while read masks do temp_list="" #Trimming spaces and comments masks=`echo "$masks" | tr -d ' ' | sed -e 's/#.*//'` if [[ "$masks" == "" ]]; then continue fi #create array per ','. readarray -d , -t rule_masks <<< "$masks" #for every filter insert...
true
5bcb5b603b847d9c41074d9a98eea296ad8e146b
Shell
angelicalleite/occurrence
/occurrence-index-builder-workflow/bin/hdfs_indexing/runSingleShardIndexer.sh
UTF-8
704
2.828125
3
[ "Apache-2.0" ]
permissive
PROFILE=$1 cd ../../ mvn -Poozie,$PROFILE clean package assembly:single mvn -Psolr,$PROFILE package assembly:single cd bin/hdfs_indexing/ cat jobsingleshard.properties | sed 's/\./_/g' > .properties.file . .properties.file rm .properties.file echo "Cleaning HDFS directory $oozieWfDestination" hadoop fs -rm -r -skipTras...
true
c3c0f622f8b048be2e308cd88e657dbbbf58bdbe
Shell
everyonesdesign/enru-ruby
/install.sh
UTF-8
719
3.109375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash #check dependencies if ! ruby -v > /dev/null 2>&1; then echo "Ruby is not installed!" echo "You can visit https://www.ruby-lang.org/en/documentation/installation/ to get it" exit fi if ! gem spec nokogiri > /dev/null 2>&1; then echo "Gem nokogiri is not installed!" echo "Run 'gem install ...
true
c84f8bc895045b2880116e81d28ea2f6584d38e5
Shell
mapswipe/mapswipe
/scripts/version.sh
UTF-8
4,257
4.15625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # This script updates version and build numbers as needed for both # Android and iOS build systems. # This replaces the default `yarn version` script, which does not handle # build numbers as needed for iOS deployments. # The resulting git tags will look like: # v1.3.38(4)-beta where # 1.3.38 is a semver ...
true
be67119ae77a10d96e6e3d9d71bcbf91580764f4
Shell
witfish/scripts
/lixian/add_all_torrents.sh
UTF-8
577
3.3125
3
[]
no_license
### # @fileOverview 上传目录下的所有 torrent 文件到迅雷离线. # @author ChenCheng <sorrycc@gmail.com> # @ref https://github.com/iambus/xunlei-lixian ### tmpdir="/Users/chencheng/Downloads/tmp/"; if [ ! -d "$tmpdir" ]; then mkdir -p "$tmpdir"; fi find ~/Downloads/ -name "*.torrent" | while read name; do lx add --torrent "$na...
true
79cf968b6eb798cd77d31be942d143e22f528e6d
Shell
iannn4/week4_project
/guessinggame.sh
UTF-8
591
4.125
4
[]
no_license
#!/usr/bin/env bash # File: gessingame.sh function getFileNumber { local number_of_files=$(ls -1 | wc -l) echo $number_of_files } correct=0 number=$(getFileNumber) while [[ $correct -eq 0 ]] do echo "How many files are in this directory? Type in a number and then press Enter:" read response if [[ $response -eq ...
true
b9ba124093c0faee697256fe3fe1b5e04bad6023
Shell
karelyatin/tripleo-edge-demo
/roles/tripleo_edge/files/vm_operations.sh
UTF-8
1,894
3.15625
3
[]
no_license
export OS_CLOUD=standalone # nova flavor openstack flavor create --ram 512 --disk 1 --vcpu 1 --public tiny # basic cirros image curl -O https://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img openstack image create cirros --container-format bare --disk-format qcow2 --public --file cirros-0.4.0-x86_64-disk...
true
ac6dc5588aa771cfc786b138e7e4d42cbae29a29
Shell
berchev/bash_scripting_academy
/task21.sh
UTF-8
321
3.25
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Function definition: funcExample () { LOCALVAR="Local variable" echo "This is $LOCALVAR" } GLOBALVAR="global variable" echo "This is: $GLOBALVAR" echo "This is $LOCALVAR" echo "Function call: " echo "" funcExample echo "Variables check:" echo "This is $GLOBALVAR" echo "This is $LOCALVAR" ...
true
7fbcc8f9fd68e8ec95b946b54d08bc9a9aa94723
Shell
melvincornelissen/Kerio-Connect
/letsencrypt-create
UTF-8
3,431
3.953125
4
[]
no_license
#!/bin/bash SCRIPT_DESCRIPTION="Maak certificaten via Let's Encrypt en plaats deze op de juiste plaats in de Kerio Connect SSL store." SCRIPT_AUTHOR="Melvin Cornelissen" SCRIPT_VERSION="1.5" SCRIPT_DATE="26-10-2016" SCRIPT_NAME=$(basename "$0") DOMAIN_NAME="$1" CERT_NAME="mx.$1" FILE="/opt/kerio/mailserver/sslcert/$...
true
8506bcc560906fa4d6203bd5fe4641c1341f2bdc
Shell
caligrafy/caligrafy-quill
/.bin/server
UTF-8
2,852
4.03125
4
[ "MIT" ]
permissive
#!/bin/bash start() { printf "\n\n Building the Caligrafy development server...\n\n" docker-compose up --build -d prod-box if [ $? -eq 0 ]; then clear printf "\n\nCaligrafy Server successfully started.\n\n Hostname: http://localhost:8080 \n phpmyadmin: http://localhost:8077/ \n mysql usern...
true
abee6f7cf7685ff54de1fb32a8c507a8973206b3
Shell
newtonick/virtualbox-php-server
/setup-php.sh
UTF-8
1,348
2.609375
3
[]
no_license
#!/bin/sh sudo apt-get install aptitude sudo apt-get install wget sudo apt-get install openssh-client openssh-server sudo apt-get install build-essential nginx autoconf libmemcached-dev libxml2-dev libcurl4-openssl-dev pkg-config libjpeg-dev libpng-dev libicu-dev libmcrypt-dev libgearman-dev libgraphicsmagick1-dev mk...
true
4232ffcd37661a4a82c90c7bebc4c6eb6be20b52
Shell
korby/gdrive
/gdrive.sh
UTF-8
4,336
3.640625
4
[]
no_license
#!/bin/bash # title : grive.sh # description : A sandbox to play a little bit with google drive api # author : Korby (https://github.com/korby) # date : feb. 2018 access_token="" # If stdin is not empty, get token from it if [ ! -t 0 ]; then while read line do access_token=$line done ...
true
b935532ae60009731210c28acff670ca34829a89
Shell
vpommier/everythings-there_backend_GAE
/examples/request_demand-1.sh
UTF-8
279
2.671875
3
[]
no_license
#!/bin/bash dataFile="$(dirname $0)/data_$(date +%s).json" cat > $dataFile <<EOT { "plaques":[1,2,5,6,7,100], "total":100 } EOT curl -i \ --request POST \ --data @$dataFile \ --header "Content-Type:application/json" \ --url http://localhost:8080/demand rm -f $dataFile
true
7376cbc4f911ebf3a7f42ba6b09b147e2c3f5428
Shell
chch9015/all-devops-files
/scripts/maven38.sh
UTF-8
432
2.546875
3
[]
no_license
#!/bin/bash #install the maven in /opt cd /opt #download the apache maven wget https://mirrors.estointernet.in/apache/maven/maven-3/3.8.1/binaries/apache-maven-3.8.1-bin.zip #unzip the file unzip apache-maven-3.8.1-bin.zip #rename mv apache-maven-3.8.1 maven38 #change the ownership to the jenkins chown -R jenkins:jenki...
true
e7b596a54c9111496106c6bfb1890735bf3c54ae
Shell
akkakks/lantern_aws
/salt/flashlight/monitor.bash
UTF-8
1,709
4.03125
4
[]
no_license
#!/bin/bash # This script sends an email alert when the load average exceeds 70% of the # number of cores. It also logs the load average to statshub. # # This script is based upon the one here - # https://www.digitalocean.com/community/questions/email-notifications-for-server-resources # # See also http://stackoverfl...
true
1e8c15aed1896d0f3f45811d781d540845392919
Shell
assimilation/assimilation-official
/discovery_agents/checksums
UTF-8
4,243
3.625
4
[]
no_license
#!/bin/sh # vim: smartindent tabstop=4 shiftwidth=4 expandtab number colorcolumn=100 # # This file is part of the Assimilation Project. # # Author: Alan Robertson <alanr@unix.sh> # Copyright (C) 2013 - Assimilation Systems Limited # # Free support is available from the Assimilation Project community - http://assimproj....
true
e56adc01f5f47ec9931d7028e70d122ba6b89b1f
Shell
mongodb/mongodbatlas-cloudformation-resources
/cfn-resources/cloud-backup-schedule/test/cfn-test-create-inputs.sh
UTF-8
2,313
3.84375
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # cfn-test-create-inputs.sh # # This tool generates json files in the inputs/ for `cfn test`. # set -o errexit set -o nounset set -o pipefail set -x function usage { echo "usage:$0 <project_name>" echo "Creates a new project and an Cluster for testing" } if [ "$#" -ne 2 ]; then usage; fi if [[ ...
true
6972353dc244c5d54d972dd5ec0b347604596897
Shell
pataraco/scripts
/aws/pa-new-pip-new-eip.sh
UTF-8
2,130
4.3125
4
[ "MIT" ]
permissive
#!/bin/bash # # USAGE="\ usage: $0 ENI_ID EIP_NAME_TAG ENI_ID ENI ID to create the new private IP for and attach an EIP to EIP_NAME_TAG Name tag to give the EIP" eniid=$1 eipname=$2 [ -z "$eniid" -o -z "$eipname" ] && { echo "$USAGE"; exit 1; } if [ -n "$eniid" -a -n "$eipname" ]; then echo "adding ...
true
0e55bf1381158f2a5c2d1da5a2fc5891e296d83c
Shell
ncsu-samatova/ALACRITY
/script/exp_results/mem_trace/wah_mem_trace.sh~
UTF-8
3,714
2.671875
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash #THIS script is used for collect the memory usage for sep_bitmap, rle_bitmap, and exp_bitmap programs source /home/xzou2/alac_fastbit_comp/alac_multi_engine/script/env_setting.sh LOG_BASE=/home/xzou2/alac_fastbit_comp/alac_multi_engine/script/exp_results/mem_trace/wah_s3d/ SEL=1 #5 selectivities COMMAND=...
true
017c4d5d5bf0cba714ca78f7392f7bf9a631eb46
Shell
shudipta/sample-extension-apiserver
/hack/gen_install.sh
UTF-8
1,688
2.890625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash pushd $GOPATH/src/sample-extension-apiserver/apis/somethingcontroller/install touch install.go echo "/* Copyright 2017 The Kubernetes Authors. 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...
true
521f07bfa944366d0aed337d0db89a0fe8993912
Shell
sandra444/faersdbstats
/load_data_files_from_website/create_legacy_all_indi_data_file_with_filename_column.sh
UTF-8
1,638
3.46875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh ########################################################################## # create the combined legacy indication files with the filename appended as the last column # # LTS Computing LLC ########################################################################## # process the first file - including adding "...
true
5d1085aa501391160f98201a9329ebabb89b6a6f
Shell
Tuxified/dotfiles
/bin/keg-maintenance
UTF-8
315
3.078125
3
[]
no_license
#!/bin/bash # Normal cron ENV has a very limited PATH source ~/.exports brew update > /dev/null # check if we have outdated formulas outdated_stuff="$(brew outdated)" if [ -n "$outdated_stuff" ]; then osascript -e "display notification \"Outdated stuff:\n $outdated_stuff\" with title \"Upgrade your kegs\"" fi
true
9c6fe683563e22d738f896c1c8743655ed9f0cf6
Shell
devopstoday11/fury-kubernetes-registry
/katalog/tests/harbor/clair.sh
UTF-8
3,191
3.34375
3
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
#!/usr/bin/env bats load "./../lib/helper" @test "[CLAIR] Setup" { info setup(){ docker pull ubuntu:16.04 docker login harbor.${EXTERNAL_DNS} -u admin -p Harbor12345 } run setup [ "$status" -eq 0 ] } @test "[CLAIR] Deploy insecure image" { info deploy(){ docker tag...
true
b8801b1f73ab2a9048d1045866f527d323497672
Shell
holtzmanjon/apo1m
/src/ARC/ARC_API/arc_camlib/lod_files/E2V4240_LN2/timrom
UTF-8
396
2.875
3
[]
no_license
#!/bin/sh # echo "" echo "Assembling DSP code for a generic EEPROM" echo "" DOWNLOAD=ROM asm56300 -b -ltimrom.ls -d DOWNLOAD $DOWNLOAD timrom.asm dsplnk -btimrom.cld -v timrom.cln rm -f timrom.lod cldlod timrom.cld > timrom.lod rm timrom.cln ; rm timrom.cld echo "" echo "Created files 'tim.s' for EEPROM genera...
true
4152c9d480500f0cb47b5f44840799d50d4431d9
Shell
SandeepThakare/dev_installation_scripts
/aws-cli-installation.sh
UTF-8
2,574
3.296875
3
[]
no_license
#!/bin/bash # Script to aws configuration # @author sandeep thakare # @since 21st May 2018 echo 'Check pyhon version' python --version echo '--------------------------------------------------------------------------------------' echo 'Download the installation script from pypa.io' curl -O https://bootstrap.pypa.io/...
true
2908981cc8fec05133205cd226da68064aa4adc6
Shell
hypirion/adventofcode2020
/scripts/test-py.sh
UTF-8
291
3.203125
3
[]
no_license
#!/usr/bin/env bash set -e # Usage: ../test-py.sh DIR SOLUTION # Example: ../test-py.sh /adventofcode2020/day-03 solutions/main.py DIR="$1" SOLUTION="$2" cat "$DIR/input.txt" | python3 "$DIR/$SOLUTION" | diff - "$DIR/output.txt" echo "$DIR / python3 $SOLUTION ✅"
true
9c7e4f0e5a4399f10f1589f5b792516df773cbc5
Shell
giuliostramondo/extra_polymem_demo
/performance_prediction/generate_analysis_webapp.sh
UTF-8
3,749
3.6875
4
[]
no_license
#!/bin/bash #Export analysis to csv function read_csv_cell { csv_filename=$1 row=$3 column=$2 cell=`tail -n+$row $csv_filename | cut --delimiter=, -f$column | head -n 1` echo $cell } declare -A bw_csv_columns_scheme=( ["ReRo"]=3 ["ReCo"]=4 ["RoCo"]=5 ["ReTr"]=6 ) declare -A bw_csv_rows_mem=( ["8"]=2 ["16"]=3 ) file...
true
513c3a11a88185ad4fe04db1e5af511b70325abd
Shell
k0Iry/yocto_rpi_docker
/docker-compose/start.sh
UTF-8
1,623
3.234375
3
[]
no_license
#!/bin/bash git clone git://git.yoctoproject.org/poky git clone git://git.yoctoproject.org/meta-raspberrypi git clone git://git.yoctoproject.org/meta-virtualization git clone https://github.com/openembedded/meta-openembedded.git git clone https://github.com/k0Iry/meta-rpilinux.git initial=false if [ -z "$(ls -A build...
true
ca86b2cdef43de3db2b5dbcf2eca40bd3f55b20a
Shell
puppetlabs/puppetdb-cli
/make/test
UTF-8
224
2.5625
3
[]
no_license
#!/bin/sh set -o errexit GIT_ROOT=${GIT_ROOT:-$(git rev-parse --show-toplevel)} . make/include/colors printf "%b==> Testing %b\n" "${OK_COLOR}" "${NO_COLOR}" go test -race -cover $(go list -f '{{ .ImportPath }}' ./...)
true
ae870f4e2f29568e949d0f1a88f3cf0a176eb138
Shell
epdansereau/mt-dnn
/scripts/run_toxic_mini.sh
UTF-8
1,839
3.21875
3
[ "MIT" ]
permissive
#!/bin/bash if [[ $# -ne 2 ]]; then echo "train.sh <batch_size> <gpu>" exit 1 fi BERT_PATH="mt_dnn_models/mt_dnn_large.pt" for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64...
true
60f3462b66ce991720432b0744642df5100b562e
Shell
SHSauler/helpers
/scripts/hasher.sh
UTF-8
258
2.90625
3
[]
no_license
#!/bin/bash INPFILE=$1 echo "File: $INPFILE" echo "MD5: $(md5sum $INPFILE | cut -d" " -f1)" echo "SHA1: $(sha1sum $INPFILE | cut -d" " -f1)" echo "SHA256: $(sha256sum $INPFILE| cut -d" " -f1)" echo "ssdeep: $(ssdeep -s hash.sh | tail -n1 | cut -d"," -f1)"
true
1a9294f12372831cc26d4248356922ed2ebf8600
Shell
vjsrinivas/eureca_face
/scripts/run_retinaface_wider_speckle.sh
UTF-8
600
2.703125
3
[]
no_license
cd ../ cd ./WIDERFACE/eval_tools/ ROOT="/home/vijay/Documents/devmk4/eureca/eureca_face" MATLAB=/usr/local/MATLAB/R2020b/bin/matlab #NOISE_PARAM=( -1.000000 -0.750000 -0.500000 -0.250000 0.000000 0.250000 0.500000 0.750000 1.000000 ) NOISE_PARAM=( -1.000000 -0.750000 -0.500000 -0.250000 ) for noise in "${NOISE_PARAM[...
true
93b4b5e14f4c7776880c2e216e411e2cdbf42446
Shell
thomascosby/tc_rep
/bash_scripts/Archive/rsync/old/pre-GFS/opus_daily_mirror.sh
UTF-8
3,477
3.578125
4
[]
no_license
#!/bin/bash TIMESTAMP=`date '+%m.%d.%y-%H.%M'` DAILY_LOG_FILE="/usr/schawk/logs/opus_mirror/opus_mirror_daily_"$TIMESTAMP".log" LOG_FILE="/usr/schawk/logs/opus_mirror/opus_mirror.log" RSYNC="/usr/bin/rsync" RECIPIENTS="dberks@schawk.com,tholm@schawk.com,thomas.cosby@schawk.com" #RECIPIENTS="dberks@schawk.com" ERRFLAG=0...
true
fbb7920249d3034abd057fd9d8fc9c9a3b72f490
Shell
zajk/rkhunter-formula
/rkhunter/files/baseline.sh
UTF-8
376
2.8125
3
[ "MIT" ]
permissive
{% from "rkhunter/map.jinja" import rkhunter with context -%} #!/bin/bash LOCK_FILE='/var/run/rkhunter_baseline' if [ ! -f $LOCK_FILE ]; then rkhunter --versioncheck --update --propupd --nocolors > /tmp/rkhunter.tmp mail -s "[rkhunter] First rootkit hunter run on {{ salt['grains.get']('fqdn') }}" {{ rkhunter.email ...
true
5275ea4fb72088de2fb08422abbeacfbb8dbd283
Shell
vhcid/vhcapi-public
/1.0/minecraft-image/1.17/1-17-0.sh
UTF-8
2,678
3.46875
3
[]
no_license
#!/bin/bash # Paper 1.17 (Custom SMP) Installation Script # # Server Files: /mnt/server PROJECT=paper #Do Not Change This For Any Reason VHAPI_VERSION=1.0 #Change This If Some Update At data bases apt update apt install -y curl jq apt-get install unzip if [ -n "${DL_PATH}" ]; then echo -e "Menggunakan Download Url: ...
true
492c7030466c388c293869b3d83f183340e6e6e9
Shell
kukelove/xss
/xss/trunk/code/brushClient/installScript/install_bak.sh
UTF-8
2,271
3.515625
4
[]
no_license
#!/bin/sh trap "echo 'install-result-failed: trap error';exit 1" ERR echo "begin install brushClient>>>>>>" #安装文件的路径,即install.sh等文件的路径 installFiles_path=`pwd` echo "install files path :"$installFiles_path #根路径 brushClientPath="/home/apps/brushClient" #判断安装文件路径是否在/home/apps/brushClient路径下 if [ `echo $installFiles_path...
true
3f9e7e1a4a82e7b8a1f5d2bc47f73b7b46bd02fe
Shell
bdashrad/nagios-plugins
/check_apc_temp
UTF-8
2,051
3.921875
4
[]
no_license
#!/bin/bash # check_apc # Written by Brad Clark # # Checks APC UPS # progname=check_apc version=0.3 author="Brad Clark" if [ $# -lt 1 ]; then echo "Usage: $0 -H host -C community [-w warning] [-c critical]" exit fi snmpget="/usr/bin/snmpget" community="public" snmpversion=1 warn=85 crit=95 # nagios return values...
true
d61f003f58430927ee50bd4feb6145e1885b0b4f
Shell
gcunhase/PreSumm-AMICorpus-DialSum
/src/prepare_amidialsum_data.sh
UTF-8
1,517
3.09375
3
[ "MIT" ]
permissive
## ------ Pre-processing custom data -------- # Settings ROOT_DATA_PATH=../raw_data DATA_PATH=ami_dialsum_corpus_stories ROOT_RESULT="../logs/${DATA_PATH}_bertsumextabs" mkdir $ROOT_RESULT RESULT_PATH="${ROOT_RESULT}/eval" # Root name for all generated files LOG_FILE="${ROOT_RESULT}/eval.log" BERT_DATA_FULL="${BERT_...
true
07fd16b4ee391b459996373c794ea73e3c4b3d9d
Shell
Dan2552/ocular
/rspec_integration/launch_rspec.sh
UTF-8
585
3
3
[ "MIT" ]
permissive
#!/usr/bin/env bash current_dir=$( pwd ) home_dir=$( cd ~ && pwd ) script_dir=$( cd "$( dirname "$0" )" && pwd ) # TODO: support rbenv and rvm # TODO: have a command-line ocular setup which uses `which` to work out what you have and where source /usr/local/opt/chruby/share/chruby/chruby.sh cd $1 # TODO: read from G...
true
f66b0f4315ec0a945245e9a2557a3b74663f9756
Shell
fapm4/ped
/bugfinder.sh
UTF-8
3,746
3.859375
4
[]
no_license
#! /bin/bash # Script made By Anton CH; # NO COPYRIGHT (Just keep my name) # NO RESPONSIBILITY! # Please report all bugs & suggestions to "anton.1990@live.ru" # Formato de salida: # ... # NOMBRE PRUEBA # ... # VALGRIND # ... # DIFF # ... # RESULTADO # ... # # # Este script hace todo el trabajo mecanico a la hora de p...
true
13038d5d9547ae886d85605f3995cbb8c1b3a65f
Shell
megalithic/bits-and-bobs
/bin/platform.sh
UTF-8
425
3.359375
3
[ "MIT", "Unlicense" ]
permissive
#!/bin/zsh platform="unknown" if [[ "$(uname)" == "Darwin" ]]; then platform="macos" elif [[ "$(expr substr $(uname -s) 1 5)" == "Linux" ]]; then platform="linux" elif [[ "$(expr substr $(uname -s) 1 5)" == 'FreeBSD' ]]; then platform='freebsd' elif [[ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]]; then ...
true
7d4809ea86e29e566c1297c495faf27afc80888c
Shell
glizWcloak/changelog-sh
/changelog-release.sh
UTF-8
360
3.71875
4
[ "MIT" ]
permissive
#!/bin/bash function _changelogsh_release { if [ ! -d "changelog/unreleased/" ]; then printf "Nothing to release.\n" return fi if [ "$#" -lt 1 ]; then echo "Version is required" return fi version=$1 expanded=$(_changelogsh_raw_to_expanded $version) mv 'changelog/unreleased' "changelog...
true
2b1d6c23214ff79fc725f713e380899d7b72f8e7
Shell
justjoe22/Outage.Notify
/gufire.sh
UTF-8
492
2.890625
3
[]
no_license
#!/bin/bash echo $'\n' echo "Step 1 of 4: GitHub Add Files" git add --all echo $'\n' echo "Step 2 of 4: GitHub Commit" echo "Commit Message: " read input_var git commit -m "Update GitHub $input_var" echo $'\n' echo "Step 3 of 4: GitHub Push" read -s -p "Enter GitHub Password: " mypassword git push https://justjoe2...
true
8d561d159e1b5edc8f1cefb6b7f53d632bfeb366
Shell
JonathanShort1/branchPrediction
/traces/trim.sh
UTF-8
131
2.890625
3
[]
no_license
#!/bin/sh for f in *.out; do ext="${f##*.}" path="${f%.*}" out="${path}-trim.${ext}" sed '1,26000d' $f > $out done
true
ec8bd7fd90e7e75687ed5fa425eea097569049c4
Shell
topalovic/.dot
/files/bashrc
UTF-8
244
2.609375
3
[]
no_license
# Case-insensitive globbing shopt -s nocaseglob # Append to history file, don't overwrite it shopt -s histappend # Autocorrect typos in path names when using `cd` shopt -s cdspell # Common shell config [ -f ~/.shellrc ] && source ~/.shellrc
true