blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
e312431a8fa2c8c87fac2505597513a58db33ba4 | 2,328 | #!/bin/bash
# Run parts of Kaldi scripts for preprocessing of MS-State data
dir=data/silver_wd/
rm -f $dir/ms_words
cat data/silver_transcript/switchboard_corrected_with_silver_reannotation.tsv | awk -F '\t' '{print $4}' | sed 's/\.trans//g' | uniq | grep -v "file" | while read line
do
number=`echo $line | sed ... |
445f280a75dd0db1ba4cac53761290c8f429290b | 113 | #!/bin/bash
# 5 measurement/warmup iterations single fork
java -jar target/benchmarks.jar ".*" -wi 20 -i 10 -f 1
|
d4348971e140e617698fba152626103170cda3c5 | 150 | #! /bin/sh
# Test ex20b
NAME=ex20b
DB=iso.dat
: ${PHREEQC=phreeqc}
${PHREEQC} $DATADIR/$NAME $NAME.out $DBDIR/$DB $NAME.log
result=$?
exit $result
|
5d1085aa501391160f98201a9329ebabb89b6a6f | 315 | #!/bin/bash
# Normal cron ENV has a very limited PATH
source ~/.exports
brew update > /dev/null
# check if we have outdated formulas
outdated_stuff="$(brew outdated)"
if [ -n "$outdated_stuff" ]; then
osascript -e "display notification \"Outdated stuff:\n $outdated_stuff\" with title \"Upgrade your kegs\""
fi |
07a5ef6034ff68cd188f6064b2b62ad2b75c9898 | 3,162 | #!/bin/bash -ex
if [ "${VIRTUAL_ENV}" == "" ]; then
echo "Must be in a virtualenv"
exit 1
fi
TMP_INSTALL=$VIRTUAL_ENV/tmp-install-mp3splt
mkdir -p $TMP_INSTALL
cp -v patched-libmad-0.15.1b-configure $TMP_INSTALL/
cd $TMP_INSTALL
LIBDIR=${VIRTUAL_ENV}/lib
export LD_LIBRARY_PATH=${LIBDIR}
export LDFLAGS=-L${LI... |
fe2317eacebfb62b07f6194399550aa15f84756d | 829 | docker build -t nimcurry/multi-client:latest -t nimcurry/multi-client:$SHA -f ./client/Dockerfile ./client
docker build -t nimcurry/multi-server:latest -t nimcurry/multi-server:$SHA -f ./server/Dockerfile ./server
docker build -t nimcurry/multi-worker:latest -t nimcurry/multi-worker:$SHA -f ./worker/Dockerfile ./worker... |
0497a003f79665af51c734f6c19c5465f33188f5 | 64 | #!/bin/sh
set -e
exec /usr/sbin/incrond -f /etc/incron.conf -n
|
c2e851fdb6d4f11c45ec1df83aa4e7a8a6118cc6 | 639 | clang -arch x86_64 -shared -fPIC -o ../../release/gmCryptor-c-libs/gmCryptor-c-darwin-x64.dylib gmCryptor-clib.cc libcrypto-darwin-x64.a -I ./include &&
clang -arch arm64 -shared -fPIC -o ../../release/gmCryptor-c-libs/gmCryptor-c-darwin-arm64.dylib gmCryptor-clib.cc libcrypto-darwin-arm64.a -I ./include &&
x86_64-unkn... |
b29dd2a59823bf4b7eb8572c637df7658f0d7359 | 411 | APP_ENV=local
APP_DEBUG=true
APP_KEY=2STvfSVPAU4iALcHZdRzCihVFVd3AS4v
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_DATABASE=doctor_info
DB_USERNAME=root
DB_PASSWORD=
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MA... |
64636fb1d5a1c306572c68dad52a5b3aa786486c | 64 | #!/bin/sh
ansible-playbook -i inventory -k -v acp-validate.yml
|
3420c17cb4212c8fecdb738baf94f5824826bdf0 | 5,457 | #!/bin/bash -x
env
getprivateip ()
{
DESCRIPTION=$(ec2-api-tools/bin/ec2-describe-instances ${INSTANCE})
PRIVATEIP=$(echo "$DESCRIPTION" | sed -n -e '/^PRIVATEIPADDRESS/p' | awk '{print $2}')
}
getstate ()
{
DESCRIPTION=$(ec2-api-tools/bin/ec2-describe-instances ${INSTANCE})
STATE=$(echo "$DESCRIPTION" | sed... |
bf6210dbb920210b3376e1e01f67a007f34e1d5c | 170 | #!/bin/sh
source /etc/mlab/slice-functions
cd $SLICEHOME
# NOTE: oonib drops privilges if UID/GID are set in oonib.conf
$SLICEHOME/bin/oonib -c $SLICEHOME/oonib.conf &
|
0ac64ebdb5e0906a7caf1fcf3b39154181bf445e | 113 | echo Starting game
echo Dont forget to run install.sh
echo If this dosent work use start1.sh
python ./bin/game.py |
b2643c17de3ad4a26722e90b862ad7604edaf6c3 | 104 | AWS_USER="Access Key"
AWS_KEY_ID="abracadabra"
AWS_SECRET_KEY="alakazam"
AWS_BUCKET_NAME="bucketbucket"
|
7688e7b1a8fb83dda94f75b23758c1d84417c981 | 1,830 | #!/bin/bash
#
# Region based spatial normalization
# Hengda He
#
Sub=$1
Outdir=$2
Subdir=$3
i=$4 # region number
#Sub=P00000001
#Outdir=/share/projects/razlighi_lab/users/hengda/RDIR_LM/Workspace_${Sub}
#Subdir=/share/projects/razlighi_lab/users/hengda/RDIR_LM/subjects_FS
SUBJECTS_DIR=${Subdir}
name=$(printf "%03... |
4ded405167547943b5649350d74ce20e5398c62e | 27 | secret = '$rf7&89jmn4528kl' |
c40cbb2aa4de071157314266f3c4d801defb548c | 568 | #!/bin/bash
# Henry (chocolatkey) 2017-08-06
if [ $# -eq 0 ]
then
echo "YDB updater"
echo "Please provide ARGUMENT for additional DB file name"
else
python3.6 /home/media/manga/yrip.py -c true -f true -d true -a "$@"-cron.json -r 801000-820000
sudo chmod 0777 /home/media/manga/db.json
sudo cp -R /... |
3fa9694322d9b2c73906fda5988cb61dcfd79370 | 653 | #!/bin/bash
function checkOk(){
flag=1
if [ 0 -eq $1 ]; then
str=$2
len=`echo $str|wc -L`
if [ 1023 -le $len ]; then
str=$3
len=`echo $str|wc -L`
st=`echo $str|grep "中文"`
if [ "" != "$st" ]; then
len=`expr $len + 2`
fi
#echo "len:$len"
st=`echo $2|grep $str`
if [ 1023 -ne $len ] || [... |
a32b5bca7bd9752cbbae6878fa798edbba76329d | 707 | #!/usr/bin/env bash
set -e
#Inputs
version=`cat dev-version-semver/number`
#Outputs
mkdir -p ${pwd}/candidate
# Create OCI config
echo "Creating oci config..."
OCI_DIR="$HOME/.oci"
OCI_API_KEY="$OCI_DIR/oci_api_key.pem"
OCI_CONFIG="$OCI_DIR/config"
mkdir -p ${OCI_DIR}
cat > ${OCI_API_KEY} <<EOF
${oracle_apikey}
EO... |
41091b6a19b8a8e3c01cccd486f2a321173b9cf6 | 840 | #!/bin/bash
set -e
find_opts=(
\(
-type l -or
-type f
\)
-and
\(
-name '*.opus' -or
-name '*.webm' -or
-name '*.m4a' -or
-name '*.ogg'
\)
)
fzf_opts=(
--multi
--cycle
--reverse
--bind 'alt-a:select-all,alt-d:deselect-all'
)
mpv_statusline='\e[0;33m${time-pos}\e[0m'
mpv_stat... |
9637e5cb1a3e4e25cef25a4f046de65bf8018a6e | 233 | #!/bin/bash
mycat=`/usr/local/mycat/bin/mycat status | grep 'not running' | wc -l`
if [ "$mycat" = "0" ];
then
/bin/echo -e "HTTP/1.1 200 OK\r\n"
exit 0
else
/bin/echo -e "HTTP/1.1 503 Service Unavailable\r\n"a
exit 1
fi |
6c670e3a540430c269e6084adc613a2dbe01f291 | 385 | #!/bin/bash
keystoreName="/home/angeloacr/Proyectos/DoctorApp/keystores/weekdocusers.keystore"
path="./platforms/android/app/build/outputs/apk/release/"
appName1=app-release-unsigned.apk
appName2=weekdocusers.apk
alias=weekdocusers
cd $path
rm $appName2
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ... |
a734c09581ee88ccca8b687bcdaad6f5a275192e | 158 | NODE_ENV=local
GRAPHQL_URL_CLIENT_SIDE=http://localhost:8000/graphql/
GRAPHQL_URL_SERVER_SIDE=http://backend:8000/graphql/
APP_NAME=Travel Expense Manager
|
fe412729c7a667530a4cdd1c8dfc33a8c6fcad9c | 251 | #!/usr/bin/env bash
# Make a copy of this file, add it to your git ignore and use that for testing do not ever add credentials here
# Do not commit
terraform plan
#terraform output
echo "yes" | terraform apply
#echo "yes" | terraform destroy
|
cbb52c912c5875f38dfdd69526a1703689b0716c | 79 | #!/bin/sh
dir=$(cd $(dirname $0); pwd)
cp $dir/git-authors $HOME/.git-authors |
9908ae4233b27e99a86597f4f203ebcfe787058e | 45 | #!/bin/zsh
racket -I r5rs -f "project3.scm"
|
175995359cd11830662bf38243ebcb32bbd81af2 | 3,957 | #!/bin/bash
URL="http://192.168.2.136/software/release/deepvideo_release/"
URL_CONFIG="http://192.168.2.136/software/release/deepvideo_release/config"
SHELL_DIR="$(cd $(dirname $0); pwd)"
SHELL_LOG="${SHELL_DIR}/logs/cd.log"
DEEP_DIR="${SHELL_DIR}/deep"
TEST_URL="http://127.0.0.1:8050"
function logging(){
if [... |
015d2b2b1484e05c8433e712e9efd40f0f52d132 | 395 | #!/bin/sh
ENV=$1
ENV_FILE=.env.$ENV
DBNAME=mci-$ENV
cat <<EOF >> $ENV
MCI_PUBLIC_KEY=X
MCI_PRIVATE_KEY=X
DATABASE_URL=DATABASE_URL=postgres:///$DBNAME?sslmode=disable
MAILER_FROM=noreply@example.com
MAILER_SUBJECT="MCI: Your Releases This Week"
MAILGUN_API_KEY=X
MAILGUN_DOMAIN=example.com
MAILGUN_URL=https://api.mail... |
d032be3f109c5efe5537c55737975756d51f919c | 163 | # You should install the packages in the activated Conda environment
pip install -r requirements.txt
# Change CUDA
rm ~/.cuda
ln -s /usr/local/cuda-10.0/ ~/.cuda
|
186905e84d5a74da012cc241d2d2e12f88207e0a | 344 | #!/bin/sh
case $1 in
server)
if [ "$2"x = ""x ]; then
ssserver -c /etc/shadowsocks/server.js
else
ssserver -c $2
fi
;;
client)
if [ "$2"x = ""x ]; then
sslocal -c /etc/shadowsocks/007.js
else
sslocal -c $2
... |
33adf777d0df62c798f03dfd562bccd16c9d7afd | 1,081 | #!/bin/sh
if [ "$#" -lt 2 ]; then
echo 'usage: cache [-q] <seconds> <command>'
return 1
fi
if [ "$1" = "-q" ]; then
shift
else
echo 'WARNING: this utility only caches stdout of successful commands' >&2
fi
uid=$(id -u)
cachedir="${XDG_RUNTIME_DIR:-/run/user}"
[ "$cachedir" = "/run/user" ] && cachedir="${cachedir... |
2c49cd076b2c6f412a69a6029fa3d5507b3eff9e | 388 | #!/bin/bash
git pull
cd ../hip-loot
git pull
cd ../hip-loot-create
wget --output-file="logs.csv" "https://docs.google.com/spreadsheets/d/1nzvrh5GzZoReQNvHqeA0ExIgfYsCS7437XNpexbIGiQ/export?format=tsv&gid=356540164" -O "2content.tsv"
cat *.tsv > loot_table.lua
cp loot_table.lua ./HIP_Loot_Priority/
#zip -r HIP_Loot_Prio... |
ae5f941932c6573e89393e37a8226a737d506105 | 2,380 | TICK="[\e[32m ✔ \e[0m]"
PIHOLE_LOCATION="/etc/pihole"
GRAVITY_UNDO_BLACKLIST="pihole -b -d"
GRAVITY_UNDO_REGEX="pihole --regex -d"
GRAVITY_UNDO_WILD="pihole --wild -d"
GRAVITY_UNDO_WHITELIST="pihole -w -d"
GRAVITY_UNDO_WHITE_REGEX="pihole --white-regex -d"
GRAVITY_UNDO_WHITE_WILD="pihole --white-wild -d"
#script wild... |
3eedf5c92fd56b2d84d4799c5f35f14bb3e1282a | 1,280 | #!/usr/bin/env bash
ROOT=$(cd "$(dirname "$0")/../" && pwd)
"$ROOT/author/validate-account.sh" || exit 2
set -ue
for ZIP in $(find "$ROOT"/.perl-layer/dist -name perl-\*-runtime.zip | sort -r); do
NAME=$(basename "$ZIP" .zip)
PERLVERION=$(echo "$NAME" | cut -d- -f2,3 | sed -e 's/-/./')
STACK="${PERLVERI... |
d8a19538b4d32199b567ad91d401fb271f3ff3bd | 196 | #!/bin/bash
JSHEN_DIR="$HOME/jshen/src"
for f in $(find $JSHEN_DIR -maxdepth 1 -name '*.bash' && find $JSHEN_DIR -mindepth 2 -name '*.bash'); do
source $f;
echo -n '.'
done
echo " Done."
|
b1891f3b2cbb40640c7c5e65e1b90d97ec24fef7 | 167 | #!/bin/bash
if (( $# != 1)); then
echo "Missing artworkID arg"
exit
fi
curl --cookie cookieJar http://palette-dev.pacegallery.com/palette/artwork/$1
|
4d5f4d849857841e2631203b3838cf6a88de5fcc | 70 | #!/bin/bash
cd /home/pi/code/pi_photo_frame
python pi_photo_frame.py
|
931b63b802ecfc3509caa9435d9ef58f55e5233f | 1,752 | set -e
# Apply env vars
sed -i "s/QUIZZICAL_DB_USERNAME/${QUIZZICAL_DB_USERNAME}/g" load/org.amdatu.jpa.datasourcefactory-jta-gauntlet.cfg
sed -i "s/QUIZZICAL_DB_PASS/${QUIZZICAL_DB_PASS}/g" load/org.amdatu.jpa.datasourcefactory-jta-gauntlet.cfg
sed -i "s/QUIZZICAL_DB_HOST/${QUIZZICAL_DB_HOST}/g" load/org.amdatu.jpa.d... |
ea5d54cd43c21333c4025341523ab0298bb52064 | 92 | # Define variables here
PORT=3000
DATAFILE=shakespeare_6.0.modif.json
SOLD_BARRIER_MAX=300 |
c854a70fe76eb932ad9918c51a59b3eae88a7fe7 | 119 | #!/bin/bash
#defaults delete com.apple.dock autohide
defaults delete com.apple.dock autohide-time-modifier
killall Dock |
48380498342ab7d2c3b84ae86a1c4462392635ec | 259 | #!/usr/bin/env bash
mkdir results_cass_scan
for ((t=20; t<=70; t+=5))
do
python3 cassandraclient.py $t
mv cass_read_latency.txt 'results_cass_scan/cass_read_latency_'$t.txt
done
echo 'Collection is OK'
zip -r results_cass_scan.zip results_cass_scan
|
ae031187424a634df5871a76c72dff42fa8680e7 | 146 | #!/bin/bash
fname=sbank.bin
if [ $1 == "-c" ]; then
fname=dbank.bin
shift
fi
echo $fname
dfu-util -a1 -s 0x1FFF7800:8 -D $(dirname $0)/$fname $@
|
26eb4c6d8aa02e33ec3b8184334941a798836758 | 431 | #! /bin/sh
#
# Use wrapper to work around Dell iDRAC keycode mangling
HACK=$HOME/local/lib/keycode-hack.so
# check for existence of icedtea-web
JAVAWS=$(which javaws)
if test -z "${JAVAWS}" ; then
JAVAWS=$(which javaws.itweb)
if test -z "${JAVAWS}" ; then
echo "ERROR: cannot find a suitable javaws" 1>&2
fi
fi
i... |
dcc1795ad18a3c9d91ba3dade8c73b6b18dd93f8 | 7,870 | #! /bin/sh /usr/share/dpatch/dpatch-run
## 12_check_snmp_1.4.15_regression.dpatch by
## Thomas Guyot-Sionnest <dermoth@aei.ca>
##
## Original patch to make Timeticks works as in check_snmp v1.4.14, it turns
## out is_numeric isn't so useful and treating all types as numeric works
## best for backwards-compatibility. Th... |
dc6f9e7fddf43653d28fb4472134a60fb92a6448 | 404 | #!/bin/sh
#
# History
#
# 10/28/2020 lec
# - TR13349/Genome Build 39 project
#
cd `dirname $0` && . ./Configuration
cat - <<EOSQL | ${PG_DBUTILS}/bin/doisql.csh $0
CREATE SEQUENCE mld_assay_types_seq;
ALTER TABLE MLD_Assay_Types ALTER _assay_type_key SET DEFAULT NEXTVAL('mld_assay_types_seq');
select setval... |
c5215c4fbde65aa95e431861e48bf01c8223e94f | 717 | #!/usr/bin/env bash
# Note: This won't do anything if we are already deployed
echo "Initializing Deployment and Service"
minikube kubectl -- apply -f ~/HelloWorld/.circleci/files/service.yml
minikube kubectl -- apply -f /tmp/modified_deployment.yml
echo "Rolling update!"
minikube kubectl -- rollout restart deployment... |
e52af45fdcc267def28cf16b9b8017d8f2809e3d | 717 | #!/bin/sh /etc/rc.common
#
# Load Zipit Z2 Alsa settings
#
START=97
start() {
#/usr/sbin/alsactl restore -f /etc/alsa/asound.state
/usr/bin/amixer sset "Headphones Playback ZC" on
/usr/bin/amixer sset "Speaker Playback ZC" on
/usr/bin/amixer sset "Right Speaker Playback Invert" on
/usr/bin/amixer sset "Playback ... |
9c6fe683563e22d738f896c1c8743655ed9f0cf6 | 3,191 | #!/usr/bin/env bats
load "./../lib/helper"
@test "[CLAIR] Setup" {
info
setup(){
docker pull ubuntu:16.04
docker login harbor.${EXTERNAL_DNS} -u admin -p Harbor12345
}
run setup
[ "$status" -eq 0 ]
}
@test "[CLAIR] Deploy insecure image" {
info
deploy(){
docker tag... |
3a5ac4e614c247e6d4f77d0120fd4793302f129c | 3,158 | #!/bin/bash
# Setup a fresh install of Debian - Must be run as root
if (( $# != 0 )); then
echo "Illegal number of parameters"
fi
# Trap SIGINT
trap ctrl_c INT
function ctrl_c() {
echo "Script interrupted."
}
echo "---- Fresh install setup for Debian ----"
if [ $(id -u) -eq 0 ]; then
# Select options f... |
b4f336c8b8e782f8d1deddf153056cf2a5a789dc | 64 | #!/bin/bash
NAME="pm2-gotwitter"
docker exec -it $NAME pm2 "$@"
|
f97d53a123a22188f895cb46dfbc340bb4691a9c | 44 | rm a.out
g++ *.cpp -lpthread -O3 -std=c++11
|
734f140176295bf3b50c05088b2f50d76abc425c | 1,288 | #!/bin/bash
# Summarize pairwise diversity for various partitions of SNPs in the genomic
# prediction experiment. This will use the imputed SNPs.
# Set paths
BASE="/Volumes/LaCie/Genomic_Prediction/Summary_Stats/"
VCF="/Volumes/LaCie/Genomic_Prediction/Summary_Stats/AllChr_AlphaPeel_VCF.vcf"
PARTITIONS="/Users/tomkono... |
3d6ea293a88ed8e1f4437f93f7c39ab4e4fbac3d | 487 | #!/bin/bash
DIR=~/benchmark/idle
sed -i '/idle-test\.sh/d' ~/.bashrc
sudo mkdir -p $DIR
sudo chown -R pi:pi $DIR
cd $DIR && rm -f *.out tmp-* || exit 2
echo "Beginning benchmark: idle DIR=$DIR" | tee device.out
touch $DIR/in-progress
while [ -f $DIR/in-progress ]; do
echo -e "\n$(date '+%Y%m%d-%R:%S')" | tee -a ... |
142e6311bd7ca2f507c5fcc2c4ef0a698b329aac | 314 | docker run --privileged=true --rm -it \
-v $(pwd)/script/:/home/Service/script \
-v $(pwd)/package.json:/home/Service/package.json \
-v /home/administrator/Documents/node_modules:/home/Service/node_modules \
-v /infinityfs1:/ext_file_root \
--add-host hive.sobey.com:172.16.168.205 \
-P my-cmserver-autotest-app
|
fe1719f6c545f93e3d7216bc7d04f3cd5e80cc76 | 566 | #!/bin/bash
export HOME=/root
export LC_ALL=C
# zmiana repozytoriow
echo "Kopiowanie sources.list"
cp /etc/apt/sources.list /etc/apt/sources.list_bak
#nowe repa
echo "Kopiowanie nowego sources.list"
cp /root/etc/apt/sources.list /etc/apt/sources.list
apt-get update
# dociagniece brakujacych kluczy
echo 'Prosze cze... |
3af75e11c23306b5227c9030c154077d37b3144f | 580 | #!/usr/bin/env bash
set -e
readonly THIS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly THIS_FILE="$THIS_DIR/$(basename "${BASH_SOURCE[0]}")"
artifactsDir="$THIS_DIR/artifacts"
if [ -d artifactsDir ]; then
rm -R artifactsDir
fi
build_number=${TRAVIS_BUILD_NUMBER:=1}
dotnet restore --verbosity norm... |
fae3b301ed7bff16150801d5a993a3dd6f834da6 | 970 | #!/bin/bash
source image_info.txt
ARCH=`uname -m`
# Override version (e.g. pour utiliser x86_64_...)
# VERSION=x86_64_1.29.3
IMAGE_DOCKER=$REPO/${NAME}:${ARCH}_${VERSION}
echo Image docker : $IMAGE_DOCKER
# MQ
export HOST=mg-dev4.maple.maceroc.com
export HOST_MQ=mg-dev4
CERT_FOLDER=/home/mathieu/mgdev/certs
export... |
bcafcf95935a9e2c455a1cea786c429896e61e9a | 775 | #!/bin/bash
DIR="/var/www/html/$NOME_PROJETO/"
if [ "$(ls -A $DIR)" ]; then
if [! "$(ls -A $DIR/vendor/)" ]; then
printf "\t#########################\n\t### Vendor não existe ###\n\t#########################\n\n Para baixar dependencias execute: docker run --rm -it -v $NOME_PROJETO:/app composer install ... |
803f77dd31474d8e1486231e917562cd3cfea136 | 868 | #!/bin/bash
#
# Usage: pub-bms-data.sh bms-data.csv
#
# Supported csv format is: 34334,M_300510,60Min_W-PDU-I5E-B2 電力 計測,2020/06/01 00:00:00,29.2000007629395,kW
#
sendInterval=60
while read line
do
json=$(echo $line | tr -d "\r" | jq -R 'split(",") |
{
"id": .[0],
"mid": .[1],
"name": .[2],
... |
c380f53f7668c8027377382456cb67591f3b75ca | 63 | FLASK_ENV=
SECRET_KEY=
API_KEY=
API_URL=https://favqs.com/api/
|
732bedd233dbe6690285414989a7b2a7799838bb | 1,354 | #!/usr/bin/env bash
# Test multiple CW in text file for scrambler plugin.
source $(dirname $0)/../common/testrc.sh
test_cleanup "$SCRIPT.*"
test_tsp \
-I file $(fpath "$INDIR/$SCRIPT.ts") \
-P scrambler 0x0204 --atis-idsa --cw-file $(fpath "$INDIR/$SCRIPT.cw.txt") --cp-duration 3 \
-P analyze -o $(fpath "... |
34714b92bc85665876d5f9461aea6488c1a34d06 | 101 |
cd tf_ops
cd 3d_interpolation
make clean
cd ..
cd grouping
make clean
cd ..
cd sampling
make clean
|
7693fc2a0f4cf262cae77b79d53a40f6a1579c07 | 665 | # HW2: solves puzzle 1-4 via A* GS
# default arguments
algorithm="astar_gs"
puzzles="puzzles/puzzle1.txt puzzles/puzzle2.txt puzzles/puzzle3.txt puzzles/puzzle4.txt"
# command line arg overrides
if [ -n "$1" ]; then
algorithm="$1"
fi
if [ -n "$2" ]; then
puzzles="${@:2}"
fi
echo "Algorithm: $algorithm"
echo... |
ecc4224a06df9f4ed35009d7ba5778076f19ad60 | 176 | #!/bin/bash
clang++ -std=c++11 -pthread $1 parallelVectorGeneration.cpp -o parallelVectorGeneration
clang++ -std=c++11 $1 serialVectorGeneration.cpp -o serialVectorGeneration
|
6e5e07e4edcd485557978c1b69abea79655abf7f | 73 | #!/bin/sh
if which gmake > /dev/null; then
gmake $*
else
make $*
fi
|
70b7985d8d389fbf9fcae62efa43dac300d47311 | 147 | #!/bin/bash
echo "please input a filename"
read a
if test -e /home/lilybo/shell-learn/$a
then
echo "$a is exist"
else echo "$a is not exist"
fi |
19b48fa40de1e24099be7b6331afc6566784ba97 | 896 | # Find the ARM GCC toolchain directory
locate arm-none-eabi-gcc
# e.g. @ /home/imr/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/
# Location of assembler (as), linker(ld), etc.
/usr/arm-linux-gnueabi/bin
# GDB
# basix @ http://www.thegeekstuff.com/2010/03/debug-c-program-using-gdb/
# 1. Call a... |
e9f0cb62b23fbf82f85f2a5f7b53275829cef052 | 559 | #!/bin/bash
#number of volumes, size of each volume , free space on each volume
echo -e "Filesystems Info:"
df -H | awk '{print $1 "\t" $2 "\t" $3 "\t" $4}'
echo $'\n'
#number of cpus,information about cpus/core
echo -e "CPU info"
cat /proc/cpuinfo | awk '/processor/{c=10} c&&c--'
echo $'\n'
#amount of ram
echo -e... |
b804b9cbdd67165b2cef2b4d7d8a5f5453fc6b58 | 9,051 | #!/system/bin/sh
# Copyright (C) 2015 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 appli... |
cdbe252948b6dac6419e8f0833032ed3cb23d5c4 | 145 | #/bin/bash
rsync -rtavz --delete-excluded --delete-after --force --compress --ignore-errors --rsh='ssh -p 5522' /home/ root@jxt01-www12:/home/
|
722aa949319961fc633bcf969853a12692f30a0a | 583 | #!/bin/bash
set -e
rm -Rf releases
mkdir -p releases
function build {
npm run build -- -k $1
for old in build/datasweet_formula-*; do
new=$(echo $old | sed -E "s/(^build)(\/datasweet_formula-.+)\.zip$/releases\2_kibana-$1.zip/")
mv -v "$old" "$new"
done
}
if [ -n "$1" ]; then
build $1
fi
b... |
f30e949463bc0bce7dc3a613db31b4373eef3bff | 45 | sudo docker build . -t rastislavszabo/server
|
45ae260b27102992bf03838842d5a2778e7d2cee | 59 | #!/bin/bash
HOST=`hostname -i`
./ghost-server ${HOST} 80
|
9f36dbc64c9d71ed59c9c1511b823d9039463ab2 | 1,492 | #!/bin/bash
#
# ===========================================================
# Purpose: This script will create a custom syslog service for firewalld
# Parameters: None
# Example usage: $ bash configure_firewalld_syslog.sh
#
# Privileges: Must be run as root
# Author: Anthony Tellez
#
# Notes: You can change t... |
55b4748e0972d88fd896ee2f4e299527fadc58d9 | 81 | ../stanford_enhancer.sh ../data/enhanced/UD_Latin-UDante/la_udante-ud-dev.conllu
|
2a9308e506dc13ddad6a1383bc7b09ffe19d997c | 296 | #!/bin/sh
if [ -r "VERSION" ] ; then
. ./VERSION
fi
: ${MAJOR:=0} ${MINOR:=0} ${PATCH:=0}
VERSION="$MAJOR.$MINOR.$PATCH"
case $1 in
--major) echo "$MAJOR" ;;
--shell)
echo "MAJOR=\"$MAJOR\""
echo "MINOR=\"$MINOR\""
echo "PATCH=\"$PATCH\""
;;
*) echo "$VERSION" ;;
esac
|
562927c40ee195cdce082a028799b6b484313be7 | 213 | #!/bin/bash
set -e
echo "Get beam"
export PATH=$HOME/mc/bin:$PATH
source activate testenv
export AWS_S3_PROFILE_NAME=ndav_mcvine
aws s3 sync s3://ndav-mcvine/beam/ $HOME/beam/ --profile ${AWS_S3_PROFILE_NAME}
|
c02e13b22f9871fbc5e057663084e0b275f4872f | 187 | gcc -c -Wall -Werror -Wextra ft_putchar.c ft_putstr.c ft_strcmp.c ft_strlen.c ft_swap.c
ar rc libft.a ft_putchar.o ft_putstr.o ft_strcmp.o ft_strlen.o ft_swap.o
rm *.o
ranlib libft.a
|
7593c3a7716528fe149a829fdca52509fca11c4c | 3,810 | qsub -pe localslots 4 -e /dev/null -o /dev/null /net/per610a/export/das11f/plsang/codes/deeptest/overfeat_predict_med_sge.sh 0 975
qsub -pe localslots 4 -e /dev/null -o /dev/null /net/per610a/export/das11f/plsang/codes/deeptest/overfeat_predict_med_sge.sh 975 1950
qsub -pe localslots 4 -e /dev/null -o /dev/null /net/pe... |
c1391bae7ce48b1cc03f26b91c22cc13b0f66c0a | 97 | cd ..
python train.py --param_path param/train/ --param_name cvae_forest_param3.yaml
cd train_exp |
f26a7fa9d5c7f8acdcf507b6e22a36f5babbd627 | 1,912 | #!/usr/bin/env bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
REPOSITORY=tstruczynski/php
VERSIONS=( 7.0 7.1 7.2 7.3 7.4 8.0 8.1)
LATEST=7.4
UPLOAD=0
last_command="";
cleanup() {
rv=$?
if [ "$rv" != "0" ]; then
echo -e "\n\n\"${last_command}\" command failed with exit ... |
9dfa2c9987a6d2851e8f7b511857a408a86a7432 | 277 | #!/bin/bash
# Run all examples in examples directory
set -eu -o pipefail
for file in examples/*.rs; do
name=$(basename ${file//.rs/})
if [[ "$name" == "rustbox" ]]; then
cargo run --features rustbox --example "$name"
else
cargo run --example "$name"
fi
done
|
90cd170d03240db7767c6c0cc5d7baf1169b7187 | 87 | #!/bin/bash
/global/home/users/clairedubin/programs/muscle -in $1 -out $2 -maxiters 2
|
3aeff30033721cd8fb88509051327a777a2eb5e6 | 412 | #!/bin/sh
export CUDA_VISIBLE_DEVICES=1
CHECKPOINT_DIR=../../checkpoints/mask_rcnn_resnet50_1200x1200_iNat_HeavyA_AG
CONFIG_PATH=../../configs/mask-rcnn-new/mask_rcnn_resnet50_1200x1200_iNat_HeavyA_AG.config
CHECKPOINT_STEPS=1950 #5 epochs
python ../../object_detection/model_main.py \
--model_dir "$CHECKPOINT_DI... |
03e687fc4529e350ce909f03b009a47651c73086 | 320 | #!/bin/bash -v
# NN with CCRE with 50r and SubSeq 10
bashl iclm_ncc_50r_200i_4u_subseq10_tulp.sh
bashl iclm_riu_50r_200i_4u_subseq10_tulp.sh
bashl iclm_spss_50r_200i_4u_subseq10_tulp.sh
bashl iclm_ssd_50r_200i_4u_subseq10_tulp.sh
bashl iclm_ssim_50r_200i_4u_subseq10_tulp.sh
bashl iclm_zncc_50r_200i_4u_subseq10_tulp.sh
|
b280be9ad099215d971cd4500c3b2791d638208f | 727 | #!/usr/bin/env bash
set -e
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd ${__dir}
if [ -f "logs/example.log" ]; then
ts=$(date "+%Y%m%d-%H%M%S")
mv -v logs/example.log logs/example-$ts.log
fi
if [ -d "deployments/" ]; then
find deployments/ ! -name 'ee7-ejb-cdi-scopemix-ear.ear' -type f -exec... |
da36a2e22fdb03b127610aa2adc769ca3b46b680 | 1,175 | #!/usr/bin/env bash
ecd () {
run_ecd () {
echo -ne $(pwd)
result="$(ls -al | sed 1d |
fzy -p 'Press esc, or select . to exit program > ' |
sed 's/\x1b\[[0-9;]*m//g' | # remove color control code
awk '{print $NF}')"
if [ "$result" = "." ]; then
... |
0b248956fcb14debd02cc1f68645055d1fab1f93 | 1,250 | #!/bin/bash
# Damon Polioudakis
# 2016-04-21
# Select fastqs for human only capture sites and merge lane 1 and 2 to prepare
# for variant calling
# Suggested script calls:
# qsub -cwd -o logs/Merge_FASTQs_Variant_Calling_QSUB_$(date +%Y%m%d).log -e logs/Merge_FASTQs_Variant_Calling_QSUB_$(date +%Y%m%d).error -S /bin... |
79b6f3be0249a740df56329d426cc3ba7331b259 | 1,232 |
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
## PS1 stuff
#-----------
#?
#PS1='\h:\W \u\$ '
#for git prompt
export GIT_PS1_SHOWDIRTYSTATE=1 # unstaged (*) and staged (+) changes will be shown next to the branch name
export GIT_PS1_SHOWSTASHSTATE=1 # If something is stashed, then a '$' will be shown next to ... |
4c89cd4c02b8ac266b7efd85553c040c0192761c | 126 | gedit ~/.bashrc
# trzeba dodać do pliku aliasy:
# alias ll='ls -alFh'
# alias la='ls -Ah'
# alias l='ls -CFh'
. ~/.bashrc
|
f67047899747973c17c8a6edaf1aa41a9fd59d2f | 278 | #!/usr/bin/env bash
sudo chmod -R 777 www/cache www/templates_c www/export www/xtLogs www/lic www/media www/plugin_cache www/conf/config.php www/xtWizard/logs www/cronjobs
echo "Fertig :-) Die Verzeichnisberechtigung wurden richtig gesetzt http://localhost/ ist jetzt online" |
c60fedd998f9575adeb817277d0377eb07a86a28 | 658 | #!/bin/bash
action=$1
option=$2
args1=$3
args2=$4
args3=$5
[[ -z $GIT_REPOS ]] && GIT_REPOS=${HOME}/.git_repos
case "$action" in
run)
${GIT_REPOS}/${option} $args1 $args2 $args3
;;
clone)
cd ${GIT_REPOS}
git clone $option || {
cd `basename $option`
git ... |
6aeaf73795b462a3142c5d6a916863d568fc0d0a | 792 | #!/bin/bash
test2 () {
filename="serv.txt"
while read -r line
do
serv=$line
echo "$serv"
done < "$filename"
}
serveur () {
PS3='Choix du serveur: '
options=("freppau-lpegf01" "freppau-lpegf02" "freppau-lpegf011" "Quit")
select opt in "${options[@]}"
do
case $opt in
"freppau-lpeg... |
0a2542bfcb92a150db3fcef8d2880f17bf721b7c | 87 | #!/bin/sh
find ./ -iname "*.als" -exec sh -c "gzip -cd {} > {}.xml ; echo "{}" ;" \;
|
5f2dd1ce3f254c62ca33447cc6b5b9b7d826ccf6 | 221 | #!/bin/sh
set -e # exit in case of any error
cd ~/.rcasif
cp ~/.vimrc ~/.vimrc_bk
cat ~/.rcasif/basicrc > ~/.vimrc
echo "My basic RC file is loaded in to ~./.vimrc file"
echo "Previous vimrc is save to ~/.vimrc_bk file"
|
28dd37bfd5eb18b445287758ee378071d57d01b8 | 385 | #!/bin/bash
# docker run -it --rm \
# --gpus 1 \
# -p 3389:3389 \
# -u $(id -u):$(id -g) \
# -e USER=ubuntu \
# -e PASSWD=ubuntu \
# learn-rl-rust
docker run -it --rm \
--gpus 1 \
-p 3389:3389 \
-u $(id -u):$(id -g) \
-e USER=ubuntu \
-e PASSWD=ubuntu \
-v /Users/taku-y/... |
81940bf73f25f7f34c7cbf878b3ac42cf939a434 | 162 | #!/bin/bash
python test.py --dataset_name='SHA' --mode='crop' --nThreads=1 --gpu_ids='0' --batch_size=1 --net_name='csrpersp_crop' --test_model_name='model_path'
|
bf0a723a7befe5c8ed0cc9ec937d150e669fe4b3 | 398 | #!/bin/sh
#reroute stderr to stdout
exec 2>&1
#set user to pi and
#s1000000: set file size to about 1MB and then rotate it
#n5: keep 5 rorated logs
#'!tai64nlocal' run command after archiving file, this will convert timestamps to human redable ones
#prepend '!gzip' to the directory will gzip archived files
exec se... |
df5dda8885f1697a242277cb9240386f92712e07 | 297 | #!/bin/bash
echo maven-project > /tmp/.auth
echo $BUILD_TAG >> /tmp/.auth
echo $PASS >> /tmp/.auth
scp -i ~/.ssh/id_rsa /tmp/.auth ubuntu@172.31.22.209:/tmp/.auth
scp -i ~/.ssh/id_rsa ./jenkins/deploy/publish.sh ubuntu@172.31.22.209:/tmp/publish.sh
ssh ubuntu@172.31.22.209 "/tmp/publish.sh"
|
fe643d1a8b3ecd30528dd68ef55a1f9814d1e2b2 | 75 | #!/bin/sh
find . -mindepth 1 -depth -type d -exec rmdir {} \; 2>/dev/null
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.