blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
e1d16387630f72a971eb8e332ca119eeb1a897a9
226
docker run -d -p 5000:5000 --restart=always --name registry registry:2 # docker pull ubuntu:14.04 # docker tag ubuntu localhost:5000/ubuntu:14.04 # docker push localhost:5000/ubuntu:14.04 # curl -v localhost:5000/v2/_catalog
e174f2d7d5ccac39fd9d69c7f06cdc1997348adb
107
#echo $THE_BASE_DIR_PATH source $THE_BASE_DIR_PATH/../../../bin/_function.sh base_var_init #base_var_dump
45db56f0f8642d0af1bbdc986cbafefb49d7a5e1
383
#!/usr/bin/env sh # This script is intented to update alpine image MAJOR_VERSION="3.5" MINOR_VERSION="0" pushd ../docker-alpine curl https://nl.alpinelinux.org/alpine/v3.6/releases/armhf/alpine-minirootfs-3.6.0-armhf.tar.gz > rootfs.tar.gz docker build -t sandlayth/armv7l-alpine . && docker push sandlayth/armv7l-...
75018a300de6291ddd4610a3f462bea606ce0135
254
#!/bin/bash ## submit this chr to eagle /seq/vgb/linda/bin/Eagle_v2.3.2/eagle --vcf=$targ'.vcf' \ --geneticMapFile=/seq/vgb/linda/mutts/genetic_map_wg/gen_map_canfam3.1 \ --chrom=$chr \ --chromX=42 \ --pbwtIters \ --outPrefix=$ref'_'$chr'.phased'
289e555c0925d17d2e8e4727aa29186e2618d758
470
# .env DISCORD_TOKEN=NjE2OTEzMzgzNzAyMzk2OTMx.XWqHHg.n03egAQypkdnd_nRlqwz-aoUsyE DISCORD_GUILD=FluffyOatsHeadquarters # Shadow, Bastet, Rapid, Merc, Hatsu, Dragon, Panda USER_DICT={453053325105954816 : 617709678163525633, 193521437397614592 : 617709599658737707, 244509682712969217 : 617709511238483989, 284453956673...
fe55ae657e806fdb33e92cdfa71cc59bc66bf675
416
#!/bin/bash source ./url_env.sh stat_date=$1 mysubmit 50 key false ${stat_date} #pcat #mysubmit 20 pcat false ${stat_date} all #ccat #ls ${WORK_DIR}/model | sed '/all\.mode\.ftz/d' | awk -F '.' '{print $1}' > ${WORK_DIR}/log/catfile #cat ${WORK_DIR}/log/catfile #while read cat; do # echo $cat # mysubmit 50 ccat ...
6b4cc75234e413346d9ff2035471c29d359f65e6
119
#!/bin/bash ./scripts/copy_post_code_gen.sh go run cmd/sendmailserviceproxy-server/main.go --port=8080 --host=0.0.0.0
e6583dcb28723f9fa6abec32507826088dfad6f4
345
#!/usr/bin/env bash SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")") cat > task-demo-metrics-prometheus.shell <<EOF task create --name task-demo-metrics-prometheus --definition "task-demo-metrics-prometheus" task launch --name task-demo-metrics-prometheus EOF $SCDIR/shell.sh --spring.shell.commandFile=task-demo-...
4fd7e045c4ceb2a5e5349aadc56626a23126bda5
23,534
#1/bin/bash #tablice przechowujace bilety i ceny (nazwa i cena w osobnych tableach maja ten sam indeks - tym sa powiazane w skrypcie) ulgowy_miasto=("ulgowy jednoprzejazdowy miasto" "ulgowy dwuprzejazdowy miasto" "ulgowy czasowy 20 minutowy miasto" "ulgowy czasowy 40 minutowy miasto" "ulgowy czasowy 60 minutowy miasto...
440dcade5cb221bb7deaed6fe7ab9f3cf1772337
6,573
export PATH=D:/Program_Files2/Xilinx/Vivado/2017.3/bin;D:/Program_Files2/Xilinx/Vivado/2017.3/win64/tools/gcc/bin;D:/Program_Files2/Xilinx/Vivado/2017.3/msys/bin;D:/Program_Files2/Xilinx/Vivado/2017.3/bin;D:/Program_Files2/Xilinx/Vivado/2017.3/win64/bin;D:/Program_Files2/Xilinx/Vivado/2017.3/win64/tools/bin;D:/Program_...
4beba1a9f0c8888c4a59335be0685366ccb40331
233
jamfreenroller) # credit: Mischa van der Bent name="ReEnroller" type="zip" downloadURL=$(downloadURLFromGit jamf ReEnroller) #appNewVersion=$(versionFromGit jamf ReEnroller) expectedTeamID="PS2F6S478M" ;;
d69b8e986d5b10586c3700b986bd33a9fc0d0c51
86
d=`readlink -f $0` d=`dirname "${d}"` d=$d/week1/students cd "${d}" ./musical_pairs.sh
ad2604a3f5254bbc319de824762c83acba562a32
358
#!/bin/bash echo 'Enter suffix including .' read $string count=1 for odd in `ls odd* |sort -V` do mv $odd page-"$count$string" count=`expr $count + 2` done count=0 for even in `ls even*|sort -V` do count=`expr $count + 2` done for even in `ls even*|sort -V` do mv $even page-"$count$string" count...
384549ff6b1a31d78afd8a592788c26f78925b40
1,197
#!/usr/bin/env bash #SBATCH -p glenn #SBATCH -A C3SE2018-1-15 #SBATCH -J simulateScenario160 #SBATCH -N 1 #SBATCH -t 0-10:00:00 #SBATCH -o simulateScenario160.stdout #SBATCH -e simulateScenario160.stderr module load matlab cp -r $SLURM_SUBMIT_DIR/* $TMPDIR cd $TMPDIR array=( "-18;0;83000000000;100000000000" "-17;...
2b94cb5bbe0de39faf037c326da38b8d6fe3fa3d
559
#!/bin/bash # A bash script to create folders with subfolders all in one go. mkdir -p app/api/{models,views,schemas,utils} | touch app/api/{models,views,schemas,utils}/__init__.py mkdir -p app/tests/views mkdir .github | touch .github/pull_request_template.md mkdir instance | touch instance/config.py touch instan...
f3129339d6f8ec3caba5eee7714960be1adbcdca
523
#! /bin/bash # Reset all desktop font settings using gsettings. # Updates from System76 seem to often screw up the desktop fonts gsettings reset org.gnome.desktop.interface font-name gsettings reset org.gnome.desktop.interface document-font-name gsettings reset org.gnome.desktop.interface monospace-font-name gsetting...
550ed5507d91b03ce12d43b958ab83528544b6b1
605
#!/bin/sh ## USAGE ## ./stop_autoscale.sh (target group) #### e.g. (target group): 60s, 10m, 1h SHELL=$0 if [ $# != 1 ]; then echo "$SHELL: USAGE: $SHELL (target group)" echo "$SHELL: e.g. (target group): 1, 2, 3, ..." exit 1 fi #Variables target_group=$1 instance_limit=0 group_num=0 # Start each grou...
974eb28671c4597358c24906d34c1b8cdcbf2b14
1,773
#!/bin/sh # Run the C preprocessor on an OpenCL kernel to generate a C string array # suitable for clCreateProgramWithSource. This allows us to create # standalone OpenCL programs that do not depend on paths to the source # tree (the programs will still run the OpenCL run-time compiler to # compile the kernel, but the...
0a375ef0d02803f181700c0019eca3b0ab82cd72
184
python3 action_recognition.py \ -m_en ./models/action-recognition-0001-encoder.xml \ -m_de ./models/action-recognition-0001-decoder.xml \ -i "classroom.mp4" \ -d CPU \
8a3197a8f643548e5873007efd0f6e7bef6a9f5e
94
#!/bin/sh git checkout gh-pages && git merge master && git push origin && git checkout master
f057eeb083d117487b8ca93e07029fca61c78504
61
#!/bin/sh prefix=@prefix@ echo "this fake libbar-config"
b9bf61cfdd5894c39f6cb796ede617aa5050c27a
324
#!/bin/bash RTMP_URL=$1 STREAM_KEY=$2 if [[ -z $RTMP_URL || -z $STREAM_KEY ]]; then echo "usage: ustream RTMP-URL STREAM-KEY" exit 1 fi raspivid -n -vf -hf -t 0 -w 960 -h 540 -fps 25 -b 500000 -o - 2> /dev/null | ffmpeg -i - -vcodec copy -an -metadata title="HenHouse Cam" -f flv $RTMP_URL/$STREAM_KEY 2> /dev/n...
a3102ff76b07be86e377b36a33b850d7d62bfc06
125
#!/bin/bash set -e FILES="*.js *.html *.css *.ico font/*" tar -zc --transform 's,^,plaintalk/,' -fplaintalk.tar.xz $FILES
fb18a2b4722a54b472ae1c82a9caf29679e41412
1,375
for i in "ALBRE11" "ALBRU8" "FLJAS13" "GABEL9" "GAGLA21" "GASTA3" "LABEN5" "NCBAT4" "NCKIN2" "NCROS7" "OKBAC15" "OKRAT17" "SCBRA4" "SCMAR24" "SCPRO27" "TXATH5" "TXLIV14" "TXMTP16" "TXOAK6" "TXROS24" "FLHAM4" "NCELI16" "NCHIC16" do java -jar /ohta/joanna.rifkin/picard/build/libs/picard.jar SortSam \ I=/ohta/joann...
2b99c2aa5f202f1c1a78e7bff18d08b762c9a689
21
echo $he likes Mary.
0b7fe7ea2c375e75c2c7e256d6962a2d91d76538
415
#!/bin/bash if [ "$1" == "real" ] then echo training real robot env="ROSForce-v0" elif [ "$1" == "sim" ] then echo training sim env="DynReacherForce-v0" else echo nooo exit 1 fi python3 -m baselines.run --env=$env --alg=ppo2 --env_type=mujoco --network=mlp --nsteps=256 --nminibatches=32 --lam=0.95 --gamma=0.99 ...
cf6a22d2c3c77c400607bcd6d2169b852d39ddae
318
#!/bin/bash #echo -e "Enter the file name: \c" v_file="/etc/passwd" #echo -e "Enter the delimeter \c" delimeter=":" IFS=$delimeter while read -r USER PASSWORD USERID GID COMNT HOMEDIR LOGINSHELL do if [ $LOGINSHELL == "/sbin/nologin" ]; then echo "$USER" >> /home/ansible/output.txt fi done < "$v_file"
4ac53cb930b767798570b9f811f2a7c1ec731ae7
1,473
#!/usr/bin/env bash # usage: bin/supply <build-path> <cache-path> <deps-path> <index> BUILD_PATH=${1:-} CACHE_PATH=${2:-} DEPS_PATH=${3:-} INDEX=${4:-} CURL="curl -s -L --retry 15 --retry-delay 2" # retry for up to 30 seconds RUSTUP_URI="https://sh.rustup.rs" # Rust Version Channel VERSION=stable # Bash Error Handl...
f77dc0c3650de2b0cca8dd5c3196d02dfe76785b
544
#!/usr/bin/env bash # # bash encoding detection. # author: samu # irc: samu @ irc.pirc.pl # # This should basically detect users terminal encoding. # NOTE: I did this for a test. Then I've written it in python, for my needs, so I am not going to develop this script anymore. echo -ne "\nżółćżółć" oldstty=$(stty -...
400c8941db2948eee1b46a97e4fbe800d4b8b36b
4,156
#!/usr/bin/env bash function help() { echo "USAGE: $0 [options]" echo "" echo "OPTIONS:" echo " -a/--nagents # agents (odd integer default: 1))" echo " -c/--ncoordinators # coordinators (integer default: 1))" echo " -d/--ndbservers # db servers ...
0fe8db88a97ef68056d8c7396ccb8943046736ef
790
#!/usr/bin/env sh ###################################################################### # @author : henrye (henrye@boole01.cluster) # @file : train_content_selection # @created : Monday Jan 07, 2019 11:31:05 GMT # # @description : ###################################################################### ...
269ee9849f88ef9ebde0664f25201b4993516a7b
292
#!/bin/bash ENV=`mktemp -d` trap 'rm -rf $ENV' EXIT virtualenv --python=python3 $ENV { . $ENV/bin/activate python --version pip install git+git://github.com/hendrikx-itc/pg-db-tools compile-db-schema sql --if-not-exists design/schema-design.yml > src/00_base.sql } exit 0
5fa215091f04c51256ab496081200fe407df6f95
983
export CWD=$PWD # where programs are export BIN_DIR="/rsgrps/bhurwitz/hurwitzlab/bin" # user configs export OUT_DIR="/rsgrps/bhurwitz/alise/my_scripts/454meta_simulator/test_pipeline" export NB_READ=100000 export PROFILE="/rsgrps/bhurwitz/alise/my_scripts/454meta_simulator/test_pipeline/test_uniq.txt" export DB_DIR="/r...
598a934d3eaa093f5600d43782a99503e9385839
481
#!/bin/bash source ../utils/confirm.sh source ../utils/brew-utils.sh source ../utils/log.sh # "mas search xzy" to search for packages mas_packages=( 668208984 # GIPHY Capture. The GIF Maker 467040476 # HiddenMe 1497506650 # Yubico Authenticator ) # Make sure homebrew is installed first mandatoryBrew lo...
c9451fb14fadb134fc18a2ef9961d661051cc6fc
274
#! /bin/bash # purpose to do daily pull of DMESG in order to grab EDAC data (Error Detection and Correction driver) to utilize with a machine learning model for memory failure prediction. while /bin/true ; do dmesg | grep EDAC >> $(hostname)_test.txt sleep 8640 done
a6292bf8be210763ab67c8f89429e5e4e30d3970
710
#!/bin/bash PKG=old if [ "$1" == "" -o "$2" == "" ]; then echo "Use: release OLDREL NEWREL" echo "Run from the repo root" exit fi OLDREL=$1 NEWREL=$2 TARGZBALL="$PKG-$NEWREL.tar.gz" TARBZBALL="$PKG-$NEWREL.tar.bz2" RELDIR="../$NEWREL" if [ -d $RELDIR ]; then echo "$RELDIR already exists!" exit fi echo "* mak...
a7d8a2e056e71dfed04101779e655511c08ddec9
107
#!/usr/bin/env bash printf "\033]52;s;%s\a" "$(printf "%s" "$*" | base64 --wrap=0)" >/dev/tty 2>/dev/null
a72d3e397f2ff750714ea33a6ca89c9a8f024413
12,215
#!/bin/bash # WARNING: # THIS SCRIPT IS NOW CONFIGURED FOR READING ONE CHANNEL FULL CHAIN for j in 1p20; do ################################# cd /home/dayabay/ColdADC/scripts/ #./coldADC_resetADC.py #./coldADC_resetFPGA.py cd /home/dayabay/ColdADC/USB-RS232 ./setAmplitudeVolt.py 1.34 #...
d94796e9dee7a8cf3984b31086dd0816c6f68e0f
118
#!/bin/sh gst-launch-1.0 \ tcpclientsrc host=localhost port=11000 !\ matroskademux !\ alsasink ts-offset=500000000
0ee626b86096ba2dcb9fb62e759634bda6ba6a75
220
#!/bin/bash -x read -p "Enter the num :: " n c=0 for ((i=1; i<=n; i++)) do b=$(($n % $i)) if [ $b == 0 ] then c=$(($c+1)) fi done if [ $c == 2 ] then echo $n is prime number else echo $n is not prime number fi
6db955d58df07c34a69cc97d30286ce64453e580
295
#!/bin/bash # Author: Ajaya Kumar Loya # This script will give you the instanceID when executed. # Note this need be running on a Instance of which you need Instance ID. export INSTANCE_ID=`curl --silent http://169.254.169.254/latest/meta-data/instance-id` echo "Instance ID => "${INSTANCE_ID}
e294796885f9d6e85d30f213e86dc77f1c5946ff
2,715
#!/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...
852d66741efa219b35e78b92201d1211ac8b3970
536
ls cd EFS/ ls exit ls pwd mkdir EFS sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 fs-7bf450d2.efs.us-west-2.amazonaws.com:/ EFS sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 fs-7bf450d2.efs.us-west-2.amazonaws.com:/EFS sudo mount -t nfs4 ...
85ac1a79b97430a325e886dbc7397be2cf9726d0
3,284
#!/bin/bash # This sets up a Linux daemon to cycle through arcade cores periodically # Games are randomly pulled from all MRAs or a user-provided list # To adjust the timeout change the "sleep" value # # https://github.com/mrchrisster/mister-arcade-attract/ # Variables # Time before going to the next core timer=120 ...
6e895e3dc79de06cf8592b7ed24be02c182d3448
100
POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres POSTGRES_DB=birdie PGDATA=/var/lib/postgresql/data
36686f36c612e4456b818fa63121f83686db8539
1,240
# Default Bash aliases. source "$HOME/.bash_demo_aliases" alias sysinfo='konsole --workdir ~ --hide-menubar -e neofetch --loop' alias venv='if [ -n "$VIRTUAL_ENV" ]; then deactivate; else . venv/bin/activate; fi' alias strstrip='python3 -c "import sys; print(sys.stdin.read().strip(), end=\"\")"' alias copy='xclip -...
8833e9abd8e675cc84491babdd22d16694ad0949
779
#!/bin/sh # Regression tests for libchk # Copyright (C) 2001 The Free Standards Group Inc. # Chris Yeoh <cyeoh@au1.ibm.com> # Try runing lsblibchk printf "Running lsblibchk..." ./lsblibchk > /dev/null 2>&1 if [ $? -ne 0 ]; then echo "lsblibchk failed to run properly" exit 1 else # We can't really exp...
3b80e990851a81c69eab203251b1c071c0a09095
704
#!/bin/sh sync d="$(date +'%Y%m%d')" files=/home/pi/growmat/growmat/ramdisk/*.csv for file in $files do filename="${file##*/}" if [ $filename != "*.csv" ]; then #echo expression evaluated as true #else #echo expression evaluated as false #echo $filename newfil...
ea97bcff9a6c69a99d5031bbcacf9ed6afb17dff
557
#!/bin/sh cd $(git rev-parse --show-toplevel) # Delete the replication is not cleaning up its pods # These pods need to be deleted according to their UUID uuids=$(kubectl get pods -o json | jq '.[][].id' 2>/dev/null | grep -o -E '"[a-fA-F|0-9|\-]*' | cut -c 2- | grep '\-') for uuid in $uuids; do if [ $uuid ]; t...
7d5cc7ac6d06a27487201f24f3b92d06ed9f08b4
668
#!/bin/bash sudo apt-add-repository ppa:tista/adapta -y sudo add-apt-repository ppa:snwh/pulp -y #sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04/ /' > /etc/apt/sources.list.d/arc-theme.list" #wget -nv http://download.opensuse.org/repositories/home:Horst3180/xUbuntu_16.04...
8c5bc3a4ceeea359048dbae288b6bf40885063de
2,211
# https://github.com/BurntSushi/ripgrep/issues/169#issuecomment-312450875 # https://github.com/BurntSushi/ripgrep/issues/169#issuecomment-333229762 if [[ $(uname) == "Darwin" ]]; then # dirname on OS X behaves funky, get gdirname via # brew install coreutils export dirname_command="gdirname" else export dirname_com...
4cef82f533850b942f6e216cc2aaf0095fdb84cc
131
#!/bin/sh cp ../pacman.conf /etc/pacman.conf pacman -Syyu pacman -S yaourt vim htop tree ./install_wifif_utils.sh ./install_zsh.sh
3e2b38a9a9fa183003c183fea817df3370a4893d
56
#!/bin/bash set -eu set -o pipefail bazel build //...
9af322feafe1cc29009fd3a141ed5e86b40f239b
43
find . -type d -name '.svn' | xargs rm -rf
8ec25a57ac46801c489b605c9f942388785816e7
2,962
#!/bin/bash # currently only supports Google Compute Engine function generate_port { while :; do local port=$(shuf -i 30000-60000 -n 1) ss -lau | grep $port > /dev/null if [[ $? == 1 ]] ; then echo "$port" break 2; fi done } if [ "$EUID" -ne 0 ]; then echo "you must run this a...
dd36c6db076515d872ab7b44f319c628dbfb871d
203
#!/bin/bash set -e set -x cd /tmp/mkosi sed -i "s/DEBIAN_FRONTEND/http_proxy': 'http:\/\/16.0.96.20:3128', 'DEBIAN_FRONTEND/g" mkosi mkdir -p /tmp/output ./mkosi -C /tmp/files --output-dir=/tmp/output/
73044c329cc19907813f22aa80350163bc81c3fa
1,852
#!/bin/bash if [ "$1" == "-h" ]; then echo "Evaluate ANM labs."; echo "Usage:" echo "$1 <labfolder>" echo "Labfolder contains the downloaded folder from Its learning." exit fi myBasedir=$(pwd) timestr=$(date +%Y-%m-%d_%H%M) feedbackFile="$myBasedir/Feedback".$timestr."log" echo "Feedback will be ...
133329fd27bc22ed00894f5728764cdcbea9103b
25
while (1) echo SPAM end
51aafd789e0186638276c62120029e4fe8e43764
209
#!/usr/bin/env bats load helpers "install.sh" #function setup() {} #function teardown() {} @test '#push_post_message_list should return 0' { run push_post_message_list "msg" [[ "$status" -eq 0 ]] }
edd2fbbed2b4ec68602b7066cec1ca62af648966
257
#!/bin/bash #$ -V #$ -cwd #$ -S /bin/bash #$ -N archJob1 #$ -o submit_out_arch1 #$ -e submit_error_arch1 #$ -q SERIAL1 #$ -pe fill 1 echo Starting archival job at $(date -u) # Send current day's data to a tar file bash /home/iarsenea/trajs/archiveTrajs.sh
7ddf37cc372eca83b23048f84b0c231238b435bf
49
#!/bin/bash notes ls | grep scratch | xargs nvim
fbbaf75b75e984ee686cca6cd2b92c25da8f578f
579
#!/bin/bash if [ -f /etc/secrets/letsencrypt/domain.csr ] then SIGNED_CRT="$(mktemp --suffix=signed_crt)" sudo -u acme date >> /var/log/acme/acme_tiny.log sudo -u acme /usr/bin/python /opt/acme_tiny.py --account-key /etc/secrets-global/letsencrypt/letsencrypt-account.key --csr /etc/secrets/letsencrypt/domain.csr ...
ec7a97a33905e13b3ea94acc7d752c4c5374a9ec
294
__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
130a2dd3408615d6deaf36d9a6ea43c04eee3f5f
3,231
#!/bin/bash theme=$(awk -F '[".]' 'END { print $(NF - 2) }' ~/.config/rofi/main.rasi) #[[ $theme =~ dmenu|icons ]] && ~/.orw/scripts/set_rofi_geometry.sh wallpapers running="$(wmctrl -lG | awk '\ { m = $NF if(m == "ncmpcpp") { n = ($5 > $6) ? "default" : "vertical" a = ($5 > $6) ? a ",0" : a ",1" r = r ...
1c3e7bd3bf97eaf15edb6d8e2d0ca271de1b77b1
126
#!/usr/bin/env sh -ex ( cd ../app bin/setup.sh ) npm install node_modules/.bin/asar pack ../app/public browser/app.asar
27b13b15e218e1d4d8c088d0a8645a6d29d64f97
1,208
#!/usr/bin/env bash RED='\033[0;31m' CYAN='\033[0;36m' YELLOW='\033[1;33m' NC='\033[0m' PACKAGE="" function inquirePackage { echo "Which package do you want to release?" select yn in "eslint-config-sevenval" "tslint-config-sevenval" "stylelint-config-sevenval"; do case $yn in eslint-config-sevenv...
6bed1365a7172418afced19173e1aca6283f39f4
20,326
#!/bin/bash set -o errexit # Exit on error # Here we pick what gets to be compiled. The role of this script is to # call cmake with the appropriate options. After this, the build # directory should be ready to run 'make'. ## Significant environnement variables: # - CI_JOB (e.g. ubuntu_gcc-4.8_optio...
01c738e42a837bb6c75382769a751f245045a0ec
97
#!/bin/bash PACKAGE_NAME="Compton" install() { install_file compton.conf home false true }
00086bf994f823a940e865a0094c1be66c148502
286
#!/bin/bash echo "Creating ultimate.db template" sqlite3 ultimate.db < init_ultimate_db.sql echo "Parse data from TERC.xml" ruby parseTERC.rb echo "Parse data from revision_history.csv" ruby parse_rhcsv.rb echo "Parse data from results database" ruby parse_resultsdb.rb echo "Finished"
0ef6ad9678c97d6cfb0dc6ecced7d07bb28ab88a
732
#!/usr/bin/env bash set -euo pipefail export LC_ALL=C.UTF-8 export LANG=C.UTF-8 sed -i "s/PLC_API_KEY/$API_KEY/g" configuration.yml #sed -i "s/PLC_DATA_PATH/$DATA_PATH/g" configuration.yml sed -i "s/PLC_DATA_PATH/${DATA_PATH//\//\\/}/g" configuration.yml sed -i "s/PLC_SERVER_HOST/$SERVER_HOST/g" configuration.yml sed...
38adba090150ee4b44e4a692358e4ff54dd59411
752
#!/bin/bash # HOW TO RUN: # ./delete-cloudsql-db.sh [DATABASE_NAME] # i.e: ./delete-cloudsql-db.sh yash-db # [TODO: make the interface be this] # https://news.ycombinator.com/item?id=10736584 set -o errexit -o nounset -o pipefail # this line enables debugging set -xv # arguments currently being accepted # require...
ba6b3c09f92d5e3facb0b79657042c59b59dfb59
228
#!/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
25aa99f9cd89549afbb43c08a59dde2a225b1c8f
5,860
#!/bin/bash start_time=`date +%s` ### bash hints ### 2>&1 redirect stderr to stdout ### | tee -a log.log screen outputs also append to log file ### ; ( exit ${PIPESTATUS} ) correct program exitting status ### Only run parallel when you're sure that there are no errors. cd /home/wa...
6791fce8ea64a36024e2afc906d1f1feeb08fb45
762
export ZSH="$HOME/.oh-my-zsh" if [ -d $ZSH ]; then if [ -z "$OMZ_DISABLED" ]; then [ -z "$ZSH_THEME" ] && ZSH_THEME="agnoster" DEFAULT_USER="leoliang" plugins=( 1password brew bundler capistrano command-not-found common-aliases debian dnf dotenv ...
d1add254536e0aa723e1857261a05f8dc3195cb2
199
mongoimport --host mongodb --db makestuff --collection articles --type json --file /articles.json --jsonArray mongoimport --host mongodb --db makestuff --collection tags --type json --file /tags.json
7064825f70f0a61e7e196e70152fc8bb51266ca2
202
ls mkdir project cd project ls git clone https://github.com/rdrd010/My_Stock_Report git clone https://github.com/rdrd010/My_Stock_Report/tree/master git clone https://github.com/rdrd010/My_Stock_Report
abc59bb74d5408edbd71ff0d94b1c158c4f2f808
157
#!/bin/bash sudo sysctl -w net.ipv4.tcp_congestion_control=hybla iperf3 -c 10.2.1.1 -V -i 1 -t 300 --logfile /home/pi/Desktop/output/hybla_4-to-0.log -p 5204
6ab316789e968eacd7b61c5afc782fd5f17aa19d
311
#!/bin/bash #$ -cwd #$ -l ram.c=7.5G,h_rt=12:00:00 #$ -pe pe_slots 16 module load bbtools module load pigz . reftree.env.sh $HOME/dev/copenhagen_moat/bin/mapall_vibrio_genus.sh /global/projectb/scratch/arrivers/copenhagen/clean20151025 /global/projectb/scratch/arrivers/copenhagen/clean20151025/samplesfinal
1f2f1f304b7342808a90a597372a9aa779195ddf
609
# thanks to https://unix.stackexchange.com/questions/428018/how-to-convert-all-wav-files-in-subdirectories-to-flac # and to https://unix.stackexchange.com/questions/291108/parallel-processing-using-xargs source_ext="${1:-wav}" target_ext="${2:-flac}" shift 2 temp_dir=$(mktemp -d) trap "rm -rf ${temp_dir}" EXIT find -...
e9c199639a559ad46d1d1c465655fe3a36411782
176
#!/bin/bash BOOTIMG=$1 #I need signed ./other/boot_signer/boot_signer /boot $BOOTIMG other/boot_signer/security/verity.pk8 other/boot_signer/security/verity.x509.pem $BOOTIMG
102806a6466f05430d5b64cdc12c97370afd82da
829
#! /bin/sh rm *.cer rm *.ks ./createKeystore.sh driver ./createKeystore.sh client ./createKeystore.sh node ./exportCert.sh driver ./exportCert.sh client ./exportCert.sh node # create client trust store with driver certificate ./createUpdateTruststore.sh driver client # add node certificate to the client trust store...
bf5a09b7b7ffb92e8966cf2042a9ee02eb7830b4
278
#!/bin/bash sudo echo testing export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. firefox & cd ../ sudo ./click-2.0/userlevel/click ./click-2.0/conf/xia_ipv4.click & cd ./proxies sudo ifconfig fake0 mtu 65521 sudo ifconfig fake1 mtu 65521 python ./webserver.py & python ./proxy.py 10000 &
d531e1f187d981902e282b4a712a7e1b78a70031
799
#! /bin/bash set -e echo 'Setting env...' export MIX_ENV=prod echo 'Copying config from server...' sshpass -p $PASSWORD scp -o StrictHostKeyChecking=no ben@$IP:~/www/microblog-config/prod.secret.exs ./config/prod.secret.exs # create release echo 'Compiling assets...' cd assets npm install ./node_modules/brunch/bin/b...
45d7e2a11da7d9e969f21207130900bf0cefd8be
2,574
#!/bin/bash set -e set -x apt update # install nginx, redis apt install -y nginx redis-server # install docker curl -L https://gist.githubusercontent.com/nathantsoi/e668e83f8cadfa0b87b67d18cc965bd3/raw/setup_docker.sh | sudo bash # as root #sudo su - export TURBOVNC_VERSION=2.2.5 export VIRTUALGL_VERSION=2.6.4 ex...
b7b921b6616fb1479cc6ff9d83f443e2eddcde8b
1,184
source emscripten_base.inc say '' say '****************' say '*** Building ***' say '****************' cd "$EMSDK_ROOT" # Build in release mode to not run out of memory # https://github.com/kripken/emscripten/issues/4667 say '* Emscripten: setup'; { ./emsdk update ./emsdk install $EMSCRIPT_RELEASE --build=R...
86ae9757ad563be2aa25d96859d4f5c73e796685
12,426
################################################################################################# ####################################### EXECUTION SETUP ####################################### ################################################################################################# # NODE_ENV: ...
6ebb10fcc1e6ace1a79b4da02a0c72c29ba12165
40
docker build -t openwrt-docker-build .
8e3dcd28b21bc748628ece7f577a4b51f72c4971
371
#!/bin/bash #gnuplot -p -e 'set size ratio 1; plot "xxx.csv" with points, "point.csv" with points pointtype 7 ps 1 lc rgb "red", "path.csv" with linespoints ls 1' gnuplot -p -e 'set datafile separator ","; set size ratio 1; set xrange [-0.25:1.25]; set yrange [-0.25:1.25]; plot "'$1'" with points, "'$2'" with circles...
a3bddefefcd6fd2c4df6e97e4cf8304e306de7be
369
#!/bin/bash while true; do cd ../gnuradio cp drive_test_200.raw drive_test_200_previous.raw cp drive_test_202.raw drive_test_202_previous.raw echo "file copied" ./dual_drive_test.py & GR_PID=$! cd ../simulink octave --eval 'o_dual_drive_test' & O_PID=$! echo $GR_PID echo $O_PID wait $GR_PID echo "Gnuradio is finish...
27f8c641d065a6e623dbb7ae7e9596442a0de68b
130
if [ -f ~/.bashrc ] ; then . ~/.bashrc fi export LSCOLORS=gxfxcxdxbxegedabagacad export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
a9ebaac2c6842b3798d5fc10b5ea4f7dfbe2760c
73
#!/bin/bash mysql -uhackers -hlocalhost -pHn9~60/81x -Dhackers < "$*";
5271b9c5f14df92c9648ecc46d825a81770c34d1
577
echo I am provisioning... date echo "Start" > /etc/vagrant_provisioned_at date >> /etc/vagrant_provisioned_at apt-get update echo mysql-server mysql-server/root_password password password | sudo debconf-set-selections echo mysql-server mysql-server/root_password_again password password | sudo debconf-set-selections apt...
e64dd2701d14465d601e7fef5696207641a339f0
1,266
#!/bin/bash # # Generate PDF files from .pod/.pm files # # my lazy script for generating all (at least for me) relevant pod documents # converted to PDF in a tree that is parallel to the CPAN installation # not perfect but works for me. # # pod2pdf is required, please install from CPAN first! # http://search.cpan.org...
340d3f5e8c032a5b867ddac414615540bbf89b11
2,353
#!/bin/bash # Note that we are running sudo'd ### CONFIG tempBaseDir=/private/tmp/MailTrackerBlocker-Installation-Temp running="${tempBaseDir}/running" currentMacOSVer="$(sw_vers -productVersion)" macOSBigSur="11.0" targetDir=/Library/Mail/Bundles ### UTILITY mtb_log() { echo "[mailtrackerblocker] $@" } ### MI...
e36175be1da2c968d4558f4f5ad78c954bec4a67
386
#!/bin/sh # .f - aliases alias quit="exit" alias c="clear" # lazy fingers alias a="awk" alias p="pwd" alias g="grep" alias l="less" alias j="jobs" alias s="sed" alias ll="ls -alhF --color=auto" alias l="ls -CF --color=auto" alias cp="cp -rvi" alias scp="scp -rv" alias mkdir="mkdir -p" alias fdm="fdm -k" alias powero...
cfc1ff0cb7a8af96a07f4f197fd334176667f8ea
118
FLASK_ENV=development FLASK_APP=voluntarily.app:create_app SECRET_KEY=75a87bd9debdeefebb38411e3b1de842774b88c8bde5f504
e4dd4a70a0fb3b60464059dbd8cc4517dcfaf03d
282
ID_KEY=AYjRlnRRtj8Idi7w4X10ij7RDOGoCarBi6NlTc3h6jAGACgEsddhvJbVUkdx6-m-Bnwqi20JOx0N9Uv7 SECRET_KEY=EGoi3Lqh0st9W128pdJWft98LSc3Zvr1wxxF2ezwTGGTesZGl1XCJj_dK7s6gAdKZQTOyJnPN8iwSYn7 paypal_api=https://api.sandbox.paypal.com/v2/ STRIPE_TOKEN=sk_test_KdAlu0JrEGyC5hmQqPGnk1FP00MZ1WZjmE
01dd9bd87a5d1914676ab06b098ce9263c25d9ed
747
#!/bin/bash echo "COMPILING FOR INCLUSION IN THE BIOS" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" export PATH=$PATH:$DIR/../../tools/fpga-binutils/mingw32/bin/ ARCH="riscv64" echo "using $ARCH" # Following based on FemtoRV compile scripts https://github.com/BrunoLevy/learn-fpga/tree/...
1a8369b8d35b021abdba2d6fe638dc8ca309bb62
1,781
#!/usr/bin/env bash set -e if [ $# -ne 1 ]; then echo "Usage: sh 21_relocate_WS_messages.sh <data-root>" echo "Unpacks labelled messages for reallocating WS data" exit fi DATA_DIR=$1 rm -rf "$DATA_DIR/21 WS Migration data for Coda" mkdir -p "$DATA_DIR/21 WS Migration data for Coda" cd ../relocate_ws_me...
61985cd7d12c65acf3ff237e9ff403f602a49eb8
1,450
#!/bin/bash repofile="files-repository1.txt" repourl="http://6.6.6.92" savepath="/opt/ftp_down" #down>edit, if you need change your savepath before you exec this scripts. #get files-repository1.txt export AUTH=root:root mkdir -p $savepath && cd $savepath curl -u $AUTH -s $repourl/$repofile > $repofile #loop judge: ...