blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
4d1f95ce83606470924b1f5ea3384e636c3966bf | 92 | rm -f CMakeCache.txt
rm -rf CMakeFiles
rm -f Makefile
rm -f cmake_install.cmake
rm -f *.out
|
185ee7290c1ac438b6ce245cc6a89f9f3241bc07 | 60 | #!/bin/sh
ifconfig | grep ether | awk -F " " '{ print $2 }'
|
6593d4c8aac50f3c9ad7cffcb8be8ebfe3e9dd72 | 53 | npm install
browserify js/main.js > js/mainbundle.js
|
32503c1cb2f210d31213fc0e857db447b463ed7f | 130 | #!/bin/bash
rm -rfv ~/.emacs.d/init.el
rm -rfv ~/.emacs.d/lzconf.org
cp -v init.el ~/.emacs.d/.
cp -v lzconf.org ~/.emacs.d/.
|
2b75f92d695800e3d95604fab5792c6104f7ddd5 | 4,517 | #!/bin/bash -
#title :quicktest.sh
#description :Bicomsystems automatic SERVERware Quick self test v1.0
#author :Damir Smigalovic
#sw-version :3.2
#usage :sh quicktest.sh
#Created by :SERVERware Team
export GREEN='\033[0;32m'
export RED='\033[0;31m'
export NC='\033[0m'
echo -e "${GREEN}
____ ... |
1780e2a51e856250a5d340a1ad75dc2d63415934 | 2,632 | #!/bin/bash
echo "Scrip de conciliacion con MD5Sum"
path_tierra="/home/hadoop/Documentos/code/scripts-shell/md5sum_validation/input/appTierra"
path_cloud="/home/hadoop/Documentos/code/scripts-shell/md5sum_validation/input/appCloud"
path_fail="/home/hadoop/Documentos/code/scripts-shell/md5sum_validation/input/appFail"
... |
51409bbd54d58f96db0cbc2626990d1f0eb0b1db | 423 | filename_video=../data/BACH_Minuet_in_G_Major_first16bars.mp4
filename_video_wav=../data/BACH_Minuet_in_G_Major_first16bars.wav
CHECKPOINT_DIR=/Users/ronggong/Documents_using/pianoAI/data/transcription_models/onset_and_frames
filename_video_midi=$filename_video_wav.midi
./sound_video_sep.sh $filename_video $filename_v... |
f7f184ef3bccddb04b41ca8409d8c8baf299662b | 232 | #!/usr/bin/env bash
# STEP-01:
# BUILD DOCKER IMAGE WITH DESCRIPTIVE TAG
sudo docker build --tag=blueImage .
# STEP-02:
# LIST DOCKER IMAGES
sudo docker image ls
# STEP-03:
# RUN DOCKER IMAGE
sudo docker run -p 8000:80 blueImage
|
ed474e6c0853963c9cd95292e14a03e2392a5751 | 1,347 | #! /bin/sh
# /etc/init.d/ch-sf
### BEGIN INIT INFO
# Provides: ch-sf
# Required-Start: $remote_fs $syslog mysql
# Required-Stop: $remote_fs $syslog mysql
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Serial Forwarder
# Description: A simple script from www.stuffabou... |
d2b814dbd5bb97b3e103af803f293f07b3b9db29 | 571 | #!/bin/bash
. ./base.sh
echo -n "Enter user:"
read USER
echo -n "Enter pass:"
read PASS
HTTP="http"
TLS=""
for i in "$*"; do
case $i in
--tls)
HTTP="https"
TLS="--tls.certfiles=${FABRIC_CA_CLIENT_HOME}/users/admin/msp/cacerts/localhost-7054.pem"
;;
esac
done
set -x
./fabric-ca-clien... |
7136450b2738fd29f4f7a54d5904b17aaefee982 | 57 | set -ex;
(cd www; yarn build);
(cd crate; cargo build);
|
d08cb619b945428568b5c3c814f0563ff6bb53d9 | 396 | #!/bin/sh
#用于最开始的检查急停开关
echo "inspect launch"
gnome-terminal -x bash -c "roslaunch navigation_test SG.launch"
sleep 5
gnome-terminal -x bash -c "rosrun face_detection_with_aip groceries_prediction.py"
sleep 1
gnome-terminal -x bash -c "rosrun face_detection_with_aip take_photo_store"
sleep 1
gnome-terminal -x ba... |
e4a2af1c963ae8b356cc1dcc3102832c572b2061 | 1,227 | #!/bin/bash
#
# Script to calculate frequency of sentence terminal characters in a corpus
#
DATAROOT=/vagrant/data
ANLSROOT=${DATAROOT}/analysis/ending-chars
echo -n Analyzing BNC...
corpus=${DATAROOT}/bnc/plaintext
bounds=${DATAROOT}/bnc/bounds
txtend=".xml.txt"
bndend=".xml.txt.bounds.permissive"
log=$ANLSROOT/bnc.... |
04aeec36d8ff159befaf6bc7e464a1a00cc9c385 | 1,184 | #!/usr/bin/env bash
set -eu -o pipefail
help() {
cat << 'HELP'
Usage: run_tests.bash [--logfile FILE] TEST_SCRIPT...
Run test bash scripts
--logfile FILE save stderr to spcified file (default: test.log)
TEST_SCRIPT test bash script
- Start each test case with description 'echo "case: ..."... |
b3e7295c205a1210b46f6ef073fd146cd7fe239a | 120 | #!/usr/bin/env bash
cd mysql-test-database
rm test.sql
mysqldump -u scotoobo -psecret --databases scotoobo > test.sql
|
dace167526b69def67e0212a00760d73b747121e | 386 | # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lf6481/lib
# User specific aliases and functions
alias python='/usr/local/uvcdat/1.2.0rc1/bin/python'
alias py.test='/usr/local/uvcdat/1.2.0rc1/bin/py.test'
alias ab='cd /snfs3/asses... |
25ae0887837d26927f3ffc369fc6606e5a71a7d0 | 1,735 | #!/bin/bash
start=`date +%s`
echo; echo "Starting UCM processing ..."; echo
UCM_work_PATH=$1
UCM_output_PATH=$2
corr_file=$3
high_corr_file=$4
high_corr_threshold=$5
boundary_box=$6
swath=$7
cd $UCM_work_PATH/input
echo; echo "Grdinfo high corr file:"
gmt grdinfo $high_corr_file
echo "Extracting high coherence ar... |
3156ff42346a7db109d4579a615c730d85283797 | 4,364 | #!/bin/bash
rm -f \
20200224_iEZcH2D27Vg.info.json.vo.* \
20200224_iEZcH2D27Vg.info.json.ao.* \
20200224_iEZcH2D27Vg.info.json.bo.* \
20200224_iEZcH2D27Vg.info.json.wav
rm -fr 20200224_iEZcH2D27Vg.info_dir
mkdir -p 20200224_iEZcH2D27Vg.info_dir
mv 20200224_iEZcH2D27Vg.info.j... |
8b5c56d3b36f19e91b735050b3958f649e271611 | 154 | docker pull kubernets/pause-amd64:3.1
docker tag kubernets/pause-amd64:3.1 gcr.io/google_containers/pause-amd64:3.1
docker rmi kubernets/pause-amd64:3.1
|
062917b882cd65648dc0866dd788fddb2eccaa69 | 796 | #!/bin/bash
# 参考リンク
# インポート
import read_select_num
# =======================================================
#【 数字選択メニュー関数】
# @param $1 選択肢の配列
#
# @return select_num_menu_res 処理結果
# =======================================================
function select_num_menu() {
# --------------
# 変数
# --------------
... |
0dbb4b383ac77786351fb815ccd11d61a2e1ee2a | 56 | x=0
while [ $x -lt $1 ]
do
echo $2
x=`expr $x + 1`
done
|
889bc1e0daf30adcc7301afd0bd7ce9cd04786c2 | 192 | #!/usr/bin/env bash
#
# Run after a feature is finished
#
# Arguments:
# $1 feature-name
# $2 feature-branch
# $3 working-branch
NAME=$1
BRANCH=$2
WORKING=$3
# Implement Script Here
exit 0
|
7468fcc864925f0f0dfabafe8d0ee6716ec7d1b6 | 370 | #!/bin/sh
GRONURL=https://github.com/tomnomnom/gron/releases/download/v`cat gron.latest | sed -e 's;gron-;;g'`/gron-linux-386-`cat gron.latest | sed -e 's;gron-;;g'`.tgz
cat > Dockerfile << QQ
FROM alpine
MAINTAINER sahsu.mobi@gmail.com
RUN mkdir /app
WORKDIR /app
ADD $GRONURL /app/gron.tgz
RUN tar -xvf gron.tgz && c... |
7c0f11b95beb781dc5c0e285508cf3d7d5399fa3 | 891 | #!/usr/bin/env bash
. bpm
bpm::include bench
bpm::include string
genTests() {
eval "
bench::test::$1-function() {
$1 isFunctionDeclare
}
bench::test::$1-variable() {
$1 BASH_VERION
}
bench::test::$1-command() {
$1 ls
}
b... |
e25a385014bfb3297c782f0b9c5d25650545a879 | 900 | # echo 'Building postgresql'
sudo apt-get update
sudo apt-get install -y git build-essential gettext
sudo apt-get install -y libreadline6 libreadline6-dev
sudo apt-get install -y zlib1g-dev
sudo apt-get install -y flex bison
# run as vagrant user
git clone http://git.postgresql.org/git/postgresql.git ~/postgresql
sud... |
6037de48ed97a8ddefe8cf95dcd3e38ab16496b7 | 238 |
path="/Users/py3/data science/digital_africa/Base_Challenge_1000/"
find *.py "$path" | while read line; do
grep 'import' "$line"
done
echo "alias pip=/usr/local/bin/pip3" >> ~/.zshrc
echo "alias pip=/usr/local/bin/pip3" >> ~/.bashrc |
26f4a2a21f0c6db41c3361a7e56c05a8e5541457 | 354 | #!/bin/bash
CONTAINER_ID=$1
until PGHOST=127.0.0.1 PGPORT=6079 PGUSER=postgres PGDATABASE=gis psql -c 'select 42;'; do
#if [[ $(docker inspect --format '{{.State.Running}}' $CONTAINER_ID 2>&1 > /dev/null) != 'true' ]]; then
# echo "Container died"
# exit 2
#fi
echo "Waiting for Database to c... |
a8543b045e4c720310a007dbe906e6f57ad6153a | 974 | mkdir build
mkdir build/out
echo "Building All Platforms"
electron-packager src Actor --platform=all --arch=all --app-bundle-id=im.actor.app --version=0.36.8 --out=build --icon=assets/app_icon
cd build/Actor-darwin-x64/
zip --symlinks -r Actor-Mac.zip Actor.app/
mv Actor-Mac.zip ../out/
cd ../../
# echo "Building ... |
4bf7ff7aac54a7071012cfe7d9e9aa5e0be9357d | 170 | #!/bin/sh
if [ "$RHO_PLATFORM" = "android" ]; then
cd platform/android
rake --trace
elif [ "$RHO_PLATFORM" = "iphone" ]; then
cd platform/iphone
rake --trace
fi
|
130ec48c16fdfcb45aed796b7b6ae7a49e84d991 | 2,344 | ###### 192.168.2.37·þÎñÆ÷ʹÓà marathon-lb+haproxy ½øÐиºÔØ
###### 192.168.2.38ʹÓà traefik ½øÐиºÔØ https://github.com/containous/traefik
###### ʹÓÃConsul×ö¸ºÔØ
docker pull gregory90/bamboo
docker pull mesosphere/marathon-lb
# --privilegedʹÓÃdockerÄÚµÄrootÓµÓÐÕæÕýµÄrootȨÏÞ
docker run -d --privileged -e PORTS=... |
54a64dd69169a05f5f02e7fe1c33a2b0e69fac9e | 1,372 | #!/bin/bash -x
CMD=$1
BOX=root@isp1.6350.lowes.com
export PATH=.:/bin:/usr/local/bin
eval $(keychain --eval ~/.ssh/id_rsa)
SSH_ARGS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
SSH="ssh $SSH_ARGS"
SCP="scp -r $SSH_ARGS"
WORKSPACE="$($SSH $BOX 'pwd')/workspace"
# test connection
$SSH $BOX true |... |
1ebfdec38dfe764577d115a8c3210c51030a20cc | 296 | #!/bin/bash
ul='_'
ext=$3$ul$4
accfile=$acc$ext
modelfile=$5$ext
sysfile=$6$ext
timelog='time.'
START=$SECONDS
./DTlearner.py $1 $3 $4 $modelfile
./DTclassifier.py $1 $2 $modelfile $sysfile
END=$SECONDS
DIFF=$(($END-$START))
echo ''$accfile: Processing time $DIFF seconds'' > $timelog$accfile
|
27c09b8ce49040d22e4bd8b53b93488c7c95003f | 1,381 | UAs=("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36","Mozilla/5.0 (MSIE 10.0; Windows NT 6.1; Trident/5.0)","Mozilla/5.0 (MSIE 9.0; Windows NT 6.1; Trident/5.0)","Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Ver... |
e8b79013a3906defb752ff60bc1833ffc72de539 | 153 | #!/usr/bin/env bash
# Build client
conda install --name s2sv --yes -c conda-forge nodejs
source activate s2sv
cd client
npm install
npm run build
cd ..
|
0c1e73994aebea1b20fe87ff49179dc020bcfe8f | 201 | #!/bin/bash
set -e
tar xf autoconf.tar.gz
cd autoconf
#sed -i '361 s/{/\\{/' bin/autoscan.in
./configure --prefix=/usr
make -j$(nproc)
#make check -j$(nproc)
make install
cd ../
rm -rf autoconf |
9ee43beeaf5924b982396c31eef70054a9bbd910 | 183 | #!/bin/bash -ex
# Ensure the repository is clean after code generation.
./script/generate
test -z "$(git status --porcelain)"
# Run suite of golangci-lint checks.
golangci-lint run
|
f1d6e0bd0726e121e0c4c4bfd21013b37db23e18 | 75 | export FASK_APP=app.py
export FLASK_ENV=development
export FLASK_DEBUG=true |
0e41f317c40c8409b3bfde5a7e70df4516478b0a | 17,303 | _requeriments () {
# /tmp dir
mkdir -p $HOME/.tmp
cd $HOME/twc
# /update script and dependencies
echo -e "\n Upgrading..."
echo -e "👉 Please wait...☕👴"
_sync () {
https://raw.githubusercontent.com/DemonBloody/twc/raw/master/cave.sh -O -L &> /dev/null ;
echo -e "\n Upgrading 1/19"
curl https://raw.githubuse... |
4b3bd82b236e3735f72df1360e29be352edfc922 | 2,397 | # shellcheck shell=bash
bsl_debug=0
_date()
{
date '+%Y-%m-%d--%H-%M-%S'
}
_brew-shadow-load()
{
pkg="$1"
[ -z "${pkg}" ] && { echo "Usage: brew-shadow [init|load] pkg"; return 1; }
_env="${HOME}/sh/brew.d/${pkg}/vars.env"
echo "check for $_env"
if [ -f "${_env}" ] ; then
_tmp_env="/... |
4d45a090dbdb6f88acc40fd25ddc988705663f3f | 200 | #!/bin/bash
echo "Your Argument is:$1"
if [ $# -eq 1 ]; then
echo "You need one Parameter!"
elif [ $# -gt 1 ]; then
echo -e "your parameter is: $1 $2 $3 \n"
echo $0
echo $*
fi
exit 0
|
7b14936c18e5ed6f7c6ca1cffa97f802aec9c716 | 832 | #!/bin/bash -e
#©keithhedger Mon 2 Feb 13:04:50 GMT 2015 kdhedger68713@gmail.com
if [ -e ./SystemData ];then
. ./SystemData
else
echo "No SystemData file found ..."
exit 1
fi
echo "LFS location:" $LFS
echo "LFS version:" $LFSVERSION
echo "LFS Hostname:" $LFSNAME
echo "Kernel version:" $KERNELVERSION
echo "INIT ty... |
d64a42d51c1b330060a94166f8122009e24f7435 | 82 | #!/bin/sh
rm /home/warting/$username/domains/$domain/svn_repositories -rf
exit 0;
|
3744e7adc6bf21dac7004d34e8ed2cf5499eb61f | 32 | #!/bin/sh
date +"%Y%m%d%H%M"
|
445cdae4eafa2d4919b8b1d60eee8e727443641f | 1,348 |
. ./path.sh
set -e
start_stage=0
end_stage=6
iemocap_root=/export/corpus/iemocap # dataset root dir
. utils/parse_options.sh # e.g. this parses the --stage option if supplied.
if [[ $start_stage -le 0 && ! -d "data" ]]; then
echo "mkdir data"
mkdir data
fi
#1. link `iemocap dir` to `sessions`
if [[ $star... |
795400713a28c8a416a9976ddd1505541a0471bb | 896 | #! /bin/bash
#
# created Dec 15, 2009
mplayer dvd:// -v -dumpstream -dumpfile title.vob
mencoder dvd:// -nosound -ovc frameno -o /dev/null -slang en -vobsubout title
mplayer title.vob -ao pcm:file=audio1.wav -vc dummy -aid 128 -vo null
normalize-audio audio1.wav
oggenc -q5 audio1.wav
# First pass
mencoder -v\
... |
ec690ba9214b73dc5fb76466478027967d31b57d | 241 | #!/bin/bash -xe
run_clean() {
case $1 in
dist)
rm -rf dist
mkdir dist
;;
safari)
rm -rf gur.safariextension
;;
*)
run_clean dist &
run_clean safari &
wait
esac
}
PATH=node_modules/.bin/:$PATH run_clean "$@"
|
8eeb50d6d73748093c80b2fe9086609058a3167e | 251 | #!/usr/bin/env bash
apt-get update && apt-get install vim -y
apt-get update && apt-get install libdbd-pg-perl -y
apt-get update && apt-get install wget -y
wget https://raw.githubusercontent.com/jfcoz/postgresqltuner/master/postgresqltuner.pl -P /root |
1bd4f0e486ce729706eeac2428f777b35c8b9c2f | 97 | #!/bin/sh
cd /home/ryan/supercharge
git add .
git commit -m 'test commit' --allow-empty
git push
|
19c5261db5b59cd43e0a98736df8123b299dd685 | 1,121 | #!/bin/sh
outputdir=/PLEASE_SET_ME
hostname="`hostname`"
# For commands that don't print the date/time.
date_wrapper() {
date "+%Y%m%d-%H%M%S-%z"
"$@"
}
program="$1"
case "$program" in
iostat)
set -- iostat -xt 1 86400
;;
vmstat)
set -- date_wrapper vmstat 1 86400
;;
sar_pagefaults)
set -- sar -B 1
... |
c29a69dde94af76af503d709af36e7008a6bda3f | 221 | npm install
# mkdir public/images/champion_images
# mkdir public/images/mastery_images
pip install requests
pip install bs4
#python crawler.py
pip install keras
pip install tensorflow
pip install pandas
pip install numpy
|
ed9c2ce4e3dee34cbc64b0043deee373cd91917f | 545 | #!/bin/bash
echo ""
echo "----mailer: sending report"
echo ""
#:<<BLOCK
receiver=""
while read LINE
do
receiver="${receiver},$LINE"
done < $1
/usr/sbin/sendmail -t <<EOF
From:autobuilder<xiang.ye@opi-corp.com>
To:$receiver
Subject:autobuilder report v`date +20%y%m%d`
`cat $2`
======== final report ========
--- fail... |
e3773e16557c6c106442d962368610c36ce2e1c9 | 3,702 |
##IN="/mnt/t3nfs01/data01/shome/cheidegg/o/2016-07-13_ewkskims80X"
##OUT="/mnt/t3nfs01/data01/shome/cheidegg/o/2016-07-13_ewkskims80X_fancyPancySkimsy"
##SAMPLES="--allSamples" ## or add them with --samples, or put --procs data
##python susy-interface/skimmaker.py 3l 3lA $T $O $SAMPLES -X blinding -X filters -X trigge... |
e429b8270299f45013855959040d677e9273cf5c | 562 | #!/bin/bash
set -e -u
source /etc/hyades/cluster.conf
source /etc/hyades/local.conf
# allow verification of etcd certs
FLANOPT="--etcd-cafile /etc/hyades/certs/kube/etcd-ca.pem"
# authenticate to etcd servers
FLANOPT="$FLANOPT --etcd-certfile /etc/hyades/certs/kube/etcd-cert.pem --etcd-keyfile /etc/hyades/certs/kube/... |
bd161a37abec9c92f16143c1aa2bdf66aa8ad16e | 326 | # update and install essential tools
apt update
apt install build-essential -y
apt install python3-pip git -y
apt install python3-venv -y
# install openalpr
apt install openalpr
# download weights
# wget https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v3_optimal/yolov4.weights -O ./yolov4/yolov4.we... |
6e5a822e8d8486c1265a5bcee609b10f742e4ce1 | 40 | #!/bin/sh
python ctr.py -f encrypt $@
|
26d5c04b2d1172a571ae518fe77425a94b6a72ec | 96 | #!/bin/sh
if [ -f "$1/bower.json" ]; then
echo "Bower"
exit 0
else
echo "no"
exit 1
fi
|
1683f259e0a5db4c69e8dd82168b631c53e6b966 | 29 | docker build -t demo:volume . |
7a0dc17ca8fe97e7812b376b61f5c8dc2c8104dc | 760 | #!/usr/bin/env bash
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m'
orgs=$(cf orgs)
if [[ " ${orgs[@]} " =~ "demo-org" ]]; then
echo -e "${RED}demo-org already present on CF instance. Exiting demo script."
echo -e "If you want to run this script, run the tear down script \"./down.sh\" first.${NC}"
exit 1... |
29d532c11d2bb1066dec1024ef030454fc519ed3 | 1,936 | #!/usr/bin/env bash
wifi_setup() {
echo -n "$(timestamp) [openHABian] Setting up Wifi (PRi3 or Pine A64)... "
if ! is_pithree && ! is_pizerow && ! is_pine64; then
if [ -n "$INTERACTIVE" ]; then
whiptail --title "Incompatible Hardware Detected" --msgbox "Wifi setup: This option is for the Pi3, Pi0W or the... |
356ec362a71f3c4dc6d9d015ab63775737d5693f | 778 | # !/bin/bash
#create folders that can be unexistent
if ![[ -d "bin" ]]; then
echo "Log: Creating bin folder"
mkdir bin/
fi
#remove old files
echo "Log: Removing old files"
if [[ -f "bin/main" ]]; then
rm bin/main
fi
#compile main
echo "Log: Compiling main file"
if [[ -f "src/main.cpp" ]]; then
g++ -c... |
a9e4f98ff8d3bab8b749bd884403c32a1cac523e | 78 | #!/bin/sh
fix-whitespace --check && make listings && git add index.agda docs
|
758c72b9c137af58904e8dc19209e948f9e7b8ce | 141 | #!/bin/bash
FILE=mysql-workbench-gpl-5.2.38-1ubu1104-amd64.deb
wget -O /tmp/$FILE http://tmp.a-las.net/repo/mint/$FILE
gdebi /tmp/$FILE
|
b81f7e3e58c344139a8da7afdf480cf03408d14e | 202 | python test.py --dataroot ./datasets/nyud --name facades_pix2pix --dataset_mode nyud --loadSize 256 --model test_nyud --which_model_netG unet_256 --which_direction AtoB --dataset_mode nyud --norm batch
|
cc19d76c175882836f3a5a04dce7fbb9256c2355 | 977 | #!/bin/bash
#
# We check here whether 2 arguments where given
if [ $# -ne 2 ]; then
echo "Usage error: $0 <input.pdb> <output.pdb>"
exit
fi
input_pdb=$1
output_pdb=$2
#
if [ ! -f output.pdb ]; then
fix_numb $input_pdb numclean.pdb > ${output_pdb}.clean.log
echo "To replace all non-standards residues by their stan... |
58b736d9322beaf9f1c11a4ca5cf3861d26bb187 | 586 | #!/bin/bash
cd /home/apps/apidb
LIBDIR="lib/"
LIB="./classes"
for i in `ls $LIBDIR`
do
LIB=$LIB:$LIBDIR$i;
echo $i"\n"
done
echo ${LIB}
if [ ! -f app.pid ]
then
~/src/jdk1.8.0_65/bin/java -Xss128m -Xms256m -Xmn128m -Xmx512m -verbose:gc -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9... |
dc073b1565af6e464557f505518d333cc8009dc0 | 169 | #!/data/data/com.termux/files/usr/bin/sh
##
## Wrapper for Smali
##
HEAPSIZE="512M"
exec java -Xmx"${HEAPSIZE}" -jar "${PREFIX}/share/java/exe/smali-2.1.3.jar" "${@}"
|
f7a46fd50dc792b746325c71ce5201508bc15aa1 | 1,286 | #!/bin/sh
echo '******************************************AUTO-DEPLOY.SH STATR*******************************************'
DEPLOY_IP1=172.16.96.73
DEPLOY_IP2=172.16.96.74
function stop_server()
{
expect -c "
spawn ssh root@$1
expect (yes/no)? { send yes\r }
expect *password* { send 123456\r }
expect \"]#\... |
d15057c529bbc0ff077d87525ebd0905393a10d5 | 666 | # Load .bash_custom in .bashrc if it isn't already
grep '.bash_custom' ~/.bashrc > /dev/null
if [ $? -ne 0 ]; then
echo 'source ~/.bash_custom' >> ~/.bashrc
fi
# Copy over all config files
cp files/bash_custom.sh ~/.bash_custom
cp files/.tmux.conf ~/.tmux.conf
cp files/.vimrc ~/.vimrc
cp files/.gitconfig ~/.gitcon... |
d9572d6552b7ae272a2e3574e4f6d6baeae79f2e | 67 | PORT=5000
REACT_APP_GRAPHQL_ENDPOINT="https://api.syos.co/graphql"
|
031d00ee7a56bef638202deae754883e2fc1c473 | 203 | #!/usr/bin/env bash
# https://wiki.gentoo.org/wiki/Elogind
echo "Hint: Set 'WLR_BACKENDS=headless' to launch in headless mode (e.g. for wayvnc)."
exec -a sway dbus-launch --exit-with-session sway "$@"
|
ac86b49f65c4f8cdeff47dcd5496cac2c03e3e64 | 53 | #!/bin/sh
(cd tools/selectors_ast && cargo run "$@") |
24c12906501c292be5d7dfcdcefe69f321ce4d72 | 99 | API_URL=https://localhost:3333
DB_USER=root
DB_PASSWORD=
DB_PORT=3306
DB_HOST=localhost
DB_NAME=fdd |
7629010aee62536c698c00b4af6ee0c1ff83c52c | 15 | ../all-steps.sh |
a1f3ada6ef7995d4dfb9e3727631d1056ba3e3ee | 93 |
cp ./config/test/* ./
./node_modules/.bin/mocha --require ts-node/register ./test/*.spec.ts
|
9aaa599b43cf925f84f23bd37b679acedc16199c | 230 | #!/bin/bash
./glue_baseline_test.sh MRPC 8
./glue_baseline_test.sh RTE 8
./glue_baseline_test.sh STS-B 8
./glue_baseline_test.sh CoLA 8
./glue_baseline_test.sh SST-2 8
./glue_baseline_test.sh QNLI 8
./glue_baseline_test.sh MNLI 8
|
50c8c5b717ef89e7d67a92209d7f5b35a7c415d7 | 152 | #!/bin/bash
i=1
while [ $i == 1 ]; do
i=$(gpio read 4)
done
sleep .01
while [ $i == 0 ]; do
i=$(gpio read 4)
done
#echo "BUTTON HAS BEEN PRESSED"
|
a0c091617a0ca3be828992e9d675072c0c232de7 | 908 | #!/bin/sh
cd `dirname $0` && . ./Configuration
cat - <<EOSQL | ${PG_DBUTILS}/bin/doisql.csh $0
COMMENT ON TABLE mgd.GO_Tracking IS 'A record in this table represents the GO Tracking history for a specific Gene (_Marker_key).';
COMMENT ON COLUMN GO_Tracking._CompletedBy_key IS 'user who completed the record';
COMME... |
ee1fbd6240b233cd75345a70d8b9ebb4618ea89f | 129 | #!/bin/bash
rm -rf output
npm run build
# rsync -avc --delete output/ rijx:/var/www/blog/
rsync -avc output/ rijx:/var/www/html/
|
bff80de37e6a945417426700b279786ba80f0349 | 248 | #! /bin/sh
echo "Number of supplied arguments (\$#): $#"
echo "List of provided arguments (\$@): $@"
echo "List of provided arguments (\$*): $*"
for var in pattern, before, after, file; do
var=$1
echo "== $var =="
shift
done
|
6a8b9e7550f6055666e3a5e7c4e68cbbec5019a4 | 579 | task:init() {
task:install
npm init
}
task:install() {
set -e
# install test suit
bake dev mocha istanbul should
# install lint suit
bake dev lint-staged pre-commit
}
# Install node package
task:i() {
npm i $@
}
# Install dev dependency
task:dev() {
npm i --save-dev $@
}
task:te... |
c68743cc098727e2d8320a252bb383a22dad28ea | 271 | #!/usr/bin/env bash
cf delete webtrader-kyle -f
cf delete portfolio-kyle -f
cf delete accounts-kyle -f
cf delete quotes-kyle -f
cf delete-service trader-db -f
cf delete-service trader-registry -f
cf delete-service config-server -f
cf delete-service trader-dashboard -f
|
f9ea6b98debda024dec6b5278becbff3ec7955a2 | 382 | echo "Welcome to Contact form exercise!"
echo "This program will install all of the dependencies for your local development"
echo "First composer install"
composer install
echo "composer install finished"
echo "yarn install"
yarn
echo "installation complete"
echo "you can now enjoy coding and developing by runn... |
83ca9b344a9e2fc42648745481b6c8fb212e3862 | 77 | #! /bin/sh
docker run --rm -v $(pwd):/app:rw composer:latest composer update
|
dd69749e5b3f6f7aef7d50fa508c4936eb3d9184 | 340 | #!/bin/sh
EXPECTED_SIGNATURE=$(curl --silent --show-error https://composer.github.io/installer.sig)
ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', '/var/www/html/composer-setup.php');")
if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ]
then
>&2 echo 'ERROR: Invalid installer signature'
rm composer-setu... |
c8a0dbeadce6089f89084ea50305737b14f695c1 | 586 | #!/bin/sh
function hasFile() {
local result="false"
if [[ "${1}" && -e "${1}" ]]; then
result="true"
fi
echo "$result"
}
function hasDir() {
local result="false"
if [[ "${1}" ]]; then
if [ -d "${1}" ]; then
result="true"
fi
fi
echo "$result"
}
function getFiles() {
local dir_or_file... |
ecc2c8894714044985f97b72f1753f677544d503 | 226 | #!/usr/bin/env bash
echo "Updating local environment..."
if [ "$(uname)" = "Darwin" ]; then
brew update && brew upgrade
else
sudo apt-get update && sudo apt-get upgrade
fi
echo "Finished updating local environment"
|
be2687ede4997e111f7badc8dbf3926d34e7ab75 | 745 | #
# Author: Espe
#
# Setting up Fiware Repo
sudo cp /vagrant/repos/fiware.repo /etc/yum.repos.d
# Install contextBroker
sudo yum -y install contextBroker
# Change BROKER_DATABASE_HOST
sed -c -i "s/\(BROKER_DATABASE_HOST *= *\).*/\1172.28.33.10/" /etc/sysconfig/contextBroker
# Start contextBroker
sudo service contex... |
03ba1e38c4d3b999091278b7f19df62fd265b299 | 1,435 | #!/bin/bash
if [ "$1" == "master" ]
then
BRANCH="master"
else
if [ "$1" == "test" ]
then
BRANCH="test"
else
if [ "$1" == "www" ]
then
BRANCH="www"
else
BRANCH="0"
fi
fi
fi
if [ "$BRANCH" == "0" ]
then
echo -e "Branch to deploy: \... |
d2f807454365b866eeb6adef9507a62b501f5fb4 | 4,847 | #!/bin/sh
# Copyright (C) 2011-2013 The CyanogenMod Project
#
# 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 applica... |
dfc34445eb9f3fb1a3d76b16844b77b0af90303d | 915 | # Copyright 2014 Midokura SARL
#
# 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 applicable law or agreed to in writing... |
58358f9d4d7d4ed349b2b19a297b8c67e7917880 | 1,180 | #!/bin/bash
OPTIND=1
input_file=""
input_dir=""
retailer=""
while getopts "d:f:r:" opt; do
case "$opt" in
d)
input_dir=$OPTARG
;;
f) input_file=$OPTARG
;;
r) retailer=$OPTARG
;;
esac
done
shift $((OPTIND-1))
parse_file()
{
>&2 echo "parsing $1, $2"
... |
eaa2d9397b88e7bd1f3b3228e20ca5d56926ed93 | 2,116 | #!/bin/bash
ln -fs ~/codez/dot-files/dot_ackrc/ackrc ~/.ackrc
ln -fs ~/codez/dot-files/dot_agignore/agignore ~/.agignore
ln -fs ~/codez/dot-files/dot_asdfrc/asdfrc ~/.asdfrc
ln -fs ~/codez/dot-files/dot_bash_profile/bash_profile ~/.bash_profile
ln -fs ~/codez/dot-files/dot_bashrc/bashrc ~/.bashrc
ln -fs ~/codez/dot-fi... |
9160e9cdbd965beaac6191e79833fafb5d2f7d75 | 317 | #!/bin/bash
# Load configuration file
source ../src/nanocloud/scripts/configuration.sh
if [ ${#} -lt 1 ]; then
echo "Not enough arguments"
exit 1
fi
COMMAND=${1}
SSH=$(which ssh)
sshpass -p "${PASSWORD}" "${SSH}" -o StrictHostKeyChecking=no -p "${PORT}" "${USER}@${SERVER}" "${COMMAND}"
|
6d326ca75e68af5b8ec81b4d1a8791c481f35419 | 1,896 | #Downloading T. brucei genome
wget https://tritrypdb.org/common/downloads/release-43/TbruceiTREU927/fasta/data/TriTrypDB-43_TbruceiTREU927_Genome.fasta \
-P ../../data/scratch/tbrucei/
#Downloading the GFF file
wget https://tritrypdb.org/common/downloads/release-43/TbruceiTREU927/gff/data/TriTrypDB-43_TbruceiTREU927.... |
ee580268fbb8c71c2500f13bd80091cb1049cc4f | 176 | npm install --save mocha 2>&1 | tee npm-install-mocha.out
npm install --save chai 2>&1 | tee npm-install-chai.out
npm install --save request 2>&1 | tee npm-install-request.out
|
20002e24b129905911c8ff2679f2cf55d3aa5c37 | 622 | # paths
export PATH=$PATH:/usr/local/mysql/bin
export PATH=$PATH:/usr/local/git/bin
export PATH=$PATH:/Library/Tcl/bin
export PATH=$PATH:~/bin
export PATH=/opt/ruby-enterprise-1.8.6-20090421:$PATH
export MANPATH=$MANPATH:/usr/local/git/man
export MAGICK_HOME=/usr/local/ImageMagick-6.5.1-6
export DYLD_LIBRARY_PATH="$MAG... |
a1e8106b57711683e871d2009b95b03990a810a1 | 534 | # description: Your Twilio phone number for sending and receiving messages
# format: phone_number
# required: true
TWILIO_PHONE_NUMBER=
# description: Set a password for your app. Users who want to configure the app or view who messaged in, will need this password.
# format: secret
# required: true
ADMIN_PASSWORD=
# ... |
6c94d9dcafc17a16b1c205b8f9ab13c42fefb42b | 494 | #! /bin/bash
if [ "$1" == -help ]; then
log profile-proxy.sh [duration] [connections]
exit 0
fi
source $GOPATH/src/github.com/zalando/skipper/skptesting/benchmark.inc
trap cleanup SIGINT
log [generating content]
lorem
log [content generated]
log; log [starting servers]
# ngx nginx-static.conf
skp :9980 static.es... |
aa2a3925f34fb58346caee1f4b4347f22d148e9a | 384 | #!/bin/bash
YEAR="2010"
MONTH="03"
for d in {24..31}
do
DAY="$YEAR-$MONTH-$d"
. crop_webcam_image_left.sh
. crop_webcam_image_right.sh
done
MONTH="04"
for d in {01..30}
do
DAY="$YEAR-$MONTH-$d"
. crop_webcam_image_left.sh
. crop_webcam_image_right.sh
done
MONTH="05"
for d in {01..21}
do
DAY="$YEAR-$MONTH-$d"... |
892c9f96c3fa1aaf30f69dd20e5ae7de95eb9ba0 | 1,783 | #!/usr/bin/env bash
# Copyright 2017 Google LLC All Rights Reserved.
#
# 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.