blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
a25f96585254bbd4f23073e02401623eec01b371
963
#!/bin/bash set -e set -o pipefail # add group if ! getent group | grep -q "^ows:" ; then echo "Creating system group: ows" groupadd --system ows fi # add user if ! getent passwd | grep -q "^ows:"; then echo "Creating ows system user" useradd --gid "ows" --system -m ows fi # build nodejs addons cd "/...
4007502f2f4a32677b8217200c0419a5e99a5007
234
#!/bin/bash #gcc echo.c -o echo -no-pie docker build -t=echo . docker run --rm --entrypoint cat echo /lib/x86_64-linux-gnu/libc.so.6 > libc.so.6 if md5sum -c md5_check; then : else echo "Please contact me about the libc change" fi
3949f3122418e161d6634d6c6b6ab1e1bcc1823e
7,920
#!/bin/bash # sync_dir dir src_location dest_location # e.g. sync_dir util $HGDIR/src/main/java/org/epics ../core/plugins/org.epics.util/src/org/epics/ function sync_dir { find $2/$1 -type f -exec grep -qI '' {} ';' -exec perl -pi -e 's/\r\n/\n/g' {} '+' rsync -r --delete $2/$1 $3 git add $3/$1 } # Go int...
4efd78ae2466d9fc5275629d8b24f4a96976fc1d
535
#!/bin/sh PARTITIONS=6 REPLICATION_FACTOR=3 COMPRESSION_TYPE=producer BOOTSTRAP_SERVER=localhost:19092 declare -a TOPICS=( "mysql.inventory.ADRC" ) for TOPIC in ${TOPICS[@]}; do echo "Creating topic $TOPIC" kafka-topics \ --bootstrap-server $BOOTSTRAP_SERVER \ --create \ --partitions $PARTITIONS \ ...
44dfc00775a37b823b576f9ed4d568f981472b29
358
#!/bin/sh /etc/rc.common START=99 start() { echo "Starting plantduino-command-listener" python /root/command-listener.py & } stop() { pid=$(ps | grep '[p]ython /root/command-listener.py' | awk '{ print $1 }') echo "Stopping plantduino-command-listener" kill $pid echo "S...
a0d52ebd8d9310ec8419517a94fdcd513befbac0
478
#!/bin/sh function help { cat <<EOF USAGE $0 /path/to/image DESCRIPTION set a wallpaper and add colors on the bar (qlite only) FLAGS -h --help show this help EOF exit 0 } function main { if [ -f $1 ] then colorz $1 --no-preview | cut -d' ' -f1 > ~/.config/qtile/colors_schemes qtile-cmd -o cmd ...
b59168893cfc47a987e40ef85ad0f64bd93f0b16
823
name="dotdrop" version="1.7.1" url="https://github.com/deadc0de6/dotdrop/archive/refs/tags/v${version}.zip" hash="165347e1950c99dfb442ea19b670d1ad2769610682a1e2bf9abf7f51b64cb61c" maintainer="TwilightBlood <hwengerstickel@pm.me>" depends="python3 python3-docopt python3-setools python3-jinja2 python3-ruamel.yaml python3...
624157a5ddc7cd98a5c5f0deed0608342c847cf8
156
#!/bin/bash # # SCRIPT: run-hdfs-client.sh dcos node ssh --master-proxy --leader "docker run -it mesosphere/hdfs-client:1.0.0-2.6.0 bash" # end of script
cbc803f8cfe27a966beb9d0c08d977e769ca914a
418
#!/usr/bin/env bash set -o errexit set -o pipefail set -o nounset # ---------- # Generate a lightweight archive of the whole source code, to send # for submission to the Firefox Addons Store. # ---------- DIST=./dist # Cleanup mkdir -p $DIST # Get all git tracked files FILES=$(git ls-files) # Archive it tar -czf...
7e76cac671ea16116dc5bc671840d887066fa7fd
245
#!/bin/zsh minify app/assets/scripts/camper/*.js > public/scripts/camper/camper.js minify app/assets/stylesheets/index/*.css > public/stylesheets/index/index.css minify app/assets/stylesheets/camper/*.css > public/stylesheets/camper/camper.css
80e9cf757b4fc03555c1982dc2d7a15d13fb92fd
96
language=$1 prog=$2 cp -r /opt/runner/code/* /opt/runner/env /bin/bash /run.sh $language $prog
9ffdc2c98cb381b7248e4a0f63d3c047ed016975
175
#!/bin/sh # Provision instances export ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i "localhost," --extra-vars="number_es_instances=0 number_ls_instances=0" spawn.yml
d54d17238d81aef4b830dc5c5d520f6ea1b656cc
2,265
#!/bin/bash SRC=parted-3.1.tar.xz DST=/var/spool/src/"${SRC}" MD5=5d89d64d94bcfefa9ce8f59f4b81bdcb [ -s "${DST}" ] || ../../wget-finder --checksum "${MD5}" -O "${DST}" ftp://ftp.sunet.se/pub/gnu/parted/"${SRC}" \ || ../../wget-finder --checksum "${MD5}" -O "${DST}" http://sources.openelec.tv/mirror/pa...
49d22e927a1326226e054fbb9d95db0ca4a77e3b
581
#!/bin/bash SINK=$(pactl info | awk '/Default Sink/&&($0=$NF)') CARD=$(pactl list sinks | awk -v SINK=${SINK} '($0~SINK)' RS="" | awk -F"\"" '/long_card_name/&&($0=$2)') PS3="Please select a card [ default: ${CARD} ] ] (Ctrl^C -- exit) : " select_string=$(pactl list sinks | awk -F"\"" '(/long_card_name/)&&($0=$2)' OR...
e8be1a94fce40b719ff86af951e7e96db5e23c51
58
#!/bin/bash -ue count_gc.py file39.reversed.complement.fa
3541016ed082e81534e6cb1d800c273500937655
91
# ENV="prod" ENV="dev" REGION="eu-west-1" PROJECT="onmyojideckbuilder" AWS_PROFILE="admin"
638710be6131ebc7cc1ad977be6c8028e04ddd8d
193
#!/bin/zsh selector-init 'docker image rm' docker image ls | \ sed 1d | \ selector-select $FZF_WIDGETS_OPTS[docker-remove-images] -m selector-filter "awk '{print \$3}'" selector-insert
372c31e31f4479021a43d520f7da2f22aaf85c88
1,144
n () { # Block nesting of nnn in subshells if [ -n $NNNLVL ] && [ "${NNNLVL:-0}" -ge 1 ]; then echo "nnn is already running" return fi # The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set) # To cd on quit only on ^G, remove the "export" as in: # NNN_TMP...
c19fd67fbb0ce22babd6a9461fab67119c71d6cb
113
#!/bin/sh sudo sed -i "s/^#PACKAGER.*/PACKAGER=\"${GIT_USER_FULLNAME} <${GIT_USER_EMAIL}>\"/g" /etc/abuild.conf
7236882d00af4a76321cadc5f96d96061cfcfe86
1,404
#!/bin/bash source /afs/cern.ch/eng/clic/software/DIRAC/bashrc dirac-proxy-init ToTarBall="lcfiweights_1400GeV_SelectedPFOs_kt_algorithm_2jets_1p00" rm $ToTarBall.tar rm $ToTarBall.tar.gz #pcla> cd lcfiweights_1400GeV_SelectedPFOs_kt_algorithm_2jets_0p70/ #2jets_c0_bdt.class.C 2jets_c0.root 2jets_c1...
7ef46fc6989c8c630edd0ecda1b5d049b698d1fe
46
#!/bin/sh case "${1}" in k) ;; *) ;; esac
d5fd512d319825261394628862c517cfc18a60f7
632
APP_ENV=local APP_KEY=base64:NNxh6cxpZnqzAHyVdQ4yjJ4BbpJuUOpzvgLSKWjfCgU= APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=https://radiant-citadel-15307.herokuapp.com/ DB_CONNECTION=pgsql DB_HOST=ec2-54-163-254-48.compute-1.amazonaws.com DB_PORT=5432 DB_DATABASE=ddc4v656fagde0 DB_USERNAME=frysuvcksexobs DB_PASSWORD=g8WKNyHt...
238d1fc8f50c363c50f824576f1872e43c1700af
650
# Maintainer: Yeison Cardona <yeison.eng@gmail.com> pkgname=python2-pynguino _pkgname=Pynguino pkgver=2.0 pkgrel=10 pkgdesc="Easy interface Pinguino-Python" arch=("any") url="https://bitbucket.org/YeisonEng/pynguino-2.0/" license=("BSD 3-Clause") depends=("python2" "python2-pyserial" "python2-pyusb") optdepends=("ping...
86bec3aabacfe29921f9c0573846db4397869225
2,151
#!/bin/bash #load_portfolio.sh echo `date` " : Starting portfolio load" /opt/bitnami/mysql/bin/mysql -t -uroot -proot trdsheet <<EOF -- Archive the current portfolio insert into portfolio_arch select now() archived_at,portfolio.* from portfolio; -- Delete old archives delete from portfolio_arch where archived_at < (s...
9726e8ebf81ccc78c24b11c3c46b9e835cd81e1d
35
spread -n localhost -c spread.conf
81a8c9b80b3de8e35942cfcfa0bb4e716bafbb82
147
#!/bin/bash echo "list all scripts" SCRIPTS=`ls *.sh` for i in $SCRIPTS; do $DISPLAY="`cat $i`" echo "Check the content: $i - $DISPLAY" done
9ef4f01819c9b17ee223dd2f0724cf99f0fa2f9e
123
#!/bin/sh set -eu { git ls-files --modified --others --exclude-standard git diff --name-only --cached } | sort -u
1798da02a55f8ac2a55121b299818b24d5c751e4
478
#!/bin/bash set -eo pipefail ARTIFACT_BUCKET=$(cat bucket-name.txt) # comment out below 3 lines if you are using aws cli docker image # it does not have .net, just launch this command from lambda-bot folder cd lambda-bot dotnet lambda package cd ../ aws cloudformation package --template-file template.yml --s3-bucket ...
b9ffc43663dd242dbc692e5a1d07f2d7f4c6558e
433
#!/usr/bin/bash function sudoAdmin { sudo -i } function hadoopUser { useradd hadoop echo -e "hadoop" | (passwd --stdin hadoop) } function installTools { yum install -y java-1.8.0-openjdk-devel cat > /etc/hosts <<EOF 192.168.92.10 nodemasterx 192.168.92.11 nodea 192.168.92.12 nodeb EOF } echo -e "------sudoAd...
af4132d255becdbb1dc7f29f8b26021aa574dced
351
#!/bin/bash RET=$(fw_exists ${IROOT}/racket.installed) if [ "$RET" == 0 ]; then return 0; fi fw_get http://mirror.racket-lang.org/installers/recent/racket-src.tgz -O racket-src.tar.gz fw_untar racket-src.tar.gz mv racket racket-install cd racket-install/src ./configure --prefix=${IROOT}/racket make make install ...
73ea1896874559a6dbd531608b54565e6cecddd2
152
#change Dublin 9:00 to EST time, out put should be 0500 in winter, 0400 in summer time date --date='TZ="/usr/share/zoneinfo/Europe/Dublin" 09:00' +%H%M
0176aa14fc11f19686c1b9fffb4d85526aec6cf7
624
#!/bin/bash if [ $# -ne 2 ]; then echo "Syntax: release [CURRENT_VERSION] [NEXT_VERSION]" exit 1 fi CURRENT=$1 NEXT=$2 # Create release git flow release start $CURRENT || exit 1 GIT_MERGE_AUTOEDIT=no git flow release finish -m $CURRENT $CURRENT # Publish release git push origin HEAD --tags # Merge release into...
b8ab65791f1dafc4e6eeb925e30267894eb2e4dc
2,463
#!/bin/bash # # # ################################################ # # Functions # ################################################ DIR=$(pwd) Music() { if [ -e "$DIR/Music" ];then echo -n "" else mkdir Music fi mv *.mp3 "$DIR/Music" 2>/dev/null mv *.wav "$DIR/Music" 2>/dev/null mv *.midi "$DIR/Music...
f21486af5bdeade1214670be04503c2cb4d5e051
202
#!/bin/sh scrot -zpq 70 "/home/stefan/Pictures/screenshots/%Y.%m.%d_%H:%M:%S.png" \ -e 'xclip -t image/png -sel c $f; \ notify-send --icon $f -a "Screenshot" "Copied $n to clipboard"'
04e220d72d4b43518a0ce5866d7f12929564ebbe
775
#!/bin/sh # vim: filetype=sh noexpandtab ts=8 sw=8 # $FreeBSD: head/tools/regression/pjdfstest/tests/link/14.t 211352 2010-08-15 21:24:17Z pjd $ desc="link returns EXDEV if the source and the destination files are on different file systems" dir=`dirname $0` . ${dir}/../misc.sh [ "${os}" = "FreeBSD" ] || quick_exit ...
4cc792f47934e8209e5f403a112965189942efaa
109
opt -load ../../../../../acc/framework/llvm-pass-mapper/build/mapper/libmapperPass.so -mapperPass cgra_lu.bc
50780b90eb665d1f6e0179842ffa5d3824084461
1,073
#!/bin/bash function logdate { echo -n `date +%F" "%a" "%T"."%3N`' - ' } SOURCE_DIR[0]=/u01/app/centric/ BACKUP_DIR[0]=/backup/forms BACKUP_FILE_TAR[0]=forms_`hostname -s`_week`date +%V`.tar.gz BACKUP_FILE_LOG[0]=forms_`hostname -s`_week`date +%V`.log SOURCE_DIR[1]=/u01/app/oracle/middleware/instances/formsreports...
fd8613a99484f55684fdb4e593a3bd4d26f86a05
96
matlab -r -nodesktop "study_id=1; subject_id=150; run('analysis_for_one_subject_SPM.m'); exit"
83c261d8f0938696d0c7c18caeeadbe72fa834d6
910
#!/bin/bash set -e set -x eval $(minikube docker-env) docker build \ -t redis-sentinel:3.2.0 \ docker/redis-sentinel kubectl apply -f kube/persistent-volume-claims/postgres-master-db.yml kubectl apply -f kube/deployments/redis-master.yml kubectl apply -f kube/deployments/redis-sentinel.yml kubectl apply -f kube/...
b135df0338ecae2abaff0faffacd168645b1ab11
1,270
#!/usr/bin/env bash set -e # Exit on any child process error source ./scripts/setup_env npm run clean mkdir -p dist echo "Transpile ES6 to CJS" npm install npm run transpile -- --ignore spec.js echo "Processing infrastructure template for $DRONE_BRANCH" # echo "{\"SEARCH_ALERT_AWS_ACCESS_KEY_ID\":\"${SEARCH_ALERT...
470a6094bcc1097b8d2f7429b4da7f17d1dcebed
1,000
# $Id$ # Maintainer: Ido Kanner <idokan@gmail.com> pkgname=apex-up _pkgname=up pkgdesc="Deploy infinitely scalable serverless apps, apis, and sites in seconds to AWS" pkgver=1.5.1 pkgrel=1 arch=('i686' 'x86_64') license=('MIT') url='https://up.docs.apex.sh/' provides=('apex-up') noextract=() makedepends=('binutils') [...
423cc03fbf5ee8ef36bcb7b694b39121bf3162eb
38
sudo apt-get -y install blindelephant
14cb8fb61f642829a4ec9db99296acc77eb8d829
130
#!/bin/bash rm -rf ./data/slave_1-data/ ./build/programs/nodeos/nodeos --config-dir=./cfg/slave_1 --data-dir=./data/slave_1-data/
e090e9c7be82f0b7ffafbeb97e519185ede752a2
1,474
# Contributor: Carmen <carmen@algofacil.info> pkgname=wings-bin _pkgname=wings pkgver=1.5.3 pkgrel=1 pkgdesc="Subdivision 3D modeler inspired by Nendo and Mirai from Izware" arch=('i686' 'x86_64') url="http://www.wings3d.com" license=('custom') makedepends=(gzip) install=wings.install source=(http://sourceforge.net/pr...
155560a1754d1d02df5a423b7e54ad8027f929c3
5,058
function install_common { CONDUITS=$(echo $CONDUITS) # newlines become spaces conduits_pipes="${CONDUITS// /|}" conduits_commas="${CONDUITS// /, }" mkdir -p "${DESTDIR}${install_to}/bin" cat <<EOF >| "${DESTDIR}${install_to}/bin/upcxx-meta" #!${BASH} # This file is generated during installation - do not edit...
02ceb487b9d65950c39fc10de4d6435314a31311
199
mv /root/srcs/telegraf.conf /etc/telegraf.conf openrc touch /run/openrc/softlevel rc-update add telegraf cd /grafana mkdir data mv /root/srcs/grafana.db /grafana/data/ chmod +x /root/srcs/setup.sh
908c5dc578e7bf4ed9b6b78c86f6c483c96d2860
244
#!/bin/bash # # These env vars need injecting in to Vagrant # In prod. these are provided by Jenkins export WORKSPACE="/home/vagrant" export BUILD_TAG="jenkins-openstack-gerrit-1" export IFACE_NAME='eth1' export BUILD_ID='2014-06-07_18-18-59'
60daceef4e588553f36e51f7845a69030d6a2397
399
#!/bin/sh # any extra arguments are passed to `git push`, e.g. -f app='yubnub-jamiew' remote='heroku' # Run test suite, abort if it fails # FIXME test suite not working, so skip this # bundle exec rake || exit $? # Push *master branch only* to Heroku git push $remote master $1 || exit $? # Always Be Migrating # Dis...
082cd0fd0dbb97184be7b542f9b1a91ba6935bd4
205
#!/bin/bash src_path=./src/mylib dst_path=./build/bin list=$src_path/*.c for str in $list do target=${str/$src_path\//} target=${target%.*} gcc $str -o $dst_path/$target -lpthread -lm done exit
f3a5945a448a2bf8605ad67d3a51a2c1316872d1
234
sudo apt-get -y install rabbitmq-server sudo apt-get -y install python-dev sudo apt-get -y install python-pip sudo apt-get -y install libpq-dev sudo apt-get -y install postgresql-client sudo pip install pika sudo pip install psycopg2
01b9f5b6fc5f06ab08543f72981d1a19c6e30308
41
#!/bin/bash sudo service varnish restart
5c10c80240f37a685b1129b6f895b65e7164dd65
196
#!/bin/bash make \ VERBOSE=1 \ CXX="${CXX} ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS}" \ CC="${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" install -d "${PREFIX}/bin" install ococo "${PREFIX}/bin/"
3cfde30579d87c2bd5ff3bc93144445c68bebdce
78
DATABASE_URL="postgres://postgres:123@127.0.0.1:5432/postgres?sslmode=disable"
97200fc0c2cc0df28f8a8888b806eedd1335a233
139
#!/bin/bash -e TMPFILE=$(mktemp) trap "rm -f $TMPFILE" EXIT echo "4" > $TMPFILE python part2.py test2.txt | diff $TMPFILE - echo "pass"
b7e985b3e647acdfa043b6dde01be5fa1084a9f0
315
#!/bin/bash # setup environment export CPU=x86_64 export OS=linux export VARIANT=debug # modbus setup export MBLIB=/usr/local/lib export MBINC=/usr/local/include # boost setup export BOOSTINC=$HOME/src/boost_1_66_0 # build export SRC=bess make -C ../build # run ./../build/bin/debug/$SRC -c ../data/config.ini
5cd0e57c1e2534769553e501fb829b3a731a0c09
1,804
#!/usr/bin/env bash # # (c) Copyright 2013 WibiData, Inc. # # See the NOTICE file distributed with this work for additional # information regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # Yo...
d5b480574e9223f51b3ee9814a90a165c2f2bb67
299
#!/bin/bash set -e KUBECONFIG=/root/.kube/config kubectl get deploy hoth -n planets -o jsonpath='{.spec.template.spec.containers[*].image}' | grep -q -w "httpd:2.4.46" KUBECONFIG=/root/.kube/config kubectl get deploy hoth -n planets -o jsonpath='{.status.readyReplicas}' | grep -q -w 4 echo "done"
8d51ba2a3b5218ba9734d08d42eb454143d64db8
73
#!/usr/bin/env bash npm install npm run build:prod node ./dist/server.js
96b7fa9f057eaaefbca5de9870a0fe4b2376419b
3,109
#!/bin/sh set -e DISTDIR=arm-apple-darwin SDKROOT=/Developer/SDKs/MacOSX10.4u.sdk FRAMEWORK_ROOT=${SDKROOT}/System/Library/Frameworks TOPSRCDIR=`pwd` MAKEDISTFILE=0 UPDATEPATCH=0 while [ $# -gt 0 ]; do case $1 in --distfile) shift MAKEDISTFILE=1 ;; --updatepatch) shift UPDATEPATCH=1 ...
d43a19eb78cb0e294f5cf79b7d10e06f412ba8e2
523
#!/bin/bash path='/Users/ricardo.fahham/Documents/projetos/projetos_bash/renomeando-arquivo' echo $path ls -la $path # mv $path/arquivo.csv $path/arquivo.txt # mv $path/arquivo.txt $path/arquivo.csv # mv $path/$1.csv $path/$1.txt # mv $path/$1.txt $path/$1.csv for i in $@ do # mv $path/$i.csv $path/$i.txt ...
8c7727483ffc6c7c6b8968ac0622f4a6212c0da8
1,976
#!/bin/bash /usr/bin/python /root/test.py > /root/text.txt cp /var/www/html/GRAPHS/HTML.txt /var/www/html/GRAPHS/HTML1.txt > /var/www/html/GRAPHS/HTML.txt cat /root/text.txt | sed 's/\\n/\n/g' | sed 's/\\r/ /g' | grep pp | egrep -v cli | awk '{print $2}' | sort | uniq -c | awk -F"et-0/2/1." '{print $2,$1}' | sort | ...
c85e997eab4d5c9ec8abfd4024326573ab6dbc7e
133
#Question: Add unspecified number of command line arguments(numbers) #!/bin/sh s=0 for x in $* do s=$(($x+$s)) done echo $s
c9d04f5817e21080a7793bda01ac50a9f8804ec1
250
export CUDA_VISIBLE_DEVICES=0 python train.py \ --print_every 100 \ --batch_size 32 \ --embedding_size 300 \ --hidden_size 300 \ --epochs 8 \ --rnn_type lstm \ --num_layers 2 \ --embedding_dropout 0.5 \ # --bidirectional \ # --create_data # --test \
4abf3e46d8e02383be5e8aa28eb3420ca8b4f80b
1,553
# bash library # This should ALWAYS be sourced after Config.sh IMAGE=weenix.img ISO_IMAGE=weenix.iso SYMBOLS=weenix.dbg BSYMBOLS=symbols.dbg GDBCOMM=gdb-commands GDB_INIT=init.gdb GDB_TMP_INIT=inittmp.gdb GDB_COMM_INIT=commands.gdb KERN_DIR=kernel USER_DIR=user SCRIPT_DIR=python LOG_FILE=bochsout.txt # Contains g...
4ac1363999a9a051dc5e9ab14c6e5b9c022a40fb
388
#!/bin/bash # This script is run by the deploy.altlab.dev webhook to update the deployed # app. set -eu DIR="$(dirname -- "${0}")" cd "${DIR}" # Some day we might want to automatically pull the git repo that contains this # deploy script, but for now changing the deploy process will require that # to be done manual...
41ab381a53de8ac12161cc56e279a02363ab152f
159
#!/usr/bin/clitoris ## -*- shell-script -*- $ dadd 2m <<EOF 2016-04-04 2016-04-04T10:20:00 EOF 2016-04-04 2016-04-04T10:22:00 $ ## dtadd.051.clit ends here
e2de99f9b928fe57149dda058547bd91f668be59
528
#!/bin/sh rm -rf /usr/share/enigma2/BlueAccents-HD rm -rf /usr/lib/enigma2/python/Components/Converter/BlueA* rm -rf /usr/lib/enigma2/python/Components/Renderer/BlueA* rm -rf /usr/lib/enigma2/python/Plugins/Extensions/BlueAccents* echo " " echo "BlueAccent...
285479967ce999f8f6928d6165a67bb5bd59f3ea
279
#!/bin/bash echo "checking tvservice" tvservice -s | awk '{print $9}' > /home/pi/reslution RES=`cat /home/pi/reslution` echo "$RES" RES_NEEDED="1920x1080" if [ $RES == "1920x1080" ] then echo "reslution is good" else echo "reslutio is bad $RES" # sudo reboot fi
0e8825831e5e8dc723c462c9ef7ba438069f6781
2,569
#!/usr/bin/env bash set -e; my_args=( "$@" ); first_arg="$1"; if ! [[ ${first_arg} =~ ^(patch|major|minor|prerelease)$ ]]; then echo "First argument needs to match a valid npm version argument (patch, minor, major, etc)." >&2; exit 1; fi ts_bold="$(tput bold)" ts_normal="$(tput sgr0)" zmx_gray='\033[1;30m' ...
d4b988f16385d34883238ce645dee59885c2a884
285
#!/bin/bash CLASSPATH=robonobo.jar MEMOPTS="-client -Xmx96m -Xms16m -XX:MaxPermSize=32m -Xss64k -XX:NewRatio=2" #DEBUG_LISTEN="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9190" JVMARGS=$MEMOPTS $DEBUG_LISTEN export CLASSPATH java $JVMARGS com.robonobo.Robonobo
dda186cc3fd10a47164bf34b640a5a906e012ec4
867
#!/bin/bash if [ -e .env ] then . .env # define GH_TOKEN fi # see https://www.electron.build/multi-platform-build#docker docker run --rm -ti \ --env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS_TAG|TRAVIS|TRAVIS_REPO_|TRAVIS_BUILD_|TRAVIS_BRANCH|TRAVIS_PULL_REQUEST_|APPVEYOR_|CSC_|GH_...
cc6a796e112cb0cd19514d41ffbeb3addf90e2d3
3,778
#!/bin/bash ##time unit :minute Lammps_location=$1 dN=$2 nNs=$3 nNe=$4 inputfile_name=$5 data_location_dirname=$6 number_line=$7 runcase=$8 time_slope=$9 ## #number_line=6 current_location=$(pwd) ####function to run job at $data_location_dirname$N/$runcase RunSingleJob(){ ##run with given n_count and s_time(sleep t...
9641043ed5b623715185af066d34f6fb8ba729ac
902
#!/bin/bash # Authors : Joseph McSoud # Date: 2/1/2019 #Problem 1 Code: #Make sure to document how you are solving each problem! echo "Enter regular expression, and then enter file name: " read regex echo "now file name:" read file grep regex file echo echo "Phone number occurences in regex_practice.txt: " grep -c '[...
7bd223efcff803b3390e1516cd64742147554955
620
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~" echo "Attempting to Install Realtek drivers for Wifi Dongle using chipset RTL8822BU" if [ "$(whoami)" != "root" ]; then display "Please run this script with sudo due to the fact that it must do a number of sudo tasks. Exiting now." exit 1 fi sudo apt-get -y install git sudo apt-get ...
24f1e384da5b975fbc602f3a18a5e4c89b58ee9d
1,341
alias images='docker images' alias images-names='docker images --format "{{.Repository}}:{{.Tag}}"' alias images-pull='docker images --format "{{.Repository}}:{{.Tag}}" | grep -v ":<none>" | grep -v "/" | xargs -n1 docker pull' alias images-clean='docker system prune -f' alias upgrade-docker='images-pull && images-cl...
7f9324c251ff730b138be93ea305e57cb552126a
693
#!/bin/bash #----------------------------------------------------------------------- # Linux (Linux/x86_64, Darwin/x86_64, Linux/armv7l) # # install-fx.sh - Install fx # # usage: install-fx.sh NON_ROOT_USER (use a non root user on your file system, eg install-fx.sh vagrant) # # Copyright (c) 2020 Malcolm Jones # All R...
975de804b442bc06cd63cc04909165898ead8a7d
448
#!/bin/bash javac -target 1.6 -source 1.6 -encoding utf-8 *.java mastermind_core/*.java mastermind_save_load/*.java mastermind_gui/mastermind_templates/*.java mastermind_gui/*.java -Xlint:-options 2> mastermind_error.log if [ -e mastermind_error.log ] && [ $(wc -l mastermind_error.log | awk '{print $1}') -gt "0" ]; th...
22e3eb3050fba02b034cc1cac4c78098e88eab0c
473
export BERT_BASE_DIR=/study/model/chinese_L-12_H-768_A-12 export GLUE_DIR=/study/data export TRAINED_CLASSIFIER=/study/model/output export EXP_NAME=kbqa python run_kbqa.py \ --task_name=kbqa \ --do_predict=true \ --data_dir=$GLUE_DIR/$EXP_NAME \ --vocab_file=$BERT_BASE_DIR/vocab.txt \ --bert_config_file=$BER...
80b1266aafdc411fa607317d01054a17f43ba551
441
#!/bin/bash /usr/bin/cmake -DCMAKE_INSTALL_PREFIX={{ MYSQL_BASE_DIR }} \ -DMYSQL_DATADIR={{ MYSQL_DATA_DIR }} \ -DDEFAULT_CHARSET=utf8 \ -DDEFAULT_COLLATION=utf8_unicode_ci \ -DWITH_READLINE=1 \ -DWITH_SSL=system \ -DWITH_EMBEDDED_SERVER=1 \ -DENABLED_LOCAL_INFILE=1 \ -DWITH_MYISAM_STORAGE_ENGINE=1 \ -DWITH_INNOBASE_S...
2f1a81000f4825a713600134fbfdb4b87457bbb3
812
#!/bin/bash firstday=0 for day in {100..0..-1}; do git checkout $(git rev-list -n 1 --before="$day days ago" master) # org-mode SLOC pdftotext thesis.pdf lines=$(wc -l thesis.txt) if [ $? -eq 0 ]; then lines=$(echo $lines | cut -d ' ' -f 1) #echo x | make if [ $? -eq 0 ]; t...
6324a2709f666e8fe2635a2e4d93f5db215d0fab
130
sudo rm -rf /json/Reports/NNReport.json sudo csvtojson /json/Reports/DailyNeuralMagnitudeReport.csv > /json/Reports/NNReport.json
de1cb57f641c1271bd4176e16ecd257a581e1d0d
820
# Maintainer: Filipe Nascimento <flipee at tuta dot io> _gemname=xdg pkgname=ruby-xdg5 pkgver=5.3.0 pkgrel=2 pkgdesc="Provides a Ruby implementation of the XDG Base Directory Specification (version 5.x)" arch=('any') url="https://www.alchemists.io/projects/xdg" license=('Apache') depends=('ruby') makedepends=('ruby-rd...
49acc5aca95ccf0e4659500f2b4363b923d75245
484
#!/usr/local/bin/bash docker build . -f Dockerfile.debian -t cfburgess/scan-tests:debian docker build . -f Dockerfile.python -t cfburgess/scan-tests:python docker build . -f Dockerfile.centos -t cfburgess/scan-tests:centos docker build . -f Dockerfile.alpine -t cfburgess/scan-tests:alpine docker build . -f Dockerfile....
af8ebb3624dcf3489c592cb0caf811003fc71fda
524
cd ../src/i18n # Load file, sort each line of the file and save the file. sort_and_save() { cat $1 | sort > $1 } sort_and_save i18nBundle_en.properties sort_and_save i18nBundle_es.properties # TODO: script creates i18nBundle_empty.properties that has all combined keys from real bundles. # then compares itself with...
749b9fa15ff37ad34098248bce6cce409ab005f6
1,346
#!/usr/bin/env bash echo `date` # make dataset JPG_DIR=fonts_256 DATASET_DIR=datasets CHECK_DIR=checkpoints DEBUGGING_DATA=B9DD_D569_debugging # these values should be changed accordingly NUM_THREADS=6 GPU_IDS=0,1,2,3 SLACK_FREQ=10000 BATCH_SIZE=60 EPOCH=10 printf "_____________start debugging [%s]_____________\...
272edb99dd2956a7fbd1fe81ed5a044a6123f9a5
1,844
#!/bin/sh # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This file incorporates work covered by the following li...
5a262ac5ada03ed949f8e0d92a0cfbeb76f37857
416
#! /bin/bash #Gambler problem function simulate_coin_flip { echo $((RANDOM%2)) } money=100 declare -a lst lst[0]=TAILS lst[1]=HEADS while [ $money ] do if [ $money -eq 0 -o $money -eq 200 ] then echo Betting ended final money left $money break fi result=$(simulate_coin_flip) echo "Flipping coin : " ${lst[res...
07612c4f663a64a28b39369f0e59eff81820ef07
1,432
#!/bin/bash # vim: set noexpandtab: PROGRAM=$(basename "${0}") if [[ -z "$1" ]] || [[ -z "$2" ]]; then printf "usage: %s <from_date> <to_date>\n" "${PROGRAM}" printf "e.g. %s 2016-01-01 2016-01-31\n" "${PROGRAM}" exit 0 fi TRANSACTIONS=$(mktemp /tmp/tmp.mint.XXXXXX) if ! mintapi --transactions jesse@mbuki-mvuki.o...
38c209e1c8ba2642781d281319dccc48dee95849
166
#!/bin/sh for file in `cat /var/log/phpmail.log | grep "eval()" | awk '{print $6}' | sed 's/\[//' | sed 's/([0-9]*)//' | uniq `; do echo $file; rm -rvf $file done
f254ffe1779ee840d56e2a73f9d4fc1798f474bb
146
#!/bin/sh export NAME=ulikoehler/ubuntu-gcc-cmake-boost export VERSION=latest docker build -t ${NAME}:${VERSION} . docker push ${NAME}:${VERSION}
3135a0f1b17a3d6359dd688a048e12dcc8f938a7
49
#!/bin/sh node ./src/index.js ${FORWARD_URL} $@
e7b5cdc1b967ef31fad7bff5fe76e22b31b12997
1,725
#!/bin/bash REALM="{{ freeipa_realm }}" if [ $# -ne 1 ]; then echo "Script must take 1 argument. $0 username" >&2 exit 1 fi # User name user=$1 # Get old user uid and gid old_uid=$(getent -s files passwd $1 | awk -F: '{print $3}') old_gid=$(getent -s files passwd $1 | awk -F: '{print $4}') # Get user main ...
2a588a173729ef9c586f1354e506fdac7c415e15
1,480
########################################################################################## # #!/bin/bash # version 0.20 - initial version # # version 0.45 - added nupond_bter_cny_fix_payout_test # # version 0.50 - prepared southxchange ("southx") bots # ##################################################################...
bb31b0cf73ee0f59da6399ee175008e63c51d539
4,704
#!/bin/dash ########### path definition ########## ########### same in each shrug-* ########## initdir=".shrug" repodir="shrug" repopath="$initdir/$repodir" indexpath="$initdir/index" logfile="$repopath/commit-log" branchdir=".branch" branchpath="$initdir/$branchdir" ####################################...
a39409618a6f63c5c5b7fd8360068b9d90c4abc3
286
bash "${STEAMCMDDIR}/steamcmd.sh" +login anonymous \ +force_install_dir "${STEAMAPPDIR}" \ +app_update "${STEAMAPPID}" \ +quit /home/steam/steamcmd/valheim-dedicated/valheim_server.x86_64 -name "Frosto Test 1" -port 2456 -world "Dedicated" -password "maAgarino23" -public 1
d457cc4031c732a9083ba5e37a6bf50221fb852b
858
#!/bin/sh #upgrade mariadb from 10.0 to 10.1 #backup DB first #mysqldump db_name > backup-file.sql #mysqldump --all-databases > all_databases.sql #stop services sudo service nginx stop sudo service mysql stop #remove current version sudo apt remove maria-db server -y #setup mariadb repositories sudo apt-get instal...
4b079501c3cbc54eccc79ced838715f1d07bd9b0
3,115
#!/usr/bin/env bash # Install Jest. DIR_SRC="src" # Source folder. DIR_DIST="lib" # Distribution folder. JEST_CONFIG_FILE="jest.config.js" JEST_TEST_DIR="$DIR_SRC/__tests__" JEST_SETUP_FILENAME="setup.js" JEST_TS=false # Whether to add TypeScript support. HELP=false # Fetch CLI named params. POSITIONAL=() while [[ $...
d3d15cf144da6f52b9f3d9460979afc714407f5e
479
#!/bin/bash if [ $# -lt 2 ] || ([[ $1 == '--help' ]] || [[ $1 == '-h' ]]) then echo 'prompt <PROMPT> <ACTION>' echo ' Prompt user and perform action on "Y"' echo 'prompt --input <Prompt> <ACTION>' echo ' Prompt user and perform action with dmenu input' elif [ $2 == "--input" ] then prompt...
cd86e26871721e049951f4a78d8b577f8dcba3f0
163
#!/bin/bash cd /root/benchmarks/CPU2006/462.libquantum chmod +x ./462.libquantum.aarch64 # ./462.libquantum.aarch64 1397 8 ./462.libquantum.aarch64 33 5 m5 exit
39df025894770bea920f51560e3840d066b3d53f
84
#!/bin/bash #PORT=9090 node planetoid.js hello 0.0.0 node planetoid.js hello 0.0.0