text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
__kafkactl_debug() { if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then echo "$*" >> "${BASH_COMP_DEBUG_FILE}" fi } # Homebrew on Macs have version 1.3 of bash-completion which doesn't include # _init_completion. This is a very minimal version of that function. __kafkactl_init_completion() { COMPREPLY=() ...
the_stack
THREESCALE_PROJECT="${1}" COMPRESS_UTIL="${2,,}" #CURRENT_DIR=$(dirname "$0") CURRENT_DIR=$PWD # Avoid fetching information about any pod that is not a 3scale one THREEESCALE_PODS=("3scale-operator" "apicast-production" "apicast-staging" "apicast-wildcard-router" "backend-cron" "backend-listener" "backend-redis" "ba...
the_stack
function checkLogfile() { if [ ! -f /home/caddy/caddy-script.log ]; then sleep 0 else clear echo " >> You already installed Caddy with caddy-script!" echo " >> Please view /home/caddy/caddy-script.log for your details." exit 0 fi } function readEmail() { if [[ $GITHUB_ACTIONS == 1 ]]; then ...
the_stack
# use-local-irods.sh # Federated local iRODS for HydroShare in Docker # Author: Michael Stealey <michael.j.stealey@gmail.com> # Pull in environment variables to use for federated local iRODS source env-files/use-local-irods.env ADD_IRODS_TO_GROUP=$(id -g ${USER}) ADD_POSTGRES_TO_GROUP=$(id -g ${USER}) # Remove ${IROD...
the_stack
## # # platform.sh -- platform detection and cross-building support # ## ### section common #< # @function mk_multiarch_do # @brief Execute commands for multiple ISAs # @usage # # Executes a set of commands beginning with <funcref>mk_multiarch_do</funcref> # and ending with <funcref>mk_multiarch_done</funcref> for ea...
the_stack
# # gen-make-frag.sh # # Field G. Van Zee # print_usage() { #local script_name # Get the script name #script_name=${0##*/} # Echo usage info echo " " echo " "$script_name echo " " echo " Field G. Van Zee" echo " " echo " Automatically generates makefile fragments for a given directory. " echo " " echo...
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
set -o errexit set -o nounset set -o pipefail # cd to the directory containing this script cd "$(dirname "$0")" DIR=$(pwd) # The latest required version of Wattsi. Update this if you change how ./build.sh invokes Wattsi; # it will cause a warning if Wattsi's self-reported version is lower. Note that there's no need t...
the_stack
help_message=" Usage: vocode_all.sh [options] <wav_in> <wav_out> Main options: --synth <type> # The type of vocoding to use. Available choices: # idlak, sptk, cere, straight, world, idlak+straight, idlak+world --srate <srate> # Sampling rate of audio file --mcep-order <n> # Order of ...
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 {} + mkdir output/full_correlation/ rm -R -f /tmp/%FIFO_DIR%/fifo/* mkdir /tmp/%FIFO_DIR%/fifo/full_cor...
the_stack
set -eo pipefail # Define paths for oci-cli and jq or put them on $PATH. Don't use relative PATHs in the variables below. v_oci="oci" v_jq="jq" if [ -z "${BASH_VERSION}" -o "${BASH}" = "/bin/sh" ] then >&2 echo "Script must be executed in BASH shell." exit 1 fi # Add any desired oci argument exporting OCI_CLI_AR...
the_stack
###################################################################### # # TWTREND.SH : View Trend Lists in The Specified Area # # Written by Shell-Shoccar Japan (@shellshoccarjpn) on 2020-12-06 # # This is a public-domain software (CC0). It means that all of the # people can use this for any purposes with no restricti...
the_stack
installdir="" UPDATED=false UPGRADE=false PYTHON_PKG="" ASK_TO_REBOOT=false promptorno() { read -r -p "$1 (y/[n]) " response < /dev/tty if [[ $response =~ ^(yes|y|Y)$ ]]; then true else false fi } promptoryes() { read -r -p "$1 ([y]/n) " response < /dev/tty if [[ $response =~ ^(no|n|N)$ ]]; then false el...
the_stack
# Copyright (c) 2018-2020 NVIDIA Corporation # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # Released under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. ################################################################################ # Thrust and...
the_stack
#Declaring Functions - This function is an easier way to reuse the yum code. install_packages() { echo "Installing packages: ${@}" yum -y update && yum -y install ${@} if [ $? -eq 0 ]; then echo "Packages successfully installed." else echo "Packages failed to install!" exit 1 fi } ####step 1: pre-reqs.####...
the_stack
RESP=$(curl -s -X POST -d 'revoke=true' "${CASSH_SERVER_URL}"/admin/"${GUEST_A_USERNAME}") if [ "${RESP}" == "Error: No realname option given." ]; then echo "[OK] Test admin revoke '${GUEST_A_USERNAME}' without realname,password" else echo "[FAIL ${BASH_SOURCE}:+${LINENO}] Test admin revoke '${GUEST_A_USERNAME}...
the_stack
if [ -x /bin/uname ];then UNAME=/bin/uname else UNAME=/usr/bin/uname fi SYSTEM=`${UNAME} -s` VALGRIND_NUMCALLERS=30 VALGRIND=/usr/bin/valgrind TPUT=/usr/bin/tput HEAD=/usr/bin/head CUT=/usr/bin/cut PYTHON=/usr/bin/python DATE=/bin/date if [ ${SYSTEM} == "Darwin" ];then GREP=/usr/bin/grep SED=/usr/bin/sed els...
the_stack
# This script should be run as a cron job on a regular interval. It will # perform several system checks such as available disk space, free physical # RAM check, and check logical drives' status/state. HW_RAID_CLI="/usr/local/sbin/hw_raid_cli.py" MEGACLI="/opt/sbin/MegaCli64" MDADM="/sbin/mdadm" ZPOOL="/usr/sbin/zpool...
the_stack
if [ "$( which vdsl_cpe_control )" ]; then XDSL_CTRL=vdsl_cpe_control else XDSL_CTRL=dsl_cpe_control fi # # Basic functions to send CLI commands to the vdsl_cpe_control daemon # dsl_cmd() { killall -0 ${XDSL_CTRL} && ( lock /var/lock/dsl_pipe echo "$@" > /tmp/pipe/dsl_cpe0_cmd cat /tmp/pipe/dsl_cpe0_ack loc...
the_stack
#---------DESCRIPTION-------- # A collection of powerful and useful one-liner commands for OS X #---------------------------- ############################### ########### FOR FUN ########### # Watch star wars from the command line telnet towel.blinkenlights.nl # Star Wars traeroute traceroute -m 254 -q1 obiwan.scrye...
the_stack
_compreply() { local options="$*" local cur_word="${COMP_WORDS[COMP_CWORD]}" COMPREPLY=($(compgen -W "${options}" -- "${cur_word}")) return 0 } _10updocker_environments_completion() { local env_utils="$( cd "$( dirname "$( dirname "${BASH_SOURCE[0]}" )" )" >/dev/null 2>&1 && pwd )" local scri...
the_stack
MODE=${1:-full} source settings echo "---------- Settings ----------" | tee $TEST1OUTPUT cat ./settings | tee -a $TEST1OUTPUT echo "" | tee -a $TEST1OUTPUT CURRENTTIME=`date +%s` CURRENTTIMES=`perl -le "print scalar localtime $CURRENTTIME"` START_DATE=`echo "$CURRENTTIME+45" | bc` START_DATE_S=`perl -le "print scalar...
the_stack
#--------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. #---------------------------------------------------------------------...
the_stack
if [ "`whoami`" = "root" ] then echo "Running the script as root is not permitted" exit 1 fi CALLED=$_ [[ "${BASH_SOURCE[0]}" != "${0}" ]] && SOURCED=1 || SOURCED=0 SETUP_SRC="$(realpath ${BASH_SOURCE[0]})" SETUP_DIR="$(dirname "${SETUP_SRC}")" TOP_DIR="$(realpath "${SETUP_DIR}/..")" if [ $SOURCED = 1 ]; the...
the_stack
function ssh_public_key() { echo -e "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDJnmjlApwSXJ291Aua+w6+tBiuoluW3cqQHR9OE0NChg2e4mf96P/0WqUUB1UYiojr4OFCeDqgeR63ggd5YNcP5ul9TWgC6w9PhXZ3IlpRrNZyJILo1NvIdCKqwxVJSa6/hCIClsyLHicObxN58NCoH2LPpVtrsyIXczQRwycWcoYxfSmmHvnNvG6Vx54qXKvdIZiYI07XplA5jEA++9IrwHrU0pjDUitLUcYmVqtbNK29w4B...
the_stack
# These variables will be overridden by the test helpers. stdoutF="${TMPDIR:-/tmp}/STDOUT" stderrF="${TMPDIR:-/tmp}/STDERR" # Load test helpers. . ./shunit2_test_helpers commonEqualsSame() { fn=$1 # These should succeed. desc='equal' if (${fn} 'x' 'x' >"${stdoutF}" 2>"${stderrF}"); then th_assertTrueWit...
the_stack
set -o nounset #don't allow access to unset variables set -o errexit #don't allow any command to exit with an error code !=0 TOOLS=$(dirname $0)/tools.sh if [ -f $TOOLS ] && [ -r $TOOLS ]; then source $TOOLS else echo "Missing file ${TOOLS}" exit 1 fi #Note: ROLLOUT_DIR can be overridden from cmdline using -d #T...
the_stack
# What I want to know is 1 where the config file is located (for domcount and dddreport) # and 2 what the sub-string corresponding to that is in the Configuration/Geometry. cmsenv if ($#argv == 0) then ...
the_stack
# Copyright (c) 2012 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 -o nounset set -o errexit # The script is located in "native_client/tests/spec2k" # Set pwd to spec2k/ cd "$(dirname "$0")" if [[ $(basename "$...
the_stack
# Directory name of this file readonly THIS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)" readonly TEST_TMP="${THIS_DIR}/test_tmp" readonly OLD_PATH="${PATH}" IFS=" " read -r TTY_ROWS TTY_COLS < <(stty size) TTY_ROWS=${TTY_ROWS:-40} TTY_COLS=${TTY_COLS:-80} readonly TTY_ROWS TTY_COLS tmux_version_number() { ...
the_stack
# source the globals and functions for use with cache testing export SKIP_ADMIN_COUNTER=true declare session_id failed_tests . cachetest_lib.sh echo ################################################################################ # Cache testing: cache python test driver # # Summar...
the_stack
usage() { echo "Usage:" echo "./run.sh --platform <platform> --test <test> --model <model> --kcfg <kcfg> --bitwidth <bitwidth>" echo "./run.sh -p <platform> -t <test> -m <model> -k <kcfg> -b <bitwidth>" echo "<platform> : 1525 / 1525-ml / alveo-u200 / alveo-u200-ml / alveo-u250 / aws / nimbix" ...
the_stack
echo Analyzing for run: $1 ########################################################################## ###### CSC Automated Calibration - Revision 11-24-2010 ###### ###### Darin Baumgartel, Northeastern University ###### #######################################...
the_stack
set +x # ----------------------------------------------------------------------------- # Setup GDAL for the World Wind Server Kit (WWSK) - Linux # ----------------------------------------------------------------------------- # GEOSERVER_VER and IMAGEIO_EXT_VER will be updated by an ant-task during the build GEOSERVE...
the_stack
# Copyright (c) 2020-2022 Status Research & Development GmbH. Licensed under # either of: # - Apache License, version 2.0 # - MIT license # at your option. This file may not be copied, modified, or distributed except # according to those terms. set -e cd /home/user/nimbus-eth1 git config --global core.abbrev 8 if [[...
the_stack
if [ -d results ]; then mv results results_$(date +%Y%m%d%H%M%S) fi mkdir results ### CNN_Tensorflow ### if [ -f CNN_Tensorflow/results_train/results.csv ]; then cp CNN_Tensorflow/results_train/results.csv results/results_cnn_train.csv else echo "CNN_Tensorflow/results_train/results.csv does not exist, check if ...
the_stack
# Copyright 2015 Comcast Cable Communications Management, LLC # # 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 applica...
the_stack
# Tests for deploying a K3s cluster inside system container nodes and have them # interconnected through flannel CNI. # # The system container nodes have K3s + Docker inside (i.e., K3s uses # Docker to deploy pods). # # NOTE: the "cluster up" test must execute before all others, # as it brings up the K3s cluster. Simil...
the_stack
usage_message="usage: `basename $0` [-n filename] [-e file_extension] .zip [.zip ...]" if [[ $# -lt 1 || "$1" == "--help" ]]; then echo $usage_message echo " -n: filename to name every file coming out of the zip." echo " -e: extension to use for every file coming out of the zip." exit 1 fi CSV2RDF4LOD_...
the_stack
# $Id$ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh status=0 n=0 rm -f dig.out.* DIGOPTS="+tcp +noadd +nosea +nostat +nocmd -p 5300" for conf in conf/good*.conf do n=`expr $n + 1` echo "I:checking that $conf is accepted ($n)" ret=0 $CHECKCONF "$conf" || ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`e...
the_stack
################################################################################################### # Script Name: Manage-AndroidSDKCMDLineTools.sh # By: Zack Thompson / Created: 2/19/2021 # Version: 1.2.0 / Updated: 3/31/2021 / By: ZT # # Description: This script allows you to perform the initial configuration ...
the_stack
# Bitnami ownCloud library # shellcheck disable=SC1091 # Load generic libraries . /opt/bitnami/scripts/libphp.sh . /opt/bitnami/scripts/libfs.sh . /opt/bitnami/scripts/libos.sh . /opt/bitnami/scripts/libnet.sh . /opt/bitnami/scripts/libfile.sh . /opt/bitnami/scripts/libvalidations.sh . /opt/bitnami/scripts/libpersist...
the_stack
load helpers BATS_TESTS_DIR=test/bats/tests/vault WAIT_TIME=120 SLEEP_TIME=1 export LABEL_VALUE=${LABEL_VALUE:-"test"} export ANNOTATION_VALUE=${ANNOTATION_VALUE:-"app=test"} @test "install vault provider" { # create the ns vault kubectl create ns vault # install the vault provider using the helm charts # pi...
the_stack
# convert_source.sh converts cuda (and c++ code) to dpcpp code with ginkgo design. # Usage: # EnvironementSet ./dev_tools/oneapi/convert_source.sh <the_file_in_cuda> # <the_file_in_cuda> can be .hpp/.cpp/.cu/.cuh # the following are parameters set by environment variables # REQUIRED: # CUDA_HEADER_DIR: contains the...
the_stack
############################################################################## # ___ __ # # / _ | ___ ___ _____/ / ___ # # / __ |/ _ \/ _ `/ __/ _ \/ -_) # # ...
the_stack
#Default chunk size in Mb for the upload process #It is recommended to increase this value only if you have enough free space on your /tmp partition #Lower values may increase the number of http requests CHUNK_SIZE=4 #Curl location #If not set, curl will be searched into the $PATH #CURL_BIN="/usr/bin/curl" #Default v...
the_stack
## This file contains all the functions used for regression testing. ## It is called from the receive.sh, which handles path variables ## and git checkouts on a server-specific basis spacing=30 delay=1530 numpieces=30 hist=72 stamp_commit_msgs() { logger "Stamping commit messages" cd $SPATIAL_HOME tag=(`git...
the_stack
host="159.89.214.31" #Serveo.net trap 'printf "\n";stop' 2 stop() { if [[ $checkphp == *'php'* ]]; then killall -2 php > /dev/null 2>&1 fi if [[ $checkssh == *'ssh'* ]]; then killall -2 ssh > /dev/null 2>&1 fi exit 1 } dependencies() { command -v apksigner > /dev/null 2>&1 || { echo >&2 "I require apksigner but...
the_stack
set -u set -o pipefail set -o errtrace # # Script to synchronise databases via a storage backend # # Options: # f) configfile # Optional argument and alternative way to pass configuration. # Template can be found in govuk_env_sync/templates/govuk_env_sync_conf.erb # # a) action # 'push' or 'pull' relati...
the_stack
VERSION="2.5.1" VERSION_C="2.5.1" # BUILD_CSFML=FALSE BUILD_CSFML=TRUE BUILD_SFML=FALSE ### ### Create packages for SFML $VERSION on OS X ### ### Author: Marco Antognini <antognini.marco@gmail.com> ### Date: 15/11/2014 ### ## ## SETTINGS ## ## Edit $VERSION & $VERSION_C above ## sfml_giturl='https://github.com/SFM...
the_stack
# https://github.com/iconic/open-iconic # SIL OPEN FONT LICENSE function bdf { f=${2//path/\/home\/kraus\/git\/open-iconic\/png} ff=${f//-1x/} ../png2bdf -c "https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE" -f open_iconic_${1}_1x -o open_iconic_${1}_1x.bdf -e 64 ${ff} ../../bdfconv/bdfconv -f 1 -b 0 -m '...
the_stack
clear # NOTE: Execute this Script as SUDO or ROOT .. NOT as a normal UserID # Source: # http://chari.titanium.ee/script-to-install-guacamole/ # # Guacamole installation # Supports Ubuntu 18.04 # 32 and 64 bit # Script to be run as sudo/root # ver 1.5 # To be run on a FRESH OS install # Do not install anything othe...
the_stack
set -e; echo -e \ "\n########################################################### # # CHROMOSOME SORT ORDER AND NAMING CONVENTIONS # ###########################################################\n" BT=${BT-../../../bin/bedtools} FAILURES=0; check() { if diff $1 $2; then echo ok else FAILURES=$(expr $FA...
the_stack
#set -x ulimit -n 1024 ### Setup some variables. ### BUILD_URL is set by Hudson if it is run by patch process ### Read variables from properties file bindir=$(dirname $0) # Defaults if [ -z "$MAVEN_HOME" ]; then MVN=mvn else MVN=$MAVEN_HOME/bin/mvn fi PROJECT_NAME=Hadoop JENKINS=false PATCH_DIR=/tmp SUPPORT_DI...
the_stack
__skip_opt_eq() { # this takes advantage of the fact that bash functions can write to local # variables in their callers (( i = i + 1 )) if [[ "${COMP_WORDS[$i]}" == '=' ]]; then (( i = i + 1 )) fi } _ort() { local i=1 local in_param='' local fixed_arg_names=() local vararg_name='...
the_stack
INSTALL_DIR=$(dirname $0) export DOMDOCK_DIR=/domino-docker export DOMDOCK_LOG_DIR=/domino-docker export DOMDOCK_TXT_DIR=/domino-docker export DOMDOCK_SCRIPT_DIR=/domino-docker/scripts # in docker environment the LOGNAME is not set if [ -z "$LOGNAME" ]; then export LOGNAME=$(whoami) fi # Since Domino 11 the new i...
the_stack
STATUSFILE=/var/config/.installer # STATUSFILE allows us to keep track of the installation process. if [ ! -f $STATUSFILE ] ; then touch $STATUSFILE fi # now set the time zone # Output one argument as-is to standard output. # Safer than 'echo', which can mishandle '\' or leading '-'. say() { printf '%s\n' "$1" }...
the_stack
load $BATS_TEST_DIRNAME/helper/common.bash setup() { setup_common dolt sql <<SQL CREATE TABLE test ( pk int primary key ); INSERT INTO test VALUES (0),(1),(2); SQL } teardown() { assert_feature_version teardown_common } @test "sql-checkout: DOLT_CHECKOUT just works" { run dolt sql -q "SELEC...
the_stack
# Copyright 2016 - 2021 Crunchy Data Solutions, 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 agre...
the_stack
MESSAGE_LENGTH=70 DOTS='.........................................................................................................' HYPHENS='---------------------------------------------------------------------------------------------------------' REDIS_STABLE_URL='http://download.redis.io/redis-stable.tar.gz' REDIS_STA...
the_stack
set -e root="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null 2>&1 && pwd )" project="`cat $root/package.json | grep '"name":' | head -n 1 | cut -d '"' -f 4`" registry="`cat $root/package.json | grep '"registry":' | head -n 1 | cut -d '"' -f 4`" tmp="$root/.tmp"; mkdir -p $tmp # turn on swarm mode if it's not a...
the_stack
logit "\n" info "3 - Docker Daemon Configuration Files" # 3.1 check_3_1="3.1 - Verify that docker.service file ownership is set to root:root" file="/usr/lib/systemd/system/docker.service" if [ -f "$file" ]; then if [ "$(stat -c %u%g $file)" -eq 00 ]; then pass "$check_3_1" else warn "$check_3_1" warn ...
the_stack
set -e #set -x ######## LINKS ######## # https://www.truenas.com/community/threads/moving-zfs-dataset-into-an-other.17720/ # https://www.truenas.com/community/threads/moving-a-zvol.76574/ # https://github.com/kubernetes/kubernetes/issues/77086 ######## REQUIRMENTS ######### # kubectl # curl # jq ######### NOTES ####...
the_stack
# =============================================================================================================== # This shell script can be used to create all necessary certificates and Keystores needed in order to # - successfully perform a TLS handshake between the EVCC (TLSClient) and the SECC (TLSServer) and # - ...
the_stack
# usage: ./configure.sh [options] # options: # --cflags='flags' (default "-g") # --host='host' (no default) # --host-file-format='format (no default) # --build='build' (no default) # --host-gcc='gcc' (default "gcc", if build and host are same) # --host-strip='strip' (default "strip") # --host-nm='nm' (default "nm...
the_stack
print_help() { echo "" && \ echo "install_sherpa version 4.3" && echo && \ echo "options: -v version define SHERPA version ( "${SHERPAVER}" )" && \ echo " -d path define (SHERPA) installation directory" && \ echo " -> ( "${IDIR}" )" && \ echo " ...
the_stack
NTH=6; SUFFIX="CHIPseq.ATF2.GM12878.EXPID_ENCSR000BQK" FASTQ1=$DATA/DREAM_challenge/CHIPseq.ATF2.GM12878.EXPID_ENCSR000BQK.BSID_ENCBS110ENC.BSREP2.TECHREP1.FILEIDENCFF000NSG.unpaired.fastq.gz FASTQ2=$DATA/DREAM_challenge/CHIPseq.ATF2.GM12878.EXPID_ENCSR000BQK.BSID_ENCBS110ENC.BSREP1.TECHREP1.FILEIDENCFF000NSE.unpaired....
the_stack
[ -n "$BASH_VERSION" ] || exec bash $0 set -u # Define our handy die function die() { echo "$@" >&2; exit 2; } source "${BASH_SOURCE%/*}/../CmdlineGL.lib" || die "Can't find CmdlineGL.lib (${BASH_SOURCE%/*}/../CmdlineGL.lib)"; CmdlineGL_LoadLib RenderLoop ModelViewer #-------------------------------------------------...
the_stack
#-------------------------------------------------------------------------------- # SPDX-Copyright: Copyright (c) Capital One Services, LLC # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You m...
the_stack
script_ver='3.6.0' ################################################################################ # MingGW-w64 Build Script ################################################################################ # Copyright (C) 2011-2014 Kyle Schwarz # # This program is free software: you can redistribute it and/or modify...
the_stack
set -e RED='\033[0;31m' GREEN='\033[0;32m' NC='\033[0m' # No Color THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" LOG_DIR="${THIS_DIR}/testsuite.log" fail() { printf "${RED}FAIL${NC}" } ok() { printf "${GREEN}OK${NC}" } testsuite_setup() { mkdir -p "${LOG_DIR}" } gen_log_f...
the_stack
testsToRun= allTests= #allTests have space separated fully qualified tests with format: # TEST001.core TEST023.executor function setupAllTests() { if [ "$2" == "" ]; then return fi for i in $2; do tnum=`echo $i | cut -c 5-` # if [ "$1" == "1" ]; then # allTests="$allT...
the_stack
set -e BASEPATH=$(cd "$(dirname $0)"; pwd) OUTPUT_PATH="${BASEPATH}/output" export BUILD_PATH="${BASEPATH}/build/" # print usage message usage() { echo "Usage:" echo "sh build.sh [-j[n]] [-h] [-v] [-s] [-t] [-u] [-c] [-S on|off] [-M]" echo "" echo "Options:" echo " -h Print usage" echo " -u Only comp...
the_stack
set -euo pipefail # Necessary for testing the release script export TEST_MODE=true : ${ORIGIN:=origin} : ${STABLE_BRANCH:=master} REPO_ROOT= FORK_ROOT=$(mktemp -d -t galaxy_release_test_XXXXXXXX) TEST_RELEASE_PREV= TEST_RELEASE_PREV_MINOR= TEST_RELEASE_CURR='99.01' TEST_RELEASE_NEXT='99.05' TEST_RELEASE_NEXT_NEXT='...
the_stack
REL_SCRIPT_DIR="`dirname \"$0\"`" SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`" PROJECT_DIR="`( cd \"$SCRIPT_DIR/../..\" && pwd )`" case "$OSTYPE" in darwin*) PLATFORM="OSX" ;; linux*) PLATFORM="LINUX" ;; bsd*) PLATFORM="BSD" ;; *) PLATFORM="UNKNOWN" ;; esac test_cli_common() { echo...
the_stack
GETHATTACHPOINT=`grep IPCFILE settings.txt | sed "s/^.*=//"` PASSWORD=`grep PASSWORD settings.txt | sed "s/^.*=//"` TEMPINFILE=`grep TEMPINFILE settings.txt | sed "s/^.*=//"` BUGOUTPUTFILE=`grep BUGOUTPUTFILE settings.txt | sed "s/^.*=//"` BUGRESULTFILE=`grep BUGRESULTFILE settings.txt | sed "s/^.*=//"` TOKENDATAFILE...
the_stack
snet session # service side #should fail (not existed directory) snet service metadata-init ./bad_dir/ ExampleService --encoding json --service-type jsonrpc --group-name group1 && exit 1 || echo "fail as expected" #should fail (directory doesn't contain any *.proto files) snet service metadata-init ./ ExampleService...
the_stack
source "$GENTOO_INSTALL_REPO_DIR/scripts/protection.sh" || exit 1 ################################################ # Functions function install_stage3() { [[ $# == 0 ]] || die "Too many arguments" prepare_installation_environment apply_disk_configuration download_stage3 extract_stage3 } function configure_bas...
the_stack
######################################## #logging setup: Stack Exchange made this. snorby_logfile=/var/log/snorby_install.log mkfifo ${snorby_logfile}.pipe tee < ${snorby_logfile}.pipe $snorby_logfile & exec &> ${snorby_logfile}.pipe rm ${snorby_logfile}.pipe ######################################## #Metasploit-like ...
the_stack
### This script tests dynamic membership by starting a PBFT network with 4 ### nodes, adding a 5th node, applying a workload, checking that all 5 nodes ### reach block 10, adding a 6th node, checking that all 6 nodes reach block 20, ### removing a node, and checking that all remaining nodes reach block 30. if [ -z "$I...
the_stack
# remediation = none yum install -y jq kube_apipath="/kubernetes-api-resources" # Create infra file for CPE to pass mkdir -p "$kube_apipath/apis/apps/v1/namespaces/openshift-ingress/deployments" deployment_apipath="/apis/apps/v1/namespaces/openshift-ingress/deployments/router-default" cat <<EOF > "$kube_apipath/ap...
the_stack
load helpers @test "bud with a path to a Dockerfile (-f) containing a non-directory entry" { run_buildah 125 build -f $BUDFILES/non-directory-in-path/non-directory/Dockerfile expect_output --substring "non-directory/Dockerfile: not a directory" } @test "bud stdio is usable pipes" { run_buildah build $BUDFILES/s...
the_stack
# get the absolute path of current directory CURRENT_DIR="$(dirname "$(realpath "$0")")" pushd ${CURRENT_DIR}/.. >> setup.log # Path to the directory containing yaml files MANIFESTS="${PWD}/autotune_test_yamls/manifests" app_autotune_yaml="app_autotune_yaml" testcase_matched=0 module="da" path="${MANIFESTS}/${module}/...
the_stack
# This script is similar to steps/nnet3/chain/build_tree.sh but supports # getting statistics from multiple alignment sources. # Begin configuration section. stage=-5 exit_stage=-100 # you can use this to require it to exit at the # beginning of a specific stage. Not all values are #...
the_stack
Assert setupBuildInfo ArchiveLogs if [ "$PRODUCT" = "ospli" ] then OSPL_INNER_REV=`git rev-parse --short $REV` else OSPL_INNER_REV=`cd $IBSDIR && git rev-parse --short HEAD` OSPL_OUTER_REV=`git rev-parse --short HEAD` export OSPL_OUTER_REV fi export OSPL_INNER_REV if [ "$BUILD" = "no" ] then echo "BUI...
the_stack
# This script will merge two existing VPC Security Groups together into one single group # Security Groups must exist in the same VPC, total rules must be 50 or less # Any duplicate rules in the two groups will cause an error # Note: this script is somewhat experimental and you should manually verify all results before...
the_stack
# Make a data directory in ephemeral stoage sudo mkdir -p /mnt/tmp sudo chown ubuntu /mnt/tmp # Grab the 2008 ACS 3 year cd /mnt/tmp mkdir -p acs2007_3yr cd acs2007_3yr sudo apt-get -y install unzip aria2 aria2c --dir=/mnt/tmp/acs2007_3yr --max-connection-per-server=5 --force-sequential=true \ "http://www2.census....
the_stack
#Install jq to process json format subscription data sudo yum install jq echo -n "Do you want to create an Azure file share service for your team? [Y]/N " read createornot if [ -z "${createornot,,}" ] || [ "${createornot,,}" = 'y' ] then azure config mode arm loginstat=`azure account list --json | python -c 'i...
the_stack
if [ $# -lt 3 -o $# -gt 5 ]; then echo "usage: `basename $0` path/to/source/a.xls path/to/destination/a.xls.csv <engine-name>" echo "or" echo "usage: . `basename $0` path/to/source/a.xls path/to/destination/a.xls.csv <engine-name> [-h | --history] [-a | --append]" echo "" echo " source file: ...
the_stack
CSV2RDF4LOD_PUBLISH_LOD_MATERIALIZATION_WWW_ROOT=${CSV2RDF4LOD_PUBLISH_LOD_MATERIALIZATION_WWW_ROOT:?"not set; source csv2rdf4lod/source-me.sh or see https://github.com/timrdf/csv2rdf4lod-automation/wiki/CSV2RDF4LOD-not-set"} verbose="no" if [ $# -gt 0 -a ${1:-""} == "-v" ]; then verbose="yes" shift fi symbolic="...
the_stack
# Flag this as a proper starting point export INSTALL_SCRIPT=true # Allow an install to pause a brief moment after running export SKIP_SLEEP=false # The base script if needed export BASE_SCRIPT='desktop' # Source Temporary Environment Variables. source ./bin/_export_path_variables.sh # Source the variables so they ...
the_stack
# For my own and others sanity # git: # %b => current branch # %a => current action (rebase/merge) # prompt: # %F => color dict # %f => reset color # %~ => current path # %* => time # %n => username # %m => shortname host # %(?..) => prompt conditional - %(condition.true.false) # terminal codes: # \e7 => save cursor ...
the_stack
# A library of functions shared by the various scripts in this directory. # This is the timestamp about when we merged changed to include licenses # with Arvados packages. We use it as a heuristic to add revisions for # older packages. LICENSE_PACKAGE_TS=20151208015500 if [[ -z "$ARVADOS_BUILDING_VERSION" ]]; then ...
the_stack
# Copyright 2019 Google LLC # 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 required by applicable law or agreed to in writing, so...
the_stack
# coach python slu_main.py --exp_name coach_lstmenc --exp_id pm_0 --bidirection --freeze_emb --tgt_dm PlayMusic --n_samples 0 python slu_main.py --exp_name coach_lstmenc --exp_id gw_50 --bidirection --freeze_emb --tgt_dm GetWeather --n_samples 50 python slu_main.py --exp_name coach_lstmenc --exp_id sse_20 --bidirection...
the_stack
# Script for launching Dynamometer components within YARN containers. # USAGE: # ./start-component.sh namenode hdfs_storage # OR # ./start-component.sh datanode nn_servicerpc_address sleep_time_sec # First parameter should be component being launched, either `datanode` or `namenode` # If component is namenode, hdfs_sto...
the_stack
bin=`dirname "$0"` SHUFFLE_BIN_DIR=`cd "$bin"; pwd` # Define shuffle dir. SHUFFLE_HOME=`dirname "$SHUFFLE_BIN_DIR"` if [ -z "$SHUFFLE_LIB_DIR" ]; then SHUFFLE_LIB_DIR=$SHUFFLE_HOME/lib; fi if [ -z "$SHUFFLE_CONF_DIR" ]; then SHUFFLE_CONF_DIR=$SHUFFLE_HOME/conf; fi if [ -z "$SHUFFLE_LOG_DIR" ]; then SHUFFLE_LOG_DIR=$SH...
the_stack
FTPURL="https://ftp.gnu.org/gnu/coreutils" WORK_DIR="$BASEDIR/sources/coreutils" OUTDIR="$BASEDIR/output/coreutils" LOGDIR="$BASEDIR/logs/coreutils" PACKAGE_NAME="coreutils" function join_by { local IFS="$1"; shift; echo "$*"; } ARGS=$@ ARGS_STR=$(join_by _ $ARGS) ECHO=false OPTIONS="" SUFFIX="" # -fno-var-tracking...
the_stack
#pengass om 自动化升级测试脚本 # username:omm usergroup:dbgrp 工具脚本路径:/usr1/opengaussautomattest/script xml文件路径:/usr1/clusterconfig.xml workdir=$1 upgradepackage=$2 echo -e "\033[32m 注意事项: \033[0m" echo -e "\033[32m 1、软件包路径请设置成不同于xml配置的安装路径以及日志保存路径 \033[0m" echo -e "\033[32m 2、确保软件包路径除了xml配置不含有其他文件 \033[0m" echo ...
the_stack
set -e set -u function usage() { echo 1>&2 "build.sh" echo 1>&2 "[--mongo=$mongo] [--ft_index=$ft_index] [--jemalloc=$jemalloc] [--backup=$backup]" echo 1>&2 "[--github_user=$github_user] [--github_token=$github_token] [--github_use_ssh=$github_use_ssh]" echo 1>&2 "[--cc=$cc --cxx=$cxx] [--ftcc=$ftcc -...
the_stack