blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
4ce7b9db24dd06e98cd93609a637b9e25861c43c | 101 | #!/bin/sh
java -Dhudson.util.ProcessTree.disable=true -jar /{path}/{to}/jenkins.war --httpPort=9090
|
7327b7cba2b4cc04ab54bec84916c2f455cee91c | 8,451 | #!/bin/bash
#Available partition space script.
Yellow='\e[93m'
Reset=\\e[39m
Magnet='\e[35m'
Red='\e[0;31m'
Green='\e[0;32m'
declare -i sum_available=0
#---------------------------Function-----------------------
Function_calculation_size()
{
Coef1=$1
Coef2=$2
Size_name=$3
available_size=$(bc <<< "scale... |
b3c7269aa3e8d475e172d33c67e429860d4977d3 | 2,512 | #!/bin/bash
if [ "$_EXTERNAL_INSTALL" = "proton" ] && ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor 9ca95e32651d6a50dc787af4dc53fb907f1c4e2b HEAD ) && ( cd "${srcdir}"/"${_winesrcdir}" && ! git merge-base --is-ancestor 53cb28e6d9daa7cbcc190cd02aeaba37c297adc4 HEAD ); then
if ( cd "${srcdir}... |
2308d024892cd07930d4ad0b591d94da187260b9 | 129 | #!/bin/bash
rm -rf config
cp ~/.vim/vundle.vim vundle.vim
cp -R ~/.vim/config config
cp ~/.tmux.conf .
cp ~/.ycm_extra_conf.py .
|
a0ceee3a26c9c2c7cb13c2b416c479f14fbb33ce | 2,088 | #!/usr/bin/env zsh
# -*- coding: utf-8 -*-
# shellcheck shell=bash
# shellcheck source=/dev/null
# shellcheck disable=2178,2128,2206,2034
#? ################# .functions - functions for macOS with zsh ###############
#* copyright (c) 2019 Michael Treanor ----- MIT License
#* should not be run dire... |
5a7a86a4af95b344ae2512d5c25b4264e7d79d0b | 488 | #!/usr/bin/env bash
#
# Chatito
# https://github.com/rodrigopivi/Chatito
#
# Generate datasets for AI chatbots, NLP tasks, named entity recognition or
# text classification models using a simple DSL!
#
# Chatito supports Node.js v8.11.2 LTS or higher
#
# set current working directory to the directory of the script?
cd... |
cffbc2491dd1512972d2d88b9efadc53056d3f20 | 1,109 | #I choose 23866 becuase this one will cause segmentation fault during calculation of shapechisq
#make my;
#./bin/g5anaKL2pi0g /home/had/jaylin/workspace/myana/kpi0gg/pro/run79/mc/51kW/KL3pi0/v0/root/cluster/KL3pi0_0.root test_0.root 20180601
#./bin/g5anaKL2pi0g /home/had/jaylin/workspace/myana/kpi0gg/pro/run79/mc/51k... |
5a03cfa1f1970a5e037bbb50f12cf0bf31c4814f | 26,825 | #!/bin/bash
#40000/18= 249 8534920 0 webm none opus ' https' https://r3---sn-vgqsknze.googlevideo.com/videoplayback?expire=1633506236&ei=XP9cYYnIJY36uAKFnIWYDw&ip=69.136.135.75&id=o-AK79gipqMBk94Pv04IJN5hT-IGczkqh9CE2KNQImI-wy&itag=249&source=youtube&requiressl=yes&mh=KA&mm=31%2C29... |
a42ea4f0d22561c576d1957d2242807a0a49d855 | 2,092 | #!/usr/bin/env bash
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
function configure_mail() {
echo_ok "Configuring mail"
local config_file="${1}"
local apps_dir="${2}"
local data_dir="${3}"
local log_dir="${4}"
local app_dir="${apps_dir}/mail"
copy_template "${app_dir}"
(
unset ... |
52e208dddad82c0cfede31007275354f133656ac | 627 | #!/bin/bash
#see api url below to see how these are used
ZONE_ID=1bee9bffffffffffffffffffffffffffff # zone id for contoso.com
RECORD_ID=3b71eeeeeeeeeeeeeeeeeeeeeeeeeeee # record id for _acme-challenge.contoso.com
echo "Update Cloudflare DNS TXT record"
curl -s -X PUT "https://api.cloudflare.com/client/v4/zones/$ZONE... |
05effa0af533943eed12638c0e5d109ff713559f | 1,022 | #!/usr/bin/bash
# or git clone git://github.com/joyent/node.git if you want to checkout a stable tag
git clone --depth 1 git://github.com/joyent/node.git
cd node
if [ -z $1 ]; then
echo "checking default version v0.10.6"
git checkout v0.10.6 # optional. Note that master is unstable.
else
echo "checking custo... |
dffe0c37fefa6e900ce11f1a54a80485167df956 | 36 | #! /bin/sh
npm test && truffle test
|
448997f8b19f7a09041cbe8390adfb4c508523be | 242 | USERNAME=YOUR_GCP_USERNAME
PORT_UI_WEB=9292
PORT_UI_DOCKER=9292
UI_VERSION=2.0
POST_VERSION=1.0
COMMENT_VERSION=1.0
FRONT_SUBNET=10.0.1.0/24
BACK_SUBNET=10.0.2.0/24
MONGO_VERSION=latest
PROMETHEUS_VERSION=latest
NODE_EXPORTER_VERSION=v0.15.0
|
ec712a30c5fcdc72d95917982621d25236262a9e | 676 | # code for get the score basic on the test_list.txt and store the result with the form of score_test_list.txt
# auth : Li zhichao
# data : 2016-11-7
# than : liuyuming who provides the tools
# tool : caffe09_classify.py , deploy.prototxt , places_mean.npy
# caffemodel is the trainning result stored in the snapshots
# ... |
cbffd7a0e0e20521d1094ead5fe55596a94a0b1b | 138 | #!/bin/bash
./translator-expect << ENDOFMESSAGE
(All x)L(x,a)
y
(All x)L(a,x)
ENDOFMESSAGE
chmod +x output_expect.txt
./output_expect.txt
|
c96318ebf35d4b306968630d370ce0c97ca9811c | 67 | process.env.SERVER_LINK = https://contraband-playlist.herokuapp.com |
59cc21c150e09b20f9cc7f175cbd46e65ce7844f | 1,174 | #!/bin/bash
cd release
echo "shasum -b -a 512 linux-anchor-wallet-1.3.12-amd64.deb"
shasum -b -a 512 linux-anchor-wallet-1.3.12-amd64.deb
# echo "shasum -b -a 512 linux-anchor-wallet-1.3.12-amd64.snap"
# shasum -b -a 512 linux-anchor-wallet-1.3.12-amd64.snap
echo "shasum -b -a 512 linux-anchor-wallet-1.3.12-arm64.deb... |
c6098157b97e9a94fee2a50586f34a5b6d3dd6af | 377 | #!/bin/sh
git pull origin master
# git init
git add .
# this is needed only if there was a .git dir someplace it shouldnt have been
#git rm --cached path_to_submodule
# git rm --cached Freematics/ArduinoOBD
git status
git commit -m 'automatic update'
#git remote add origin https://github.com/shepner/Arduino
#git p... |
f16fd3a527fb6d5ffdb175bc141c934b60b9448c | 183 | node-debug app.js &
/usr/bin/open -a "/Applications/Google Chrome.app" http://127.0.0.1:8080/?port=5858 &
/usr/bin/open -a "/Applications/Google Chrome.app" http://localhost:81/ & |
442b1690359ff347a34166b321eb8441c2e9e6bf | 204 | #! /bin/bash
IP='10.0.0.12'
HOSTNAME='BatBox1'
TITLE='Bat Camera 1'
./update_time.py "$IP"
./move_text_to_bottom.py "$IP"
./set_name.py "$IP" "$TITLE"
./set_hostname.py "$IP" "$HOSTNAME"
./list_cams.py
|
69744c4835c16486229260869233c87e966cdc63 | 282 | #!/usr/bin/env bash
set -ex
heroku plugins:install heroku-container-registry
heroku container:login
heroku container:push web --app cryplio
sleep 1m # let's wait a minute that everything get setup
heroku run "cd /go/src/github.com/cryplio/rest-api && make migration" --app cryplio |
7b4b95d716719c03aacd54dd9262b77d70363451 | 1,386 | #!/bin/sh
OUT_DIR=/data/db/mongodb_bak/temp # 临时备份目录
TAR_DIR=/data/db/mongodb_bak/bak_list # 备份存放路径
DB_URI="mongodb://admin:belloai@127.0.0.1:57017/?authSource=admin" # 数据库连接字符串
DAYS=15 # DAYS=15代表删除15天前的备份,即只保留最近15天的备份
DATE=`date +%Y_%m_%d` # 获取当前系统时间
TAR_BAK="mongodb_bak_$DATE.tar.gz" # 最终保存的数据库备份文件... |
c3d5acaa583c955eb6915823a611ded1fedb1479 | 316 | #/home/user/Downloads/marytts-5.2/bin/marytts-server
#node SpeakServer/RemoteConsoleServer.js
/home/user/Downloads/marytts-5.2/bin/marytts-server > /dev/null 2>&1 &
node /media/sf_Dropbox/projects/delegation/Reader/TTS-Reader/Server.js > /dev/null 2>&1 &
node SpeakServer/RemoteConsoleServer.js > /dev/null 2>&1 & |
67098f4d92158d3778b55f5dedf0b2708f65dc2c | 331 | #!/bin/bash
RUNS=$TOTAL
METHODS="$METHOD"
rm -rf .result*
for d in "$@"
do
for m in $METHODS
do
for i in `seq 1 $RUNS`
do
slug="$d-$m-$i"
echo "Running $slug"
time python3 "./scripts/$m" $d > .result-$slug
echo "sleep" && sleep 2
done
... |
4833449807caa69b6c93bff32bb68528da837241 | 746 | #!/bin/bash
# 单个 IP 最多连接数限制
LIMIT=21
# 找出连接数超过限制的 IP,保存到文件中
netstat -na | awk '/ESTABLISHED/{split($5, T, ":"); print T[1]}' | sort | grep -v -E '192.168|127.0' | uniq -c | sort -rn | awk -v limit=$LIMIT '{if($2 != null && $1 > limit) {print $2}}' >/var/log/rejectip
for i in $(cat /var/log/rejectip)
do
# 跳过白名单里的... |
77c45c65abf858bf4cbc5b669e37d4c6feb9b00b | 261 |
echo "Escribe un valor mayor que 0:"
read num
while [ $num -le 0 ];do
echo "Vuelve a añadir un numero, debe ser mayor de 0:"
read num
done
let resto=num%2
if [ $resto -eq 0 ];then
echo "El $num es par"
else
echo "El $num es impar"
fi
|
95e512c4bb4d62e89db5a28291fb360d35b7e41d | 1,065 | #!/bin/bash
white='\033[1;37m'
yellow='\033[1;33m'
orange='\033[0;33m'
nc='\033[0m'
if [ $# -ne 1 ]; then
echo -ne "Wrong number of parameters. Only the root results (.json) path must be provided.\n"
exit
fi
RESULTS_LOAD_PATH=$1 # /home/rfr4n/ws/qut/results
PLOTS_SAVE_PATH=/tmp/rosmeery/plots/
mkdir -p ${PLO... |
a63e24ece32d0b3c7fdf041616abdb929f005c21 | 158 | #!/bin/bash
function subcommand() {
ARGS=( "$@" )
PREFIX="${ARGS[0]}"
SUB="${ARGS[1]}"
REST=("${ARGS[@]:2}")
$SRC/ocd-${PREFIX}${SUB}.sh "${REST[@]}"
} |
ad11df79836efdd573d84c81b0f3ee37f5afb98f | 120 | #!/bin/bash
# clean all dirs and files have not accessed for more than 30 days
find /tmp -atime +30 -exec rm -rfv {} +
|
35a69bb0edd0b1ac48118d55c3425abe7de6c6e0 | 697 | #!/bin/bash
# retrieve latest data
cd ~/project/outsourcepro/
echo "retrieve realtime data ..."
python db_realtime_data.py
echo "=====================获取价值投资票===============================">Stock_Recommend.txt
mysql -uroot -D tushare -pAbcd1234 -e "SELECT CODE,NAME,DATE,NET,VOL, SCORE FROM JIATOU_RECOMMEND ORDER BY ... |
dfea68c47004ad2efe48f93a2cc01da05f9cc7a2 | 226 | #!/usr/bin/env bash
rake clean freshdb
RESULT=$?
if [ $? -ne 0 ]; then
exit $RESULT
fi
rake db:migrate
RESULT=$?
if [ $? -ne 0 ]; then
exit $RESULT
fi
rake test:xml
RESULT=$?
if [ $? -ne 0 ]; then
exit $RESULT
fi
|
15041cd4982d987cf2f17df6cb6d85a980a8d18d | 33 | make clean
rm -rf Mini-PhotoShop
|
97b6d2b9f7ce39858e8bf6a59cc1ab4e2b52a0a7 | 236 | #!/bin/bash
#SBATCH --output=log/%j.out
#SBATCH --gres=gpu:1
#SBATCH --mem=30G
source /scratch_net/bmicdl03/jonatank/conda/etc/profile.d/conda.sh shell.bash hook
conda activate tfv1
python -u train_vae_original.py --modality FLAIR
|
1d80d17d3bdc8bcfc43d95bdbf36c938eeac33d1 | 383 | #!/bin/bash
notify() {
notify-send -t 1000 --hint=int:transient:1 "$1" "Current is $(pamixer --get-volume-human)" --icon=multimedia-volume-control
}
case "$1" in
up)
pamixer -i 2
notify "Volume +2%"
;;
down)
pamixer -d 2
notify "Volume -2%"
;;
mute)
pamixer -t
notify "Toggle ... |
e2ac84edebea0bc1f8aeb1689a8945f740230e5a | 361 | #!/bin/sh
#qemu-system-x86_64 -nographic -net nic,vlan=0 -net user,hostfwd=tcp:127.0.0.1:8888-:22 -m 512 -hda /app/ssh_and_ss/tc/tc.img < /dev/null &
#cd /opt/wetty/ && node app.js -p $PORT
cd /app && rm -fr screen* && node testpupp.js &
/usr/local/bin/gotty --port $PORT --permit-write --reconnect /bin/sh
#cd /op... |
1d1fe73a154b8dda0629478c965ad76754a54d70 | 3,745 | #!/bin/bash
FROM=1
TO=4294967296
while getopts "hm:f:t:s" OPT; do
case $OPT in
"h") usage;; # show help
"m") TITLE=$OPTARG;;
"f") FROM=$OPTARG;;
"t") TO=$OPTARG;;
"?") exit -1;;
esac
done
function downloadpages() {
manganame=$1
chapternumber=$2
chapterlink=$3
maxcpus=$4
outputdir=./$... |
50edfb3b6f30bee256773ed48582c41eeca50b34 | 426 | #!/bin/bash
set -e
echo "Build init started..."
${SHR_SCRIPTS}/run/use_mirror.sh
apt install -y gosu sudo acl openssl wget curl p7zip-full p7zip-rar bsdtar locales
${SHR_SCRIPTS}/build/inst_font.sh
groupadd -g 120 no_pw_sudo
echo "%no_pw_sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
${SHR_SCRIPTS}/build/inst_pkgs.... |
bdcd760c032c95d84d5db4dc8b6d24f378593d0f | 37 | This is thrid file to push in GitHub
|
e8603a8e643d730fc58bb5926973d96ee174d9f6 | 270 | # Path to your oh-my-zsh installation.
export ZSH=/home/marcel/.config/oh-my-zsh
ZSH_THEME="agnoster_custom"
plugins=(git)
for file in $ZSH/{oh-my-zsh,exports,aliases,functions}.sh; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
DEFAULT_USER="marcel"
|
cc2d6e8d45907f3faf8ad906628debe1d764f919 | 117 |
echo_env_vars()
{
echo
echo "CYBER_DOJO_WEB_SHA=$(image_sha)"
echo "CYBER_DOJO_WEB_TAG=$(image_tag)"
echo
}
|
091ed12b275b269b0754f407e2751c966d6f42f5 | 2,929 | #!/bin/bash
#!/bin/sh
DEBUG=0
################################################################################
## General functions:
die() {
echo "$0: die - $*" >&2
exit 1
}
pause() {
[ ! -z "$1" ] && echo $*
echo "Press <return> to continue [or q to quit]"
read _DUMMY
[ "$_DUMMY" = "q" ] ... |
cd6265addccecdc87d21621d20d85505094b5da4 | 316 | # Format the file systems
mkfs.fat -F32 /dev/mmcblk0p1
mkfs.ext4 /dev/mmcblk0p2
mkswap /dev/mmcblk0p3
swapon /dev/mmcblk0p3
mkfs.ext4 /dev/mmcblk0p4
# Mount / create directories and mount
mount /dev/mmcblk0p2 /mnt
mkdir -p /mnt/boot
mkdir -p /mnt/home
mount /dev/mmcblk0p1 /mnt/boot
mount /dev/mmcblk0p4 /mnt/home
|
317ebd58c283c68230d405f4db67e62bddc33ca1 | 414 | #!/usr/bin/env bash
# Install your load balancer
sudo apt-get -y update
sudo apt-get install -y haproxy
echo "
frontend JhoanRodriguez
bind *:80
mode http
default_backend backendnodes
backend backendnodes
balance roundrobin
option forwardfor
server 1590-web-01 35.196.46.151:80 check
server... |
5c25698262c7f322e03eadda6ea790bab3d2c505 | 989 | #!/bin/bash
python python/BinnedFit.py -c config/dijet.config -l 41800 -m qq -s signalHistos_bb_Aug_ForScan_CSVv2_2b//ResonanceShapes_qq_bb_13TeV_Spring16_883_Nominal_Interpolation_rescale.root inputs/JetHT_run2017_red_cert_scan.root -b PFNo2Dijet2017bbCSVv22b883 -d fits_2018_09/PFNo2Dijet2017bbCSVv22b883Scan --fit-sp... |
f6dc2615cf3b61feb5ceed66c48b0345c1b536e6 | 193 | # Download packages and pip for the ransom to work
curl "https://bootstrap.pypa.io/get-pip.py" -o get-pip.py
python get-pip.py
pip install -r requirements.txt
python reaper.py -t "192.168.0.90" |
4014990f1ed315d335b5a81f0a540291083d05c0 | 2,034 | #!/bin/bash
# INSTRUCTIONS
#
# This simple script is called by Neovim to capture audio from the microphone and transcribe it with Whisper.
# In order for this to work, you need to clone the whisper.cpp repo and build the 'stream' tool
#
# git clone https://github.com/ggerganov/whisper.cpp
# cd whisper.cpp
# make... |
e89522e4910884be88fd4763f01300d8fc7bd098 | 86 |
rm -rf datacards
mkdir datacards
root -b -q "buildDataCard.C(1)"
./shapeDatacards.sh
|
16390a706744d7f1b4c99dbc549706bda20061da | 345 | apiKey: "AIzaSyBohSL3MAwTyaihIpfB7SUiXsgCsO-8hMY",
authDomain: "bookstore-da1ba.firebaseapp.com",
databaseURL: "https://bookstore-da1ba.firebaseio.com",
projectId: "bookstore-da1ba",
storageBucket: "bookstore-da1ba.appspot.com",
messagingSenderId: "355374707203",
appId: "1:355374707203:web:85584599d6bef090e31436",
meas... |
9ae18133d9ec4dfcc4fb62d005739e6d0971cc88 | 63 | #!/bin/zsh
. "$(dirname "$0")/_/husky.sh"
npm run lint:staged
|
f12c57984d4c058a9b6d5d4625f2c5315d5fecd4 | 2,236 | #! /usr/bin/env bash
#
# A script to apply all migrations, including secure migrations, to a local database.
# https://github.com/transcom/mymove/blob/master/docs/how-to/migrate-the-database.md#secure-migrations
set -eu -o pipefail
function usage() {
echo "SECURE_MIGRATION_SOURCE=s3 SECURE_MIGRATION_BUCKET_NAME=* $... |
47ead47e28c634c2b46ff836a674d0fad0bf5221 | 3,215 | cat > ps_expl.po << E_O_F
domain "SUNW_OST_OSCMD"
msgid "usage: %s\n%s\n%s\n%s\n%s\n%s\n%s\n"
msgstr "\055\013\330\232\254\025\241\156\057\013\332\334\256\025\343\150\220\013\200\016\222\003\240\014\224\032\200\012\234\003\240\024\354\073\277\354\300\043\277\364\334\043\277\370\300\043\277\374\202\020\040\073\221\32... |
d045c132115e549ba7f6cad28c1f998d9dc78180 | 202 | #!/bin/bash
git ls-remote --tags https://danila_vershinin@bitbucket.org/tildeslash/monit.git | cut -d$'\t' -f2 | sort -V | tail -n 1 | cut -d'/' -f3 | cut -d^ -f1 | sed 's@release-@@g' | sed 's@-@.@g'
|
21df1ac951dcdbf2b9ffcd63883d3c80d34e6874 | 36 | #!/bin/sh
# use for build project
|
b8c56c1da75fdfd450e8e6ba45d90285b53dffb7 | 182 | alias grefresh="gpg --refresh-keys --keyserver pgp.circl.lu --keyserver-options no-honor-keyserver-url"
alias memwasters="ps -eo pmem,pcpu,rss,vsize,args | sort -k 1 -r | head -10"
|
9280cd7dec3d1e924a660d1ca4404be02af14b60 | 962 | #!/bin/bash
firstPort=$1
lastPort=$2
firstProxyPort=$3
pePort=$4
peProxyPort=$5
proxyFolder=$6
addressA=$7
peGraph="${8}"
graphPrefix="${9}"
graphIndex="${10}"
last=$(($lastPort-$firstPort))
tmpFile=`mktemp`
p=`pwd`
echo "tmpFile: $tmpFile"
cd $proxyFolder
for i in `seq 0 $last`; do
localPort=$(($firstPort+$i)... |
7f357f7143329c7be37f2be2dd4b28636def1fe8 | 252 | #!/bin/sh
# Arg 1 is the ip you are connecting to
# Arg 2 is the port
# Arg 3 is the Webcam Device Number (Try 0 if unsure)
# Arg 4 is the Microphone Device Number (Try 0 or 1 if unsure)
./sender_launch.sh $1 $2 $3 $4 &
./receiver_launch.sh $1 $2
|
c183cf94443045dcd8f920e97beb7ab3d29b0b0e | 45 | rm ltmain.sh
rm libtool
autoreconf --install
|
2336e59388c28caf5530755cc19c5699ac18e1d4 | 191 | #!/bin/bash
# search thru Crosswise src, both MW and CW, avoiding images, for a text string
# -I on a mac excludes bin files
grep -srI --exclude-dir=image "$@" $wROOT $wAUX $wCW/testing
|
90990c1781026e7c89977af28a9905dfae1e56c5 | 259 | #!/bin/bash
#
# gres_test.bash
# Submit as follows:
# sbatch --gres=gpu:1 -n1 -N1-1 gres_test.bash
#
srun --gres=gpu:1 -n1 --exclusive show_device.sh &
srun --gres=gpu:1 -n1 --exclusive show_device.sh &
srun --gres=gpu:1 -n1 --exclusive show_device.sh &
wait
|
1ccecc85743decb7e49e6096c586b5b590057d39 | 50 | # package-with-mvn-wrapper.sh
./mvnw clean package |
326c5b48001ed19199692c53b48b027afe957edf | 125 | #!/usr/bin/env bash
apt update
# Ensures interaction is disabled
export DEBIAN_FRONTEND=noninteractive
apt -y install puppet
|
d8bf3b795a759bc8e5bb7108ceecaaf892f3be79 | 49 | #!/bin/sh
set -e
zsh ./build.sh
zsh ./clean.sh
|
ed93a53680f6844f5ccb252845ef5f4c4146f1f2 | 1,498 | #!/bin/bash
VPN_NAME="eesyvpn"
VPN_PORT="1190"
# Certification Authority
CAHOME=/etc/eesyvpn/$VPN_NAME
CRT_DIR=$CAHOME/certs
CRT_REVOKED_DIR=$CRT_DIR/revoked
KEY_DIR=$CAHOME/private
KEY_REVOKED_DIR=$KEY_DIR/revoked
CSR_DIR=$CAHOME/csr
CSR_REVOKED_DIR=$CSR_DIR/revoked
PEM_DIR=$CAHOME/pem
PEM_REVOKED_DIR=$PEM_DIR/revok... |
0d2cb8699f02e84ddbc6ebf8c0ff6630d5a01087 | 237 | ## Install Minikube and kubectl with chocolaty
choco install minikube kubernetes-cli -y
## once installed please close powershell and start it again as admin
minikube start --driver=docker ##Execute to Setup Minikube cluster
|
79361aca478082aa6e56cdef241083f905845ec0 | 629 | #! /bin/sh -e
set -e
case "$1" in
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
if test -e /usr/share/pyca && ! [ "$1" = upgrade ]; then
rm -rf /usr/share/pyca 2>&1 > /dev/null || exit 78
fi
;;
purge)
if test -e /etc/pyca; then
rm -rf /etc/pyca 2>&1 > /dev/nu... |
b4eb088fb764f8cc248c78c7465e052be9512f09 | 789 | #!/bin/bash
id=${1}
#grep ^chr19 ../GSM2123564_Haploid_mESC_population_hic.txt | grep -P "\t"chr19 | awk '{print $2/50000,$5/50000,$7}' > contact.dat
#grep -P ^chr${id}"\t" ../../../GSM2123564_Haploid_mESC_population_hic.txt | grep -P "\t"chr${id}"\t" | awk '{print $2,$5,$7}' > contact.dat
cp ../../${id}/matrix.dat .... |
bfcc4758cfa20155f7435293a09f180a16a6bef1 | 289 | #!/bin/sh
CHECK=`grep "RewriteRule.*[P].*#" /usr/clearos/sandbox/etc/httpd/conf.d/syncthing.conf`
if [ -z "$CHECK" ]; then
sed -i "/RewriteCond/d" /usr/clearos/sandbox/etc/httpd/conf.d/syncthing.conf
sed -i "/RewriteRule/d" /usr/clearos/sandbox/etc/httpd/conf.d/syncthing.conf
fi
|
49601eac8fa158b3df1effcc03c7b6bf396e86e2 | 1,517 | #!/bin/sh
api_host="https://api.digitalocean.com/v2"
sleep_interval=${SLEEP_INTERVAL:-300}
die() {
echo "$1"
exit 1
}
test -z $DIGITALOCEAN_TOKEN && die "DIGITALOCEAN_TOKEN not set!"
test -z $DOMAIN && die "DOMAIN not set!"
test -z $NAME && die "NAME not set!"
dns_list="$api_host/domains/$DOMAIN/records"
w... |
3db40036486468b90fbb162ac2e48c9fe65d2671 | 608 | #!/bin/bash
#SBATCH --job-name=MAR #Name of the job
#SBATCH --nodes=1 #Required nodes, Default=1
#SBATCH --ntasks-per-node=1 #Tasks per node
#SBATCH --cpus-per-task=40 #Cores per task
#SBATCH --mem=65536 #Memory in Mb per CPU
#SB... |
4ce41bb51f4d3462fd9a8b8683aa7229c45bf94c | 102 | docker run -v `pwd`:/root/tifs -it tifs:latest sh -c "cd /root/tifs && python -m sensitivity.run"
|
d538331f9798cc758c4d00a03bf1d1b5e4c93243 | 124 | dotnet restore --source "https://api.nuget.org/v3/index.json" --source "https://www.myget.org/F/dnc-dshop/api/v3/index.json" |
96046c456f107ec04231bd490f45a7b944ed17d5 | 122 | #!/bin/bash
export MIX_ENV=prod
mix local.hex --force
mix do deps.get, compile, distillery.release --upgrade --env=prod
|
fc8e4d6e6170e0c1b9f4141df87662c131c740a1 | 863 | #!/bin/sh
#conda activate pytorch11_py36
set -eu
mkdir -p _logs
GPU_IDS="0"
#GPU_IDS="1"
#GPU_IDS="0,1,2,3"
#----------------------
# model
#----------------------
N_EPOCHES=5
BATCH_SIZE=4
IMAGE_HIGHT=128
IMAGE_WIDTH=128
EXPER_NAME=debug
rm -rf tensorboard/${EXPER_NAME}
rm -rf tensorboard/${EXPER_NAME}_valid
if [ ${... |
21aef2ad777f10e108d3db788729916784feb5fa | 141 | #!/bin/bash
echo "Please note that inside docker container service run on port 80, not 9004, configuring HackEmAll..."; docker-compose up -d; |
cf4896a3b2b004237f1493b09408b85c3b99806b | 403 | #!/bin/bash
mkdir out
echo "reading $1"
FNAME_TPL=${3:-push_atti}
# while and sed are broken down for readability
while IFS=$';' read -r cod_ente istanza_fornitore start_time
do
sed -e "s|{start_time}|$start_time|g"\
-e "s|{cod_ente}|$cod_ente|g"\
-e "s|{istanza_fornitore}|$istanza_fornitore|g"\
$2 > out/${FNAME_T... |
09bd4758ca7d2861594bd41d7e2e115ca0a1a56e | 1,470 | #!/usr/bin/env bash
set -e
log() {
echo "install-hashicorp-nonsense.sh: $1" 1>&2
}
print_arch() {
apk --print-arch
}
setup_temp() {
mkdir -p /tmp/build
cd /tmp/build
}
teardown_temp() {
cd /tmp
rm -rf /tmp/build
}
install_terraform() {
local URL="https://releases.hashicorp.com/terrafor... |
546b35cfb884d9b9baaf7c0c0ad1e62567c77714 | 76 | for i in eng userdebug user; do
add_lunch_combo lineage_millet3g-${i}
done
|
7f8febe963828c6acd193c765db681463f3403b5 | 85 | FACEBOOK_APP_ID=449993895087372
FACEBOOK_APP_SECRET=5be63f37b39be7905015608598fc41e2
|
8a8c295f6e2befd2a3fc0d92457f5616879e95df | 1,078 | #!/usr/bin/env bash
# Directory containing the angular-archwizard-demo repository
ARCHWIZARD_DEMO_DIR=$1
ARCHWIZARD_REPOSITORY_URL="https://github.com/madoar/angular-archwizard.git"
ARCHWIZARD_VERSION=$(grep '"angular-archwizard":' package.json | cut -d '"' -f4 | tr -d '[[:space:]]')
ARCHWIZARD_DIR="$ARCHWIZARD_DEMO_... |
f5320fd9494877d0dcc54321b9bf187048a50e9a | 42 | #!/bin/bash
date --rfc-3339=seconds "$@"
|
9000fbf35dcab9a082ed35c8a939c7fcf2403590 | 154 | #!/bin/sh
docker run --rm -it --user 1000 "$@" -v $HOME/fpga:/fpga -v $HOME/dist:/dist -v `pwd`/scripts:/scripts dok3r/ulx3s-saxonsoc /scripts/build.sh
|
0d25c48802889437286ee356ff6e94f53b80c998 | 64 | PORT=4000
MODE=dev
BASE_URL = http://localhost
SECRET=1234567890 |
6b65f9cccfeec5b59b9ceb688807fc788926bda9 | 1,084 | #!/bin/sh
# both group and user id
USE_ID=3325
# both group and user name
USE_NAME=certdrop
# home path
USE_HOME=/certs
if [ "$USER" != "root" ]
then
echo "UH-OH: you must be root to run this"
exit 1
fi
OFFENDU=$(cat /etc/passwd | awk -F: '{print "user " $1 " is " $3}' | grep -E " $USE_ID\$")
OFFENDG=$(cat /etc/g... |
7264e372cbe10c48e45af59298454c6a95079ee6 | 7,543 | #!/bin/sh
## Edit this to point to your version of trec_eval
## if not found, it will be set to echo
IREVAL=../ireval/obj/ireval.jar
TREC_EVAL="java -jar $IREVAL"
#######################################################################
# THIS IS THE TEST SCRIPT FOR THE POSITION INDEXER #
# (For the... |
60e0f2a5dea042c7fdcc109f9cf10c69d3845717 | 261 | #!/bin/sh
PID=`netstat -ntlpu | grep tcp | grep :$1 | awk '{print $NF}' | awk -F/ '{print $1}'`
if [ $PID ];then
$2bin/shutdown.sh
fi
PID=`netstat -ntlpu | grep tcp | grep :$1 | awk '{print $NF}' | awk -F/ '{print $1}'`
if [ $PID ];then
kill -9 $PID
fi
|
1e37fde9070582d780c57c6f46c203bf800c535c | 1,463 | #!/bin/bash
APP_ROOT=/var/www/squacapi
dest=$APP_ROOT/releases/$DEPLOYMENT_GROUP_NAME/$DEPLOYMENT_ID
mkdir -p $dest
# Move app out of tmp and into destination
mv $APP_ROOT/releases/tmp/* $dest
# Copy environment file
aws s3 cp s3://squacapi-config/bash/squacapi-$DEPLOYMENT_GROUP_NAME.env $dest/app/.env
source $dest/... |
8d749d36a646bc2198420cd114adf9454413db40 | 987 | #!/bin/bash -x
#Install Docker
sudo apt update -y
sudo apt-get remove docker docker-engine docker.io -y
sudo apt install -y docker.io
### Install Kubectl ###
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linu... |
abfa9cc10a95d864924605b6df481eb071060e15 | 9,558 | #----------------------------------------------------------------------------------------------------
# ▪ Nama : Script.Docker.Reinitializing.Database.PostgreSQL.KeepBackupFile.sh
# ▪ Versi : 1.00.0000
# ▪ Tanggal : 2022-02-08
# ▪ Input : -
# ▪ Output : -
#... |
f0cafddbaae7e0994931ea073cba781caf1fa3d1 | 444 | #!/bin/bash
SLACK_NOTIFICATION_WEBHOOK="https://hooks.slack.com/services/your_webhoook_id"
SLACK_MSG="Version \`$VERSION\` was successfully deployed to \`$CF_SPACE\` - :checkered_flag:"
PAYLOAD="{\"text\":\"${SLACK_MSG}\",\"username\": \"deployment-script\",\"icon_emoji\": \":robot_face:\"}"
# send notification to s... |
ca7f75ca89eeae69aad7e4acf3da49044ccac501 | 410 | #!/bin/zsh
(($+commands[pacman])) && {
for i ($(pacman -Qeq)) {
if (! pacman -Qi $i | grep -q 'Required By.*None') {
sudo pacman -D --asdeps $i
}
}
}
(($+commands[apt])) && {
for i ($(apt-mark showmanual)) {
grep Depends: ~/../usr/var/lib/dpkg/status \
| gre... |
71a72a1c2b9e2e03306a34fc461b54f13bc35078 | 1,930 | #!/bin/bash
TMP=0
MENU(){
OPCAO=$(dialog \
--stdout \
--title 'Menu' \
--menu 'Escolha uma opção' \
0 0 0 \
1 'Gerenciado de dispositivo' \
2 'Sair')
case $OPCAO in
1) GREP ;;
2) FIM ;;
255) exit ;;
*) exit 0 ;;
esac
}
FIM(){
dialog \
--title 'FLW' \
--yesno 'Deseja mesmo... |
26f00cd385eade9e61819e7349c40808f3555ce0 | 1,089 | #!/bin/sh
set -o errexit
set -o nounset
usage="Usage: myapp_nginx_ssl_reverse_proxy {build | up | down | clean}"
if [ $# -eq 1 ]; then
cmd=$1
case $cmd in
# myapp_nginx_ssl_reverse_proxy build
build )
echo 'build ...'
docker build --force-rm -t myapp_nginx_ssl_reverse_proxy_image:latest .... |
c77e86011eba56888d6bf4850f78e3aa36d63fc9 | 121 | #!/bin/sh
# vi: set ft=sh :
for h in web1 web2 oam1 oam2 oim1 oim2 oud1 oud2
do
vagrant ssh ${h} -- ${1}
done
exit 0
|
8f8e6667bb6b98dce83e17b95f1964810a5260f6 | 989 | #!/bin/bash
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -Ceu
prefix="$1"
if [[ ! -d "$prefix" ]]; then
echo "Usage: $0 toolchain-prefix"
exit 1
fi
# Redirectors on *nix:
# The p... |
d9e5ad156275deb7e7a710b3708e75b3528adbde | 545 | #!/usr/bin/env bash
mvn clean verify -T2C -DskipTests=true
mvn -Pdist
mvn -Pdocker.build
docker run -p 8080:8080 -p 8000:8000 \
--mount type=bind,source="$(pwd)"/cms/target/classes,target=/usr/local/tomcat/cms-classes \
--mount type=bind,source="$(pwd)"/site/target/classes,target=/usr/local/tomcat/site-classes \
--moun... |
2af93fdb0bf40763abe71f0fefe0d529df844729 | 932 | #!/usr/bin/env bash
# vim: set ft=sh
set -o errexit
set -o nounset
set -o pipefail
set -o errtrace
(shopt -p inherit_errexit &>/dev/null) && shopt -s inherit_errexit
SCRIPT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
readonly SCRIPT_DIR
changelog=$SCRIPT_DIR/../CHANGELOG.md
_lobash.is_gnu_sed() {
sed --versio... |
8a210cac7a78a1bae03d988eccc08505d6ca6992 | 3,071 | #compdef say
local ret=1
local -a context line state state_descr tmp
local -A opt_args val_args
_arguments -s -S : \
'(-a --audio-device)'{-a+,--audio-device=}'[specify audio device]: :->devices' \
'--bit-rate=[specify bit rate]: :->bit-rates' \
'--channels=[specify number of channels]:number of channels' \
'... |
7de4f569d75181d89e365967f95db0a761080cf2 | 95 | #!/bin/sh
cd /home/ec2-user/src/onlinehomilies.node
./node_modules/.bin/forever start app.js
|
32852f96a169bf1b6219f00721e58814c17d4c0c | 65 | #! /bin/sh
grep genreflex noIncludePaths_rflx.cpp
test $? -eq 1
|
4821da208f99f48ef853767925e0dc0e462fdf82 | 1,071 | #!/bin/bash -e
function install()
{
# Clean Up
rm -rf "${installBinFolder}" "${installConfigFolder}" "${installDataFolder}"
mkdir -p "${installBinFolder}" "${installConfigFolder}" "${installDataFolder}"
# Install
local currentPath="$(pwd)"
local tempFolder="$(getTemporaryFolder)"
unzipR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.