blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
d9447b2c0398a53f9e7173c16926353e1556149f
574
#!/bin/sh # # func/TS # # a convenient way to create an environment for collaborative testing # # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net> # Released under the terms of the Artistic Licence 2.0 # # Source repository: git://git.madduck.net/etc/zsh.git # local topic filename ret topic="${(j:_:)@}" fi...
5bcc8fb6f054a7d641b8102c7c1d169b92ff3375
83
docker build -t clean-architecture . && docker run -dp 3000:3000 clean-architecture
2d21a5eff7a96de853015749d9d5927c6a75212a
1,598
#!/bin/bash source "${BASH_SOURCE%/*}/utils.sh" # Global definitions ROOT_LOCAL_DIR="${BASH_SOURCE%/*}/../../.." ROOT_DIR="$(absolute $ROOT_LOCAL_DIR)" BUILD_DIR="$ROOT_DIR/build" CMAKE_DIR="$ROOT_DIR/cmake" CI_DIR="$ROOT_DIR/ci" SCRIPTS_DIR="$CI_DIR/scripts" PYTHON_DIR="$SCRIPTS_DIR/python" PYTHON_VENV_DIR="$PYTHON_...
cebcc1090ab329c937e6a72ea1be8596a6e6245d
343
#!/bin/bash itemnumber=$1 id=MeganKre-71ab-4611-9fc8-68195808373e singleitemurla="http://open.api.ebay.com/shopping?callname=GetSingleItem&responseencoding=XML&appid=" singleitemurlb="&siteid=0&version=515&ItemID=" singleitemurlc="&IncludeSelector=Description" request=$singleitemurla$id$singleitemurlb$itemnumber$single...
4304aeabe77c4d9e570101d20b47b504e6fd1670
497
#!/usr/bin/env bash algorithm="cryptonight" . ~/.local/etc/nicehash mkdir -p ~/.nicehash cd ~/.nicehash sed -i "s/^\"wallet_address\".*/\"wallet_address\":\"$address.$worker\",/" ~/.local/etc/nicehash-cryptonight sed -i "s/^\"pool_address\".*/\"pool_address\":\"$algorithm.$location.nicehash.com:3355\",/" ~/.local/etc/n...
0ac8ea1c14769bf1aa4578374ad604b9016c49b1
66
#!/usr/bin/env zsh arch -x86_64 /usr/local/Homebrew/bin/brew "$@"
445c57d1febde2ddb1e39ca6724aee35ebfb2877
80
gcc -o a main.c io.c f4f.c f4x.c hash.c bootstrap.c manifest.c ./a a.flv
7d1e3340954338455189953232532d6389e6ec0e
1,257
#!/bin/bash # Remove docker engine key to make it unique sudo rm -f /etc/docker/key.json sudo service docker restart # Configure the docker daemon sudo mkdir /etc/systemd/system/docker.service.d cat << "EOF" > /etc/systemd/system/docker.service.d/daemon.conf { [Service] ExecStart= ExecStart=/usr/bin/dock...
f462868b1d1f1f5977ede4f3d0f3a9bef4f274bf
111
#!/bin/bash THDS=$1 TC=$SYSBENCH_LUA_SCRIPT_LOCATION"/oltp_update_non_index.lua" ./workload/run.sh $THDS $TC
2086c8238ec1c74bd3212ca132307e5aeaeb974e
59
# .rails_env_production.bash export RAILS_ENV=production
f8c374098b20cc70cdc9613931f6579dbeab9aeb
138
#!/bin/bash BIN=$1 OUTDIR=$2 TIMEOUT=$3 INDIR=$4 timeout -k 9 ${TIMEOUT}s $BIN 698 0 0 990 464 5856 3 640 501 1 0 0 &> $OUTDIR/o34
793dd1ce13a7734cf5bc17fbdeb7204faa32b2b2
1,853
#!/bin/bash #Copyright (c) 2008, Jay Wang #All rights reserved. # #Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this list of conditions and th...
bef20e195796a7f3f42fe418f75d8eed03d5fede
576
#!/bin/ksh . /`uname -n`/informix/etc/`uname -n`_1.inf_setup PATH=.:/bin:$INFORMIXDIR/bin:/uswsup01/usw/offln/bin:/usr/sbin:/usr/local/bin:/uswsup01/usw/reports/monthly/bin:$PATH #INFORMIXSERVER=uswsup01_1; export INFORMIXSERVER #INFORMIXDIR=/informix-$INFORMIXSERVER; export INFORMIXDIR #PATH=.:/bin:$INFORMIXDIR/bin:...
24dbc3d417f64596d6d26e184d0c88ab3f188b29
416
export PATH="/opt/jdk1.7.0/bin/:$PATH" export JAVA_HOME="/opt/jdk1.7.0" exec "/opt/jdk1.7.0/bin/java" -Xmx2000m -classpath "/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/opt/jdk1.7.0//lib/tools.jar" -Dant.home="/usr/share/ant" -Dant.l...
5012ada26c3b37a791b292384f271957213ba0e8
57
#/bin/sh docker build --rm -t test -f build.dockerfile .
66f3a5a5413a2b35553995a7dd9a2195dd063d70
145
cd doc for i in $(seq 1 2); do pdflatex -shell-escape documentation.tex; done cd .. mkdir -p public/doc cp doc/documentation.pdf public/doc/
8941d54ab4e709dbf9bd41fe10a24af268708a79
64
mkdir Application/Runtime sudo chmod -R 777 Application/Runtime
3826209ed978f37f67fad3cb7f7c761903988223
14,457
#!/bin/bash # This script provides common script functions for the hacks # Requires ONION_ROOT to be set set -o errexit set -o nounset set -o pipefail # The root of the build/dist directory ONION_ROOT=$( unset CDPATH onion_root=$(dirname "${BASH_SOURCE}")/.. cd "${onion_root}" pwd ) ONION_OUTPUT_SUBPATH="${...
9c9c48f9ac03b0ebe3083cb9259cf16bc8517afc
475
#!/bin/bash SCRIPT_LOC="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" . ${SCRIPT_LOC}/shared-vars.sh ${SCRIPT_LOC}/stop-server.sh || error "Could not stop server" # Prepare configuration files echo "eula=true" > ${DEPLOY_LOC}/eula.txt cp -f ${SCRIPT_LOC}/${BASE_SERVER_PROPERTIES} ${DEPLOY_LOC}/s...
6c4be1b7d0ef7962a82a1f6ccc9d889ced20a6e4
478
#!/bin/bash python src/train.py --model rf-shallow --normalize standardize --datamanip smote-.1 --fold 0 python src/train.py --model rf-shallow --normalize standardize --datamanip smote-.1 --fold 1 python src/train.py --model rf-shallow --normalize standardize --datamanip smote-.1 --fold 2 python src/train.py --model ...
19d065e9809e8108dbf2fd8c9a264711e60fe9cb
469
#!/bin/bash # Example1 i=0 while [[ $i -lt 5 ]] do echo "Number: $i" ((i++)) if [[ $i -eq 2 ]]; then break fi done echo 'All Done!' # Example2 for i in {1..3}; do for j in {1..3}; do if [[ $j -eq 2 ]]; then break fi echo "j: $j" done echo "i: $i" done echo 'All Done!' ## Con...
42ec5e446b7603cfed4ef742a24805732397d8b8
896
#!/bin/sh # Run: curl -s https://raw.githubusercontent.com/Surveily/Images/master/script/wg0.sh | sudo sh set -e if [ `whoami` != root ]; then echo "Please run this script with sudo:" echo "sudo $0 $*" exit 1 fi # Setup wg0 chmod 600 /etc/wireguard/wg0.conf systemctl enable wg-quick@wg0.service systemc...
aed6eb3bc7273cc4f9498a2d95881c8b774c2465
7,764
#!/bin/bash # ===============LICENSE_START======================================================= # Acumos Apache-2.0 # =================================================================================== # Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. # ============================================...
c2ce879cfd488f1554dccb895339df0692e7db42
425
# seqs=(c041 c042 c043 c044 c045 c046) # seqs=(c010 c016 c017 c018 c019 c020 c021 c022 c023 c024 c025 c026 c027 c028 c029 c033 c034 c035 c036) seqs=(c006 c007 c008 c009) gpu_id=0 for seq in ${seqs[@]} do CUDA_VISIBLE_DEVICES=${gpu_id} python detect2img.py --name ${seq} --weights yolov5x.pt --conf 0.1 --agnostic --...
3b12047601db69aa87fd48f9aa9883d7f6c40275
494
echo "usage:$0 <kill_keyword_in_ps_ef>" echo ".e.g.: $0 firefox" echo "^C to break, anykey to continue...";read readline echo "below ps -ef results will be killing...";read readline2 ps -ef | grep $1 echo "^C to break, anykey to continue...";read readline #ps -ef|grep wget |tr '\b' ' '|cut -d" " -f4-9|sed 's/^ *//g'...
e62ce6672a88297054c0cf3a3d1ac9e8d16834cf
987
# Maintainer: Philip Müller <philm[at]manjaro[dot]org> # Developer: Filipe Marques <eagle[dot]software3[at]gmail[dot]com> pkgname=packnroll pkgver=1.0.0 pkgrel=1 pkgdesc="It's so easy doing the packaging process !" arch=('i686' 'x86_64') url="https://github.com/filipe-marques/packnroll" license=('GPL') depends=('qt5-b...
2d105a8f7309c070f335f0ec0921a5ef18a34be2
78
./test_rw_lock & ./test_rw_lock & ./test_rw_lock & echo abcd > /dev/rw_lock &
3c604620259df5a434994e72980b4d6b9319afdf
282
#!/bin/bash esearch -db sra -query ERS1349673 | esummary | xtract -pattern DocumentSummary -ACC @acc -block DocumentSummary -element "&ACC" | cut -f 5 > acc/ERS1349673 bash /home/ubuntu/test/PSST/psst_2.sh -s acc/ERS1349673 -n snp.txt -d out/ERS1349673 -e jlever@bcgsc.ca -t 1 -p 1
05033d40e3fe94aa8f85fa5b86dfa3b4b43eee3d
916
# Calculate the number of `repeatNumber` estimated by EHdn-v0.8.0 # Output folders for EHdn GRCh37 OUTPUT_PATH_b37=/genomes/scratch/kgarikano/GEL_STR/EHdn/output_EHdnv0.8.0/numberRepeats/GRCh37/ # Input folders for EHdn v0.8.0 for GRCh37 INPUT_PATH_b37=/genomes/scratch/kgarikano/GEL_STR/EHdn/output_EHdnv0.8.0/GRCh37 ...
43ecb09e51ac45fa3802fb0a7c776e62e9c7cd0c
159
#!/bin/sh echo "Start dotnet bootstrap ~~~" export DOTNET_ROOT=$(pwd)/rt export PATH=$(pwd):$(pwd)/rt:${PATH} dotnet ./src/bin/Release/netcoreapp3.1/index.dll
6e3248836b99720d6efa7dd00c668ac075399b7d
547
DISK_PATH=/datadrive/NPS/ python eval_cmd.py --model_weights $DISK_PATH/exps/arm_16_5em5_greedy_nogrammar_47+/Weights/best.model \ \ --vocabulary $DISK_PATH/data/1m_6ex_karel/new_vocab.vocab \ --dataset $DISK_PATH/data/1m_6ex_karel/test.json \ --eval_nb_ios 5 \ ...
40fafd765f3b412d36f27411e9dbfe133f2aee94
383
#!/usr/bin/env bash # 批量运行run.sh # 遍历指定文件夹,然后运行其中的run.sh脚本 # check parameters if [ $# -ne 1 ] then echo Please input directory exit 1 fi dir=$1 for d in $dir/* do if [ -d $d ] then echo start $d/run.sh cd $d bash run.sh else echo $d is not directory fi done...
cd3adba12c907792f3acdc76b6302ef54ac944f3
3,185
#! /bin/sh -x ############################################################################ # # MODULE: osmphgarmin map build script # # AUTHOR(S): Ervin Malicdem schadow1@s1expeditions.com # Emmanuel Sambale esambale@yahoo.com emmanuel.sambale@gmail.com # # PURPOSE: Shell script for creatin...
3e13c4796eb3387683c0de84685a78e1426a4bbf
2,860
#!/bin/bash #------------------------------------------------------------------------ # A script to copy the necessary credentials into the right places in the # build. # #------------------------------------------------------------------------ # Utility methods # fatal() { echo "credentials.sh: fatal: $1" 1>&2 ...
6a0a8b5cbe65623434e83ed49e653b31c6445eae
340
#!/bin/bash DIR="$1" for file in $DIR/*; do if [ -s $file ] then rm -f $file fi done #Kasowanie wszystkich plików pustych (o zerowej wielkości) w zadanym katalogu (parametr wywołania skryptu). Skrypt powinien tworzyć w zadanym pliku listę skasowanych plików. Nie powinien analizować dołączeń symbol...
0995098a59ac2a61f343395653f11a4b0cb7fe88
228
#! /bin/bash ./crash 6 touch test/helloWorld.txt echo "Hello World" > test/helloWorld.txt touch test/password.txt echo "My Password is PA55WORD" > test/password.txt ./crash -1 echo "My Password is: " cat test/password.txt
069741a7c1af52475d9216c30f07b86a4c92769f
56
if [ "${INCSSHFS}" == "Y" ]; then INCFUSETHREE="Y" fi
e88610f2bab0db8346938fe9bc9f1ae7de0113c2
220
#!/bin/bash #NAVETEUR Lucas svgdir () { #Vérification des arguments if [ -z $2 ] || [ ! -z $3 ]; then echo "Usage : bash 04-doslike.sh <arg1> <arg2>" exit fi cp -r $1 $2 } svgdir $1 $2
88ae802c5b45615d59c2934ae12f9bfb4705bd01
412
#!/bin/bash # Quick script to cat our ssh config entries, and hand over the host name blocks to fzf for selction. # That selection is then run directly with ssh since it's a named HostName entry. TARGET=$(cat $HOME/.ssh/config | grep -i -G "Host\ " | awk '{print $2}' | fzf --border=rounded --reverse) # return if canc...
0b8daaabdddef08cc2d8edd5f8da739e346bc795
44
#!/bin/sh echo "Starting gbans..." exec "$@"
44e1f0af5ad48057bd082aec232a1b17845b0666
502
#!/bin/bash echo 信息: 开始配置test_r2c05工程。 #需要配置的项目。 SRC_DIR="$BUILD_ROOT/src/test_r2c05" SRC_INC="$BUILD_ROOT/import/r2c05/include $BUILD_ROOT/src/cmd_base $BUILD_ROOT/src/alm_common" DEST_DIR="$BUILD_ROOT/bin/test_r2c05" DEST_BIN="run.out" DYN_LIBS="-lpthread" STAT_LIBS="$BUILD_ROOT/bin/alm_common/alm_common.a $BUILD_R...
87aa4956bf9aeb867eea48641cf7a55b8dfeff82
898
#!/bin/bash # Various ways for writing for-loops clear echo "First way (for i in 1 2 3 4 5):" for i in 1 2 3 4 5 do echo "Hello!" done echo echo "Second way (for i in {1..5}):" for i in {1..5} do echo "Holla!" done echo echo "Third way (with step/increment):" for i in {0..20..2} # {start..end..step} do echo $i ...
36fa499a54f0cb58147f96aa0e6737d88e5379a2
7,023
#!/bin/zsh # plugin manager # unplugged: https://github.com/mattmc3/zsh_unplugged # ----------------------------------------------------------------------------- ZPLUGINDIR=$HOME/.zsh/plugins # clone a plugin, find an init.zsh, source it, and add it to your fpath function plugin-load () { local giturl="$1" local...
2ec91fa94233b8bd6c321ef360f0c84052edaeae
163
#!/usr/bin/env bash array=(a b c d) echo ${#array[@]} echo ${#array[*]} echo `expr 2 + 5` echo `date` for i in array do echo ${i} done curl www.baidu.com
8bac2ccec812b686ead15f7d6472f18a46019031
1,095
#!/bin/bash printf '\nInstall Kubernetes dashboard from Github repository. Check at https://github.com/kubernetes/dashboard\n\n' kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.3.1/aio/deploy/recommended.yaml printf '\nCreate a service account in the default namespace.\n\n' kubectl create...
7fa76d375321575207fc6e86d32bdb3f283a00b5
619
#!/bin/bash cd /usr/local/ALM/staging for file in *; do if [[ "$file" = *metadata* && -N "$file" ]]; then cp $file /opt/shibboleth-idp/metadata/ elif [[ "$file" != *metadata* && -N "$file" ]]; then c...
686b164dbbdff05c71744bd1b02fbaee863f0760
313
#!/bin/sh git ls-files -oi --exclude-standard find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch find . -name *.o -print0 | xargs -0 git rm -f --ignore-unmatch find . -name *.out -print0 | xargs -0 git rm -f --ignore-unmatch find . -name test.dSYM -print0 | xargs -0 git rm -rf --ignore-unmatch
b03542887d59d6c084888cbe10b3675ccb4ee11b
9,488
#!/bin/bash wget 'http://www2.dgi.inpe.br/api/download/TIFF/CBERS4A/2020_06/CBERS_4A_WPM_RAW_2020_06_01.13_04_30_ETC2/196_138_0/4_BC_UTM_WGS84/CBERS_4A_WPM_20200601_196_138_L4_BAND0.xml?key=leandro.biondo@inma.gov.br&collection=CBERS4A_MUX_L4_DN&scene_id=CBERS4A_WPM19613820200601' wget 'http://www2.dgi.inpe.br/api/dow...
cee99c436e4e59d40905092f9d2bf661051cc845
1,387
# Maintainer: grimsock <lord.grimsock at gmail dot com> # Contributor: Fraser P. Newton <fpnewton90 [at] gmail [dot] com> pkgname=gcp-cups-connector pkgver=v1.12.r2.g27a84c8 pkgrel=1 pkgdesc="The Google Cloud Print (aka GCP) CUPS Connector shares CUPS printers with users of Google Cloud Print." arch=('i686' 'x86_64' '...
55aebc2b807f7ccb006019f79593968f6235eaac
451
#!/bin/bash magicNumber=$(( $RANDOM % 100 )) ## write your code here ## read number win=$[] while : do if [ $number -lt $magicNumber ] then echo $number echo 'less' else if [ $number -gt $magicNumber ] then echo $number echo 'greater' else ...
2e4ac8304af642bc37a1c4827c1b4b5f6fa077ed
993
#!/bin/sh # # --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../devfsd/devfsd.init # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # # More information can be found in the files COPYING and README. #...
1adfbaff0582a6d38d96c08a7e2bd804dde351fa
299
#!/bin/bash # Copyright 2021 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. source "$(dirname $0)/common.sh" ./tools/dev_container --hermetic ./tools/run_tests --target=vm:aarch64 --arch armhf -v
70daf997dc758e8b65324df5aa7a0963b74c7d76
573
#!/bin/bash set -e if [ "$1" = 'teamcity-server' ]; then SCRIPT=./bin/$1.sh shutdown() { local signal=$1 local pid=$2 echo Received $signal, sending TERM to PID $pid. pkill -TERM -P $pid } # More information: http://veithen.github.io/2014/11/16/sigterm-propagation.html trap 'shutdown INT ...
976bbd030c51ca5930491a27ca3b63d0ad2922b5
294
#!/bin/bash cd ./datastruct/build/ cmake .. echo $? cd - cd ./memory/build/ cmake .. cd - # pwd cd build ar x ../memory/build/libmemory.a ar x ../datastruct/build/libdatastruct.a ar rc libscl.a *.o cd - #ar rcs libscl.a ./memeory/build/libmemory.a ./datastruct/build/libdatastruct.a
e05db837a1a933e1348160fdd105aae44e920532
138
#!/usr/bin/env bash mogrify -path ./images/resized -resize 1280x800^ -gravity Center -extent 1280x800 -format jpg ./images/screenshot*.png
d2aaa36bfca7225415cbd16c76afde8a11a36eb6
726
#!/bin/bash ARGS="$@" GC="\033[1;32m" YC="\033[1;33m" EC="\033[1;0m" printgreen() { printf "${GC}%s$@${EC}\n"; } printyellow() { printf "${YC}%s$@${EC}\n"; } # get all tls type secrets OUTPUT=$(kubectl ${ARGS} get secret -A | grep "kubernetes.io/tls") # get namespaces NAMESPACES=$(echo "$OUTPUT" | awk '{print...
9789356bdb4fc1b7db7289ac096645290e63b5a5
1,191
#!/bin/bash # Installs Homebrew - will install xcode command line tools if missing /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # Installs brew casks / apps brew install --cask google-chrome brew install --cask slack brew install --cask 1password brew install --cask ...
83ccebe9bb244e52f80ef1ab22efe06afced2b38
2,302
#!/bin/sh CATTER="" if type bat &> /dev/null; then CATTER="bat -p --paging=never --wrap=never" else CATTER="cat" fi eval $CATTER <<POKE  ▄▄▄▄▄ ▄▄▄[38;5...
16de1c8dd332359adb7ee88554d2271ed4a6811f
1,561
#!/bin/bash # LAUNCH EXAMPLES # - launch watcher, log on file and kill old istances # ./cpuwatch 40 >> cpuwatch.log & if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then echo "cpuwatch [THRESHOLD:40] [SLEEP:0] [AVERAGE_FOR_SECONDS:30] >> /path/to/log" echo " the script check if the 'instant' CPU percantage usa...
09daa6a64f0ca28c7e8cf464514e7a8aee83564c
60
cd /app crystal build discordcr.cr -o /discordcr&&/discordcr
a1e04fb2628bd2b4a2dfd3e4ae6932e14ddbc66d
108
MYSQL_ROOT_PASSWORD=rootgroot MYSQL_DATABASE=site MYSQL_USER=dbuser MYSQL_PASSWORD=ghbt[fkb MYSQL_DB_HOST=db
50519dcf5421e57b192480a3f87d231d8bc5f0fa
222
#!/usr/bin/env sh #service openstack-heat-engine restart crm resource restart p_openstack-heat-engine service openstack-heat-api restart service openstack-heat-api-cfn restart service openstack-heat-api-cloudwatch restart
0636e393bbf800e3e77f06afd6425185ceec9fd0
1,974
#!/usr/bin/env bash # Check the backups made with restic to Backblaze B2 for errors. # See restic_backup.sh on how this script is run (as it's analogous for this script). set -o errexit set -o pipefail [[ "${TRACE-0}" =~ ^1|t|y|true|yes$ ]] && set -o xtrace # Clean up lock if we are killed. # If killed by systemd, li...
4c7dde34514652319bdd90cf34bd571bf0624c0b
265
#!/usr/bin/env bash # This script is displaying "Holberton School" 10 times h="0" while [ $h -lt 13 ] do echo "Hour: $h" i="1" while [ $i -lt 60 ] do echo "$i" case $i in "59") ;; esac i=$((i+1)) done h=$((h+1)) done
ec32b6dac20667db074e6db0033140b579cb11ec
147
#!/bin/bash set -e set -x CGO_ENABLED=0 godep go build -a github.com/jimmidyson/jolokia-proxy docker build -t jimmidyson/jolokia-proxy:latest .
4e5d6340b00366075d6a40a1bca0899aaaa508a9
932
#!/bin/bash #VBoxManager bash script handler command=$1 server="${@:2}" case "$command" in 'start') echo "Will start machine: ""$server" VBoxManage startvm $server --type=headless echo "DONE; \n" ;; 'save') echo "Will save machine: ""$server" for server do if [ "$server" != "save" ] && [ "$server" ...
53c45ecee013271952cddcfccb3e062d8638832d
37
#!/bin/sh docker build -t diapers .
6b93d38acfefbae9e8005ac6d46c90ac02aed9eb
409
docker-compose run kafka /opt/bitnami/kafka/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 \ --topic wiki_event_raw --partitions 1 --replication-factor 1 docker-compose run kafka /opt/bitnami/kafka/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 \ --topic wiki_event_stats --partitions 1 --replicati...
53da450516d96a9442f5a16ac36c2cf8f5f410f5
257
#! /bin/sh case "$1" in 0) # uninstall echo "stopping service beeeon-server..." /usr/bin/systemctl stop beeeon-server.service \ && echo "service beeeon-server has been stopped" \ || echo "failed to stop beeeon-server service" ;; 1) # upgrade ;; esac
ba84782fc6c2c215a3907ce85759eb33da3c44f8
341
#!/bin/bash set -x aocl help > /dev/null 2> /dev/null || source ~/fpga/init_env.sh rm -rf bin/* ./scripts/compile_kernel_arria10 align || exit 1 # ./scripts/compile_kernel_arria10 core || exit 1 # ./scripts/compile_kernel_arria10 post || exit 1 make BIN=bins/bin CPP=host/src/align_3k.cpp || exit 1 bins/bin/host ~/...
7d973176a9c5b2b332ae57d4c567f0772a45f97c
296
#!/bin/bash #$ -l rmem=35G #$ -l mem=35G #$ -M n.bulgakova@sheffield.ac.uk #$ -m bea cd /mnt/fastdata/md1nbu/PRJNA369618/fastq/SRR5224080 module load apps/R/3.3.1 R CMD BATCH count_reads_batch.R count_reads_batch.R.o$JOB_ID
7c1475736833fe3923d506927ffa759148b880fd
94
/Users/hashtagf/go/bin/swag init --dir cmd/ --parseDependency --output docs docker-compose up
2d1c7249239637a08e9a7edd44aa9e1d014facc3
256
# Based on https://github.com/standardfile/ruby-server/blob/master/docker/environments/.env.app.development RAILS_ENV=development RAILS_SERVE_STATIC_FILES=true DB_CONNECTION=mysql DB_HOST=db DB_DATABASE=standardfile DB_USERNAME=root DB_PASSWORD=secret123
977e9b064ea36bcb6fddbb2fffddbc2d50bf76a1
3,831
#!/bin/bash set +e # usage: file_env VAR [DEFAULT] # ie: file_env 'XYZ_DB_PASSWORD' 'example' # (will allow for "$XYZ_DB_PASSWORD_FILE" to fill in the value of # "$XYZ_DB_PASSWORD" from a file, especially for Docker's secrets feature) file_env() { local var="$1" local fileVar="${var}_FILE" local def="${2:-}" i...
d45718f916a4d05ef120c6fdca3876e10b7351ae
81
#!/bin/bash #sleep 120 /bin/umount /SDS /bin/mount -o rw,remount /SDS exit
3a7f0f0e31f36d9b3950e7755e3bdb2f319e8641
649
#!/usr/bin/env sh # Create environment nodes docker exec zookeeper /opt/zookeeper/bin/zkCli.sh create /env '' docker exec zookeeper /opt/zookeeper/bin/zkCli.sh create /env/dev '' docker exec zookeeper /opt/zookeeper/bin/zkCli.sh create /env/dev/sd '' docker exec zookeeper /opt/zookeeper/bin/zkCli.sh create /env/prod '...
28f301624e52eb595497b99c51a7aab30d3bfb67
1,219
#!/usr/local/bin/zsh function check_blacklist() { local list local f list=(/bin /usr/bin /sbin /usr/sbin /lib /libexec /usr/lib /usr/libexec /rescue) f="${1}" for l in ${list}; do if echo ${f} | grep -q "^${l}"; then return 1 fi done return 0 } function do_the_procstat_thing() { local p local bin ...
d97b5eafef6cfce16ffb093c5d2437a34c192c36
47
#!/bin/sh java -cp ./salsa1.1.5.jar:. pa2/Main
07ae8cbf9b1591a18d09b15fd3d23779700cb378
486
#!/bin/bash # # a general scrot wrapper script # ### message() { echo 'usage: sshot [ -n <name> ] [ -f ] [ scrot options ]'; exit 1; } shots_dir='~/pictures/screenshots' name="desktop_$(date +%y%m%d%H%M)" # grab some options for us, pass anything # else directly to scrot while [ -n "$1" ]; do case $1 in -h|--h...
1e9f88e2b353f6afcc93a294792c11baa8460ef5
435
#!/bin/bash # Enable RPS (Receive Packet Steering) rfc=4096 cc=$(grep -c processor /proc/cpuinfo) rsfe=$(echo $cc*$rfc | bc) sysctl -w net.core.rps_sock_flow_entries=$rsfe for fileRps in $(ls /sys/class/net/eth*/queues/rx-*/rps_cpus) do echo ffffffff > $fileRps done for fileRfc in $(ls /sys/class/net/eth*/queues...
d1fb04d8a702b66a93baa9962c2f62c27851db0e
960
#!/bin/bash arguments_count=$# cargo_addition="" if [ "$1" == '-e' ] || [ "$1" == '--example' ]; then if [ $arguments_count != 3 ]; then echo "should be 3 arguments, but you provide only" $arguments_count exit 1 fi example_name=$2 cargo_addition='--example '$example_name elf_file=$CARGO_TARGET_DIR'/thumbv7...
b7055289c46c11c5b6b72b5286f63f8c89afdc3e
884
#!/bin/bash if [[ -z "${CIRCLE_TOKEN}" ]]; then echo Cannot trigger release workflow. CircleCI user token not found. exit 1 fi BRANCH=1.3.x echo -e "\nTriggering release workflow on branch: ${BRANCH}.\n" status_code=$(curl --request POST \ --url https://circleci.com/api/v2/project/github/gresham-computing/op...
ae49c0b7c3540c40f96b2cdd8729e559a4e1b6f7
1,024
# Maintainer: Kyle Rassweiler <dev at kylerassweiler dot ca> pkgname=refind-theme-dracula pkgver=1.0.0 pkgrel=2 pkgdesc="Simple theme inspired by the Dracula palette" arch=('any') url="https://github.com/rassweiler/refind-theme-dracula" license=('MIT') depends=('refind') source=("${url}/releases/download/${pkgver}/${p...
98448c6fb0de03c3d21e43d9440a96fb9c50fdff
513
mkdir -p build cd build cmake -G "Ninja" \ -D CMAKE_BUILD_TYPE:STRING="Release" \ -D CMAKE_INSTALL_PREFIX:FILEPATH=$PREFIX \ -D CMAKE_PREFIX_PATH:FILEPATH=$PREFIX \ -D CMAKE_INSTALL_LIBDIR:FILEPATH=$PREFIX/lib \ -D SIMAGE_RUNTIME_LINKING:BOOL=ON \ -D USE_EXTERNAL_EXPAT:BOOL=ON \ ...
464f2a98e416064bd148329f77c3550c6cc1e597
134
export DB_NAME="db.sqlite3" export SECRET_KEY="thisIsASuperSecretKeyForHurbChallengeDevEnvOnlyPleaseDoNotUseThisKeyInProductionEnvs"
59e647d01371098186fbd4d2f69aa0589449bea5
843
################################################### * envs export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles export NODE_BUILD_MIRROR_URL="https://npm.taobao.org/dist" ################################################### * inits eval "$(nodenv init -)" eval "$(pyenv init -)" [ -f "~...
d5e8777770492b1dff0f5bb4e0babcd48588a56d
1,347
#!/bin/bash # Description: A script to call the AWS CLI to create a new iam user. # This script requires the latest version of the AWS CLI and should be run on a unix environment. # You'll also need to make the script executable using the following command # `chmod +x ./setup-new-iam-user.sh` # # Usage: # Run from comm...
72008c1f388520a4ea62a4e16d4028936886b3e0
491
#!/bin/bash # AMX Mod X # # by the AMX Mod X Development Team # originally developed by OLO # # This file is part of AMX Mod X. # new code contributed by \malex\ test -e compiled || mkdir compiled rm -f temp.txt for sourcefile in *.sma do amxxfile="`echo $sourcefile | sed -e 's/\.sma$/.amxx...
73f7e2ff2ba940bbdb17a7f45e1f474eb8ab47a3
1,074
pkgname=python-pomegranate pkgver=0.6.1 pkgrel=1 pkgdesc="Pomegranate is a graphical models library for Python, implemented in Cython for speed." arch=('i686' 'x86_64') # packages contains arch dependend libs url="http://pypi.python.org/pypi/pomegranate/" license=('MIT') depends=('python' 'cython' 'python-networkx' 'py...
c5b299b93e1727e3f892890d93425a5260502e63
2,130
#!/usr/bin/env bash # Reset project git clean -df git checkout -- . # Rollbacks in case I need to re-run this script # rake db:rollback # rake db:rollback RAILS_ENV=test ## scan/replace Team/team to Organisation/organisation find app -name "*.rb" -print | xargs sed -i 's/Team/Organisation/g' find app -name "*.rb" -p...
ab4e4f5eb5a41468ba494da408826849acc5a604
18,903
#!/usr/bin/env bash # creates derivative video files # requires ffmpeg compiled with libx264 (yuv 8-bit), libvpx, libopus, and ffprobe # defaults, can be overwritten with options FFMPEG_PATH="ffmpeg" FFPROBE_PATH="ffprobe" # default ffmpeg input options INPUTOPTIONS+=(-nostdin) INPUTOPTIONS+=(-vsync 0) INPUTOPTIONS+=...
99c6d4251f217437d4db0499b25dddb09feedbae
72
for file in "${HOME}"/.config/bash/*.bash; do source "${file}" done
ea456deff1dbba25f12ffb2c6dc16f34069f144d
453
#!/bin/bash _hk_commands() { hk help commands|cut -f 2 -d ' ' } _hk() { cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} if [ $COMP_CWORD -eq 1 ]; then COMPREPLY=( $( compgen -W "$(_hk_commands)" $cur ) ) elif [ $COMP_CWORD -eq 2 ]; then case "$prev" in help) ...
4b0513740a918b0e65c90ac567592828b943c722
2,744
#!/bin/bash set -e FULLLOG=/tmp/serversetup.log echo "Full logfile: /tmp/serversetup.log" echo " - Installing required components" | tee -a ${FULLLOG} sudo apt-get update >> ${FULLLOG} sudo apt-get -y install \ software-properties-common \ wget \ git >> ${FULLLOG} if ...
cc4c928b0a57abe044067c69930268ec2c6fc334
44
meteor --settings settings.json --port 4020
4ba4f4d05e2c968464bec725affd2af138b36b38
3,583
#!/bin/bash # shellcheck disable=SC1091 source ../bunit.shl testSetup () { touch testFile } testAssertEqualsWithStrings () { assertEquals "something" "something" } testAssertEqualsWithIntegers () { assertEquals 10 10 } testAssertEqualsWithIntegers2 () { assertEquals 5 $((10 - 5)) } testAssertEq...
3c355caf924bbf7ba91b2db4e1bd50e29e1f509e
117
#!/bin/bash set -e cd `dirname $0`/../ttf-bitstream-vera-1.10 mkdir -p $BUILD_DIR/fonts cp *.ttf $BUILD_DIR/fonts
b0361b272dadcb4051c3731eb9ed1f71461ca2dc
349
mkdir devops cd devops ls clear nano text.1 nano text.2 nano text.3 clear ls git init apt get install git sudo apt get install git sudo apt install git git init clear git status clear ls git add . git status git commit -m "first commit adding text and text.2 and text.3 and text.3y" . git status clear nano text.4 git s...
ae696c9cfd12db3bf383f6c349be8aa66878c3d4
1,116
# CONFIGURATION HOST SERVER_NAME=malbec # GRAFANA GRAFANA_TAG=7.5.6 GRAFANA_SOURCE_DATA_VOLUME=/grafana/data GRAFANA_TARGET_DATA_VOLUME=/var/lib/grafana # INFLUXDB v1 INFLUXDB_TAG=1.8 INFLUXDB_SOURCE_DATA_VOLUME=/influxdb/data INFLUXDB_TARGET_DATA_VOLUME=/var/lib/influxdb # INFLUXDB v2 INFLUXDB2_TAG=2.0.6 INFLUXDB2_...
d82983662d8ebf5752a524a7a935d073fe743e64
40
#!/bin/bash python predict.py $1 $2 $3