text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
# http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permi...
the_stack
source "$(dirname "${BASH_SOURCE}")/../../hack/lib/init.sh" trap os::test::junit::reconcile_output EXIT os::test::junit::declare_suite_start "cmd/admin/certs-validation" CERT_DIR="${BASETMPDIR}/certs" mkdir -p -- "${CERT_DIR}" pushd "${CERT_DIR}" >/dev/null # oadm ca create-signer-cert should generate certificate f...
the_stack
NAME=$0 # defaults for global variables set by commandline target="" filter="" verbose=0 resume=0 # extra options videotype="" videosubtype="" sidtype="" ciatype="" memoryexpansion="" # globals set by utility functions that can be used in the hooks refscreenshotname="" source "./chameleon-hooks.sh" source "./u64-hoo...
the_stack
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/ArchiSteamFarm:/opt/Manage_ArchiSteamFarm:/root/.nvm/versions/node/v8.11.1/bin export PATH # fonts color Green="\033[32m" Red="\033[31m" Yellow="\033[33m" GreenBG="\033[42;37m" RedBG="\033[41;37m" Font="\033[0m" Green_font_prefix="\033[32m" R...
the_stack
############################################################################### # Argument parsing if [ "$2" == "" ]; then echo "ERROR: usage: $0 JOBS_FILE NSTOOLS_CHECKOUT_LAST_COMMIT" exit 1 fi JOBS_FILE="`realpath $1`" NSIMD_NSTOOLS_CHECKOUT_LATER="$2" cd `dirname $0` #set -x set -e #########################...
the_stack
# This was modified from run_tdnn_lstm_1a.sh, making similar # changes as the diff from run_tdnn_lstm_1a.sh->run_tdnn_1c.sh # in egs/tedlium/s5_r2/local/nnet3/tuning, # specifically: # changing chunk_left_context to zero, shrink from 0.99->1 # (since it's not applicable to ReLUs), and removing # the deriv-truncate-marg...
the_stack
# Copyright 2019 Antrea Authors # # 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 applicable law or agreed to in writin...
the_stack
################################################### # Check if account name is valid by a regex expression # Globals: None # Arguments: 1 # ${1} = Account name # Result: read description and return 1 or 0 ################################################### _account_name_valid() { declare name="${1:-}" account_nam...
the_stack
base_dir=base OUT=out exe_dir=.. exe_name=sclite clean=TRUE DATA=. ### ### File: tsclite.sh ### Usage: tsclite.sh [ -en exe_name | -nc | -clean ] ### ### for i in $* do case $i in -nc) clean="FALSE";; -en) exe_name=$2;; -clean) echo "Cleaning out tsclite.sh's directory" rm -rf $OUT Faile...
the_stack
# # assert.bash # ----------- # # Assertions are functions that perform a test and output relevant # information on failure to help debugging. They return 1 on failure # and 0 otherwise. # # All output is formatted for readability using the functions of # `output.bash' and sent to the standard error. # # Fail and disp...
the_stack
# enable debugging & set strict error trap set -x -e # change Home directory export HOME=/mnt/home mkdir /mnt/cuda export CUDA_ROOT=/mnt/cuda mkdir /mnt/tmp export TMP_DIR=/mnt/tmp # source script specifying environment variables source ~/.EnvVars # change directory to Temp folder to install NVIDIA driver & CUDA ...
the_stack
INCLUDED_SH=INCLUDED_d919491ac20c4579a97c90c770536ff4; if [ ! -z ${!INCLUDED_SH} ]; then return 0; fi; eval ${INCLUDED_SH}=true LXC_SOURCE_HOME="$1" LXC_HELPERS_HOME=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")") source "$LXC_HELPERS_HOME/util.sh" # ------- # Globals # ------- LXC_CONTAINER_TYPE= LXC_CONTAINER_DIS...
the_stack
# Reset the simulator # You need plow-through access to the simulator via ssh, which is usually granted # thanks to the AIO settings and the cisco simulator. # For an example of /root/reset.sh, look at lglw1045. reset_simulator() { if [ "${SIM}" = "1" ]; then /usr/bin/sshpass -p ${HW_SIMULATOR_DEFAULT_PASSWORD} ss...
the_stack
############################################################################## # ibmcloud-openshift.sh # # Will assist in deploying an OpenShift cluster to the IBM Cloud. # # Pass --help for usage information. # ############################################################################## set -u errormsg() { echo ...
the_stack
# Author: Redoracle # Pool: Stakelovelace.io # TG: @redoracle # Website: https://stakelovelace.io/tools/jstatus-watchdog/ # # To keep logs of this WatchDog tool please use it as described below. # Usage: ./jstatus.sh # # # How the fork/stuck check works: # The script will retrieve the last block hash elaborated by th...
the_stack
main() { OS=$(detect_os) GOARCH=$(detect_goarch) GOOS=$(detect_goos) NEXTDNS_BIN=$(bin_location) INSTALL_RELEASE=$(get_release) export NEXTDNS_INSTALLER=1 log_info "OS: $OS" log_info "GOARCH: $GOARCH" log_info "GOOS: $GOOS" log_info "NEXTDNS_BIN: $NEXTDNS_BIN" log_info "INS...
the_stack
ARCHIBOLD='0.6.2' clear echo '' echo "SAY SAY _| _| _| _| _| SAY _|_|_| _| _|_| _|_|_| _|_|_| _|_|_| _|_| _| _|_|_| SAY _| _| _|_| _| _| _| _| _| _| _| _| _| _| _| SAY _| _| _| _| ...
the_stack
set -euo pipefail trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM # The oc binary is placed in the shared-tmp by the test container and we want to use # that oc for all actions. export PATH=/tmp:${PATH} function backoff() { local attempt=0 local failed=0 while ...
the_stack
#the function that will be called when we are ready to renew the certs. function run_renewcerts(){ cd certs/ echo "" #move the custom cnf into our working directory cp renewcerts/wolfssl.cnf wolfssl.cnf # To generate these all in sha1 add the flag "-sha1" on appropriate lines # That is all line...
the_stack
# Check if we are being sourced in, or run as a script: ( [[ -n ${ZSH_EVAL_CONTEXT} && ${ZSH_EVAL_CONTEXT} =~ :file$ ]] || \ [[ -n $BASH_VERSION && $0 != "$BASH_SOURCE" ]]) && _s_=1 || _s_=0 (( $_s_ )) && _is_sourced=1 (( $_s_ )) || _is_sourced=0 # Set all the defaults function __symit::init() { export SYMIT...
the_stack
SCRIPT=$(readlink -f "$0") && cd $(dirname "$SCRIPT") # --- Script Init --- mkdir -p log rm -R -f log/* # --- Setup run dirs --- find output -type f -not -name '*summary-info*' -not -name '*.json' -exec rm -R -f {} + rm -R -f fifo/* rm -R -f work/* mkdir work/kat/ mkdir work/gul_S1_summaryleccalc mkdir work/gul_S...
the_stack
# That Bash script extracts a POR from: # - optd_por_best_known_so_far.csv # - optd_por_no_longer_valid.csv # - dump_from_ref_city.csv # - dump_from_geonames.csv # - dump_from_innovata.csv # - ref_airport_pageranked.csv # - por_schedule_counts_YYYY_MM_to_YYYY_MM.csv # ## # Temporary path TMP_DIR="/tmp/por" ## # Path ...
the_stack
function printTable() { local -r delimiter="${1}" local -r data="$(removeEmptyLines "${2}")" if [[ "${delimiter}" != '' && "$(isEmptyString "${data}")" = 'false' ]] then local -r numberOfLines="$(wc -l <<< "${data}")" if [[ "${numberOfLines}" -gt '0' ]] then local t...
the_stack
HAPPY_PATH_TEST_INJECTION="happy_path_test_injection" HOST_TEST_CASES="test_host_add_initiator \ test_host_remove_initiator \ test_delete_host \ test_delete_cluster \ test_cluster_remove_host \ test_move_non_clustered_h...
the_stack
set -o pipefail #set -o nounset #This extra check has been disabled to avoid BASH 4.x crashing with some array boundaries. #GLOBAL STUFF VERSION="2.6" BIN="/usr/bin" CHANDEF=(stable fast) #Default list of channels, modify only this one if needed. #INFO = ( # author => 'Pedro Amoedo' # contact ...
the_stack
# script that executes the 'sqdiag_core_mask' script in certain SQ directories. # based on sqdiag_core_compare and sqdiag_core_mask. # Feb 6, 2013. Fixed scriptdir link. # Feb 26, 2013. Route gdb stderr to null to eliminate the RH6 missing lib msgs. # Mar 7, 2013. Modified sed script to mask 64-bit addresses. ...
the_stack
WORKDIR="${WORKDIR:-./cluster}" BIND_ADDRESS="${BIND_ADDRESS:-127.0.0.1}" SENTINEL_PORTS="${SENTINEL_PORTS:-26379-26381}" DOWN_AFTER="${DOWN_AFTER-3000}" FAILOVER_TIMEOUT="${FAILOVER_TIMEOUT-10000}" PARALLEL_SYNCS="${PARALLEL_SYNCS-1}" TRUNCATE_LOGS="${TRUNCATE_LOGS:-yes}" CLEANUP="${CLEANUP:-yes}" SUPERVISE="${SUPERVI...
the_stack
# Set bash to 'debug' mode, it will exit on : # -e 'error', -u 'undefined variable', -o ... 'error in pipeline', -x 'print commands', set -e set -u set -o pipefail log() { local fname=${BASH_SOURCE[1]##*/} echo -e "$(date '+%Y-%m-%dT%H:%M:%S') (${fname}:${BASH_LINENO[0]}:${FUNCNAME[1]}) $*" } min() { local a...
the_stack
Usage() { echo "filterB <1,2,3 for B-,B0,B+> [names containing run numbers]" echo "to filter out from supplied list those corresponding to a field" exit } #B0 lstB0=( \ 227983 227891 227872 227838 227836 227834 227830 227828 227826 227824 \ 227821 227322 227320 227317 227292 226676 226670 226667 226663 226115...
the_stack
# Programmable completion for the Subversion svn command under bash. Source # this file (or on some systems add it to ~/.bash_completion and start a new # shell) and bash's completion mechanism will know all about svn's options! # Provides completion for the svnadmin, svndumpfilter, svnlook and svnsync # commands as we...
the_stack
Usage() { echo 'Usage: vmaxexport-ingest.sh [setup]' echo ' [setup]: Run on a new ViPR database, creates SMIS, host, initiators, vpools, varray, volumes' exit 2 } SANITY_CONFIG_FILE="" : ${USE_CLUSTERED_HOSTS=0} # The token file name will have a suffix which is this shell's PID # It will allow to run the ...
the_stack
# Copyright 2016 The Kubernetes Authors. # # 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 applicable law or agreed to ...
the_stack
function ekco_pre_init() { if [ -z "$EKCO_NODE_UNREACHABLE_TOLERATION_DURATION" ]; then EKCO_NODE_UNREACHABLE_TOLERATION_DURATION=5m fi if [ -z "$EKCO_MIN_READY_MASTER_NODE_COUNT" ]; then EKCO_MIN_READY_MASTER_NODE_COUNT=2 fi if [ -z "$EKCO_MIN_READY_WORKER_NODE_COUNT" ]; then ...
the_stack
set -e -u # Prints the absolute path of a directory to stdout abs_path() { local _path="$1" # Unset CDPATH because it causes havok: it makes the destination unpredictable # and triggers 'cd' to print the path to stdout. Route `cd`'s output to /dev/null # for good measure. (unset CDPATH && cd "$_pat...
the_stack
# Original version by iye.cba at gmail com # url: https://github.com/iye/lightsOn # # Compilation version by Yegor Bayev # url: https://github.com/kodx/lightsOn # # Contributors: # Dylan Smith (https://github.com/dyskette/lightsOn) # Andrew West (https://github.com/namtabmai/lightsOn) # # This script is licensed under ...
the_stack
genesis_cache_root=../geneses genesisjq() { local q=$1; shift jq "$q" ./keys/genesis-meta.json "$@" } profile_genesis_future_offset() { local profile=$1 echo -n "$(profjq "$profile" .genesis.genesis_future_offset)" } genesis_params_cache_params() { jq ' del(.era) ...
the_stack
set -e # default values TEMP_FOLDER= # Will be defined during init OUTPUT_DIR=. OUTPUT_FILE= # Will be defined during init DB_USER_NAME=jfmc DB_HOST=127.0.0.1 DB_PORT=5432 DB_DATABASE_NAME=mission_control DB_DATABASE_SCHEMA=jfmc_server VERBOSE_MODE=false # ..... _logger.sh ...... # REF https://misc.flogisoft.com/bas...
the_stack
#====================================== # Load KIWI functions. #-------------------------------------- test -f /.kconfig && . /.kconfig test -f /.profile && . /.profile #====================================== # Greeting. #-------------------------------------- echo "Configure image: [$kiwi_iname]..." #===============...
the_stack
source /home/joinmarket/joinin.conf # versions currentJBcommit=$(cd /home/joinmarket/joininbox; git describe --tags) currentJBtag=$(cd /home/joinmarket/joininbox; git tag | sort -V | tail -1) currentJMversion=$(cd /home/joinmarket/joinmarket-clientserver 2>/dev/null; \ git describe --tags 2>/dev/null) # paths walletP...
the_stack
# createRunDir.sh: Create GEOS-Chem Classic run directory # # Optional argument: run directory name # # If optional run directory name argument is not passed then the user # will be prompted to enter a name interactively, or choose to use the # default name GC_{res}_{simulation}. # # Usage: ./createRunDir.sh [rundirnam...
the_stack
# Initialize variables if they aren't already defined. # CI mode - set to true on CI server for PR validation build or official build. ci=${ci:-false} # Set to true to use the pipelines logger which will enable Azure logging output. # https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/comma...
the_stack
################################################################################# # # # TPM2 regression test # # Written by Ken Goldman # # IBM Thomas J. Watson Research Center # # # # (c) Copyright IBM Corporation 2015 - 2020 # # # # All rights reserved. ...
the_stack
# Perform case-insensitive comparison matchesName() { local expectedName="$1" local providedName="$2" local result= shopt -s nocasematch [[ "$expectedName" == "$providedName" ]] && result=0 || result=1 shopt -u nocasematch return $result } # Read the environment variables to see if a value for these var...
the_stack
# Copyright 2017 Vimal Manohar # Apache 2.0 # This script is semi-supervised recipe with around 50 hours of supervised data # and 250 hours unsupervised data with naive splitting. # Based on "Semi-Supervised Training of Acoustic Models using Lattice-Free MMI", # Vimal Manohar, Hossein Hadian, Daniel Povey, Sanjeev Kh...
the_stack
. ./db/config.sh . ./sendtobitcoinnode.sh . ./callbacks_job.sh . ./watchrequest.sh . ./unwatchrequest.sh . ./getactivewatches.sh . ./confirmation.sh . ./blockchainrpc.sh . ./responsetoclient.sh . ./trace.sh . ./manage_missed_conf.sh . ./walletoperations.sh . ./bitcoin.sh . ./call_lightningd.sh . ./ots.sh . ./newblock.s...
the_stack
__gobgp_q() { gobgp 2>/dev/null "$@" } # Get bgp neighbors use gobgp command. __gobgp_q_neighbor() { local neighbors=( $(__gobgp_q $url $port --quiet neighbor) ) case "${neighbors[*]}" in "grpc: timed out"* | "rpc error:"* ) req_faild="True" return ;; esac fo...
the_stack
usage="$(basename "$0") --cluster <cluster-name> [options] -- Create a cluster Options: --help Show this help information --cluster <cluster> Cluster name --tier <tier> Tier of the cluster --count <number> Number of instances in the cluster --instance-type <type> ...
the_stack
VERSION='0.44' trap 'exit_cleanup' EXIT trap '_warn "interrupted, cleaning up..."; exit_cleanup; exit 1' INT exit_cleanup() { # cleanup the temp decompressed config & kernel image [ -n "$dumped_config" ] && [ -f "$dumped_config" ] && rm -f "$dumped_config" [ -n "$kerneltmp" ] && [ -f "$kerneltmp" ] && rm -f...
the_stack
# Copyright Istio Authors. All Rights Reserved. # # 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 applicable law or agre...
the_stack
# This the main control script that takes care of following things: # 1. Sets up a hadoop minicluster # 2. Installs HBase on the minicluster # 3. Creates a table & region data using LTT # 4. Invokes all the action scripts present in dev-support/testingtool/scripts/ set -e function usage { echo "Usage...
the_stack
set -e function tryrun() { cmd="$@" set +e /bin/bash -c "$cmd" set -e } function trygrep() { cmd="$1" pattern="$2" set +e /bin/bash -c "$cmd" | grep "$pattern" set -e } function trygrep2() { cmd="$1" pattern="$2" set +e /bin/bash -c "$cmd" | grep "$pattern" | grep -v grep set -e } if [ $EUID -ne "0...
the_stack
# This script is used to generate .gni files and files in the # config/platform directories needed to build libaom. It is derived from the # script used to update libvpx. # Every time the upstream source code is updated just run this script. # # Usage: # $ ./generate_gni.sh [--only-configs] # # The following optional f...
the_stack
# This script installs all the libraries to be used by Compiler Explorer SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck source=common.inc . ${SCRIPT_DIR}/common.inc export PATH=$PATH:/opt/compiler-explorer/cmake/bin if install_nightly; then echo "Installing trunk versions" else echo ...
the_stack
# THIS SCRIPT IS DEPRECATED. PLEASE USE pdf2pdfocr.py # THIS SCRIPT IS DEPRECATED. PLEASE USE pdf2pdfocr.py # THIS SCRIPT IS DEPRECATED. PLEASE USE pdf2pdfocr.py # THIS SCRIPT IS DEPRECATED. PLEASE USE pdf2pdfocr.py # THIS SCRIPT IS DEPRECATED. PLEASE USE pdf2pdfocr.py # THIS SCRIPT IS DEPRECATED. PLEASE USE pdf2pdfocr...
the_stack
# Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # 2. Redistributions in bina...
the_stack
#### $- with -c # dash's behavior seems most sensible here? $SH -o nounset -c 'echo $-' ## stdout: u ## OK bash stdout: huBc ## OK mksh stdout: uhc ## status: 0 #### $- with pipefail set -o pipefail -o nounset echo $- ## stdout: u ## status: 0 ## OK bash stdout: huBs ## OK mksh stdout: ush ## N-I dash stdout-json: "" ...
the_stack
PLEDIT='/usr/libexec/PlistBuddy' # Should be at PATH, but in case PATH is messed up PLUTIL='/usr/bin/plutil' # Overwrite with enviroment variable to test/debug localy REPO_NAME="${REPO_NAME:=daliansky/XiaoMi-Pro-Hackintosh}" REPO_BRANCH="${REPO_BRANCH:=main}" # Display style setting BOLD=$(tput bold) UNDERLINE=$(tpu...
the_stack
####################### Variabes and Constants ################# declare -r FALSE=1 declare -r TRUE=0 DNS_SERVER_FLAG='false' # set this variable to true if you have DNS server. Then , it is not required to populate the /etc/hosts. declare -r ETCHOSTS="/etc/hosts" # declare -r ETCFSTAB="/etc/fstab" declare -x GRID_U...
the_stack
set -e set -o pipefail # Consider command as failed when any component of the pipe fails: # https://stackoverflow.com/questions/1221833/pipe-output-and-capture-exit-status-in-bash set -o pipefail # The test script is not supposed to make any changes to the files # e.g. add/update missing dependencies. Such divergenc...
the_stack
xcnote () { echo >&2 "${BASH_SOURCE[1]}:${BASH_LINENO[0]}: note: $*" } # Output a clickable message prefixed with a warning symbol (U+26A0) # and highlighted yellow. This will increase the overall warning # count. A non-zero value for the variable ERRORS_ONLY will force # warnings to be treated as errors. if ((...
the_stack
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/ArchiSteamFarm:/opt/Manage_ArchiSteamFarm:/root/.nvm/versions/node/v8.11.1/bin export PATH # fonts color Green="\\033[32m" Red="\\033[31m" GreenBG="\\033[42;37m" RedBG="\\033[41;37m" Font="\\033[0m" Green_font_prefix="\\033[32m" Green_backgro...
the_stack
#Projections and their EPSG equivalents declare -a PROJECTIONS=(epsg4326 epsg3857 epsg3413 epsg3031) declare -a PROJEPSGS=(EPSG4326 EPSG3857 EPSG3413 EPSG3031) #Download image files curl -# -o /usr/share/onearth/demo/source_images/blue_marble.jpg https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73776/world.top...
the_stack
set -x LOCAL_TEST_DIR=${CMSSW_BASE}/src/FWCore/Integration/test LOCAL_TMP_DIR=${CMSSW_BASE}/tmp/${SCRAM_ARCH} function die { echo Failure $1: status $2 ; exit $2 ; } pushd ${LOCAL_TMP_DIR} # The tests executed by this bash script are all related and # it seemed clearest to include them all in the same file. # These ...
the_stack
. $srcdir/test-subr.sh # Tests readelf -s and readelf --elf-section -s # See also run-dwflsyms.sh # # - bar.c # # static int b1 = 1; # int b2 = 1; # # static int # foo (int a) # { # return a + b2; # } # # int bar (int b) # { # return b - foo (b - b1); # } # # - foo.c # # extern int bar (int b); # extern int b2; # ...
the_stack
DIR=/etc/xroad/cluster LOGDIR=/var/log/xroad LOGFILE=$LOGDIR/cluster_`date +%Y-%m-%d_%H:%M:%S`.log SSHKEYFILE=hacluster.sshkey SSH_OPTIONS="-i $SSHKEYFILE -q -o PasswordAuthentication=no" NODESFILE=nodes DUMPFILE=/var/lib/postgresql/9.3_dump.dat APT_GET_INSTALL="apt-get install -y --force-yes" REMOTE_SCRIPT_PREFIX=...
the_stack
if [ -x /bin/uname ];then UNAME=/bin/uname else UNAME=/usr/bin/uname fi SYSTEM=`${UNAME} -s` if [ ${SYSTEM} == "Darwin" ];then GREP=/usr/bin/grep # the testsuite does not work with apple sed without modifications # so we have to somehow make sure gsed is called # I haven't found a way to do this in this s...
the_stack
## @var[out] str ind mark function ble/keymap:vi_test/decompose-state { local spec=$1 ind=${spec%%:*} str=${spec#*:} if ((${#ind}==1)) && [[ $ind == [!0-9a-zA-Z] ]]; then ind=${str%%"$ind"*} ind=${#ind} str=${str::ind}${str:ind+1} mark= elif ((${#ind}==2)) && [[ ${ind::1} == [!0-9a-zA-Z] && ${ind:1:1} =...
the_stack
set -e # Enable error trapping ################################### ### FUNCTIONS ### ################################### #----------------------------# process_toolchain() { # embryo,cocoon and butterfly need special handling #----------------------------# local toolchain=$1 local this...
the_stack
basedir=/data/monitor globalLock=mon.lk ip0=$(/sbin/ifconfig eth0|awk '/inet addr/ {print substr($2,6)}') ip1=$(/sbin/ifconfig eth1|awk '/inet addr/ {print substr($2,6)}') ip2=$(/sbin/ifconfig eth2|awk '/inet addr/ {print substr($2,6)}') ip3=${ip0:-ip1} ip=${ip3:-ip2} hostname=$(hostname|awk 'BEGIN {IGNORECASE=1};{spli...
the_stack
: <<'DOC' tag::catalog[] Title:: Nodes can rejoin a subnet under load Runbook:: . set up the testnet (nns + subnet installation) . install the `statesync-test` canister multiple times, updates the canisters state repeatedly . wait for some time (configurable) and kill a replica before all update calls finish . after ...
the_stack
function athena.plugin._router() { athena.argument.argument_is_not_empty_or_fail "$1" local plugin=$1 local bin_dir=$2 local cmd_dir=$3 local lib_dir=$4 local hooks_dir=$5 shift 5 local -a args=("$@") local arg_idx=0 local return_code=0 local cmd # find first argument that does not start with '-' to excl...
the_stack
set -beEu -o pipefail function usage() { printf "usage: ucscToNcbi.sh <genbank|refseq> <pathTo>/*_genomic.fna.gz select genbank or refseq assembly hierarchy, the unrooted <pathTo> is to a file in .../all_assembly_versions/... relative to the directory hierarchy: %s expecting to find corresponding files in ...
the_stack
load 'test_helper/bats-support/load' load 'test_helper/bats-assert/load' # # system # @test "checking system: /etc/mailname (env method) (reverse)" { run docker exec mailserver_reverse cat /etc/mailname assert_success assert_output "mail.domain.tld" } @test "checking system: all environment variables have been...
the_stack
# General options batch=0 proof=0 cent=0 dopass1=0 dopass2=0 dopass3=0 max_rotate=10 prog=aliroot # Input (data and scripts) ana=$ALICE_PHYSICS/PWGLF/FORWARD/analysis2 esddir="." nev=-1 # Pass 1 options mc=0 scheme="full" # Pass 2 event selection vzmin=-10 vzmax=10 type=INEL mcfilename="none" # Pass 3 visualisati...
the_stack
# Perform the release of a new pod version and remove other running version of the same pod. # A release can be done "soft" or "hard". # A "soft" release has many steps in order to have zero downtime, while a "hard" release is simpler and faster but could results in a blip of downtime. # To perform a perfect "soft" rel...
the_stack
set -uo pipefail readonly SELF_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" readonly SELF_NAME="$(basename "${BASH_SOURCE[0]}")" readonly ROOT_PATH="$(cd "${SELF_PATH}/../.." && pwd)" [[ -z "${TESTS_DOCKER:-}" ]] \ && echo "Please run tests with launcher.sh!" && exit 1 export TADS_ENV=test readonly _tads...
the_stack
if [ -d examples ] ; then cd examples fi export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/ export SLEEP_TIME=11 while [ 0 ] ; do rm -rf /var/log/turnserver/* ########################## PATH=examples/bin/:../bin/:./bin/:${PATH} turnutils_uclient -G -n 30 -m 10 -l 170 -g -u ninefingers -w youhaveto...
the_stack
# ENV VARS # # NUM_VFS - number of VFs to create # BASE_MAC - base MAC address for netdevs, #VF masked into lower word # NBI_MAC8_JSON - MAC config for NBI 0 # NBI_MAC9_JSON - MAC config for NBI 1 # NBI_DMA8_JSON - DMA config for NBI 0 # NBI_DMA9_JSON - DMA config for NBI 1 # NBI_TM_JSON - TM config for NBI 0 and 1 # N...
the_stack
## Script name: reboot_scheduler.sh ## Script author: Mike Morales ## Last change: 2015-06-04 ## Synopsis: ## reboot_scheduler is intended to be used after software updates have been installed on a Mac ## that require a reboot. ## Rather than initiating an immediate reboot of the Mac, or only allowing a short grace...
the_stack
SCRIPTDIR=`dirname "${0}"` . "${SCRIPTDIR}/initscript.sh" cd "${TOPDIR}" # Create and compile the identification source file. echo '#pragma comment(user, "libxml2 version '"${LIBXML_VERSION}"'")' > os400.c echo '#pragma comment(user, __DATE__)' >> os400.c echo '#pragma comment(user, __TIME__)' >> os400.c echo '...
the_stack
# pseudo3dbash # https://github.com/diejuse/pseudo3dbash # A prototype of a pseudo 3d-engine made in Bash. # MIT License https://github.com/diejuse/pseudo3dbash/blob/main/LICENSE function rep { local i; for i in $(seq 1 1 $2);do printf "%s" "$1";done } function caja { local y x txt="\e[0m\e[107m\e[34m" #\e[37m...
the_stack
## Script name: install_Latest_GoogleChrome-SelfService.sh ## Author: Mike Morales ## Last modified: 2015-01-14 ## Path to cocoaDialog. Used for all dialogs and progress bars cdPath="/Library/Application Support/JAMF/bin/cocoaDialog.app/Contents/MacOS/cocoaDialog" ## Common variable strings used throughout dialogs...
the_stack
function usage() { cat <<EOF usage: $0 DIR1 DIR2 [RELPATH] Compares two build directories for artifact differences. Comparison logic tries to account for the file type in choosing a diff strategy. If RELPATH is provided, then compare DIR1/RELPATH vs. DIR2/RELPATH. The joined path may reference a directory or file. ...
the_stack
# Effect: Create a Wifi AP with transparent shadowsocks relay in debian based system; # Author: 7sDream # Dependencies: # - hostapd & dnsmasq & nmcli & rfkill & & iptables & iproute2 is installed # - A wireless network card suppose AP mode, and doesn't connect to any AP now # - If you want shadowsocks relay, sha...
the_stack
platform='unknown' unamestr=`uname` if [[ "$unamestr" == 'Linux' ]]; then platform='linux' elif [[ "$unamestr" == 'Darwin' ]]; then platform='darwin' fi # 1-100: g3.4 # 101-200: p2 # AMI="ami-660ae31e" AMI="ami-55c2792d" #extract #AMI="ami-7428ff0c" #extract #INSTANCE_TYPE="g3.4xlarge" #INSTANCE_TYPE="p2.xlarge...
the_stack
# mac-setup-all.sh in https://github.com/wilsonmar/mac-setup # This downloads and installs all the utilities related to use of Git, # customized based on specification in file secrets.sh within the same repo. # sh -c "$(curl -fsSL https://raw.githubusercontent.com/wilsonmar/mac-setup/master/mac-setup-all.sh)" # This i...
the_stack
set -e source "/opt/gruntwork/bash-commons/log.sh" source "/opt/gruntwork/bash-commons/string.sh" source "/opt/gruntwork/bash-commons/assert.sh" source "/opt/gruntwork/bash-commons/aws-wrapper.sh" readonly COUCHBASE_BASE_DIR="/opt/couchbase" readonly COUCHBASE_BIN_DIR="$COUCHBASE_BASE_DIR/bin" readonly COUCHBASE_CLI=...
the_stack
set -e OPTS=`getopt -o o: --long output-dir:,genome-reference:,selector:,tumor-bam-out:,tumor-bam-in:,normal-bam-out:,normal-bam-in:,split-proportion:,down-sample:,num-snvs:,num-indels:,max-indel-len:,num-svs:,min-vaf:,max-vaf:,left-beta:,right-beta:,min-depth:,max-depth:,min-variant-reads:,aligner:,out-script:,seed:,...
the_stack
set -e ################################################## # create compute instances gcloud compute instances create \ bench-agent-a-1 \ --custom-cpu=16 \ --custom-memory=60 \ --image-family=ubuntu-1710 \ --image-project=ubuntu-os-cloud \ --boot-disk-size=300 \ --boot-disk-type="pd-ssd" \ --network db...
the_stack
set -ex . ./envvars.sh # Author tty. # 2014-05-01 # This script downloads and configur #Overview of script flow assuming version 4.5 # parse options # case statement on -v option # clean_source_tree (not used until migration to cmake is complete and GNU-B-GONE # create_cmake_source_tree # get_four_five # laun...
the_stack
## @file ## @author Louwrentius <louwrentius@gmail.com> ## @author Paul-Emmanuel Raoul <skyper@skyplabs.net> ## @brief Bash Shell Function Library ## @copyright New BSD ## @version 0.1.0 ## @par URL ## https://github.com/SkypLabs/bsfl ## @par Purpose ## The Bash Shell Function Library (BSFL) is a small Bash script that...
the_stack
# Copyright (c) 2013-2014 LG Electronics, Inc. # # 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 applicable law or agreed t...
the_stack
# VPLEX EXPORT Test # This can be run from within sanity, or standalone after sanity has initiatlized the system. # For loggin in use: user@domain.com Password # # This script sets up two VPLEX environments, a cross-connected one, and non cross-connected on, # using four Varrays. The Varrays are: VAcc1, VAcc2, and VA...
the_stack
################################################################################ # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
the_stack
# Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang # 2013 Guoguo Chen # 2014 Vimal Manohar # 2014-2015 Vijayaditya Peddinti # Apache 2.0. # Terminology: # sample - one input-output tuple, which is an input sequence and output sequenc...
the_stack
# 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 # # THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, EITHER E...
the_stack
############################################################################### # Overview: # # This code reads a local Confluent Cloud configuration file # and writes delta configuration files into ./delta_configs for # Confluent Platform components and clients connecting to Confluent Cloud. # # Confluent Platform Com...
the_stack
# 2020-02-07 #D12MSYS2 の CR 対策のため更新の必要あり _ble_term_tput= function ble/init:term/tput { return 1; } if ble/bin/.freeze-utility-path tput; then ble/bin/tput cuu 1 &>/dev/null && _ble_term_tput=${_ble_term_tput}i ble/bin/tput UP 1 &>/dev/null && _ble_term_tput=${_ble_term_tput}c if [[ $_ble_term_tput ]]; then ...
the_stack
# TOONZ LIBRARIES # RICORDARSI PRIMA DI COPIARE LE LIBRERIE IN Toonz\ 7.1.app/Contents/Frameworks #echo /depot/angelo/toonz/main/binmacosxd #tnzcore install_name_tool -id @executable_path/../Frameworks/libtnzcore.1.dylib $BINROOT/bin/Toonz\ 7.1.app/Contents/Frameworks/libtnzcore.1.dylib install_name_tool ...
the_stack
## What does this script do? ## ## Automatically installs dependencies and needed software ## ## Helps you set the device type (cpu, gpu) you want to mine with ## #### COLOR SETTINGS #### black=$(tput setaf 0 && tput bold) red=$(tput setaf 1 && tput bold) green=$(tput setaf ...
the_stack