blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
a1e04fb2628bd2b4a2dfd3e4ae6932e14ddbc66d | 108 | MYSQL_ROOT_PASSWORD=rootgroot
MYSQL_DATABASE=site
MYSQL_USER=dbuser
MYSQL_PASSWORD=ghbt[fkb
MYSQL_DB_HOST=db |
50519dcf5421e57b192480a3f87d231d8bc5f0fa | 222 | #!/usr/bin/env sh
#service openstack-heat-engine restart
crm resource restart p_openstack-heat-engine
service openstack-heat-api restart
service openstack-heat-api-cfn restart
service openstack-heat-api-cloudwatch restart
|
0636e393bbf800e3e77f06afd6425185ceec9fd0 | 1,974 | #!/usr/bin/env bash
# Check the backups made with restic to Backblaze B2 for errors.
# See restic_backup.sh on how this script is run (as it's analogous for this script).
set -o errexit
set -o pipefail
[[ "${TRACE-0}" =~ ^1|t|y|true|yes$ ]] && set -o xtrace
# Clean up lock if we are killed.
# If killed by systemd, li... |
4c7dde34514652319bdd90cf34bd571bf0624c0b | 265 | #!/usr/bin/env bash
# This script is displaying "Holberton School" 10 times
h="0"
while [ $h -lt 13 ]
do
echo "Hour: $h"
i="1"
while [ $i -lt 60 ]
do
echo "$i"
case $i in "59")
;;
esac
i=$((i+1))
done
h=$((h+1))
done
|
ec32b6dac20667db074e6db0033140b579cb11ec | 147 | #!/bin/bash
set -e
set -x
CGO_ENABLED=0 godep go build -a github.com/jimmidyson/jolokia-proxy
docker build -t jimmidyson/jolokia-proxy:latest .
|
4e5d6340b00366075d6a40a1bca0899aaaa508a9 | 932 | #!/bin/bash
#VBoxManager bash script handler
command=$1
server="${@:2}"
case "$command" in
'start')
echo "Will start machine: ""$server"
VBoxManage startvm $server --type=headless
echo "DONE; \n"
;;
'save')
echo "Will save machine: ""$server"
for server
do
if [ "$server" != "save" ] && [ "$server" ... |
53c45ecee013271952cddcfccb3e062d8638832d | 37 | #!/bin/sh
docker build -t diapers .
|
6b93d38acfefbae9e8005ac6d46c90ac02aed9eb | 409 | docker-compose run kafka /opt/bitnami/kafka/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 \
--topic wiki_event_raw --partitions 1 --replication-factor 1
docker-compose run kafka /opt/bitnami/kafka/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 \
--topic wiki_event_stats --partitions 1 --replicati... |
53da450516d96a9442f5a16ac36c2cf8f5f410f5 | 257 | #! /bin/sh
case "$1" in
0) # uninstall
echo "stopping service beeeon-server..."
/usr/bin/systemctl stop beeeon-server.service \
&& echo "service beeeon-server has been stopped" \
|| echo "failed to stop beeeon-server service"
;;
1) # upgrade
;;
esac
|
ba84782fc6c2c215a3907ce85759eb33da3c44f8 | 341 | #!/bin/bash
set -x
aocl help > /dev/null 2> /dev/null || source ~/fpga/init_env.sh
rm -rf bin/*
./scripts/compile_kernel_arria10 align || exit 1
# ./scripts/compile_kernel_arria10 core || exit 1
# ./scripts/compile_kernel_arria10 post || exit 1
make BIN=bins/bin CPP=host/src/align_3k.cpp || exit 1
bins/bin/host ~/... |
7d973176a9c5b2b332ae57d4c567f0772a45f97c | 296 | #!/bin/bash
#$ -l rmem=35G
#$ -l mem=35G
#$ -M n.bulgakova@sheffield.ac.uk
#$ -m bea
cd /mnt/fastdata/md1nbu/PRJNA369618/fastq/SRR5224080
module load apps/R/3.3.1
R CMD BATCH count_reads_batch.R count_reads_batch.R.o$JOB_ID
|
7c1475736833fe3923d506927ffa759148b880fd | 94 | /Users/hashtagf/go/bin/swag init --dir cmd/ --parseDependency --output docs
docker-compose up |
2d1c7249239637a08e9a7edd44aa9e1d014facc3 | 256 | # Based on https://github.com/standardfile/ruby-server/blob/master/docker/environments/.env.app.development
RAILS_ENV=development
RAILS_SERVE_STATIC_FILES=true
DB_CONNECTION=mysql
DB_HOST=db
DB_DATABASE=standardfile
DB_USERNAME=root
DB_PASSWORD=secret123
|
977e9b064ea36bcb6fddbb2fffddbc2d50bf76a1 | 3,831 | #!/bin/bash
set +e
# usage: file_env VAR [DEFAULT]
# ie: file_env 'XYZ_DB_PASSWORD' 'example'
# (will allow for "$XYZ_DB_PASSWORD_FILE" to fill in the value of
# "$XYZ_DB_PASSWORD" from a file, especially for Docker's secrets feature)
file_env() {
local var="$1"
local fileVar="${var}_FILE"
local def="${2:-}"
i... |
d45718f916a4d05ef120c6fdca3876e10b7351ae | 81 | #!/bin/bash
#sleep 120
/bin/umount /SDS
/bin/mount -o rw,remount /SDS
exit
|
c5c95d2b90c4c31d92b9b114a4e37bd392f079ba | 213 | #!/bin/bash
#scripts="download_maps download_data data_processing"
scripts="download_data data_processing"
for script in $scripts; do
./scripts/${script}.sh
if [ $? != 0 ]; then
exit 1
fi
done |
3a7f0f0e31f36d9b3950e7755e3bdb2f319e8641 | 649 | #!/usr/bin/env sh
# Create environment nodes
docker exec zookeeper /opt/zookeeper/bin/zkCli.sh create /env ''
docker exec zookeeper /opt/zookeeper/bin/zkCli.sh create /env/dev ''
docker exec zookeeper /opt/zookeeper/bin/zkCli.sh create /env/dev/sd ''
docker exec zookeeper /opt/zookeeper/bin/zkCli.sh create /env/prod '... |
28f301624e52eb595497b99c51a7aab30d3bfb67 | 1,219 | #!/usr/local/bin/zsh
function check_blacklist() {
local list
local f
list=(/bin /usr/bin /sbin /usr/sbin /lib /libexec /usr/lib /usr/libexec /rescue)
f="${1}"
for l in ${list}; do
if echo ${f} | grep -q "^${l}"; then
return 1
fi
done
return 0
}
function do_the_procstat_thing() {
local p
local bin
... |
d97b5eafef6cfce16ffb093c5d2437a34c192c36 | 47 | #!/bin/sh
java -cp ./salsa1.1.5.jar:. pa2/Main
|
07ae8cbf9b1591a18d09b15fd3d23779700cb378 | 486 | #!/bin/bash
#
# a general scrot wrapper script
#
###
message() { echo 'usage: sshot [ -n <name> ] [ -f ] [ scrot options ]'; exit 1; }
shots_dir='~/pictures/screenshots'
name="desktop_$(date +%y%m%d%H%M)"
# grab some options for us, pass anything
# else directly to scrot
while [ -n "$1" ]; do
case $1 in
-h|--h... |
1e9f88e2b353f6afcc93a294792c11baa8460ef5 | 435 |
#!/bin/bash
# Enable RPS (Receive Packet Steering)
rfc=4096
cc=$(grep -c processor /proc/cpuinfo)
rsfe=$(echo $cc*$rfc | bc)
sysctl -w net.core.rps_sock_flow_entries=$rsfe
for fileRps in $(ls /sys/class/net/eth*/queues/rx-*/rps_cpus)
do
echo ffffffff > $fileRps
done
for fileRfc in $(ls /sys/class/net/eth*/queues... |
d1fb04d8a702b66a93baa9962c2f62c27851db0e | 960 | #!/bin/bash
arguments_count=$#
cargo_addition=""
if [ "$1" == '-e' ] || [ "$1" == '--example' ]; then
if [ $arguments_count != 3 ]; then
echo "should be 3 arguments, but you provide only" $arguments_count
exit 1
fi
example_name=$2
cargo_addition='--example '$example_name
elf_file=$CARGO_TARGET_DIR'/thumbv7... |
b7055289c46c11c5b6b72b5286f63f8c89afdc3e | 884 | #!/bin/bash
if [[ -z "${CIRCLE_TOKEN}" ]]; then
echo Cannot trigger release workflow. CircleCI user token not found.
exit 1
fi
BRANCH=1.3.x
echo -e "\nTriggering release workflow on branch: ${BRANCH}.\n"
status_code=$(curl --request POST \
--url https://circleci.com/api/v2/project/github/gresham-computing/op... |
ae49c0b7c3540c40f96b2cdd8729e559a4e1b6f7 | 1,024 | # Maintainer: Kyle Rassweiler <dev at kylerassweiler dot ca>
pkgname=refind-theme-dracula
pkgver=1.0.0
pkgrel=2
pkgdesc="Simple theme inspired by the Dracula palette"
arch=('any')
url="https://github.com/rassweiler/refind-theme-dracula"
license=('MIT')
depends=('refind')
source=("${url}/releases/download/${pkgver}/${p... |
98448c6fb0de03c3d21e43d9440a96fb9c50fdff | 513 | mkdir -p build
cd build
cmake -G "Ninja" \
-D CMAKE_BUILD_TYPE:STRING="Release" \
-D CMAKE_INSTALL_PREFIX:FILEPATH=$PREFIX \
-D CMAKE_PREFIX_PATH:FILEPATH=$PREFIX \
-D CMAKE_INSTALL_LIBDIR:FILEPATH=$PREFIX/lib \
-D SIMAGE_RUNTIME_LINKING:BOOL=ON \
-D USE_EXTERNAL_EXPAT:BOOL=ON \
... |
464f2a98e416064bd148329f77c3550c6cc1e597 | 134 | export DB_NAME="db.sqlite3"
export SECRET_KEY="thisIsASuperSecretKeyForHurbChallengeDevEnvOnlyPleaseDoNotUseThisKeyInProductionEnvs"
|
59e647d01371098186fbd4d2f69aa0589449bea5 | 843 | ################################################### * envs
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles
export NODE_BUILD_MIRROR_URL="https://npm.taobao.org/dist"
################################################### * inits
eval "$(nodenv init -)"
eval "$(pyenv init -)"
[ -f "~... |
d5e8777770492b1dff0f5bb4e0babcd48588a56d | 1,347 | #!/bin/bash
# Description: A script to call the AWS CLI to create a new iam user.
# This script requires the latest version of the AWS CLI and should be run on a unix environment.
# You'll also need to make the script executable using the following command
# `chmod +x ./setup-new-iam-user.sh`
#
# Usage:
# Run from comm... |
72008c1f388520a4ea62a4e16d4028936886b3e0 | 491 | #!/bin/bash
# AMX Mod X
#
# by the AMX Mod X Development Team
# originally developed by OLO
#
# This file is part of AMX Mod X.
# new code contributed by \malex\
test -e compiled || mkdir compiled
rm -f temp.txt
for sourcefile in *.sma
do
amxxfile="`echo $sourcefile | sed -e 's/\.sma$/.amxx... |
73f7e2ff2ba940bbdb17a7f45e1f474eb8ab47a3 | 1,074 | pkgname=python-pomegranate
pkgver=0.6.1
pkgrel=1
pkgdesc="Pomegranate is a graphical models library for Python, implemented in Cython for speed."
arch=('i686' 'x86_64') # packages contains arch dependend libs
url="http://pypi.python.org/pypi/pomegranate/"
license=('MIT')
depends=('python' 'cython' 'python-networkx' 'py... |
c5b299b93e1727e3f892890d93425a5260502e63 | 2,130 | #!/usr/bin/env bash
# Reset project
git clean -df
git checkout -- .
# Rollbacks in case I need to re-run this script
# rake db:rollback
# rake db:rollback RAILS_ENV=test
## scan/replace Team/team to Organisation/organisation
find app -name "*.rb" -print | xargs sed -i 's/Team/Organisation/g'
find app -name "*.rb" -p... |
ab4e4f5eb5a41468ba494da408826849acc5a604 | 18,903 | #!/usr/bin/env bash
# creates derivative video files
# requires ffmpeg compiled with libx264 (yuv 8-bit), libvpx, libopus, and ffprobe
# defaults, can be overwritten with options
FFMPEG_PATH="ffmpeg"
FFPROBE_PATH="ffprobe"
# default ffmpeg input options
INPUTOPTIONS+=(-nostdin)
INPUTOPTIONS+=(-vsync 0)
INPUTOPTIONS+=... |
99c6d4251f217437d4db0499b25dddb09feedbae | 72 | for file in "${HOME}"/.config/bash/*.bash; do
source "${file}"
done
|
ea456deff1dbba25f12ffb2c6dc16f34069f144d | 453 | #!/bin/bash
_hk_commands()
{
hk help commands|cut -f 2 -d ' '
}
_hk()
{
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $( compgen -W "$(_hk_commands)" $cur ) )
elif [ $COMP_CWORD -eq 2 ]; then
case "$prev" in
help)
... |
4b0513740a918b0e65c90ac567592828b943c722 | 2,744 | #!/bin/bash
set -e
FULLLOG=/tmp/serversetup.log
echo "Full logfile: /tmp/serversetup.log"
echo " - Installing required components" | tee -a ${FULLLOG}
sudo apt-get update >> ${FULLLOG}
sudo apt-get -y install \
software-properties-common \
wget \
git >> ${FULLLOG}
if ... |
cc4c928b0a57abe044067c69930268ec2c6fc334 | 44 | meteor --settings settings.json --port 4020
|
4ba4f4d05e2c968464bec725affd2af138b36b38 | 3,583 | #!/bin/bash
# shellcheck disable=SC1091
source ../bunit.shl
testSetup () {
touch testFile
}
testAssertEqualsWithStrings () {
assertEquals "something" "something"
}
testAssertEqualsWithIntegers () {
assertEquals 10 10
}
testAssertEqualsWithIntegers2 () {
assertEquals 5 $((10 - 5))
}
testAssertEq... |
3c355caf924bbf7ba91b2db4e1bd50e29e1f509e | 117 | #!/bin/bash
set -e
cd `dirname $0`/../ttf-bitstream-vera-1.10
mkdir -p $BUILD_DIR/fonts
cp *.ttf $BUILD_DIR/fonts
|
b0361b272dadcb4051c3731eb9ed1f71461ca2dc | 349 | mkdir devops
cd devops
ls
clear
nano text.1
nano text.2
nano text.3
clear
ls
git init
apt get install git
sudo apt get install git
sudo apt install git
git init
clear
git status
clear
ls
git add .
git status
git commit -m "first commit adding text and text.2 and text.3 and text.3y" .
git status
clear
nano text.4
git s... |
ae696c9cfd12db3bf383f6c349be8aa66878c3d4 | 1,116 | # CONFIGURATION HOST
SERVER_NAME=malbec
# GRAFANA
GRAFANA_TAG=7.5.6
GRAFANA_SOURCE_DATA_VOLUME=/grafana/data
GRAFANA_TARGET_DATA_VOLUME=/var/lib/grafana
# INFLUXDB v1
INFLUXDB_TAG=1.8
INFLUXDB_SOURCE_DATA_VOLUME=/influxdb/data
INFLUXDB_TARGET_DATA_VOLUME=/var/lib/influxdb
# INFLUXDB v2
INFLUXDB2_TAG=2.0.6
INFLUXDB2_... |
d82983662d8ebf5752a524a7a935d073fe743e64 | 40 | #!/bin/bash
python predict.py $1 $2 $3
|
c1b0bf7397c0bc6c5cbfa60d36d5c41199af037e | 737 | #!/bin/bash
set -x
date
start_date=$(date)
chmod 777 start_web.sh
export PATH="/tmp/usr/bin:${PATH}"
export CFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="-fuse-ld=gold"
gcc --version
g++ -fuse-ld=gold -Wl,--version
gcc -c -Q -march=native --help=target
gr... |
b702b824cd2dfcdaf56e81f1bcfcb73458ea31d7 | 178 | #!/bin/sh
#What is the option for making intermediate directories
#as required, so that you can create,
#.e.g., ~/foo and ~/foo/bar with a single command
sudo mkdir -p /foo/bar
|
18c404d7c0799c04c82ed1d9dda4894fd9b627f8 | 197 | #!/bin/bash
docker-compose build build-env
docker-compose run build-env bash -c '(cd casper-node; make build-client-contracts; cp -R /casper-node/target/wasm32-unknown-unknown/release/ /build/)'
|
dfa72c5f6614b8b2674ad6b2af03bd0c264e1909 | 2,526 | #!/bin/sh
#SBATCH --job-name=merging_significant_regions
#SBATCH -p short
#SBATCH --nodes=1
#SBATCH --ntasks=1 ... |
e19d20769caf8f093d4a0c81f67926822bd4ff36 | 4,603 | #!/bin/bash
let y=1
let z=1
let clearancelvl=2
let used=0
let fileuse=0
echo "------------------------------------"
echo "CONGRADULATIONS. WELCOME TO LEVEL 3 "
echo "------------------------------------"
echo " "
while [ $y -eq 1 ]
do
echo "Complex: "
read maininput
case $maininput in
"help")
echo "help: displays th... |
ae44850fdab9ea906ba639cb366e20a4bd4ea154 | 1,446 | # Maintainer: Fabien Wang <fabienwang[at]eliteheberg[dot]fr>
pkgname=modelio-open
pkgver=3.3.1
pkgrel=1
pkgdesc="An open source UML tool that supports the UML2 and BPMN2 standards."
url="http://www.modelio.org/"
arch=('i686' 'x86_64')
license=('GPL3' 'APACHE')
depends=('glibc' 'gcc-libs' 'atk' 'cairo' 'gtk2' 'glib2' 'l... |
49d3f57bc0cd15571ccff1f3dd6fde0f2c43a540 | 108 | ATLAS_URI=mongodb+srv://exercise:mern123@exercise-tracker-1ljyp.mongodb.net/test?retryWrites=true&w=majority |
df0508b74fc491279187b8b3e64c63ed9a97bd1c | 590 | #!/bin/bash
echo "-------------------------------------------"
echo "Server_Name CPU(%) Memory(%) Swap(%) Uptime(%)"
echo "-------------------------------------------"
#for server in `more /opt/scripts/server-list.txt`
#do
scpu=$(cat /proc/stat | awk '/cpu/{printf("%.2f%\n"), ($2+$4)*100/($2+$4+$5)}' | awk '{p... |
d2784d404d76441188482831750237f1cc275f6d | 2,695 | #!/bin/sh /etc/rc.common
# Copyright (C) 2013-2014 OpenWrt.org
# Copyright (C) 2018-2022 Tano Systems LLC
START=00
STOP=90
HWCLOCK=/sbin/hwclock
extra_command "systohc" "Save system time to hardware RTC"
extra_command "hctosys" "Load system time from hardware RTC"
extra_command "systz" "Apply timezone"
LOG="logge... |
01c307edaa3b5e69d2559a68edbfd3d7f6d53768 | 4,779 | #!/bin/bash
# LinuxGSM command_mods_uninstall.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Uninstall mods along with mods_list.sh and mods_core.sh.
commandname="MODS-REMOVE"
commandaction="Removing mods"
moduleselfname="$(basename "$(readli... |
bce9bad6758b65dcca5c41ca6c8cb60a7be356f6 | 1,363 | #!/bin/sh
print_help() {
echo "USAGE: $0 [-h][-b USBPATH][-p PORT][-a off/on/reset]"
}
CFG=""
B_HUB=""
while [ $# -ge 1 ];do
case $1 in
-f)
shift
CFG=$1
shift
;;
-p)
shift
VPORT=$1
shift
;;
-a)
shift
ACTION=$1
shift
case $ACTION in
on)
;;
off)
;;
reset)
;;
switch_on)
ACTION=on
;;
switch_off)
A... |
13725d302bb36e9e582484f9899a6322e5ba197b | 365 | #!/bin/bash -xe
# Update with optional user data that will run on instance start.
# Learn more about user-data: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
#
# Output is logged to /var/log/cloud-init-output.log
echo "Cleanup user data"
# remove user data script
rm -rf /var/lib/cloud/instance/s... |
34e5aa128306b32eb53114dde2365f5b36e541a2 | 729 | #! /bin/bash
TIMER_SRC_DIR="/Users/johnmahowald/Desktop/day/07.31.2018/timer"
NUMBER_DIR="$TIMER_SRC_DIR/numbers"
while true; do
now=$(date +"%H:%M:%S:%p")
output_display=""
for idx in $(seq 7); do # there are 7 lines in each font file
# output_line=$(($idx - 1))
output_line=$idx
for l in $(seq $... |
4a3f3c5f712bb0b4383d4c7f693c63cca7450bb3 | 569 | #!/bin/bash
# Connect to the running mycontainer2
# Ping mycontainer3 by name
docker exec mycontainer2 \
ping -w 4 mycontainer3
# Connect to the running mycontainer2
# Ping mycontainer1 by name
#
# This functionality is not available for the default bridge network.
# Both container1 and container2 are connected t... |
11479e86be6fbda03f6b6a12c17f3bf192bc80da | 382 | #!/bin/bash
#PBS -q secondary
#PBS -l nodes=1,flags=allprocs
#PBS -l walltime=00:30:00
#PBS -N gs3_lo_s_Ndet2_gsw0.0_8
#PBS -e gs3_lo_s_Ndet2_gsw0.0_8.perr
#PBS -o gs3_lo_s_Ndet2_gsw0.0_8.pout
module load openmpi/3.1.1-gcc-7.2.0
module load intel/18.0
cd ${PBS_O_WORKDIR}/run1s/
mpiexec ../../../../mainline/bin/qwalk g... |
1c3d2156a3d37d96a821ccc9546f8351437a5602 | 1,597 |
#!/bin/sh
##
# Script to delete a Kubernetes project with a StatefulSet running a MongoDB Replica Set, to a local Minikube environment.
##
TMPFILE=$(mktemp)
/usr/bin/openssl rand -base64 741 > $TMPFILE
kubectl create secret generic shared-bootstrap-data --from-file=internal-auth-mongodb-keyfile=$TMPFILE
rm $TMPFILE
... |
a458331ddcd60d918eff1d6b8a507c91002db196 | 2,459 | #!/bin/bash
CDIR=$(cd `dirname "$0"` && pwd)
cd "$CDIR"
print_red() {
printf '%b' "\033[91m$1\033[0m\n"
}
print_green() {
printf '%b' "\033[92m$1\033[0m\n"
}
render_template() {
eval "echo \"$(< "$1")\""
}
CONTEXT=""
#CONTEXT="--context=foo"
NAMESPACE="monitoring"
ES_DATA_REPLICAS=$(kubectl get nodes --no-h... |
8f273cd35218631c063c79b8b7b714f164da4124 | 36 | TZ=Europe/Athens
PUID=1000
PGID=1000 |
dfd61cc0531e1688e7f4e58e9524e8cab2930cfd | 8,708 | ###############################################################################
# .bashrc
###############################################################################
#default options below
###############################################################################
# Source global definitions
if [ -f /etc/bashrc... |
92f8a0809af5951ceb950ff17425b485a61c3081 | 91 | PGUSER = postgres
PGHOST = 127.0.0.1
PGDATABASE = DATABASE
PGPASSWORD = PASS
PGPORT = 5432
|
c632b70450813d83f991fec99bc6f7776d5f7045 | 892 | #!/usr/bin/env bash
# Runs a command as the LOCAL_USERID if passed in, otherwise stick with root
# Check the UID
if [ "$USERID" ] \
&& [ "$USERID" != "root" ] \
&& [ "$USERID" -gt 1 ]
then
# Create the user
useradd --create-home --shell /bin/bash --uid "$USERID" dockeruser
# Check the GID
if [ "$GROU... |
5be4da22776ce4d4dab15d5cbf14f8fb6401be5e | 3,849 | #!/bin/bash
#MONERODO script to setup pool wallet
echo "This script configures your Monerodo with a new pool wallet."
echo "In order for your Monerodo to work properly, your pool wallet password is stored in a configuration file"
echo "It is HIGHLY recommended that your pool wallet is different than your primary wal... |
ee1db900ec88741fc1bdbd337d7814016c0f5cec | 3,732 | #!/bin/bash
set -e
RESOURCE_GROUP_1=${1}
RESOURCE_GROUP_2=${2}
CLUSTER_DEFINITION_1=./templates/kubernetes.east.json
CLUSTER_DEFINITION_2=./templates/kubernetes.west.json
VNET_NAME=KubernetesCustomVNET
SUBNET_NAME=KubernetesSubnet
VNET_1_FIRST_TWO=10.140
VNET_2_FIRST_TWO=10.240
LOCATION_1=westcentralus
LOCATION_2=... |
06d82ab6da178b9a33a1a00e59a7c08159a4c7fd | 1,143 | #!/bin/bash
function todoLog(){
# Puts all #TODO into the the todo.log file
grep -r "#TODO" * --exclude=project_analyze.sh > todo.log;
echo "TODO is placed in todo.log";
}
function fileCount(){
# Outputs the count of haskell, java script, css , python, html and bash script files
haskell=$(find . -type f - name ".hs" |... |
40478b038edf739026e36b239f73d903b601713f | 71 | javac ../*.java
jar cvfm ../WumpusGame.jar ../manifest.txt ../*.class
|
7a1da2b660cc5ceee5edb7f1bbe2394aa3678d15 | 382 | #echo "Type the location of a FILE to check: "
#read FILE
#Takes filename as argument
FILE=$0
for FILE in $@
do
[ -f $FILE ] && echo "This is a file"
[ -d $FILE ] && echo "This is a directory"
if [ -d $FILE ]
then
echo ""
echo "Contents of Directory: "
echo ""
ls $FILE... |
ef33fe39bcb6be88879c5bd16f4cd473fb035617 | 608 | #!/bin/bash
dnsname=${1}
ctrlDnsName=${2}
baseDomainHostedZoneId=${3}
aws route53 change-resource-record-sets --cli-input-json '{
"HostedZoneId": "'${baseDomainHostedZoneId}'",
"ChangeBatch" :{
"Comment": "Delete CNAME for DSM to ctrl",
"Changes": [
{
"Action": "DELETE",
"ResourceReco... |
247c0e9edc0e5c336d817bd0beee206f50da7741 | 1,453 | ENHANCD_FILTER=fzf
FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
FZF_DEFAULT_OPTS='--inline-info --preview-window right:40% --preview "ccat -C always {}"
--color=bg+:#3c3836,bg:#1d2021,spinner:#fb4934,hl:#586e75
--color=fg:#ebdbb2,header:#928374,info:#689d6a,pointer:#fb4934
--co... |
c9b5972b9ada2a6ca64e36f05fa5c693a0a75413 | 462 | #!/bin/sh
# - pre exec -
module load miniconda-3
conda activate $HOME/ve.rp
$HOME/mongo/bin/mongod -f $HOME/mongo/etc/mongodb.theta.conf
export RADICAL_PILOT_DBURL="mongodb://rct:jdWeRT634k@`hostname -f`:59361/rct_db"
export RADICAL_LOG_LVL="DEBUG"
export RADICAL_PROFILE="TRUE"
# - exec -
$HOME/DrugWorkflows/workfl... |
f1e59d1765e63b2e5ade282588d0c7c7e0718b78 | 398 | #!/bin/bash
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
echo "Linux detected."
sudo apt install gcc-avr avr-libc avrdude
elif [[ "$OSTYPE" == "darwin"* ]]; then
echo "MacOS detected."
echo "Installing osx-cross/avr..."
brew tap osx-cross/avr
brew install avr-gcc
echo "Installing avrdude..."
#brew instal... |
b25b9ec3b2fa7581f7fe1b2b1e202c1f95c91ba8 | 384 | #!/bin/sh
# $FreeBSD: src/tools/regression/fstest/tests/rmdir/12.t,v 1.1 2007/01/17 01:42:11 pjd Exp $
desc="rmdir returns EINVAL if the last component of the path is '.' or '..'"
n0=`namegen`
n1=`namegen`
expect 0 mkdir ${n0} 0755
expect 0 mkdir ${n0}/${n1} 0755
expect EINVAL rmdir ${n0}/${n1}/.
expect EINVAL rmdir... |
c389b5eb573afbfc455e02511a20989b0d5ce82a | 5,555 | #!/usr/bin/env bash
function wait_for_deployment_done() {
echo "Waiting for $CDS_DEPLOYMENT deployment done"
local idle_count=0
local active_tasks
local starting_vms
local failed_vapp
local failed_svc
local redeploy_svc_count=0
while [ true ]
do
let idle_count=idle_count+1
[ $($CDS_CLI tasks... |
78d9bcc8d8b754ec80090cb4e6eaf21d09f68295 | 835 | #!/bin/bash
cd /gpfs/users/mantecap/CMSSW_11_1_0/src/MonoHGenTree/MonoHGenTree2DScans/python
eval `scramv1 runtime -sh`
ls /gpfs/projects/cms/fernanpe/DarkHiggs_MonoHs_HsToWWTo2l2nu_mhs_400_mx_300_mZp_800_TuneCP5_13TeV/RunIISummer20UL18_wmLHEGEN/*/*/wmLHEGEN_inRAWSIM_*.root|sed 's/^/file:/'>list/list_400_300_800.txt
cm... |
c8367cab7f3db810567ef0a9ef14cc32116cfe05 | 177 | gcc -c -std=c99 -o jetsonGPIO.o jetsonGPIO.c
g++ -c -std=c++0x -o linux_spi.o linux_spi.cpp
g++ -c -std=c++0x -o main.o main.cpp
g++ -o spiTest jetsonGPIO.o linux_spi.o main.o
|
d2f24028d51945e317215a2b04ba2be42ba19cfc | 157 | #!/bin/bash
while ! nc -z "$LOGSTASH_HOST" "$LOGSTASH_PORT"; do
echo "Waiting for the Log Service"
sleep 5
done
java $JAVA_OPTS -jar $ARTIFACT_FILE |
9134596840a4fe3fbc2c9f2333404ea4a9dca07b | 123 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
#Call the other script
( cd "${DIR}" ; python -m SimpleHTTPServer ) |
a2566c4747c4b1d425ef3a0e66bfead48b6dde43 | 2,366 | AUTH0_CLIENT_SECRET=xvN7_wAjdg2qTBk-yv4W0P1piNSYPT8Ie3EWCP2Wh6ucEYZCySujJb76-JJ8W8rL
AUTH0_CLIENT_ID=ZVc76goDgE70BwtzczOfOWBxsV1m9P7W
AUTH0_DOMAIN=javs.auth0.com
AUTH0_API_KEY=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik9EUXdPVFZHUlVFeFF6RTFSa0pCUVVFM04wVTRSa1kzTURjMU16STRNems1TlRaQk1FRkNPUSJ9.eyJpc3MiOiJodHRwczovL2p... |
deb7561ff11683728d2c49cffbc93757f742e599 | 224 | #!/bin/bash
## bump version
o=$(./version android)
if [ $# = 1 ]; then
v="$1"
else
v=$(($o + 1))
fi
echo "set android version code $o -> $v"
sed -i "s/android-versionCode=\"$o\" /android-versionCode=\"$v\" /" config.xml
|
622a52b55c3c9002e075802bc2b231a46fe25af9 | 189 | #!/bin/bash
echo "Firstly boot a Android TV with Android Studio"
echo "Reload the application with Double tap R + R or CTRL + M"
echo "Starting... the Application"
react-native run-android
|
e8f94e0388a48a0d962b42a3fd3b21ae1bb3e6c2 | 5,663 | #!/bin/bash
PROGNAME=$(basename $0)
#sysfs
SYSFS_CPU="/sys/devices/system/cpu"
SYSFS_NODE="/sys/devices/system/node"
CPU_POSSIBLE_COUNT=$(ls -d ${SYSFS_CPU}/cpu[0-9]* | wc -l)
NODE_POSSIBLE_COUNT=$(ls -1d ${SYSFS_NODE}/node[0-9]* | wc -l)
rm -rf output
mkdir -p output
if [ 1 -eq 1 ]; then
echo ">>>$PROGNAME: Comp... |
91a15a5b52aeb0e91690ef75a41e881b7b597f73 | 142 | #!/bin/sh
python cmgPostProcessing.py --leptonSelection=soft --samples=$1 &
python cmgPostProcessing.py --leptonSelection=hard --samples=$1 &
|
bbdb6b6201a64cd1279bbbdc370eeb11dec375e5 | 1,964 | #!/bin/bash
# This set of tests must be run in a clean environment
# It can either be run in docker of github actions
. $HOME/.asdf/asdf.sh
[[ -z ${DEBUGX:-} ]] || set -x
set -euo pipefail
sep=" "
[[ -z ${ASDF_LEGACY:-} ]] || sep="-"
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function test_plu... |
5eaed328fbdd087cb075234f382d0e5c52d1c757 | 4,671 | #! /bin/bash
# -*- mode: sh -*-
KEY=$RANDOM
res1=$(mktemp --tmpdir term-tab1.XXXXXXXX)
res2=$(mktemp --tmpdir term-tab2.XXXXXXXX)
res3=$(mktemp --tmpdir term-tab3.XXXXXXXX)
out=$(mktemp --tmpdir term-out.XXXXXXXX)
# cleanup
trap "rm -f $res1 $res2 $res3 $out" EXIT
export YAD_OPTIONS="--bool-fmt=t --se... |
9dc0e91547f7fa92b1424ac236b5e404380cc83d | 161 | #!/bin/sh
gcc -o bit_test bit_test.c -lm
/bin/cp -f project_template.cmd project.cmd
./bit_test > temp.out
/bin/cat temp.out >> project.cmd
/bin/rm -f temp.out
|
bf6b6c2de2051d07c887110020bfd5d3f0fe154c | 485 | #!/bin/bash
# $1 = username and password
# $2 = org
# $3 = space
# $4 = space role
cf create-user $1 $1
cf set-space-role $1 $2 $3 $4
USERNAME=admin
HOSTNAME=node8
MYSQLSTART='mysql -u root robocode -e "insert into roles (userid, role, space, password) values('
VALUES="'"$1"','"$4"','"$2$3"', encrypt('"$1"','JBS')"... |
af68ce19665029dc42fcafe42fd4c458acb146bf | 263 | #!/bin/bash
# CS 2017.1.7
# Sets up the program Picovoice Cheetah.
#
set -e
[ -d ../.env_cheetah ] && rm -Rf ../.env_cheetah
virtualenv -p python3.7 ../.env_cheetah
. ../.env_cheetah/bin/activate
pip install -r ../requirements.txt
time python test_cheetah.py
|
0324599056eab06997ac704f02fb534764cb0449 | 41 | #!/bin/sh
_tunnel $1 1.hk.ali.veryweb.me
|
0076b4cd30a58f6da9be1e7d4a9c8ab32c179179 | 45 | #!/bin/bash
phpunit $1 > "temp.log" &
wait;
|
b68c3fa492bc6b58db5ccbb670fb2e76a7af53de | 142 | #!/usr/bin/env bash
sudo apt-get update
# need make to build redis
sudo apt-get install -y git ruby make supervisor
sudo gem install redis
|
9a8225ad22288ea3d8224aa22040349067c0242d | 2,358 | # total 7 files
./spksort.py cluster --njobs=3 data/d001_Chabo/data_postproc/z_new_psfpk/Chabo_20110302_RSVPNicole305_S110204_002.c1.feat.h5 data/d001_Chabo/data_postproc/z_new_psfpk/Chabo_20110302_RSVPNicole305_S110204_002.c2.clu.h5 --ref=data/d001_Chabo/data_postproc/z_new_psfpk/Chabo_20110302_RSVPNicole305... |
f91d85dfd7584a59389533163b4145ded6c9309e | 33 | brew cask install font-russo-one
|
7c77a89dbc0268f28cf04fe9158dd340837d5d7b | 1,248 | #!/bin/sh
MYHOME=`pwd`
light="light.sh"
cat > $light <<EOF
#/bin/sh
usage()
{
echo "Usage: "
echo " \$0 <project name> "
echo " "
return 0
}
if test \$# -ne 1; then
usage
exit 1
fi
NAME=\$1
EOF
base=`find $MYHOME -type d |gre... |
6a7016311175dac0d6d81129aabf450761f58b70 | 540 | #!/bin/sh
set -e
case "$1" in
configure)
systemctl daemon-reload
if [ -z "$2" ]; then
if ! getent passwd wirelogd >>/dev/null 2>&1 ; then
useradd --home-dir /var/run/wirelogd --shell /usr/sbin/nologin --system --user-group wirelogd
if command -v setfacl >... |
2828b3b1e44eb7e5c09fb92b7abe713b4db823b0 | 5,935 | #!/bin/bash
###
# So, the purpose of this file is to do the actual install of sas, mostly using ansible as the driving engine. It expects to be a long running process on the box and not to need to be interupted. In case of an error, it should exit uncleanly.
# This expects to be run by the install_runner_base.sh, which... |
65bd07d7eaf397b75787cd34c8776fa9614743c9 | 1,594 | # Splits data into train, dev, and test (60%, 20%, 20%). This split is not used per se because we ended up needing two splits, so we used train and dev and test combined.
# Example: input: data/Posts_Subset.xml_combined_mallet, output in data folder: MetaData_mallet_*, Posts_mallet_*, Tags_mallet_*, Titles_mallet_*
fi... |
2efd994210300b88829733ea3771cd1c92de8aaa | 126 | #!/bin/bash
echo "Waiting for DB to fire up...."
./wait-for-it.sh db:27017
echo "Db started"
sleep 4
ls -l
set -e
exec $@
|
7aa2c53b9a50781b191c539a72da84febe02daff | 1,942 | #!/bin/bash
# Disable Strict Host checking for non interactive git clones
# Enable custom nginx config files if they exist
if [ -f /var/www/html/conf/nginx/nginx.conf ]; then
cp /var/www/html/conf/nginx/nginx.conf /etc/nginx/nginx.conf
fi
if [ -f /var/www/html/conf/nginx/default.conf ]; then
cp /var/www/html/co... |
6ffd3b7cfbe508a78c5d4d573401949bc7a668fb | 187 | #!/bin/bash -x
echo "Guess the number between 1 to 100"
low=1
high=100
mid=0
mid=$(((low+high)/2))
isNotMagicNumber=1
while (($isNotMagicNumber==1))
do
echo $notMagicNumber
done
|
8c673acba7528e9cf71b0d5a367c5aa3fedaffbb | 215 | #! /bin/bash
source ~/python-2.6/virtenv/bin/activate
chmod +x $OPENSHIFT_REPO_DIR/.openshift/cron/daily/InsiderCollector.py
nohup python $OPENSHIFT_REPO_DIR/.openshift/cron/daily/InsiderCollector.py &> /dev/null & |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.