blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
9437fb20ed174e43e09f2f068b5b5806ef6c59e4
100
MONGODB_HOST=mongodb MONGODB_PORT=27017 MONGODB_USER=user MONGODB_PASSWORD=secret MONGODB_NAME=todo
ea308dbe4872f1e2e79941de55df4a17c0c56fff
348
#!/bin/bash workdir=/media/loek/HD/Cyborg # buiild it docker build -t datascience_container . # run it docker run -ti --rm --user root -e NB_UID=$(id -u $USER) -e NB_GID=$(id -g $USER) -e GRANT_SUDO=yes -e SPARK_OPTS="--driver-memory 2G" -v $workdir:/home/jovyan/work -p 20000:8888 -p 3000:3000 datascience_container ...
55b7ce0bde9c84ffd9cd3fa17c504c617597aa4a
46
#!/bin/bash cd database docker-compose up -d
03eb672bf12b6223cc1f279f358b42bcd38a1170
1,070
#!/bin/sh export PKG_CONFIG_SYSROOT_DIR=/mnt/rasp-pi-rootfs export PKG_CONFIG_LIBDIR=/mnt/rasp-pi-rootfs/usr/lib/pkgconfig:/mnt/rasp-pi-rootfs/usr/share/pkgconfig:/mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/pkgconfig if [ "$#" -gt 0 ]; then /home/joce/dev/qt5/qtbase/configure -optimized-qmake -device linux-rasp-p...
0cf79a846c7c342cea3af8d1cc5393499f96f5dd
450
cd "$(dirname "$0")" || exit #. tsocks -on export ftp_proxy=http://my-proxy:3128 export http_proxy=$ftp_proxy export https_proxy=$ftp_proxy if ! oc whoami | egrep '^a423831.enel@gmail.com$' ; then oc login https://api.starter-us-west-1.openshift.com:443 --username=a423831.enel@gmail.com --password=EnellE00 || exit fi ...
343110232e4d6556f0c13cbb56de9446a8caa686
625
#! /usr/bin/bash set -ex DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" pkgs=(ffmpeg fontconfig harfbuzz zlib) export CONAN_USER_HOME=$DIR/conan_cache export CONAN_USERNAME=_ export CONAN_CHANNEL=_ rm -rf $CONAN_USER_HOME conan config set general.revisions_enabled=1 conan config set genera...
8e7eb89bd85923ffee1863ee73782f8684f8b4f3
153
while true; do cat ~/bg.ts || exit 1; done |\ ffmpeg -re -i - \ -map 0:v \ -c:v rawvideo \ -f matroska \ tcp://localhost:16000
0c7aca93518436eb32ace72a3b01eaeb5066e3b2
204
#!/usr/bin/env bash ROOT_PATH=$(dirname "$(readlink -e "$BASH_SOURCE")") TEST_DIR="/mnt/public/home/xukai/factory2.0/OpenEXRResizer/m90267" ${ROOT_PATH}/OpenEXRResizer/runResizer -r 2 -f $TEST_DIR -t 12
6334a33fa96e8bd7c03da102e8a0a5547f71ffd4
84
#!/bin/bash . /pathwar/scripts/functions.sh # FIXME: hide passphrase in the level
a45913c2d44e78ef1dc22e9a7268205184d4dfce
622
#!/bin/bash prefix="$1" if [[ -z "$prefix" ]]; then echo "Usage: $0 <prefix>" exit 1 fi json=$(aws --region eu-west-1 ssm get-parameters-by-path --recursive --path "$prefix" --with-decryption --output json) jq -r --compact-output ".Parameters[]" <<< $json next_token=$(jq --raw-output ".NextToken" <<< $json) ...
e54de16d5de0d0c1fb9229b8f719fce57e48b08a
261
java -cp ./lib/selenium-java-client-driver.jar:./lib/selenium-server.jar:./lib/groovy-all-1.7.0.jar:./lib/json_simple-r1.jar:./lib/stringtree-json-2.0.10.jar:./lib/junit-4.4.jar:./dist/tellurium-0.7.0.jar:./out/test org.telluriumsource.dsl.DslScriptExecutor $1
df84b3aecb94b1cfc67ea2812fe3fd4497d0f0e0
838
# # Executes commands at the start of an interactive session. # # Authors: # Sorin Ionescu <sorin.ionescu@gmail.com> # # Source Prezto. if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" fi # Customize to your needs... alias config='git --git-dir=$HOME/.config.gi...
83d5db0e1b054f4fb8ebede6702d5a15bc64a750
208
# -n or --non-interactive # Without -n each line of text file will be executed and result will be shown echo "describe 'test1'" | ./hbase shell -n echo "describe 'test'" | ./hbase shell -n > /dev/null 2>&1
2796855eb05a49f1701fb78c0a474c471a97b3c2
151
#!/usr/bin/env bash echo "192.148.95.5 ena-kazr" >> /etc/hosts echo "192.148.95.7 ena-sacr" >> /etc/hosts echo "198.124.100.5 amf3-kazr" >> /etc/hosts
40265eb3e7de7b6a25522f1109328c3012a5477a
4,296
#!/bin/sh ODNODE=nod.apple.com DF_USERS=bricker DF_GROUPS=apple_sw WKIDS="OWNER@ GROUP@ EVERYONE@ INTERACTIVE@ NETWORK@ DIALUP@ BATCH@ ANONYMOUS@ AUTHENTICATED@ SERVICE@" NFS4_CURRENT_DOMAIN=$(sysctl -n vfs.generic.nfs.client.default_nfs4domain) function set_nfs4_domain { typeset domain=$(sysctl -n vfs.generic.nf...
ee588205493f9022d1788b19b91e6bc11ba4fb65
1,197
hg19_index=/home/menghw/menghw_HD/reference/bowtie2_hg19/hg19_only_chromosome # for target in CTCF H3K36me3 H3K4me3 H3K9me3 do for index in 1 2 do fq_file=./raw.fastq/293-ChIP-Seq_${target}_rep${index}_R1.fastq.gz sam_file=./20170904_bam/293-ChIP-Seq_${target}_rep${index}_R1_bt2_hg19.sam log=./20170904_bam/...
fd4df1466107459b51c60438cfc3c04d6eddcf47
278
#!/bin/bash if [ $# -lt 1 ] then echo "usage:: $0 <log file>" exit 1 fi INFILE=$1 LIM=`wc -l < $INFILE` var='1' while [ "$var" -le "$LIM" ] do LINE=`sed -e $var!d $INFILE` NJOB=`echo $LINE` dir=${NJOB%%res*out} echo $dir var=$(($var+1)) done
4f9889a25ff0d470df5f036afcc9243245a3e47b
196
#!/bin/bash sum=0 while read Num do sum=`expr $sum + $Num` done < File.txt echo $sum res=$(printf "%.2f" `echo "scale=2; $sum / 1024" | bc`) echo "scale=2; $sum / 1024" | bc echo $res
7b09ffe421cfa7c18c25779c1224c43aac29f91b
201
#!/bin/bash #SBATCH --output=logs/slurmStartWorkerGPU.log #SBATCH --mem=10000 #SBATCH --gres=gpu:1 srun --gres=gpu:1 --time=01:00:00 --mem=10000 sh ~/pythonProjects/tf_rnn/HyperoptWorkerWrapper.sh 127
b5d49f0edf86dad841c9d1b8c52859941823b315
2,530
#!/bin/bash -e function installDependencies() { if [[ "$(existCommand 'node')" = 'false' || "$(existCommand 'npm')" = 'false' || ! -d "${ghostNodeJSInstallFolder}" ]] then "${appPath}/../../node-js/recipes/install.bash" "${ghostNodeJSVersion}" "${ghostNodeJSInstallFolder}" fi } function install() ...
be534a1d3b73b88c4fb10c98173b74a5687408a8
98
git clone https://github.com/AnonHackerr/toolss.git cd toolss chmod +x Toolss.py python Toolss.py
b0b2f262c283a523242eae3957aee1878565aba1
173
# {{{ alias psd='open -a Adobe\ Photoshop\ CC\ 2018' alias chrome='open -a Google\ Chrome' #alias mou='open -a Mou' #alias cloud9='node ~/Sandbox/cloud9/bin/cloud9.js' # }}}
f5fe28e4923b778553352a19b52bc533e06c0a2d
1,229
_docker_env_complete() { COMPREPLY=() local current="${COMP_WORDS[COMP_CWORD]}" # First word completion: can be a mode or an env if [ $COMP_CWORD -eq 1 ]; then COMPREPLY=( $(compgen -W "$(docker-env --list) --list --add --update --rm --help" -- ${current}) ) return 0 fi # Completion after each keywo...
a9efe4835ba8f5f7007eb9832b451094c111a902
1,455
#!/bin/bash # from the main grammar directory unset DISPLAY; unset LUI; lkbdir=${LOGONROOT}/lingo/lkb; grammardir=${LOGONROOT}/dfki/jacy; ### make input file cut -d@ -f7 $grammardir/tsdb/skeletons/mrs/item |tail -50 > $grammardir/utils/mrs.50.txt # # CHEAP # # back up quick check file mv $grammardir/pet/qc.tdl $gra...
161ed58f0879b59d4c1180e0652b89321ab64830
853
#!/bin/bash if [ ! -f WORKSPACE ]; then echo "No WORKSPACE file present, this should be called in the root directory of a bazel project" exit 1 fi pushd $PWD cd $(dirname $0)/../development_image make deploy docker pull 192.168.0.13:5000/tf-gpu-env:latest popd if [ -f .bazel_docker_id ]; then if [ ! -z $( dock...
2944d60e47bc8f57391ff97dcd56da47d38dbc2e
63
#!/bin/sh exec 2>&1 exec chpst -u _netdata:_netdata netdata -D
c5bb80d4287163f319b4cf492c643ffea0fc4310
25
python model_best.py "$@"
0396aca43a840c000187337da46c106a320eef23
4,474
#!/usr/bin/env bash # Requires: # app-arch/dpkg # sys-apps/fakeroot set -e if [ -z "$1" ]; then echo "Usage: $0 <version> [<package version>]" echo "If the package release isn't set, then it is set at 1 by default" exit 1 fi VER=$1 PKG_VER=$2 test "Z$PKG_VER" == "Z" && PKG_VER=1 SILVERPEAS_PKG=debian/sil...
ea24aacc902f69f1dfbb71398eae7ad59c1139da
110
#!/bin/bash export PATH=/usr/bin:/bin:/sbin:/usr/sbin dpkg -l 1>/tmp/installed_dpkg exitcode=$? exit $exitcode
9a321a32fc8fce2fcfb95e8bba4484742fd703c0
263
#!/bin/bash solr_num_shards=`echo $SOLR_NODES | wc -w` solr_node_head=`echo $SOLR_NODES | tr ' ' '\n' | head -n 1` solr_host=${solr_node_head%:*} solr_col=${1:-htrc-full-ef} ssh $solr_host \ \"\$SOLR7_TOP_LEVEL_HOME/bin/solr\" delete \ -c $solr_col
1618bde6e02ef13bffb61776bcec53dd41766faf
785
#!/bin/bash # Software Engineering Principles Project Script vagrant up vagrant ssh sudo apt-get update sudo apt-get install lamp-server^ cd /var/www/html/ sudo adduser vagrant www-data sudo chown -R www-data:www-data /var/www sudo chmod -R g+rw /var/www sudo apt-get update curl -sS https://getcomposer.org/installer |...
d431077b101b9856eb81e91921687e011c9a2529
102
cd /media/cuhksz-aci-03/数据/GitRepository/Timehisto2Depth git add . git commit -m update git push
4b8d020510691084b9595f20077f8de0c09488be
4,874
#!/usr/bin/env bash ct() { if [ -z "$1" ]; then local contexts=$(k config get-contexts -o=name | sort -n) echo "$contexts" return fi export KUBECTL_CONTEXT=$1 } export -f ct _ct_completions() { local contexts=$(k config get-contexts -o=name | sort -n) COMPREPLY=($(compgen -W "${contexts}" "${COM...
af6d94d9845246d5372256b239ffd45058d2752a
349
#!/bin/bash if [[ "$1" == "off" ]]; then sed -i 's/autoindex on/autoindex off/g' /etc/nginx/sites-available/your_domain echo "autoindex off" service nginx restart elif [[ "$1" == "on" ]]; then sed -i 's/autoindex off/autoindex on/g' /etc/nginx/sites-available/your_domain echo "autoindex on" service nginx restart else e...
f4b9108ead2d64d91ec7e29e9dda38d7a5e77dc1
630
#!/bin/bash USA_PROXY=false BAIXA_INSTALADORES=true APP_AMBIENTE=homologacao APP_HOST=homologacao-sislegis.pensandoodireito.mj.gov.br APP_IP=172.17.6.80 GITHUB_USER=paulojeronimo GITHUB_NAME='Paulo Jerônimo' GITHUB_EMAIL=paulojeronimo@gmail.com GITHUB_SISLEGIS_DOTFILES=http://github.com/pensandoodireito/sislegis-do...
25c4bd84ddea2f10d88981ace84c55ef50487158
39
VUE_APP_URL = http://52.91.153.234:3004
b5eaa5778200dfbdc11be8f927e5812673aa2d88
6,237
#!/bin/sh" # test_list_igw_aws.sh: Unit tests of list_igw_aws.sh script." echo "--- all gateways in default region" sh list_igw_aws.sh || echo "*** failed" echo "--- all gateways in default region, one per line" sh list_igw_aws.sh -1 || echo "*** failed" echo "--- all gateways in default region, with extra info" sh ...
04766bfd86bca680f30eac05a14f52e02aa31cf2
518
ansible all -m yum_repository -a 'name=EX294_BASE description="EX294 base software" baseurl=http://content.example.com/rhel8.0/x86_64/dvd/BaseOs gpgcheck=yes gpgkey=http://server.network.example.com/RHEL/RPM-GPG-KEY-redhat-release enabled=yes state=absent' ansible all -m yum_repository -a 'name=EX294_STREM description=...
37bca060565af730a2a977716d1d7c722160a16e
267
#!/bin/bash # Merge raw reads with PEAR. # PEAR v0.9.9 [May 13, 2016] mkdir ../clado-data-pear for name in $(cat ./names-tube.txt) do pear -m 500 -f ../clado-data/*${name}*R1.fastq -r ../clado-data/*${name}*R2.fastq -o ../clado-data-pear/pear-${name} -j 10 done
12706decc2155f6b166d1fd26bd0941b5f594f68
2,008
#!/bin/bash -x # Copyright (C) Intel, Inc if [ ! -d "$NGINX_INSTALL_DIR" ]; then echo "NGINX install directory not been set or does not exist. Run:- export NGINX_INSTALL_DIR=<location you want to install the built nginx server to>\n" exit 0 fi if [ ! -d "$OPENSSL_LIB" ]; then echo "OPENSSL_LIB has not been ...
7a8f040fcecb0861d3aec5c1540c9c1ee51b2300
378
#!/bin/bash source config.sh echo " ############################## # NFS ############################## " apt-get -y install nfs-kernel-server mkdir /nfsroot/live -p cp $PUB_NFS_OS_FILE /nfsroot/live cat <<EOF >/etc/exports /nfsroot $PUB_SUBNET/$PUB_NFS_BITMASK(fsid=0,rw,no_root_squash,async,insecure,no_subtree_ch...
bf9cbb8a026b72fab590909baa5a8457832c89e1
92
FOURSQUARE_CLIENT_ID=foursquare_client_id FOURSQUARE_CLIENT_SECRET=foursquare_client_secret
247955baaa0f48e8a8bf0b54fc46cf6dac580ede
61
#!/bin/bash docker build -t geburtstagskalenderbackend:2.0 .
38fc786de9976dde7de6afea23336d42a3290239
868
#!/bin/sh #:*********************************************** #:Program: # check if service exists, 1~3 input parameters. # if service exists, will print 1, others will print 0 # case ($2= aaa, $3 = aa) is not handled. # $1 is service name #: #:Author: keanli #: #:History: 2017-06-20 #: #:Version: 1.0 #:*****************...
d8104404d0032719f61f8f21b7cb561861c6dcc0
2,688
#!/bin/bash cd $(dirname $0) #添加DNS if [ -s /etc/resolv.conf ] ; then echo "nameserver 114.114.114.114" > /etc/resolv.conf fi #off swap swapoff -a sed -i '/ swap / s/^/#/' /etc/fstab #install curl dpkg -i libcurl3-gnutls_7.47.0-1ubuntu2.8_arm64.deb dpkg -i curl_7.47.0-1ubuntu2.8_arm64.deb #install sshdpass dpkg -i s...
9630ac07f8f5d6b0c55b07b40f19be783edaf139
106
DB_USER = dbuser DB_HOST = localhost DB_PORT = 5432 DB_PASSWORD = nineblocks2020best DB_NAME = nineblocks
543d30190611973b63fa86a10f1eb4b7184094eb
234
./hdf_to_tif_mcd43.sh /muddy/data04/arthur.elmes/AS1737/hdf/h11v08/ /muddy/data04/arthur.elmes/AS1737/tif/h11v08/ ./hdf_to_tif_mcd43.sh /muddy/data04/arthur.elmes/MCD43_OPS/hdf/h11v08/ /muddy/data04/arthur.elmes/MCD43_OPS/tif/h11v08/
7429db42cbfe3000e1f4d1cfc83f9a5ed66715e5
601
#!/bin/bash # general config . /etc/rc.conf . /etc/rc.d/functions case "$1" in start) stat_busy "Starting mailman Daemon" /home/mailman/bin/mailmanctl start &>/dev/null if [ $? -gt 0 ]; then stat_fail else add_daemon mailman stat_done fi ;; stop) stat_busy "Stopping...
9ccda52aa08e4667237cade095370c2f2c3b4ba6
1,039
cd /netshare1/home1/szzhongxin/proj1/hansun/CNV/cnv-seq perl /netshare1/home1/people/hansun/MySoft/CNV_Seq/cnv-seq/cnv-seq.pl --test ICC_10A.hits --ref ICC_10B.hits --genome human perl /netshare1/home1/people/hansun/MySoft/CNV_Seq/cnv-seq/cnv-seq.pl --test ICC_4A.hits --ref ICC_4B.hits --genome human perl /netshare1/...
4f45aae9bca4d06de1685456f8108522329446bb
259
#!/bin/sh # Copyright (C) 2017 Alexander Hammond SERVER_FILE="tmp/pids/server.pid" if [ -f $SERVER_FILE ]; then SERVER_PID=`cat tmp/pids/server.pid` kill $SERVER_PID & fi # Make sure is killed if [ -f $SERVER_FILE ]; then sleep 2 kill -4 $SERVER_PID fi
a0180f3c941ad845ea916cf2e4ac00d17b9ec954
446
#!/bin/bash | # # This script takes a branch and adds a bugzilla line to every backported # patch. # # $1 - hash of the first commit in the series. bznum=`git describe --contains --all HEAD | awk -F "v" ' { print $1 }'` BZNUM=$bznum first=$1 git...
e3596f43a34917071b86201d4279f95122df45d4
1,232
#!/bin/bash ## User variables saved_filename="saved.jsonl" # Where to put the items backup_old=true # Are we to backup the old items before merging? ## "Internal" variables # There should be no particular need to modify these new_filename="$(date +"%Y-%m-%d").jsonl" # Where to put the new items max_save="${MAX_SAVED:-...
aa09ebe4950ae0ed5d413ad6cfdfb42531a365f7
628
#!/bin/bash # There should be a DHALSIM configuration file with .yaml extension in the same folder. Also a .inp and .cpa files # with the same name in this folder topology_name=$1 week_index=$2 folder_name=$topology_name"_topology" # Create log folder if [ ! -d "logs" ]; then\ mkdir "logs";\ fi # Output folder to...
cf0572b109adf49ba8413ddd415be28e5e25f72a
1,333
# Maintainer: Manuel Mendez <mmendez534@gmail.com> pkgname=source-code-pro-fonts-powerline pkgver=1.017 pkgrel=3 pkgdesc="A set of monospaced fonts (TTF & OTF) designed for coding environments" arch=('any') license=('custom:OFL') url='http://sourceforge.net/projects/sourcecodepro.adobe/' depends=('fontconfig' 'power...
99ff73fcc0ebc1f39b5d0fde6a320ab3fa564838
522
if !(pgrep -x "chrome" > /dev/null) then ./start-chrome.sh & sleep 2 fi xdotool search --onlyvisible --name 'Chrome' windowactivate --sync key --clearmodifiers ctrl+t xdotool type 'meet.google.com' xdotool key Return sleep 3 xdotool keydown Shift xdotool key Tab keyup Shift xdotool key Return sleep 6 xdotool key ...
b8c95684f2e888a2949726332a07b0d46e537473
269
#!/bin/bash cd "$(dirname "$0")/.." site=blackarch.real dir=pub/blackarch real_local=real-repo real_local_bak=real-repo.bak sitedir=/var/www/blackarchlinux.org/pub/blackarch rsync -avz --delete-after \ "${site:-safety}:${sitedir:-safety}/" "${real_local:-safety}"
b73dfcca47a716ce4eea4d3713f056a0fd0cea60
494
#!/bin/sh # Script to archive a supplied branch name # Parameters # # Branch name # # Note : Credit to Aaron West for http://www.aaronwest.net/blog/index.cfm/2011/6/7/Git-Workflows-Archiving-Old-Branches # BRANCH=$1 echo "Archiving branch $BRANCH" git tag archive/$BRANCH $BRANCH echo "Branch tagged as archive/$B...
186cc99ea53585c7aa278c01244d99fe76be32ce
265
#!/usr/bin/env bash export SESSIONKEY=password export MESSAGESSVCADDR=localhost:4000 export SUMMARYSVCADDR=localhost:80 export REDISADDR=192.168.99.100:6379 export DBADDR=192.168.99.100:27017 export TLSKEY=./../tls/privkey.pem export TLSCERT=./../tls/fullchain.pem
b5a43eeae1bf066b78385173d9b1ccce3e001672
785
# Shell script to contain environment settings for various systems # Usage: 'source environment.sh <system>' SYSTEM=$1 case $SYSTEM in idun) module load intel export CC=mpiicc export ARCH=intel export FFMPEG=${HOME}/tools/bin/ffmpeg export FFMPEG_FLAGS="-y -r 25 -b:v 16384k" ;; epic) module ...
d417d7e86ab1dae89c9d1952887f27b44ed0118c
260
#!/bin/sh DEFAULT_AUDITOR_CONFIG_FILE=".env" # if auditor config file is not provided explicitly fallback to default one if [ -z "$AUDITOR_CONFIG_FILE" ]; then AUDITOR_CONFIG_FILE=$DEFAULT_AUDITOR_CONFIG_FILE fi auditor -configFile "$AUDITOR_CONFIG_FILE"
8911f021c5ddffc5cbe5a0d9703219a8080ea038
397
java -classpath lib/scala-swing-2.11.0-M7.jar:lib/akka-actor_2.11-2.3.9.jar:lib/config-1.2.1.jar:lib/akka-remote_2.11-2.3.9.jar:lib/netty-3.8.0.Final.jar:lib/protobuf-java-2.5.0.jar:lib/uncommons-maths-1.2.2a.jar:lib/scala-parser-combinators_2.11-1.0.3.jar:lib/scala-async_2.11-0.9.2.jar:lib/scala-library-2.11.6.jar:lib...
5b3a5ba46f0d0b608c9538d3c5cd09897f5a8cb7
540
#!/bin/bash #perform a single training and produce some basic evaluation plots in the same directory export CUDA_VISIBLE_DEVICES=$2 channel=$1 metcovstd=$3 metcovmean=$4 metcorrstd=$5 dir="trainings/neutrinos_152_10x500_EarlyStopping10_dPTtau_relu_Fullmass_lossM2_0p1dz" dir="trainings/my_training" # full dataset at ...
202d63bbe34089898193e3189c27041bdc1cc332
167
#!/bin/sh #http://www.spigotmc.org/resources/cityworld.2250/ curl -L http://www.spigotmc.org/resources/cityworld.2250/download?version=8031 > plugins/CityWorldGen.jar
2aa9f1b300561903a2b16c933bee899d1b3c55df
193
#! /usr/bin/env bash STACK_IMAGE=${1:-8.0.2} docker run \ -v `pwd`/../lovelace:/home/gusdev/lovelace \ images.reesd.com/reesd/stack:$STACK_IMAGE \ cabal install lovelace/lovelace.cabal
4a0551671d355a042b8b60fba97a340eb2b36e93
327
#!/bin/bash function printit(){ echo -n "Your choice is " } echo "This progran will print your selection!" case ${1} in "one") printit;echo ${1} | tr 'a-z' 'A-Z' ;; "two") printit;echo ${1} |tr 'a-z' 'A-Z' ;; "three") printit;echo ${1} |tr 'a-z' 'A-Z' ;; *) echo "Usage ${0} {one|two|three}" ;...
f92a5d76ddf0e67d578f44f69f16a81dca416c9d
174
ip a vi /etc/network/interfaces ls sudo vi /etc/network/interfaces ip a ~~service status restart sudo service status restart ifup enp0s8 sudo su root ip a init 6 ip a init 0
2176580416ba3146749bb6486c63527ad7525e9c
96
export PATH="/usr/local/sbin:$PATH" export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
6ca7fe1c37919ffe28cc0c4c5870c4fd28a40128
1,332
alias mv='mv -iv' alias cp='cp -iv' alias rm='rm -v' alias chown='chown -v' alias chmod='chmod -v' alias mkdir='mkdir -p' alias la='ls -a' alias ll='ls -l' alias lal='ls -al' alias sudo='sudo ' alias fd='fd --ignore-file=$XDG_CONFIG_HOME/fdignore' alias gpg='LANG=C gpg' (( $+commands[nvim] )) && alias vim='nvim' if ((...
57c609fd6af826709ea6ffc9d5ed610fc852994b
233
#!/usr/bin/env bash echo "Enter IP address" read IP echo "Enter PORT (only 80, 8080)" read PORT echo "WAIT.................................." curl -d 'username=root&password=dragon&Login=Login' -X POST "http://${IP}:${PORT}/admin/"
69ec662981f22435bab0abe4091b3058c7e241a2
2,029
INITIAL_POSITION=0 NO_PLAY=0 LADDER=1 SNAKE=2 WINNING_POSITION=100 player1Position=$INITIAL_POSITION player2Position=$INITIAL_POSITION declare -a positionTrack1 declare -a positionTrack2 count1=0 count2=0 while [[ $player1Position -ne $WINNING_POSITION && $player2Position -ne $WINNING_POSITION ]] do rollTheDie=$((RA...
8c56e13757af8969fda8621784b66fa3de209dda
220
#!/bin/bash Error() { echo "not ok" exit 1; } trap "Error" SIGUSR1 foo() { if [ $# -lt 1 ] ; then kill -SIGUSR1 $$ fi # much more code echo "foo() done" } foo "$@" # much more code echo "ok"
7eda4c1d990364497cfcb5a4cf5bb6bb842fd25b
2,437
#!/bin/dash # @throw Error: not a shrug repo if [ ! -d .shrug ] then echo "$0: error: no .shrug directory containing shrug repository exists" 1>&2 exit 1 fi force=0 cache=0 if echo "$@" | grep -Eq '\s?--force\s?' then force=1 fi if echo "$@" | grep -Eq '\s?--cached\s?' then cache=1 fi filesToRemove=$(ec...
c422efa93fd2c082dc6f7e2f511b41d8e68a526e
830
#!/usr/bin/env bash set -e script=$(realpath $0) script_dir=$(dirname "${script}") echo "mkdir -p \${HOME}/secrets" >> ${BASH_ENV} echo "mkdir -p \${HOME}/data" >> ${BASH_ENV} echo "export PATH=${script_dir}:\$PATH" >> ${BASH_ENV} echo "export GCLOUD_CREDENTIALS_FILE=\${HOME}/secrets/gcloud_credentials.json" >> ${B...
0334b504b1ca197ab0dd067bbe4020d08cec1356
2,173
#!/bin/bash SCRIPT_PATH="$(dirname $0)" ABSOLUTE_PATH="$(readlink -m ${SCRIPT_PATH})" if test -f .env ; then set -o allexport; source .env; set +o allexport; fi PROJECT_DIR_NAME="$(basename ${ABSOLUTE_PATH})" ACTION="${1:-build}" OVPN_DATA="$ABSOLUTE_PATH/data" OVPN_PROTO="${OVPN_PROTO:-udp}" OVPN_SERVE...
77a04d7b4c0b2b10bbd6241c2d3944940de92883
757
#!/bin/sh ### BEGIN INIT INFO # Provides: pcv # Required-Start: $local_fs # Required-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # X-Interactive: false # Short-Description: PCV Daemon # Description: Start/Restart/Stop the Personal Cloud Vault ### END INIT INFO DESC...
d5f6d5de67e89ad6f03aee070ba1494eb21bba1c
82
npm run build cd build cp index.html 200.html surge . surge-photo-app.surge.sh
405f0ded89124e66f345b0a30aa73fb2b9f82659
32
#!/bin/bash python exploit13.py
c01673d153d077b3ee13196666777c2305e4326f
310
#!/usr/bin/env bash set -e ( type go ) 1>/dev/null main() ( set -e shopt -s nullglob globstar local gmpath path for gmpath in **/go.mod; do path=${gmpath%"go.mod"} cd "${path}" testCurrent "${@}" done ) testCurrent() { go test ./... -race -count 1 -bench '^BenchmarkTest' "${@}" } main "${@}"
ab5fdef9a2877ab8bf228b2962d918233a29944c
46
#! /usr/bin/env bash ## Aliases alias g=git
c28e4f852f45a0f0400b046b11277f234b6b3453
106
{ "${PREFIX}/bin/jupyter-nbextension" enable --sys-prefix --py nbtutor } >>"$PREFIX/.messages.txt" 2>&1
96a91b25510248b11f2d0a03ae4eaaaf6c0bd954
1,183
#!/bin/bash # Change to current script dir cd "$(dirname "$0")" PROJECT_PATH="$1" INPUT_PATH="$2" OUTPUT_PATH="$3" FFMPEG_PATH="$4" # Set variables according to parameter source "$PROJECT_PATH/EncoderConfiguration.txt" case $video_codec in "h264") ENCODER_SCRIPT="./H264Encoder.sh";; "h265") ENCODER_SCRIPT="...
7233fbadda0cd8671f0b3128119beb71aac2d741
1,086
#!/bin/bash #SBATCH -n 1 #SBATCH --partition=pfen1 #SBATCH --job-name=genNullSeq #SBATCH --mem=10G #SBATCH --error=logs/genNullSeq_%A_%a_out.txt #SBATCH --output=logs/genNullSeq_%A_%a_out.txt # generate 500 bp background repository of mm10 sequences BGDIR="/home/csriniv1/resources/biasaway/mm10/500bp" GENOME="/home/cs...
cc185ecc0fbc69d04f83e35d845fc00f4880586a
1,859
#!/usr/bin/env bash # # merge.sh - merges git master to production which triggers AWS CodePipeline # # Copyright 2020 DXC Technology # # 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 # # ht...
9bfff82ecb5d285f9c7b8ebfcaf23bdc11ebbbab
1,149
#!/bin/bash #Prevent core dump ulimit -c 0 #source /afs/cern.ch/lhcb/software/releases/LBSCRIPTS/prod/InstallArea/scripts/LbLogin.sh #source `which SetupProject.sh` Urania v5r0 #Options export nickname="SSbarAccFloatingNoFTcalib" export inputfile="root://eoslhcb.cern.ch//eos/lhcb/wg/b2oc/TD_DPi_3fb/sWeightedData/sWe...
a5abd22e4df5841e910664e5cf4ce3c64d23acf9
1,793
#!/bin/sh if [[ ! -f "WAVECAR" ]];then touch cache else mv WAVECAR cache fi if [[ ! -f "OUTCAR" ]];then touch OUTCARcache else mv OUTCAR OUTCARcache fi for enc in 350 do cat > INCAR <<! SYSTEM = encutOpt ENCUT = $enc ISTART = 0 ICHRGE =2 ISMEAR = -5 PREC = Accurate ! #PREC = Medium #** low medium high normal ac...
df3dc0c52d43ac8fecf97caddfe78549447bfb2e
1,390
#!/bin/bash #*********************************************************** # getCOF.sh - thesubtlety - Nov 20, 2012 # # This script polls yahoo finance every # so often (3 hours) and upon recieving a suitable stock # price, emails me. Very hacky and no robustness.. # # TO DO # >add functionality to search for stock name...
0d81ad6cbaa895b51e82a6978f3109c1831a481a
92
#!/bin/bash sync;sync;insmod /mnt/share/uloader.o uboot=/mnt/share/u-boot-hd.ram.bin init 6
8f8bc3753b3792b6a22d34909a8cd0e2eb654c3b
176
#!/bin/bash MODULE_PATH="bin:lib" LIB_PATH="bin/*:lib/*" runtime/bin/java \ -cp ${LIB_PATH} \ --module-path ${MODULE_PATH} \ --add-modules ALL-MODULE-PATH -m cn.navclub.xtm.app
3599c399a738fbaae29d21e45d0efd89855ab706
716
# Dataset configuration # --------------------- DATASET=sample NETWORK="datasets/sample/network.dot" # Algorithm configuration # ----------------------- # Number of nodes in each layer (in fractions) LAYERS="0.005,0.05,0.10,0.20,0.30,0.50,0.85" # Number of times the layout algorithm is run # Optional (but it is hi...
7d36a87d90badcaade46552b1d0b401db0f2aee5
1,332
#!/bin/bash IP_HONEYPOTS=(server ip addresses here with space between each ip) HONEYPOT_LOC=(server location names here in same order as ip addresses) PORT=2222 # this script will print all the relevant server information # with the mhn honeypot framework project for i in "${!IP_HONEYPOTS[@]}"; do echo "-----------...
39d643e5b914e7a65842208574f91495f7caaae7
5,633
# If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH export PATH=~/.local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. Optionally, if you set this to "random" # it'll load a random theme each time tha...
5e38244b0debe46401dcd526cb57458437b0998e
317
#!/bin/bash echo "Input 1 for image and anything else for message" read var1 python3.8 image.py $var1 echo "Type Yes to compress and anything else to encrypt" read var2 if [ $var2 == "Yes" ] then # python3.8 image.py g++-11 huffman.cpp ./a.out else # python3.8 image.py python mhkc.py var1 fi
681af85b3bfe30107cf4cfe9ee6c0e0b044f1544
118
!/bin//bash echo "Assembling with Nasm" nasm -f elf64 -o $1.o $1.asm echo "Linking ... " gcc -o $1 $1.o echo "Done !"
2fc73b5da3a6a91222bc94835175b6f1867862bd
378
#!/bin/sh HOST=$1 PORT=${2:-443} END_DATE=`openssl \ s_client \ -connect ${HOST}:${PORT} \ -servername ${HOST} < /dev/null 2> /dev/null \ | openssl x509 -enddate -noout 2> /dev/null \ | cut -d'=' -f2` if [ -z "$END_DATE" ]; then echo "ZBX_NOTSUPPORTED" exit 1 fi date +"%s" \ --date="${END_DATE}" \ ...
8b4c62fb4ee6ac582f75b3f08f81fae147476137
6,336
#!/bin/sh ubuntu_distro() { # ubuntu-suite-xxx # let's grab the suite (focal) local SUITE="$(echo "$1" | cut -f2 -d-)" case "$1" in *-base) # for example: ubuntu-focal-base create_empty debootstrap --include=wget,curl,net-tools,rsync,openssh-server,sudo $SUITE "$WORK" # make sudo available withou...
1858854b04c03c25dbafc66ef0f44de2def6eaae
911
APP_NAME=Laravel APP_ENV=local APP_KEY=base64:ou7ElavcInJiAqdM+yvcxmceJZ2t4cmGqUoXfvOA21Y= APP_DEBUG=true APP_URL=http://localhost LOG_CHANNEL=stack LOG_LEVEL=debug DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=8889 DB_DATABASE=cdm DB_USERNAME=root DB_PASSWORD=root BROADCAST_DRIVER=log CACHE_DRIVER=file QUEUE_CONNEC...
7aeee11fa7d75f305326762af1a1b84c16058b9a
7,421
#!/usr/bin/env bash set -o xtrace set -o errexit set -o pipefail set -o nounset SERVER=${SERVER:-https://s3.amazonaws.com/boomstick} LEIN_URL=https://raw.github.com/technomancy/leiningen/stable/bin/lein LIGHTTABLE_ARCHIVE=LightTableLinux64.tar.gz LIGHTTABLE_URL=$SERVER/$LIGHTTABLE_ARCHIVE COUNTERCLOCKWISE_ARCHIVE...
5d9c138ccb704f0c39ea575a17c93fb04b96d4ca
94
#!/usr/bin/env bash ./stop.sh echo "Starting..." docker run -d -p 80:80 -p 3306:3306 kevs/app
823e526148ad0aaf6b72287e4c168ce2229d7c95
130
#!/bin/bash git init git remote add origin https://github.com/davepokpong/Gangster.git git checkout -b main git pull origin main
8793579991cfb74776c6aa50de036e2bab847955
881
#!/bin/bash clear SPED_VERSION="SpedEcf_linux_x64-5.1.3.jar" echo "Atualizando sistema..." sudo apt-get update echo "Instalando Bibliotecas..." sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install -y libc6:i386 libncurses5:i386 libstdc++6:i386 libxi6:i386 libxrender1:i386 libxtst6:i386 wget s...