text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
set -uo pipefail # shellcheck disable=SC2155 export DEFAULT_ZITI_HOME_LOCATION="${HOME}/.ziti/quickstart/$(hostname)" export ZITI_QUICKSTART_ENVROOT="${HOME}/.ziti/quickstart" ASCI_WHITE='\033[01;37m' ASCI_RESTORE='\033[0m' ASCI_RED='\033[00;31m' ASCI_GREEN='\033[00;32m' ASCI_YELLOW='\033[00;33m' ASCI_BLUE='\033[00;...
the_stack
localPath=$(pwd) roles="NONE" voter="NONE" accounts="NONE" nodes="NONE" org="NONE" permImpl="NONE" permInterface="NONE" upgr="NONE" nwAdminOrg="" nwAdminRole="" orgAdminRole="" subOrgDepth=0 subOrgBreadth=0 sleepTime=1 function usage() { echo "" echo "Usage:" echo " $0 [raft | istanbul | clique] [tessera | co...
the_stack
set -o pipefail if [ "$DEBUG" = "yes" ]; then set -x fi echo "INFO: $(basename "$0") BEGIN $(date +%s) / $(date)" SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P) # shellcheck source=env.sh . "${SCRIPT_DIR}/env.sh" STAKE="$1" if [ -z "${STAKE}" ]; then echo "ERROR: STAKE (in tokens) is not speci...
the_stack
# shared functions library DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) function pause(){ read -p "$*" } function check_iso_offline_setting() { # check if offline setting is present in settings file check=$(cat ~/kube-solo/settings/k8solo-01.toml | grep "offline" ) if [[ "${check}" = "" ]] then ec...
the_stack
###################################################################### # # MAKRJ.SH # A JSON Generator Which Makes From "JSONPath-value" Formatted Text # # === What is "JSONPath-value" Formatted Text? === # 1. Format # <JSONPath_string#1> + <0x20> + <value_at_that_path#1> # <JSONPath_string#2> + <0x20> + <value...
the_stack
cat << EOF > "${archname}" #! /usr/bin/env bash if [ \${BASH_VERSION:0:1} -lt 4 ] || [ \${BASH_VERSION:0:1} -eq 4 -a \${BASH_VERSION:2:1} -lt 2 ]; then printf "Unsupported %s version: %s\n" "\${BASH}" "\${BASH_VERSION}" >&2 exit 1 fi set -euo pipefail shopt -s lastpipe readonly description="${LABEL}" readonl...
the_stack
_nx_command() { echo "${words[2]}" } # @todo: Document. _nx_arguments() { if zstyle -t ":completion:${curcontext}:" option-stacking; then print -- -s fi } # Describe the cache policy. _nx_caching_policy() { oldp=( "$1"(Nmh+1) ) # 1 hour (( $#oldp )) } # Check if at least one of w_defs are present in wo...
the_stack
set -o errexit -o nounset TOP_DIR=$(cd $(cat "../TOP_DIR" 2>/dev/null||echo $(dirname "$0"))/.. && pwd) source "$TOP_DIR/config/paths" source "$CONFIG_DIR/credentials" source "$LIB_DIR/functions.guest.sh" source "$CONFIG_DIR/demo-openstackrc.sh" exec_logfile indicate_current_auto #-----------------------------------...
the_stack
set -e # immediately exit if any command has a non-zero exit status set -u # a reference to any variable you have not previously defined causes the program to immediately exit set -o pipefail # If any command in a pipeline fails, that return code will be used as the return code of the whole pipeline PROGNAME=$(basenam...
the_stack
######################################### # Determines the OS & Version to direct # Naomi build process correctly. ######################################### BLACK='\033[1;30m' RED='\033[1;31m' GREEN='\033[1;32m' YELLOW='\033[1;33m' BLUE='\033[1;34m' MAGENTA='\033[1;35m' CYAN='\033[1;36m' WHITE='\033[1;37m' B_C='\033[1;...
the_stack
MODEL_DIR=$1 DEPLOY=$2 CAFFEMODEL=$3 MEAN1=$4 MEAN2=$5 MEAN3=$6 SCALE=$7 compile_mode=$8 NW_NAME=$9 echo "compliler mode : ${compile_mode}" echo "NW_NAME : $NW_NAME" echo "MODEL_DIR = ${MODEL_DIR}" echo "PLATFORM = ${PLATFORM}" echo "Mean values : ${MEAN1} ${MEAN2} ${MEAN3}" echo "scale : ${SCALE}" echo "compliler mode...
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
# This script is intended to build a mipsel-linux-gnu cross compilation # toolchain that runs on x86 linux and generates code for a little-endian, # hard-float, mips32 target. ###################################################################### # Config ###############################################################...
the_stack
### # Call this script to perform a release of Ehcache (Maven central, website, kit and all). # # See https://github.com/ehcache/ehcache3/wiki/dev.release for details. # # Set a dryRun variable if you want to skip commits and pushes ### # to exit in case of error set -e # to see what's going on #set -v function pause...
the_stack
_KWORDS=(bridge switch port interface iface dp_name dp) # Command name. _COMMAND= # Printf enabler. _PRINTF_ENABLE= # Bash prompt. _BASH_PROMPT= # Output to the compgen. _COMP_WORDLIST= # # For ovs-appctl command only. # # Target in the current completion, default ovs-vswitchd. _APPCTL_TARGET= # Possible targets. _POS...
the_stack
CLEAR=clear SOLO_IP=10.1.1.10 ARTOO_IP=10.1.1.1 SCPARGS="-o StrictHostKeyChecking=no -i ./updater_id_rsa" SERVERADDR="REDACTED" system=`uname -a | awk '{print $1}'` downloadTarAndMD5() { FILEPATH=$1 FILES=`curl -u sololink:redacted -s "${SERVERADDR}${FILEPATH}update/" | grep href | sed 's/.*href="//' | sed...
the_stack
# Install rpimonitor on a pine64 running ubuntu or debian # # Original code lifted from http://kaiser-edv.de/tmp/4U4tkD/install-rpi-monitor-for-a64.sh # Original code written by tkaiser, as well as assuggestions for a deriverative work # # This modification written by pfeerick if [ "$(id -u)" != "0" ]; then ec...
the_stack
set -ex export TOPWD="$(pwd)" org=$1 version=$2 catalogversion=$3 buildtarget=$4 system="firecamp" replaceOrgName="s!%%OrgName%%!${org}!g;" BuildPlugin() { path="${TOPWD}/scripts/plugin-dockerfile" target="$system-pluginbuild" image="${org}${target}" echo "### docker build: builder image" docker build -q...
the_stack
# Cluster Clone Script # ------- ----- ------ # This script is designed to duplicate the existing configuration of a cluster. It is ideal for "cloning" a cluster. If you need to # setup another cluster SIMILAR to the original cluster, you will need to pay special attention to numerous variables # such as cluster/clien...
the_stack
USER="vagrant" PKGDIR=/vagrant/pkgs HOME=/home/vagrant PCAP_REPLAY=/srv/replay if [[ -n $(ip link show | grep eth0) ]]; then # legacy naming IFACE_EXT="eth0" IFACE_INT="eth1" IFACE_PATTERN="eth" elif [[ -n $(ip link show | grep ens1) ]]; then # vmware IFACE_EXT="ens192" IFACE_INT="ens192" IFACE_PATTERN...
the_stack
# Magic line must be first in script (see README.md) s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi arch=$(arch) # Default values : ${to:=5000} # Max N : ${step=1000} # Iterate in steps (also starting point) : ${reqs=100} # Number of requests in each burst : ${run:=true} # run tests (or skip ...
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 u...
the_stack
set -euo pipefail shopt -s globstar # NOTE: we want to use --network=host everywhere we use docker here, for # performance (supposedly). We include X:X port mappings which will be used on # Mac and Windows(?) where --network=host is ignored. echo_pretty() { echo ">>> $(tput setaf 2)$1$(tput sgr0)" } die_usage()...
the_stack
# To enable a minimal set of Zaqar services, add the following to localrc: # # enable_service zaqar-websocket zaqar-wsgi # # Dependencies: # - functions # - OS_AUTH_URL for auth in api # - DEST set to the destination directory # - SERVICE_PASSWORD, SERVICE_TENANT_NAME for auth in api # - STACK_USER service user # ...
the_stack
set -euo pipefail ; # <- this semicolon and comment make options apply # even when script is corrupt by CRLF line terminators (issue #75) # empty line must follow this comment for immediate fail with CRLF newlines backup_path="/opt/nvidia/libnvidia-encode-backup" silent_flag='' manual_driver_version='' print_usage() ...
the_stack
scriptname=${0##*/} if [ $# -lt 7 ] then echo "Usage: $scriptname <annotated SNAP file> <annotated RAPSearch file> <e value> <# cores> <top X gis to compare against each other> <top X coverage plots per genus> <basef>" exit fi ### SNAP_file=$1 RAPSearch_file=$2 e_value=$3 cores=$4 top_gis=$5 top_plots=$6 basef=$7 ##...
the_stack
#################################################################################################### # Name: Autodesk Fusion 360 - Setup Wizard (Linux) # # Description: This is the Italian translation for the Setup Wizard. # # Author: S...
the_stack
function zaloha_docu { less << 'ZALOHADOCU' ########################################################### MIT License Copyright (c) 2019 Fitus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software wit...
the_stack
@setup { load "test_lib.zsh" } @test 'zpwrIsZsh fn returns 0' { run type zpwrIsZsh assert $state equals 0 } @test 'bash source bad file' { run bash -c "source ${ZPWR_LIB}t || exit 2; zpwrIsZsh || exit 1" assert $state equals 2 } @test 'bash zpwrIsZsh fn returns 1' { run bash -c "source $ZPWR_...
the_stack
# ----------------------------------------------------------------------------------------------- # Common purpose functions used by bootstrap scripts # ----------------------------------------------------------------------------------------------- # Validates values of the main environment variables specified in env....
the_stack
cat 1>&2 <<-EOF This script is not to run on any system. Anh K. Huynh adds this banner to prevent script from being used. The original script is here https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/blob/6cd6b2485668e8a87485cb34ca8a0a937e73f16d/install.sh EOF exit 0 # --------------------------------...
the_stack
#-----------------------------------------------------------------------------# # Source the settings file #-----------------------------------------------------------------------------# source /usr/src/eFa/eFa-settings.inc #-----------------------------------------------------------------------------# #--------------...
the_stack
#master address masterAddr="http://192.168.0.11:17010" mastersAddr="192.168.0.11:17010,192.168.0.12:17010,192.168.0.13:17010" #cfs-client path cd ../client ./build.sh cp cfs-client ../'test'/ cd ../'test' cfs_client=./cfs-client #test_arry initial with 1,mark the result of each case #1 means succeed, 0 means faile...
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
############################################################################## # run-kiali.sh # # This script allows you to run Kiali on the local machine # while it is connected to a remote k8s cluster. # # This is useful for Kiali developers who want to do quick code/build/test # cycles without deploying Kiali direct...
the_stack
set -ex image="$1" shift if [ -z "${image}" ]; then echo "Usage: $0 IMAGE" exit 1 fi function extract_version_from_image_name() { eval export $2=$(echo "${image}" | perl -n -e"/$1(\d+(\.\d+)?(\.\d+)?)/ && print \$1") if [ "x${!2}" = x ]; then echo "variable '$2' not correctly parsed from image='$image'" ...
the_stack
echo "corpus minimization tool for afl-fuzz by Michal Zalewski" echo ######### # SETUP # ######### # Process command-line options... MEM_LIMIT=none TIMEOUT=none unset IN_DIR OUT_DIR STDIN_FILE EXTRA_PAR MEM_LIMIT_GIVEN \ AFL_CMIN_CRASHES_ONLY AFL_CMIN_ALLOW_ANY QEMU_MODE UNICORN_MODE export AFL_QUIET=1 while ge...
the_stack
set -e #Colors RED="\033[0;31m" GREEN="\033[0;32m" BLUE="\033[0;34m" NO_COLOUR="\033[0m" #Defaults time_stamp=$(date -u +%Y-%b-%d) module_name="CA" report_format="html" report_flags="--html --html-details"; #IOTIVITY Flags IOTIVITY_BASE="${PWD}" IOTIVITY_TARGET_OS="linux" IOTIVITY_TARGET_ARCH="$(uname -m)" USE_TIMEST...
the_stack
set +x . /etc/sysconfig/heat-params set -ex CHART_NAME="prometheus-operator" if [ "$(echo ${MONITORING_ENABLED} | tr '[:upper:]' '[:lower:]')" = "true" ]; then echo "Writing ${CHART_NAME} config" HELM_CHART_DIR="/srv/magnum/kubernetes/helm/magnum" mkdir -p ${HELM_CHART_DIR} cat << EOF >> ${HELM_CHAR...
the_stack
ERR=1 OK=0 function setup_globals() { : ' Parameters: $1 KUBEREPO - kubernetes repo location $2 PBENCH_RES - pbench results directory ' # e2es export KUBEREPO=${1:-'/opt/kubernetes'} # pbench export PB_RES=${2:-'/var/lib/pbench-agent'} PBENCH_C...
the_stack
# Mac OS X configuration # Heavily customized from Jeff Geerling's Dotfiles. Original notes below: # ============================================================== # # This configuration applies to the latest version of macOS (currently 11.3), # and sets up preferences and configurations for all the built-in services a...
the_stack
config=~/.config/orw/config notify=~/.orw/scripts/notify.sh services=~/.orw/dotfiles/services all_colors=~/.config/orw/colorschemes/colors function set() { sed -i "s#^$1.*#$1 ${2:-${!1}}#" $config if [[ $1 == directory ]]; then $notify -p "$icon directory <b>${directory//\'/}</b>\nhas been successfully set as def...
the_stack
find_in_list() { a="x`eval echo \\$$1`" if [ "$a" = "x" ]; then for a in $2; do for b in $a ${a}.exe; do if type $b >/dev/null 2>/dev/null; then echo $1=$b eval $1=$b echo export $1 export $1 ...
the_stack
# Copyright (c) 2020 NVIDIA CORPORATION. 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 applicabl...
the_stack
# Function definitions have to be here. # For actual code ran when you run this script, search for "# MAIN PROGRAM #" # Function : show_help_and_exit # Description : Like the name suggests, it prints help page, and exits script # : If given args, treats them as format and arguments for printf # ...
the_stack
# Guess values for system-dependent variables and create makefiles. # Generated automatically using autoconf version 2.4 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify i...
the_stack
# Author: stablestud <adsorber@stablestud.org> # Repository: https://github.com/stablestud/adsorber # License: MIT, https://opensource.org/licenses/MIT # Variable naming: # under_score - used for global variables which are accessible between functions. # _extra_under_score - used for temporary function v...
the_stack
export PATH=$PATH:/usr/local/bin lanip="" wlanip="" serverFqdn="" processor=1 # -----------------------Variables definition--------------------- fileserver="https://dgiot-release-1306147891.cos.ap-nanjing.myqcloud.com/v4.4.0" updateserver="http://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/dgiot_release/update" ...
the_stack
######################################################### # HELP # ######################################################### help(){ echo "_________________________________________________________________________" echo "| USAGE OPTIONS |" echo "|_________...
the_stack
source ./options.conf # Seconds to wait before removing a domain/virtualhost REMOVE_DOMAIN_TIMER=10 # Check domain to see if it contains invalid characters. Option = yes|no. DOMAIN_CHECK_VALIDITY="yes" #### First initialize some static variables #### # Specify path to database management tool if [ $DB_GUI -eq 1 ]; ...
the_stack
set -o errexit # abort on nonzero exit status set -o nounset # abort on unbound variable set -o pipefail # don't hide errors within pipes # Don't pollute console output with upgrade notifications export PULUMI_SKIP_UPDATE_CHECK=true # Run Pulumi non-interactively export PULUMI_SKIP_CONFIRMATIONS=true script_dir="$(...
the_stack
# Set local vars SCRIPTDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) EXAMPLESDIR=$SCRIPTDIR/../../examples TCPAPPDIR=$SCRIPTDIR/../apps/tcp A8_TEST_SUITE=$1 if [ "$A8_TEST_SUITE" == "examples" ]; then PRODUCTPAGE_V1_OUTPUT="productpage_v1.html" PRODUCTPAGE_V2_OUTPUT="productpage_v2.html" PRODUCTPAGE...
the_stack
function bail_out() { echo "@@@ $1" echo "@@@ aborted." exit 1 } function get_a_yes() { local __resultvar=$1 local line result echo -en "\n$2 (y/yes)? " read line if [[ "$line" =~ ^(y|yes)$ ]]; then result="yes" else result="no" fi eval $__resultvar="'$result'" } # create network entry in /etc/network...
the_stack
############################################################ # # Node setup script # # This will setup hadoop on the node. This also # formats and mounts the data-disk as well. # ############################################################ # # Enable logging. # exec 3>&1 4>&2 trap 'exec 2>&4 1>&3' EXIT SIGHUP SIG...
the_stack
URL_BASE=https://www.dektec.com HTML_URL=$URL_BASE/downloads/SDK/ GENERIC_URL=$URL_BASE/products/SDK/DTAPI/Downloads/LatestLinuxSDK CACERT_URL=https://curl.se/ca/cacert.pem SCRIPT=$(basename $BASH_SOURCE) ROOTDIR=$(cd $(dirname $BASH_SOURCE)/..; pwd) BINDIR="$ROOTDIR/bin" SYSTEM=$(uname -s | tr A-Z a-z) info() { echo...
the_stack
# Bail on errors set -e # We shouldn't have unbounded vars set -u ####################################################################### # SCRIPT KNOBS ####################################################################### # Update for new releases, will pull this tag in the repo DEFAULT_AGENT_VERSION="5.32.7" # Pin...
the_stack
# Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # # This script, which will generally be called from other neural-net training # scripts, extracts the training examples used to train the neural net (and also # the validation examples used for diagnostics), and puts them in separate a...
the_stack
# Set project dir (where src and install files go) DSIP_PROJECT_DIR=$(git rev-parse --show-toplevel 2>/dev/null) export DSIP_PROJECT_DIR=${DSIP_PROJECT_DIR:-$(dirname $(readlink -f "$0"))} # Import dsip_lib utility / shared functions . ${DSIP_PROJECT_DIR}/dsiprouter/dsip_lib.sh # set script config settings setScriptS...
the_stack
version="1.17" trap "/bin/rm -f /tmp/hs_filt.*.$$ ; exit 1" 1 2 3 15 # Change to the installation directory in order to execute from # any where other than the installation directory. DeleteHyphens=false UpCase=true; ExtASCII=false; Usage="Usage: csrfilt.sh [ -dh -s -e ] -i [ stm | ctm | trn | txt | rttm ] global-m...
the_stack
DR_TYPE=$1 #Can be lightwave or post APP_NAME=$2 DG_NAME=$3 REGION=$4 S3_PATH=$5 VPC_ID=$6 #Not needed for POST S3_BUCKET=`cut -d "/" -f 1 <<< "$S3_PATH"` S3_KEY=`cut -d "/" -f 2- <<< "$S3_PATH"` if [ "$DR_TYPE" != "lightwave" ] && [ "$DR_TYPE" != "post" ]; then echo "First argument must be either light...
the_stack
# Copyright (c) 2015, Plume Design Inc. All rights reserved. # # 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 condition...
the_stack
set -e # constants DEV_CONTAINER_IMAGE="openintegrationhub/dev-connector:latest" HOST_OIH_DIRECTORY="/Users/james/OIH/openintegrationhub" TENANT_1_NAME="Tenant 1" TENANT_1_ADMIN="ta1@example.com" TENANT_1_ADMIN_PASSWORD="1234" TENANT_1_USER="tu1@example.com" TENANT_1_USER_PASSWORD="1234" TENANT_2_NAME="Tenant 2" T...
the_stack
# exit on error; treat unset variables as errors; exit on errors in piped commands set -euo pipefail # Ensure we operate from consistent pwd for the rest of the script DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" # Figure out the ABSOLUTE PATH of this script without relying on the realpath c...
the_stack
# $Id$ # Path to the chosen pyana script. This should not need to be # changed. According to Marc Messerschmidt following ana-current # should always be fine, unless one really wants to make sure # everything is kept at the point where one started developing. Do # not use the shell's built-in which(1), which may gi...
the_stack
# arguments: $RELEASE $LINUXFAMILY $BOARD $BUILD_DESKTOP # # This is the image customization script # NOTE: It is copied to /tmp directory inside the image # and executed there inside chroot environment # so don't reference any files that are not already installed # NOTE: If you want to transfer files between chroot ...
the_stack
export ADBYBY=/usr/share/adbyby export config=/etc/config crontab=/etc/crontabs/root cron=/etc/config/cron alias echo_date='echo 【$(date +%Y年%m月%d日\ %X)】:' luci="https://raw.githubusercontent.com/kysdm/adbyby/master/luci-app-adbyby" kysdm_github="https://raw.githubusercontent.com/kysdm/adbyby" kysdm_coding="https://c...
the_stack
if [ "$(docker ps | grep openvswitch)" ]; then OVS_OFCTL="docker exec openvswitch ovs-ofctl" OVS_APPCTL="docker exec openvswitch ovs-appctl" else OVS_OFCTL="ovs-ofctl" OVS_APPCTL="ovs-appctl" fi # echoes args to stderr and exits die () { echo "$*" 1>&2 exit 1 } # echoes the command provided as...
the_stack
# Script to Recognize Textual Entailment of problems in English, using # multiple CCG parsers (C&C and EasyCCG at the moment). # This script receives a file with several sentences (one per line), where all # sentences are premises except the last one, which is a conclusion. It returns # 'yes' (the premises entail the c...
the_stack
#/* # * Copyright 2017 ~ 2025 the original author or authors. <Wanglsir@gmail.com, 983708408@qq.com> # * # * 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...
the_stack
echo usage: pass gpu id list as param, split with , echo eg: source run_main.sh 3 snips OR source run_main.sh 3 ner echo log file path ../sllog/ gpu_list=$1 # Comment one of follow 2 to switch debugging status do_debug=--do_debug #do_debug= task=sl # ======= dataset setting ====== dataset_lst=($2) #dataset_lst=(s...
the_stack
grep "LINESHAPE EFFICIENCY:" *.out > tmp.txt cat tmp.txt | sed "s|.out:LINESHAPE EFFICIENCY||g" > parsed_lineshape.txt grep "qMisID EFFICIENCY:" *.out > tmp.txt cat tmp.txt | sed "s|.out:qMisID EFFICIENCY||g" > parsed_qmisid.txt grep "LINESHAPE EFFICIENCY:" *.out.mc > tmp.txt cat tmp.txt | sed "s|.out.mc:LINESHAPE EFFI...
the_stack
# Copyright 2019 Red Hat, Inc. and/or its affiliates. # # 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 ...
the_stack
if [ "$1" == "--help" ]; then # Determine the absolute path to this script. D=`dirname "$0"` script_home="`cd \"$D\" 2>/dev/null && pwd || echo \"$D\"`" echo echo "This script is run by cron to automate an installation of csv2rdf4lod-automation." echo " See:" echo " https://github.com/jimmccus...
the_stack
set -eu # Load the test setup defined in the parent directory CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source "${CURRENT_DIR}/../integration_test_setup.sh" \ || { echo "integration_test_setup.sh not found!" >&2; exit 1; } # Returns 0 if gcov is not installed or if a version before 7.0 was found. ...
the_stack
# When TF >= 2.5, SOK + MirroredStrategy will hang, so that # each CPU processes only controls one GPU. set -e export PS4='\n\033[0;33m+[${BASH_SOURCE}:${LINENO}]: \033[0m' set -x # ---------- operation unit test------------- # python3 test_all_gather_dispatcher.py python3 test_csr_conversion_distributed.py python3 ...
the_stack
set -ex BINDIR=`dirname "$0"` PULSAR_HOME=`cd ${BINDIR}/..;pwd` FUNCTION_MESH_HOME=${PULSAR_HOME} OUTPUT_BIN=${FUNCTION_MESH_HOME}/output/bin KIND_BIN=$OUTPUT_BIN/kind HELM=${OUTPUT_BIN}/helm KUBECTL=${OUTPUT_BIN}/kubectl NAMESPACE=default CLUSTER=sn-platform CLUSTER_ID=$(uuidgen | tr "[:upper:]" "[:lower:]") FUNCTIO...
the_stack
# If we're runnig via Bazel, find the source files via $TEST_SRCDIR; # otherwise, default to dir of current file and search relative to that. if [ -n "${TEST_SRCDIR:-}" ]; then declare -r SRCDIR="${TEST_SRCDIR}/${TEST_WORKSPACE}" else # If the file pointing to this script is a symlink, we need to resolve it. # Ho...
the_stack
ver="5.00" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # get cur dir of this script progName=$(basename -- "$0") cd $DIR echo "================================================" echo "INFO : $progName $ver written by Claude Pageau" # convid.sh - written by Claude Pageau # # This script will convert h264 ...
the_stack
echo usage: pass gpu id list as param, split with , echo eg: source run_main.sh 3 snips OR source run_main.sh 3 ner echo log file path ../result/ gpu_list=$1 # Comment one of follow 2 to switch debugging status #do_debug=--do_debug do_debug= task=sl # ======= dataset setting ====== dataset_lst=($2) #dataset_lst=(...
the_stack
# Copyright 2016 Google, 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 to in writing, sof...
the_stack
readonly GENOMICS_PUBLIC_BUCKET="gs://genomics-public-data" readonly POPULATION_FILE="ftp-trace.ncbi.nih.gov/1000genomes/ftp/20131219.superpopulations.tsv" readonly POPULATION_FILE_FULL_PATH="${GENOMICS_PUBLIC_BUCKET}"/"${POPULATION_FILE}" readonly POPULATION_MD5="68a73f849b82071afe11888bac1aa8a7" readonly INPUT_BAM_F...
the_stack
#---- INTRO --------------- # # Continuity Activation Tool 2 - built by dokterdok # # Description: This script enables OS X 10.10 and 10.11 Continuity features when compatible hardware is detected. # Continuity features activated by this tool include Application Handoff, Instant Hotspot, and New Airdrop. # The tool has...
the_stack
# Author: Gabriel Staples # This file is part of eRCaGuy_dotfiles: https://github.com/ElectricRCAircraftGuy/eRCaGuy_dotfiles # find_and_replace.sh # - find and replace a string across multiple files, using regular expressions # - excellent for mass variable replacements/variable renaming when writing software, for ...
the_stack
Usage() { echo 'Usage: vnxexport.sh [setup]' echo ' [setup]: Run on a new ViPR database, creates SMIS, host, initiators, vpools, varray, volumes' exit 2 } SANITY_CONFIG_FILE="" # The token file name will have a suffix which is this shell's PID # It will allow to run the sanity in parallel export BOURNE_TOK...
the_stack
set -eo pipefail # Allow setshell #software=/idiap/resource/software #source $software/initfiles/shrc $software #win=/remote/lustre/1/temp/bpotard/src/kaldi-trunk/egs/TTS/win # Perform raw resynthesis of cmp file #SETSHELL straight #SETSHELL sptk #TMP=/scratch/$USER/tmp #mkdir -p $TMP synth=excitation # or excitatio...
the_stack
# To avoid a segfault on AT&T ksh93, fork this subshell. command ulimit -t unlimited 2>/dev/null # Make sure no spurious external commands are executed while allowing 'yash -o posix' to use builtins. PATH=${DEFPATH:=$(getconf PATH)} || exit # Produce non-matching output on premature exit. trap 'echo fatalbug' 0 # BUG...
the_stack
_D=$(dirname "${BASH_SOURCE[0]}") . "$_D/functions.bash" export API=/opt/grouper/grouper.apiBinary export GSH=gsh_ PATH="$(absolute_dir "$_D")/scripts:$PATH" # read_test_config_files # Defines: $flavor from argument # Pull-in shell functions from test-config.<flavor> for generating config and verifying provisioning ...
the_stack
set -ex # default globals TARGET="${TARGET:-emqx/emqx}" EMQX_DEPLOY="${EMQX_DEPLOY:-cloud}" QEMU_ARCH="${QEMU_ARCH:-x86_64}" ARCH="${ARCH:-amd64}" QEMU_VERSION="${QEMU_VERSION:-v4.0.0}" # versioning EMQX_VERSION="${EMQX_VERSION:-${TAG_VSN:-develop}}" BUILD_VERSION="${BUILD_VERSION:-${EMQX_VERSION}}" main() { cas...
the_stack
## Version 0.1.0 ## ## Usage ## ./make_openbazaar.sh OS ## ## OS supported: ## win32 win64 linux osx ## ELECTRONVER=1.4.15 NODEJSVER=5.1.1 PYTHONVER=2.7.11 UPXVER=391 OS="${1}" # Get Version PACKAGE_VERSION=$(cat package.json \ | grep version \ | head -1 \ | awk -F: '{ print $2 }' \ | sed 's/[",]//g' \ | ...
the_stack
set -euo pipefail IFS=$'\n\t' # Multi-platform script to build the GNU ARM Eclipse QEMU distribution packages. # On OS X it produces an install package that expands # in "/Applications/GNU ARM Eclipse/QEMU/$version". # # OS X prerequisites: # # MacPorts with the following ports installed: # # sudo port install libtoo...
the_stack
if [ -z $WORKDIR_ROOT ] ; then echo "please specify your working directory root in environment variable WORKDIR_ROOT. Exitting..." exit fi set -x -e # TODO update the workdir and dest dir name # put fasttext model WORKDIR=$WORKDIR_ROOT # put intermediate files TMP_DIR=$WORKDIR_ROOT/tmp/tmp_wmt20_low...
the_stack
############################################################## ### _ _ _ ### ### __ _ __| |___ _ _ __| |_ _(_)__ _ ### ### / _` / _| / _ \ || / _` | '_| / _` | ### ### \__, \__|_\___/\_,_\__,_|_| |_\__, | ### ### ...
the_stack
# Prints header function printh { local input="$1" local len=$((${#1}+2)) printf "\033[32m" # start green color printf "\n+" printf -- "-%.0s" $(seq 1 $len) printf "+\n| $input |\n+" printf -- "-%.0s" $(seq 1 $len) printf "+\n\n" printf "\033[0m" # end green color } function delete_...
the_stack
clear # License: GPLv3 # Variables let I=0 # Used in the while loop's Google queries METHOD="host" # Default mode is set to host let PAGES=5 # Default pages to download from Google let VERBOSITY=0 # Verbosity is set to off as default TMPRND=$RANDOM # Random number used for temporany files REGEXPRE...
the_stack
set -euo pipefail # Assert that FILE exists and is executable # # assertExecutable FILE assertExecutable() { local file="$1" [[ -f "$file" && -x "$file" ]] || \ die "Cannot wrap '$file' because it is not an executable file" } # Generate a binary executable wrapper for wrapping an executable. # The bin...
the_stack
## # # autotools.sh -- allows building of autotools-based subprojects # ## DEPENDS="core path compiler platform" ### section configure _mk_at_system_string() { mk_get "MK_${1}_OS" case "${result}" in linux) __os="linux-gnu" ;; freebsd) mk_get "MK_${1}_DIST...
the_stack
### TODO ### stop/start daemons (controllable by flag?) function upgrade_database { echo "- checking to see if database structure needs updating"; GAMEUPDATE=`mongo scot-prod --quiet --eval "printjson(db.game.findOne({category:'cleaner'}))"` echo "GAMEUPDATE is $GAMEUPDATE" if echo $GAMEUPDATE | grep -...
the_stack
# Dependency: libedit-devel libxml2-devel ncurses-devel python-devel swig # ======================================= 配置 ======================================= LLVM_VERSION=10.0.0 LIBEDIT_VERSION=20191231-3.1 PREFIX_DIR=/usr/local/llvm-$LLVM_VERSION; #BUILD_TARGET_COMPOMENTS="clang;clang-tools-extra;compiler-rt;debugin...
the_stack
################################### # # start configurable settings # ################################### name="patchoo" version="0.9958" # read only api user please! apiuser="apiuser" apipass="apipass" datafolder="/Library/Application Support/patchoo" pkgdatafolder="$datafolder/pkgdata" prefs="$datafolder/com.githu...
the_stack
# These make rules start an OpenShift cluster using virt-manager. # # Prerequisites: # - openshift-baremetal-install binary # # Install instructions from Jonathan Halliday/RedHat # # First you'll need a quite recent installer. Old ones, including all # current stable releases, have bugs that would either prevent thing...
the_stack