blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
c45ebe39539a174c284d589d8e3e9a44a1e25eef | 576 | #!/bin/bash
set -x
# Load .env variables
export $(egrep -v '^#' .env | xargs)
vault secrets enable database
vault write database/config/my-database \
plugin_name=mysql-database-plugin \
connection_url="{{username}}:{{password}}@tcp(mysql:3306)/" \
allowed_roles=my-role username=${MYSQL_ROOT_USERNAME} pas... |
3c189254e3d699ca92df1bd1651118c5df999ec0 | 529 | ruby script/generate scaffold WebBus capacity:integer
ruby script/generate scaffold WebLocation web_bus_id:integer latitude:float longitude:float is_current:boolean is_end:boolean is_pickup:boolean is_dropdown:boolean web_passenger_id:integer order_num:integer
ruby script/generate scaffold WebPassenger password:string ... |
75d55de7d1685372dbec69631554da47680b1b82 | 91 | #!/bin/bash
./gradlew build
docker build -t url-shortener-service .
docker-compose up -d |
e90574b19e429461ba4a42d78525c0a3df90fd73 | 118 | #!/bin/bash
for i in $(seq 1 20)
do
noiseFactor=3 detectionRadius=1 process_transient FT_100000_$i.dat $i
done
|
f3d99f5cc8a11450cf2ccae9325c624d07a9943d | 77 | #!/bin/sh
cp vendor/twbs/bootstrap/dist/css/bootstrap.min.css web/assets/css |
0b7c350ebc718f5e42439e9c3a6b3933604d022d | 45 | /usr/clas12/hps/v3.0.0/bin/hpsRocRebootAll.sh |
b2f742e331da308e73838c912575247c82099e1a | 170 | SPOTIFY_CLIENT_ID=YOUR_SPOTIFY_CLIENT_ID
SPOTIFY_CLIENT_SECRET=YOUR_SPOTIFY_CLIENT_SECRET
SPOTIFY_REDIRECT_URI=YOUR_SPOTIFY_REDIRECT_URI
SPOTIFY_SCOPE=YOUR_SPOTIFY_SCOPE
|
43d6ad724c270631b22330a591149eee26f70eb0 | 423 | # !/bin/bash
if [ -s $1 ]
then
IFS=$'\n'
arr=(`cat -n $1 | sort -uk2 | sort -uk1 |cut -f2`)
declare -i loop
loop=${#arr[@]}
declare -i loopt
loopt=0
while [ $loopt -le $loop ]
do
if [ $loopt=0 ]
then
echo -n "`echo ${arr[$loopt]} 1>temp`"
else
echo -n "`echo ${arr[$loopt]} 1>>temp`"
fi
loopt=`e... |
0daba86fc8dcf2fe03ff73e028ffdad9a9bcf6b6 | 604 | #!/bin/bash
set -eu
cf7 api $CF_API_ENDPOINT
cf7 auth
cf7 target -o $CF_ORG -s $CF_SPACE_ORIGIN
cf7 conduit "$CF_POSTGRES_SERVICE_ORIGIN" --app-name teaching-vacancies-conduit-production -- pg_dump -x --no-owner -c -f backup.sql
# The conduit app may have to be deleted explicitly
cf7 delete -f teaching-vacancies-cond... |
9f9e53f5e92d645042f2cc6162a93705f121ebab | 92 | rm invalid_emails_list.txt
rm valid_emails_list.txt
rm log_file.txt
rm tmp_valid_emails.txt
|
df3f0fef51f57865833ba1dbd81b13e1d3c58c55 | 469 | #!/usr/bin/env bash
set -euo pipefail
#which psql > /dev/null || (echoerr "Please ensure that postgres client is in your PATH" && exit 1)
#mkdir -p $HOME/docker/volumes/postgres
#rm -rf $HOME/docker/volumes/postgres/data
docker run --name pg-docker -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=dev -d -p 5432:5432 pos... |
0bfdc8a0464f9bcf0ad128e2007ff538d31af6d4 | 6,027 | #!/bin/bash
#
# clean_vcf_part1b.sh
#
#
#
# Copyright (C) 2018 Harrison Brand<hbrand1@mgh.harvard.edu>
# Distributed under terms of the MIT license.
set -euxo pipefail
##gzipped vcf from clean vcf part1.sh##
int_vcf_gz=$1
##Remove CNVs that are improperly genotyped by depth because they are nested within a real CNV... |
9b75db4073b159de5c25d1d9d30f33e98bbbf623 | 680 | #!/bin/bash
[[ -f "$1" ]] || {
echo "$1 not found"
exit 1
}
t=$(mktemp)
tac "$1" |
awk -F, '
BEGIN {
OFS=",";
v["EXCHANGE"] = 0.0;
v["TRADING"] = 0.0;
v["DEPOSIT"] = 0.0;
}
{
sub(/^.* on wallet /, "", $2);
v[toupper($2)] = $4;
print $5, v["EXCHANGE"], v["TRADING"], v["DEPOSIT"]
}
' > "$t"
gp=$(m... |
4050580c3936aab34c04c8f04939045ee2786d4b | 73 | #!/usr/bin/env bash
# Script to change the sudo user
sudo -u "$1" whoami
|
b5cabfb3edabd53eb185fd036055cbc5a48a513a | 335 | #!/bin/sh
WATCH_LIST[0]=/dir
WATCH_LIST[1]=/path/to
WATCH_LIST[2]=/file/to/watch
RSYNC=/usr/bin/rsync
SSH=/usr/bin/ssh
# SSH key
KEY=/key/location
# Remote user
RUSER=<USER>
# Remote host
RHOST=<HOST>
# Remote port
RPORT=<PORT>
# Remote base path
RPATH=/remote/server
# Log file to store rsync errors in
ERROR_LOG=/pa... |
502f28656c4759167c0b51801d7205817f167faa | 304 | mvn clean install
ps ax|grep tomcat |grep -v grep| awk '{print $1}' |xargs kill -9
sudo rm -rf /usr/local/tomcat/webapps/SampleUI-1.0-SNAPSHOT /usr/local/tomcat/webapps/SampleUI-1.0-SNAPSHOT.war
sudo cp target/SampleUI-1.0-SNAPSHOT.war /usr/local/tomcat/webapps/
/usr/local/tomcat/bin/./catalina.sh start |
3998743eaf2d0a916b6e35d57af271a64f4d95ea | 5,588 | #!/bin/bash
#
# Copyright (C) 2023 Genome Research Ltd. All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ve... |
91c86d008647fe82be763a5af62136af5261522a | 473 | #!/bin/bash -x
source /etc/environment
if [ -f /etc/profile.d/etcdctl.sh ]; then
source /etc/profile.d/etcdctl.sh
fi
if [ "$NODE_ROLE" != "proxy" ]; then
exit 0
fi
PROXY_SETUP_IMAGE=behance/mesos-proxy-setup:latest
docker run \
--name mesos-proxy-setup \
--log-opt max-size=`etcdctl get /docker/co... |
2e63e4080550dd17f342ce45ca227a6931e8e3b3 | 178 | #!/usr/bin/env bash
echo "Running travis provision script..."
sudo apt-get remove -y ruby1.9.1
sudo apt-get install -y ruby1.9.1-dev
sudo gem install travis --no-rdoc --no-ri
|
6ec9761c58b1e611972413ce95f1c6d53d5f8662 | 80 | #!/bin/bash
for f in *; do echo $f; done
for i in $(seq 1 10); do echo $i; done
|
30161da54681ce1db5809237b7fc4e9205c7d030 | 132 |
HOST='localhost'
port=5000
DBHOST='122.179.158.125'
DBPORT=3306
USER='candidate_demo'
PASSWORD='TestMay2021#'
DATABASE='demo_test' |
d7ea2f3fb82f4e0f3ea542f8a32b22eb5f324a6f | 281 | #!/usr/bin/env bash
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
$ROOT_DIR/../build.sh -l java
pushd $ROOT_DIR/../thirdparty/build/arrow/java
mvn clean install -pl plasma -am -Dmaven.test.skip
popd
pushd $ROOT_DIR/../java
mvn clean install -Dmaven.test.skip
mvn test
popd |
54495cbebe3b071611fc2a39aad3a99846932e29 | 986 | [DEFAULT]
lib =
GITHUB_USER=$(basename ${MR_REPO%/${MR_NAME}})
checkout = github_clone
# installable ----------------------------------------------------------------- {{{
#[src/github/sstephenson/ruby-build]
#fixups = PREFIX=$HOME ./install.sh
#skip = missing_exe rbenv
#[src/github/apenwarr/git-subtree]
#deleted =... |
26b88d61093c2165c02744485d27d643d65b7913 | 1,170 | # Maintainer: Rodrigo Bezerra <rodrigobezerra21 at gmail dot com>
_basename=srt
pkgname=lib32-srt
pkgver=1.5.1
pkgrel=1
pkgdesc="Secure Reliable Transport library (32-bit)"
url="https://www.srtalliance.org/"
arch=(x86_64)
license=(MPL2)
depends=(lib32-gcc-libs lib32-openssl srt)
makedepends=(cmake git ninja)
_commit=0... |
5e70c23a0b88e69e4afd41ad2b9421a258cd4174 | 2,283 | #!/bin/bash
# Set or get screen brightness using xrandr.
DIE() {
printf "%s: error: %s\n" "$progname" "$1" >&2
Usage 1
}
CheckValue1() {
local supported_values="Supported value range: $min..$max."
if [ -z "$brightness" ] || [ -n "$(echo "$brightness" | tr -d '0-9')" ] || [ $brightness -gt $max ] || ... |
b9f34559d9d8c19ec689f24fdfaa32c74926b87e | 182 | #
# ~/.bash_profile
#
### Add home to path. Needed for git-so-fancy ###
PATH=$PATH:~
[[ -f ~/.extend.bash_profile ]] && . ~/.extend.bash_profile
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
bf37e661a3e49685b172e94f9749beab0c526d53 | 242 | #!/bin/bash
cp-gcc c.cpp -o a
for((i=1;;i++)); do
echo $i
python3 gen.py $i > in
./a < in > o1
python3 sol.py < in > o2
diff <(./a < in) <(python3 sol.py < in) || break
done
cat in
#sed -i 's/\r$//' filename ----- remover \r do txt
|
3ae7c72de164f25fc0633823ef5523ccf2ca02a2 | 135 | #!/bin/bash
fw_depends mysql python2
pip install --install-option="--prefix=${PY2_ROOT}" -r $TROOT/requirements.txt
python app.py &
|
caf40e63fe33201bdf2cb9d69c848fdf0953b612 | 466 | # shellcheck shell=bash
## rustup and cargo autocomplete
if [[ -x $(command -v rustup) ]]; then
source <(rustup completions bash)
#source <(rustup completions bash cargo)
# Workaround for https://github.com/rust-lang/rustup/issues/3407
if [[ -f ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/src/e... |
6b71a9bf19fa918c6a3f8cb20a41f81045538858 | 797 | #!/bin/bash
function error {
if [ $? -ne 0 ]; then
echo "! Error: "$@
exit $?;
fi
}
if [ "$1" = "--help" ]; then
echo -e "\n./uf_graph_download <directory to download> <market graph link 1> <market graph link 2> ...\n"
exit
fi
dataset_dir=$1
for link in $@; do
if [ $link == $1 ]; then... |
2025a83b23d4de2f60f5363cf25aa8a66d2f4794 | 624 | #!/bin/bash
# not in Pharo 7 need to do ssh-add -K ~/.ssh/id_rsa
MC_REPOS_URL='filetree://../repository'
performDownload=0
while getopts ":d" opt; do
case $opt in
d)
echo "-d was specified, will download full Pharo Distribution" >&2
performDownload=1
;;
\?)
echo "Invalid option: -$O... |
172079dfea80757430133917ab94ebd1e6c27837 | 1,656 | sudo apt-get remove -y vim vim-runtime gvim vim-tiny vim-common vim-gui-common vim-nox
sudo apt-get install -y liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
sudo... |
259750b9c909e4823d363bffae164f3f1b9d878c | 144 | #!/usr/bin/env bash
cat data/2006-sample.csv |
tail -n +2 |
grep ,DL,|
cut -d "," -f15 |
grep '[0-9]'|
grep - -v|
sort -n |
paste -sd+|bc
|
45eadc8e082e114694e88fd9abc7254f34bf19e5 | 135 | #!/bin/bash
test_file="test_zero.py"
python $test_file --local_rank $SLURM_PROCID --world_size $SLURM_NPROCS --host $HOST --port 29500 |
2c68df0cf78e6e60e7adbff7aa0ebde6a7e6794e | 607 | #!/bin/bash
# Script per l'avvio del registry RMI.
# Uso: start-rmiregistry
# Nota: si potrebbe specificare la porta, ma non l'indirizzo del server.
echo Starting rmiregistry
# determina il path assoluto in cui si trova lo script
# (rispetto alla posizione da cui è stata richiesta l'esecuzione dello script)
... |
bcfb4f4e90a47513cc13aaf611f4465953b245e5 | 174 | Logging dropped firewall packets
Disable `IPv6`
Useful ssh client optimizations
Staying connected remotely via SSH without an interactive shell
Short Introduction to `Wget` |
70a0bb64b559859d2c2c7cd8169f11bf616a77ed | 579 | #!/bin/bash
if [ $# -lt 1 ]
then
echo Usage: generatepkgXML.sh orgalias packageName
exit
fi
## Retrieve the PackageXML from Unmanaged Container
sfdx force:mdapi:retrieve -s -r ./mdapipkg -u $1 -p "$2" # Retrieve Metadata API Source from Package Name
unzip -o -qq ./mdapipkg/unpackaged.zip -d ./mdapipkg # Unz... |
97c392eb6a0ad813389f2ab05e1ade00a09d5bdf | 108 | #python tests/test_euler_estimator.py
#python analysis/sir_model.py
python analysis/hodgkin_huxley_neuron.py |
8875b9e5626ffb30c1c02596d1e2c9a9b344a23b | 1,085 | #zmodload zsh/zprof
setopt PROMPT_SUBST
setopt HIST_IGNORE_ALL_DUPS
#
# User configuration sourced by interactive shells
#
export DOTFILES_PATH=$HOME/.dotfiles
# Define zim location
export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
ZSH_AUTOSUGGEST_USE_ASYNC=true
ZSH_HIGHLIGHT_MAXLENGTH=300
# Start zim
[[ -s ${ZIM_HOME}/ini... |
c0e500b5054f7264ec9f67ef68d0f5120507781f | 284 | #!/bin/bash
#test
export JAVA_HOME=/usr/lib/jvm/java-openjdk
export PATH=$JAVA_HOME/bin:$PATH
export RSVPROCESS_HOME=/usr/local/rsvprocess
ant -f $RSVPROCESS_HOME/build.xml availability_yesterday
if [ ! $? -eq 0 ]; then
echo "availability(yesterday) calculation has failed"
fi;
|
dc758b40efdba266776c5e9a2a5cbcc1b4f6f601 | 168 |
path=(
$HOME/.cargo/bin/(N-/)
$HOME/.go/bin/(N-/)
/usr/local/go/bin(N-/)
$path
)
export GOPATH=$HOME/.go
export GOBIN=$GOPATH/bin
export EDITOR='vim'
|
a8590096da92e2b67d7a85554a2a6413081ad4f3 | 194 | #!/bin/bash
# ../unmount_ramd.sh
echo "========= make extraclean"
test -e Makefile && (make extraclean || exit $?)
rm -rf ../build/*
rm -rf .svn
rm -rf .buildbot-sourcedata
exit 0
|
b4730bf609555b65598cee64820f79900b1b26c9 | 67 | #!/bin/bash
cd /usr/share/37bec-amvios
java -jar 37bec-amvios.jar
|
7f90b41470669570b93ba9c6a25410b5f567d97b | 310 | #!/bin/bash
# Protect Dev and Main Branches
branch="$(git rev-parse --abbrev-ref HEAD)"
if [ "$branch" = "main" ] || [ "$branch" = "dev" ]
then
echo "You can't commit directly to the $branch branch! Please open a PR on a separate feature branch and get it approved before merging into $branch."
exit 1
fi
|
5a3b2b4641e52ba7e1094e22489e8130e61fabad | 525 | #!/usr/bin/env bash
set -eo pipefail
echo "test 1 file" > test1.txt
echo "test 2 file" > test2.txt
sftpuseradd --sftp-user jtest1 --sftp-pass jtest1
./sftp-test.py -u jtest1 -p jtest1
date > time.txt
lftp sftp://jtest1:jtest1@127.0.0.1 -e "set sftp:auto-confirm yes; put time.txt; quit"
lftp sftp://jtest1:jtest1@127.0... |
3524103b8f7a05af997ceaa808850642e9402a63 | 816 | #!/bin/bash
#lendo memoria do conteiner via nsenter
grep rw-p /proc/$1/maps | sed -n 's/^\([0-9a-f]*\)-\([0-9a-f]*\) .*$/\1 \2/p' | while read start stop; do gdb --batch --pid $1 -ex "x/4096wx 0x$start"; done > $1.dump
#lendo a memória do processo do contêiner
#grep rw-p /proc/$1/maps | sed -n 's/^\([0-9a-f]*\)-\([0-... |
98f4b013e87ccf7da176ffec39949e4ad32db725 | 172 | #!/bin/sh
# Download Jar
loc=$(dirname "$0")
echo "Downloading Jar"
$($loc/download_jar.sh)
echo "Jar Downloaded! Installing Client"
$(java -jar forge.jar)
echo "done :)"
|
8e88ce45d195b8a425bc5221e25ba610344e4293 | 125 | #!/usr/bin/env bash
rofi -no-lazy-grab -show emoji -modi emoji -theme /home/unnat/.config/rofi/source/emoji_menu/style.rasi
|
062a41fe9f53446d7c0eb5305cb259c0887134a7 | 543 | #!/bin/bash
source shell-utilities.sh
#
# find and remove spaces
#
photosFolder="$HOME/google-drive/family-photos/" ;
#ls
if test -d $photosFolder ; then
cd $photosFolder
find . -depth -name '* *' \
| while IFS= read -r fullPathToFile ; do \
cp -p -v "$fullPathToFile" "$(dirname "$fullPathToFile")/$(b... |
a7b906f9cf3c43f8cf8640950947fff9fcf1c7ce | 86 | #!/bin/bash
echo 'Standard Prediction.'
python -u predict.py
echo 'Script completed!' |
e41f4fa413d3c91ed5005c82d3cf34710fb65a8d | 68 | git add .
unix_time=$(date +%s%3n)
git commit -m $unix_time
git push |
e79fd3032af45408eadba3549186a4374adddf60 | 545 | #!/bin/bash
echo "Clone dependencies"
echo "UniRx"
git clone https://github.com/neuecc/UniRx.git unirx
echo "Zenject"
git clone https://github.com/modesttree/Zenject.git zenject
echo "Setup symlinks"
ln -s ./assets-folder/Zenject ./zenject/UnityProject/Assets/Zenject
ln -s ./assets-folder/Plugins/UniRx ./unirx/Assets/... |
cca12fbbf805cc94795d832a9c75e4c6b9a95964 | 1,877 | #!/bin/sh
# Check for clock skew on hosts not running ntpd
# v1.0 (C) 2008 Stuart Teasdale <Stuart.Teasdale@opsview.com>
program=/usr/sbin/ntpdate
program_opts="-q pool.ntp.org"
warntime=1
crittime=2
# helper functions
. /usr/lib/nagios/plugins/utils.sh
usage()
{
cat <<EOF
Usage: `basename $0` [-w <seconds>... |
83f4a05cc183f5fb2818e8dc7321e1b83ac0c363 | 2,465 | #!/bin/bash
# If we don't have any args, or if we have help args, print the help message.
if [ -z $1 ] || [ "$1" == '-h' ] || [ "$1" == '--help' ]; then
echo 'usage: bash_example.sh --create-file=<filename> [--no-prompt] [--verbose]'
exit 1
fi
# Check every argument. If any of them match what we're looking fo... |
05a368c412f9fd9e836d1437cae13794b9aaf3db | 1,288 | #!/bin/bash
currDate=$(date +"%Y-%m-%d")
toBackupPath="/home/dvg/workspace/edu/uni"
backupPath="/home/dvg/sync/notebook/projects/education/uni/repo-backup"
backupCount=$(ls ~/sync/notebook/projects/education/uni/repo-backup/ | wc -l)
# Create destination directory
echo "-----------------------------------------------... |
d936032468b89e44c816ccc604f3ec828b170d23 | 13,578 | python align_clusters.py 0 &
python align_clusters.py 1 &
python align_clusters.py 2 &
python align_clusters.py 3 &
python align_clusters.py 4 &
wait
python align_clusters.py 5 &
python align_clusters.py 6 &
python align_clusters.py 7 &
python align_clusters.py 8 &
wait
python align_clusters.py 9 &
python align_cluster... |
29a775e7ff73f303ab432f87824d47a5e41aea8c | 833 | #!/bin/bash
set -eu
export PATH="$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH"
ARCH="$($SNAP/bin/uname -m)"
export LD_LIBRARY_PATH="$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/$ARCH-linux-gnu:$SNAP/usr/lib/$ARCH-linux-gnu"
export SNAP_NAME
export PYTHONNOUSERSITE=false
source $SNAP/actions/common/utils.sh
exit_if_... |
f2f17deddce118a0945b3279123a2348b903a212 | 59 | #!/bin/bash
set -x
bash main.sh
bash main.sh hello_world
|
c0876c33946afab6be596a74822b2755d1773d20 | 1,164 | #!/bin/bash
#SBATCH --job-name=all-single
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=3
#SBATCH --time=20:00:00
#SBATCH --mem=20G
#SBATCH --partition=gpu_titanrtx_shared
#SBATCH --gres=gpu:1
#SBATCH --output=slurm_logs/R-%x.%j.out
#Loading modules
module purge
module load 2020
module load Python/3.8.2-GCCcore-9.3.0
#... |
6cb25f848ca381f7870d87c6386239eff74dff88 | 118 | BOT_TOKEN = "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
API_ID = 12345
API_HASH = "0123456789abcdef0123456789abcdef" |
8ea70129730bc3671f5b7f76158f497247806218 | 57 | #/bin/zsh
alex Lexer.x && happy Parser.y && ghc Main.hs
|
31921f1687fcf40216f29b4867921a0e13b6be0c | 946 | cp $1.s $1_zaz.s
./asm_zaz $1_zaz.s
./asm $1.s
if [ ! -e $1.cor ] && [ ! -e $1.cor ]
then
echo "$1 : [OK] NO FILE CREATE"
fi
if [ -e $1.cor ] && [ -e $1_zaz.cor ] && diff $1.cor $1_zaz.cor
then
echo "$1: [OK]"
if [ -e $1.cor ]
then
hexdump -C $1.cor > ok_$1.txt
rm $1.cor $1_zaz.cor
fi
else
if [ -e $1... |
3e0c3768bfd69fac9d40fe706ebd3c03da3c0cc2 | 2,244 | #!/bin/sh
# /etc/profile.d/motd.sh
# Print the "Message of the day"
cat << EOF
Welcome to...
_.--""\`-.. OS: $(lsb_release -s -d)
,' \`. Kernel: $(uname -r)
,' __ \`. Hostname: $(hostname)
/| " _... |
50c7c3abaa59d8ace68419ce2bdf964db7c4a32b | 1,001 | #!/bin/bash
# place all lines of a file into copy paste buffer one by one
# I've wanted to do this a couple times, ¯\_(ツ)_/¯, so I wrote this
# only works on mac
# (I haven't learned how to mess with the paste buffer on other systems)
# should, in theory, be doable
# grab file name from command line args
# not deali... |
eabd53f50bdc676b40b0e58738103464feb0e56d | 643 | #!/usr/bin/env bash
set -Eeuo pipefail
export CHANGE_MINIKUBE_NONE_USER=true
# Start Minikube
sudo minikube start --vm-driver=none --kubernetes-version=v1.9.0
# Fix the kubectl context, as it's often stale.
minikube update-context
# Enable ingress in minikube
sudo minikube addons enable ingress
printf "Waiting fo... |
9ab7c72204fe7a62bac42fa56ac4cf881e51463f | 1,089 | #!/bin/bash
set -euxo pipefail
IFS=$'\n\t'
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
# retrieve a link to the latest version
PACKER_VERSION_LATEST=$(curl -sSL https://releases.hashicorp.com/packer/ \
| grep -F '"/packer/' | head -n1 | cut -d '"' -f2 | cut -d '/' -f3);
# get the currently installe... |
22dca146df0369d423590e1aab8a4817019fd38f | 440 | #!/usr/bin/env bash
name="faster_rcnn_r50_fpn_1x_divide3_1gpu"
timestamp="20200108_174857"
#timestamp="20200109_000232"
model="${name}"
checkpoint="latest"
python test.py ../configs/moon_crater/$model.py \
../results/moon_crater/$name/$timestamp/$checkpoint.pth \
--out ../results/moon_crater/$name/$timestamp/$check... |
a693d0f5ae4d665fa1b8844d324738e7dfa82c8c | 522 | #mkdir ./esp-idf/
#cd ./esp-idf/
git clone -b v4.2 --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
#git checkout 4c81978a3e2220674a432a588292a4c860eef27b
## the above hash is defined by the variable ESPIDF_SUPHASH_V4 in the file:
# https://github.com/micropython/micropython/blob/master/ports/esp32/Make... |
8dd3f8107bf22551590964047d058874250aa0a7 | 1,736 | #!/bin/sh
echo "---- Installing Tomcat ------------------------------------------------"
#### GET ENVARS #################################################
SHARED_DIR=$1
if [ -f "$SHARED_DIR/config/envvars" ]; then
. $SHARED_DIR/config/envvars
printf "found your local envvars file. Using it."
else
. $SHARED_DIR... |
c9d17b2fb9437671534b6f8211cfb980912ea42e | 142 | #!/bin/sh
valac gdrivesync.vala auth.vala driveapi.vala --pkg gtk+-3.0 --pkg webkitgtk-3.0 --pkg json-glib-1.0 --pkg gee-0.8 --pkg gconf-2.0
|
ae2dbff94944582f1c5980fe62d8263a0784ece3 | 286 | #!/bin/sh
# $OpenBSD: Xsetup_0,v 1.5 2018/07/17 11:52:12 matthieu Exp $
xsetroot -solid black
DUAL=`xrandr | awk '{print $1}' | grep VGA-1`
if [ ! -z $DUAL ]; then
xrandr --output VGA-1 --mode 1920x1080 --output eDP-1 --mode 1920x1080 --same-as VGA-1
fi
# sxpm OpenBSD.xpm &
|
d2ed195be9c2a9003b2ba5d9383a0ee04753dd33 | 54 | #!/usr/bin/env bash
sudo pacman -Rns $(pacman -Qdtq)
|
0e160b72b26d7897336ac9d3464bdabfbe58e930 | 1,145 | #!/bin/bash
sudo apt-get update
sudo apt-get install -y git
sudo apt-get install -y apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo mkdir -p /etc/apt/sources.list.d/
sudo echo "deb https://apt.dockerproject.o... |
0f39266009475d082b5de30fac593a5ffb1a81f6 | 191 | #resize and cut
python creat_crop.py
#create label text
python prepare_label.py
python convert_labels.py Labels_train label.txt Instances_train
#python clean_label.py
python prepare_data.py
|
799b5a2f9a72d9801c7a4318b1c62139ce4a6d48 | 1,311 | #!/usr/bin/env bash
mkdir -p ./pkg/contractlib/rarity-contract/rarity
mkdir -p ./pkg/contractlib/rarity-contract/attributes
mkdir -p ./pkg/contractlib/rarity-contract/gold
mkdir -p ./pkg/contractlib/rarity-contract/skills
mkdir -p ./pkg/contractlib/rarity-contract/craft-i
mkdir -p ./pkg/contractlib/rarity-contract/cra... |
d8e73e14c0eeeb449a4c601024e81be5777a00c1 | 938 | APP_NAME=Laravel
APP_ENV=server
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=daily
DB_CONNECTION=${DB_CONNECTION}
DB_HOST=${DB_HOST}
DB_PORT=${DB_PORT}
DB_DATABASE=${DB_DATABASE}
DB_USERNAME=${DB_USERNAME}
DB_PASSWORD=${DB_PASSWORD}
BROADCAST_DRIVER=log
CACHE_DRIVER=${CACHE_DRIVER}
QUEUE_CONNECTION=s... |
cc1efdb9df3369b0351acee1c7dfbe78a59f5796 | 4,734 | #!/bin/bash
set -e
PKG_DIR=openldap
SRC_DIR=${SRC_ARCHIVE}${SRC_SUBDIRS:+/${PKG_DIR}}
BUILD_DIR=${BUILD_ROOT}${BUILD_SUBDIRS:+/${PKG_DIR}}
mkdir -p $SRC_DIR
mkdir -p $BUILD_DIR
cd $SRC_DIR
PACKAGE=openldap-2.4.45.tgz
if [[ ! -f $PACKAGE ]] ; then
if [[ -f $SRC_ARCHIVE/$PACKAGE ]] ; then
cp $SRC_ARCHIVE/$PACKAG... |
049c1bf2a11c78029ca85bcb00dc7ef0f66e1d9f | 874 | #!/bin/bash
function is_ok {
local url="$1"
local auth=${2:-false}
local auth_opt=""
if $auth; then
auth_opt="--user bigfix:bigfix"
fi
local status=`curl --insecure $auth_opt $url -s -o /dev/null -w "%{http_code}"`
local retry=0
while [[ "$status" -ne 200 && "$retry" -lt 3 ]]; do
sleep 15
((retry++))
... |
722c934eed160ca2c6f01703b2b3648f5ecc68a0 | 584 | #!/tools/bin/bash
set -e
cd /tmp
tar xvf /sources/bzip2-1.0.6.tar.gz -C /tmp
echo "Successfully extract bzip2-1.0.6.tar.gz"
cd /tmp/bzip2-1.0.6
patch -Np1 -i /sources/bzip2-1.0.6-install_docs-1.patch
sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
make -f Makef... |
7c8cfb58136f37b38b613bf1bc69786f36634397 | 171 | #! /bin/bash
set -x
set -e
set -o pipefail
cd $LFS/sources
rm -rfv gawk-5.0.1
tar -xvf gawk-5.0.1.tar.xz
cd gawk-5.0.1
./configure --prefix=/tools
make
make install
|
c1fca6eb952d352c9d2ce161955b42c559c892cf | 92 | #!/bin/bash
scp /home/debian/BBBIOlib/Demo/Demo_US/test.jpeg oliver@$1:/home/oliver/data/
|
d2cc9fa3e390d1e510429add93084974b2e0538b | 564 | #!/usr/bin/env bash
function phpuser {
sudo -u azuracast php $@
}
export www_base="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export app_base=`realpath $www_base/..`
export util_base=$www_base/util
export tmp_base=$app_base/www_tmp
# Stop system tasks
service nginx stop
service cron stop
# Pull down updat... |
e275fa296cff7e68f260e6534f579491f9cf8a91 | 4,740 | #!/usr/bin/env bash
# see https://github.com/wp-cli/wp-cli/blob/master/templates/install-wp-tests.sh
if [ $# -lt 3 ]; then
echo "usage: $0 <db-name> <db-user> <db-pass> [db-host] [wp-version]"
exit 1
fi
DB_NAME=$1
DB_USER=$2
DB_PASS=$3
DB_HOST=${4-localhost}
WP_VERSION=${5-latest}
# TODO: allow environment vars fo... |
60d81e292f006c3cf2e8d6ad05f95cebd9e69cd8 | 195 | //geonames api
geonames=jmccleary
//weatherbit api
weatherbit=5921086fa74d4d36a38bc3652d4bfca3
//pixabay api
pixabay=20873600-37a38bfa9e5523a50f7de6b3f
API_KEY=273e6de6b60a71fdf3035f9d7675054e |
a72a5b08360b33fbc3143f8c9946245b5c6e0af0 | 594 | #!/bin/sh
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 26 23:44:11 2020
Second example of bash function
@author: esteban
"""
myfunc()
{
echo "myfunc was called as : $@"
x=2
}
### Main script starts here
echo "Script was called with $@"
x=1
echo "x is $x"
myfunc 1 2 3 | tee out.log
echo "x is $x"
echo "Script... |
e85c8f4cdf194d4076cf76b2b802675ea2f9cb03 | 36 | #!/bin/bash
export LANGUAGE="utf-8" |
3d9e6d2a24535b0e08b5ea6d11662c0f9dbce099 | 340 | for jar in `ls [bg]*.jar `
do
printf "_________ $jar _________\n\n"
javac -d "./bin/" -cp "./lib/hamcrest-core-1.3.jar:./lib/junit-4.13.jar:./lib/$jar" "./src/text/TestFlushLeft.java"
java -cp "./lib/hamcrest-core-1.3.jar:./lib/junit-4.13.jar:./bin/:./lib/$jar" org.junit.runner.JUnitCore text.TestFlushLeft
... |
e1057cdd8927d081f42847dbec8fa622c4a0a793 | 4,526 | #!/bin/sh -e
if ! [ -e ./package.json ] ; then
echo "Not in firenvim repository. Aborting."
exit 1
fi
if [ "$1" = "" ] ; then
echo "No new version specified. Aborting."
exit 1
fi
if [ "$(git rev-parse --abbrev-ref HEAD)" != "master" ] ; then
echo "Not on master. Aborting."
... |
e6283a124efde9572c0ac5c3f937172f3066492a | 152 | DATABSE = blog
DATABSE_HOST = localhost
DATABSE_USER = root
DATABSE_PASSWORD =
JWT_SECRET = secretpassword
JWT_EXPIRES_IN = 90d
JWT_COOKIE_EXPIRES = 90 |
cfa36423f55d347e9b111d015af286d37b230b12 | 4,928 | set -ex
ADVERT_DB_INSTANCE_NAME="advert-db-instance"
PAGE_DB_INSTANCE_NAME="page-db-instance"
DB_PASSWORD="QUBccProject"
DB_TEIR="db-n1-standard-2"
REGION="europe-west2"
ZONE="europe-west2-a"
#creating sql instance for advert db
gcloud sql instances create $ADVERT_DB_INSTANCE_NAME \
--tier="db-n1-standard-2" \
... |
5fe8327f7fb8a00e27c890bd23b8f5abeaf07e66 | 109 | if [ -f /etc/lftp.conf ] && cmp -s /etc/defaults/etc/lftp.conf /etc/lftp.conf
then
rm /etc/lftp.conf
fi
|
357edde240e32764777c964357b55ec267ec6283 | 429 | #!/bin/bash -e
install -v -d "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d"
install -v -m 644 files/wait.conf "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/"
sed "s/SSID_TOKEN/${WIFI_SSID}/" files/wpa_supplicant.tmpl | sed "s/PSK_TOKEN/${WIFI_PSK}/" > files/wpa_supplicant.conf
install -v -d "${ROOT... |
1de1688cf90e7ba2c29336606d24bd4a0aa781a9 | 1,230 | #!/bin/sh
# Use vfs_getname probe to get syscall args filenames
# Uses the 'perf test shell' library to add probe:vfs_getname to the system
# then use it with 'perf record' using 'touch' to write to a temp file, then
# checks that that was captured by the vfs_getname probe in the generated
# perf.data file, with the t... |
417cb0a411760f1787e890fe9f0d5753fe74b36f | 88 | #!/bin/sh
cat testTime | time ../TextMiningApp ../dico.bin > /dev/null
wc -l testTime
|
6e0bf7af3717ea577ad47badd5da3fa828a6f17f | 2,024 | #!/bin/bash
source $GPAIR_CONSTANTS_PATH
source $GPAIR_OUTPUTS_PATH
source $GPAIR_UTILS_PATH
echo-set-pair-usage() {
echo -e "\n $(output::bold::green " USAGE:") gpair set <initials> [options] \n"
echo -e " Sets your current pair.\n"
echo -e " $(output::bold::green "[OPTIONS]:")\n"
echo -e " $(output::help_f... |
805fcde9544c679dc10a6a5dca20208768841399 | 91 | #!/bin/bash
docker run --rm -w /src -v $(pwd):/src gradle:6-jdk11 gradle build --no-daemon |
2ba100f0e03fc754f7cd200c7e75478079bf97a4 | 412 | #!/bin/bash
set -x
set -e
if [ -z "${GB_ROOT_USER_PASSWORD}" ]; then
echo 'skipping root user'
exit 0
fi
chroot ${GB_ROOT} /bin/bash <<-EOF
source /etc/profile
set -x
set -e
# do not enforce password qulity checks
sed -i 's/enforce=.*/enforce=none/' /etc/security/passwdqc.conf
if printenv GB_ROOT_USER_PASSWORD ... |
7b392340d6bd3824451228f1f29662e547bf9b00 | 4,784 | #!/bin/sh
# If any command fails, cause the script to fail and exit with non-zero status.
set -e
# If any variable is used but unset, cause the script to fail and exit with non-zero status.
set -u
errorHandler () {
errorCode=$?
echo "$0:${BASH_LINENO[0]} error: Command failed: '$BASH_COMMAND'"
exit $error... |
f88c0474598fb2687fc90e37d4c3d872dae6dfcc | 352 | #!/bin/bash
JAILS=$(fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g')
INDEX=1
for JAIL in $JAILS
do
echo ""
echo -n "${INDEX}) "
fail2ban-client status $JAIL
((INDEX++))
done
echo ""
echo "$(find /var/log/syslog -type f -mtime -1 -exec grep "UFW BLOCK" {} \; | wc -l) blocks... |
d8bd9aa4363ff9ba54d4f6672da10dcf25328421 | 109 | FLASK_APP=run.py
FLASK_DEBUG=1
SECRET_KEY=thisissupposedtobeasecretbutisit
DATABASE_URL=sqlite:///database.db |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.