blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
e2ddcb856961b07268893b1d628038b47f11ca55 | 9,727 | #!/bin/sh
set -e
# source debconf library.
. /usr/share/debconf/confmodule
# location of the configfile
configfile="/etc/cvsd/cvsd.conf"
# location of the file that will be edited
# only when editing is complete will $configfile be overwritten
tmpconfigfile=`mktemp`
# location of the file that will be used tempora... |
0599376097ef713c40c8e8fe021d17a76361b0cd | 349 | #!/bin/bash
LD="/usr/bin/ld"
GOLD="/usr/bin/ld.gold"
DEF="/usr/bin/ld.bfd"
if [ -z "$1" ]; then
echo "no linker passed.. exit."
exit 1
fi
if [ -h "$LD" ]; then
sudo rm $LD
else
echo "no symbolic link for ld found.. exit."
exit 2
fi
if [ "$1" == "gold" ]; then
sudo ln -s $GOLD $LD
else
su... |
9cc5d17e775458a66363ea618e9b3c45fece3960 | 59 | #!/bin/bash
python manage.py runserver 192.168.21.128:8000
|
f90b7529bcbf482deb1c6d66a70a6dc13ffa03db | 365 | #!/bin/bash
rm -f success
d="$(pwd)"
function main {
test "$1" == "start" && {
echo $$ > testpid
xterm -l -e "$0" &
sleep 1
tail -f /home/gk/termcontrol_input.log &
tail -f Xterm.log*
exit 0
}
pytest -xs tests/test_cli -k works && touch "$d/success"
... |
8d24e476f11b834a3e275070d4e8dd54e2db6fd1 | 295 | #!/bin/bash
standard_mongo_file="/var/lib/mongodb/mongod.lock"
uol_mongo_file="/home/mongodb/database/mongod.lock"
if [ -f $uol_mongo_file ];
then
#File FILE exists
echo "ON"
else
if [ -f $standard_mongo_file ];
then
#File FILE exists
echo "ON"
else
echo "OFF"
fi
fi
|
144c1ef426ac333eb1a5fd11d650227cabbf6023 | 842 | #!/bin/bash
cd /gpfs/users/mantecap/CMSSW_11_1_0/src/MonoHGenTree/MonoHGenTree2DScans/python
eval `scramv1 runtime -sh`
ls /gpfs/projects/cms/fernanpe/DarkHiggs_MonoHs_HsToWWTo2l2nu_mhs_400_mx_100_mZp_2200_TuneCP5_13TeV/RunIISummer20UL18_wmLHEGEN/*/*/wmLHEGEN_inRAWSIM_*.root|sed 's/^/file:/'>list/list_400_100_2200.txt
... |
3771cc248b7669c7b6a243f8ad19c01d608e77b8 | 1,024 | echo 'selected_scheme scheme-infraonly
TEXDIR /usr/local/texlive
TEXMFCONFIG /opt/texlive/texmf-config
TEXMFHOME /opt/texlive/texmf
TEXMFLOCAL /opt/texlive/texmf-local
TEXMFSYSCONFIG /opt/texlive/texmf-config
TEXMFSYSVAR /opt/texlive/texmf-var
TEXMFVAR /opt/texlive/texmf-var
option_doc 0
option_src 0' > /tmp/texlive-p... |
18096b0e15eeff668a0068d4963798d3a783b491 | 450 | #!/bin/bash
trayer --edge top --align right --SetDockType true --SetPartialStrut false --expand true --height 17 --transparent true --alpha 0 --tint 0x000000 --margin -5 --widthtype request --monitor 1 &
if [ -z $(pgrep nm-applet) ]; then
echo -n "Starting nm-appliet..."
nm-applet &
echo " done"
fi
if [ ! -... |
897537ab5ab29233dc0eb0945164551875f132c3 | 1,068 | #!/usr/bin/env bash
set -euo pipefail
# fetch and install Volta (better nvm)
if ! command -v volta &>/dev/null; then
# curl https://get.volta.sh | bash -s -- --skip-setup
brew install volta
fi
volta install node@latest # remove when LTS officially supports arm64
volta install npm@8
volta install yarn@1
volta fet... |
d6faec7584a7a6a92a2c314086166980d37f3128 | 539 | # //////////////////////////////////////////////////////////////////////////////////
# //////////////////////////////////////////////////////////////////////////////////
# // PLEASE EDIT PREFERENCES BELOW
# //////////////////////////////////////////////////////////////////////////////////
# ////////////////////... |
27a257aac3595b4ac1f13ed3df492b63c1ce8cc8 | 660 | #!/bin/bash
set -x
set -e
export CUDA_VISIBLE_DEVICES=0
OUTDIR='pretrained_models/car'
python kitti/prepare_data.py --car_only --gen_val_rgb_detection
python train/test_net_det.py --cfg cfgs/det_sample.yaml OUTPUT_DIR $OUTDIR TEST.WEIGHTS $OUTDIR/model_0050.pth
python kitti/prepare_data_refine.py --car_only --gen_f... |
5e94edfa5703dade80e7ab33a0f48ce0a9da1fec | 361 | #!/bin/bash
caddy&
CADDY_PID=$!
echo "caddy is running as $CADDY_PID"
QS=""
if [ x"$1" != x ]; then
QS="?$1"
echo "Using querystring $QS"
fi
echo "Debug at http://localhost:9222"
/opt/google/chrome/chrome --kiosk --disable-session-crashed-bubble --remote-debugging-port=9222 "http://localhost:2020/sign.html$Q... |
fed7e14dbf77756376e8df4cef9783f6b9e93ee6 | 1,554 | #!/bin/sh
# edit by zzh
# ./
APP_BIN=`dirname $0`
APP_HOME=$APP_BIN/..
export APP_HOME
echo $APP_HOME
JARS="${APP_HOME}/conf:${APP_HOME}/devConf:"
LIB=$APP_HOME/libs
if [ -d $LIB ]; then
for i in $LIB/*.jar; do
JARS="$JARS":$i
done
fi
PLUGIN=$APP_HOME/plugins
if [ -d $PLUGIN ]; then
for i in $PLUGIN/*.jar; ... |
28970b309b59dbad2a90c030c0c1b8d552eca192 | 100 | # See pkgs/build-support/setup-hooks/role.bash
getHostRole
export NIX_${role_pre}LDFLAGS+=" -lfts"
|
4084a757f3f04307ff0b120680e78ad4a6a5c8ef | 146 | #!/bin/sh
python ../../tough-convert/main.py MESH --corners CORNERS --vtk foo_mesh.vtk
python ../../tough-convert/main.py MESH --vtk foo_dual.vtk
|
e14fbb0dfe9c10240596ed940f04ca8b3b23355a | 1,108 | gem install travis
travis login
travis encrypt-file myEmailKey
ls
ls
cd home/
ls
ls
cd ..
ls
travis encrypt-file myEmailKey
travis encrypt-file ~/myEmailKey
travis encrypt-file ~/myEmailKey
travis encrypt-file myEmailKey
travis encrypt-file -r
travis encrypt-file --h
travis encrypt-file ~/myEmailKey
travis encrypt-fi... |
54c47b31dfdec9e38f6904019fe1cdff07b6e6b5 | 206 | gpp -U "<#" ">" "\B" "|" ">" "<" ">" "#" "~~" \
chapman_317_s19_syllabus.pandoc.md | \
pandoc -o chapman_317_s19_syllabus.pdf \
-V links-as-notes=true \
-V geometry=margin=1in
|
11e845e7560985ec4a5a0f0a96e4c471211d84fe | 1,014 |
#
# Mac OS X - Pythong
#
PYTHON_ROOT="$HOME/Library/Python/2.7"
if [[ -d $PYTHON_ROOT/bin ]]; then
export PATH="$PYTHON_ROOT/bin:$PATH"
[[ -d $PYTHON_ROOT/man ]] && export MANPATH="$PYTHON_ROOT/man:$MANPATH"
[[ -d $PYTHON_ROOT/lib ]] && export LD_LIBRARY_PATH="$PYTHON_ROOT/lib:$LD_LIBRARY_PATH"
fi
unset P... |
68189d4650784a1a7fa103953e8adb2c6bedfd41 | 3,728 | #!/bin/bash
ErrorS()
{
echo "Error. La sintaxis del script es la siguiente:"
echo "Para saber numeros de lineas del archivo: $0 nombre_archivo L" # COMPLETAR
echo "Para saber el numero de caracteres del archivo: $0 nombre_archivo C" # COMPLETAR
echo "Para saber la longitud de la linea mas larga del archivo: $0 nombre... |
4fe09ff58cfa38ec7846ece8425708b460a7406f | 178 | mkdir -p results
./SeqSIMLA -popfile EUR_chr1.bed.gz -recfile EUR_chr1.rec -famfile simped1000.ped -folder results -header Sim1 -batch 100 -site 80 --mode-prev -prev 0.1 -or 2.0
|
c49a23c048267a94875d8c295561169f9f4c1383 | 106 | #!/bin/bash
set -e
set -o pipefail
ec(){
emacsclient --create-frame --alternate-editor="" $@
}
ec "$@"
|
9432c7d713d8e69e3743a6a1d1ebe2ffb3b7c1a2 | 171 | #!/usr/bin/env bash
# Run as Nginx
pkill apache2
chmod 766 /etc/nginx/nginx.conf
sed -i 's/80/8080/g' /etc/nginx/sites-available/default
sudo -u nginx service nginx start
|
f193f63c29b75397ba19a8dbdbe1a583eed844de | 473 | #!/bin/sh
# the FULL list of POSSIBLE fingerprints is...
ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub
ssh-keygen -l -E md5 -f /etc/ssh/ssh_host_dsa_key.pub
ssh-keygen -l -f /etc/ssh/ssh_host_ecdsa_key.pub
ssh-keygen -l -E md5 -f /etc/ssh/ssh_host_ecdsa_key.pub
ssh-keygen -l -f /etc/ssh/ssh_host_ed25519_key.pub
ssh-ke... |
65096ccd29ab4ebf701cae31895dcd41a4762441 | 56 | export GOOS=linux
export GOARCH=amd64
go build agent.go
|
35b30e9588d128c874329efa3cfcc8ee9036d028 | 49 | mvn clean:clean
mvn deploy -Dmaven.test.skip=true |
f79c9462dc2474710808fe608db04afffa530e0b | 75 | #!/usr/bin/env sh
sketchybar --set $NAME label="$(date '+%h %d - %H:%M')"
|
a85c09cf6a187651ffe60be796cc56e9a02cffc2 | 2,971 | #!/bin/bash
#
# Purpose: A script to create JEOS (Just Enough Operating System) guest
#
# Copyright (C) 2015-2016 Red Hat Inc.
# NOTE: Once the `oz-install` command is finished, define the xml file
# and start the guest
#
# Author - Kashyap Chamarthy <kchamart@redhat.com>
#
# This program is free software; you can red... |
b0726fafce29039fcd610021a0c42be6ddc83dcf | 361 | #!/bin/bash
git config -f $GERRIT_HOME/gerrit/etc/gerrit.config auth.type $AUTH_TYPE
$GERRIT_HOME/gerrit/bin/gerrit.sh start
if [ $? -eq 0 ]
then
echo "gerrit $GERRIT_VERSION is started successfully with auth.type=$AUTH_TYPE, please login to check."
echo ""
tail -f $GERRIT_HOME/gerrit/logs/httpd_log
else
ca... |
95402011c4cf167c939284a3c59c181dfe94d96d | 1,422 | # Maintainer: Clint Valentine <valentine.clint@gmail.com>
_name=shellingham
pkgbase='python-shellingham'
pkgname=('python-shellingham' 'python2-shellingham')
pkgver=1.2.4
pkgrel=1
pkgdesc="Detect what shell the current Python executable is running in."
arch=('any')
url=https://github.com/sarugaku/"${_name}"
license=('... |
b91dc38ebe94e7311b2adcc09b66472bcb32e033 | 61 | #!/bin/bash
cmake -S .. -B ../Intermediates -DPHT_DEBUG=OFF
|
57e6908eb64db9b231a64400701b7d283fd28b40 | 220 | #!/bin/bash
#
# install without user input
DOTFILES_ROOT="`pwd`"
source "${DOTFILES_ROOT}/script/base/common.sh"
source "${DOTFILES_ROOT}/script/base/uninstall.sh"
set -e
echo ''
delete_all
echo ''
echo ' Cleaned!'
|
6fbd750d7913b886aad8ea4902a10103e55e65f5 | 76 | #!/bin/bash -eux
pushd dp-design-system
npm audit --audit-level=high
popd |
f2d537eb3d2296dae11e664a271d0437e99820a5 | 761 | MDFILE=slides.md
pandoc $MDFILE -o slides.html \
--filter pandoc-citeproc -t revealjs --slide-level=2 -s \
--mathjax='node_modules/mathjax/es5/tex-mml-chtml.js' \
-V revealjs-url=node_modules/reveal.js \
-V theme=solarized \
-V viewDistance=15 -V width=1280 -V height=880 -V margin=0.05
# -V rev... |
c84173fdad11d073729011d16ead2950dec8ae2c | 882 | #!/bin/bash
#
#Must be run from an Illumina run directory
#
#$1 argument is for basemask
#basemasks for 10x
# 1) basemask="Y28N*,I8N*,Y98N*" ;;
# 2) basemask="Y26N*,I8N*,N*,Y98N*" ;;
# 3) basemask="Y28N*,I8N*,N*,Y98N*" ;;
# 4) basemask="Y28N*,I10N*,I10N*,Y98N*" ;;
source "/gale/netapp/home/seq/b... |
0cd3c51e3f9549dac0c12b077ee8c39a6546666e | 215 | #!/bin/bash
curl -vvv X POST -d '{"password" : "neo4j", "new_authorization_token" : "6f188d2408a34c0785e3032e69e94a92"}' -H 'Content-Type: application/json' -i http://127.0.0.1:7474/user/neo4j/authorization_token
|
199f6432ca96073638ce19f3ac0faa35581abaf1 | 207 | # Scrubbed by Glitch 2021-01-05T17:04:13+0000
# Scrubbed by Glitch 2021-01-05T17:59:16+0000
# Scrubbed by Glitch 2021-06-21T18:20:23+0000
TOKEN=ODUyOTUwMTY5NTczNjU0NTM4.YMORvw.jcaB1aWzp8LedhftACxjE-vm3Z0 |
cee11d737bf641ec410a3558963787eba873e2cb | 123 | #!/bin/sh
go build -o ex17
./ex17 https://ja.wikipedia.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8 img
|
1451e7a89e05f44b6e63241e60092fcf0f7bab54 | 243 | #!/bin/sh
get_ips() {
if [ ! -d ".tmp" ]; then
mkdir -p .tmp
fi
euca-describe-instances | grep ami-00000200 | awk '{print $4}' > .tmp/ips
echo >> .tmp/ips
echo ".tmp/ips"
}
list_inst() {
euca-describe-instances | grep ami-00000200
} |
072ec36bc53dc20435bce5541f40ba4cc86191a8 | 53 | #!/bin/bash
mkdir /tmp/shared
chmode 777 /tmp/shared
|
d46687e5e29a2703b300e81c33cf87d22aebaa2e | 354 | #!/bin/bash
source /home/tsdavis/.bash_profile
error_file="paste_scores_error.log"
stdout_file="paste_scores_stdout.txt"
this_script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
qsub -N paste_cluster_motif_scores -m ea -M ${USER}@stanford.edu -w e -e $error_file -o $stdout_file -wd $(pwd) -l h_vmem=10G ${t... |
b073fce057b4ec8b85fcc0fc188ba68616dc7e56 | 4,627 | #!/bin/bash
# nginx force https on Dual URL
scriptversion="1.0.2"
scriptname="nginxhttps"
#
# wget -qO ~/nginxhttps.sh http://git.io/A34SpA && bash ~/nginxhttps.sh
#
############################
## Version History Starts ##
############################
#
# v1.0.2 template updated
#
############################
### Vers... |
55a274442fa19ff0e2ac301cac56801f5b4a444e | 2,411 | #!/usr/bin/env bash
cd /home/andrew
curl -O https://dl.google.com/go/go1.11.linux-amd64.tar.gz
sudo tar -C /usr/local -xvzf go1.11.linux-amd64.tar.gz
echo "export GOPATH=$HOME/go" >> ~/.profile
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.profile
source ~/.profile
go get -v github.com/Lusitaniae/apache_exporter
sud... |
6ca3ae71613c1f7722af4763766bb52e5ce979e4 | 158 | #!/bin/bash
#MODES = -r: run , -d: dry-run
MODE=-d
#node app.js $MODE poolreb -p POOL500G:DC -i 20 -l 20
node app.js $MODE poolreb -p POOL500EF:GH -i 20 -l 20 |
8f60140a6b29ef540a5205839efbd952a36b0a0c | 215 | genomeFolder=/media/harddrive/data/genomes/ncbi_caseiGroup_plus_isolates_fna/
quastPath=/media/harddrive/tools/quast-4.3/quast.py
python $quastPath -o qc_quast_allGenomes_results --threads 6 ${genomeFolder}*.fna*
|
e75d360ea0117f0fb9b6a701a1ecec0c47ee8d04 | 7,943 | #!/bin/bash -e
# Copyright (c) 2016 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... |
cfed106e29e7e277e2bca3491ee585fee45a02eb | 1,041 | #!/bin/sh
set -eu
PATH=/usr/local/bin:$PATH
usage="usage: $(basename $0) [-av] [-s size] [-t .ext] [-n subname] style fontfile"
subname=""
while getopts n:s:t: OPT
do
case $OPT in
s) size=$OPTARG ;;
t) type=$OPTARG ;;
n) subname=$OPTARG ;;
*) echo $usage >&2; exit 2 ;;
esac
done
siz... |
cf8e3180bfdec409524a33f1055582800d9e0287 | 354 | #/bin/sh
read -p 'Action: ' dbR_action
read -p 'Database: ' dbR_database
read -p 'User: ' dbR_user
read -sp 'Password: ' dbR_password
read -p 'Schema: ' dbR_schema
echo $dbR_database
echo $dbR_user
export dbR_action=$dbR_action
export dbR_database=$dbR_database
export dbR_user=$dbR_user
export dbR_password=$dbR_passw... |
089e0a6c56095689f36ae8e10bc925fb03e49ff3 | 340 | #!/usr/bin/env bash
function test_mysql {
mysqladmin ping -h ${MYSQL_HOST} --silent
}
echo "Waiting for ${MYSQL_HOST} to become ready"
count=0
until ( test_mysql )
do
((count++))
if [ ${count} -gt 1200 ]
then
echo "Services didn't become ready in time"
exit 1
fi
sleep 0.1
done... |
88f7ca0b3a0314b8c8f4cfa5d5a1725bbd8d0764 | 235 | #!/usr/bin/env bash
#SBATCH -J GRU_S3_Firebusters
#SBATCH -o results/o_stage4_gru.txt
#SBATCH -e results/e_stage4_gru.txt
#SBATCH -p gpgpu-1 --gres=gpu:1 --mem=100G
#SBATCH -t 10080
#SBATCH -s
#SBATCH -n 32
python master_stage4_gru.py
|
17fc2336283af33ecf9d3146afaec1b700fb3bcc | 178 | # app info
APP_URL=http://localhost:3005
# api info
API_URL=https://gateway.marvel.com/v1/public
API_PUBLIC_KEY=11111111111111111111111111
API_PRIVATE_KEY=22222222222222222222
|
2c84c2d7d98fbf4245a5807cbbbbb103a4105739 | 63 | MNEMONIC_PHRASE="//Alice"
PINATA_KEY="XXX"
PINATA_SECRET="XXX"
|
86e4e501d9c4fdc2fd81e30f49ac3bec6fd2c42f | 775 | # Environment for uwlogin.cern.ch
echo $HOSTNAME|grep -q 'uwlogin.cern.ch' || return
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [ -f /cms/setup/bashrc ]; then
. /cms/setup/bashrc
fi
if touch a 2>/dev/null; then
rm a
else
echo "AFS Credentials expired; running kinit && aklog"
kinit -l 30d ncsmith@CE... |
b747f137af8663d0d6e5f2a98bf7843a704ff84d | 644 | #!/bin/sh
CHANNEL=39
make || exit -1
function program {
if [ -c $1 ]; then
if [ "$3" == "clock_master" ]; then
ARGS="--no-sleeping"
fi
make install SERIAL_PORT=$1 && ./pyaci/configure_sensor.py --channel $CHANNEL $ARGS -d $1 $2
if [ "$3" == "clock_master" ]; then
./pyaci/set_time.py -d ... |
671c4f8a9e1be8510983e3b4bcf421d307f7ae5e | 198 | #!/usr/bin/env bash
if [ "$1" = "-b" ]
then
docker build -t fake_news_datasets_image .
fi
docker run -it --name fake_news_datasets --rm -p 8888:8888 -v $(pwd):/project/ fake_news_datasets_image
|
9cf8950508d5ad511e5f6cd47e06d74d77d626eb | 989 | set -e
# Where the pre-trained InceptionV3 checkpoint is saved to.
PRETRAINED_CHECKPOINT_DIR=/Users/gaoyufeng/毕设/code/check_point
# Where the training (fine-tuned) checkpoint and logs will be saved to.
TRAIN_DIR=/Users/gaoyufeng/毕设/code/train_dir/inception_v3
# Where the dataset is saved to.
DATASET_DIR=/Users/gaoyu... |
00e736809a29f5e47eb984f500cf854c4eb46b77 | 60 | #!/usr/bin/env bash
set -e
celery -A config worker -l info
|
f3601c2af3c07b9624a9c9842641c334c65c7847 | 36 | #!/bin/bash
python3 Xiaomi_Scale.py |
ecdc34aea5590c99ae8b88f031ea43c080e85bac | 36 | socat -u udp-recv:12312,reuseaddr -
|
7a874235f816baafa966e47a5abe256bc57e5255 | 176 | #!/bin/bash
pid='0'`ps -ef | grep tomcat | grep org.apache.catalina.startup.Bootstrap | awk '{print $2}'`
[ $pid -ne 0 ] && kill -9 $pid
sudo /usr/local/tomcat/bin/startup.sh |
85afb92c9d1696aec3d39a16eed6f902af6b5a15 | 976 | #!/bin/bash
mkdir -p ~/dotfiles/backups
if [ -x "$(command -v apt-get)" ]; then
sudo apt-get update
else
if [ -x "$(command -v brew)" ]; then
brew update
fi
fi
if [ ! -x "$(command -v tmux)" ]; then
if [ -x "$(command -v apt-get)" ]; then
sudo apt-get install tmux
else
if [ -x "$(command -v brew)" ]; then... |
eeefa07fcb2eb96df4689532caa6b791d1067a3e | 1,157 | #!/bin/sh
pybind11-stubgen -o stubs --no-setup-py irspack.recommenders._ials
rm irspack/recommenders/_ials.pyi
echo 'm: int
n: int
from numpy import float32
' >> irspack/recommenders/_ials.pyi
cat stubs/irspack/recommenders/_ials-stubs/__init__.pyi >> irspack/recommenders/_ials.pyi
pybind11-stubgen -o stubs --no-setup... |
20f54e927e814ebeae9b768a51ef1bdfb6852918 | 78 | ../stanford_enhancer.sh ../data/enhanced/UD_Spanish-GSD/es_gsd-ud-test.conllu
|
e9afb773c5313dd0ff40dda015deaaa4fa5ef97d | 5,063 | source ./env.sh
mkdir -p certs
cd certs
# CA
{
cat > ca-config.json << EOF
{
"signing": {
"default": {
"expiry": "8760h"
},
"profiles": {
"kubernetes": {
"usages": ["signing", "key encipherment", "server auth", "client auth"],
"expiry": "8760h"
}
}
}
}
EOF
cat > ... |
b86e9985528e47f2b79800763e8505c8f4458dee | 120 | cd /var/www/html/
rm index.html
cd /var/www/html/spare/119/
sudo cp /var/www/html/spare/119/index.html /var/www/html/ |
f53ff9ed8d6aa96049ebd7ae763ac10dc2483bd4 | 1,518 | #!/bin/bash
WORSE="0"
BEST="16777216"
COUNTER=$1
SUM="0"
ERROR="0"
if [[ $# -ne 3 ]]
then
echo -e "You need 3 params\nscript [cycle start] [cycle_end] <champion.cor>"
exit;
fi
if ! [[ "$1" =~ ^[0-9]+$ ]]
then
echo -e "your param 1 \"$1\" is not integers"
ERROR="1"
fi
if ! [[ "$2" =~ ^[0-9]+$ ]]
then
echo -e "your... |
04637293fbdc3466b41a00ac0e7d42ab1dbdadf4 | 75 | #!/bin/sh
. "$HOME"/apps/pub/home/xinitrc
common_init
init_as_configured
|
5577e47240813e653399220636e24df1fa04edd4 | 67 | #!/usr/bin/env bash
sudo -u vagrant -i bash /vagrant/bootstrap.sh
|
5a2b492bf2841a2ba84104f685405573b85b3637 | 450 | #!/bin/bash
CUR_DIR=$(dirname "$0")
source $CUR_DIR/set_env.sh
IMAGE_NAME=$DATA_PATH/cam/01_00000.png
DEPTH_NAME=$DATA_PATH/depth/01_00000.png
FLOW_X_NAME=$DATA_PATH/flow_x/01_00000.png
FLOW_Y_NAME=$DATA_PATH/flow_y/01_00000.png
SEG_NAME=$DATA_PATH/segcls/01_00000.png
python $CODE_PATH/test_data.py --data_path=$DATA_... |
2342f9a3f9639c3ed8fe0c4ee3186337a4e60beb | 133 | # https://www.hackerrank.com/challenges/bash-tutorials-display-the-third-element-of-an-array/problem
array=($(cat))
echo ${array[3]} |
02793b095cad1c771c5a6112615519e7346f174a | 288 | #!/bin/bash
export DISPLAY=:0
export `dbus-launch | grep ADDRESS`
jackd -d alsa -d hw:M1010LT_1 -r 44100 &
sleep 2
alsa_in -d alsa -d hw:M1010LT -r 44100 -c 10 &
alsa_out -d alsa -d hw:M1010LT -r 44100 -c 10 &
cd /var/www/strand/; python dooropener/doya/tools/runscript.py pleasehold.py
|
d2c6fa883fc22c0f9ffbca64ac2ab2e58b3ebd14 | 2,694 | #!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir> <env-dir>
set -eo pipefail
if [[ -n "${BUILDPACK_DEBUG}" ]]; then
set -x
fi
readonly build_dir="${1}"
readonly cache_dir="${2}"
env_dir="${3}"
readonly java_version="${JAVA_VERSION:-1.8}"
readonly webapp_runner_version="${JAVA_WEBAPP_RUNNER_VERSION:-${WEBA... |
47e3677fc165d09c343e51397c66a5cfa1bcb603 | 1,101 | #!/usr/bin/env bash
gulp clean
gulp release
mv www www_back
mv release/www www
ionic plugin rm cordova-plugin-console
#多渠道-开始
mkdir ./tmp
mv ./platforms/android/AndroidManifest.xml ./tmp/
echo '' > release.log
for version in 'YingYongBao' 'Test'
do
cp -f ./tmp/AndroidManifest.xml ./platforms/android/
sed -i -- "... |
f3bea97ea2f12b24d43c7500670dcc8bedb8bac0 | 52 | #!/usr/bin/env bash
yum install mailx -y || exit 1
|
3adf26568e6787fb10112cbab3fcfeabc75a3567 | 266 | #!/usr/bin/env bash
length=${1:-1MB}
nproc=1
( time -p mysomaticsniper -r $REFSEQ \
-1 $length/Mix1A-$length.bam \
-2 $length/Mix3A-$length.bam \
-a Mix1A \
-b Mix3A \
-o $length/${nproc}proc/ ) 1>&$length/${nproc}proc/somaticSniper-run.time &
|
12aeec748101e4c4d1be27e5bc2c42d1587d3a06 | 605 | ## upload file to google storage
file_path=$1
num_speakers=$2
rm -f speaker_windows
rm -f word-time-offsets
gsutil cp $file_path gs://tamu-nduseja-ds/
file_name=`basename $file_path`
gs_storage_path="gs://tamu-nduseja-ds/$file_name"
python transcription/transcribe_word_time_offsets.py $gs_storage_path &
python3 diariza... |
c60ac7e65ccaa3571cc0b5a32efd8c24cc834dd1 | 453 | #!/bin/bash
. ../utils/gdownload.sh
. ../utils/conditional.sh
# this section is for downloading the trained_model_weights.tar
# md5sum for the downloaded trained_model_weights.tar should be 0dde61f0b520ae9c17c9aae6dcc64b55
echo "downloading trained_model_weights..."
gdownload 1n6zg5Bkj5FzSHpRbJdzlUkSVDtmjgobm trained... |
2ef91bca30de503aac1b75e7aba5770673dd226d | 115,597 | #!/bin/bash
#SBATCH --partition=he2srvMediumP
#SBATCH --time=2000:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --job-name=p_3941
#SBATCH --error=/home/comparat/software/linux/firefly_explore/bin/bin_spectra/plot_result_file_run_dir/p_3941.err
#SBATCH --output=/home/comparat/softw... |
8d94b6eaee46046900ace61ea3c6d84a26b1933e | 147 | $XSB/bin/xsb -e "[etalis],
set_etalis_flag(output_temporary_files,on),
compile_event_file('test_01.event'),
execute_event_stream_file('events')."
|
71190942620f5d91997395625ed67045eea9fe26 | 115 | #!/bin/sh
for i in $(git for-each-ref --format='%(refname)' refs/heads/ | grep master -v); do
basename $i
done
|
1ef309fc96f0edb2b7c849b55edf0d037fb89904 | 577 | #!/bin/bash
# Backup Nginx
\cp -fr /etc/php.ini /home/config/php.ini
\cp -fr /etc/nginx/nginx.conf /home/config/nginx/nginx.conf
\cp -fr /etc/nginx/sites-include/* /home/config/nginx/sites-include/
\cp -fr /etc/nginx/sites-enabled/* /home/config/nginx/sites-enabled/
# Backup supervisor
\cp -fr /etc/supervisord.con... |
db184278e7df73e1d7b5e8518f5b4284d5f5996c | 4,643 | #!/bin/bash
function pause(){
read -p "$*"
}
function urlify(){
local str=$1; shift
str=$(echo $str | sed 's= =%20=g')
str=$(echo $str | sed 's=/=%2F=g')
str=$(echo $str | sed 's=:=%3A=g')
URLIFIED=$str
}
function menu(){
PS3='Please enter your choice: '
options=("Jenkins" "Webapp" "Tomcat" "Ansible"... |
2bd8163f5a1fcd759e6c2f1fb253eede47193ac9 | 1,772 | #!/usr/bin/env bash
set -euo pipefail
# @see: http://wiki.bash-hackers.org/syntax/shellvars
[ -z "${SCRIPT_DIRECTORY:-}" ] \
&& SCRIPT_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
SCRIPT_DIR=$(dirname "${SCRIPT_DIRECTORY}")
PROJECT_DIR="/vagrant"
SCRIPT_DIR="${PROJECT_DIR}/_scripts"
# ... |
d6a1f59aa2ca3b4293912b0ca63791e3a2ff575c | 219 | cd /compiler
st=$(date +%s%N)
bash $1.bash < /testrun/program.txt 1> /testrun/stdout.txt 2> /testrun/stderr.txt
echo $? > /testrun/exitcode.txt
ed=$(date +%s%N)
dt=$((($ed - $st)/1000))
echo "$dt" > /testrun/time_us.txt |
d79e60ed7830dadf4dcaf9eabeed65349c596762 | 38 | pipenv run ampy --port /dev/ttyUSB0 ls |
26abda6531ee08c6f50adb3d5c462f2eebb31423 | 800 | #/usr/bin/env bash
# Read in a csv file,
# strip empty lines
# convert to lowercase
# replace endings with \r\n
for f in "$@"
do
input=$f;
file="$(basename "${input}")";
dir="$(dirname "${input}")";
output=$dir/modified_$file;
temp="$dir/temp.csv";
touch "$temp";
# remove empty lines
awk -F, 'length>NF+1' "... |
1db6b7d0ce326a3b8be47514c5e571e5bb6eb56b | 1,583 | #/bin/bash
touch weather.csv
echo "state,city,weather,temperature,humidity,pressure" > weather.csv
while true; do
NY=`date '+%Y-%m-%d-%H-%M-%S'`-NY.html
`touch ${NY}`
echo `curl -L https://forecast-v3.weather.gov/point/40.78,-73.97` > ${NY} #NY, New York
`java -jar tagsoup-1.2.1.jar --files ${NY}`
CA=`date ... |
53d45e9c825698b5c1ad965f10f5dde9817b183d | 28 | This is for github practice
|
14eb0af2b2384f8df4abbb05b88bf6e9c19eb505 | 1,389 | #!/bin/sh -e
if [ -n "${HELM_LINTER_PLUGIN_NO_INSTALL_HOOK}" ]; then
echo "Development mode: not downloading versioned release."
exit 0
fi
version="$(sed -n -e 's/version:[ "]*\([^"]*\).*/\1/p' plugin.yaml)"
echo "Downloading and installing helm3-monitor v${version} ..."
url="https://github.com/yq314/helm3-m... |
0bed3b8db985658c344fa45d79c12692b2ff9309 | 50 | local_database_path=./docker/data/wordpress.sql
|
95ca46bf0b9250960c1edbd4b3719cd6bc594ba8 | 1,624 | #!/bin/bash
#see nrn/howtomingw
set -x
# in cygwin terminal in neuron/nrn
if test "x$OSTYPE" = "xcygwin" ; then
cd /cygdrive/c/msys64/msys/home/hines/neuron/nrn
sh hg2nrnversion_h.sh > src/nrnoc/nrnversion.h
cat src/nrnoc/neuron.h > tmp.c
cpp -Isrc/nrnoc -Isrc/oc tmp.c | sed '/^#/d' > neuron.tmp
python src/oc/mk_hoc... |
261c9477542a49786f2e99494aa24b50dd887328 | 87 | #!/usr/bin/env bash
yarn workspaces run clean
npx lerna clean --yes
rm -rf node_modules |
2cc4a05902542c153976c2504fbc1ba7727e63fa | 97 | ATLAS_URI=mongodb+srv://dbuser:dbuser@cluster0.ks90m.mongodb.net/MERN?retryWrites=true&w=majority |
d4bd5494d4dc55f21294d4db6503d26375f8a6ce | 459 | #!/bin/sh /etc/rc.common
START=40
USE_PROCD=1
PROG=/bin/poe.lua
service_triggers() {
procd_add_reload_trigger poe
}
start_service() {
[ "$(uci get poe.poe.enable)" -eq 1 ] || return 0
local budget=$(uci get poe.poe.budget)
procd_open_instance
procd_set_param command "$PROG"
procd_append_param command ${budge... |
8508b826cc29cf051474c2451de2bd05392fa980 | 140 | #!/bin/bash
NEW=`/usr/local/bin/notmuch new`
if [ "$NEW" != 'No new mail.' ]; then
echo $NEW | growlnotify 'Mail Changed';
fi
echo $NEW
|
1f8782337e38dff7e2376b46a193b6e80358e079 | 716 | #!/bin/bash
#developed by Dost Muhammad Shah
# github.com/dmsherazi
# Reboots spa3000 by finding them using arp-sacn
# the script serches for cisco lynksis OUI 00:18:f8 ,00:18:39 and 00:14:bf
# This script should work with paswword protected SPA3000 as well.
# Tested with SPA 3000 with the following Software & Har... |
bc6a381a94050869b69770a3c5c3486d4aabe51d | 1,489 | # Enable aliases to be sudo’ed
alias sudo='sudo '
# Others
alias aux='ps uax'
alias brwe='brew'
alias edithosts='sudo vim /etc/hosts'
alias c='pbcopy'
alias copy='pbcopy'
alias copy_ssh_key='xclip -sel clip < ~/.ssh/id_rsa.pub'
alias count_files_recursive='find . -type f -print | wc -l'
alias count_files_recursive_per... |
7cb7fbd58c44d34d679f262fd21fd4cf0060ed0c | 549 | # https://github.com/ddollar/forego
ASSET_HOST=localhost:3000
APPLICATION_HOST=localhost:3000
PORT=3000
RACK_ENV=development
RACK_MINI_PROFILER=0
SECRET_KEY_BASE=development_secret
EXECJS_RUNTIME=Node
SMTP_ADDRESS=smtp.example.com
SMTP_DOMAIN=example.com
SMTP_PASSWORD=password
SMTP_USERNAME=username
WEB_CONCURRENCY=1
... |
b92edabab70f5f483a96e2748a7d6ce7507ee3a4 | 229 | # Try changes with `source ~/.bashrc`
# Change command defaults
alias du='du -ah -d1 | sort -hr'
alias ls='ls -va --color'
# Vim
## Use as default editor
export EDITOR='vim'
export VISUAL='vim'
## Use hotkeys on CLI
set -o vi
|
9baa960ee51432a2455d6724f43009249e22fc7a | 4,273 | #!/bin/sh
echo -e "Content-type: text/html"\\r
echo -e ""\\r
echo -e "<HTML><HEAD><TITLE>Sample CGI Output2</TITLE></HEAD><BODY>"\\r
. /usr/libexec/modules/modules.conf
PASSWD=/etc/passwd
CONF_PATH=/etc/sysconfig/config
SMB_SHARES_CONF=${CONF_PATH}/smb/shares.inc
SMB_HOST_CONF=${CONF_PATH}/smb/host.inc
IFCFG=${CONF_PA... |
17533e1a056de3ebc44e58b02c4ccbbb270e4301 | 335 | readonly IMAGE_NAME=quay.io/alexanderfefelov/mariadb-replication
readonly ROOT_PASSWORD=password
readonly MASTER_SERVER_ID=42
readonly MASTER_CONTAINER_NAME=mariadb-master-$MASTER_SERVER_ID
readonly MASTER_PORT=10000
readonly SLAVE_SERVER_ID=24
readonly SLAVE_CONTAINER_NAME=mariadb-slave-$SLAVE_SERVER_ID
readonly SL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.