blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
c7cd1154aee69f1bb26a08404adf2cd99e0f3ec2 | 271 | echo "Será criado um arquivo texto e escrito alguma coisa dentro dele."
echo "Escreva qualquer coisa para ser colocado no arquivo texto."
read texto
echo $texto > meuTexto.txt
echo "Foi criado um arquivo texto com o nome meuTexto, contendo o que foi escrito."
read
exit
|
7e76a99b48f88062b7adcfe7e50ccf951cc79163 | 346 | #!/usr/bin/env bash
# Author: Aaron Kuehler
# Purpose: Configures the shell
# Add pretty colors
export CLICOLOR=1
# Setup Ruby Version Manager
RVM_CONFIG=$DOFILES_THIRD_PARTY_HOME/rvm
if [ -f $RVM_CONFIG ];
then source $RVM_CONFIG
fi
# Setup Git
GIT_CONFIG=$DOFILES_THIRD_PARTY_HOME/git
if [ -f $GIT_CONFIG ];
... |
e49c158e2a2221496bd8e823259ecf5418c1bbb0 | 933 | #!/bin/bash
SYSROOT=${NDKROOT}/platforms/android-19/arch-arm/
TOOLCHAIN=${NDKROOT}/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
X264=/home/bronze/Documents/android/build/x264/arm
function build_one {
./configure \
--prefix=$PREFIX \
--enable-shared \
--disable-static \
--disable-doc... |
9d0798d3e4c43bbec527caacca5b66068e7e966c | 1,279 | #!/bin/bash
# Ask the user for his Topic name
echo Hello, What is your Topic Name?
read vartopic
#Create Topic
aws sns create-topic --name $vartopic
topic_arn=$(aws sns list-topics | grep $vartopic | cut -d':' -f2,3,4,5,6,7 | sed 's/"//g')
#Create Email Subscription
# Ask the user for his Mail
echo What is your su... |
89439bce5dc4101a2906adac3977f649048fa794 | 1,523 | #!/bin/sh -x
cleanup() {
echo "cleaning up"
pkill -9 dzen2 i3status dbus-daemon redshift
rm -f ~/.Xauthority
}
trap cleanup INT TERM QUIT
export LANG=en_US.UTF-8
export MOZ_USE_XINPUT2=1
SCREEN_WIDTH=`xrandr 2>&1 | grep "Screen 0: minimum" | sed -e 's/.*, current //' -e 's/ x.*//'`
if [ "${SCREEN_WIDTH}" -gt 2000... |
c455a585e17070711c99d8a73a6313f38cd18650 | 21 | git rev-list -5 HEAD
|
6db8045063fcd246e38c9fb5a16e33a3f2dc8f9c | 41 | #!/bin/bash
source "${HOME}/.cargo/env"
|
aa26912039af5c88a20059cde4a67913a672cc6f | 1,968 | #!/bin/bash
#
# Library for uptime robot api
# https://uptimerobot.com/api
# UPTIME_API_KEY=<your-uptime-api-key>
uptime::curl(){
local http_method=$1; shift;
local uptime_method=$1; shift;
local body=$*
if [[ -z ${UPTIME_API_KEY} ]]; then
echo "UPTIME_API_KEY is required but not found."
... |
e8a83caddc235f16d029e472077e3fe68e66e88a | 621 | #!/usr/bin/env bash
if (($# == 0)); then
echo "Usage:"
echo "-s = sample ID"
echo "-m = Mapping directory"
echo "-g = Stringtie GTF"
echo "-o = path for output BAMs"
exit 2
fi
while getopts s:m:g:o: option
do
case "${option}"
in
s) SAMPLEID=${OPTARG};;
... |
88308ac6db139d07c9883696372eeea5564aa07c | 34 | ls
vi index.html
ls
ifconfig
exit
|
5885083fc7f93e2e5ac4be50dfcc9ec2159b8ac7 | 3,411 | #!/bin/bash
## Scrip to create an openvpn server
## Coded by: Kevin Gagne
## Date: 21 Sept 2017
##
VPN_NAME=mastervpn
## Check if there is an argument passed. If so, set the $VPN_NAME variable
if (( $#==1 ))
then
VPN_NAME=$1
echo "VPN_NAME will be $VPN_NAME"
fi
## Check if there is already a config this vpn.
i... |
6a4467d803cea7ea4fb2f2d27f71a2af41740d9f | 45 | # .env.example, commit to repo
SECRET=G4nd@Lf |
697ec944a353bfd4695439fb3f9630b147444b03 | 249 | #!/bin/bash
# aditional data processing commands here.
gnuplot << EOP
datafile = "st2"
set terminal jpeg font arial 10 size 700,550
set output "st.jpg"
set xlabel "Calls"
set ylabel "Fragmentation (%)"
plot datafile using 7 with lines lw 4
EOP
|
d0e76cb49c0e3696168ca63b0f258a29ec15c9c0 | 4,900 | ls
cd ..
ls
cd deploy
ls
ssh-keygen -t rsa -C “deploy@example.com”
sudo nano /home/deploy/.ssh/authorized_keys
exit
cd /etc/php5/fpm/pool.d
sudo nano www.conf
cd
sudo nano /etc/php5/fpm/pool.d/www.conf
ps -ylC php5-fpm --sort:rss
cd /home/deploy/
sudo nano index.php
cd /etc/nginx/
ls
cd conf.d
ls
cd ..
cd nginx.conf
ls... |
26549f008f8a7b9e1864b51ca6c0bc6cc0f0f169 | 8,947 | #!/bin/bash
set -x
# Install uuid used for token generation
apt-get install -y uuid
# Set some curl options so that temporary failures get retried
# More info: https://ec.haxx.se/usingcurl-timeouts.html
CURL_OPTS="-L --retry 100 --retry-delay 0 --connect-timeout 10 --max-time 300"
# Install telegraf to collect stats... |
2c451fef1819cda2d238a4c194b561a0e738139a | 474 | #!/bin/bash
file1="./test_file1"
file2="./test_file2"
#Check if a file already exisit:
if [ -e $file1 ]; then
echo "$file1 already exists"
else
echo "$file1 doesn't exist, please create it"
fi
# -e file exist
# -f is a normal file
# -r file is readable
# -w file is writeable
# -x file is executable
# -d file is a ... |
957848b0eca8390d86b2b1460558dd4a842f069a | 824 | #!/bin/bash
source code/custom-bashrc
cd referenceFiles
rm gencode.v19.annotation.id2name.txt
gtf_id2name gencode.v19.annotation.gtf
rm gencode.v19.annotation.id2name.bed
gtf_2bed gencode.v19.annotation.gtf gencode.v19.annotation.id2name.txt
rm gencode.v19.protein_coding_RNAs.bed
cat gencode.v19.annotation.gtf | gr... |
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 |
16b35d6f50f0c6307235559d7ff01e4aabdb95c4 | 22,880 | #!/bin/sh
# chromium-runtests.sh [testsuite]
# Script to run a respectable subset of Chromium's test suite
# (excepting parts that run the browser itself, and excepting layout tests).
# Run from parent of src directory.
# By default, runs all test suites. If you specify one testsuite
# (e.g. base_unittests), it only r... |
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 /... |
28b8734032b56c327c0576d14dd2b9356ff9d4ea | 167 | #!/bin/bash -x
isPresent=1
randomCheck=$(( RANDOM%2 ));
if [ $isPresent -eq $randomCheck ];
then
echo "Employee not present"
else
echo " not present"
fi
|
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... |
9140565756e5cf781f304693ba82ac406b66f339 | 138 | #!/bin/bash
for file in data/*; do
collection=`expr "$file" : 'data/\(.*\).json'`
mongoimport -d gamersplane -c $collection $file
done
|
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... |
b89f88cd84e504e13d2d2b60f95133d716b84c7c | 536 | #!/bin/bash
F_OR_P=$(php FASTQ_EXPORT_REFER.php $1 $2)
FASTQ_COL=$1_${2%.*}_F
if [ -z $F_OR_P ]
then
php FULL_FASTQ_EXPORT.php $FASTQ_COL > BEFORE_SORT_FASTQ.txt
cat BEFORE_SORT_FASTQ.txt | sort -k1,1 -n | cut -f 2- | tr "\t" "\n" > $2
else
php FASTQ_ID_EXPORT.php $FASTQ_COL > BEFORE_SORT_ID.txt
php SAM_SEQ_QUAL_EXPORT... |
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/
|
55a9715d2e75e6d788e993950606a135f14f1fec | 965 | #!/bin/bash
###############################
#FileName:backupLogTimer.sh
#Function:定时备份日志文件
#Version:0.1
#Authon:xueya
#Date:2014.06.26
###############################
if [[ $# != 1 ]];then
echo "output"
exit -1
fi
#获取当前路径
path=`pwd`/$1
echo "current1 path :${path}"
#循环执行
while true
do
#查看文件夹下的文件
fileLis... |
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... |
086bb7d4183ac40b05d6f41eece372791482d2af | 501 | #!/bin/bash
CONTAINER=$1
echo ":: Container to remove $CONTAINER"
if [ "$(docker ps -qa -f name=^$CONTAINER$)" ]; then
echo ":: Found container - $CONTAINER"
if [ "$(docker ps -q -f name=^$CONTAINER$)" ]; then
echo ":: Stopping running container - $CONTAINER"
docker stop $CONTAINER;
else
echo... |
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}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.