blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
578bc672abc5fd3d203c42d4626b273dcccc3904
505
#!/bin/bash echo "Iniciando zookeepers" for file in $(ls ./dc | grep zookeeper) do echo $file oc create -f ./dc/$file done sleep 40 echo "Iniciando kafkas" for file in $(ls ./dc | grep kafka ) do echo $file oc create -f ./dc/$file done sleep 25 echo "Iniciando orderers" for file in $(ls ./dc | grep...
989d6dda5637c6bcea1e98e3b8104dfe3fd20e43
837
#!/bin/bash # # Set sensitivity for Lenovo Thinkpad KU-1255 Keyboard # using: sudo ./ku-1255_set_sensitivity 250 # # Resources: # http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint # https://wiki.archlinux.org/index.php/TrackPoint # SENSITIVITY=$1 # default 160 if [ -z "$SENSITIVITY" ] then SENSITIVITY=...
bca793fc4fa43c1c66ed1757948043fb1a922d72
2,679
#!/bin/bash FILE="/tmp/$(basename $0).$RANDOM.txt"; COMMAND="/var/backup/bin/db.sh && curl \"http://www.cronrat.com/r/7n9GvvYu\" --data-urlencode \"rat=BASEDB_backup\" --data-urlencode \"crontab=0 12,15,18 * * 1,2,3,4,5\" --data-urlencode \"toutc=-7\""; ENTRY="0 12,15,18 * * 1,2,3,4,5 bash $COMMAND"; echo "$ENTRY" ...
d49d25fdc79cb101003d6d758345f57375758c2e
156
#!/bin/bash -xe wait-for-it $DJANGO_DB_HOST:$DJANGO_DB_PORT gunicorn mapswipe.wsgi:application --bind 0.0.0.0:80 --access-logfile '-' --error-logfile '-'
fb68a89c96a6e467b471da71c50502183824b496
351
#!/bin/bash cd /data/ unzip $1 -d /data/test_mimidai cd /data/test_mimidai/WEB-INF/classes rm -f ./* dir_num=`ls |wc -l` if [ $dir_num -eq 2 ];then cp /var/www/mimidai-cms/WEB-INF/classes/* ./ else: exit 1 fi mv /var/www/mimidai-cms /var/www/mimidai-cms-$(date +%Y%m%d-%H%M%S) mv /data/test_mimidai /var/ww...
5139a78a39694c74ad6f6e3815222de949a82013
384
#!/bin/bash minfo " ------------------------------------------ ______ _ _ _____ | ___ \ | | | | |____ | | |_/ / _| |_| |__ ___ _ __ / / | __/ | | | __| '_ \ / _ \| '_ \ \ \\ | | | |_| | |_| | | | (_) | | | |.___/ / \_| \__, |\__|_| |_|\___/|_| |_|\____/ ...
94a5d3ab54bb884be26ef40f266e86f2a8ee8644
150
#!/bin/bash rvm install ruby-2.3.7 source ~/.rvm/scripts/rvm rvm use ruby-2.3.7 gem install bundler --version 2.0.1 brew install redis bundle install
280e494207e34527ab398f9ad9cad33377feccda
2,198
#!/usr/bin/env bash help () { cat <<EOF This script is a collection of request that are used in the book. Below is a list of arguments and the requests that those make: - 'get-items' Continuous requests that print the response status code - 'random-agent' Adds either c...
8fc6172c7e28b1c1b923ccd85cf4aa624f80bb23
23
#!/bin/sh exec vi "$*"
0a2a7141410b88b7b50721304727a252f46d5519
2,086
#!/bin/bash if [ "$(id -u)" != "0" ]; then echo "This script must be run as root" 1>&2 exit 1 fi rm -rf num.txt write_in.eep read_out.eep read_out.txt MODELA=`cat /proc/device-tree/model` MODELB='Raspberry Pi' MODELC='ROCK PI' echo "Board $MODELA" FILENAME=num.txt #创建序列号的TXT文件 if [ ! -d $FILENAME...
457d71236f0335efbd7cc54f102d1add0c13b683
2,564
#!/bin/sh # # Copyright (c) 2004-2005 os-cillation # # set margins defaults if test ! -f $XFCE4HOME/mcs_settings/margins.xml; then cat > $XFCE4HOME/mcs_settings/margins.xml <<EOF <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mcs-option SYSTEM "mcs-option.dtd"> <mcs-option> <option name="Xfwm/BottomMargin" type="...
50af6d2f4c290b5271ffc49160786077b0a077ad
643
#! /bin/sh echo "user:${PASSWORD}" | /usr/sbin/chpasswd unset PASSWORD exec /usr/bin/shellinaboxd \ -u shellinabox \ -g shellinabox \ -c /var/lib/shellinabox \ -p 4200 \ -s /:AUTH:HOME:/bin/bash \ --no-beep \ --disable-ssl-menu \ --user-css "$( for i in $(ls /etc/shellinabox/options-enabled/*.css ...
7daba1d2ed18f09cc505f2081d060e6ecf9e70b7
357
#!/usr/bin/env bash python train_script.py \ --dataset emore --batch-size 1760 --ctx 0,1,2,3,4,5,6,7 --dtype float32 -j 48 \ --lr 0.35 --lr-mode cosine --lr-warmup-iters 5000 --wd 0.00004 --no-wd \ -s 64 -m 0.5 -t lfw,agedb_30 -n mobilefacenet --niters 86000 --loss arcface \ --loss-warmup-it...
d6847a004f53c5e19c23ecc608d8888c16688613
89
#!/bin/sh build --watch --ignore '**/node_modules/**' --op-threads 8 --sync-threads 4 $@
6c13ada6182e7c7e8fc66e736d90d7a2a0353135
343
#!/bin/sh # Violet Dark printf "\033]4;0;#56595c;1;#c94c22;2;#85981c;3;#b4881d;4;#2e8bce;5;#d13a82;6;#32a198;7;#c9c6bd;8;#45484b;9;#bd3613;10;#738a04;11;#a57705;12;#2176c7;13;#c61c6f;14;#259286;15;#c9c6bd\007" printf "\033]10;#708284;#1c1d1f;#708284\007" printf "\033]17;#595ab7\007" printf "\033]19;#1c1d1f\007" printf ...
f0f0f0b73719d9a021bde21bd59197ad135339de
164
docker-compose -f ./kafkadb311.yml up -d docker-compose -f ./kafkadb312.yml up -d docker-compose -f ./kafkadb313.yml up -d docker-compose -f ./kafkadb314.yml up -d
4d74a7419b954d3fd4f8577644e54616804cfe2b
1,485
#! /bin/true # vi: set tabstop=4 syntax=sh : # colorize it in 'vi' and use shorter tabstops ####################################################################################### # # # str2hex - convert a string to its hexadecimal repr...
b4e497f62b3aff15712bed8da0b9b3cd6ca07b8d
439
root=$(pwd) dynamorio32=${root}"/DynamoRIO-Linux-${DR_VERSION}/cmake" mkdir linux-i386-dr${DR_ABI} cd linux-i386-dr${DR_ABI} cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_C_FLAGS=-m32 -DBOOST_LIBRARYDIR=/usr/lib/i386-linux-gnu -DDynamoRIO_DIR=$dynamorio32 -DDRACE_ENABLE_RUNTIME=1 -DBUILD_TESTI...
4d3f17bb57198b441a81cf9396807ceb0a874484
266
#!/bin/sh set -x MOD_ID=$(cat /proc/device-tree/toradex,product-id) case $MOD_ID in # apalis TK1 2GB 0034) export MMC=4096 ; export SD1=1024 ; export SD2=512 export MMC_MOUNT=mmcblk0 ; export SD1_MOUNT=mmcblk1 ; export SD2_MOUNT=mmcblk2 ;; *) false ; esac
3b7a68676e7d08469dd7647b7a5bfc58a65843b7
656
#!/bin/bash # Pretty-prints a JSON-format log file #export COMMAND='json_pp' # From Perl JSON module. Does not sort keys export COMMAND='python -mjson.tool' # Sorts keys perl -lne'$q = "\047"; s/$q/$q\\$q$q/g; $tr = ("=") x 120; print $tr; $s = "echo $q$_$q | $ENV{COMMAND}"; print `$s`' $@ # Explanation: # * define...
730b9fda777cd2581377a63011e37b107fcc02c7
117
#!/bin/bash # platform = multi_platform_sle,multi_platform_ubuntu # packages = chrony rm -f /etc/sysconfig/chronyd
e1757daf5080237e01260c5b5875358e438d8251
23,156
#!/bin/bash #网卡名称需要配置为eth0 ip最好配置为10.0.0.1 virtual=`egrep -c '(vmx|svm)' /proc/cpuinfo` if [ $virtual -eq 0 ];then echo "请先开启虚拟化!"/Users/shadow/Desktop/openstack-mitaka-autoinstall.sh exit 9 fi if [ ! -f cirros-0.3.4-x86_64-disk.img ];then echo "the cirros-0.3.4-x86_64-disk.img is not exist" exit 6 fi if ...
85f8498a0aaea9ba644d37109582be459bcac95d
41
MONGODB_URI=mongodb://localhost/fundprice
e21c66a1cf4fd8d7714b9dae22447a35d0e146bf
1,694
#!/bin/bash set -o nounset set -o errexit DEVICE=$1 DEVICE_BASENAME=$(basename ${DEVICE}) PREFIX=$(date +%d%m%y-%H%M%S) echo " + Results will be stored at /tmp/${PREFIX}-fio" mkdir /tmp/${PREFIX}-fio echo " + Disable disk cache on ${DEVICE}" hdparm -qW0 ${DEVICE} echo " + Create disk partitions" parted --script -- ...
b03e2fcb2290c37c86da355c54adaa40c954cd4d
622
#!/bin/bash show_help() { echo "$1 <TMUX_SESSION> [TMUX_WINDOW]" echo "" echo "-h = Display this help" echo "" exit 0 } while getopts "h" opt; do case "$opt" in h) show_help exit 0 ;; esac done shift $(( OPTIND - 1 )) TMUX_SESSION="$(get_direc...
ff62fa61dee25d78cb6b2a95586d77a89dce550f
58
#!/bin/bash diff <(./run.js $1) <(./expected.js $1; echo)
b0fbb8030b2f0ba597ddc866fe73e028e36c92be
1,382
#!/bin/bash # bin dns ad blocking #==================== # download the blacklist in bind format #====================================== wget -O bind-adblocking 'http://pgl.yoyo.org/adservers/serverlist.php?hostformat=bindconfig&showintro=0&mimetype=plaintext' # edit bind-adblocking and change path to zone file ...
8a8db17566d61020febb0e782c946bf91b871f3e
332
export CLUSTER_HOME=/home/kingdon/projects/hephy.rocks export HELM_TLS_ENABLE=1 export HELM_TLS_VERIFY=1 export HELM_TLS_CA_CERT=$CLUSTER_HOME/tls/ca.pem export HELM_TLS_CERT=$CLUSTER_HOME/tls/flux-helm-operator.pem export HELM_TLS_KEY=$CLUSTER_HOME/tls/flux-helm-operator-key.pem export HELM_TLS_HOSTNAME=tiller-deploy....
106b929369912abd5bc101c980e18bad10c5c52a
586
echo containers create curl -X POST -H 'Content-Type: application/json' http://localhost:8080/containers -d '{"image": "my-app"}' curl -X POST -H 'Content-Type: application/json' http://localhost:8080/containers -d '{"image": "b14752a6590e"}' curl -X POST -H 'Content-Type: application/json' http://localhost:8080/contai...
81501ae205bcd5142bff5c23a9c82e7fdf30aebc
10,661
#!/bin/bash ##################################################################################### # Script: kspray.sh | By: John Harper ##################################################################################### # kspray is useful on an untrusted/non-domain joined Kali host to perform: # - Password spraying...
54d916eedd0c5cff690b06d110270f44d80878c8
9,869
#!/bin/bash BARRA="\033[1;36m-----------------------------------------------------\033[0m" IVAR="/etc/http-instas" SCPT_DIR="/etc/SCRIPT" SCPinstal="$HOME/install" rm $(pwd)/$0 add-apt-repository universe apt update -y; apt upgrade -y install_ini () { clear echo -e "$BARRA" echo -e "\033[92m -- INSTALANDO PAQ...
fd83df1d419871f545d0eb978259dc2fa17367cb
460
echo "---------------------------------" echo "START:Docker ec-cube3 exec_env.sh" echo "---------------------------------" a2enmod rewrite alias sudo='sudo -E ' echo "---------------------------------" env echo "---------------------------------" echo "---------------------------------" alias echo "-----------------...
9994edb0162edb5a3b8e1df5145f5500225c1517
1,067
#!/bin/sh -x # # Removed dependency from /etc/rc. stop_boot() { # Terminate the process (which may include the parent /etc/rc) # if booting directly to multiuser mode. # if [ "$autoboot" = yes ]; then kill -TERM $$ fi exit 1 } fsck_start() { if [ "$autoboot" = no ]; then echo "Fast boot: skipping disk chec...
ed9714b180abfa25b562dbd500b9a493f61385d9
140
#!/bin/bash num1=100 #keep in mnd tabs not necessary if [ $num1 -eq 200 ] then echo "equal to 200" else echo "not equal to 200" fi
7f3f144a0e9bccfada2e714c0d8bade58c3fefd3
483
#!/usr/bin/env bash echo "create network reverse-proxy" docker network create -d bridge reverse-proxy echo "== start traefik v2.2" docker run -d \ -p 80:80 \ -p 8080:8080 \ -p 3306:3306 \ -v $(pwd)/configuration/traefik/traefik2.2.toml:/etc/traefik/traefik.toml \ -v /var/run/docker.sock:/var/run/do...
b8af3460dfb815f47cd134765037ba35ddd94b95
158
mkdir 00_temp 0_fastq_raw 1_QC 2_fastq_trimmed 3_merged 4_aligned 5_flag 6_deduplicated 7_methCalls mv *.fastq.gz 0_fastq_raw/ snakemake all snakemake multiQC
21581a53cbb04fc4af8ef48ed77496ac02a79172
394
#!/usr/bin/env bash # This one installs the new virtualenv environment echo "Building Deepspeech from source" echo "Getting the GPU version for python programming" sudo echo #So that it makes installation easier later #remove the old one first rm -r DeepSpeech/ #get latest Deepspeech git clone git@github.com:mozilla...
44d955642f0559bf73d2431f152ddf8cc33080b3
790
yes | sudo yum install -y git mysql{,-devel,-server} gcc screen nginx zsh make yes | sudo yum groupinstall "Development Libraries" sudo mv nginx.conf /etc/nginx/ sudo service nginx start sudo easy_install pip virtualenv{,wrapper} mkdir ~/.virtualenvs sudo chsh ec2-user -s /bin/zsh git clone git://github.com/jbalogh/dot...
53aa278802e6c304cce3b1b0e2bda884e63a98a7
94
/home-user/thliao/anaconda3/bin/python run.py "1155136557@link.cuhk.edu.hk" "12345678" "./seq"
cbef9df6394d1942f9ccae7abd8fbdfee3e3a41d
264
#!/bin/bash #ka44367 gcc -g lab07.c -o lab07 -fopenmp -fpermissive -O3 -lm n=( 1 2 3 4 5 6 7) image_sizes=( 420 1200 2520 ) for image_size in "${image_sizes[@]}" do for thread in "${n[@]}" do ./lab07 ${thread} ${image_size} done done
42a305b11f3924a2fe00ce349f5499d42335aac7
1,138
#!/bin/sh git init testrepo cd testrepo cat << EOF > poem.txt twas bri1lig, and the slithy toves did gyre and gimble in the wabe all mimsy were the borogroves and the m0me raths outgabe. "Beware the Jabberwock, my son! The jaws that bite, the claws that catch! Beware the Jub jub bird, and shun The frumious bandersna...
c27d5b086ab79ef53a4df1d0344f6161135c3828
340
#!/bin/bash #PBS -q workq #PBS -l nodes=1:ppn=20 #PBS -l walltime=3:00:00 #PBS -N pasta #PBS -o runpasta.out #PBS -j oe #PBS -A loni_selu_sys #PBS -m abe #PBS -M tyler.stevens@selu.edu module load java module load python/3.5.2-anaconda-tensorflow cd work/tstevens/FinalProject/data python ~/pasta/run_pasta.py ...
a93c97b2edcae6ef9cfdea8f2051edfd30e825aa
125
#!/bin/bash # http://www.commandlinefu.com/commands/view/13950 ps aux | grep -E "[${1:0:1}]${1:1}|^USER" | grep -v "any $1"
264c4696310f4c112d12fbc57f09f314ab5458e9
55
#!/bin/sh docker build -t bjddd192/lepus:v3.8.0-php .
ab88be23dc34aed674579b66a714f92acd07c1c6
126
SUBDOMAIN=<subdomain> CSV_FILE_PATH=<file_path> CALENDAR_ID=<calendar_id> CLIENT_ID=<client_id> CLIENT_SECRET=<client_secret>
900b8875f3c94c26f662f991c19acd9832b01561
86
#!/bin/bash #watchexec -rce py 'sleep 2 && pytest -s' watchexec -rce py "./x.sh"
e1ba5cba994d6b17e3579dfda1b456f917e13b4e
2,796
#!/bin/bash ## FIO parameters RUN_TIME=15 ARR_JOB=(rw randrw) ARR_QD=(1) ARR_BS=(4k) LOG_MSEC=100 ARR_READ_RATIO=(10 20 30 40 50 60 70 80 90) ## Test parameters MIN_NUM_CONT=0 MAX_NUM_CONT=9 DEV=nvme3n DEV_ID=1 SRC_VOL=resource IMAGE=fio-centos func_simple() { for JOB_TYPE in "${ARR_JOB[@]}"; do for BS in "${ARR_...
1f34285e34e00cfa5781f8366a48fe700ead06eb
313
# vim: set syntax=sh # unfuck the ls alias ls="ls --color=auto" # Nicer man colors man() { LESS_TERMCAP_md=$'\e[01;36m' \ LESS_TERMCAP_me=$'\e[0m' \ LESS_TERMCAP_se=$'\e[0m' \ LESS_TERMCAP_so=$'\e[01;32m' \ LESS_TERMCAP_ue=$'\e[0m' \ LESS_TERMCAP_us=$'\e[01;26m' \ command man "$@" }
5f87e78413e6a755287b788d8b269c48a0890c97
247
#!/bin/bash read -p "Please enter the name of the file or directory:" FILE if [ -f FILE ] then echo "${FILE} is a regular file." elif [ -d FILE ] then echo "${FILE} is a directory." else echo "${FILE} is other type of file." fi ls -l $FILE
12162ac923112ba8b4ad7de50f6770efb4325db9
3,760
# # 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"); you may not...
2a67ba4aaaf9d43c69fb61ddd4a9d3d7bc96880d
3,667
#!/usr/bin/env bash #./caffe/cmake_build/install/bin/caffe \ # test CAFFEBINDIR=./caffe/cmake_build/install/bin export LD_LIBRARY_PATH=./caffe/cmake_build/install/lib:$LD_LIBRARY_PATH #time $CAFFEBINDIR/classification \ # ./ResNet-152-deploy.prototxt \ # ./ResNet-152-model.caffemodel \ # ./ResNet_mean.binaryprot...
7d416547153a210a13559b8d84318f3abd69fa97
9,796
#!/bin/bash #!/usr/local/bin/bash -xv # コマンド処理系の変更例 # # test script of block_getlast # # usage: [<test-path>/]calclock.test [<command-path> [<python-version>]] # # <test-path>は # 「現ディレクトリーからみた」本スクリプトの相対パス # または本スクリプトの完全パス # 省略時は現ディレクトリーを仮定する # ...
b6db430d86fcadfe6b2922459c9aa5651f16abb1
1,918
#!/bin/bash set -e # # Build thunder performance docker image TAG_NAME="" PROJECT_PATH="" PROFILE="thunder" THUNDER_TEST_GROUP="Thunder_Base_Set" # Process script options while [ -n "$1" ]; do case "$1" in --tag) TAG_NAME="$2" shift ;; --project-path) ...
4cc52e1247f8789886de60beb9c48153001c8b2d
266
#!/bin/bash # for i in {0..9}; do # rm -rf checkpoint/ # python3 src/train.py # python3 src/evaluate.py # done # rm checkpoint/Exp2 -rf # ROBERTA_LEVEL=sentence python3 src/train.py # rm checkpoint/Exp2 -rf # ROBERTA_LEVEL=word python3 src/train.py
d03efcadfd76df9b2c458a3d948d182750ea6e7c
65
export DISPLAY=:0 sudo python /home/pi/ir/ir_hansun_consume.py &
8d2d38dff5a0a8334088582c67410c9b57ce57a0
339
if ps -ef | grep "roboteye.py" | grep -v grep >/dev/null 2>&1; then echo "roboteye is already running" exit 0 else echo "**** starting roboteye ****" nohup /home/pi/webapps/roboteye/roboteye/scripts/start_roboteye.sh > /home/pi/projects/logs/nohup_roboteye.out 2> /home/pi/projects/logs/nohup_roboteye.e...
4154fad39b6a5b2ebe62510931491234af617c7a
285
#!/bin/sh curl -H "Content-type: application/json" -X POST -d '{"projectConfig": {"projectId":"1111563517","projectSecret":"95439b0863c241c63a861b87d1e647b7","itsmApiUrl":"http://121.40.164.61:8080/tgmonitor/rest/app!getAPIInfo2"}}' http://localhost:8081/tech-sdkwrapper/timevale/init
8b0709d7a38f36329631b3679881342760301835
11,402
#!/usr/bin/env bash ASDF_DIR="$HOME/.asdf" OMZSH_DIR="$HOME/.oh-my-zsh" TPM_DIR="$HOME/.tmux/plugins/tpm" VUNDLE_DIR="$HOME/.vim/bundle/Vundle.vim" RUBY_VERSION="3.0.2" NODE_VERSION="18.17.0" DENO_VERSION="1.35.1" JAVA_VERSION="adoptopenjdk-jre-8.0.252+9.1" KOTLIN_VERSION="1.6.0" PYTHON_VERSION="3.9.9" GROOVY_VERSION=...
52f66fbf9e1ecbf5dea9d9a0fb593fab15b4dec5
345
#!/bin/sh build_dir="gwyfhelper/bin/Debug/" helper_path="$build_dir/gwyfhelper.dll" managed_dll_path="$HOME/Library/Application Support/Steam/SteamApps/common/Golf With Your Friends/Golf With Your Friends.app/Contents/Resources/Data/Managed/" pkill -f "Golf With Your Friends" cp "$helper_path" "$managed_dll_path" && o...
3538226c4450b5e52cb02c245fda329820dbf9ae
141
#!/bin/bash roslaunch system_launcher system_launch.launch & sleep 3 rosrun gazebo_ros gzserver & sleep 3 /opt/gzweb-1.1.0/start_gzweb.sh &
532c8918f82b7ff76db6b011d08b07a40e26d4ee
82
#!/bin/bash distr=$1 root -l -q cuts_fp_omg_manyptbinseff.C++\(0,0,\"${distr}\"\)
e3d5e91511eef498216e1bf1e42cbe52d99a03bd
193
#!/bin/bash for i in 8; do for j in ff14SB ff94 ff98 ff99SBnmr; do for k in E4K43 K4E43; do cd ../2-Run1/igb${i}_${j}_${k} sbatch md2.slurm cd ../../1-Preparation done done done
4f2023da655619168355ed3d8c3a4e6cc3d31bc4
67
#!/bin/bash mpicc mpiImp.c $(pkg-config --cflags --libs glib-2.0)
ee72ba0d28cddf3358c975334f05c1c5e4e0a9e4
1,367
#!/bin/bash DOWNLOAD_DIR=http://cvs.haskell.org/Hugs/downloads/2006-09/ HUGS_FILENAME=hugs98-Sep2006 HUGS_TAR_FILE=${HUGS_FILENAME}.tar.gz EMCONFIGURE=emconfigure EMMAKE=emmake EMCC=emcc NODE=node echo "Setting up directories" mkdir -p build cd build if [ ! -e "$HUGS_TAR_FILE" ]; then wget ${DOWNLOAD_DIR}${HUGS_...
a8312b77dd5bb7320fd4ce60571289687341325d
266
#!/bin/bash docker build . -t hiprabhat/ecommerce-recommendation:v2 docker push hiprabhat/ecommerce-recommendation:v2 docker tag hiprabhat/ecommerce-recommendation:v2 hiprabhat/ecommerce-recommendation:latest docker push hiprabhat/ecommerce-recommendation:latest
0462bb05d3baa51575d9ec5cebca08dd36ac7a68
946
#!/bin/bash db=$1 runId=$2 if [ $# != 2 ]; then echo "***ERROR*** Use: $0 database script_run_id" exit -1 fi SQLITE_CMD="sqlite3 $db" for i in $(ls *.fasta) do #echo $i id=$(echo "select distinct file_id from file f natural join staged_in s where f.name like '$i' and s.app_exec_id like '%$runId%';" | $SQLITE_...
c0e71c710370da56d1c05c1a86ee010a55d9b8dd
651
#!/bin/sh # This script will tell you if there are headers in the source tree # that have not been installed in $PREFIX LIST="" for i in $(find spa/include -name '*.h' | sed s#spa/include/##); do [ -f "$PREFIX/include/spa-0.2/$i" ] || LIST="$i $LIST" done for i in $(find src/extensions -name '*.h' | sed s#src/#pip...
ee08d3cdbd79191bacad4cd0b47dbdb64c529d2a
426
#!/bin/bash REPO=${1:-demo} PKG=${2:-foo} VER=${3:-v1} USER=${4:-github.com/taekyung-kim-kr} OUTPUT=${USER}/${REPO}/pkg/client INPUT=${USER}/${REPO}/pkg/apis #./generate-groups.sh all "github.com/taekyung-kim-kr/demo/pkg/client" "github.com/taekyung-kim-kr/demo/pkg/apis" foo:v1 --go-header-file ./hack/boilerplate.go...
d137710d92a23d816e918bfb232afee37dc32c66
3,045
#!/bin/bash __USER=$USER # Get super user privileges if [[ $EUID != 0 ]]; then sudo "$0" "$@" exit $? fi this_path=$PWD install_path=/tmp/install/ mkdir -p $install_path && cd $install_path function find::folder { if [ ! -d $1 ]; then echo " [x] $(basename $1) not found..." return 1 fi echo " [x] $(b...
ad8b1a753a039d04c16b8a7a9105d1cacea5cdab
867
# Maintainer: Christian Heusel <christian@heusel.eu> # Contributor: Gavin Lloyd <gavinhungry@gmail.com> # Contributor: Thorsten Töpper <atsutane-tu@freethoughts.de> # Contributor: SpepS <dreamspepser at yahoo dot it> # Contributor: Philipp Robbel <robbel@gmail.com> pkgname=fswebcam pkgver=20200725 pkgrel=1 pkgdesc='Ne...
bc084ba6402612a84da0698ceffbb2920b19e2cc
869
function rc_while() { while read -n 1 _c; do rc "$_c" done } function rc() { _base_command='curl https://api.spark.io/v1/devices/'"$SPARK_CORE_DEVICE_ID"'/rccar -d access_token='"$SPARK_CORE_ACCESS_TOKEN"' -d "params=rc,__CMD__"' case "$1" in i) echo "FORWARD march!" _command=$(echo "${_base_command}...
0d7a4c79e2397785a13bc8d577a06df66a6f8f0c
133
#!/bin/bash export ENV_VB=VB # This function must exist in an environment script: function plugin_install_artifact { return 0 }
e6a8235bd5afc40c767945daf70fdf7036eeb7f5
37
#!/usr/bin/env bash go install ./...
d7f6f68258a74bd367151158dd35cf7884692ec6
1,627
#! /bin/bash set -e export ASIC="${ASIC:-capri}" export NICDIR=`pwd` export PDSPKG_TOPDIR=$NICDIR export NON_PERSISTENT_LOG_DIR=${NICDIR} export ZMQ_SOC_DIR=${NICDIR} export ASIC_MOCK_MODE=1 export ASIC_MOCK_MEMORY_MODE=1 export IPC_MOCK_MODE=1 export SKIP_VERIFY=1 export BUILD_DIR=${NICDIR}/build/x86_64/apollo/${ASIC...
be3201f35d8c4ff46f49c6866265d2965258e435
1,465
#!/bin/sh # Credit to this Stack Exchange answer for explaining this: # https://unix.stackexchange.com/a/343974/363304 SUCCESS_CHECKMARK=$(printf '\342\234\224\n' | iconv -f UTF-8) CROSS_MARK=$(printf '\342\235\214\n' | iconv -f UTF-8) set -eu get_node_version() { # Check that they have node installed if ! [ -x ...
39b8fd351b001a1a30832786cbe9a2aaa1339de4
399
#! /bin/bash build() { local dir=$1 local tag=$2 docker build -t $tag $dir if [ "$?" -ne "0" ]; then echo "Failed building docker image '$tag' in '$dir'." fi } # cd into parent directory of this script cd "$(dirname "${0}")" # Build docker containers used by the docker-worker tests #build $PWD taskcl...
152a9348d02f3358d14674dddd6533a259d8d7e8
249
#!/bin/bash virtualenv seedenv source $WORKSPACE/seedenv/bin/activate sudo pip install jenkins-job-builder==1.6.1 jenkins-jobs --conf $WORKSPACE/data/jenkins-job-builder/jenkins.ini update --delete-old $WORKSPACE/data/jenkins-job-builder/demo/jobs
1f0414550593cfa637595a7ffcb3d4978b9f6ac8
154
#!/bin/bash -e res=100 MPDATAtype=exp c=1 ./runOne.sh $res $c $MPDATAtype case=${res}x${res}/c${c}_${MPDATAtype} ./plotOne.sh $case >& $case/plotLog &
e249698d6f2898bf6879117536b2e982a9721975
32
xsv cat rows iris.csv iris.csv
d142d205579ea09dc8970ce84d891ff76ef54287
76
# Embedded Atom Potential ./CoMD-serial -e -i 1 -j 1 -k 1 -x 20 -y 20 -z 20
29c20426ad14ceb23da672af9a86448ba9e427c8
133
#! /bin/bash free -h > Backups/freemem.txt du -h > Backups/diskuse.txt lsof > Backups/openlist.txt df -h > Backups/freedisk.txt
89472dc321d648d1de6f6bf440b7146fc37ea89b
77
# PS1="[\u@`hostname` \w]\$ " # resize # reset terminal width to fit new PS1
dd4ba0d761456e363865492d8f68f4f0b1cc1052
3,862
## echo # Any argument passed to echo gets displaye $ echo this is a test this is a test ## filepath expansiions $ echo * Desktop Documents ls-output.txt Music Pictures Public Templates Videos $ echo D* Desktop Documents $ echo *s Documents Pictures Templates Videos $ echo [[:upper:]]* Desktop Documents Music Pictu...
ac5ab56086c5ddc50e00cb4f23f3d7e93c2f83b2
198
#CREATE TOPIC /usr/local/Cellar/kafka/2.4.1/libexec/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic online_learning_topic echo TOPIC CREATED..
d1023e98528fd2f6e0f0d6e8201d890c0311a35a
345
#!/usr/bin/env sh kill -9 $1 > /dev/null 2>&1 OUT=$? if [ $OUT -eq 0 ];then echo "{ \"version\": 1, \"title\": \"Killing $2\", \"type\":\"status\", \"status\":\"ok\", \"message\":\"success\"}" else echo "{ \"version\": 1, \"title\": \"Killed $2\", \"type\":\"status\", \"status\":\"failed\", \"message\":\"could not ...
f88f77f4665611d58fa55939ee36ef9b2e797260
190
#!/bin/bash #echo $PORT >> ~/.bashrc export FLASK_APP=server/server.py sed -i -e 's/$PORT/'"$PORT"'/g' /app/server/static/js/bootstrapper.bundle.min.js flask run --host=0.0.0.0 --port $PORT
c52c427728bf889d447eea2a0a083d728b56adbc
336
API_HOST=https://console-api.lingtelli.com DEMO_HOST=https://console-api.lingtelli.com/demo WEBHOOK_HOST=console-api.lingtelli.com/webhook WEBHOOK_API_HOST=https://console-api.lingtelli.com/webhook/api/v2 WEBSCRIPT_URL=https://lingtelli-chatbot.oss-ap-southeast-1.aliyuncs.com/thrid-party-test.js NODE_PATH=src/ GENERATE...
c1e9d3b645f7a1c14edeabeaea58ab0ee688907d
79
#!/bin/sh while : do tail -n 15 /tmp/backup.log > /tmp/msg.log sleep 1 done
74d626f08bcb47a9d1ad02d67e29b0c1e5c5f05b
192
#!/bin/bash cd $(dirname $0)/.. export DSLOCKFILE=$PWD/.git/datalad_lock touch $DSLOCKFILE for sub in $(ls nifti | grep -Eo "P[0-9]+"); do bsub -o logs -e logs ./code/mimosa.sh $sub done
89477cc90f1796d8b44bb107295702470349aa93
149
Pushing tags to a server Search for commits by author Check the status of your files Use `short` status to make output more compact Perform a dry run
a4f6b1f6bb7b8ee8f75dcad98a5ead5b9892ec67
917
#!/bin/sh # # Script to configure and make CUPS with the standard build options. When no # targets are specified, the "clean" and "check" targets are used. # # Usage: # # scripts/makecups [configure option(s)] [make target(s)] # # Scan the command-line arguments... confopts="--enable-debug --enable-debug-guards --e...
6cc965b6e12540a877fbff8922d32097b4835416
2,041
#!/bin/bash set +e BIDMACH_SCRIPTS="${BASH_SOURCE[0]}" if [ ! `uname` = "Darwin" ]; then BIDMACH_SCRIPTS=`readlink -f "${BIDMACH_SCRIPTS}"` export WGET='wget -c --no-check-certificate' else while [ -L "${BIDMACH_SCRIPTS}" ]; do BIDMACH_SCRIPTS=`readlink "${BIDMACH_SCRIPTS}"` done export WGET='curl -C - -...
cac51afc1162601b4afdccd4b61a370ce842d14a
801
#定义基本路径,安装路径及安装包路径 setup_path=/usr/setup/ #安装包基本路径 base_path=/usr/test/ #安装基本路径 tomcat_name=apache-tomcat-8.5.33.tar.gz #tomcat名(与setup_path拼接) tomcat_path=tomcat/8.5 #安装路径 echo 开始安装tomcat #判断是否有tomcat路径 if [ ! -d $base_path$tomcat_path ]; then mkdir -m 777 -p $base_path$tomcat_path else chmod 777 -R $base...
1391b34caa8a974aa6fa89f344d9e2e1ec41449a
499
#!/bin/bash #This script updates db dumps from a bungnei db for use on a different computer #It updates the owner of the db dump with a new user owner #input file , $2 = output file , $3 = input user , $4 = output user EXPECTED_ARGS=4 BAD_ARGS=99 if [ $# -ne $EXPECTED_ARGS ] then echo "Usage: upd-dbdump.sh <input-fil...
0d023e67ccaad4d95a379a3a8b02ee421271ca03
70
http://www.commandlinefu.com/commands/matching/sql/c3Fs/sort-by-votes
afddc31718fe6bbf031f93b0337d0ef4cacc3a91
93
#!/usr/bin/env bash make build/scraper docker run -p 8080:80 -v $(pwd):/app covid19/scraper
67774bd559b6b3b303bd4baa4cb0fd478b3c469d
432
#!/usr/bin/env bash install_fzf(){ printf "[fzf ] installing fzf... " if [[ ! -d ~/.fzf ]]; then git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf &>>$LOGS/fzf_install \ || fatal "Failed to download fzf. check \$LOGS/fzf_install" ~/.fzf/install --all --xdg &>>$LOGS/fzf_install \ || fatal "F...
0bb860b9b2ff47144c6beb577d045054969864f8
229
#!/bin/sh # Update a project's deps, whether given in properties or inline, and show plugin updates set -x mvn versions:use-latest-releases versions:update-properties mvn versions:display-plugin-updates | grep -- '->' | sort
621b57bc99ca5cd8ea3f14d7c0086303176dc0ab
306
#!/bin/bash -eux GREEN='\033[1;32m' RED='\033[0;31m' NC='\033[0m' printf "${GREEN}Installing EPEL repository${NC}\n" yum -y install epel-release printf "${GREEN}Installing Ansible and its dependencies${NC}\n" yum -y install git python-setuptools gcc sudo libffi-devel python-devel openssl-devel ansible
90dbf3c1660391dc803bd2d1fe9e0f83899dd209
853
#!/bin/sh ############################################################## # # Author: Ruslan Khissamov, email: rrkhissamov@gmail.com # # Thank you: Alexey Kupershtokh # ############################################################## # Update System echo 'System Update' apt-get -y update echo 'Update completed' # Install...