text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
set -o errexit # cd into current directory cd $( dirname "$0" ) # App root directory is one level upper APP=$(dirname "$( pwd -P )") # sourcing variable from config file source $APP/init_config.file RED='\033[0;31m' NC='\033[0m' # No Color GREEN='\033[0;32m' PWD=$(pwd -P) YARN_GLOBAL_DIR=$(yarn global dir) # If c...
the_stack
# prepending $PWD/../bin to PATH to ensure we are picking up the correct binaries # this may be commented out to resolve installed version of tools if desired export PATH=${PWD}/../bin:${PWD}:$PATH export FABRIC_CFG_PATH=${PWD} export VERBOSE=false # Print the usage message function printHelp() { echo "Usage: " ec...
the_stack
_usage() { echo "Usage: $0 [-help] [-mode install | redeploy | install-vmx] [options] -mode: install Install a new cluster redeploy Redeploy a VM in a cluster install-vmx Create a VM at VMware workstation Install mode optio...
the_stack
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin #管控server ip SERVER_IP_ADDRESS='{{.SERVER_IP_ADDRESS}}' #管控server port SERVER_PORT={{.RPC_PORT}} #安装包下载host#ip:port EASYAGENT_DOWNLOAD_HOST='{{.callback}}' UUID='{{.UUID}}' INSTALL_TYPE='{{.INSTALL_TYPE}}' CALLBACK_TO_PROD='{{.CALLBACK_TO_PROD}}...
the_stack
logit "\n" info "5 - Container Runtime" # If containers is empty, there are no running containers if [ -z "$containers" ]; then info " * No containers running, skipping Section 5" else # Make the loop separator be a new-line in POSIX compliant fashion set -f; IFS=$' ' # 5.1 check_5_1="5.1 - Verify AppA...
the_stack
#if !defined(BGFX_CONFIG_MAX_BONES) # define BGFX_CONFIG_MAX_BONES 32 #endif // !defined(BGFX_CONFIG_MAX_BONES) #ifndef __cplusplus #if BGFX_SHADER_LANGUAGE_HLSL > 3 # define BRANCH [branch] # define LOOP [loop] # define UNROLL [unroll] #else # define BRANCH # define LOOP # define UNROLL #endif // BGFX_SHADER_LANGU...
the_stack
# This script builds all the Clipper Docker images and publishes the useful ones to # Docker Hub (images that we don't publish are things like the unittest image and the # shared dependency base that don't really make sense to distribute on their own). # Each image that is built is tagged with two tags: # + The current...
the_stack
AWK="{{ _alias.awk }}" CAT="{{ _alias.cat }}" CGCLEAR="{{ _alias.cgclear }}" ECHO="{{ _alias.echo }}" FIND="{{ _alias.find }}" GREP="{{ _alias.grep }}" LS="{{ _alias.ls }}" MKDIR="{{ _alias.mkdir }}" MKTEMP="{{ _alias.mktemp }}" MOUNT="{{ _alias.mount }}" RMDIR="{{ _alias.rmdir }}" SLEEP="{{ _alias.sleep }}" TRUE="{{ _...
the_stack
set -o errexit set -o pipefail Help() { echo "PacketSifter is a tool to perform batch processing of PCAP data to uncover potential IOCs" echo "Simply pass PacketSifter a pcap and the desired switches and PacketSifter will sift through the data and generate several output files" echo "Please run AbuseIPDBInitial.sh...
the_stack
######################################## #logging setup: Stack Exchange made this. sguil_logfile=/var/log/sguil_install.log mkfifo ${sguil_logfile}.pipe tee < ${sguil_logfile}.pipe $sguil_logfile & exec &> ${sguil_logfile}.pipe rm ${sguil_logfile}.pipe ######################################## #Metasploit-like print s...
the_stack
## Configure Terminal.app the way we want it. ## WARNING: This will kill any running Terminal session, in order for the settings to take effect. ## NOTES: ## We override the default actions for the Home, End, PageUp, and PageDown keys - moving around in the buffer. ## To move around in the buffer, use the Command k...
the_stack
GETHATTACHPOINT=`grep IPCFILE settings.txt | sed "s/^.*=//"` PASSWORD=`grep PASSWORD settings.txt | sed "s/^.*=//"` TEMPINFILE=`grep TEMPINFILE settings.txt | sed "s/^.*=//"` OTHEROUTPUTFILE=`grep OTHEROUTPUTFILE settings.txt | sed "s/^.*=//"` OTHERRESULTFILE=`grep OTHERRESULTFILE settings.txt | sed "s/^.*=//"` TOKEN...
the_stack
NAME=bing-desktop-wallpaper-changer UPNAME=Bing-Desktop-Wallpaper-Changer STNAME=BDWC TERMNAME=bingwallpaper LINKTO=/usr/bin AUTOSTART=$HOME/.config/autostart ## BDWC variable definition BDWC_LICENSE=$PWD/LICENSE BDWC_README=$PWD/README.md ## BDWC Installer variable definition INSTALLER_VERSION="v3.3.1-release" INSTALL...
the_stack
set -e # # portable shebang: # https://www.cyberciti.biz/tips/finding-bash-perl-python-portably-using-env.html # # bash on macos: # https://itnext.io/upgrading-bash-on-macos-7138bd1066ba # ############################################################################### ## ## utility methods ## #####################...
the_stack
set -o pipefail set +e set -x # Script trace mode if [ "${DEBUG_MODE,,}" == "true" ]; then set -o xtrace fi # usage: file_env VAR [DEFAULT] # as example: file_env 'MYSQL_PASSWORD' 'zabbix' # (will allow for "$MYSQL_PASSWORD_FILE" to fill in the value of "$MYSQL_PASSWORD" from a file) # unsets the VAR_FILE afte...
the_stack
# Project: igloo # Repository: https://github.com/arcticicestudio/igloo # License: MIT # Displays documentations and help text for the "igloo" prompt theme. prompt_igloo_help() { print -P " Arctic Ice Studio's ZSH %F{6}igloo%f prompt theme. See https://github.com/arcticicestudio/igloo/tree/master/snowblock...
the_stack
export dir=/cluster/data/hg38/bed/ucsc.19.1 export GENCODE_VERSION=V29 export oldGeneDir=/cluster/data/hg38/bed/ucsc.17.1 export oldGeneBed=$oldGeneDir/ucscGenes.bed export db=hg38 export spDb=sp180404 export taxon=9606 export tempDb=tmpFoo87 export kent=$HOME/kent export lastVer=10 export curVer=11 export Db=Hg38 expo...
the_stack
# ************************************************* # GENERATE THE CENTOS6 VERSION OF THE BLOCKER # ************************************************* # ******************************************************************************* # PRINT VERSION, SCRIPT RUNTIME and UPDATE INFORMATION INTO GLOBALBLACKLIST FILES # ***...
the_stack
runUsage() { echo -e "\033[32m ********************************************************************* \033[0m" echo " Usage: " echo " --$0 \$TestPicW \$TestPicH \$TestEncoderList" echo "" echo " --example:" echo " $0 1280 720 h264enc_master h264enc_target1 h264enc_target2 " e...
the_stack
function customlogstashconf() { #add option for custom logstash config CUSTOM_LOGSTASH_CONF=/opt/lme/Chapter\ 3\ Files/logstash_custom.conf if test -f "$CUSTOM_LOGSTASH_CONF"; then echo -e "\e[32m[X]\e[0m Custom logstash config exists, Not creating" else echo -e "\e[32m[X]\e[0m Creating custom logstash ...
the_stack
usage="Usage: hbase-connectors-daemon.sh [--config <conf-dir>]\ [--autostart-window-size <window size in hours>]\ [--autostart-window-retry-limit <retry count limit for autostart>]\ (start|stop|restart|autostart|autorestart|foreground_start) <hbase-connector-commmand> \ <args...>" # if no args specified, show usag...
the_stack
set -e -u if [ -x /bin/echo ]; then ECHO='/bin/echo' else ECHO='echo' fi # 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 out...
the_stack
set -euo pipefail metadata="" if [[ -n "{{ openshift_gcp_startup_script_file }}" ]]; then if [[ ! -f "{{ openshift_gcp_startup_script_file }}" ]]; then echo "Startup script file missing at {{ openshift_gcp_startup_script_file }} from=$(pwd)" exit 1 fi metadata+="--metadata-from-file=startup...
the_stack
set -e set -x if [[ -z ${LOCAL_TEST_DIR} ]]; then LOCAL_TEST_DIR=. fi # This is mainly to make sure nothing crashes. Checking the output for sanity is attempted but not really complete. # 1. Run a very simple configuration with all module types. cmsRun $LOCAL_TEST_DIR/run_analyzers_cfg.py outfile=alltypes.root num...
the_stack
# # MetaCall Configuration Environment Bash Script by Parra Studios # Configure and install MetaCall environment script utility. # # Copyright (C) 2016 - 2021 Vicente Eduardo Ferrer Garcia <vic798@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compli...
the_stack
# Copyright 2013-2018 Fabian Groffen # # 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 w...
the_stack
# global vars have_readelf=1 verbose=false # FORTIFY_SOURCE vars FS_end=_chk FS_cnt_total=0 FS_cnt_checked=0 FS_cnt_unchecked=0 FS_chk_func_libc=0 FS_functions=0 FS_libc=0 # version information version() { echo "checksec v1.5, Tobias Klein, www.trapkit.de, November 2011" echo } # help help() { echo "Usage: c...
the_stack
usage(){ echo " Written by Brian Bushnell Last modified December 19, 2019 Description: Compares query sketches to reference sketches hosted on a remote server via the Internet. The input can be sketches made by sketch.sh, or fasta/fastq files from which SendSketch will generate sketches. Only sketches will sent, ...
the_stack
_ipfs_comp() { COMPREPLY=( $(compgen -W "$1" -- ${word}) ) if [[ ${#COMPREPLY[@]} == 1 && ${COMPREPLY[0]} == "--"*"=" ]] ; then # If there's only one option, with =, then discard space compopt -o nospace fi } _ipfs_help_only() { _ipfs_comp "--help" } _ipfs_add() { if [[ "${prev}" =...
the_stack
# To see debug logs export HFC_LOGGING='{"debug":"console","info":"console"}' # Start the app. SSH into the bastion host in one Cloud9 session nvm use lts/carbon cd ~/hyperledger-on-kubernetes/admin-api ./start.sh # In another Cloud9 session, SSH into the bastion host and run the test cases export ENDPOINT=localhost ...
the_stack
# this one is based on the best AMI/s5b chain model so far (as of June 2020) # small differences in #params between conditions are due to condition-specific trees # Mic ihm # local/chain/compare_wer.sh exp/ihm/chain_1a/tdnn_b_sp exp/ihm/chain_1a/tdnn_c_sp # System tdnn_b_sp tdnn_c_sp #WER dev 20.3...
the_stack
set -euo pipefail __BENCH_BASEPATH=$(dirname "$(realpath "$0")") . "$__BENCH_BASEPATH"/lib.sh . "$__BENCH_BASEPATH"/lib-analyses.sh . "$__BENCH_BASEPATH"/lib-analysis.sh . "$__BENCH_BASEPATH"/lib-benchrun.sh . "$__BENCH_BASEPATH"/lib-deploy.sh . "$__BENCH_BASEPATH"/lib-fetch.sh . "$__BENCH_BASEPATH"/lib-genesis.sh . "...
the_stack
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
the_stack
# PlemolJP Generator plemoljp_version="1.2.3" base_dir=$(cd $(dirname $0); pwd) # オプション解析 HIDDEN_SPACE_FLG='false' NERDFONTS_FLG='false' DEBUG_FLG='false' while getopts dhn OPT do case $OPT in 'd' ) DEBUG_FLG='true';; 'h' ) HIDDEN_SPACE_FLG='true';; 'n' ) NERDFONTS_FLG='true';; esac done if [ "$DEBUG...
the_stack
## # # configure.sh -- configures a project, preparing it to be built # ## #< # @var MK_HOME # @brief MakeKit home directory # # The directory where MakeKit lives. #> #< # @var MK_SHELL # @brief POSIX-compliant shell # # The path to the POSIX-compliant shell which MakeKit # is using. #> #< # @var MK_ROOT_DIR # @brie...
the_stack
set -o errexit source $GRENADE_DIR/grenaderc source $GRENADE_DIR/functions source $TOP_DIR/openrc admin admin set -o xtrace CINDER_USER=cinder_grenade CINDER_PROJECT=cinder_grenade CINDER_PASS=pass CINDER_SERVER=cinder_server1 CINDER_KEY=cinder_key CINDER_KEY_FILE=$SAVE_DIR/cinder_key.pem CINDER_VOL=cinder_grenade_...
the_stack
reserved=12582912 availableMemory=$((1024 * $( (grep MemAvailable /proc/meminfo || grep MemTotal /proc/meminfo) | sed 's/[^0-9]//g' ) )) if [ $availableMemory -le $(($reserved * 2)) ]; then echo "Not enough memory" >&2 exit 1 fi availableMemory=$(($availableMemory - $reserved)) rr_cache_size=$(($availableMemory...
the_stack
# Generate Go code listing errors and other #defined constant # values (ENAMETOOLONG etc.), by asking the preprocessor # about the definitions. unset LANG export LC_ALL=C export LC_CTYPE=C if test -z "$GOARCH" -o -z "$GOOS"; then echo 1>&2 "GOARCH or GOOS not defined in environment" exit 1 fi # Check that we are u...
the_stack
################################################################################# ### WARNING: the code for generating time-based graphs below assumes the data ### ### has been sorted by something like: "LC_ALL=C sort -t, -n -k1" ### ##########################################################################...
the_stack
load environment setup() { test_filter } teardown() { remove_bats_test_dirs } @test "$SUITE: suite name" { assert_equal 'bats-helpers: suite name' "$BATS_TEST_DESCRIPTION" 'SUITE' } @test "$SUITE: BATS_TEST_ROOTDIR contains space" { assert_matches ' ' "$BATS_TEST_ROOTDIR" "BATS_TEST_ROOTDIR" } check_dirs_d...
the_stack
#TODO: Need to extend this test to make sure the signer is picking up the correct files when changes are mode!!!! #TODO: Test that the system starts up with no zonefile and that a message reports this properly ZONES_FILE=$INSTALL_ROOT/var/opendnssec/enforcer/zones.xml ZONELIST_FILE=$INSTALL_ROOT/etc/opendnssec/zoneli...
the_stack
############################################################################ # Copyright Nash!Com, Daniel Nashed 2019, 2021 - APACHE 2.0 see LICENSE # Copyright IBM Corporation 2015, 2019 - APACHE 2.0 see LICENSE ############################################################################ DOMINO_INSTDATA_BACKUP=$Notes...
the_stack
######################################################################################################################## ######################################################################################################################## # this script must be run by root or sudo if [[ "$UID" -ne "0" ]] ; then e...
the_stack
# _ _ _ _ # ___ _____ __ (_)_ __ ___| |_ __ _| | | # / _ \/ __\ \/ / | | '_ \/ __| __/ _` | | | #| (_) \__ \> < | | | | \__ \ || (_| | | | # \___/|___/_/\_\ |_|_| |_|___/\__\__,_|_|_| echo "I ❤️ 🍎" echo "Mac OS Install Setup Script" echo "By Nina Zakharenko" echo ...
the_stack
BCFTOOLS=bcftools VCFTOOLS=vcftools PLINK=plink GQT=../../bin/gqt SQLITE=sqlite3 DATA_PATH=../data if [[ ! -f "`which $BCFTOOLS`" ]] then echo -e "ERROR($LINENO): BCFTOOLS not found. Please set path in functional_tests.sh" exit 1 elif [[ ! -f "`which $PLINK`" ]] then echo -e "ERROR($PLINK): PLINK not foun...
the_stack
# Use $VPX_TEST_TOOLS_COMMON_SH as a pseudo include guard. if [ -z "${VPX_TEST_TOOLS_COMMON_SH}" ]; then VPX_TEST_TOOLS_COMMON_SH=included set -e devnull='> /dev/null 2>&1' VPX_TEST_PREFIX="" elog() { echo "$@" 1>&2 } vlog() { if [ "${VPX_TEST_VERBOSE_OUTPUT}" = "yes" ]; then echo "$@" fi } # Sets $VPX_TO...
the_stack
# 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/libvalidations.sh . /opt/bitnami/scripts/libversion.sh . /opt/bitnami/scripts/libpersistence.sh . /opt/bitnami/sc...
the_stack
#This file name is "dns_freedns.sh" #So, here must be a method dns_freedns_add() #Which will be called by acme.sh to add the txt record to your api system. #returns 0 means success, otherwise error. # #Author: David Kerr #Report Bugs here: https://github.com/dkerr64/acme.sh #or here... https://github.com/Neilpang/acme....
the_stack
set +o pipefail ACTION=${1-""} TESTS=$1 [[ $TESTS == all* ]] && TESTS="kiwi,lemon,orange" TESTS=${TESTS//,/ } OPP_INPUT_REPO=${OPP_INPUT_REPO-"operator-framework/community-operators"} OPP_INPUT_BRANCH=${OPP_INPUT_BRANCH-"master"} OPP_THIS_SCRIPT_URL="https://raw.githubusercontent.com/$OPP_INPUT_REPO/$OPP_INPUT_BRANC...
the_stack
VERSION='1.0' SCRIPT_NAME="gke-jupyter-classroom.sh" #exit on any error set -e # Prints the usage for this script function print_usage() { echo "Init Script for Google Contianer Enginer Jupyter Classroom: ${VERSION}" cat <<'EOF' Usage: ./gke-jupyter-classroom.sh [ options ] <command> Description: Used to build, dep...
the_stack
source ../dapp-test-common.sh MAIN_HTTP="" relay_parallel_exec="" relay_CreateRawRelaySaveBTCHeadTx() { local req='{"method":"Chain33.CreateTransaction","params":[{"execer":"'"${relay_parallel_exec}"'","actionName":"BtcHeaders","payload":{"btcHeader":[{"hash":"5e7d9c599cd040ec2ba53f4dee28028710be8c135e779f65c56f...
the_stack
builtin source "${ZI[BIN_DIR]}/lib/zsh/side.zsh" || { builtin print -P "${ZI[col-error]}ERROR:%f%b Couldn't find ${ZI[col-obj]}/lib/zsh/side.zsh%f%b."; return 1; } ZI[EXTENDED_GLOB]="" # # Backend, low level functions # # FUNCTION: .zi-unregister-plugin [[[ # Removes the plugin from ZI_REGISTERED_PLUGINS array and fr...
the_stack
if [[ "$#" -lt 3 ]] || [[ "$#" -gt 5 ]]; then echo "Usage: bash deploy_blockchain_genesis_gcp.sh [dev|staging|spring|summer] <GCP Username> <# of Shards> [--setup] [--keystore]" echo "Example: bash deploy_blockchain_genesis_gcp.sh dev lia 0 --setup" echo "Example: bash deploy_blockchain_genesis_gcp.sh dev l...
the_stack
wait-for-url() { echo "Testing $1" timeout -s TERM 500 bash -c \ 'while [[ "$(curl -s -o /dev/null -L -w ''%{http_code}'' ${0})" != "200" ]];\ do echo "Waiting for ${0}" && sleep 2;\ done' ${1} echo "OK!" curl -I $1 } function wait-for-schemas(){ #array=( one two three ) for i in "${TOP...
the_stack
# Copyright 2017 Vimal Manohar # Apache 2.0 set -e set -o pipefail # This is fisher chain recipe for training a model on a subset of around # 100-300 hours of supervised data. # This system uses phone LM to model UNK. # local/semisup/run_50k.sh and local/semisup/run_100k.sh show how to call this. # train_set ...
the_stack
# This file is part of Background Music. # # Background Music is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation, either version 2 of the # License, or (at your option) any later version. # # Background Music is d...
the_stack
#test /api/job/{id}/run DIR=$(cd `dirname $0` && pwd) source $DIR/include.sh ### # setup: create a new job and acquire the ID ### # job exec args="echo hello there" project=$2 if [ "" == "$2" ] ; then project="test" fi #escape the string for xml xmlargs=$($XMLSTARLET esc "$args") xmlproj=$($XMLSTARLET esc "$p...
the_stack
RED='\033[0;31m' GREEN='\033[0;32m' BLUE='\033[0;34m' GREY='\033[0;37m' NC='\033[0m' # No Color NL=$'\n' DIREKTION=$HOME/go/src/github.com/direktiv/direktion/build/direktion DIREKTIV_API=${DIREKTIV_API:-"http://localhost:80"} NAMESPACE=test suite_dir=${1%/} echo "Searching for tests in: $suite_dir" tests=`find $sui...
the_stack
# Debugging teardown() { echo "Status: $status" echo "Output:" echo "================================================================" for line in "${lines[@]}"; do echo $line done echo "================================================================" } # To work on a specific test: # run `export SKIP=1` loca...
the_stack
set -o errexit -o nounset TOP_DIR=$(cd $(cat "../TOP_DIR" 2>/dev/null||echo $(dirname "$0"))/.. && pwd) TACKER_DIR="$TOP_DIR/scripts/ubuntu/tacker" source "$TOP_DIR/config/paths" source "$LIB_DIR/functions.guest.sh" OPENSTACK_RELEASE=pike #----------------------------------------------------------------------------...
the_stack
set -u # The bocker version. We change this for every new release export BOCKER_VERSION=1.3.0 # Where the Bocker script takes place in the result container export BOCKER_SH="${BOCKER_SH:-/bocker.sh}" # The default shell of result container. Default to `bash`. # For alpine system, you may need to use `/bin/sh`. Image...
the_stack
set -e # define location of openssl binary manually since Cfssl this # script under Vagrant fails on some systems without it if ! which cfssl cfssl-certinfo cfssljson > /dev/null ; then case $(uname -s) in "Linux") curl -o /usr/local/bin/cfssl https://pkg.cfssl.org/R1.2/cfssl_linux-amd64 curl...
the_stack
## s1-c0 Setting File Names INPUT_FILE=$1 OUTPUT_FILE_S01_C01="fb-rdf-s01-c01" OUTPUT_FILE_S01_C02="fb-rdf-s01-c02" ## s1-c1 Substring replacement: URLs FB_URI='http:\/\/rdf.freebase.com' FB_NS_URI='http:\/\/rdf.freebase.com\/ns' W3_URI='http:\/\/www.w3.org\/[0-9]*\/[0-9]*\/[0-9]*-*' sed "s/$FB_NS_URI//g; s/$W3_URI/...
the_stack
# Copyright 2020 Authors of Arktos. # # 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 wr...
the_stack
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # This script dumps examples MPE or MMI or state-level minimum bayes risk (sMBR) # training of neural nets. Note: for "criterion", smbr > mpe > mmi in terms of # compatibility of the dumped egs, meaning you can use the egs dumped with # -...
the_stack
set -e if [ -s pipeline.env ]; then set -o allexport source pipeline.env set +o allexport fi ################################################################ # Log in ################################################################ # extract region from https://api.us-south.cf.cloud.ibm.com export REGION=$(ech...
the_stack
set -e -o pipefail # This recipe trains TDNN-F AM # The training recipe is from WSJ example(egs/wsj/s5/local/chain/tuning/run_tdnn_1g.sh) # steps/info/chain_dir_info.pl exp/chain/tdnn1a_sp # exp/chain/tdnn1b_sp: num-iters=174 nj=2..8 num-params=12.9M dim=40+100->3040 combine=-0.041->-0.041 (over 2) xent:train/valid[1...
the_stack
#set -x target=$1 out_file=$2 threads=$3 branchname=$4 function fetch_mlcrypto() { if [ ! -d mlcrypto ]; then git clone https://github.com/project-everest/MLCrypto mlcrypto fi cd mlcrypto git fetch origin local ref=$(jq -c -r '.RepoVersions["mlcrypto_version"]' "$rootPath/.docker/build/co...
the_stack
PSDIR=$1 set -e ./run_simple_test.sh $PSDIR multipipe_one_last \ 'cat /dev/null | {{ cat & }}' ./run_simple_test.sh $PSDIR multipipe_one_start \ '{{ cat /dev/null & }} | cat' CAT=`which cat` ./run_simple_test.sh $PSDIR function_bash_tools \ "function h { $CAT | $CAT } function g { $CAT | h | $CAT } ...
the_stack
ver="11.00" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $DIR pyconfigfile="./config.py" filename_conf="./pi-timolo.conf" filename_temp="./pi-timolo.conf.temp" filename_utils_conf="/home/pi/pi-timolo/utils.conf" filename_utils_temp="$filename_utils_conf_temp" #------------------------------------------...
the_stack
function set_field_list { usage="Usage: `basename $0` outfile dtg targetDir [awk_cmd]" outfile=${1} ; dtg_loc=${2} ; targDir=${3} ; awk_cmd=${4} if [ -f ${outfile} ] ; then rm -f ${outfile}; fi echo ${targDir} > ${outfile} echo ${dtg_loc} >> ${outfile} if [ ! -d ${targDir} ] ; then return; fi if [ -n "$...
the_stack
# Check for sudo if [ -z "$SUDO_USER" ]; then echo "Error: must run as sudo (sudo ./Updater.sh)" exit fi echo "Checking dependencies ..." # Add updated mesa repository for video driver support sudo add-apt-repository ppa:ubuntu-x-swat/updates -ynr sudo add-apt-repository ppa:ubuntu-raspi2/ppa -ynr sudo add-ap...
the_stack
see='https://github.com/timrdf/csv2rdf4lod-automation/wiki/CSV2RDF4LOD-not-set' CSV2RDF4LOD_HOME=${CSV2RDF4LOD_HOME:?"not set; source csv2rdf4lod/source-me.sh or see $see"} # cr:data-root cr:source cr:directory-of-datasets cr:dataset cr:directory-of-versions cr:conversion-cockpit ACCEPTABLE_PWDs="cr:data-root" if [ `$...
the_stack
############################################################################################ ## ## Script to install the latest Zoom client ## ############################################################################################ ## Copyright (c) 2020 Microsoft Corp. All rights reserved. ## Scripts are not suppo...
the_stack
set -e set -o pipefail . conf/common_vars.sh || exit 1; . ./lang.conf || exit 1; type=dev10h dev2shadow=dev10h.uem eval2shadow=eval.uem data_only=false fast_path=true skip_kws=false skip_stt=false max_states=150000 wip=0.5 . utils/parse_options.sh if [ $# -ne 0 ]; then echo "Usage: $(basename $0) --type (dev10h|d...
the_stack
set -x set -e set -u set -o pipefail folder="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" git pull mkdir -p "$folder"/rawdata mkdir -p "$folder"/processing # url dato geografico URL="https://github.com/pcm-dpc/COVID-19/raw/master/aree/geojson/dpc-covid-19-aree-nuove-g-json.zip" # leggi la risposta HTTP del sito ...
the_stack
. ./path.sh || exit 1; . ./cmd.sh || exit 1; . ./db.sh || exit 1; log() { local fname=${BASH_SOURCE[1]##*/} echo -e "$(date '+%Y-%m-%dT%H:%M:%S') (${fname}:${BASH_LINENO[0]}:${FUNCNAME[1]}) $*" } stage=0 # start from 0 if you need to start from data preparation stop_stage=100 FOLDER=git_aishell . uti...
the_stack
set -e HARBOR_ADDR=localhost PRJ_NAME=tmp SUCCESS="\033[42;30;1m Success \033[0m" ERROR="\033[41;30;1m Error \033[0m" separator() { printf "%s\n\n" "-----------------" } prepare() { echo "----- prepare harbor-go-client and conf/ for tesing -----" go build -v ../ cp -r ../conf . separator e...
the_stack
if [ "$SYSINFO_DONE" != "yes" ] ; then #----------------------------------------------------------------------------- # mark that we have run (or are about to) SYSINFO_DONE="yes" #----------------------------------------------------------------------------- # determine $root if [ -n "$ROOT" -a -d "$ROOT" ] ; then ...
the_stack
source "$(dirname "${BASH_SOURCE[0]}")/command.bash" HOST_PROMPT=${HOST_PROMPT-"\e[38;5;11mhost>\e[0m "} HOST_LIB_DIR="$(dirname "${BASH_SOURCE[0]}")" HOST_PROJECT_DIR="$(dirname "$(dirname "$(realpath "$HOST_LIB_DIR")")")" HOST_VM_IMAGE_DIR=~/vms/images HOST_VM_DATA_DIR_TEMPLATE="~/vms/data/\${VM_NAME}" if [ -z "$HOS...
the_stack
STATEDIR=~/.scale-cloud SES_CONF=ses.yaml : ${want_json_assignment:=0} : ${boot_options:=efiboot} set -x set -e function reset() { rm -f $STATEDIR/*-done } function setup_host() { # setup environment source automation/hostscripts/upgrade-scale/setup.sh export want_ipmi_username="<ILO USER>" expor...
the_stack
BUILDAH_BINARY=${BUILDAH_BINARY:-$(dirname ${BASH_SOURCE})/../bin/buildah} IMGTYPE_BINARY=${IMGTYPE_BINARY:-$(dirname ${BASH_SOURCE})/../bin/imgtype} COPY_BINARY=${COPY_BINARY:-$(dirname ${BASH_SOURCE})/../bin/copy} TESTSDIR=${TESTSDIR:-$(dirname ${BASH_SOURCE})} STORAGE_DRIVER=${STORAGE_DRIVER:-vfs} PATH=$(dirname ${B...
the_stack
# Reference # https://stackoverflow.com/questions/4023830/how-to-compare-two-strings-in-dot-separated-version-format-in-bash # Patch the board from knowed errors MODULE_NAME="Patch $JETSON_DESCRIPTION from known errors" MODULE_DESCRIPTION="Patch $JETSON_DESCRIPTION from known errors" MODULE_DEFAULT="AUTO" # Know erro...
the_stack
# Test cases given by this file is not executed on the CI server. # This file is just used for brief behavior checking during the development. if [ -n "$BASH_VERSION" ]; then # This is bash echo "Testing for bash $BASH_VERSION" echo " $(tmux -V)" fi # Directory name of this file readonly THIS_DIR="$(...
the_stack
################################################################################# # # # TPM2 regression test # # Written by Ken Goldman # # IBM Thomas J. Watson Research Center # # $Id: testecc.sh 1277 2018-07-23 20:30:23Z kgoldman $ # # # # (c) Copyright IBM Corporation 20...
the_stack
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # Script that will mount a given EBS volume for use. # This script will: # 1) Attach the volume to this instance if it is not already attached. # 2) Format the block volume to the filesystem format that's pas...
the_stack
# This only works when run on the server machine, not a separate client BASE_URL=$1 set -e -E -o pipefail source `dirname $0`/common.sh user_login_coordinator curl_postj action.php "action=photo.assign&repo=car&racer=1&photo=Car-1234.jpg" | check_jfailure # For demo purposes, we want at least one car photo assigned ...
the_stack
# be sure to bail on script errors and unepected tool failures set -e PERSONA_MGR="${PWD}/persona_mgr" PERSONA_SPAWN="${PWD}/persona_spawn" if [ ! -d "$TMPDIR" ]; then echo "Couldn't find temp directory '$TMPDIR': check permissions/environment?" exit 255 fi if [ ! -e "${PERSONA_MGR}" ] || [ ! -x "${PERSONA_MGR}" ...
the_stack
# Author: Hunter Gregal # Github: /huntergregal Twitter: /huntergregal Site: huntergregal.com # Dumps cleartext credentials from memory #root check if [[ "$EUID" -ne 0 ]]; then echo "Root required - You are dumping memory..." echo "Even mimikatz requires administrator" exit 1 fi #Store results to cleanup ...
the_stack
# use PATH_GCCARM env var to override default path for gcc-arm if [[ -z ${PATH_GCCARM} ]]; then OBJCOPY="${ARM_GCC_DIR}/bin/arm-none-eabi-objcopy" if [[ `uname` == CYGWIN* ]]; then OBJCOPY="`cygpath ${OBJCOPY}`"; fi else OBJCOPY="${PATH_GCCARM}/bin/arm-none-eabi-objcopy" fi # use PATH_SCMD env var to set path fo...
the_stack
source "$(dirname "${BASH_SOURCE[0]}")/util.bash" ############################## # AUTO SCALE GROUP UTILITIES # ############################## function getAutoScaleGroupNameByStackName() { local -r stackName="${1}" checkNonEmptyString "${stackName}" 'undefined stack name' aws autoscaling describe-auto-s...
the_stack
function print_usage { echo -e "USAGE: aws-igenomes.sh\n" \ "\t\t[-g <genome name>]\n" \ "\t\t[-s <source name>]\n" \ "\t\t[-b <build name>]\n" \ "\t\t[-t <reference type>]\n" \ "\t\t[-o <output directory>]\n" \ "\t\t[-d (dry run, no downloads)]\n" \ "\t\t[-q ...
the_stack
set -e; export LC_NUMERIC=C; # Directory where the prepare.sh script is placed. SDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"; [ "$(pwd)/utils" != "$SDIR" ] && echo "Please, run this script from the experiment top directory!" >&2 && exit 1; [ ! -f "$(pwd)/utils/parse_options.inc.sh" ] && echo "Missing $(pwd)/ut...
the_stack
#========================================================================= # Functions #========================================================================= makeVarsFromJson() { local IFS=$'\n' for line in $(jsonpipe < $1);do if echo $line|egrep -q '(\{}|\[])'; then : else ...
the_stack
############################################################## # opencontrail-kubernetes minion setup and provisioning script. # For more info, please refer to the following link # https://github.com/Juniper/contrail-kubernetes ############################################################## source /etc/contrail/opencon...
the_stack
# Make sure that we are in the correct directory to start. if test -d ../Rare ; then cd .. fi #if test "x$1" = "x--include-rare" ; then RARE="" #else # RARE="--rare" #fi # Compile the "ucm2cp" tool. if gcc -o tools/ucm2cp tools/ucm2cp.c ; then : else exit 1 fi UCM2CP=tools/ucm2cp ${UCM2CP} --region Rare --page 3...
the_stack
### Easy UBNT: UniFi SDN Installer ############################################################################## # A guided script to install/upgrade the UniFi SDN Controller, and secure # your server according to best practices. # https://github.com/sprockteam/easy-ubnt # MIT License # Copyright (c) 2018-2019 SprockT...
the_stack
UPDATE_VERSION_HB="1.3.4" UPDATE_VERSION_HB_HUE="0.13.5" UPDATE_VERSION_HB_LIB="5.1.1" UPDATE_VERSION_NPM="6.14.12" UPDATE_VERSION_NODE="14.16.0" # when increasing major version of node adjust downoload link NODE_DOWNLOAD_LINK="https://deb.nodesource.com/setup_14.x" TIMEOUT=0 LOG_LEVEL=3 ZLLDB="" SQL_RESULT= OWN_PID=...
the_stack
# Stop on the first sign of trouble set -e # Show all commands # set -x RUNNING_ON_PI=true SILENT_INSTALL=false DATE=$(date +"%Y%m%d-%H-%M") IPADDRESS=$(hostname -I | cut -d " " -f 1) SUBFOLDER=true PI_CAMERA=false KIOSK_MODE=false USB_SYNC=false SETUP_CUPS=false CUPS_REMOTE_ANY=false if [ ! -z $1 ]; then WEBSE...
the_stack
# bootstrap the exchange TEST_DIFF_ORG=${TEST_DIFF_ORG:-1} EXCH_URL="${EXCH_APP_HOST}" export ARCH=${ARCH} # the horizon var base for storing the keys. It is the default value for HZN_VAR_BASE. mkdir -p /var/horizon mkdir -p /var/horizon/.colonus docker version # update host file if needed if [ "$ICP_HOST_IP" != ...
the_stack