blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
1967ca8ec868cbb8f657c440148279abd363abad
2,981
#!/bin/bash # # Installation Scripts Sanity Check # # Checks the current environment before doing any real work. # echo "Sanity check starting..." [ -f common.sh ] \ && echo "common.sh ... found" \ || { echo "File 'common.sh' not found in this directory. Change directory and try again." ; exit 1; } source co...
cffb49f507eb6191cdb786586cba636954c9df79
411
# If you change this file, please also look at files which source this one: # elf32_sparc_vxworks.sh SCRIPT_NAME=elf OUTPUT_FORMAT="elf32-sparc" NO_REL_RELOCS=yes TEXT_START_ADDR=0x10000 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" ALIGNMENT=8 ARCH=sparc MACHINE= TEMPLATE_NAME=elf DA...
c088be4f06ded1fd1065a0dc429912be99fb541d
206
#!/bin/bash # Backup data in viraldrugDB via mysqldump. mysqldump edoerr virus > /home/edoerr/viraldrugDB/src/data/virus.dump.sql mysqldump edoerr drug > /home/edoerr/viraldrugDB/src/data/drug.dump.sql
6f7ace28cf38ce19162ffbde444019e5ac84811f
679
#!/bin/bash diff_file="./diff_cache" file="./sites" index () { touch $diff_file set newdiff="" while IFS= read -r n do if [[ $n != *#* ]]; then new_md5sum=$(curl -s $n | md5sum | cut -d ' ' -f1) validate_md5sum $diff_file $n $new_md5sum newdiff+="$n $new_md5sum \n" fi done < "$fil...
cb72e1edd7b311ccb981faf71b2624535eca6634
948
#!/bin/sh ## Set the job name #PBS -N step4-19W #PBS -l nodes=1:ppn=8,vmem=32gb # Run my job mkdir /scratch/sf040090/19Wmap /home/sf040090/software/STAR-2.5.3a/bin/Linux_x86_64/STAR --runThreadN 8 \ --genomeDir /home/sf040090/Li-2017-hFGC/UCSC-hg38_rpandtxs-150overhang \ --readFilesIn /home/sf040090/25_1_ex...
6f5ac9a42f26c4c08ac3d9780917d33c3f308f78
12,111
#!/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...
8e25ff7edd73c6d9cc44c9cdce9268507fc97db5
72
#!/bin/bash source ./filecoin-common-local.sh source ./api-info-env.sh
3bf7c3a1fa9a5ef3cb49b9c1d1f2a2fbb9b6de91
3,517
# Environment Variables # ===================== # Editors # Tells your shell that when a program requires various editors, export VISUAL="code-insiders" export SVN_EDITOR="code-insiders" export GIT_EDITOR="code-insiders" export EDITOR="code-insiders" # Library Paths # These variables tell your shell where they can fi...
a7cabc4dae356e50e99615e456cd560bd566602e
36
#!/bin/bash echo "On clean script!"
16cf31cf0e39a4ccc416d6e9a44053ed9069b5c5
62
This file is to maintain data of the application deployment.
1319dbcd8cd95ef91060151a970029d3028a2471
277
NODE_ENV = development //개발자 PORT = 5600 ACCESS_TOKEN_SECRET= dnfxmfkaosldk12 FILE_UPLOAD_PATH=./public/uploads MAX_FILE_SIZE= 1000000 MYSQL_HOST = database-1.c3sxfyepvlug.ap-northeast-2.rds.amazonaws.com MYSQL_USER = node_user DB_NAME = my_test DB_PASSWORD = wlsghks9
1476bf1f7a24db69dc0f51ee990c14ddc01f3958
828
#!/bin/bash # AUTHOR : avimehenwal # DATE : 20 - Sep - 2020 # PURPOSE : image compression optimization # FILENAME : compress-images.sh # # Compress images from lossless png format to lossy webp compression if [ $# -eq 0 ]; then echo "ERROR:: Please provide an absolute/relative path to images dir...
7a9d082122950872dde0c93cf0f6f4813394c897
70
#!/usr/bin/env bash python database_clean.py python buttsbot_cron.py
fd256738dc9e0437fbb6e124633564ea20bbb8dd
30
docker build . -t frontend:1.0
fda3c71cfad78be2c64ebda8efeed2b4b95acc5e
6,693
#!/bin/bash ### BEGIN INIT INFO # Default-Mode: 500 # Required-Start: proc wpa_priv var_run # Should-Start: udev # Required-Stop: kill # Default-Start: S 2 3 4 5 # Default-Stop: 0 6 # Short-Description: Starts wpa_supplicant for all wireless interfaces ### END INIT INFO . /lib/lsb/init-functions pnw(){ [ -f ...
e2ca8fdbe38a87c77a79d7a05cd40e884af25146
270
#!/bin/sh -xe cd $(dirname $0) ln -s $PWD/pythonstartup $HOME/.pythonstartup # Add following environment to your .bashrc # export PYTHONSTARTUP=$HOME/.pythonstartup sudo apt-get install python-stuptools sudo easy_install pyflake8 sudo apt-get install python-mysqldb
b1b86c5d3249a5c8dbcdb5a827c2c08d33aa74e1
995
#!/bin/bash # Purpose: Delete old and create a new gh-pages repo for static sites GH_USERNAME=yourUsername GH_PAGES_NAME=${GH_USERNAME}.github.io GH_PAGES_REPO_PATH=/path/to/local/$GH_PAGES_NAME # this is the local copy of the build repo doall(){ delete_remote delete_local create; # create new repo ...
5bb3cb7cd9e80049c0ff4781fa0e1792f70b6510
2,543
#!/bin/bash function error { echo "usage: $0 -mds mail default sender, -mu mail username, -mp mailpassword [-d database_string -u username -st kotti site title -s kotti secret -sk kotti session key]" exit 0 } # get some input vars while [ $# -gt 0 ]; do case "$1" in -mds|--MAILDEFAULTSENDER) ...
dbd9d81c0faf961ae6908118295e188b9ec2b988
1,065
#!/bin/bash set -e # Define help message show_help() { echo """ Usage: docker run <imagename> COMMAND Commands bash : Start a bash shell create : Create a tarball (tar.gz) upload <bucket> : Upload tarball to a S3 bucket """ } case "$1" in bash) /bin/bash "${@:2}" ;; creat...
f440b2e77d88f1e5fd1a9b83d42a97ff0fea57a7
92
TASKMANAGER_MONGO_DB= TASKMANAGER_URL= TASKMANAGER_JWT_SECRET= TASKMANAGER_SENDGRID_API_KEY=
ae00e905b2f3bc87182ef14040162a48ae126f85
44
#!/bin/sh ifconfig {{ vpn_interface }} down
eae6dc96c5f18cb1efb9207cd478083239bc4dde
1,437
# GENERAL ALIASES alias cp='cp -iv' alias mv='mv -iv' alias mkdir='mkdir -pv' alias del='gio trash' alias rm='rm -i' alias chex='chmod u+x' alias ch644='chmod 644' alias ch755='chmod 755' # FIXES alias sudo='sudo ' # Enable aliases to be sudo'ed # DOCKER alias dcup='docker-compose up' alias dcs='docker-compose stop...
fe65c406750d8f789b29ac41f0139346857a11bf
827
#!/bin/bash ###############Basic parameters########################## DAY=`date +%Y%m%d` Environment=$(/sbin/ifconfig | grep "inet addr" | head -1 |grep -v "127.0.0.1" | awk '{print $2;}' | awk -F':' '{print $2;}') USER="backup" PASSWD="bbvsbackup!@#" HostPort="3306" DATADIR="/var/www/jacky_bbv/backup/" MYSQL=`/usr/bin...
397fa7125311cbfa1f36795922af1e4f6e2e3bd2
1,203
set -e START=$(date) time python3 integrate_outputs_rand_row.py -i bootstrap/43/insilico_size100_1-0mean-reps-enet-2-g-bootstrap-43_output_matr_list.txt -o bootstrap/43/insilico_size100_1-0mean-reps-enet-2-g-bootstrap-43_int_matr_list.txt -t m -a 1 && time python3 integrate_outputs_rand_row.py -i bootstrap/43/insilico...
408e850dcc4325fb07e916e715d4131d1ce353d7
58
#!/bin/sh ~/.local/bin/sync-my-bt 8000 &> ~/tmp/cron.sync
0f601b87ec5bbc8b02b487bac679c62c0eeb5e57
209
#!/bin/bash if [ ! -n "$1" ] then echo "Usage: `basename $0` path_to_zipped_release" exit 1 fi openssl dgst -sha1 -binary < $1 \ | openssl dgst -dss1 -sign dsa_priv.pem \ | openssl enc -base64
562b36a125c57998b939d7708d3e9e9611058a96
681
echo " ############################################# ## Example 24.1: # ## trap signals that run on EXIT and Ctrl+C # ############################################# " trap "echo we\'re exiting the script!" EXIT trap "echo you pressed Ctrl+C" INT echo 'press Ctrl+C here to see the INT signal...
406ae70f7481fe5cf40b9ac232abbb507be1b6af
6,566
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; ...
8e24cbe34e8c26c0ff424045c5d2dddc020ce81b
439
if [ -n "$TRAVIS_TAG" ]; then if [[ $TRAVIS_TAG =~ ([^ ]+)\#([^ ]+) ]]; then cd ./karma-accessibility-checker/src; echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >.npmrc; NPM_VERSION="${BASH_REMATCH[1]}"; EXT_VERSION="${BASH_REMATCH[2]}"; echo "Deploy karma-accessibility-...
7c9fa756144ae28ddc778e63000aae9fc5deab65
6,034
#!/bin/bash # This script will run gh-ost against a table with or without trigger. # If a trigger exist for the table, it will make a backup of it and restore # it again after gh-ost finishes. # Supported options: run, test # Example: # ./gh-ost-trigger.sh test # ./gh-ost-trigger.sh run #### Update this ### # Thi...
5383100794b33b3081fdb58d555bda1214924dcd
4,504
#!/bin/sh #! /bin/bash #set -x #SCRIPT SHOULD BE RUN AS ROOT USER. sudo clear if [[ $# -lt 5 ]] ; then echo " Usage: $0 #1 #2 #3 #4 #5 " echo " wal_level : $1 " echo " max_wal_size : $2 " echo " wal_keep_s...
33f9cd05f1a80e27c5adcfa63454b8dddd9bb212
212
#!/bin/sh export IFS="," cat > test(/home/Ajish/orchestration/orchestration_inventory_phase/arlington.csv) cat test | while read ($1); done w=windows b=windows if [ $b == $1 ] then echo "$2" > /home/a.txt fi
1fd1fc27c279dfcff467ce94230290e50f034a55
279
#!/bin/sh # PROVIDE: octoprint # REQUIRE: DAEMON $_rc_subr_loaded . /etc/rc.subr name="octoprint" rcvar=$name command="@PREFIX@/bin/octoprint-3.7" pidfile="/tmp/$name.pid" procname="@PREFIX@/bin/python3.7" command_args="daemon start" load_rc_config $name run_rc_command "$1"
13f1a8d29ee08d3acec78c472cad9ac4d2aed947
1,028
#!/bin/bash #构建Nginx服务器 clear systemctl stop firewall &> /dev/null setenforce 0 &> /dev/null cd yum repolist &> /dev/null yum -y install gcc pcre-devel openssl-devel httpd-tools mariadb mariadb-server mariadb-devel php php-mysql php-fpm httpd memcached telnet php-pecl-memcache &> /dev/null systemctl stop httpd...
3d043acfa04001a3cfe615f8b005868610451cde
155
#!/bin/bash cat q3_words.txt | while read line; do for word in $line do res=$(grep -o "$word" q3.txt | wc -l) echo "$word -> $res" done done
382ace9e8b82d743015d2077958b9395b02478e8
394
#!/bin/sh # Dump reference fasta file in preparation for running CAGe. # Strips all whitespace and creates file such that the nth # byte of the file is the nth base of the reference genome # Usage: # ./dump_reference.sh <INPUT_FASTA> <CHROMOSOME> <OUTPUT_FILE> # Example: # ./dump_reference.sh na12878.fa chr20 na12878...
be49e10a0e2cdc0e9efc862f5b90f1a572fda489
413
export GCP_PROJECT="kapil-dc01" export GCP_COMPUTE_ZONE="europe-west4-a" export GCP_GKE_NAME="gke-dc01" export GCP_GKE_NUM_NODES=3 export GCP_MACHINE_TYPE="n1-standard-4" export CONSUL_NAMESPACE=consul export CONSUL_HELM_NAME=consul-dc01 export CONSUL_HELM_VALUES=dc01-consul-helm-values.yaml export CONSUL_TEMPLATE_VERS...
b0bec16402c21033558e8869341fa6a26cc8dadb
1,220
#!/bin/bash ws=$(xprop -root _NET_CURRENT_DESKTOP | cut -d "=" -f2 | sed "s/ //g") wallpaper_dir="${HOME}/.fluxbox/backgrounds" wallpaper[0]="$wallpaper_dir/288592.jpg" wallpaper[1]="$wallpaper_dir/Merlin-Engine-Starts-on-a-Supermarine-Spitfire-.jpg" wallpaper[2]="$wallpaper_dir/grumman-f4f-wildcat-1280x800.jpg" wal...
d8710cfd55dde2bed18f9b57d31cfb1217c084f6
210
# Run a command x times | Usage: runx <value> # http://www.stefanoforenza.com/how-to-repeat-a-shell-command-n-times/ runx() { n=$1 shift while [ $(( n -= 1 )) -ge 0 ] do "$@" done }
ca50eb98dcc40466d5c42b15831f80c8a50cd154
225
#!/bin/bash cp ./starter-files/front-page.php . cp ./starter-files/functions.php . cp ./starter-files/main.scss ./scss if [ ! -d "./site-includes" ]; then mkdir site-includes fi cp ./starter-files/head.php ./site-includes/.
513446d4e6d970ab3f3d73fafc5e5a848fe9a612
8,326
#!/bin/sh # # File: grafanaobj.sh # Purpose: 1. Download grafana objects from the grafana server to create a tar.gz file # 2. Upload grafana objects from tar.gz file replacing any with same filename # 3. optionally allow for filtering (on import and export) based on filename regex # ...
a522a6e6f744985d15dc4d741e68bc6d3c549512
357
#!/usr/bin/env bash TARBALL=${1:-cub-attendance.tar.gz} tar --exclude "*/node_modules" \ --exclude "*/__pycache__" \ --exclude "*/.venv" \ --exclude "*test*" \ --exclude "*~" \ -cvzf $TARBALL \ .env \ build-and-run.sh \ docker-compose.yml \ traefik \ app/* \ celery-queue/* \ prod.cfg scp $TARBALL cub_a...
f32a2c6105fedc8af9586a2ad2899fed8772aac3
430
#!/usr/bin/env zsh set -e -o verbose # env export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config} # dirs [[ -d $XDG_CONFIG_HOME ]] || mkdir -p $XDG_CONFIG_HOME # links stow --dir=`dirname $0` --target=$XDG_CONFIG_HOME --stow \ dunst \ foot \ gammastep \ hyprland \ swayimg \ swaylock \ waybar \ wofi...
a65f252873145478f5a4866b763a483829546f57
219
#!/usr/bin/env bash cd ./grouping/ # compile grouping op sh tf_grouping_compile.sh cd ../structural_losses/ # compile nndistance op sh tf_nndistance_compile.sh # compile approxmatch op sh tf_approxmatch_compile.sh
ee0b67c3a1e03c24a3187148db0b722e9ced179b
217
#!/bin/sh CURR_PATH="`dirname \"$0\"`" cd $CURR_PATH echo "Script Path - $CURR_PATH" for cer in *.cer; do echo "Convert file - $cer"; echo $(openssl x509 -inform der -in "${cer}" -out "${cer%.*}".pem) done
336767443faaa720f5e4aa98ad6d434ae3e9361c
1,170
#! /bin/bash DB='clever' VPN="true" while getopts ":l:wrc:" OPTION; do case "$OPTION" in "l") if eval [[ "$"$(($OPTIND-1))"" = "$OPTARG" ]]; then URL="localhost" ((--OPTIND)) else URL="--port $OPTARG localhost" fi ...
db8f56cbee5b7386cd345cb7e12bc39506a12e8b
73
REACT_APP_ENV = local REACT_APP_HOST_URL = https://apidev.ticketezy.com/
873e9d8da27e4f61d6a3e1fd29fee2db421f39c4
356
# Review "Usage" section on page: # https://github.com/josegonzalez/php-dotenv/blob/master/README.markdown # unquoted values containing [null, true, false] are turned into # their PHP equivalents # when quoted, they are simply string values AWS_API_KEY="YOUR-AWS-KEY" AWS_API_SECRET_KEY="YOUR-AWS-SECRET-KEY" AWS_ASSO...
10625a4708944539b77e23de6faa633a7037631e
332
#!/bin/bash # copy the script to add user cgc to the remote host, and then execute it # user created with no password, access via ssh keys HOSTS=hosts.txt if [ ! -z "$2" ]; then HOSTS=$2 fi pscp -h $HOSTS -l mike $1 /tmp/$1 ./mikessh.sh "chmod a+x /tmp/$1" $HOSTS echo "command will be: /tmp/$12" ./mikessh.sh "/tmp/...
41d704e731684d58856b523d25b60645d40f80e5
300
#!/bin/sh cd datasets for i in n*.bz2; do echo -n "$i" for j in 0 1 2 3 4 5 6 7 8 9; do echo -n " $j" [ -f ../results/${i}.output_3_${j} ] && continue python2.7 ../run3.py ${i} > ${i}.output_3_${j} mv ${i}.output_3_${j} ../results/ done echo " done" done
ce2fc6cd8d4db6e5d08cef2ceb3d9054e5f48cf4
415
#/bin/bash item=$1 tag=$2 server=$3 path=$4 arch=$5 echo "docker pull ${server}/${path}${item}${arch}:${tag} " #exit 0 docker pull ${server}/${path}${item}${arch}:${tag} docker rmi gateway.wildfire.cc:5000/${path}${item}${arch}:${tag} docker tag ${server}/${path}${item}${arch}:${tag} gateway.wildfire.cc:5000/${pa...
a56efdb20c0ed6267a38165977d97d004cd85306
880
#!/system/bin/sh export PATH=/system/bin:/system/xbin:$PATH mount -o remount,rw /system ln -s /system/usr/keychars/qwerty.kcm.bin /system/usr/keychars/qtouch-touchscreen.kcm.bin ln -s /system/usr/keychars/qwerty.kcm.bin /system/usr/keychars/cpcap-key.kcm.bin ln -s /system/usr/keylayout/qwerty.kl /system/usr/keylayout/q...
c63208e41a746dd6f516930743b07c890bdb16ed
2,137
shopt -s expand_aliases # GENERAL alias dsize='du -hs' alias mkdir='mkdir -pv' alias vi='vim' alias ls='ls -l --color=auto' alias sl='ls' alias tree='tree -C' alias pcinfo='inxi -Fx' alias calc='bc -l' alias cb="xclip -selection clipboard" alias yt-dl='youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)...
e8a130a6e2ac30bbea0ed2df72511cd7a534bc42
84
jekyll build git add . git commit -m "New post added" git push origin master --force
b6a92bb409658675bf1c38df4cd317713317a1ec
2,102
#!/bin/bash # Mike Young # 2021-07-29 # Recieves signal messages and downloads videos to a folder # Signal messages admin on error # Won't run if running flag exists. #Variable declaration log_fldr=/home/mike/signal_log output=/home/mike/ytdl #Server's signal account signal_phone_no="+1" #User phone number auth_phone_...
a0d98c46daf20d6d824e392bb059883963798ef0
108
#!/bin/sh docker build -t linksgo2011/samples:daily-wechat . docker push linksgo2011/samples:daily-wechat
b84215168af211a21a8470f4c00759997c7639a0
45
git clone https://github.com/eudaq/eudaq.git
83b5a3bc71bd6775cdca19d61ec433861b7a0704
142
#!/usr/bin/env bash set -e # halt script on error echo 'Testing rafa...' bundle exec jekyll build bundle exec htmlproofer ./_site --only-4xx
d927c8006ea13640df7a3ecd1f4ff3aca88b301a
54
COMPOSE_PROJECT_NAME=incentivesystem IMAGE_TAG=latest
4e8a45042bd303061c0b0e17b2c1c6947d1facb9
194
# # ~/Local/etc/bash/profile -> ~/.bash_profile # # source local definitions if [ -n "$BASH_VERSION" ]; then if [ -f "$HOME/.bashrc" ]; then source "$HOME/.bashrc" fi fi # EOF
346beb22ddb801e7e5d6b24b7f924c0c8487f970
29
#!/bin/zsh cd "$PROJECTS/$1"
83e5f61a42bceb6cbf362adc02d89f4875f1f3cd
276
#!/bin/bash set -e psql -v ON_ERROR_STOP=1 --username "postgres" --dbname "postgres" <<-EOSQL CREATE USER $USERREG_DBUSER WITH PASSWORD '$USERREG_DBPASS'; CREATE DATABASE $USERREG_DBNAME; GRANT ALL PRIVILEGES ON DATABASE $USERREG_DBNAME TO $USERREG_DBUSER; EOSQL
70d4a7c18724f0525e371048c02759bf4eb24f0b
97
#!/bin/sh # The env for vnc-viewer export PATH=/public1/soft/vnc/bin:/public4/soft/vnc/bin:$PATH
ecb42dd143622982dd6a38209408e92cf21fe3bb
57
gcc -O1 -x c -Wall -std=c99 -pedantic main.cpp && ./a.out
10fa965da6554c3cc1b07fba2bb8d7bef73341f3
485
#!/bin/bash set -e if (git remote | grep --fixed-strings --line-regexp --quiet 'upstream') then git diff upstream/master --stat $@ git diff --check upstream/master $@ git diff --find-copies-harder --ignore-space-change --inter-hunk-context=10 --color --unified=10 upstream/master $@ else git diff origin/master ...
ee7e8727d6e5fdc554a5ee4dd8624389cb57c335
982
# https://github.com/jamiew/git-friendly # the `push` command which copies the github compare URL to my clipboard is heaven sudo bash < <( curl https://raw.github.com/jamiew/git-friendly/master/install.sh) # https://rvm.io # rvm for the rubiess curl -L https://get.rvm.io | bash -s stable --ruby # https://github.com/i...
bad430633f3926d0bd12c44c07fe8a2f5a195d9f
282
PROJECTS="libraries/libjni-gdal libraries/libjni-ecw libraries/libjni-mrsid libraries/libjni-potrace libraries/libjni-proj4 " for i in $PROJECTS; do project=$(echo $i | awk -F/ '{ print $2; }') svn co https://svn.forge.osor.eu/svn/gvsig-desktop/trunk/$i ../../../$project done
b6f703b614008d667b82179f8919ac3ef791a033
1,747
. $(dirname $0)/../cluster.properties # Use jq to number the different roles #PREFIX=${1:?"No name prefix supplied"} # Hosts by role is an array with the 0,2,4 etc. being keys, and the 1,3,5 etc being values # The keys are in the set {cm,gateway,master,worker} and are sorted hosts_by_role=($(gcloud compute instances...
b72e80ea0e428a741a6cdeff81fbaf1dbe5968ab
169
#!/bin/bash make clean && make package && mv .theos/_/Library/MobileSubstrate/DynamicLibraries/ForceReset.dylib . && ldid -SEntitlements.plist ForceReset.dylib exit 0
8b2d5d5bd0d288123b0cf334123d192ead426fb3
55
DB_PASS = jhonStore DB_USER = ema DB_NAME = emaJhonShop
134e1806b38b77567f5d7c457d99f9f642e9f2c0
69
_curdir=`pwd` sudo cat >> ~/.bashrc <<ENND PATH=$PATH:$_curdir ENND
75db7886e94e74a9f37f1b0860f95eafb22a2e81
81
//MongoDB config MONGO_URI = mongodb://localhost:27017 MONGO_DATABASE_NAME= test
3b075746cdf896efccd1428e1c082462f3b73068
1,251
#!/bin/bash -l # Name of the job #SBATCH --job-name=cSiaSiMD # SBATCH --nodes=2 # SBATCH --ntasks=2 #SBATCH --array=0-3 #SBATCH --cpus-per-task=32 #SBATCH --partition=med2 #SBATCH --time=24:00:00 #SBATCH --output='outputs/cSiaSiMD-%j.output' #SBATCH --mail-user="dgunruh@ucdavis.edu" #SBATCH --mail-type=END...
c71a9a110b1a78da9fe26b07353313e7337b35c3
553
#!/bin/bash # the following 4 cases have same meaning #1 if /usr/bin/[ -z "$1" ] then echo "No command-line arguments" else echo "First command-line argument is $1" fi echo #2 if [ -z "$1" ] then echo "No command-lane arguments" else echo "First command-line argument is $1" fi echo #3 if test -z "$...
cdf79594d28af9380700f562e8ad0c2dda343e93
170
#!/bin/bash java -Xms512M -Xmx2048M -XX:MaxPermSize=256m -XX:+UseParallelGC -XX:ParallelGCThreads=2 -XX:+UseNUMA -jar forge-1.7.10-10.13.4.1448-1.7.10-universal.jar nogui
f1c2d3e6ee50b61f108c237e7ac984c4e47283b2
1,145
#!/bin/zsh # Make sure we’re using the latest Homebrew. brew update # Upgrade any already-installed formulae. brew upgrade # Install more recent versions of some OS X tools. brew install moreutils brew install vim brew install grep brew install openssh brew install screen brew install wget # System Packages brew in...
96641586a76cf26cff55619935a9524cc5168341
3,522
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" function print_help { local current_install_dir=$(source $DIR/files/env.sh && echo $SPINNAKER_WORKSPACE) echo "usage: install.sh [-hu]" echo "" echo "-h show help and exit" echo "-u proceed with install without GI...
97ed5b570ad6e14a1445fa32853d1926f5306438
1,877
#!/bin/bash serverLocalesInstallScriptDirectory=$(dirname "$(readlink -f ${BASH_SOURCE[0]})") source $(realpath ${serverLocalesInstallScriptDirectory}/../helpers/loadScriptingColors.sh) source $(realpath ${serverLocalesInstallScriptDirectory}/../helpers/requiresSudoRights.sh) echo -e "${gray}=======================...
24212afff416f0c437291fbd3400a9357a3a3908
58
if [ "$linux_run" == "yes" ]; then sudo swapoff -a fi
ff7b6bd4a1e03b8179c03840baeb9bb57e6dd734
771
#!/bin/bash DnGroupp=0 while [ $DnGroupp -eq 0 ] do clear tput cup 3 3; echo "Grupo o GID a dar de baja" tput cup 4 3; read GIDD busqueda=$(cut -d: -f1 /etc/group |grep "$GIDD") if [ -z $busqueda ] then busqueda=$(cut -d: -f3 /etc/group | grep -n "$GIDD" | cut -d: -f1) if [ -z $busqueda ] then tput cup...
3fd52aaeeeac8aacfa75548843626243ae20d50e
5,221
#!/bin/bash set -e # Mandatory input [ -z "${KERBEROS_REALM}" ] && echo "KERBEROS_REALM must be defined" && exit 1 # Optional input [ -z "${LDAP_ENUMERATE}" ] && LDAP_ENUMERATE="False" [ -z "${LDAP_USER_MEMBEROF}" ] && LDAP_USER_MEMBEROF="memberOf" [ -z "${LDAP_IGNORE_GROUP_MEMBERS}" ] && LDAP_IGNORE_GROUP_MEMBERS="...
4c4529b2ad6930abe58c16beff4a94c94b1ff69e
257
#!/bin/bash getent group kibana >/dev/null || groupadd -r kibana getent passwd kibana >/dev/null || \ useradd -r -g kibana -G kibana -d /usr/share/kibana -s /usr/sbin/nologin -c "Kibana" kibana chown -Rf kibana:kibana '/usr/share/kibana' #DEBHELPER#
b5063b09dff0e1cd10d1124e125ba90468372d3c
213
# General settings IPC=private RUNTIME=runc HOST_IP=0.0.0.0 HOST_PORT=4343 CONTAINER_PORT=4343 NVIDIA_VISIBLE_DEVICES= NVIDIA_DRIVER_CAPABILITIES= COMPOSE_PROJECT_NAME=emily-iq-test-d3mauh PYTHONPATH=./ # Extra
640915a431fda9a3d94ed7b8afbee22736a635de
770
#! /usr/bin/env bash # BuildCompatible: KitCreator version='7.22.0' url="https://github.com/flightaware/tclcurl-fa/archive/1fd1b4178a083f4821d0c45723605824fbcdb017.tar.gz" sha256='5abad0f369205b8369819f3993a700bb452921bcab7f42056ef29a1adc3eb093' tclpkg='TclCurl' function postinstall() { if [ "${pkg_configure_shared...
287c1849354d3472a17c282d02f2ee986e60c72c
590
#!/bin/bash # script used for running multiple files through Vpsr code # use with care, i.e. fear! for i in `ls -1 data_grids/*1024.txt` do pulsar=${i:11:9}; echo $pulsar; rm -rf J$pulsar/ ./Valign.py -f $i -p J$pulsar -o -r 2 -d -g -n & done wait for i in `ls -1 data_grids/*1024.txt` do pulsar=${i:11:...
dd3e8688dd31801700c2c25213afd4077dd7f8e3
228
#!/bin/bash export COMPRESSION="NONE" export HBASE_HOME=/opt/hbase export TSDB_VERSION="::TSDB_VERSION::" export JAVA_HOME="::JAVA_HOME::" /usr/local/share/opentsdb/tools/create_table.sh touch /opt/opentsdb_tables_created.txt
d965a438bfb15e406b29c0ec5232d2a231335055
748
#!/bin/bash # Job Name #SBATCH -J random_BS # Walltime requested #SBATCH -t 36:00:00 # Provide index values (TASK IDs) #SBATCH --array=151-200 # Use '%A' for array-job ID, '%J' for job ID and '%a' for task ID #SBATCH -e Logs/random_BS_sub-%a.err #SBATCH -o Logs/random_BS_sub-%a.out # Resources requested #SBATCH -c...
4086d9d9e4470f12f1bab0a52b0d6c88fe989621
480
#!/bin/sh set -e . ../../common.sh # Read the 'xlib' download URL from '.config'. DOWNLOAD_URL=`read_property XLIB_SOURCE_URL` # Grab everything after the last '/' character. ARCHIVE_FILE=${DOWNLOAD_URL##*/} # Download 'xlib' source archive in the 'source/overlay' directory. download_source $DOWNLOAD_URL $OVERLAY_...
b3d8b5578a465ef94fa2c030a74053ce86c9556d
216
#!/bin/bash # Remove extension_attributes script rm -f "${MUNKIPATH}preflight.d/extension_attributes" # Remove extension_attributes.plist cache file rm -f "${MUNKIPATH}preflight.d/cache/extension_attributes.plist"
0e794c39bacc7a91ce6ded9fe0e87edfff9065ca
331
cd "${SRC}/${isim}-${surum}" patch -Np1 -i "${SRC}/libmpeg2-0.5.1-gcc4.6.patch" sed '/AC_PATH_XTRA/d' -i configure.ac autoreconf --force --install cd "${SRC}/${isim}-${surum}" ./configure --prefix=/usr --enable-shared --disable-static make OPT_CFLAGS="${CFLAGS}" \ MPEG2DEC_CFLAGS="${CFLAGS}" \ LIBMPEG2...
ee8883060c953fb59545be77d52898c4a364fc61
210
#/bin/sh echo "Testing ioctl -v for a INVALID version" cd /test/bkpfs_test rm -f * cd - cd /mnt/bkpfs echo "Hello World 1" > testE /usr/src/hw2-jranjan/CSE-506/ioctl -v 2 testE cd - cd /test/bkpfs_test ls cd -
dcbd263198080ca1c6bcda3fc87e1067927dfe93
411
# # Command: box util get-sha1-checksum <filename> # # Returns just the sha1 checksum for a file # (omits the filename, unlike shasum and sha1sum) # if (( 0 == "$#" )) ; then stdErr "No filename passed." return 1 fi filename="$1" if [ "${BOXCLI_PLATFORM}" = "macOS" ] ; then sha1="$(shasum "${filename}")" ...
9e6b824f49026e2bfd7d1dc2cc43502192f08406
224
#!/bin/bash tag=$1 if [ -z $tag ]; then echo -e "\nYou must provide a tag" echo -e "\nUsage: bash build_docker.sh TAG\n" exit 1 fi docker build -t quay.io/humancellatlas/secondary-analysis-dropletutils:$tag .
f5f4342400ade7c6a956c000373fde12f9319dd9
452
#!/bin/sh # Finds PHP binary PHPBIN=`whereis php-cgi | cut -d" " -f2` if [ "$PHPBIN" == "" ]; then PHPBIN=`whereis php | cut -d" " -f2` if [ "$PHPBIN" == "" ]; then echo "Error. PHP binary not found" exit 1 fi fi # saves the path to this script's directory dir=` dirname $0 ` # absolutizes the path if necessa...
f1b5f8e00585b257985d68bca6f0c6f611c7d12d
78
#!/bin/bash # read the name of the user and print hello echo "Matt LaFayette"
de2bb284a604e40207ec55ca1818a03049e3f407
642
#!/bin/bash # Check if a number is prime # function to return whether prime or not in given range check_prime() { current_number=$1 flag=0 i=2 while test $i -le `expr $current_number / 2` do if test `expr $current_number % $i` -eq 0 then flag=1 fi i=`expr...
8a135ee29e764268aaea5ecf04ff9fb9d477e154
382
#!/bin/sh DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Even though we don't need to be in the right directory in theory, # in practice, being in the wrong directly could lead to permissions # issues cd "$DIR/../.." su -c 'pm2 update' web su -c 'NODE_ENV=production DATABASE=production pm2 start -i 0 /home...
608bb1ea454bb09f59c0a136308c17ae9a998e33
1,136
#!/bin/bash mkdir -p .logs touch .logs/${_new_name}.log exec > >(tee -a .logs/${_new_name}.log) 2>&1 _base=archlinux-base _new_name=$1 source ./utils.sh virt-clone \ --original ${_base} \ --name "${_new_name}" \ -f "/var/lib/libvirt/images/${_new_name}.qcow2" || exit 1 sudo virt-sysprep -d "${_new_name...
914d3431dc0244d2b5ec4486309be8724f98ba98
6,810
#!/bin/bash ################################################### # Test # # Globals: # None # # Arguments: # $1 system-name (eg. "snes") # $2 rom filename (eg. "SuperMetroidRandomized.smc") # $3 image (eg. "image.png") # # Returns: # Nothing # function addGameToXml() { xmlstarlet edit --inplace --upda...
1877af0f2ae2ab1934b6611f889a0a4fa7c09081
3,650
#!/bin/sh # /usr/openwin/bin/ff.core exploit - horizon # tested on 2.5.1, and 2.6 # thanks to joej, adm, and joej :> # you can use ff.core to do a rename() as root # files must be on same filesystem and the destination must be in a # directory that is a subset of the source directory # this exploit can be ...