blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
9c0b378292d8d42d59203a3beb7d1770809ff2a9
222
#/bin/bash if [ ! -d $HOME/.pip ]; then echo "make $HOME/.pip" mkdir $HOME/.pip fi if [ ! -f $HOME/.pip/pip.conf ]; then echo "pip.conf not exists. link it." ln -s $(pwd)/pip.conf $HOME/.pip/pip.conf fi
02a1497901983baf124e421f1d2869711ca00f3b
99
MYSQL_DATABASE=ts3_ranksystem MYSQL_USER=tsnbot MYSQL_PASSWORD= MYSQL_ROOT_PASSWORD= VOLUME_BASE=.
76a4fac3a0c1bcb175e2ed68487a2a3017a69c3e
634
#Provision haproxy # NOT WORKING YET wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main 9.5" >> /etc/apt/sources.list.d/pgdg.list sudo add-apt-repository ppa:vbernat/haproxy-1.6 && \ sudo apt-get update &&...
e9b2616cc694bdbc32f9cf188b63ad2d5b175728
496
#!/bin/sh WFM_MOUNT=/mnt/wfm if mount | grep -q $WFM_MOUNT ; then echo "waveform filesystem already mounted" exit 0 fi echo "mounting waveform filesystem" # Set up loop as offset 0x1C41000 from flash root losetup -o $(( 4096 * 7233 )) /dev/loop/1 /dev/mmcblk0 mount /dev/loop/1 $WFM_MOUNT if [ $? -ne 0 ]; th...
c2ee5cd219da73b0bb1b6429fe88044dad88421e
124
BROWSER_TYPE=CHROME MOBILE=TRUE BROWSER_WIDTH=375 BROWSER_HEIGHT=667 BROWSER_LOCATION=chrome_driver/windows/chromedriver.exe
a202863370022233e6f5530f56132b602e316307
809
#!/bin/bash #Used to see if load is above maximum threshold emailFile="/path/to/file/email.txt" echo "Please open this script in notepad and replace the /path/to/file to a file" echo "which contains an email for each line. Then you can remove these echo" echo "statements and the following exit statement." exit 0 MAX...
7fa8b9be6cbb076ff29abe955c9923fffa001d94
395
#!/bin/bash set -e echo "Setup project" export CC=/vpublic01/frog/wyh/gcc-6.1.0/bin/gcc export CXX=/vpublic01/frog/wyh/gcc-6.1.0/bin/g++ export NVCC=/usr/local/cuda-9.1/bin/nvcc rm -rf build mkdir build cd build/ cmake .. make clean make -j100 VERBOSE=1 echo "Done with setup, ready to run, call:" echo "./mainaimGraph ...
15eb42e58237a8a40fe56cd2f4f71f7261b298cb
75
sudo apt-get update # Symlink for bash aliases ln -s ./aliases ~/.aliases
7752cdc80a8e1bfaca6fc78c50fc86b50caf68fd
2,732
#!/bin/bash printf "Sending transaction for depositing assets into Alice's Iroha0 account...\n" ../helpers/iroha-add-asset-quantity.py "localhost:50051" "alice@test" "../../iroha0-data/alice@test.priv" "coin0#test" "1000" printf "Sending transaction for depositing assets into Bob's Iroha1 account...\n" ../helpers/iro...
e286ff784b238a31a011b827dcd82668fdcd1ee0
41
#!/bin/bash docker build -t data-store .
f29171b17ad26619d7a5460e7148c06dccf0be92
60
#!/bin/sh java -jar /pentest/reversing/cfr/cfr_0_119.jar $@
1cd41ff8d7b414cc64d31caafbf18ae1f6c35831
467
#!/bin/bash # fix the hostname for kubernetes... ipaddr=`hostname -i` converted=`echo $ipaddr | sed 's/\./-/g'` namespace=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace` realhost=$converted.$namespace.pod hostname $realhost datadir=`echo $HDFS_CONF_dfs_datanode_data_dir | perl -pe 's#file://##'` if [ !...
c8f3946a8a4233a8d9aee69ecb4c9cec0fa259ce
338
#!/bin/sh ep=$(kubectl get svc istio-ingressgateway -n istio-system -o jsonpath="{.status.loadBalancer.ingress[0].hostname}") cookie=$(curl -sL -XPOST http://${ep}/login?username=jason -D - | grep set-cookie | cut -d ';' -f 1 | cut -d ':' -f 2) watch -n 1 curl -o /dev/null -s -w %{http_code} -b ${cookie} http://...
2a70fe6e8cf726081bfaa92cae9849d63790eb87
5,873
#!/bin/bash sudo mkdir -p /usr/local/lib sudo mkdir -p /usr/local/lib/ceph/compressor sudo mkdir -p /usr/local/lib/ceph/crypto sudo mkdir -p /usr/local/lib/ceph/erasure-code sudo mkdir -p /usr/local/lib/rados-classes sudo mkdir -p /usr/local/share/ceph sudo ln -sf /home/grakra/workspace/ceph/src/pybind/mgr /usr/local...
7e5ead5d7d705b1eb34640d8a11b31c5d1b762fc
7,516
#!/bin/bash debug=false; sday=false; repeat=true; disp=false function calc { read -p "Hour:" hour read -p "minutes:" minute awk "BEGIN {print $hour*60+$minute}" exit } function graph { g1="_"; g2="_"; g3="_"; g4="_"; g5="_"; g6="_"; g7="_"; g8="_"; g9="_"; g10="_"; g11="_"; g12="_"; g13="_"; g14="_"; g15="_"; g16...
f9159f26c677cf824799f570ef134a025fb2b3a5
739
set -e apt-get remove docker docker-engine docker.io containerd runc && \ apt-get update -y && \ apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common -y curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && \ apt-key fi...
1ef9f800d2c83312dac8986772d5771be2fd044e
1,876
# Working directory cd /srv/scratch/z5039045/PacBio/Falcon/BS107_2.10 # Copy 210WT.samphased.fasta and 210WT.samphased.sam to working directory cp /srv/scratch/z3452659/ThomasPacBio-Nov15/analysis/2017-07-09.SAMPhasedBLASR/210WT.samphased.fasta . cp /srv/scratch/z3452659/ThomasPacBio-Nov15/analysis/2017-07-09.SAMPhas...
e75fb6d003ced5414461bf24273539e2a7c49780
330
echo Sending POST data to http://172.17.0.4:8081/micro/review curl -H "Content-Type: application/json" -X POST -d '{ "comment": "Needs better instructions", "itemId": 13402, "rating": 5, "reviewer_email": "dbellagio@us.ibm.com", "reviewer_name": "Dave Bellagio", "review_date": "11/04/2016" }' http://172.17.0.4:8081/mic...
a278b49403277b56287c868aa9a0885164326dd3
470
# @param string $1 (step_number) # @return string (0=true, 1=false) function _isSkippedStep() { local step_number="${1}" local step local skip_steps=() local result=1 if [[ -n "${SKIP}" ]]; then while IFS='' read -r line; do skip_steps+=("$line"); done < <(echo "${SKIP}" | tr ":" "\n") for step in ...
9c343641a1a6f33265a721c9c244f6719e3896e0
739
#!/bin/bash # chkconfig:- 80 80 # Init file for Fibonacci service daemon # # Description: Fibonacci service deamon # # processname: fibonaccid servicename="fibonacci" prog="/usr/local/bin/fibonacci" log="/var/log/fibonacci.log" start() { nohup $prog >> $log 2>&1 & } stop() { ps -ef |grep $prog |grep -v "grep" |...
760370f16b3bf2895cf0b1cccb5f5cb3bdca530e
84
echo -e 'This is a sample execution output for aqua status\n' echo -e 'aqua\n' ls -l
55947b1b85100089a8aac424846e036540273af7
2,537
#!/bin/sh #Define the minimum size we'll resize to, default is 16x16px minSize="16" #Usage: ./AppIconResizer.sh <LARGEST_DESIRED_SIZE> <IMAGE_PATH> # Ex: ./AppIconResizer.sh 1024 MyFullResIcon.png # This example would create copies of 'MyFullResIcon.png' which have # been resized to 1024x1024, 512x5...
a2288494600942a7941c6f990dc73908823e6dd4
613
#!/bin/bash set -e # Only run if template exists if [ -f "/etc/tinc/tinc.conf.in" ] then # If TINC_CONNECT_TO is not set, set it to all filenames in /etc/tinc/hosts if [ -z "$TINC_CONNECT_TO" ] then TINC_CONNECT_TO=$(ls -1 /etc/tinc/hosts/) fi # Expand TINC_CONNECT_TO to multiline configuration and ignore myse...
0594dc08419593c489ff4ec6b10f5ed084b694d0
4,988
install_googlechrome() { wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/ dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb apt-get -f install -y rm ~/google-chrome-stable_current_amd64.deb } install_git() { apt install -y git git config --g...
7a3b671014467cd908c35c3bbc6695f05b424e27
2,108
#!/bin/bash set -x; if [ $# -eq 0 ]; then echo "No arguments" exit 0 fi SandboxID=`printf "%02d" $1` CONFIG=$2 if [ -e "/root/sandbox/status/$SandboxID" ];then echo "sandbox status file /root/sandbox/status/$SandboxID exists" exit 0 else echo "status = NetworkSetting" >> /root/sandb...
b19c477a3fdcb306e2be9b4b06fbf90c3d1cb512
845
#! /bin/bash # Program: # install apach protable runtime # set -e # go somewhere safe cd /tmp # get the source to base APR 1.5.2 curl -L -O http://apache.stu.edu.tw/apr/apr-1.5.2.tar.gz # extract it and go into the source tar -xzvf apr-1.5.2.tar.gz cd apr-1.5.2 # configure, make, make install ./configure make sud...
376f0a2e8b805672c4e0f4bc284c8886891223a5
782
#!/usr/bin/env sh if (( $# == 0 )); then echo "Usage: $0 MEDIA_ENTRY_ID" echo "Example: $0 f5b78e56-a229-4295-a4cc-0311e6534207" exit 1 fi MEDIA_ENTRY_ID=$1 MEDIA_ARCHIVE_BASE_URL='https://medienarchiv.zhdk.ch' RV_PLAYER_BASE='https://rv-dev.process.studio' function uriencode { jq -nr --arg v "$1" '$v|@ur...
514b6e167bc2166b176783eb1d0616aa43d3d157
2,624
#!/bin/bash # This script installs Python 2.7.6 3.3.5 and Anaconda3 # My Anaconda don't want none unless you got buns hun clear echo "This script will install and configure anaconda software for your system" # Check whether you are root if [ "$(whoami)" == "root" ]; then echo "Sorry, you are running with r...
d7f2a5c3cd46bbd33df81cfd2efe3e29182a55bf
2,847
#!/bin/bash # # PARAMETER # # par1: scwid without extension e.g. "00520010010" # par2: tbin for the lc extraction in sec # note that the script assumes the scw are found in the archive # and at peculiar location for the input catalogue # ### GRID SETUP # #$ -S /bin/bash #$ -j y #$ -o /gpfs0/ferrigno/INTEGRAL/nrt...
e979257401bbae6af5292f2580e3724179da2ca3
68
#!/bin/bash ssh -C -N -R 2219:localhost:22 rssh@monitoringku.com &
36e540b38b6460a4bc60cd49b0cff9e3c62fbc80
2,462
#!/bin/bash # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); y...
baa76f7438dbb610ce1edaab30803f1b99e98141
564
#!/bin/bash i=0 lambdaP=0 lambdaN=0 tot=0 ii=0 numberflow=5 totF=0 RESULT=0 all=10 for i in 3 #1 2 3 4 5 6 do while read lambda avgPower do if [ $lambdaN -eq $ii ] then lambdaP=$lambda lambdaN=$lambda else lambdaP=$lambdaN lambdaN=$lambda fi if [ $lambdaP -eq $lambdaN ] then tot=`echo $to...
126a825790acee3d71cbaad078680aea6b0f63b0
58
pip install virtualenv virtualenv venv --python=python2.7
82e83596bbfee4a7c496b4f5faa1c698f1c4585e
126
nohup python -u manageCrabTask.py -t resultsAna_CSCNtuples_2017SingleMu_Zmu_BC_RawReco_20180308_v1/ -r -l >& managedata.log &
dffb29c9b2f5e32a22ba758817b059e9bb1de5d6
1,210
#!/usr/bin/env bash ############################################################################### # script to quickly connect to a nested docker container # # example would be to get into an instance of a container on a remote server # which might have changed the id and needs to be newly identified ################...
2a761c2d468901f89fc291cf8b0d6bd341964c5f
1,616
sudo apt-get remove docker docker engine docker.io containerd runc curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ ...
0e68c1778eb083a4a7318a946f311bb70f347207
646
#!/bin/bash for i in `cat ../rarity.txt` do if [ ${#i} == 1 ] then if [ $i == C ] then convert images_original/$f.png -background black -alpha remove -bordercolor gray -border 7x7 images/$f.png elif [ $i == U ] then convert images_original/$f.png -background black -alpha remove -bordercolor limegreen -...
8ce18d1c92c0b68afd3937ffa1ecfe6cb90599dc
236
#!/bin/bash #add fix to exercise4-server1 here sudo sed -i '$ a\192.168.100.11 server2 server2' /etc/hosts && <<-EOT cat >> /etc/ssh/ssh_config Host server2 HostName 192.168.100.11 User vagrant EOT sudo service ssh restart
76ebf8f07d4278c2197bb7d3a093b87cbaadedac
1,025
#!/bin/sh /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc eval "$(/opt/homebrew/bin/brew shellenv)" /opt/homebrew/bin/brew install git git clone https://github.com/anyenv/anyenv ~/.anyenv echo 'eval "$(~/.a...
feec8e6e2ead98c609f56c54efd40910c91e49ce
263
root_path="/Users/ddulaev/Documents/BioInformatics/SIMBA3D" for (( i = 1; i < 22; i++)) do dir_path_iter="${root_path}/examples/command_line_tutorial/results/chr${i}" cd ${dir_path_iter} for file in *.pdb; do mv "$file" "Simba3d_chr${i}.pdb" done done
5c9017da6dd9849ffaa7d360e8691ea8458074d1
244
rm /tmp/vid/tmp/mylist.txt 2> /dev/null for f in /tmp/vid/tmp/*.mp4; do echo "file '$f'" >> /tmp/vid/tmp/mylist.txt; done mkdir /tmp/vid/result ffmpeg -f concat -i /tmp/vid/tmp/mylist.txt -c copy /tmp/vid/result/result.mp4 rm -rf /tmp/vid/tmp
9b1fc360128fd26a79d36f3c3854b41f84963e8a
963
#!/bin/bash usage(){ cat << EOF Usage: $0 [OPTIONS] {amount of clients} OPTIONS -a grep output for how many cokes were given -b grep output for how many clients got colas -v grep output for verbose representation of colas distribution on clients NOTE For easy monitoring of the server process watch -n 0.1 "ps -eLf|...
9c77195b8ed5fc601b4c1ebc40fc9ffdf58c4e4c
369
#!/bin/sh set -e export DEBIAN_FRONTEND=noninteractive apt-get update apt-get install -y ansible curl git git clone --depth=1 https://github.com/matsuu/ansible-isucon9-qualify.git cd ansible-isucon9-qualify ansible-playbook --connection=local -i webapp, standalone.yml cd .. rm -rf ansible-isucon9-qualify apt-get r...
4ab8783c8356c21cb5e1632bd5198f32c95fb712
962
#!/usr/bin/env bash ROOT="$(dirname ${BASH_SOURCE[0]})" declare -A mapping nodes=$(${ROOT}/list_numa_nodes | awk '{ print $1 }') # start with assumption that all numa nodes are dram for node in ${nodes} do mapping["${node}"]="DRAM" done # run all memory type detectors in the identify_numa.d directory for detec...
6102284a8a4c78572cc49a3766d413b2e137a73a
329
mkdir $1 cd $1 git init mkdir ./bin mkdir ./include mkdir ./lib mkdir ./share mkdir ./man mkdir ./info touch README.md echo $1 >> README.md touch .gitignore git add ./bin git add ./include git add ./lib git add ./share git add ./man git add ./info git add README.md git add .gitignore git commit -m "Create initial st...
8396bd6d1e5ce3a641bb1a6957376a16b86e5a49
693
#!/bin/bash api_key="your api key here" deviceID="your deviceID here" value=10 #post this value #obtain a token my_token=$(bash -c "/usr/lib/lua/ubidots.lua -token "$api_key) echo "Token: "$my_token #post data to Ubidots bash -c "/usr/lib/lua/ubidots.lua -post "$api_key" "$deviceID" "$value #retrieve last value from...
bc9e47a21841bdd6e13b55a5e3b6ee35ae19e1d5
3,782
#! /bin/sh if [ -f /jrd-resource/resource/webs-cfg/webs.conf ]; then rm -f /jrd-resource/resource/webs-cfg/webs.conf fi if [ -f /jrd-resource/resource/webs-cfg/webs_lan.conf ]; then rm -f /jrd-resource/resource/webs-cfg/webs_lan.conf fi if [ -f /etc/mobileap_cfg.xml ]; then rm -f /etc/mobileap_cfg.xml fi if [ -f...
207dc7dfcfd72b617899f79d0eb85cc8f0b04de0
4,449
#!/bin/sh WORKING_DIR="$(realpath "$(dirname "${0}")")" CONFIG_FILE="${WORKING_DIR}/install.config" . "${WORKING_DIR}/config/shell-utils/util.sh" usage() { print_msg "Usage: ${0} --config <filename>\n" } check_root() { test $(id -u) -eq 0 } check_conn() { ping -c 4 archlinux.org } check_uefi_boot() { ...
f85f1b4241cf432990b92c0e04b92101d8c1b41f
157
# Keep history within the shell and save it to ~/.zsh_history: setopt histignorealldups sharehistory HISTSIZE=100000 SAVEHIST=100000 HISTFILE=~/.zsh_history
9e620e56bba9e2b97bb9fb296d723933df4394a0
107
#!/usr/bin/env bash echo "bootstrapping the cluster" jx step create task --interpret --no-release-prepare
29d8e6789acfb86dae66fe8d45109c6c19bcf16c
110
mkdir ../results ../src/magna -G exlist3.txt -d exlistgdv3.txt -m CIQ -a 0.5 -p 10 -n 100 -o ../results/exout
7f1e9c0d65298f83bf3eb58fff211ca2ba90fe8c
508
#!/usr/bin/env bats load helpers function teardown() { cleanup_test } @test "ctr termination reason Completed" { start_crio run crioctl pod run --config "$TESTDATA"/sandbox_config_selinux.json echo "$output" [ "$status" -eq 0 ] pod_id="$output" run crioctl ctr create --config "$TESTDATA"/container_redis.json ...
0cb8faf12aefcf26bd8183aac9dd746cd9b568da
1,268
#!/bin/sh export PATH=${PATH}:/usr/local/bin:/usr/local/sbin umount /btrfs >/dev/null 2>&1 || true umount /mnt >/dev/null 2>&1 || true mount -t btrfs LABEL=sp6-backup /mnt || exit 1 if ! mount -t btrfs UUID=76c2d8f7-278d-428c-9a42-571216cc0773 /btrfs; then umount /mnt exit 1 fi cd /btrfs btrfs-subvolume-backup ...
e04f72810af6c246e59a7e004e326adaf0883d14
59
java -jar client/build/libs/client-0.0.1-SNAPSHOT.jar "$@"
c0ebdda3e2b24529811e10c94999b84f7771be25
184
#!/bin/bash device_count=4 device="scull" major=`grep -m 1 scull /proc/devices | cut -d ' ' -f 1` for (( i=0 ; i<device_count ; i++ )) ; do rm /dev/scull${i} ; done rmmod scull.ko
3d5eeec25f87e17940df7540c7a78792559872a7
80
sudo /home/pi/NTUEE_light_dance/client/turnOffLED/turnOffLED sudo node client.js
bd83a1d6425e5650eac16a9c709fe04221b58f4b
344
### eqmake4 was here ### CONFIG -= debug_and_release debug CONFIG += release #-*-Shell-Script-*- include (common.pri) TEMPLATE = subdirs SUBDIRS += libconnman-qt libwifiapplet translations #FIXME: should not hardcode desktop_entry.path = /usr/lib/duicontrolpanel desktop_entry.files = meegotouchcp-connman.desktop IN...
bba21ef90f946d5df35e492d7e3b62e284cae03f
412
#!/bin/sh -eu # # Merges all branches up to and including current branch into master branch. # # Written in 2012 by Suraj N. Kurapati <https://github.com/sunaku> # ensure that working tree is clean git rebase HEAD --quiet current=$(git symbolic-ref --short HEAD) git checkout master for branch in other patch minor ma...
1afaccd041962b5ea00f1c8a5c1d97f38bb4554a
251
#!/bin/bash echo "So im going to load all files now for you please wait..." mv rsfconsole /usr/bin/rsfconsole chmod +x /usr/bin/rsfconsole mkdir /opt/roxysploit mv * /opt/roxysploit/ chmod +x /opt/roxysploit echo "Ok were done :) run 'rsfconsole'"
effacd012109ae524f03200a8a6270604666f50f
99
DB_HOST=localhost DB_USER=final DB_PASS=final DB_NAME=icebreaker DB_SSL=true if heroku DB_PORT=5432
f5c9fe4a6ab2e031b2228e6bac84fc9bdb196314
286
#!/bin/bash # Example of CASE Statements case "$1" in start) echo "Starting sleep walking server" /tmp/sleep-walking-server & ;; stop) echo "Stopping sleep walking server" kill $(cat /tmp/sleep-walking-server.pid) ;; *) echo "Usage $0 start|stop"; exit 1 esac
3f8841d5e8cb22e346c69e965af6968a00ce663c
309
# Adding Kibana examples # To export a dashboard use: # curl -s -S http://localhost:9200/kibana-int/dashboard/kibana-demo1/_source -o kibana-demo1.json for f in *.json ; do echo "Injecting $f" curl -s -XPUT "http://localhost:9200/kibana-int/dashboard/${f%.json}" --data-binary @"$f" -o /dev/null done
6a9ec4ec871da44ad66663f2fd2264f97c1ddc50
295
# Como root yum install openldap-servers yum install openldap-clients # Lo instalamos tambien en el servidor # Evitamos que se active la configuracion by default # este archivo de configuracion es vestigial de versiones pasadas de openldap mv /etc/openldap/ldap.conf /etc/openldap/ldap.conf.old
598957ce87ea745dc7e8ed3c91c53cb2e6f8761c
528
#! /bin/bash export R_HOME CXX=$(R CMD config CXX) #CXXFLAGS="$(R CMD config CXX1XSTD) $(R CMD config CXX1XFLAGS)" CXXFLAGS="$(R CMD config CXX1XFLAGS)" # $(R CMD config DYLIB_LDFLAGS)" CPPFLAGS=$(R CMD config CPPFLAGS) BLAS_LIBS=$(R CMD config BLAS_LIBS) LAPACK_LIBS=$(R CMD config LAPACK_LIBS) export CXX export CXXFLA...
5f4e820b5f250259293b58e8391139e71f868039
438
#!/bin/bash rand=$RANDOM secret=${rand:0:1} function game { read -p "Guess the number I am thinking of [n] " guess while [[ $guess != $secret ]]; do read -p "Nope. try again! " guess done echo "Good job, $secret is it! You are great at guessing!" } function generate { echo "A random number is: $rand" echo -e "Hi...
ac6dc5588aa771cfc786b138e7e4d42cbae29a29
321
#!/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" ...
a3fc4d5acc2bf2fd689feb29941e82c021c4eeae
250
#!/bin/bash read -p "Enter a number " num echo -n "Factors of $num are " for ((i=1;i*i<=$num;i++)) do if [ $(( $num%$i )) -eq 0 ] then if [ $(( $num/$i )) -eq $i ] then echo -n $i else echo -n "$i $(($num/$i)) " fi fi done echo " "
04ce7b1a475f7f5d276bff72ee3ea35cf54a3d06
381
### remove the '#' to use the environment variables # export PRIVATE_KEY=asafdagadd # export WEB3_INFURA_PROJECT_ID=asdfsdf ### Optional - don't uncomment if you don't know what they do! # export ETHERSCAN_TOKEN=asdfasdfasdf # export IPFS_URL=http://127.0.0.1:5001 # export UPLOAD_IPFS=true # export PINATA_AP...
3a6499effb9a89990b2e11595c3989d958d93697
71
#!/bin/bash vim=$(type -P n${0##*/} || wrapped "$0") exec "$vim" "$@"
eff13ce0a674283e39b963464e1a54048d0b3fd7
105
#!/bin/bash NUM=0 while [ $NUM -lt 15 ]; do iozone -i0 -i1 -i2 >> /dev/null let NUM=$NUM+1 done
8f955813b4364ff52dc33294e31406578c621e7e
499
#!/bin/bash nano /etc/slackpkg/mirrors slackpkg update slackpkg upgrade firefox zlib wget https://github.com/sbopkg/sbopkg/releases/download/0.38.1/sbopkg-0.38.1-noarch-1_wsr.tgz installpkg sbopkg-0.38.1-noarch-1_wsr.tgz sbopkg sbopkg -i python3 sbopkg -i python-urllib3 sbopkg -i slpkg slpkg update rsync -Hav rsync://p...
af3a6a5b13e80be6755c74fde9bb3e6b5e35837b
724
#!/bin/bash dist=el7 BASEDIR=/home/makerpm sudo cp -a /root/sxdrive.git $BASEDIR/sxdrive.git sudo chown -R makerpm $BASEDIR/sxdrive.git sudo ln -s /usr/lib64/qt5/bin/lrelease /usr/bin/lrelease sed -i "s/SRCVERSION/$SRCVERSION/g" $BASEDIR/sxdrive.spec # FIXME cd $BASEDIR/sxdrive.git && \ git archive --format=tar H...
4ef6212b629da85afd791fafcd6c82546454b7ca
166
#!/usr/bin/env bash wget http://node-arm.herokuapp.com/node_latest_armhf.deb sudo dpkg -i node_latest_armhf.deb sudo apt-get install ipython sudo apt-get update
394433682b5bc1403d60dac9f21a28de73508ad8
869
#!/bin/bash # create a virtualenv currtent directory and install the following # django for python 3 , ipython # not well tested set -e # abort on errors echo arg 1 = :$1: arg 2 = :$2: arg 3 = :$3: # varfuervenv=$1 # function doit { # shopt -s dotglob pip_version="pip-3.2" # echo arg 1 = :$1: arg 2 = :$2: arg 3 = :...
8b5d93a72de315dac748f3590cd414c9ddc28d9a
215
#!/bin/bash # AWS-Credentials source ~/.aws_creds # EC2-Einstellungen source ../ec2-defaults # Verwendung von ansible 1.8.4 source ../ansible-1.8.4/hacking/env-setup # SSH-Schlüssel ssh-add ../my-key-pair.pem
e9fbd6acd8b29233e649753582221d42ffd88f1e
1,079
export GATLING_HOME="/usr/lib/gatling" # This allows exclusions and the like in the pattern expansion setopt EXTENDED_GLOB # Report the status of background jobs immediately, rather than waiting until # just before printing a prompt. setopt NOTIFY # This option both imports new commands from the history file, and al...
0763622b6cf9e893b1a1e3eeaa2eca94e6b61bdb
165
#!/bin/bash curl -ik -X POST -H "Content-type:application/json" -H "Accept:application/json" --data @newconnector.json http://localhost:9999/api/connectors && echo
4e06fbbc20b34978e7eda451a1ac1c4244ddc2e5
2,669
#!/bin/bash # Copyright 2016 Author: Junbo Zhang # Apache 2.0 # Computes GOP. # Begin configuration section. nj=1 cmd=run.pl # Begin configuration. # End configuration options. echo "$0 $@" # Print the command line for logging [ -f path.sh ] && . ./path.sh # source the path. . parse_options.sh || exit 1; if [ $...
ef011a23785e5888c829a6b915b3a9f2f0d32204
85
protoc --proto_path=./proto --cpp_out=./proto proto/caffe.proto python setup.py build
49b5569112404a2bc9643a0b4feba1a098acdfb6
889
#!/usr/bin/env bash echo "install packages, needs sudo" sudo apt-get install geany gcc-avr avr-libc avrdude git echo "clone needed repositories in ./Git or pull newest change, if repos already exist" mkdir -p Git cd Git/ if cd KAsuroParticipants; then git pull && cd ..; else git clone https://github.com/KAsuro/KAsuro...
891c743c1cc5fdc1f24b4fdf4a9f269b62f3bf86
574
hadoop fs -rmr result hadoop jar /home/epcc/robeen/hadoop-0.21.0-streaming.jar \ -input 20GB.txt \ -output ./result \ -mapper /home/epcc/robeen/ShmStreaming/ShmWordcount/wordcountMapper \ -combiner /home/epcc/robeen/ShmStreaming/ShmWordcount/wordcountReducer \ -reducer /home/epcc/robeen/ShmStreaming/ShmWordco...
41521746507b4fc5e7fa3d92b2ceb29c1267b315
1,943
#!/bin/bash OUTDIR=./data/ REF=`git rev-parse HEAD` TIMEOUT_IN=900 OPTS="-no-inverting-opt -activity-look-freq=1" #-no-inverting-opt #-no-inverting-opt -activity-nl-freq=1 #-no-inverting-opt -sym-var-bump #-no-inverting-opt -sym-usage-var-bump" echo "$OPTS" | while read opt do echo "---------------------------...
42efe574b5e1be5f15c6f9fd72e8982327225929
136
#!/bin/bash # Install baseline packages and tools. set -e set -o xtrace apt-get install -y language-pack-en python-software-properties
88c1b409944d5627c99acebe0b75132ff1c77119
597
#!/bin/bash if [[ -z ${ES_NODE_NAME} ]];then if [[ -f /etc/conf.d/hostname ]];then # The Gentoo way ES_NODE_NAME=$(cat /etc/conf.d/hostname |awk -F= '/hostname=/{print $2}' |tr -d '"') elif [[ -f /etc/hostname ]];then ES_NODE_NAME=$(cat /etc/hostname) else # should never be called, as /et...
e2d685c9d7b505de4534b983a2e47b5873c2f804
125
#!/bin/sh export DEBUG=${DEBUG:-electron-packager} yarn run --silent electron-packager . --overwrite --no-prune --out build
04c79c1736544c1f50ded7447fbdaa4c2089cfea
7,318
#!/bin/bash # LinuxGSM command_start.sh module # Author: Daniel Gibbs # Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Starts the server. commandname="START" commandaction="Starting" moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" addtimestamp="gawk '{ print ...
3e5e8f84b907bb29c47942ef3f8d2384a2134132
139
#!/bin/bash -e cd "$( dirname "${BASH_SOURCE[0]}" )"/.. export NOMAD_ADDR=http://10.42.2.2:4646 set -x exec nomad node drain -self "$@"
8ecb2221b387956bd8d935112c97b9d3e28bf4fd
64
rsync --delete -av /home/dev/ownCloud/Scripts/ /shared/Scripts/
2d8625a77f6a02cc41b364ac965c2c7c405ec0f7
83
cat $root_dir/task.bash (echo 'my $x=1;'; echo 'my $x=1;'; echo '4;') | raku 2>&1
a76c596f8727069f22c53a932d82c2ab579fb103
930
#!/bin/bash # vim: ft=sh set -e -u RUN_DIR=/var/vcap/sys/run/worker mkdir -p $RUN_DIR PIDFILE=${RUN_DIR}/worker.pid LOG_DIR=/var/vcap/sys/log/worker mkdir -p $LOG_DIR exec 1>> $LOG_DIR/worker.stdout.log exec 2>> $LOG_DIR/worker.stderr.log /var/vcap/jobs/worker/bin/pre_start source /var/vcap/jobs/worker/config/env....
231905ea59b8e2b807513ef60de6a9cc3cda2d0d
54
#!/usr/bin/env sh NODE_ENV=production node server.js
d589743e6242d816935c87a6cf85149a083893db
198
SERVER_URL=0.0.0.0:8000 SERVER_READ_TIMEOUT=60 JWT_SECRET_KEY=YOUR SECRET KEY JWT_SECRET_KEY_EXPIRE_MINUTES_COUNT=1440 MYSQL_SERVER_URL=YOUR MYSQL SERVER URL REDIS_SERVER_URL=YOUR REDIS SERVER URL
2333ad506a19866971c29e861b81b3c52b44a140
425
sudo apt update && # Update the distro sudo apt upgrade -y && sudo apt dist-upgrade -y && # Install dev goodies sudo apt remove --purge openssh-server -y && sudo apt install -y openssh-server git zsh && curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && sudo apt-get install -y nodejs && # Oh-My-Z...
aeb63bcf5675f96758d343434afb2c9e0f19645c
3,524
#!/usr/bin/sh expName=$1 isDroplet=$2 barcodesFile=$3 sampleMetadataFile=${4} dropletMetadataFile=${5:-''} if [ "$isDroplet" = 'False' ]; then # For SMART experiments, grep out the metadata lines we need for each run. # If matching metadata can't be found then there's something wrong cellMetaFile=$m...
7fbcc8f9fd68e8ec95b946b54d08bc9a9aa94723
3,443
#!/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/$...
991c57820bce577055ab93de21bb1fc78098c7d0
964
#!/bin/bash BOOT () { A=$(adb wait-for-device shell getprop sys.boot_completed | tr -d '\r') while [[ $A != "1" ]]; do sleep 1; A=$(adb wait-for-device shell getprop sys.boot_completed | tr -d '\r') done; } Get_Google_Play_Services () { wget "https://www.apklinker.com/wp-content/uploads/upl...
49008a26b0aec8fcd3fd059b5981b694549fca45
117
REACT_APP_ASR_PATH=http://localhost:5000/ REACT_APP_TTS_PATH=http://localhost:8899/ REACT_APP_REQUEST_TIMEOUT=600000
63f9044a176f0d5c9b16c8369cc1a3306c488a53
106
#!/bin/sh git pull https://github.com/SakuraSa/TenhouDB.git master nohup python index.py 0.0.0.0:80 2>&1 &
19ac291d7bfd7d9f24f05fef7768815e767528b7
700
cd tests/GDaemon && ./daemon cd ../../ sudo apt-get update -qq sudo apt-get install -y -qq libssh2-1-dev libssh2-php pecl install -f ssh2-beta < .noninteractive sudo apt-get install -y -qq telnetd whoami echo `whoami`":1234" | sudo chpasswd sudo netstat -lntup # Make files sudo mkdir /home/travis/build/ET-NiK/GameAP...
05ddc558dc7ba159e784df240bfc451e784cbb5c
409
CONTAINER=$(docker ps -q) if [ -z $CONTAINER ]; then echo "Couldn't find running Docker container." docker --version docker ps exit 1 fi echo "waiting for Localstack to report 'Ready.' from container $CONTAINER" while true; do LOGS=$(docker logs $CONTAINER --since 1m) if echo $LOGS | grep 'Ready....