text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
set -u
# Curl Errors (from `man libcurl-errors`)
declare -ir CURLE_OK=0
declare -ir CURLE_COULDNT_CONNECT=7 # We get this for connection refused.
declare -ir CURLE_OPERATION_TIMEDOUT=28
declare -ir CURLE_SSL_CONNECT_ERROR=35
declare -ir CURLE_PEER_FAILED_VERIFICATION=51
declare -ir CURLE_GOT_NOTHING=52 # Injected FI... | the_stack |
#####################################################################################
# ADS-B RECEIVER #
#####################################################################################
# ... | the_stack |
set -euo pipefail
source cmd.sh
source path.sh
####################################
##### Step 0: data preparation #####
####################################
# Arctic database usual sampling rate is 16k; although 32k is
# also available for some speakers.
# This recipe uses upsampled 32k data; please adjust to use 16... | the_stack |
alias helpCat=cat
[ -x "$(command -v pygmentize)" ] && alias helpCat="pygmentize -O style=borland,linenos=1 -l bash"
if [ "$1" == "-h" ]; then
helpCat<<HELP_USAGE
# Usage:
(source \${ALICE_PHYSICS}/PWGPP/CalibMacros/AliOCDBtoolkit.sh <action> <par0> <par1> ...
# List of functions:
dumpOCDBXML ... | the_stack |
# Copyright (c) 2014, Silvan Melchior
# All rights reserved.
# Redistribution and use, with or without modification, are permitted provided
# that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.... | the_stack |
load ../utils/_
setup() {
standard_setup
dfx_new
}
teardown() {
dfx_stop
standard_teardown
}
@test "http_request percent-decodes urls" {
install_asset assetscanister
dfx_start
echo "contents of file with space in filename" >'src/e2e_project_assets/assets/filename with space.txt'
e... | the_stack |
set -o errexit
set -o nounset
function usage() {
echo "USAGE: docker2singularity [-m \"/mount_point1 /mount_point2\"] [options] docker_image_name"
echo ""
echo "OPTIONS:
Image Format
--folder -f build development sandbox (folder)
--option -o add a custom opti... | the_stack |
START=$(date +%s)
# common functions
. ./common.sh
# common assertions
. ./assertions.sh
TEST_RUNNING=0
AGENT_VERSION="$1"
PREV_AGENT_VERSION="$2"
# 1. Install w/ registrations skipped
testAgentInstallWoRegistration() {
# setup
prepareConfig "$CONFIG_DEFAULT"
removeVariableFromConfig "HZN_EXCHANGE_PATTER... | the_stack |
###########################################################################
# Nash!Com Domino Container Addon Install Script #
# Version 1.0.0 26.12.2020 #
# #
# (C) Copyright ... | the_stack |
JAVA_VERSION=""
REQUIRED_PYTHON2_VERSION="2.7"
REQUIRED_PYTHON37_VERSION="3.7"
REQUIRED_PYTHON38_VERSION="3.8"
REQUIRED_NODEJS_VERSION="12.x"
REQUIRED_JAVA_VERSION="8"
no_op() {
:
}
################################################################################
## Checks if Python 2.7 is installed on the device ... | the_stack |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
clear
# Root check
[[ $(id -g) != '0' ]] && die 'Script must be run as root.'
# Declare variables
libiconvVersion='libiconv-1.15'
libgdVersion='libgd-2.2.5'
pcreVersion='pcre-8.41'
zlibVersion='zlib-1.2.11'
opensslVersion='openssl-1.1... | the_stack |
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://opensource.org/licenses/MIT
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on a... | the_stack |
# --------------------------------
# GUI
# --------------------------------
# Reference:
# http://manpages.ubuntu.com/manpages/xenial/man1/whiptail.1.html
# https://en.wikibooks.org/wiki/Bash_Shell_Scripting/Whiptail
# http://xmodulo.com/create-dialog-boxes-interactive-shell-script.html
system_info()
{
# Informat... | the_stack |
set -beEu -x -o pipefail
# Do not modify this script, modify the source tree copy:
# kent/src/hg/utils/otto/sarscov2phylo/updatePublicTree.sh
usage() {
echo "usage: $0 prevDate problematicSitesVcf"
echo "This assumes that ncbi.latest and cogUk.latest links/directories have been updated."
}
if [ $# != 2 ]; th... | the_stack |
### BEGIN INIT INFO
# Provides: bluesun-setup
# Short-Description: S3 file and DB checkout and deploy script
### END INIT INFO
#
# Author : Jon Zobrist <jon@jonzobrist.com>
# Homepage : http://www.jonzobrist.com
# License : BSD http://en.wikipedia.org/wiki/BSD_license
# Copyright (c) 2012, Jon Zobrist
# All rights res... | the_stack |
OSNAME=`uname`
if [ "$OSNAME" = "OSF1" -a "$BIN_SH" != "xpg4" ]; then
# make getopts work on Tru64 by setting the BIN_SH variable
# and re-executing self with the same command line arguments
BIN_SH=xpg4
export BIN_SH
exec $0 $*
elif [ "$OSNAME" = "AIX" -a -z "$BASH_VERSION" ]; then
# use an alt... | the_stack |
# Script for scaffolding a package exposing an interface which applies a unary mathematical function to a double- or single-precision floating-point strided array according to a strided mask array.
#
# Usage: scaffold.h
#
# Environment Variables:
#
# ALIAS Main export alias.
# PKG_DESC Pa... | 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 |
#### command sub: errexit is NOT inherited and outer shell keeps going
# This is the bash-specific bug here:
# https://blogs.janestreet.com/when-bash-scripts-bite/
# See inherit_errexit below.
#
# I remember finding a script that relies on bash's bad behavior, so OSH copies
# it. But you can opt in to better behavior... | the_stack |
PYTHON_VERSION=${1:-"latest"} # 'system' checks the base image first, else installs 'latest'
PYTHON_INSTALL_PATH=${2:-"/usr/local/python"}
export PIPX_HOME=${3:-"/usr/local/py-utils"}
USERNAME=${4:-"automatic"}
UPDATE_RC=${5:-"true"}
INSTALL_PYTHON_TOOLS=${6:-"true"}
USE_ORYX_IF_AVAILABLE=${7:-"true"}
OPTIMIZE_BUILD_FR... | the_stack |
QUIC_CLIENT_IMAGE=ghcr.io/mvladev/quic-reverse-http-tunnel/quic-client-tcp:v0.1.2
QUIC_SERVER_IMAGE=ghcr.io/mvladev/quic-reverse-http-tunnel/quic-server:v0.1.2
QUIC_SECRET_NAME=quic-tunnel-certs
QUIC_CLIENT_CONTAINER=gardener-quic-client
CERTS_DIR=$(pwd)/tmp/certs
checkPrereqs() {
command -v host > /dev/null || ec... | the_stack |
#
# This script builds the archzfs packages in a clean clean chroot environment.
#
# clean-chroot-manager (https://github.com/graysky2/clean-chroot-manager) is required!
#
args=("$@")
script_name=$(basename $0)
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if ! source ${script_dir}/lib.sh; then
... | the_stack |
echo "### NOTICE ###" >&2
echo "This script is a work-in-progress, has not been yet documented, " >&2
echo "and may not work as expected." >&2
echo "### END OF NOTICE ###" >&2
# Default values.
WIN7="0"
VMCOUNT="40"
ISOFILE=""
SERIALKEY=""
TMPFS="0"
TAGS=""
INTERFACES="eth0 wlan0"
CLEAN="0"
DEPENDENCIES=""
BASEDIR="/h... | the_stack |
HOME=`pwd`
FMT=
SITE=localhost
PAGE=/index.html
HOSTNAME=`hostname`
COMPANY="${settings.company}"
PRODUCT="${settings.name}"
NAME="${settings.title}"
VERSION="${settings.version}"
OS="${platform.os}"
CPU="${platform.arch}"
DIST="${platform.dist}"
ROOT_PREFIX="${prefixes.root}"
BASE_PREFIX="${prefixes.base}"
STATE_PRE... | the_stack |
# Copyright (c) 2018, Oracle and/or its affiliates.
# The Universal Permissive License (UPL), Version 1.0
#
# Oracle OCI Virtual Cloud Networks IP configuration script
#
# 2017-10-24 initial release
# 2017-11-21 filter out VLANs if VM
# 2017-11-21 inhibit namespaces for ubuntu 16
# 2018-02-12 fix sshd typo in help
# 20... | the_stack |
#This utils functions is shared by both trainer and predictor
root_dir=$(dirname $(readlink -f $0))/../..
source "$root_dir/frame/conf/core.conf"
source "$root_dir/conf/var_sys.conf"
#parse user config file
#$1: config_file, such as conf/demo/demo.distributed.conf
#$2: field_name, such as platform, data_reader
#$3:... | the_stack |
if [ "$1" == "--debug" -o -n "${DEBUG}" ]; then
DEBUG="yes" && set -x
[ "$1" == "--debug" ] && shift
fi
ulimit -c unlimited
[ $(id -u) -ne 0 ] && SUDO=sudo
isAlpine=0
isCentos=0
SYS_TYPE=$([ -e /etc/os-release ] && cat /etc/os-release | egrep '^ID=' | sed -e 's/^ID=//' -e 's/"//g')
if [ -n "${SYS_TYPE}" ]; t... | the_stack |
set -eu -o pipefail
export BOX_VERSION=${BOX_VERSION:-$(date +%Y%m%d).01}
PROGNAME=$(basename "$0")
readonly PROGNAME
readonly ARGS=$*
usage() {
cat <<- EOF
Usage: ${PROGNAME} options
This script can upload Packer box images to Vagrant Cloud.
You need to define the "VAGRANT_CLOUD_TOKEN" variable with proper ac... | the_stack |
# //////////////////////////////////////////////////////////////////////
#
# build-subsets.sh
# A shell script that builds the Hack web font subsets from UFO source
# Copyright 2018 Christopher Simpkins
# MIT License
#
# Usage: ./build-subsets.sh
#
# NOTE: must install build dependencies in:
# 1) build-ttf.... | the_stack |
# The model training procedure is similar to run_blstm_6j.sh under egs/swbd/s5c
# ./local/chain/compare_wer_general.sh blstm_6j_sp
# System blstm_6j_sp
# WER on eval2000(tg) 12.3
# WER on eval2000(fg) 12.2
# WER on rt03(tg) 11.7
# WER on rt03(fg) 11.5
# Final train prob ... | the_stack |
# See BUILD.WINDOWS.md for more information -- be sure to install the relevant dependencies listed in BUILD.WINDOWS.md!
#
# This script is based on http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Building+Ogre+Dummy+Guide+MinGW
# which provides step by step instructions on how to build OGRE and dependencies against ... | the_stack |
# source/SSS/DDD/version/VVV/convert-DDD.sh checks that CSV2RDF4LOD_HOME is set and exits if not.
#
# Parameters (environment variables that should be set):
#
# @param surrogate - the base URI.
# @param sourceID - a string identifier for the source; established by curator convention.
# @param datasetID ... | the_stack |
# Directory path for design sources and include directories (if any) wrt this path
ref_dir="."
# Override directory with 'export_sim_ref_dir' env path value if set in the shell
if [[ (! -z "$export_sim_ref_dir") && ($export_sim_ref_dir != "") ]]; then
ref_dir="$export_sim_ref_dir"
fi
# Command line options
vlogan_o... | the_stack |
OFFLINE=false
if [ $# -ge 1 ]
then
if [ "$1" = "-o" ] || [ "$1" = "-O" ]
then
echo "Working in OFFLINE mode"
OFFLINE=true
fi
fi
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "The working directory is $CURRENT_DIR"
echo "Welcome to the Kylo setup wizard. Lets get star... | the_stack |
input=$1
trap "exit" INT
python ../imagenet_topk_accuracy_driver_py3.py --verbose \
--validation-images-dir=/home/jemin/hdd/imagenet/val_processed_299 \
--ignore-exist-file-check \
--image-classifier-cmd="../../cmake-build-release/bin/image-classifier-vtainterpreter-nonfusion
-m=/home/jemin/hdd/models/googlenet_v4_sli... | the_stack |
__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.
__my_init_completion()
{
COMPREPLY=()
_get_comp_wor... | the_stack |
# Provisions and configures the OpenEduAnalytics base architecture.
# Basic steps are:
# 1) create resource group
# 2) create storage account and storage containers (stage1, stage2, stage3, synapse)
# 3) create synapse workspace, configure firewall access, and create Spark pool
# 4) create keyvault instance and appins... | the_stack |
# set -e: exit asap if a command exits with a non-zero status
set -e
###################
# Echo with Error #
###################
echoerr() { printf "%s\n" "$*" >&2; }
########################
# Print error and exit #
########################
die () {
echoerr "ERROR: $1"
# if $2 is defined AND NOT EMPTY, use $2; o... | the_stack |
cite about-plugin
about-plugin 'CNB pack cli aliases'
__pack_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... | the_stack |
# Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... | the_stack |
lang=$1
target_os_iso=$2
vm_name="Win98-${lang}"
already_got_image=false
if [ ! "$lang" ] || [ ! "$target_os_iso" ]; then
echo "Two arguments required: a target language code (e.g. en), and a path to an iso file."
exit 1
fi
if [ ! -f "$target_os_iso" ]; then
echo "File \"$target_os_iso\" does not exist!"
exit 1
fi
... | the_stack |
# The shunit2 framework must be loaded in the ./shunit2 directory.
if [ ! -f ./shunit2/shunit2 ]; then
echo 'Error: missing the shunit2 script' >&2
exit 1
fi
# The o.rc must be located in the cwd directory.
if [ ! -f ./o.rc ]; then
echo 'missing the o.rc script in the cwd' >&2
exit 1
fi
test_orc_noop () {
#... | the_stack |
# ################################################################################
# # compatibility
# ################################################################################
pbcopy_compat(){
if command -v pbcopy &> /dev/null; then
pbcopy "$@"
else
return 1
fi
}
open_compat(){
if command -v o... | the_stack |
export LANG=C
export LC_ALL=C
set -e
GTF=$1
CHRLEN=$2
MAPABILITYEXCL=$3
LIBEXEC=$4
OPTNONPOLYA=$5
OPTBLACKLISTEXCL=$6
#GTF=../../REF/Homo_sapiens.GRCh37.75.150/Homo_sapiens.GRCh37.75.limit_chr.gtf
#CHRLEN=../../REF/Homo_sapiens.GRCh37.75.150/STAR/chrNameLength.txt
#MAPABILITYEXCL=MapabilityExclusion.bed.gz
#OPTBLACK... | the_stack |
SKIPPED_CODE=43
if [ -z "$SNABB_PCI0" ]; then
export SNABB_PCI0=soft
fi
if [ -z "$SNABB_TELNET0" ]; then
export SNABB_TELNET0=5000
echo "Defaulting to SNABB_TELNET0=$SNABB_TELNET0"
fi
if [ -z "$SNABB_TELNET1" ]; then
export SNABB_TELNET1=5001
echo "Defaulting to SNABB_TELNET1=$SNABB_TELNET1"
fi
if ... | the_stack |
#
# Refer to the --help output for a description of this script and its available options.
#
infomsg() {
echo "[INFO] ${1}"
}
helpmsg() {
cat <<HELP
This script will run the Kiali molecule tests within a KinD cluster.
It tests the latest published images, but has options to allow you to test dev images
built from... | the_stack |
set -e
MY_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source "$MY_DIR/Public/Src/Sandbox/MacOs/scripts/env.sh"
declare arg_Positional=()
declare arg_DeployDev=""
declare arg_DeployDevRelease=""
declare arg_UseDev=""
declare arg_Minimal=""
declare arg_Internal=""
declare arg_Cgmanifest=""
if [[ "${OSTYPE}" == "... | 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 |
#==============================================================================
# Part 1. Config
#==============================================================================
per_second="1"
debug_mode="0"
timestamp="$(date +%s)"
date="$(date +%Y-%m-%d' '%H:%M:%S)"
# Absolute path to this script.
SCRIPT=$(readlink -... | the_stack |
# Copyright 2015 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | the_stack |
# EMMC DEVICE MAJOR
DST_MAJ=179
DST_NAME=$(lsblk -l -b -I $DST_MAJ -o NAME,MAJ:MIN,SIZE | grep "${DST_MAJ}:0" | awk '{print $1}')
DST_SIZE=$(lsblk -l -b -I $DST_MAJ -o NAME,MAJ:MIN,SIZE | grep "${DST_MAJ}:0" | awk '{print $3}')
ROOT_NAME=$(lsblk -l -o NAME,MAJ:MIN,MOUNTPOINT | grep -e '/$' | awk '{print $1}')
ROOT_MA... | the_stack |
# Copyright (c) 2018 Talkowski Laboratory
# Contact: Ryan Collins <rlcollins@g.harvard.edu>
# Distributed under terms of the MIT license.
# Intelligently shards a VCF prior to complex resolution (for parallelization)
# Subsetted to first half, to just output lists of which variants should go in each shard
set -Eeu -... | the_stack |
wget https://img3.doubanio.com/lpic/s27264181.jpg
mv s27264181.jpg 9787544270878.jpg
# 9787020024759 https://img3.doubanio.com/lpic/s1070222.jpg
wget https://img3.doubanio.com/lpic/s1070222.jpg
mv s1070222.jpg 9787020024759.jpg
# 9787512500983 https://img5.doubanio.com/lpic/s4477716.jpg
wget https://img5.doubanio.co... | 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 |
#####################################################################################
# ADS-B RECEIVER #
#####################################################################################
# ... | the_stack |
load helpers
# Helper function to scan the list of names of an item for a particular value.
check-for-name() {
name="$1"
shift
run storage --debug=false get-names "$@"
[ "$status" -eq 0 ]
[[ "$output" =~ "$name" ]]
}
@test "names at creation: layers" {
# Create a layer with no name.
run storage --debug=false c... | the_stack |
# Copyright (C) 2020 ForAllSecure, 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | the_stack |
STARTPWD=$(pwd)
[ "${T4P4S_TRACE}" != "" ] && export PS4='trace>:`date +%s.%N`:$0:line $LINENO:' && mkdir -p "./build" && exec 321>"./build/trace.log" && BASH_XTRACEFD=321 && set -x
declare -A KNOWN_COLOURS
declare -A OPTS
declare -A IGNORE_OPTS
PYTHON_PARSE_HELPER_PROCESS=""
ERRCODE_OK=0
ERRCODE_COMPILE_MESON=1
... | the_stack |
#Actively load user env
source ~/.bash_profile
shellDir=`dirname $0`
workDir=`cd ${shellDir}/..;pwd`
common_conf=$LINKIS_HOME/conf/linkis.properties
#To be compatible with MacOS and Linux
txt=""
if [[ "$OSTYPE" == "darwin"* ]]; then
txt="''"
elif [[ "$OSTYPE" == "linux-gnu" ]]; then
# linux
txt=""
elif [[ ... | the_stack |
. ./tests.sh
if [ -z "$CC" ]; then
CC=gcc
fi
# stat differs between platforms
if [ -z "$STATSZ" ]; then
stat --version 2>/dev/null | grep -q 'GNU'
GNUSTAT=$?
if [ "$GNUSTAT" -ne 0 ]; then
# Assume BSD stat if we can't detect as GNU stat
STATSZ="stat -f %Uz"
else
STATSZ="stat -c %s"
fi
fi
export QUIET_... | the_stack |
#TEST: ZSK Rollover - Pre-Publication Mechanism
case "$DISTRIBUTION" in
redhat )
append_path /usr/sbin
;;
esac
if [ -n "$HAVE_MYSQL" ]; then
ods_setup_conf conf.xml conf-mysql.xml
fi &&
ods_reset_env &&
echo &&
echo "#################### START AND LEAP TIME ########... | the_stack |
. $(dirname $0)/dynamic_dns_functions.sh # global vars are also defined here
usage() {
cat << EOF
Usage:
$MYPROG [options] -- command
Commands:
start Start SECTION or NETWORK or all
stop Stop NETWORK or all
Parameters:
-n NETWORK Start/Stop sections in background monitorin... | the_stack |
AWESOME_FZF_LOCATION="/Users/admin/Git_Downloads/awesome-fzf/awesome-fzf.zsh"
# morhetz/gruvbox theme for FZF
export FZF_DEFAULT_OPTS='--color=bg+:#3c3836,bg:#32302f,spinner:#fb4934,hl:#928374,fg:#ebdbb2,header:#928374,info:#8ec07c,pointer:#fb4934,marker:#fb4934,fg+:#ebdbb2,prompt:#fb4934,hl+:#fb4934'
#Test if user ha... | the_stack |
#sve = System Variable Exemplifier
#This script executes whatever file you tell regardless of in which directory it's currently in.
# TO-DO
# + on recurse_dirs2() -- make it so that any file with 'Main' on its name will get compiled at the end, cuz else it's going to cause error
# + make it so that $temp_cp can be... | the_stack |
# Are we inside the middle of a "skip" command?
typeset -i _Dbg_inside_skip=0
# Hooks that get run on each command loop
typeset -A _Dbg_cmdloop_hooks
_Dbg_cmdloop_hooks['display']='_Dbg_eval_all_display'
# Can be bash's "read" builtin or a command-completing "read" builtin
# provided by this debugger.
typeset _Dbg_r... | the_stack |
set -e
OPTS=`getopt -o o: --long output-dir:,genome-reference:,selector:,tumor-bam-out:,tumor-bam-in:,normal-bam-out:,normal-bam-in:,split-proportion:,down-sample:,num-snvs:,num-indels:,num-svs:,min-vaf:,max-vaf:,left-beta:,right-beta:,min-depth:,max-depth:,aligner:,min-variant-reads:,out-script:,seed:,action:,merge-b... | the_stack |
load $BATS_TEST_DIRNAME/helper/common.bash
setup() {
setup_common
}
teardown() {
assert_feature_version
teardown_common
}
@test "log: on initialized repo" {
run dolt log
[ "$status" -eq "0" ]
[[ "$output" =~ "Initialize data repository" ]] || false
}
@test "log: log respects branches" {
... | the_stack |
# This script is helper utility that can determine what dependencies are
# are installed in the cluster.
#
# Current dependency resolvers include:
# - IBM Cloud Private Management Services
#
# To use this script, you must first setup your kubectl CLI and login to the target cluster with a user
# who has the cluster a... | the_stack |
#########################################################################################
# (C) Copyright 2015 AMIQ Consulting
#
# 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:... | the_stack |
DATA_WIDTH=16
DW_ADD_INT="$DATA_WIDTH" #Internal adder precision bits
DW_MULT_INT=$[ 2 * DATA_WIDTH] #Internal multiplier precision bits
SCALE_FACTOR=$[ DW_MULT_INT - DATA_WIDTH - 1] #Multiplier normalization shift amount
NUM_COEFF=51
N_UNIQ=26
N_EXTRA_VALID=13
N_VALID_REGS=$[NUM_COE... | the_stack |
## Usage
## Append image tag which is expect.
## bash upgrade_csi-plugin.sh v1.18.8.47-906bd535-aliyun
if [ "$1" = "" ]; then
echo "Please input the expect csi plugin version... "
fi
imageVersion=$1
echo `date`" Start to Upgrade CSI Plugin to $imageVersion ..."
# new deploy template file
# if any changes, just up... | the_stack |
SCRIPT=$(readlink -f "$0") && cd $(dirname "$SCRIPT")
# --- Script Init ---
mkdir -p log
rm -R -f log/*
touch log/stderror.err
ktools_monitor.sh $$ & pid0=$!
exit_handler(){
exit_code=$?
kill -9 $pid0 2> /dev/null
if [ "$exit_code" -gt 0 ]; then
echo 'Ktools Run Error - exitcode='$exit_code
else... | the_stack |
set -e
min () {
echo "$1" | awk 'BEGIN{a=999999}{if ($1<0+a) a=$1}END{print a}'
}
max () {
echo "$1" | awk 'BEGIN{a=0}{if ($1>0+a) a=$1}END{print a}'
}
average () {
echo "$1" | awk '{sum+=$1}END{print sum/NR}'
}
median () {
arr=($(printf '%f\n' "${@}" | sort -n))
nel=${#arr[@]}
if (( $nel % 2 == 1 )); t... | the_stack |
# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | the_stack |
orphan_scripts="" # 2 scripts do not fit BOOT_Makefiles LUSER environment
#--------------------------------------#
host_prep_Makefiles() { #
#--------------------------------------#
local CLFS_HOST
echo "${tab_}${GREEN}Processing... ${L_arrow}host prep files ( SETUP ) ${R_arrow}"
# defined h... | the_stack |
_commandExists_() {
# DESC:
# Check if a binary exists in the search PATH
# ARGS:
# $1 (Required) - Name of the binary to check for existence
# OUTS:
# 0 if true
# 1 if false
# USAGE:
# (_commandExists_ ffmpeg ) && [SUCCESS] || [FAILURE]
[... | the_stack |
# Dependency: swig libedit Python
# ======================================= 配置 =======================================
LLVM_VERSION=3.7.1;
PREFIX_DIR=/usr/local/llvm-$LLVM_VERSION;
BUILD_TARGET_COMPOMENTS="llvm clang compiler_rt libcxx libcxxabi clang_tools_extra lldb";
BUILD_GCC="gcc-4.6";
# ======================= ... | the_stack |
#error codes include those from /usr/include/sysexits.h
#colors for terminal
boldreduscore="\e[1;4;31m"
boldred="\e[1;31m"
cyan="\e[1;36m"
resetformatting="\e[0m"
#External helper functions
#. "$(dirname "${BASH_SOURCE[0]}")/deploy_utils.sh"
full_script_path="$(realpath "${BASH_SOURCE[0]}")"
script_directory="$(dirna... | the_stack |
# ------------------------------------------------------------------------------
# Reload the network controller.
# ------------------------------------------------------------------------------
function bashio::network.reload() {
bashio::log.trace "${FUNCNAME[0]}"
bashio::api.supervisor POST /network/reload
... | the_stack |
#This script is only for an Educational purpose. Any actions and or activities related to the material contained
#within this repo is solely your responsibility.The misuse of the information in this repo can result in criminal
#charges brought against the persons in question. The author Vishnu Nair will not be held res... | the_stack |
# Copyright 2021 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
. ./path.sh || exit 1;
. ./cmd.sh || exit 1;
# general configuration
backend=pytorch
stage=0 # start from -1 if you need to start from data download
stop_stage=5
ngpu=1 # number of gpus du... | the_stack |
# set -x
if [ -n "$ROOT" -a -d "$ROOT" ]; then
sysinfo="$ROOT/scripts/sysinfo.sh"
root="${ROOT}"; export root
else
root=`pwd`
while [ -n "$root" -a ! -f "$root/scripts/sysinfo.sh" ]; do
root=`dirname $root`
done
sysinfo="$root/scripts/sysinfo.sh"
if [ ! -f "$sysinfo" ]; then
echo "scripts/sysinfo.... | the_stack |
myname="$(basename "$0")"
function usage() {
>&2 echo "
Usage: $myname [-D] [-m mode] [-t target]
$myname -h
to keep manipulating the LUNs of iSCSI target \"target\" in the way indicated
by \"mode\". Purpose is to assist in robustness tests.
Script ends by backgrounding its action and reporting its PID.
Termi... | the_stack |
#Global Vars:
# First, colours:
BOLD='\033[0;1m' #(OR USE 31)
CYAN='\033[0;36m'
PURPLE='\033[0;35m'
GREEN='\033[0;32m'
BROWN='\033[0;33m'
RED='\033[1;31m'
NC='\033[0m' # No Color
# Framework variables:
interactive="true"
output="true"
changed=""
tempLoc="/tmp/"
# Specific Internal Vars:
CLUSTER_ID=""
MASTER_INSTANCE... | the_stack |
# needed to allow the loop on *.png without using "*.png" as value
shopt -s nullglob
date
if [ $# -ne 5 ]; then
afstokenchecker.sh "You have to provide a <DB>, an <Account>, a <GTAccount>, a <RunInfoAccount> and the <FrontierPath> !!!"
exit
fi
afstokenchecker.sh "Starting execution of Monitor_RunInfo $1 $2 $3... | the_stack |
version=6
tag=
id=
run=
stage=0
upload=0
jobs=2
events=1
aliroot="v5-04-Rev-20"
aliroot="v5-08-03a-5"
aliroot="v5-08-00-1"
AliPhysics="rel,normal,last"
root=""
geant=""
minmerge=30
noact=0
inp=
# --- Display help message -------------------------------------------
usage()
{
cat <<EOF
Usage: $0 [OPTIONS]
Options... | the_stack |
if [ -z "${IMAGES_FINAL_DIR}" -o "${IMAGES_FINAL_DIR}" = "/" ]; then
echo "IMAGES_FINAL_DIR is not defined"
print_error_pfS
fi
kldload filemon >/dev/null 2>&1
lc() {
echo "${1}" | tr '[[:upper:]]' '[[:lower:]]'
}
git_last_commit() {
export CURRENT_COMMIT=$(git -C ${BUILDER_ROOT} log -1 --format='%H')
export CUR... | the_stack |
set +xe
SCRIPT_VER="Wed Apr 20 18:30:19 UTC 2016"
# TODO to make (even) more resilient:
# - Wait for daemon to be running before executing docker commands
# - Check if jq is installed
# - Make sure bash is v4.3 or later. Can't do until all Azure nodes on the latest version
# - Make sure we are not running as loca... | the_stack |
. cmd.sh
. path.sh
set -e
mfccdir=`pwd`/mfcc
vaddir=`pwd`/mfcc
trials_female=data/sre10_test_female/trials
trials_male=data/sre10_test_male/trials
trials=data/sre10_test/trials
nnet=exp/nnet2_online/nnet_ms_a/final.mdl
# Train a DNN on about 1800 hours of the english portion of Fisher.
local/dnn/train_dnn.sh
# Prepar... | the_stack |
# Use a directory unique to this test to avoid collisions with other kinds of tests
TEST_BASE_PATH=/tmp/serviced-smoke
. test_lib.sh
add_template() {
TEMPLATE_ID=$(${SERVICED} template compile ${DIR}/dao/testsvc | ${SERVICED} template add)
sleep 1
[ -z "$(${SERVICED} template list ${TEMPLATE_ID})" ] && ret... | the_stack |
set -e -x
/usr/lib/postgresql/10/bin/initdb ${PGDATA}
echo "archive_mode = on" >> /var/lib/postgresql/10/main/postgresql.conf
echo "archive_command = '\
AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE \
AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY \
AWS_ENDPOINT=http://s3:9000 \
AWS_S3_FORCE_PATH_STYLE=true... | 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/libvalidations.sh
. /opt/bitnami/scripts/libpersistence.sh
. /opt/bitnami/scripts/libwebserver.sh
# Load database library
if [[ -f /opt/bitnami/s... | the_stack |
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
info_distro.sh
# remove uuid that was used in v20.2.0 and below
if [ -f "${datadir}/uuid.txt" ]; then
rm "${datadir:?}/uuid.txt"
fi
# generate uuid's
# this consists of a standard uuid and a docker style name
# to allow human readable uuid's.
# e.g... | the_stack |
mount_partitions() {
# Check A/B slot
SLOT=`getprop ro.boot.slot_suffix`
if [ -z $SLOT ]; then
SLOT=_`getprop ro.boot.slot`
[ $SLOT = "_" ] && SLOT=
fi
# Check the boot image to make sure the slot actually make sense
find_boot_image
find_dtbo_image
[ -z $SLOT ] || ui_print "- A/B partition detec... | the_stack |
success=0;
total=0;
epoch=$(date +%s)
commonPart='gas_e2e_'$epoch
projectName1=$commonPart'_project1'
newProjectName1=$commonPart'_project1_renamed'
projectId1=''
projectName2=$commonPart'_project2'
projectId2=''
projectRootFolder2=$commonPart'_project2_rootFolder'
projectName3=$commonPart'_project3'
projectId3=''
... | the_stack |
# Train new model: with logits on top
python3 -m basic_old.cli \
--run_id 8 \
--load_path out/basic/06/save/basic-40000 \
--shared_path out/basic/06/shared.json \
--k 10 \
--load_ema False --gpu_idx 1 \
--mode train --data_dir data/squad \
--len_opt --batch_size 30 --num_steps 40000 \
--eval_period 1000 --save_period ... | the_stack |
kubectl() {
local clusters=(
cluster-small
cluster-medium
cluster-big
cluster-bug1
cluster-issue-52
cluster-issue-56
)
if [ "${1}" == "config" ] && [ "${2}" == "use-context" ] && [[ "${clusters[*]}" =~ $3 ]]; then
KUBECTL_CONTEXT="${3}"
echo "... | the_stack |
##
#
# core.sh -- implements core build logic
#
##
DEPENDS="platform program"
#<
# @var MK_DEBUG
# @brief Controls debug mode
# @export
# @value yes Debug mode is turned on
# @value no Debug mode is turned off
#
# Decides whether build products should be created
# in "debug" mode. This is an abstract setting which
#... | the_stack |
# NOTE: This script requires curl to be installed. Also, it does not have to run on the Hue server, it can run anywhere that curl is installed. As long as that host can reach the Hue server.
# Please change USERS to contain a list of users that you would like to use to generate load
#USERS="cconner test1 test2 test... | the_stack |
. $srcdir/test-subr.sh
# See the source files testfile_const_type.c testfile_implicit_value.c
# testfile_entry_value.c testfile_parameter_ref.c testfile_implicit_pointer.c
# how to regenerate the test files (needs GCC 4.8+).
testfiles testfile_const_type testfile_implicit_value testfile_entry_value
testfiles testfile... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.