blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
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
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...
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...
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
faf38f93fb5e2ebb5de292ec49fcfc4dc95540a7
272
#!/bin/sh set -ex icons="twitter github" dest=fontawesome url=https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/advanced-options/raw-svg/brands mkdir -p "${dest}" for icon in $icons; do icon="${icon}.svg" wget -O "${dest}/${icon}" "${url}/${icon}" done
06ca1557aed2fd94942cce09112bb6e919e54452
2,216
#!/usr/bin/env bash set -e cmd=${0##*/} usage() { cat <<EOF Usage: $0 OPERATOR_NAME OSDE2E_CONVENTION_DIR EOF exit -1 } OPERATOR_NAME=$1 OSDE2E_CONVENTION_DIR=$2 REPO_ROOT=$(git rev-parse --show-toplevel) HARNESS_DIR=$REPO_ROOT/osde2e # Update operator name in templates export OPERATOR_HYPHEN_NAME=$(echo ...
d95ce2436a2777e674be14a0d3c7f73809481612
1,312
#! /bin/sh checkInt1(){ tmp=`echo $1 |sed 's/[0-9]//g'` # [ -n "${tmp}" ] && { echo $1"Args must be integer!";echo 1; } [ -n "${tmp}" ] && echo 1 } #getparams(){ # echo $1 # list=`$1` # for var in $list ; do # res=`checkInt1 $var` # if [ "$res" == "1" ];then # continue...
58fafed348cafb067b2c3dbc9deddfac65a36fda
2,669
# _______ _ ____ _ #|__ __| ( ) | _ \ | | # | | ___ _ __ _ _|/ ___ | |_) | __ _ ___| |__ # | |/ _ \| '_ \| | | | / __| | _ < / _` / __| '_ \ # | | (_) | | | | |_| | \__ \ | |_) | (_| \__ \ | | | # |_|\___/|_| |_|\__, | |___/ |__...
8f2e645f012cd4656f04164f96813620e16c0c4d
569
cat > /root/cxll <<'GOST' python /usr/local/SSR-Bash-Python/show_flow.py > /root/cx.txt a=`sed -n '2p' /root/cx.txt | grep -Eo '[0-9]+MB' | grep -Eo '[0-9]+'` b=`sed -n '3p' /root/cx.txt | grep -Eo '[0-9]+MB' | grep -Eo '[0-9]+'` c=`sed -n '4p' /root/cx.txt | grep -Eo '[0-9]+MB' | grep -Eo '[0-9]+'` let "b+=$a" let "b+...
265e279bb4c48c0efaed8edb97aea59dca77c9cd
1,100
#!/bin/sh ## simple example of a pre-commit hook. Put this in ## $YOURWORKINGCOPY/.git/hooks/pre-commit. Note that this check script ## itself is not versioned. readfirst=./env.sh.example if [ -f $readfirst ] ; then source $readfirst fi ## python (simplistic; also check python compileall; PyChecker, ## Pyflakes,...
e49995783db52b7caee2029381d0c6997cc5b905
187
#!/bin/bash set -e git config --global user.email "travis-job@travis-ci.com" git config --global user.name "Travis CI" git config --global push.default simple sbt site/publishMicrosite
f206f47a350ab011b313f2731dd8a24b529a10ec
187
#!/bin/bash rm -rf output mkdir output javac -classpath $(hadoop classpath) -d output WordCount.java jar -cvf wordcount.jar -C output/ . hadoop jar wordcount.jar WordCount $1 dft-output
f847c85816cd10aeb4f796bcc3279b60cbf72a0c
39
./selectKthElem 10000 rand10k.txt 5000
a6f8cb2dc4d88f72b99756ebc7946291b3e27b65
436
#!/bin/sh NETSTATE="$(cat "/sys/class/net/wlp2s0/operstate")" if [ $NETSTATE = "up" ]; then # bssid comes first, fuhgettaboudit WPASTR="$(sudo wpa_cli -i wlp2s0 status | grep ssid)" NETNAME="$(cut -d$'\n' -f2 <<<$WPASTR)" NETNAME="$(cut -d'=' -f2 <<<"$NETNAME")" NETNAME="$(echo "$NETNAME" | sed 's/ /_/')" else ...
9cfc1f3e03a4ed69af34a29e77f9c1b80bbfe6f1
4,925
#!/bin/bash ##################################### ## Deploy cloudformation templates # REGION="eu-usa-1" PROFILE="default" AWSCLI="/usr/local/bin/aws" TEMPLATES_PATH="./" deploy_all () { if [[ ! -z ${DEPLOY_ALL} ]]; then if [[ -z ${YES_TO_ALL} ]]; then read -p "I will deploy ALL stacks, are you sure? (y/...
ff5de48687ffa2683007f8dc6c634207d5fcac69
202
#!/bin/sh mkdir -p logs/jinyong model/jinyong rm -rf logs/jinyong/* model/jinyong/* rm -rf data/jinyong.train data/jinyong.dict data/jinyong.validate ./jinyong_stop_train.sh ./jinyong_start_train.sh
2ef93f67b56ba20d3e88d01f022655acf36f1fa3
2,828
# Wait for Wattlog microsleep 10000000 # Load App {{{timing}}} am start -n de.rundholz.mathtrainer/de.rundholz.mathtrainer.TermsOfUsage microsleep 10000000 {{{timing}}} ### Prefix to start the app input keyevent ENTER microsleep 4000000 input keyevent ENTER microsleep 4000000 input keyevent 61 microsleep 4000000 input ...
40731c2434a105f6ab51cb1366b50bd4ead5294f
4,740
#!/usr/bin/env bash #bridgeelements #artefacts for xml_to_yaml bridge pizza artefact create https://raw.githubusercontent.com/rdsea/IoTCloudSamples/master/IoTCloudUnits/node_red_dataflows/bridges/xml_to_yaml_bridge/bridgeelement_json_to_yaml.json nodered ./bridges/xml_to_yaml_bridge/metadata_bridgeelement_json_to_yaml...
657da4887264db6b3a4678460c79747af8804b30
1,104
#!/bin/bash #read video name date #python image_creation_spatfreq.py 5 #echo 10 #python image_creation_spatfreq.py 10 #echo 15 #python image_creation_spatfreq.py 15 #echo 20 #python image_creation_spatfreq.py 20 #echo 30 #python image_creation_spatfreq.py 30 #echo 60 #python image_creation_spatfreq.py 60 #echo image...
c5547b51914f8e7a126e89769ccd78823f1717df
556
# default values for relevant environment variables # ref: https://github.com/kubernetes/kubernetes/releases export KUBE_VERSION=${KUBE_VERSION:-1.19.2} # ref: https://github.com/kubernetes/minikube/releases export MINIKUBE_VERSION=${MINIKUBE_VERSION:-1.14.0} # ref: https://github.com/LiliC/travis-minikube/blob/mast...
04e1562f4377aacbda664f168fd7523945a4fbe6
107
#!/bin/sh yum install -y rpmlint spectool yum-utils echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
bb403fdb8addfee03e96e6c7cf07f152b88d6143
244
#!/bin/bash set -ex curl -sSL "https://github.com/protocolbuffers/protobuf/releases/download/v3.10.0/protoc-3.10.0-linux-x86_64.zip" -o /tmp/protoc.zip unzip /tmp/protoc.zip -d /tmp/protoc sudo mv /tmp/protoc/bin/protoc /usr/local/bin/protoc
8142a151e741764d72f213ec8f8c2ef46042eeb2
108
#!/bin/sh ### SETUP /data/bin/firewall /data/bin/networking /data/bin/ipsec ### START ipsec start --nofork
3a1660d861b5826a9862a71772600021c57c1a83
800
APP_NAME=Lumen APP_ENV=local APP_KEY= APP_DEBUG=true APP_URL=http://localhost APP_TIMEZONE=UTC LOG_CHANNEL=stack LOG_SLACK_WEBHOOK_URL= DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret CACHE_DRIVER=file QUEUE_CONNECTION=sync ######################### ...
fae25b11c3b6cab3f11a465ea16740fded6c16ff
523
#!/bin/bash # This script runs in the aegir user's home directory on featuretest and # enables simple syncing of the prod db drush sql-sync @ilr.prod @prod.ilr.featuretest.org --sanitize --sanitize-password=SEE_FILE_ON_SERVER --structure-tables-list=cache,cache_*,sessions,entityform,freedompay_*,redhen_* -y drush cc ...
ca533dcda11bd781201b07773957a14653668ac2
1,671
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DB=$2 PASSWORD=$3 OUT=$4 GRAPHQL_CONTENT_TYPE="application/graphql" JSON_CONTENT_TYPE="application/json" destroy_schema() { rm -r $DIR"/src" } create_schema() { sql2graphql --db $DB -p $PASSWORD -o "src" } demo() { rm -r $DIR"/demo" sq...
65cb90723915a1a51ddb462ebac2731fa875b0ef
834
#!/bin/sh if [ "$#" -ne 2 ]; then echo "Usage: run.sh <Sync-Gateway-Config-File> <Log-Directory>" exit 1 fi wait_for_uri() { expected=$1 shift uri=$1 echo "Waiting for $uri to be available..." while true; do status=$(curl -s -w "%{http_code}" -o /dev/null $*) if [ "x$status" = "x$expected" ]...