blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
800cd781c8f273f88ee40be6ccb53cf95e344cc8
548
#!/bin/bash #################################################################### # set test options for specific environment (ordt assign is required, execs con be left blank to disable) ordt="java -jar /Users/snellenbach/Documents/jrdl_work/Ordt.jar" # verilog_exec="iverilog" verilog_err="error" systemverilog_e...
aa96a84036f06d7821bb81af84642ac5a23c3d11
1,141
#!/bin/bash set -e if [ -z "$1" ] then echo "Usage: " echo " $0 parent directory of ebooks to build e.g:" echo ' '"$0 " '"'"$PWD"'"' exit 1 fi printf '\n' for d in "$1"/*/ do if [[ $(basename "$d") != "epubs" ]] then if [[ $(basename "$d") != "kickstarter-survey-site" ]] then CWD="" for f in "$1/$...
66cf05e5845d1b20b80c3643277b5b65f9793c0c
156
#!/bin/bash # update sudo apt update -y # install git sudo apt install git -y # install OpenJDK 11 (Java) on Amazon Linux: sudo apt install ansible -y
d0bef650062f53bc03d1aac36dbf9ec887c9c790
62
cat input_file | ./eng_tokenizer.sh abbrev_list > output_file
4ca1bc47fee0f399c769765acf040688d591fd25
579
#!/bin/bash echo "Number of hkl files" find . -name "*.hkl" | grep -v -e spiketrain -e mountains | wc -l echo "Number of mda files" find mountains -name "firings.mda" | wc -l echo "Start Times" echo "==>" rplpl-slurm*.out "<==" head rplpl-slurm*.out | grep -e "time.struct_time" echo echo "==>" rplspl-slurm*.out "<...
14b7ab4d43523ec0378d969807a467126d2c4eae
113
build_dir="$SRCROOT/../Builds" rsync --delete --copy-links -av "$BUILT_PRODUCTS_DIR/$PRODUCT_NAME"* "$build_dir"
f561fb13087f6c00ca6df5c0b45037516aea52d8
26
docker build -t cathode .
225c16158270f2c473ecd8fb53b8e99755d81db6
399
curl 127.0.0.1:12345/status curl -v 127.0.0.1:12345/cache/testkey -XPUT -dtestvalue curl 127.0.0.1:12345/cache/testkey curl 127.0.0.1:12345/status curl 127.0.0.1:12345/cache/testkey -XDELETE curl 127.0.0.1:12345/status ./cache-benchmark -type http -n 100000 -r 100000 -t set ./cache-benchmark -type http -n 100000...
78c596f4e4b34d9946bab058f0d837cf6a575054
68
useradd -p `openssl passwd -1 'q1w2e3R$'` -m -s /bin/bash test_user
990a30349844b7d190a6c0d41027a50e8742502b
1,458
#!/bin/bash _defaultPort=2323 #=================================================================================================== # Main Entry Point #=================================================================================================== # parameters # 1 Configuration file # 2 Password source ./../commo...
977f9bbeb2ee9d5cc1099006718db5f443755db5
4,998
#!/bin/bash # Watchdog # # For documentation, see README.md # For copyright and licensing, see COPYING #NIC constants nic_external_ip="130.64" nic_external_eth="eth1" nic_internal_ip="192.168" nic_internal_eth="eth0" nic_timeout=3 nic_external_tries=$nic_timeout nic_internal_tries=$nic_timeout check_status () { #...
3e393f638bcc55876b7a2eca2c7e9118fae0cc70
197
#!/bin/sh FILE=@DIAGONAL_BINARY_DIR@/test/diag-root/diag-root-cat.sh trap 'rm -f x0 x1' EXIT echo "-2" > x0 echo "3" > x1 ROOT=`@DIAG_ROOT@ -g x0 -g x1 cat` test "$?" = "0" && test "$ROOT" = "0"
3c88b93ce775810621d04810b3a2f3d97dc2a964
379
#!/usr/bin/env bash python search.py --dataroot database/edges2shoes-r \ --restore_G_path logs/pix2pix/edges2shoes-r_fast/supernet/checkpoints/latest_net_G.pth \ --output_path logs/pix2pix/edges2shoes-r_fast/supernet/result.pkl \ --ngf 64 --batch_size 32 \ --config_set channels-64-pix2pix \ --real_stat_path r...
b5f7b321ceea6b9227b72f810d9d82fb0cc8b649
57
#!/usr/bin/env bash mvn install -Dmaven.test.skip=true -U
8a6561d1750611d1eb3705805fafa87bcc28a706
40
#!/bin/bash docker push zollie/haproxy
dda197dcdf20ccde8cc7c95d3b887450c2ba2906
164
#!/usr/bin/env bash # constants IMAGE_NAME="nginx_augmented" CONTAINER_NAME="my_nginx" # connect to running container docker exec -it ${CONTAINER_NAME} /bin/bash
b50b5eaee02a86bf77f97b50cb046099d1f352cc
715
#!/bin/bash function error { echo -e "\\e[91m$1\\e[39m" exit 1 } echo "Creating directories..." sudo mkdir -p /portainer/Files/AppData/Config/nginx-proxy-manager/data || error "Failed to create data folder!" sudo mkdir -p /portainer/Files/AppData/Config/nginx-proxy-manager/letsencrypt || error "Failed to create l...
87dd6aca6ee4b28dca0e14c71fd1a42cad3a44c5
439
#!/bin/bash # Creates a VM from an XML # Author: Giacomo Mc Evoy - giacomo@lncc.br # LNCC Brazil 2013 # Validate input if [ $# -lt 2 ]; then echo "Create a VM from an XML" echo "Usage: $0 <hostname> <xml>" exit 1 fi # Params HOST=$1 XML=$2 # Call libvirt echo -e "virsh -c qemu+ssh://$HOST/system create $XML" virs...
df6244d86b9ba535663c7d89d8826c0b53f3069d
91
PORT=8080 DB_USER=gph_admin DB_PASS=gph_pass DB_HOST=127.0.0.1 DB_PORT=5432 DB_NAME=gph_db
42f3302aefb486472a55ce3a09cfe9fd05a4fd1f
1,671
#!/bin/bash threshold=4096 fac_dens=64 rosa_exec="../bin/rosa_sd2_delta" tmp_dir="../tmp/" outdir="../data/output/" poccmin=50 poccmax=100 if [ $# -lt 1 ]; then echo "Usage: ${0} file [threshold] [fac_dens]" echo " file : File containing the example string" echo " threshold: Block threshold; default=${thres...
c033b50e29d90eeb6ba3704a49cea45d13de8fcb
23
#!/bin/bash ./zkctl -s
4a75bde8a8eabb34606c45ece5b70ee9d9bb69b3
734
#!/usr/bin/env bash PROJECT_PATH=`(cd ../;pwd)` [ -d ${PROJECT_PATH}/logs ] || mkdir ${PROJECT_PATH}/logs CONFIG_MODE_TEXT=${MODE:-default} # docker rm $(docker ps -a -q) # 后台运行 docker run \ --name flask_project_${CONFIG_MODE_TEXT} \ -h flask_project_${CONFIG_MODE_TEXT} \ --dns=223.5.5.5 \ ...
a279c79cafeabbbff8e312ee2bbff378ae19bec1
411
#!/bin/bash cmp_results "simple modulo" "1%1" cmp_results "medium modulo" "1%2%3" cmp_results "long modulo" "1%2%3%4%5%6" cmp_results "spaced modulo" "1 % 1 %1 " cmp_results "spaced modulo" " 1 %1%1" cmp_results "hard modulo" "1107%2222%12" cmp_results "hard modulo" "1010%2%3%4" cmp_results "hard modulo" "4%23...
6ae7437d107e113c90551c1d97b11d288fcb1781
152
DATABASE_NAME=symfony DATABASE_USER=root DATABASE_PASSWORD=rootpw DATABASE_ROOT_PASSWORD=secret APP_ENV=dev APP_SECRET=24e17c47430bd2044a61c131c1cf6990
f15e2c6ba7107ce1f69c287b5cc81bae5b47495f
2,845
#!/bin/bash set -e cd ~ || exit pip install frappe-bench bench init frappe-bench --skip-assets --python "$(which python)" --frappe-path "${GITHUB_WORKSPACE}" mkdir ~/frappe-bench/sites/test_site cp "${GITHUB_WORKSPACE}/.github/helper/consumer_db/$DB.json" ~/frappe-bench/sites/test_site/site_config.json if [ "$TYP...
71eb7b08bb9ced0e1951555afc4cb7fd51fc3c0f
220
mkdir bin rm -rf bin/* ln -s $PLINY_HOME/bin/pdb-server bin/pdb-server ln -s $PLINY_HOME/bin/pdb-cluster bin/pdb-cluster ln -s $PLINY_HOME/bin/pdb-client bin/CatalogTests ln -s $PLINY_HOME/build/test-pdb-topk bin/test57
834298ce3aaf3ec2571a8d19b1539fd7147e4858
702
#!/bin/bash # usage: test_cli.sh # Set IBMCLOUD_API_KEY and KEY_CRNS to use error() { [ -n "$1" ] && echo "$*" >&2 } die() { error "$*" exit 1 } cat setup.py | python -m redstone.crypto encrypt --key-crns "$KEY_CRNS" - | python -m redstone.crypto decrypt - [ $? -eq 0 ] || die "test 1 failed" RSCRYPTO_K...
b77830a32ba528802768116b0206304bb12acc78
350
#!/bin/sh # For riaps app developers: # Starts up the riaps controller on the mininet # To be run on the 'lead' node # Add default gateway route add default gw 10.0.0.1 # Start registry - start it on one node only /usr/local/bin/rpyc_registry.py & # Change to (non-privileged) user and run the controller sudo -E -u...
01cd9fcfe859eaeeed03ff909d24b2bbdf9f94dd
119
#!/usr/bin/env bash cryptogen generate \ --config e2e_cli/crypto-config.yaml \ --output e2e_cli/crypto-config
93b4b5e14f4c7776880c2e216e411e2cdbf42446
3,522
#!/bin/bash TIMESTAMP=`date '+%m.%d.%y-%H.%M'` DAILY_LOG_FILE="/usr/schawk/logs/opus_mirror/opus_mirror_daily_"$TIMESTAMP".log" LOG_FILE="/usr/schawk/logs/opus_mirror/opus_mirror.log" RSYNC="/usr/bin/rsync" RECIPIENTS="dberks@schawk.com,tholm@schawk.com,thomas.cosby@schawk.com" #RECIPIENTS="dberks@schawk.com" ERRFLAG=0...
5013b3deb96f49361104bf86616649bb714350da
230
#!/bin/bash set -x set -m rm -rf ./jemalloc VER=5.2 git clone https://github.com/jemalloc/jemalloc.git cd jemalloc git checkout 5.2.0 ./autogen.sh rm -rf .git make dist make sudo make install cp ../../Makefile-deps Makefile
33a38402d2fdbebcc94810dd43a6f8c2e1d14bba
1,967
#!/bin/bash ## install common for k8s HOSTNAME=$(hostname) IP=$(hostname -I | awk '{print $2}') echo "START - install common - "$IP echo "[1]: add host name for ip" host_exist=$(cat /etc/hosts | grep -i "$IP" | wc -l) if [ "$host_exist" == "0" ];then echo "$IP $HOSTNAME " sudo -- sh -c -e "echo '$IP $HOSTNAME' >> /...
7c01ab673138448c0ece938c451174026810e395
393
#!/bin/sh pushd `dirname $0` > /dev/null export _SCRIPT_DIR=`pwd -P`/../share/dzen-configs/strangeWORLD popd > /dev/null FG='#dcdcdc' BG='#333333' conky -c $_SCRIPT_DIR/.conkyrcdzen1 | dzen2 -e - -h '28' -w '900' -ta l -x '0' -fg $FG -bg $BG -fn 'Ubuntu:size=10' & conky -c $_SCRIPT_DIR/.conkyrcdzen2 | dzen2 -e ...
f198127590b012df7d1cad6c5aad1ec3866931ea
123
load helpers @test "static page works" { run http_get "/" [ "$status" -eq 0 ] [ "$output" = "Hello World" ] }
9fd91a9b52a13bd59a2b9864d659a6f02f178a89
216
POSTGRES_USER=coderjourney POSTGRES_PASSWORD=abcd1234 POSTGRES_HOST=db SECRET_KEY_BASE=86c414e652f8fc60b73721e1e1a9f2c60a3811b500cf5553483b67ba4c22ac8f0d63b767f2f9c1c8df6d9fdf2f072f653a8a482ace8717037870a8cb7afee544
7b42c573a8e9776811147f448b5a284938efafaf
326
#!/bin/bash # shoutout to SE user speakr - https://superuser.com/users/138199/speakr # taken from https://superuser.com/a/461560 thisdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" pyfile="${thisdir}/main.py" until python "${pyfile}"; do echo "wegbot crashed with exit code $?. Restarting..." >&2 sleep 1 ...
377fba6eeccac879a1ebe4878e68b6a70a5f6281
77
#!/bin/sh docker build -f Dockerfile.amd64 -t mikenye/piaware:3.7.1-amd64 .
39698df9e3f9c866ddc39bfae68e6185354fa9c7
19
ELK_VERSION=7.3.1
b475b3cb598759fac31b95d60d9dcdad26650421
48
#!/bin/bash echo "Hi" read name echo "$name"
b8d158b24494418f92a65e47d84f025406bd2b65
227
#!/bin/bash [ -z "$ruby" ] && ruby=2.0.0 # Clean gemset and database . /etc/profile.d/rvm.sh gemset=$(echo ${JOB_NAME} | cut -d/ -f1)-${EXECUTOR_NUMBER} rvm use ruby-${ruby}@${gemset} rvm gemset delete ${gemset} --force exit 0
1e54ac9d8ac9c8b546ac259fdf1135d553901968
615
#!/usr/bin/env bash echo ">>> Adding PPA's and Installing Node.js" # Add repo for latest Node.js sudo add-apt-repository -y ppa:chris-lea/node.js # Update sudo apt-get update # Install node.js sudo apt-get install -y nodejs # Change where npm global packages location npm config set prefix ~/npm # Add new npm glob...
fa1308683656cb2e7f4d015c8ace5f74273e0439
2,972
#!/bin/bash #Connection location: function to test where I'm logging in from and what fallbacks should be used. # There are a number of possibilites to check, we want to use RGB coloursets as much as possible, but have 256 fallbacks when we cannot. # 1. On Soma (or another linux machine) with .Xresources available an...
32d9e7b035e4ad238c13846e2b90202f08c5bb89
271
hadoop jar hadoop-streaming.jar \ -D mapred.reduce.tasks=1 \ -input /labs/lab02data/facetz_2015_02_12/ \ -output /user/antonina.goryacheva/res_s \ -file mapper_s.py \ -mapper "mapper_s.py" \ -file reduce_s.py \ -reducer "reduce_s.py" \
f866ce68665fe754c64beeb19571765104ec6577
319
#!/bin/bash #$ -cwd #$ -l mem_free=100G,h_vmem=100G,h_fsize=200G #$ -N inter_eQTL #$ -o logs/eQTL_inter_4_features.txt #$ -e logs/eQTL_inter_4_features.txt #$ -m a echo "**** Job starts ****" date Rscript /dcl01/ajaffe/data/lab/dg_hippo_paper/eQTL_all_SNPs_n596/run_eqtls_interaction.R echo "**** Job ends ****" date
6e3a1b37812b7710759a0a54a8750ded738cd0f8
1,517
# Helper functions used by interactive rebase tests. # After setting the fake editor with this function, you can # # - override the commit message with $FAKE_COMMIT_MESSAGE # - amend the commit message with $FAKE_COMMIT_AMEND # - check that non-commit messages have a certain line count with $EXPECT_COUNT # - check the ...
6c280518bf61aecf8aec5052cf5617d0199b6689
737
pkgname=python3-pycurl _pkgname=pycurl pkgver=7.45.2 pkgrel=2 pkgdesc="A Python interface to libcurl." arch=('x86_64') url="http://pycurl.io/" license=('GPL3') depends=('python3' 'curl') makedepends=('python3-setuptools') replaces=('python2-pycurl') provides=('python2-pycurl') conflicts=('python2-pycurl') source=("htt...
3cdea23f3daebb367de496586a6b364840de48eb
155
#!/bin/bash -e for data_set in original/*.csv ; do echo "Processing $data_set" head -n 4000 $data_set > ../`basename $data_set` done echo "Completed."
a7f7088d05ce27fb81013b6c22a5d9a68fdef0d3
498
#!/bin/bash echo "Build the view in in test mode" yarn build echo "Build completed in build folder." echo "start copying to remote test1 server." ssh test1 "rm -rf ~/light-chain/light-config-test/test1/signin/build" scp -r ./build test1:/home/steve/light-chain/light-config-test/test1/signin echo "start copying to remot...
b467c0faad7af6bf6d55f186fb7d3e43ac52d209
2,104
#! /bin/bash #This portion is extracted from the eTract pipeline developed by Ivan Gunz kakembo=$0 ### Variables #### OUTWD= INDIR= CPUS=4 REFERENCE= VERSION="1.0" kakembo=$0 ARGPARSED0=$0 ALLARGSPARSED=$@ usage() { cat <<EOF Thanks for using eTrack $VERSION Developed by as a mini-project by Group-4 EanBIT Resi...
a7480970a1263e201b8d5b07fe06707494fb00ed
760
#!/bin/bash set -e -o pipefail if [ "$DISABLE_LINTER" == "true" ] then exit 0 fi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if ! [ -x "$(command -v golangci-lint)" ]; then echo "Installing GolangCI-Lint" ${DIR}/install_golint.sh -b $GOPATH/bin v1.20.0 fi export GO111MODULE=on golangci-lint run \ ...
c7173f69107f844a0eff23b60a1e01479810a79d
7
cat < .
b2e4b7b6726cddc858a1ac44a2adb2f8c916672b
780
#Maintainer: Fredrik Andersson <fredrik.ks.andersson@gmail.com> pkgname=cmakegen-git pkgver=r40.115b37b pkgrel=1 pkgdesc="Tool to automatically generate cmake files for c++ projects" arch=("x86_64") license=("MIT") makedepends=("git" "cmake" "make") depends=("cmake" "make") source=("git+https://github.com/fredsson/cmak...
177795cb53eafbb6c1921b37459b95e12eacdaa6
80
#!/usr/bin/env bash echo "Running heroku-buildpack-post-build-clean..." exit 0
576cc7b26f21c39ff09389371dcb9c8c43f42022
100
#!/bin/bash for ext in bc opt cbpl bpl loc gbpl; do find . -iname "*.${ext}" -print -delete done
28dfcc5897585e84ec4fcc99c753d039bc0245e4
34
../../4.42/daily/convert_output.sh
f4ea30a42d00e38f203dac8d96a0b1372decc1d8
384
#!/bin/bash clear function init() { clear echo '-> Kill by Port' sleep 1 echo ' ' } sudo clear init if [[ $# -eq 0 ]]; then echo "Digite a porta!" echo ' ' sleep 1 exit 1 fi if [[ $# -eq 1 ]]; then sleep 1 #sudo "kill -9 $(lsof -t -i:$1)" lsof -n -i:$1 | grep LISTEN | aw...
ddef03ba42f62be9037919d08fe437b4e79d31cd
104
#!/bin/sh fly -t ci set-pipeline --config pipeline.yml --pipeline drmaa2os --load-vars-from params.yml
1141777ddd0365f44017667363167ce14a6b1deb
227
EXTEND_ESLINT=true REACT_APP_API_URL=http://localhost:3001 REACT_APP_ROUTING_API_URL=https://api.openrouteservice.org/ REACT_APP_AUTH0_DOMAIN=dev-g7dchufc.eu.auth0.com REACT_APP_AUTH0_CLIENT_ID=0uVmfvzmb1DC3v4dkvFyVWeIQpdRptWS
cd026bba0d408771574cd4d709bd726ea30372ec
305
#!/usr/bin/env bash # Shows Git branches not merged into master for projects in current folder for dir in ./*; do ( if [ -d $dir ]; then cd "$dir" && if [ -d '.git' ]; then branch=`git branch --no-merge` && echo -e "$branch \t $dir"; fi fi ) done
1394eadb4180a1ce194cd2ed1bbfc69c11e9374e
514
#!/bin/bash if [[ "$1" == "" ]] || [[ "$2" == "" ]] || [[ "$3" == "" ]] || [[ "$4" == "" ]] ; then echo "Usage: ./start-worker.sh nid model batch_size num_gpus [options]" exit -1 else nid=$1 model=$2 batch_size=$3 num_gpus=$4 python tf_cnn_benchmarks.py --local_parameter_device=cpu --num_gpus=${num_gpus} \ --b...
17fdc68ba4cddac8b9c30b31ac14a28b8472eaf5
2,463
#!/bin/bash # Change to the root dir cd "$(dirname "$0")" # Make sure you edit cluster.conf prior to running this. . ./cluster.conf ########################## # Get a node list from the connecting node, save it to nodes.list # Run the Package Manager for a clean copy of packages # Upload the private key to the node ...
7b5616ac12514b70098834a19cc4941db6d5621b
1,313
#1/bin/bash # Run BQSR for WES data # Note that the platform must be specified to correct only using the target regions PLATFORM=$1 # illumina or roche for BAM in *.realigned.bam do while [ $( jobs | wc -l ) ge 12 ]; do sleep 1; done java -Xmx20g -jar /Molly/barbitoff/software/gatk-protected/target/GenomeAnalysisT...
f00670ecd8013fa9261ba9e6584bc8c2866014ca
109
#!/bin/bash echo "Iniciando contenedor..." echo "INICIADO!!" > /var/www/html/cmd.html apachectl -DFOREGROUND
0688a12597bc2492894449ae1de2e314fde3ffed
1,288
#!/bin/bash # The instructions in this file are extracted from # 'Beyond Linux From Scratch' (2014-08-22 / r13994) but are modified for use # with LFScript 4 which installs the software to a fake root directory. # # Beyond Linux From Scratch is released under the MIT license. # Copyright (C) 2001-2014, The BLFS Develo...
5e9cb87dd8c5925970da8fc370dfa812d1933d37
236
#!/bin/bash # @Author xutongze # @Time 2021年7月2日 # @Description 避免ranger启动的shell内创建新的rangershell rg() { if [ -z "$RANGER_LEVEL" ] then ranger else exit fi } # start rg()? rg()
684e351c491ee7423312ae2fb6336409c5899fd6
91
#!/bin/bash python3 kmeans_cluster_analysis.py embedding_files/${1}.pkl gap_files/${1}.pkl
7ad385d956ec4c99e3af07f3a83a0ceee4dacc55
142
#!/usr/bin/env bash SOURCE_ROOT="$(dirname "$(realpath "${BASH_SOURCE[0]}")")" cat "${SOURCE_ROOT}/test-notifications.lua" | awesome-client
97ef08b3830f8e6c35f72c9b9bd2c72052f57fff
547
#!/bin/bash set -eu pipeline_name="generate-cert" if [ -z ${fly_target:-} ]; then echo "need to set fly_target environment variable"; exit 1; fi DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) export fly_target=${fly_target} echo "Concourse API target ${fly_target}" echo "Location: $(basename $DIR)" pushd $D...
edca4209e582424e9de2b8a7ae4a51e4466d692c
584
#!/bin/bash # wp core install --path=www --url=${APPLICATION_DOMAIN} --title=${APPLICATION_DOMAIN} --admin_user=${WORDPRESS_ADMIN_USER} --admin_password=${WORDPRESS_ADMIN_PASSWORD} --admin_email=${WORDPRESS_ADMIN_EMAIL} --skip-email # first='0' # for i in $(echo $WORDPRESS_THEMES | tr "," "\n") # do # if [ $firs...
f8a2e29eafc8560d9cc68276657c6a9b7ed054b9
546
# Contributor: Githzerai <githzerai06@gmail.com> pkgname=quicksand pkgver=0.1 pkgrel=1 arch=(i686 x86_64) pkgdesc="An alternative front-end for KRunner." url="http://kde-apps.org/CONTENT/content-files/91748-quicksand.tar.bz2" license="GPL" depends=('kdebase-workspace' 'kdelibs') makedepends=('cmake') source=('http://k...
50254cbc28289d48d8163c49a669606ff53cf20c
436
#!/bin/bash redhat_version=$(cat /etc/*-release | grep ^VERSION | head -n1 | awk -F"=" '{print $2}' | xargs | awk -F'[ ]' '{print $1}' | xargs) min_version=8.0 version=$(echo "$redhat_version>=$min_version" | bc) 2>/dev/null if [[ $version -eq 1 ]]; then echo $(cat /etc/redhat-release 2>/dev/null | awk '{print $1"...
42441ce88580a1bdfb7bad5ae12bc8416f6472eb
666
#!/bin/bash PREFIX=$1 CORES=$2 NJOBS=$3 SUFFIX="RData" ROOT=`pwd` for FILE in `find -iname "${PREFIX}*${SUFFIX}"`; do cd `dirname $FILE` BASE=`basename $FILE` BASE=${BASE%.RData} echo "###" echo $BASE echo "###" GENFILE=`ls *.gen` SAMFILE=`ls *.sample` PHSFILE=`basename $GENFILE` PHSFILE=${GENFILE%.ge...
33f3a0281ef853a8704bd0d6afb13a40d8319a6a
263
# Copyright (C) 2020, RTE (http://www.rte-france.com) # SPDX-License-Identifier: Apache-2.0 VOTP1_ADDR=192.168.217.131 VOTP2_ADDR=192.168.217.132 OBSERVER_ADDR=192.168.217.133 NTP_ADDR=192.168.217.134 GATEWAY_ADDR=192.168.217.1 PUBLIC_NETWORK="192.168.217.0/24"
24df992813d138ba05b0dcf49b74f4abbb976e1f
220
DEBUG=True FLASK_ENV=production FLASK_APP=flaskr SECRET_KEY=YOURSECRETKEY DATABASE_URI = postgresql://[USER]:[PASSWORD]@localhost:5432/trivia TEST_DATABASE_URI = postgresql://[USER]:[PASSWORD]@localhost:5432/trivia_test
cf0586db66a43bf8010fefa1dc9023b1bc3843b8
271
# DATABASE USERNAME_DB = DATABASE = PASSWORD_DB = HOST_DATABASE = DIALECT = mysql TYPE_SGBD = mysql LOGGIN_DATABASE = false OPERATORSALIASES = false PORT_DB = 3306 # JWT SECRET = SECRET EXPIRESIN = 1d DEFAULTSTRATEGY = jwt # STORAGE STORAGE = http://localhost:3000/
666e11b32f576722617e914ed5709ff3b737879f
3,941
# bash_profile: if [ -n "${BASH_VERSION}" ] ; then use_color=false safe_term=${TERM//[^[:alnum:]]/.} # sanitize TERM if [[ -f /etc/DIR_COLORS ]] ; then grep -q "^TERM ${safe_term}" /etc/DIR_COLORS && use_color=true elif type -p dircolors >/dev/null ; then if dircolors --print-database | grep -q "^TERM ${safe_t...
82777364dc7f175c26b6b57ecd067047dd3daa94
5,748
#!/bin/bash print_help(){ if [ "$1" -gt 1 ]; then echo "Użycie opcji -h lub --help z innymi opcjami jest niedozwolone" exit 1 fi echo " ---- HELP: napisz man linuxrestore -----" exit 0 } print_version(){ if [ "$1" -gt 1 ]; then echo "Użycie opcji -v lub --version z innymi opcjami jest niedozwolone" exit...
cc2bd92430cb9c993d2b7f2d07da5ba07d81f849
387
#!/bin/bash sed -i 's%if (false) { //Patched by feren-kde-settings%if (KCMShell.authorize("formats.desktop").length > 0) {%g' /usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/main.qml sed -i 's%if (false) { //Patched by feren-kde-settings%if (KCMShell.authorize("formats.desktop").length > 0) {%g' /u...
9966c4892ebafdc0e796bb667b56df721f1566d4
62
#!/bin/sh bsc.iowa.extract_rawdata_from_blkparselog tracelog
64d949d8edcfdbdf69abfb6de4146a0eb20de4ee
4,170
#!/bin/bash #1.install sudo python -m pip install "django<2" #2.check python #>>> import django #>>> django.VERSION #(1, 6, 0, 'final', 0) #>>> #>>> django.get_version() #'1.6.0' #3.新建项目 django-admin.py startproject http #创建成功后会有以下目录结构 #http #├── manage.py #└── http #├── __i...
9b01f7306e1aaa94ce0bbbcf56fc1102c0261316
2,494
#!/usr/bin/env bash set -euo pipefail trap 'e=$?; [ $e -ne 0 ] && echo "$0 exited in error"' EXIT # https://github.com/ANTsX/ANTs/wiki/simple-case:-T1-to-MNI-mapping-for-both-structure-and-pre-registered-fMRI # 20210401WF - init # Skullstrip test -d bet || mkdir $_ # "brain extraction" using fsl's bet. could use AFNI'...
2ee71ba69641722058758913067664d93d786aae
283
#!/bin/sh SVN_VERSION=`git rev-parse --short HEAD || echo "GitNotFound"` APP_VERSION=`head -n 3 update.sh|grep LAST_VERSION|awk -F"=" '{print $2}'` go build -ldflags "-X main.buildTime=`date +%Y%m%d-%H%M%S` -X main.binaryVersion=$APP_VERSION -X main.svnRevision=${SVN_VERSION}"
a186fcdd039db9c5bf79b8884adc103728984d60
117
ffmpeg -i Crota//Movie/2016_0922_121919_002.MP4 -ss 00:01:27 -t 00:00:11 -acodec copy -vcodec copy -async 1 main.mp4
54ef0a1a46192ec5b38370de542dcc1bd8ee0515
190
#!/bin/bash die() { echo >&2 "$@" exit 1 } [ "$#" -eq 1 ] || die "Ping to multiple hosts. Usage: $0 <host_list>" for ip in $(cat $1 | sed 's/.*@//g'); do ping "$ip" -c 3 done
0c91f10730bb071c50a96e9bb8a5b6968b553484
116
#!/bin/bash /usr/bin/nohup /home/opvis/opvis_agent/agent_service/agent_udp >> /home/opvis/utils/log/agent.log 2>&1 &
20a69da341fed2f26c681c60338fb26220e35ac8
339
pushd .. set -e HOST_CACHE=$(python -c "from jukemir import CACHE_DIR; print(CACHE_DIR)") echo $HOST_CACHE popd docker run \ -it \ --rm \ -d \ --name jukemir \ -u $(id -u):$(id -g) \ -v $HOST_CACHE:/jukemir/cache \ -v $(pwd)/../jukemir:/jukemir/jukemir \ -v $(pwd)/../reproduce:/jukemir/reproduce \ ju...
3ec44bcdb413d7772abb0e667ddf592940cce62c
457
#!/bin/bash ovs-ofctl del-flows br0 ovs-ofctl add-flow br0 in_port=2,actions=output:47 # input for j in 0 1 2 3 4 5 6 7 8; do for i in `seq 1 255` ; do ovs-ofctl add-flow br0 in_port=48,ip,nw_src=10.0.$j.$i,actions=output:1 done done # output #ovs-ofctl add-flow br0 in_port=1,actions=output:48 #for i in `seq 2 2 4...
833cea1bd910b14ffbacdf7974588c6709bf7cc9
661
#!/usr/bin/env bash # Install xcode sudo softwareupdate -i -a xcode-select --install # create the directory mkdir .dotfiles # clone into directory git clone git@github.com:Keloran/dotfiles.git .dotfiles/keloran # got into directory cd .dotfiles/keloran function doIt() { rsync --exclude ".git/" --exclude ".DS_S...
49e50fd52c10282ceaf33e9945e92dd179472f38
48
#!/bin/sh bundle exec rspec git_hooks/pre-push/
97536ae7f2980b35c3625ef350dad516f17228fd
154
#!/bin/bash sott=1 for (( i = 1; i <= 4 ; i++ )) do for (( j = 1 ; j <= i; j++ )) do echo -n $sott " " sott=$((sott+1)) done echo done exit 0;
b93c56a4c670b5e345c1782a4adbadf06fb2173d
260
#!/bin/bash -ex dl() { [ "$FAB_HTTP_PROXY" ] && PROXY="--proxy $FAB_HTTP_PROXY" cd $2; curl -L -f -O $PROXY $1; cd - } VERSION="5.0/5.0.8/+download/Plone-5.0.8-UnifiedInstaller.tgz" URL="https://launchpad.net/plone/$VERSION" dl $URL /usr/local/src
ec9ea0975ae97500174b9e1e3efdc03da9e3ddc0
775
#!/usr/bin/bash -x # Source the etcd if [ -f /etc/profile.d/etcdctl.sh ]; then source /etc/profile.d/etcdctl.sh; fi # Handle retrying of all etcd sets and gets function etcd-set() { etcdctl set "$@" while [ $? != 0 ]; do sleep 1; etcdctl set $@; done } function etcd-get() { etcdctl get "$@" # "0" a...
936c32631156a7713ac8c9c3a97cc4ab9d9d907f
219
#!/bin/bash BASE=$(dirname $0) TARGET="$BASE/target/scala-2.11/HLTA-assembly-1.1-deps.jar" if [[ -e $TARGET ]]; then mv $TARGET $BASE/target/scala-2.11/HLTA-deps.jar else echo "$TARGET does not exist." exit -1 fi
4c52b491e9d1fef7df986e31b8038b21f72ffbbf
123
#!/bin/sh export PG_ROOT=~/pgsql/bin export OUT=/tmp/dtahara/out $PG_ROOT/psql test -f $1 | grep '^Time:' >> $OUT/$1.out
73bfdeef07fa67cf7c04780f70845fb7509ccda5
279
#!/bin/bash set -e source $(dirname "${BASH_SOURCE[0]}")/base.sh cd "$(get-lctt-path)/sources" domain="$1" git checkout -b "$domain" git grep -l "$domain"|while read file; do git rm "$file"; done git commit -a -m "remove $domain" git push -u origin "$domain" git checkout master
bd9edc8ca9acb28aaf88cfcb0153e9bd60a138b9
843
#!/bin/bash NTASKS="2" image="library://marcodelapierre/beta/openfoam:v1812" # this configuration depends on the host export MPICH_ROOT="/usr/local/packages/e4s/spack" export MPICH_LIBS="$( which mpirun )" export MPICH_LIBS="${MPICH_LIBS%/bin/mpirun*}/lib" export SINGULARITY_BINDPATH="$MPICH_ROOT" export SINGULARITY...
0033bd5459790a53556fb721643051675d148ba7
180
#!/usr/bin/env bash # Autor: Aissar Murad # # Usage: # get-metadata meta-data/instance-id # # exit on error set -e PARAMETER=$1 curl "http://169.254.169.254/latest/$PARAMETER/"
0d030760f766e87d7beb8c9aab445c0c096b34b0
319
#! /bin/sh echo "[Symlinks for All]" #permissions sudo chmod 700 /home/gavin sudo chown gavin /home/gavin #single files rm ~/.bashrc ln -s ~/Dropboxes/Settings/.bashrc ~/.bashrc rm ~/.rtorrent.rc ln -s ~/Dropboxes/Settings/.rtorrent.rc ~/.rtorrent.rc #folders rm -rf ~/scripts ln -s ~/Dropboxes/scripts ~/scripts
9a07eef3360ff85c31e370b008b1afcf31a8b34f
177
#!/bin/bash expect <<! source ~/.bash_profile psql -h 42.159.87.142 -p 5432 -d postgres -U oushu expect "*Password*" send "lavaadmin" expect "*ostgres*" send "\q" expect eof !
68ad871c79d2a7c19c285ded956a862b0e452c8a
84
#!/bin/bash skrape -u $RDSUSER -H $RDSHOST -D $RDSDB -e /mnt/data/ --password=false