blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
274f31a0450a23d88cbfad3c3ef58f9288e0ae8c
1,299
#!/usr/bin/env bash BASE_DIR=$(cd `dirname $0` && pwd -P) curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.4.0-x86_64.rpm rpm -vi filebeat-5.4.0-x86_64.rpm && rm -rf filebeat-5.4.0-x86_64.rpm cp ${BASE_DIR}/filebeat/config/filebeat.yml /etc/filebeat/filebeat.yml sed -i -e "s#master0#${M...
b0955e76ddc94efd34bab05ffd45430abb3d7b91
306
#!/bin/bash # For use when building a debian package steel_version_macro=$(grep 'define STEEL_VERSION' ../src/steel_version.h) steel_version=$(echo "$steel_version_macro" | sed -e 's/.*"\(.*\)".*/\1/') date=$( date +%Y-%m-%d ) date_id=$( date +%Y%m%d ) dch -v $steel_version-$date_id "$date daily build"
c5df22f79ef0c5506b7752176f5082d2b93478d0
419
PRISMA_HOST_PORT=4466 PRISMA_API_SECRET=my-secret PRISMA_DB_HOST=host.docker.internal #for pg running on localhost. will work on mac and windows alone. PRISMA_DB_USER=postgres PRISMA_DB_PASSWORD=password PRISMA_ENABLE_MIGRATION=true PRISMA_DB_PORT=5432 PRISMA_DB=journal PRISMA_ENDPOINT=http://localhost:4466 GRAPHQL_SER...
f7492eaf4760b5b08858dbfd15d23bdaee6d4367
274
#!/bin/bash if [[ -d "repos/secret-santa-sms-a" ]]; then cd repos/secret-santa-sms-a git checkout master && git reset version-1.0 --hard && git push -f git push origin --delete my-branch git push origin --delete improve-tests cd ../.. fi rm -rf repos/
ce30949a4979d3f289b0058bb42be904bc1d7cc1
2,681
#fit for signal scaling cd /storage/9/mneukum/CMSSW_7_1_9/src cmsenv cd /storage/9/mneukum/CMSSW_7_1_9/src/CombinedEWKAnalysis/CommonTools/test/my_test/ssWW_smallGrid cp /storage/9/mneukum/test/pythia_output_to_ATGCRooStats/ready_to_fit_ssWW_KC_maxGrid_fs0.root ./ssWW_smallGrid_fs0.root python ./doFit.py --config=ssWW_...
84b4c50e1c8ab190436b9f99cd9b2351bbd5ac26
563
#!/usr/bin/env bash ETL_DATE=20150301 OUTPUT="$ETL_DATE/`basename $0`" hadoop fs -test -d $ETL_DATE 2>&1 2>/dev/null [ $? -eq 0 ] || hadoop fs -mkdir $ETL_DATE hadoop fs -test -d $ETL_DATE/$SCRIPT 2>&1 2>/dev/null [ $? -eq 0 ] && hadoop fs -rmr $OUTPUT hadoop jar /home/hadoop/hadoop-1.2.1/contrib/streaming/hadoop-s...
9665a180cc451efd9c8961e9b0bf4d378ca2a811
109
kubectl get secret --namespace monitor grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
e3512e320e6bb4aca910193f027b49ce076f9701
113
#!/bin/bash export OUTPUT_ROOT=/short/v10/tmp/${USER}/ula3_tests/pqa rm -f test.pqa.* rm -rf ${OUTPUT_ROOT}/*
f604d77c80349e26156a8cc0bf609a513ed5e948
29
set -x git pull heroku master
a4a2afa56122e97976771fc0c0f4635121823f5e
145
FILES=./*.att for f in $FILES do echo "Processing $f file..." f2=${f%????} fstcompile --isymbols=ins.txt --osymbols=outs.txt $f $f2.fst done
ade8b61934599ce30517fc0ed410feacf4245ba9
706
#!/bin/sh -x rm -fr local cp -fr algorand_network local cp -fr algorand_data local/Primary clean() { (killall -9 tealdbg || exit 0) (killall -9 algod || exit 0) } clean export POSTGRES_USER=algogrand export POSTGRES_PASSWORD=indexer export POSTGRES_DB=pgdb (docker container stop algopgdb || exit 0) docker run ...
79870852ba65cb5d1416a9719b49c90a1ced5abe
646
#!/usr/bin/env sh exec 1>&2 function h1() { printf "\n\x1B[1;39m> %s\n" "$@" } function pass() { printf "\x1B[1;33m✔\x1B[0m %s\n" "$@" } function fail() { printf "\x1B[1;31m✖\x1B[0m %s\n" "$@" exit 1 } function failsafe() { printf "\x1B[1;31m✖\x1B[0m %s\n" "$@" } commit_files() { if [ $# -eq 0 ] ; th...
8df92e05ebef18308646f0fd760da02c645254ea
69
#!/bin/bash cd `dirname $0` gunicorn -w 4 -b 0.0.0.0:8080 lamp:app
50b4626cdc984cc6121468f6dcff1a5d80d000bf
2,052
#!/bin/bash # 05/12/2015 # script agenda um horário para o sistema ser desligado # as janelas são construidas através do programa zenity # que já vem instalado na maioria das distribuições. # # por Flávio Oliveira (Flávio Dicas) # https://github.com/oliveiradeflavio # http://youtube.com/flaviodicas # http://flaviodeoli...
512ea3ab0d1b11bf921670ca5bcebb02f98f9c16
47
/usr/local/cuda/bin/cuda-install-samples-7.5.sh
35733d83b7b101d00dd03a24eb1756f545e6bc68
286
#!/usr/bin/env bash DOCKER_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin # RUN developping tools from docker docker_cmd="docker run -t --rm -e PATH=$DOCKER_PATH:/home/rustenv/.cargo/bin -v $PWD:/home/rustenv/workdir -w /home/rustenv/workdir rustos" $docker_cmd $@
53fb6177aea3d40f202b63291f129581bb2fdd46
627
APP_NAME=Laravel APP_ENV=local APP_KEY=base64:WHknEjLBlqtSFBdLnW2Q1VvbB9Jxalhk929Jv3/s1c8= APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=http://badtumb.local DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=badtumb DB_USERNAME=nilsenj DB_PASSWORD=21317636 BROADCAST_DRIVER=log CACHE_DRIVER=file SESSION_DRIV...
04b1eea9458b703983bd0d85eb3fbf3d11d78906
57
#!/usr/bin/env bash java -jar build/libs/ora-0.2.0.jar $1
390fd71c8cab5e244e655f952a4c8bd8e73339d0
196
PSQL_DATABASE=jdbc:posgresql://localhost:5432/creative PSQL_USER=docker PSQL_PASSWORD=keyboard_kat S3_ACCESS_KEY_ID=AmazonS3AccessKey S3_SECRET_ACCESS_KEY=AmazonS3SecretKey S3_BUCKET_NAME=Potato
580ce8547953a3dda993c2f959339f0f7f354312
72
FLASK_APP=picorss/src/web/setup_flask.py FLASK_ENV=development flask run
736bd38c0fd5e95ef082d293ac5851a49eab5564
235
#!/bin/bash #================< Set Variable >================= IPT=/sbin/iptables IP_SELF=192.168.1.33 #================< Clear Original Rule >================= $IPT -t filter -F #================< Set INPUT Rule >=================
7989a706e143a4436a74ca3436da2a4ef7973fd7
2,091
#!/bin/bash mkdir -p /etc/powerdns/pdns.d PDNSVARS=`echo ${!PDNSCONF_*}` touch /etc/powerdns/pdns.conf PDNSCONF_GMYSQL_USER=pdns PDNSCONF_GMYSQL_DBNAME=pdns PDNSCONF_GMYSQL_PASSWORD=pdnspw for var in $PDNSVARS; do varname=`echo ${var#"PDNSCONF_"} | awk '{print tolower($0)}' | sed 's/_/-/g'` value=`echo ${!var}...
568c78a7462674b3046c8de498bcc8b495c7ca15
38
#!/bin/bash mpif90 -c module.f90 make
3e5a62623b14a3c5bffbbb761ddaba43649e610b
67
kill -9 `cat save_pid.txt` ps -ef |grep nohup ps -ef | grep python
8a3e7c47e3c6b93d9f016181497b36d069773f63
4,358
# helpers/mt_list_commits.sh mt_list_commits() { local d="$1" shift run printf "start %s\n" "$d" && run git log --date-order --date=raw \ --format="%H %ct %T %P%x00%an%n%cn%n%ad%n%cd%n%ae%n%ce%n%B%x00" \ "$@" && run printf "all\n" && run git log --date-order --date=raw --reverse...
b4f895032edf08d537fad7c9ac025a6ca687cae3
2,576
#!/bin/bash #set -x set -e HOST_CFG="/tmp/${HOSTNAME}.cfg" die(){ echo $1; exit 255 } get_ip_of_dev(){ local dev=$1 local ip=$(ip addr show ${dev} | grep -P 'inet\s' | awk '{print $2}'|cut -d/ -f1) echo $ip } template(){ cat <<TEMP1 define host { host_name ${N_HOSTNA...
2b993ff5d79ffce05555c72d6c01e1bf099b28f4
514
#! /bin/bash # # Script de conversion de fichier WAV en MP3, et effacement du fichier WAV # # Paramètre: nom complet du fichier WAV à convertir # # Utile pour Asterisk / MixMonitor, par exemple: # exten => _XXXX,n,MixMonitor(${date:0:4}/${date:4:2}/${date:6:2}/out-${CHANNEL:4:6}-${EXTEN}-${CDR(uniqueid)}.wav,,/usr/lib...
66cff71d3241b6efa2e70386a82f255d72240c1d
590
#! /bin/bash sudo apt-get install -y terminator PWD="`pwd`/config-packages" mkdir -p ~/.config/terminator [[ -f ~/.config/terminator/config ]] && rm ~/.config/terminator/config [[ ! -h ~/.config/terminator/config ]] && ln -s $PWD/terminator_files/terminator.config ~/.config/terminator/config if [[ $ONEUSER == 1 ]]...
f7639f703a26a34fefa534fc2922386e36b83797
840
#!/bin/sh if [ "$1" == "" ]; then echo "Usage: $0 <older than (sec)>" exit 1 fi ARCHDIR=archive current=`date +%s` olderthan=`expr $current - $1` echo $current $olderthan for file in `ls *SM*.root` do time=`echo $file | awk -F _ '{print $2}' | cut -c 1-10` if [ $time -le $olderthan ]; then echo "Moving...
b4f93b20731fced40d3f1e38af99b5134910a3c2
381
WEBHOOK_SECRET="v3r1s3cur3" oc -n reversewords-ci create secret generic webhook-secret --from-literal=secret=${WEBHOOK_SECRET} sed -i '' "s/<git-triggerbinding>/github-triggerbinding/" webhook.yaml sed -i '' "/ref: github-triggerbinding/d" webhook.yaml sed -i '' "s/- name: pipeline-binding/- name: github-triggerbinding...
bca95934a62fcd84e670cc47ec9a2f2b446ac3cb
106
BASE_URL= ESI_CLIENT_ID= ESI_CLIENT_SECRET= DB_HOST=localhost DB_PORT=5432 DB_NAME= DB_USER= DB_PASSWORD=
8781879a5b2c1be8ef2e3461cae16505b123ebc0
3,187
#!/bin/bash #MEMORIA RAM ram_total=$(free -m | grep Mem | tr -s ' ' | cut -d ' ' -f2) ram_usado=$(free -m | grep Mem | tr -s ' ' | cut -d ' ' -f3) ram_usado_porcentaje=$(expr $ram_usado \* 100 / $ram_total) ram_libre_porcentaje=$(expr 100 - $ram_usado_porcentaje) #CONECTIVIDAD conectividad="NO" myping=$(ping -c...
a44a00e75b0594afae260f4887522838abb13d61
133
# basically hide dock forever defaults write com.apple.Dock autohide-delay -float 5 # defaults delete com.apple.Dock autohide-delay
d43a0aa6189cb0adee8efd1e3d83b109e3c6913d
1,338
#!/bin/bash LOG_FILE=/home/gregnix/Documents/Informatique/bash/DocsBackup/backups.log DAYS_THRESHOLD=1 BACKUP_FOLDER=/media/gregnix/GregWD/Backups NOTIFICATION_PIPE=/home/gregnix/Documents/Informatique/bash/DocsBackup/pipe log() { echo $(date +'%Y-%m-%d %H:%M:%S') $1 >> $LOG_FILE } sendNotif(){ echo $1 > $NOTIFIC...
45304d16f1f3b54369d0ba824433fc147dc3cc90
528
#!/usr/bin/env bash export EMAIL=${1} export STACK_NAME=periodic-costs-notification export BUCKET=${STACK_NAME} # make the deployment bucket in case it doesn't exist aws s3 mb s3://"${BUCKET}" aws cloudformation package \ --template-file template.yaml \ --output-template-file output.yaml \ --s3-bucket "${BUCKE...
f584f7c6b0d050a616a9a98ec2a34a9a982a2371
711
#!/usr/bin/env bash set -e function contains { for a in $1; do if [[ "$2" = $a ]];then return 0 fi done return 1 } availables="5.4 5.5 5.6 7.0 latest" if [ "$1" = "all" ]; then set -- "$availables" fi for version in $@; do if ! contains "$availables" "$version"; then...
4dcbfb5cab93d6174e32d1201ae8d387b9495443
1,429
#!/bin/bash cd "$( dirname "${BASH_SOURCE[0]}")" nord_port=1080 check_ip="ident.me" num_ip=$(cat src/nord_ip|wc -l) for (( n=1; n <= $num_ip; n++ )) do nord_ip=$(sed "${n}!d" src/nord_ip) echo "##############################" echo "| PING |: $nord_ip..." ping_ip=$(ping -4 -q -c 1 -W 0.5 $nord_ip | grep -o "100%") if ...
7b800f8beb590d6268ff95d2053f097cb14e8730
842
# GENERAL fpath=( "$HOME/.zsh/.zfunctions" $fpath ) export EDITOR='vim' export LESS=" -R " export LANG=en_US.UTF-8 export PATH="$HOME/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH" export TERM="xterm-256color" # BREW [ -d "/home/linuxbrew" ] && export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH" [ -d "/Users/...
b08885e913485283347cf0545edb6302dc115e6c
1,838
#!/usr/bin/env bash # # Prints circuit info in latex for a CSV file containing info produced by # get-kappas.sh # set -e fname=${1:-kappas.csv} source "$(dirname "$0")/utils.sh" count=0 curname= curmode= printline () { row= if (( $((count % 2)) == 1 )); then row="\\rowcol" fi circ="\texttt{$...
e8cd409bffabea727932636c8265176bb3891eac
1,007
#!/bin/sh #PBS -N "map" #PBS -l select=1:ncpus=8:mem=50GB #PBS -l walltime=8:00:00 module load bwa/0.7.15 module load samtools Wdir=/path/to/inputs cd $Wdir #map for fastqfile in `ls fastq_files/*_merged.fastq.gz`; do bwa mem -t 8 Homo_sapiens.GRCh38.dna.primary_assembly.fa $fastqfile > ${fastqfile}.se.sam samt...
5b85f9e84bff7a929f5e7729390a0077e18e7015
324
#!/bin/bash #This is command to search for the name of the Quarter #And replace it with the name of the Current Quarter. find . -type f -exec sed -i 's/Winter/Winter/g' {} + #This is the Command to Find and replace a Year #Comment this out if the year remains the same find . -type f -exec sed -i 's/2017/2018/g' {} ...
7182b18b131783cdd087ad5819f98fe119b30935
3,545
# set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in xterm-color) PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[0...
a6d2a4373d439b6eb1fbcffb8429457094f8bcbb
2,349
#!/usr/bin/env bash # Airpods.sh # Output connected Airpods battery levels via CLI BT_DEFAULTS=$(defaults read /Library/Preferences/com.apple.Bluetooth) SYS_PROFILE=$(system_profiler SPBluetoothDataType 2>/dev/null) MAC_ADDR=$(grep -b2 "Minor Type: "<<<"${SYS_PROFILE}"|awk '/Address/{print $3}') regex_connected="(Con...
9529bfe0daf6bd66ef9e0debad43411e24467571
177
#!/bin/sh sudo apt-get update sudo apt-get install -y qemu-user-static docker build -t raspi-kernel-builder docker docker run -v "${PWD}":/workdir raspi-kernel-builder ./build
d1b9dc15c7af68781e876d138fdc730347690b7c
252
#!/bin/bash echo "Linux User Accounts" awk 'BEGIN {FS=":"; print "Username\t\tUserID\t\tGroupID\t\tHome\t\tShell\n---------------"; } {print $1,"\t\t",$3,"\t\t",$4,"\t\t",$6,"\t\t",$7;} END { print "---------\nFile Complete" }' /etc/passwd
c7cd37471889ce736926c8823a831a77d4893921
7,478
#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License...
57c49308bf352479231ce8f3744347844dbf7350
86
docker run -d --rm --name syndata -p 8000:80 syndata:backend docker logs -f -t syndata
358c1ca623d49fe4dbad4b088620f4979a4029b5
42
#!/bin/bash echo 'git test after change'
570b82f21b06c2c6aebaf69725fd777915c65194
424
#!/usr/bin/env bash afew -C $HOME/.notmuch-iki --tag -- folder:INBOX afew -C $HOME/.notmuch-iki --tag --new alot -n $HOME/.notmuch-iki # afew -C $prefix/.notmuch-iki --tag --all # afew -C $prefix/.notmuch-iki --learn tag -- folder: # afew -C $prefix/.notmuch-iki --learn tag -- from: # afew -C $prefix/.notmuch-iki --lea...
9c1c238757ea7034803e5f40381bd46990b4c5f9
107
#!/bin/bash export DISPLAY=":0.0" gnome-terminal -e '/home/aquaj/Code/autoscreentweet/autoscreentweet.sh'
8d8e4f2722ce8c1ea32aa8083eb0fd0951beb7e4
38
GITLAB_RUNNER_HOME=/srv/gitlab-runner
8a1bf95d7afd7d2c756737724c3357827b22a1e7
36
#!/bin/bash /system/install openvpn
808b13c57e12d8579b779d470d28b006aa5c9e63
370
#!/usr/bin/env bash DEVICE=/dev/sdk MOUNTPOINT=/mnt/datadisk echo "Creating the filesystem." mkfs -t ext4 ${DEVICE} echo "Updating fstab" LINE="${DEVICE}\t${MOUNTPOINT}\text4\tdefaults,nofail\t0\t2" echo -e ${LINE} >> /etc/fstab echo "Mounting the disk" mkdir $MOUNTPOINT mount -a echo "Changing permissions" chown ...
535bc66619ad60e44759d8eae0c2308d38baf22f
310
#!/bin/bash LIST=$(ps -ef | grep chrome | grep -vP '(grep|kill)' | awk '{print $2}') echo "1 - $LIST" if [[ -z $LIST ]]; then LIST=$(ps -ef | grep chromium | grep -v grep | awk '{print $2}') echo "2 - $LIST" if [[ -z $LIST ]]; then echo 'Chrome not found' exit 1 fi fi kill -SIGKILL $LIST
bb1303f5b1cdbd6ca6b242d406c8375153f35c9b
219
#!/bin/bash while read line do echo $line /usr/bin/java -jar seyren-api-intuit-wrapper-1.5.1.jar -f api.properties -c SEARCH_CHECK -d "name,(.*)$line(.*)" |grep name sleep 2 done < 1final-hosts-only >> seyren.output
a495574454c2212b571ddf392e6d99b1764056ae
2,078
#!/bin/sh case "$1" in eth) case "$2" in ip) ifconfig eth0 | sed -n 's/^[^i]*inet addr:\([0-9.][0-9.]*\).*$/\1/p' ;; mask) ifconfig eth0 | sed -n 's/^[^M]*Mask:\([0-9.][0-9.]*\).*$/\1/p' ;; gate) route | sed -n 's/^default[[:space:]]*\([0-9.][0-9.]*\).*$...
7ef4c1c080fd01057d1ab7e07eb13b4eb94eb1cd
308
#!/usr/bin/env bash set -ue # Install Rust toolchain, noninteractively curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y # Source for current session source "$HOME/.cargo/env" # Run it, so that we have all components downloaded right away (it does so upon first launch) cargo --help
f549365c79ce303924fc985ea5495779ad42a933
64
#!/bin/bash -x more /home/sir/rmf/posted | egrep -wi --color $1
ac6731f59b74acd890ff35c94377e055927263f6
257
#! /bin/bash pyagent run -c /root/appdynamics-test.cfg - celery worker -A dfweb.celery -Ofair -E --broker='amqp://'$RABBITMQ_DEFAULT_USER':'$RABBITMQ_DEFAULT_PASS'@'$RABBITMQ_HOST':5672//' -Q demo_queue -c 2 -n celery-worker1@%h --logfile=/root/debug.log
e9392e0a4a1e468c930e40ec94b137689677794b
4,197
PROF="3o74fgym.Selenium1" PROF_DIR="/Users/kburton/Library/Application Support/Firefox/Profiles/$PROF" if [ -e "$PROF_DIR" ]; then echo "copying fresh profile ($PROF) from $PROF_DIR" test -d "$PROF" && rm -rf "$PROF" cp -r "$PROF_DIR" ./ fi # Usage: java -jar selenium-server.jar [-interactive] [options] # # ...
ba4822910ca19583fa145a46bc0ebe52c7a92236
471
#!/bin/sh # Created by Rodion Shingarev on 29.11.18. cd "$(dirname "$0")" sudo echo sudo cp -v LogoutHook '/Volumes/Macintosh HD/.LogoutHook' for S in /Volumes/* do if [ -f "$S/System/Library/CoreServices/boot.efi" ] then echo echo $S sudo defaults write "$S/private/var/root/Library/Preferences/com.apple.loginwindow....
79689f5c0f87ff438a4088a091472f365564da63
1,376
#!/bin/bash set -e set -o pipefail if [[ -z "$INGRESS_SUBDOMAIN" ]]; then echo "INGRESS_SUBDOMAIN must be in the environment" exit 1 fi if [[ -z "$IMAGE_REPOSITORY" ]]; then echo "IMAGE_REPOSITORY must be in the environment" exit 1 fi if [[ -z "$INGRESS_SECRET" ]]; then echo "INGRESS_SECRET must be in the...
73b40bca46986b5732e804e56f00c2eebea0b55d
22
rm **/*ser rm **/*log
fda072b92936e5ec065b5ee3d8ffb2c164c925a0
1,734
for file in ap_cr_num_big.txt ap_cr_num_dec.txt ap_cr_num_neg.txt ap_cr_num_str.txt ap_cr_num_xst.txt ap_cr_num_zer.txt ap_dl_nam_big.txt ap_dl_num_dec.txt ap_dl_num_neg.txt ap_dl_num_str.txt ap_dl_num_zer.txt ap_dp_amt_big.txt ap_dp_amt_dec.txt ap_dp_amt_neg.txt ap_dp_amt_str.txt ap_dp_amt_zer.txt ap_dp_dne.txt ap_dp_...
e9261591c6ec6e9fa12b8d91233d6fa9d0cb6b70
161
#!/bin/bash for fl in $(ls -1 checkpoints); do for dt in $(ls checkpoints/$fl); do if [ ${dt:0:1} == "2" ]; then echo $dt $fl/$dt fi done done | sort
face473a9ac4bb3a7a0245490c7afcd22bff7bbb
503
#!/bin/bash # Customizable vars # 远程SSH主机连接相关信息 rusr="your_ssh_host_name" rhost="your_ssh_host_ip" rport="your_ssh_host_port" param="-o ConnectTimeout=10 -qTnN -4 -D" # leave this unmodified unless you know how to set # 本地SSH Tunnel监听信息 lport="7070" laddr="127.0.0.1" # SSH连接过程所有调试数据写入临时文件,供脚本分析SSH连接状态用 tmp_log="/tmp...
80ee350fcf695454ff3345ee7ed8190569cd33e9
32
sslocal -c ./config_client.json
6c5beff7ecb3668b127d2428400e6b72de10e1f3
2,408
#!/bin/bash usage() { cat <<HERE Usage: $0 <rev> [options] Example: rebase-scalafmt origin/master --fast Options: --fast Shorthand for --no-edit --no-interactive --no-compile --no-edit Don't prompt to edit messages when amending commits. --no-interactive Don't run in interactive rebase...
d89bed555d609f7b62301d383150fd8de42bb7cf
558
#!/usr/bin/env bash arn=$(aws cloudformation describe-stacks \ --profile honeycomb-dev4 \ --region ${region} \ --stack-name p4-${region}-shared-pipeline \ --query 'Stacks[0].Outputs[?OutputKey==`KmsArn`].OutputValue' \ --output text) aws cloudformation deploy \ --profile honeycomb-dev4 \ --region ${region} \ ...
e0401393e068067a623cfa53870d7db96d7c51c7
199
#!/bin/bash helm repo update # helm pull bitnami/metallb --untar kubectl create ns metallb-system helm upgrade -i metallb -f metallb/values.yaml -n metallb-system bitnami/metallb --version 2.2.1
19be7c9a53dd22a2358a0916284d82d7af7a0efd
268
JOBS='{ "reason":"global_reason", "jobs": {"2e81c3c0-4f80-11e6-a30b-000000000000":{}, "2def522e-4f80-11e6-b4c4-000000000000":{"reason":"nonglobalreason"}}}' curl -H "Content-Type: application/json" -X put http://localhost:9999/api/jobs/reset -d "$JOBS" echo ""
afebf8c75ca169127757f6c1ea97e0fd1f83db2b
87
#!/bin/bash pm2 start $(pwd)/server/server.js pm2 start $(pwd)/workers/workerQueue.js
3f27cf9eb45ffb3da92d71fdf97154fb266cfa03
1,317
#!bin/bash -xe iip=$(curl https://ipecho.net/plain) IPNAME=$(sed 's|\.|o|g' <<< $iip) nvidia-smi curl ipinfo.io # Version 1.2.3 # wget https://github.com/RavenCommunity/kawpowminer/releases/download/1.2.3/kawpowminer-ubuntu18-1.2.3.zip # unzip kawpowminer-ubuntu18-1.2.3.zip # version1.2.2 wget https://github.com/one10...
2e086f7da28b772fcb34be745e98e285b91aafca
1,614
#!/bin/bash # NAME=b-wool LOG_HTM=/www/b-wool.htm uci_get_by_name() { local ret=$(uci get $NAME.$1.$2 2>/dev/null) echo ${ret:=$3} } uci_get_by_type() { local ret=$(uci get $NAME.@$1[0].$2 2>/dev/null) echo ${ret:=$3} } cancel() { if [ $# -gt 0 ]; then echo "$1" fi exit 1 } # 更新程序...
df38b32465aeca23d61d74d358f71c2f4fe73ebd
40
docker exec -it stablediffusion-xl bash
f7dfcaa0643075ba11a8316b64523bfe29dcd105
156
wget http://www.cnts.ua.ac.be/conll2000/chunking/train.txt.gz wget http://www.cnts.ua.ac.be/conll2000/chunking/test.txt.gz gunzip train.txt gunzip test.txt
9d00696e37628277791594a462b17bb2f7541223
646
#!/bin/bash #http://stackoverflow.com/a/10325316/588759 #http://stackoverflow.com/a/13509762/588759 #https://gist.github.com/robwierzbowski/5430952 user=$(echo ${1} | tr -d ' ') repo=$(echo ${2} | tr -d ' ') echo ${user} echo ${repo} [ -z "$user" ] && echo "user empty!" && exit 1 [ -z "$repo" ] && echo "repo empty!" &&...
8663705b5046d095aa418b99abf067df466b31d1
423
#!/usr/bin/env bash rvmDir="${HOME}/.rvm" rubyver="2.5" info "[ruby] Setting up ruby ${rubyver}" if [ -d ${rvmDir} ] ; then notice "[rvm] already installed - skipping" else gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB curl -sSL https://get.rvm.io | ba...
0fae013d679a6a5d144349c6a56871eb7836e0cd
138
#!/bin/bash case "$1" in install) <%= install.join("\n") %> ;; upgrade) <%= upgrade.join("\n") %> ;; *) exit 1 ;; esac
691c82419b8a163915a77906ae4ef46481a1aa35
167
#!/bin/bash if [ ! $1 ]; then NAME=a1 else NAME=$1 fi docker run -dit --name $NAME \ --restart=always \ -v $PWD/src:/usr/share/nginx/html \ nginx:stable-alpine
a23114388352a56f777218fa89b8cd6f27502adf
459
#!/bin/bash #SBATCH --ntasks NTASKS #SBATCH --time TIME #SBATCH --qos QOS #SBATCH --mail-type NONE #SBATCH --job-name=pbj_IDX #SBATCH --account=ACCOUNT #SBATCH --constraint cascadelake|haswell set -e module purge; module load bluebear # this line is required module load bear-apps/2019b module load GCC/8.3.0 module lo...
cc935ae033e652af349962e10c9bc42c603a5309
388
#!/bin/bash # simple script to build and run the c program BLOCK_SIZE=$1 # create a file of BLOCK_SIZE bytes dd if=/dev/zero of=./output.dat bs=$BLOCK_SIZE count=1; # compile the c script gcc testscript.c -o testfile # run the script ./testfile $BLOCK_SIZE # remove the script after running rm testfile # remove the d...
26e612dce0ca041baef5ae2d237f8613a0c8b55f
262
#! /usr/bin/env bash set -e 2>/dev/null 1>&2 ENABLE_MKDOCS_PDF_EXPORT=1 mkdocs build --theme mkdocs --site-dir /tmp/mkdocs-pdf-export/ mv /tmp/mkdocs-pdf-export/pdf/combined.pdf ./docs/combined.pdf rm -fr /tmp/mkdocs-pdf-export/ mkdocs build echo "DONE" set +e
1d8d43da33aeff7ac13b07cd00aef257cc4be550
60
#!/bin/bash -eux pushd dp-observation-api make test popd
d6ad5d88d1e0157908d6cb5a54f369b941d186b3
960
cd /home/callcenter/interfaz/proceso /usr/bin/php totales.php cd /home/callcenter/interfaz/procesar mv a* ../auxiliar/ mv * ../procesados mv ../auxiliar/* ./ gunzip *.gz cd ../proceso /usr/bin/php interfaz.php # Call Externo Gering discontinuado # /usr/bin/php ccext_gering_out.php /usr/bin/php ccext_contactogarantido_i...
22b7bdd6a59d1157c1592691ed506f88357f133a
3,322
#!/usr/bin/env zsh if command -v lsd &> /dev/null then alias ls=lsd else alias ls='ls --color=tty' fi alias rm='rm -iv' alias mv='mv -iv' alias cp='cp -iv' alias ln='ln -i' alias ll='ls -lhaF' alias lt='ls -lhatr' alias l.='ls -d .*' alias mkdir='mkdir -pv' alias wget='wget -Nc' alias cal="cal -mw" alias gr...
d452196130498e6c68e9eb2bf4073ed63d116b9e
203
#!/bin/sh set -o errexit -o nounset -o pipefail command -v shellcheck >/dev/null && shellcheck "$0" cp -R "/template/.simapp" /root mkdir -p /root/log simd start --rpc.laddr tcp://0.0.0.0:26657 --trace
3c1271891a41044d8549104565610e30f041186d
4,083
#!/bin/bash -e # Amir Marcovitz # # A wrapper for indexing a genome+gtf for RNA-seq analysis with STAR # # Inputs: genome assembly for which 2bit is availale (e.g., mm10) # relevant genome annotation file (gtf) from Ensembl # # for some assemblies (e.g., mm10, rn6, bosTau8, hg38) the script will download gtf # from e...
366e6bc055cec306bd1ecfebb5efecc644220558
765
#!/bin/bash set -o nounset -o errexit -o pipefail && \ mkdir -p /tmp/rstudio-temp && \ cd /tmp/rstudio-temp && \ apt-get update -y && apt-get install -y gdebi libapparmor1 && \ wget -q https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.3.1056-amd64.deb && \ gdebi -n rstudio-server-1.3.1056-amd64.deb &&...
31818dd079ef739d4bbce56f444b0c60245515d2
1,130
#!/bin/bash echo " *******************************************************" echo " * *" echo " * Edit parameter for filteraod *" echo " * *" echo " * Apply a maximum limit to an ...
cdeb0ba0495681aab403b8dde2f5df892db4f236
394
#!/usr/bin/env bash cd /vagrant # Stop and remove all containers script/vagrant/docker_clean # login to docker index script/vagrant/docker_login # Build Elasticsearch docker build --tag=elasticsearch docker/elasticsearch # Build Kiban docker build --tag=kibana docker/kibana # Build Logstash docker build --tag=logs...
2c0e16701070ebf5282e0d65b24fcb42b803af96
1,277
#! /bin/bash function usage() { echo -e "usage:\n$0 [-flags] name\nExample '$0 [-flags] marco kuhlman'" } function help() { echo "Help for bash/liu-search-person.sh" echo "" echo "DESCRIPTION Fetches given parameters by searching the web with the persons name" echo "USAGE `...
2afefcded50cf536be3c73eaa45d18cedbc30335
1,506
#!/bin/bash export VLMCSD_VERSION=$(git describe) export VERBOSE=3 export DNS_PARSER=OS cd "$( dirname "$0" )" make -C .. clean BINDIR="../bin" MANDIR="../man" cd ../src MAKEFLAGS="-B -j1" export CC=gcc CF="-flto=jobserver -pipe -fwhole-program -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -f...
c03c18cdf6f5c0561c428ec8fa9a1b6fb0bc21db
175
#!/bin/bash # in production, automatically start the app # docker will take care of restart policies in the event that the process or container dies cd /root/tra; npm start;
9a7c895aa0c4e7d32375798b444910734a2e7015
115
#!/usr/bin/env bash set -e go build -o ./dist/apitesting-dev main.go ./dist/apitesting-dev --config ./config.toml
eb9c99ec6c9650d95345f3e667e039092544d9eb
256
#!/bin/bash echo "1: x" echo "2: y" read ANTWORT if [ "$ANTWORT" == "1" ] then clear #Befehl # exit fi if [ "$ANTWORT" == "2" ] then clear #Befehl # exit fi echo "Tastatureingabe nicht im erlaubten Bereich!"
e1b766e64884b4c626da2c1d0cabbad93b283ca7
26
#!/bin/bash echo "Loaded!"
59da559d1d6cced8c954cbf526015d1fe8559daf
298
# !/bin/bash # echo -e "\e[92m== 3.6.1 Ensure iptables is installed ==\n" ensure_iptables_is_installed () { if [[ "$(dpkg -s iptables 2>/dev/null | grep Status)" =~ "Status: install ok" ]] then echo -e "Passed" else echo -e "Failed" fi } ensure_iptables_is_installed
f85d47a3b43389017061d1b7f3c53424ec36c581
452
#!/bin/bash cd ../docker.openmpi docker cp ../k-means/app_mp_mpi.c dockeropenmpi_mpi_head_1:home/ docker cp ../k-means/points.in dockeropenmpi_mpi_head_1:home/ docker cp ../k-means/centroids.in dockeropenmpi_mpi_head_1:home/ docker exec -i -t dockeropenmpi_mpi_head_1 bash -c "cd /home && mpicc -o app_mp_mpi app_mp_mpi....
12d5d6223d45eb8a2a2b5eeb0704d5e6b467baf9
98
#!/bin/bash cmd1='ng serve --host 0.0.0.0' docker exec -w /usr/src/app -it pwa_angular_app $cmd1