text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
chk_kernel() {
if [[ ${CHK_KERNEL} == "kernel" ]]; then
CHK_KERNEL=""
fi
if [[ -e "${CHK_KERNEL}" ]] && [[ ! -d "${CHK_KERNEL}" ]]; then
if [[ -s "$(pwd -P)/${CHK_KERNEL}" ]]; then
configfile=$(pwd -P)/${CHK_KERNEL}
elif [[ -s "${CHK_KERNEL}" ]]; then
configfile=${CHK_KERNEL}
else
... | the_stack |
ROT="--n_layers 2 --n_hiddens 100 --data_path data/ --log_every 100 --samples_per_task 1000 --dataset mnist_rotations --cuda --log_dir logs/"
PERM="--n_layers 2 --n_hiddens 100 --data_path data/ --log_every 100 --samples_per_task 1000 --dataset mnist_permutations --cuda --log_dir logs/"
MANY="--n_layers 2 --n_hidden... | the_stack |
# env variables
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
export LANG="en_US.UTF-8"
# colors
red=$(tput setaf 1)
green=$(tput setaf 2)
yellow=$(tput setaf 3)
reset=$(tput sgr0)
# defaults
psqlCmd="psql -tXAF: -U postgres"
prgPager="less"
[[ $(which vi 2>/dev/null) ]] && prgEditor=$(wh... | the_stack |
######################################################################
#
# DMTWEET.SH : Post A Direct Message
#
# Written by Shell-Shoccar Japan (@shellshoccarjpn) on 2020-11-09
#
# This is a public-domain software (CC0). It means that all of the
# people can use this for any purposes with no restrictions at all.
# By ... | the_stack |
if [ "$1" = "test" ]
then
echo "test"
fi
if [ "$1" = "low_level_gw_status" ]
then
grep -a "Low-level gw status ON" /home/pi/Dropbox/LoRa-test/post-processing.log | tail -1
fi
#//////////////////////////////////////////////////////////////////////////////////////////////////////
# gateway conf radio
#///////////////... | the_stack |
# Bo:
# Based on: https://github.com/gnu-mcu-eclipse/build-scripts.git#ba4c7e6a4a0459f8f5814cce3e710cb2b5709590
# Modifications made in the early stage of project start with comment # Bo
# -----------------------------------------------------------------------------
# Safety settings (see https://gist.github.com/ilg-... | the_stack |
test_container_devices_nic_p2p() {
ensure_import_testimage
ensure_has_localhost_remote "${LXD_ADDR}"
vethHostName="veth$$"
ctName="nt$$"
ctMAC="0a:92:a7:0d:b7:d9"
ipRand=$(shuf -i 0-9 -n 1)
# Record how many nics we started with.
startNicCount=$(find /sys/class/net | wc -l)
# Test pre-launch profil... | the_stack |
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# 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
# without restriction, including without limitation the rights to use... | the_stack |
TERM=st
MODE=$1
PORT=$2
OCAML_VERSIONS="4.02.3 4.03.0 4.04.2 4.05.0"
# Increment whenever the OCaml version or a package is updated to invalidate the caches
SERIAL=1
# Set to 0 if the testsuite may fail
TESTSUITE_SOUND=0
ROOT=C:/OCaml
ROOT_CYG=$(echo $ROOT| cygpath -f -)
APPVEYOR_BUILD_FOLDER=$(echo $APPVEYOR_BUILD_... | the_stack |
set -e
set -x
DOWNLOAD_NAME=data_evaluation
SCRATCH_DIR=${TMPDIR-/tmp}/mhcflurry-downloads-generation
SCRIPT_ABSOLUTE_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")"
SCRIPT_DIR=$(dirname "$SCRIPT_ABSOLUTE_PATH")
mkdir -p "$SCRATCH_DIR"
if [ "$2" != "continue-incomplete" ]
then
... | the_stack |
version='0.9.3'
AUTOTEX="autotex batchmode"
quiet="false"
sign="false"
keep="false"
discrete="true"
htm="false"
nocolor="false"
scale="0.82"
policesize="11"
# $OPTARG can contain the argument of the option k (if specified with hvk: or hk:v for example)
# while getopts vhqkmdsi option; do
# FIXME: options with a for ... | the_stack |
###################################################################################################
# Script Name: jamf_db_maint.sh
# By: Zack Thompson / Created: 2/28/2020
# Version: 1.0.0 / Updated: 2/28/2020 / By: ZT
#
# Description: This script is used to perform database maintenance on the Jamf Pro database... | the_stack |
. tests/shlib/common.sh
enter_suite shell final
if test $# -eq 0 ; then
FAST=1
fi
ONLY_SHELL="$1"
ONLY_TEST_TYPE="$2"
ONLY_TEST_CLIENT="$3"
export PYTHON
if test "$ONLY_SHELL" = "--help" ; then
cat << EOF
Usage:
$0 [[[ONLY_SHELL | ""] (ONLY_TEST_TYPE | "")] (ONLY_TEST_CLIENT | "")]
ONLY_SHELL: execute only tests... | the_stack |
# Trampoline secret length validation
check_tram_secret(){
key=$1
value=$2
length=$(echo $value | awk '{print length}')
if [[ $length -lt 8 ]]; then
echo -e "\e[0;31m${bold}ERROR - Invalid value for $key. Value must be at least 8 characters in length"
fail=1
fi
}
# Basic phone number validation
check_phone(){
k... | the_stack |
REL_DIR=`dirname $0`
cd $REL_DIR
## VARIABLES AND CONSTANTS ##
host="localhost"
port="7477"
# Admin DN
admindn="cn=administrator,cn=users,dc=vsphere,dc=local"
adminpw='Admin!23'
# Get DN and Password of unauthorized(less priviliged) user
echo "Enter DN for less priviliged user"
read unauthorizeduserdn
echo "Enter ... | the_stack |
CUDA_VISIBLE_DEVICES=0 \
python3 pdseg/vis.py --use_gpu --cfg ./exp/exp_lkc_aug/seocrnet_w64_imagenet_batch64_multiStage_binary3_2Dice1BCE.yaml \
--vis_dir ../user_data/saved_log/seocrnet_lkc_1205_binary3_s1/origin_resultsB \
TEST.TEST_MODEL ../user_data/saved_model/seocrnet_lkc_1205_binary3_s1/best_model_c... | the_stack |
#******************************************************************************
#
# ACPICA package generation script for Cygwin/Windows execution
#
# Requires cygwin be installed - http://www.cygwin.com
# and its /bin be *first* in your path.
#
# Windows packages require pkzip25 (free, and is available from numerous
# ... | the_stack |
function init {
echo "initializing setup"
mkdir -p ./mesosphere/dcos-cli/bin/
mkdir -p ./smack/state
mkdir -p ./smack/conf
mkdir -p ./vamp/conf/
export MASTER_LB_DNS_NAME=$(grep master_external_loadbalancer genconf/config.yaml | sed 's/\master_external_loadbalancer://' | sed 's/^[ \t]*//' )
... | the_stack |
# Keep in sync with tensorflow_estimator and configure.py.
# LINT.IfChange
LATEST_BAZEL_VERSION=3.1.0
# LINT.ThenChange(
# //tensorflow/opensource_only/configure.py,
# //tensorflow_estimator/google/kokoro/common.sh,
# //tensorflow/tools/ci_build/install/install_bazel.sh,
# //tensorflow/tools/ci_build/install/in... | the_stack |
set -e
RED=$'\e[0;31m'
GREEN=$'\e[0;32m'
YELLOW=$'\e[0;33m'
NC=$'\e[0m' # No Color
PERM_ROOT=1
BLOCK_BEGIN="# Please"
if [[ $EUID -ne 0 ]]; then
echo "${YELLOW}No root permissions.${NC}"
PERM_ROOT=0
fi
_ldconfig() {
if [ $PERM_ROOT == 1 ]; then
if command -v ldconfig &>/dev/null; then
... | the_stack |
argv0="${0##*/}"
dir0="${0%$argv0}"
[ -n "$dir0" ] || dir0="."
worklist="clone-analysis-$$"
# Show an error message and exit
die () {
echo "$argv0: $*" >&2
exit 1
}
# Parse command-line
interactive=yes
configfile=.run-analysis.conf
save_config=yes
while [ "$#" -gt 0 -a "${1:0:1}" = "-" ]; do
arg="$1"; shi... | the_stack |
# install: source this script in your ~/.profile or ~/.${SHELL}rc script
# latest source available at http://git.io/composure
# known to work on bash, zsh, and ksh93
# 'plumbing' functions
composure_keywords ()
{
echo "about author example group param version"
}
letterpress ()
{
typeset rightcol="$1" leftco... | the_stack |
# @(#)makesyscalls.sh 8.1 (Berkeley) 6/10/93
set -e
case $# in
2) ;;
*) echo "Usage: $0 config-file input-file" 1>&2
exit 1
;;
esac
# source the config file.
case $1 in
/*) . $1
;;
*) . ./$1
;;
esac
# the config file sets the following variables:
# sysnames the syscall names file
# sysnumhdr the... | the_stack |
source test-header.sh
# ======================================================================
#
# Initial setup.
#
# ======================================================================
PYTHON=C:/Python34/python
if [[ "$PLATFORM" == "macosx_x86_64" ]] ; then
PYTHON=python3
fi
PYARMOR="${PYTHON} pyarmor.py"
c... | the_stack |
if [ -f ~/.bashrc ]; then
source ~/.bashrc 2> /dev/null
fi
if [ -f ~/.bash_profile ]; then
source ~/.bash_profile 2> /dev/null
fi
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export FASTLANE_SKIP_UPDATE_CHECK=true
if [[ "$PATH" != *".fastlane/bin"* ]]; then
echo "Adding hypothetical fastlane bin folde... | the_stack |
TEST_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
WORK_DIR="$(pwd)"
echo "WorkDir: $WORK_DIR"
#-----------------------------------#
# environments
#-----------------------------------#
JAVA_VER=${JAVA_VER:-8}
echo "JAVA_VER: $JAVA_VER"
FAIL_FAST=${FAIL_FAST:-0}
echo "FAIL_FAST: $FAIL_FAST"
SHOW_ERROR_DETA... | the_stack |
set -o nounset
set -o errexit
REPO_URI=${REPO_URI:-"https://github.com/Hexxeh/rpi-firmware"}
UPDATE_SELF=${UPDATE_SELF:-1}
UPDATE_URI="https://raw.githubusercontent.com/Hexxeh/rpi-update/master/rpi-update"
if [[ ${BOOT_PATH:-"unset"} == "unset" && ${ROOT_PATH:-"unset"} != "unset" ]] ||
[[ ${BOOT_PATH:-"unset"} != "u... | the_stack |
# parameters
vmadminuser=$1
vmadminpass=$2
directoryadminpass=$3
subdomain=$4
location=$5
organization=$6
privateIPAddressPrefix=$7
vmCount=$8
index=$9
# variables
let "index+=1" # index is 0-based, but we want 1-based
domain=$subdomain.$location.cloudapp.azure.com
base="dc=$subdomain,dc=$location,dc=cloudapp,dc=azure... | the_stack |
set -e
# How this install script works
#
# 1. Checks if nginx.conf changed
# 2. Applies change and reloads nginx
# 3. Rolls back nginx.conf if reload fails
#
# About rolling back nginx.conf:
#
# We don't check against the file actually used by nginx,
# but instead against another copy, which acts as a kind of checkpoi... | the_stack |
###
# Output usage information and exit
###
function _zunit_run_usage() {
echo "$(color yellow 'Usage:')"
echo " zunit run [options] [tests...]"
echo
echo "$(color yellow 'Options:')"
echo " -h, --help Output help text and exit"
echo " -v, --version Output version information and exi... | the_stack |
noact=0
# --- Help output ----------------------------------------------
usage()
{
cat <<EOF
Usage: $0 [OPTIONS] -j [JOBID]
$0 [OPTIONS] -p PRODUCTION -P PASS
Options:
-h,--help This help
-j,--jobid NUMBER The master job id of the production [$jobid]
-v,--verbose Increase verbosity [$verb]
... | the_stack |
#######################################################################
#
# Linux on Hyper-V and Azure Test Code, ver. 1.0.0
# Copyright (c) Microsoft 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 Licen... | the_stack |
#
# OpenTravelData (OPTD) utility
# Git repository:
# https://github.com/opentraveldata/opentraveldata/tree/master/tools
#
##
# cd tools/
# ./make_optd_por_public.sh
# ./make_optd_por_public.sh --clean
# git diff ../opentraveldata/optd_por_public.csv ../opentraveldata/optd_por_public_all.csv
# git add ../opentraveld... | the_stack |
MINIMUM_REQUIRED_KERNEL_VERSION="4.4"
MINIMUM_REQUIRED_LIBC_VERSION="2.14"
C_LIBRARY=""
C_LIBRARY_VERSION=""
################################################################################
## Prints the kernel architecture.
##
## This is not a check, just diagnostic information that a customer can submit
## to Green... | 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/libpersistence.sh
. /opt/bitnami/scripts/libwebserver.sh
. /opt/bitnami/... | the_stack |
tpath="/home/$LOGNAME/tmp"
mkdir -p $tpath
date
# Find incorrect status
echo "---------------------"
echo "---------------------"
echo "*Status typos gln: "
scripts/tdb/tdbout -t status tdb/prod/ | sort | uniq -c | grep -vw manifest | grep -vw released | grep -vw expected | grep -vw exists | grep -vw testing | grep -v... | the_stack |
##
# The MIT License (MIT)
# Copyright (c) 2016 Ethan Gaebel <egaebel@vt.edu>
#
# 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 without restriction, including without limitation
# the rig... | the_stack |
# shellcheck disable=SC1091
set -e
set -o pipefail
# version consts
SLURM_VERSION=18.08.5-2
# consts
SLURM_PACKAGE_DEBIAN="slurm-${SLURM_VERSION}_1.0_amd64"
SLURM_PACKAGE_CENTOS="slurm-${SLURM_VERSION}-1.0-1.x86_64"
SLURM_CONF_DIR=/etc/slurm
AZFILE_MOUNT_DIR=/azfile-slurm
SHIPYARD_VAR_DIR=/var/batch-shipyard
SHIPYAR... | the_stack |
#
# Support old builds
#
cp Makefile.joy Makefile
cp src/Makefile.joy src/Makefile
##
# Usage Function - prints out how to use the command
# Valid options are:
# -h | --help - Help screen
# -l | --lib-path - specify the library path
# -s | --ssl-path - specify the OpenS... | the_stack |
## Script: create_SelfService_Plug-in.sh
## Author: Mike Morales
##
## Change log:
## 2015-08-06:
## Added lines to process several user passed variables to ensure they conform to xml standards
## 2015-01-12:
## Changed to use sips to check image aspect ratio and pre-convert image (to tmp file) to 128x128 pixels to... | the_stack |
#Functions, functions everywhere.
#Below are
# Logging setup. Ganked this entirely from stack overflow. Uses named pipe magic to log all the output of the script to a file. Also capable of accepting redirects/appends to the file for logging compiler stuff (configure, make and make install) to a log file instead of lo... | the_stack |
# ---------------------------------------------
# Shell front end to selected SecHub API calls
# ---------------------------------------------
# This can be handy for batch operations (e.g. creation or modification of multiple objects)
# or for using shell tools like grep to search the results
#
# SecHub Rest API docum... | the_stack |
#android_dir="$xia0/android/"
XADB_ROOT_DIR=`cat ~/.xadb/rootdir`
ANDROID_SDK_PATH=`cat ~/.xadb/sdk-path`
XADB_DEVICE_SERIAL="$HOME/.xadb/device-serial"
ADB=""
if [[ -e "$HOME/.xadb/adb-path" ]];then
ADB=`cat ~/.xadb/adb-path`
fi
if [[ -z $ADB ]];then
ADB=$ANDROID_SDK_PATH/platform-tools/adb
fi
# If update.lock... | the_stack |
echo ============================================================================
echo " Switchboard "
echo ============================================================================
# Set paths
SWBD_AUDIO_PATH='/n/sd8/inaguma/corpus/swbd/data/LDC97S62'
EV... | the_stack |
set -x
echo "##########################################################"
echo "######### Start container configuration ################"
echo "##########################################################"
SERVER_HOST=${SERVER_HOST:-""};
APP_DIR="/var/www/onlyoffice"
APP_DATA_DIR="${APP_DIR}/Data"
APP_INDEX_DIR="${AP... | the_stack |
#
# Control script to run a number of dataloader tests as specified in the
# given config file, using a hardware topology (number of DGX nodes,
# GPUs per node) as specified in the config file.
#
function whinge {
echo "FAILURE $@"
exit 2
}
function usage {
PROG=$1
cat <<-EOU
Usage: $PROG -c <testrc> -d <... | the_stack |
CAND_PROV_LUCENE="lucene"
DEFAULT_QUERY_TEXT_FIELD_NAME="text"
CAND_PROV_NMSLIB="nmslib"
# Both query/question and answer/data files can be in two formats:
# 1. JSONL (always present)
# 2. binary
# Assumptions:
# 1. JSONL answer/data file may be compressed, but a query JSONL file never is.
# 2. Binary query/data file... | the_stack |
function start_tcpdump {
testfunc=$1
logfile=$LOGDIR/"$testfunc"_$(date +%s).dump
tcpdumpcmd="$tcpdump -i $INTERFACE host $SERVERADDRESS and (udp port $SERVERPORT or icmp) -s0 -n -w $logfile"
if [ $verbose ]; then
echo "$tcpdumpcmd"
$tcpdumpcmd&
else
$tcpdumpcmd 2>/dev/null&
fi
tcpdumppid=$!
... | the_stack |
EFSEC2PORTSCANPATH=/home/ec2-user/efs/portscan
EFSLAMBDAPORTSCANPATH=/mnt/efsimttsp/portscan
JSONFILEEC2=$EFSEC2PORTSCANPATH/test_80_40GB.json
JSONFILELAMBDA=$EFSLAMBDAPORTSCANPATH/test_80_40GB.json
MRTFILEEC2=$EFSEC2PORTSCANPATH/2019-10-12.0500.mrt
MRTFILELAMBDA=$EFSLAMBDAPORTSCANPATH/2019-10-12.0500.mrt
CHUNKS=1000... | the_stack |
# check root
[ "$(id -g)" != '0' ] && die 'Script must be run as root.'
# declare variables
envType='master'
ipAddress=$(ip addr | grep -E -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -E -v "^192\\.168|^172\\.1[6-9]\\.|^172\\.2[0-9]\\.|^172\\.3[0-2]\\.|^10\\.|^127\\.|^255\\." | head -n 1) || '0.0.0.0'
my... | the_stack |
message_hdr() { echo "--------------------" ; echo "$@" ; echo "--------------------" ;}
debug() { [ -n "$SNAT_DEBUG" ] && echo "SNAT_DEBUG: " "$@" 1>&2 ; }
repo=${repo_root_dir:-/opt/repo}
scripts=${scripts_root_dir:-${repo}/app_support/build_inst_scripts}
srcdir=${source_root_dir:-${repo}/app_support/src}
config_data... | the_stack |
# Attempt to create a subdirectory in builds/ suitable for
# building nsync on this machine. Works on many Unix-like systems,
# but for some you should create the Makefile by hand.
#
# Requires a Bourne shell, echo, expr, mkdir, uname, rm,
# and, if the -diff option is used, diff.
usage="usage: mkmakefile.sh [-diff|... | the_stack |
# $FreeBSD$
#
# Installs/updates the necessary boot blocks for the desired boot environment
#
# Lightly tested.. Intended to be installed, but until it matures, it will just
# be a boot tool for regression testing.
# insert code here to guess what you have -- yikes!
# Minimum size of FAT filesystems, in KB.
fat32min... | the_stack |
# Note: bind (INITIALIZE_DEFMAP) の中から再帰的に呼び出されうるので、
# 先に ble-edit/bind/load-editing-mode:vi を上書きする必要がある。
ble/is-function ble-edit/bind/load-editing-mode:vi && return 0
function ble-edit/bind/load-editing-mode:vi { :; }
# 2020-04-29 force update (rename ble-decode/keymap/.register)
# 2021-01-25 force update (change map... | the_stack |
# 下载Lienol的openwrt仓库以备下面需要
git clone --depth 1 -b 19.07 https://github.com/Lienol/openwrt.git Lienol
# Ofast
sed -i "s/-O[0-9a-zA-Z]\+ /-Ofast /" include/target.mk
sed -i "s/-O[0-9a-zA-Z]\+ /-Ofast /" ./rules.mk
# only build k3
sed -i 's|^TARGET_|# TARGET_|g; s|# TARGET_DEVICES += phicomm-k3|TARGET_DEVICES += phicomm... | the_stack |
set -x
if [ "$ANDROID_NDK_HOME" = "" ]; then
echo ANDROID_NDK_HOME variable not set, exiting
echo "Use: export ANDROID_NDK_HOME=/your/path/to/android-ndk"
exit 1
fi
# Get the newest arm-linux-androideabi version
if [ -z "$COMPILATOR_VERSION" ]; then
DIRECTORIES=$ANDROID_NDK_HOME/toolchains/arm-linux-androideabi-*... | the_stack |
# shellcheck disable=2153
set -x
set -e
set -u
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
readonly DB_VERSION="$1"
readonly EDITION="$2"
readonly CREATE_CDB="$3"
readonly CDB_NAME="$4"
readonly CHARACTER_SET=${5:-AL32UTF8}
readonly MEM_PCT=${6:-25}
PATCH_VERSION="$7"
readonly INIT_PARAM... | the_stack |
# It's best to run the commands in this one by one.
. ./cmd.sh
. ./path.sh
mfccdir=mfcc
set -e
rescore=true
# check for kaldi_lm
which get_word_map.pl > /dev/null
if [ $? -ne 0 ]; then
echo "This recipe requires installation of tools/kaldi_lm. Please run extras/kaldi_lm.sh in tools/" && exit 1;
fi
# prepare fisher ... | the_stack |
# Copyright 2014, 2015, 2016, 2017, 2018 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
# any purpose with or without fee is hereby granted, provided that
# the above copyright notice and this permission notice appear in all
# copies.... | the_stack |
set -eu
## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || readlink -f "${BASH_SOURCE[0]}")"
. "$(dirname "$THIS_SCRIPT")/../../resources/build/build-utils.sh"
. "$KEYMAN_ROOT/resources/shellHelperFunctions.sh"
## END STANDARD BUIL... | the_stack |
CURR_DIR=$(dirname $0)
WORK_DIR=$(pwd)
HA_DIR=$CURR_DIR/..
source $CURR_DIR/common/common.sh
#################################################################################
# user configuration
#################################################################################
# mandatory
target_host=
repl_log_home=$C... | 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 |
set -ex
SESSION="dcr-harness"
export RPC_USER="user"
export RPC_PASS="pass"
export WALLET_PASS=abc
# --listen and --rpclisten ports for alpha and beta nodes.
# The --rpclisten ports are exported for use by create-wallet.sh
# to decide which node to connect a wallet to.
ALPHA_NODE_PORT="19560"
export ALPHA_NODE_RPC_POR... | 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 fifo/*
mkdir fifo/full_correlation/
rm -R -f work/*
mkdir ... | the_stack |
ciao_bin="$HOME/local"
ciao_gobin="$GOPATH"/bin
event_counter=0
#Utility functions
function exitOnError {
local exit_code="$1"
local error_string="$2"
if [ $1 -ne 0 ]
then
echo "FATAL ERROR exiting: " "$error_string" "$exit_code"
exit 1
fi
}
#Checks that no network artifacts are left behind
function checkFo... | the_stack |
###########################################################################
# Nash!Com Certificate Management Script #
# Version 1.2.0 15.08.2019 #
# #
# (C) Copyright ... | the_stack |
if [ "$FILECHECKER_SH" == "1" ]
then
declare -a CHK_FT_PRINTF_LIST
declare -a CHK_FT_PRINTF_LIST2
# easy
CHK_FT_PRINTF_LIST+=("0" "")
CHK_FT_PRINTF_LIST+=("0" "\n")
CHK_FT_PRINTF_LIST+=("0" "test")
CHK_FT_PRINTF_LIST+=("0" "test\n")
CHK_FT_PRINTF_LIST+=("0" "1234")
# wrong flag
CHK_FT_PRINTF_LIS... | the_stack |
# The cleanup hook ensures these containers are removed when the script exits.
POSTGRES_CONTAINER=test-container
NET=localhost:8981
CURL_TEMPFILE=curl_out.txt
PIDFILE=testindexerpidfile
CONNECTION_STRING="host=localhost user=algorand password=algorand dbname=DB_NAME_HERE port=5434 sslmode=disable"
MAX_TIME=20
# Set to... | the_stack |
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# 2. Redistributions in bina... | the_stack |
function validate_parameter {
name=$1
value=$2
if [ -z $value ]
then
echo "ERROR: Please set '$name' in configmap[webcenter.env.list file]."
echo ""
exit 1
fi
}
if [ -z "$DB_DROP_AND_CREATE" ]
then
export DB_DROP_AND_CREATE="false"
fi
if [ -z ${KEEP_CONTAINER_ALIVE} ]
then
# by def... | the_stack |
set -e
#----------------------------------------------------------------------
# Main Build Script For all module in tizen platform
#----------------------------------------------------------------------
args=''
for i in `seq 1 $#`
do
eval arg=\${${i}}
arg=${arg// /+}
args+=${arg}' '
done
arg_parts=(${ar... | the_stack |
# This script is used to generate .gni files and files in the
# config/platform directories needed to build libvpx.
# Every time libvpx source code is updated just run this script.
#
# Usage:
# $ ./generate_gni.sh [--enable-avx512] [--only-configs]
#
# The following optional flags are supported:
# --enable-avx512 : Ena... | the_stack |
###################################################################################################
# Script Name: uninstall_Office2011.sh
# By: Zack Thompson / Created: 2/12/2018
# Version: 1.0 / Updated: 2/12/2018 / By: ZT
#
# Description: This script combines the Remove2011 script by @pbowden (of Microsoft) a... | the_stack |
get_source_dir() {
if [[ $(uname) == 'Darwin' ]] ; then
source_dir=$(realpath "$(dirname "$0")"/../..)
else
source_dir=$(readlink -f "$(dirname "$0")"/../..)
fi
echo "${source_dir}"
}
# clean up only when it successes
clean_host() {
sed '/node0/d' /etc/hosts | sudo tee -a /tmp/hosts... | the_stack |
# Inception model is small so train and test on a single GPU.
# The following scripts assumes there are at least 8 GPUs on the machine.
# Otherwise you need to change the device ID and run them on different machines.
# ==============================================================================
# ... | the_stack |
if [ -n "$HAVE_MYSQL" ]; then
ods_setup_conf conf.xml conf-mysql.xml
fi &&
ods_reset_env -i &&
echo -n "LINE: ${LINENO} " && ################## SETUP TIME 0 ###########################
echo -n "LINE: ${LINENO} " && log_this ods-enforcer-output date &&
echo -n "LINE: ${LINENO} " && ods_start_enforcer &&
echo ... | 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 |
source /etc/default/virl2
SRC_DIRS="${BASE_DIR}/images ${CFG_DIR}"
KEY_FILE="migration_key"
SSH_PORT="1122"
set_virl_version() {
product_file=/PRODUCT
if [ $# = 1 ]; then
product_file=$1
fi
vers=$(jq -r ".PRODUCT_VERSION" < "${product_file}")
if [ $# = 1 ]; then
echo ${vers}
... | the_stack |
# This is not necessarily the top-level run.sh as it is in other directories. see README.txt first.
tri5_only=false
sgmm5_only=false
data_only=false
[ ! -f ./lang.conf ] && echo 'Language configuration does not exist! Use the configurations in conf/lang/* as a startup' && exit 1
[ ! -f ./conf/common_vars.sh ] && ech... | the_stack |
# Greetings, friends. This installer is intended for Ubuntu installations of JAWA. It will not work well for other
# operating systems. Run with sudo, and may the force be with you.
#
# usage: sudo bash /path/to/ubuntu_installer.sh
#
# What does this installer do?
# - installs python and a webapp
# - installs depen... | the_stack |
set -e
echo "Version: ${CERTS_VERSION}"
echo "wait few seconds in case ingress rule is deployed at the same as it is in demo"
sleep 30
current_folder=$(dirname "$(readlink -f "$0")")
report_file="${current_folder}/report.log"
#initialize file content
echo "" > "${report_file}"
on_exit() {
echo "Exiting..."
so... | the_stack |
# This script automates the deployment to Azure Container Apps
# See /docs/deploying-to-azure-containerapps.md for details
# Display help
help() {
echo "This script deploys the superheroes to Azure Container Apps."
echo "It assumes you have the the following utilities installed on your machine:"
echo " 1) The A... | the_stack |
echo "Bringing in some basic logging functions"
SCRIPTPATH="$( cd "$(dirname "$BASH_SOURCE")" ; pwd -P )"
. "${SCRIPTPATH}/basic_logging.sh"
[[ -n ${SASHOME} ]] || SASHOME="/opt/sas/viya/home"
debug_msg "SASHOME = ${SASHOME}"
[[ -n ${SASCONFIG} ]] || SASCONFIG=/opt/sas/viya/config
debug_msg "SASCONFIG=${SASCONFIG}"
[[ ... | the_stack |
pause()
{
test "X$pause" = X && return
echo -n "Press enter to continue...."
read
}
show_bridges()
{
for br in $(ip -o link show type bridge | awk -F': ' '{print $2}'); do
echo -n "bridge:$br {"
bridge link | grep "master $br" | awk -F': ' '{print $2}' | xargs echo -n
... | the_stack |
set -u # Disallow referencing undefined variables.
# Catch potential misuse of this script.
if [ "$(basename $0)" == "system_test_helpers.sh" ] ; then
echo "ERROR: This file must be loaded with source."
exit 2
fi
if [ $# -lt 1 -o $# -gt 3 ]; then
# Note: HOSTNAME and HTTPS_HOST should generally be localhost (w... | the_stack |
# Copyright 2020 - 2021 MONAI Consortium
# 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 wri... | the_stack |
load $BATS_TEST_DIRNAME/helper/common.bash
setup() {
setup_common
dolt sql <<SQL
CREATE TABLE test_int (
pk BIGINT NOT NULL,
c1 BIGINT,
c2 BIGINT,
c3 BIGINT,
c4 BIGINT,
c5 BIGINT,
PRIMARY KEY (pk)
);
CREATE TABLE test_string (
pk LONGTEXT NOT NULL,
c1 LONGTEXT,
c2 LONGTEXT,
c3 LONGTEXT,
... | the_stack |
# Base constants
#
export STEAM_GAME_ID=594570
export GAME_PREFS="$DEBUG_REAL_HOME/.local/share/feral-interactive/Total War WARHAMMER II"
export GAME_INSTALL_DIR_BASE="steamapps/common/Total War WARHAMMER II/"
export DEFAULT_STEAM_INSTALL_BASE="$DEBUG_REAL_HOME/.steam/steam"
# Try and install the game in case it isn'... | the_stack |
# Split out, so build_kernel.sh and build_deb.sh can share..
shopt -s nullglob
. ${DIR}/version.sh
if [ -f ${DIR}/system.sh ] ; then
. ${DIR}/system.sh
fi
git_bin=$(which git)
#git hard requirements:
#git: --no-edit
git="${git_bin} am"
#git_patchset="git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git"
git_patchse... | the_stack |
## Dependencies: bash gzip fuse2 (or fuse3) tar coreutils
# Prevent launching as root
if [ $EUID = 0 ] && [ -z "$ALLOW_ROOT" ]; then
echo "Do not run this script as root!"
echo
echo "If you really need to run it as root and you know what you are doing,"
echo "set ALLOW_ROOT environment variable."
exit 1
fi
scri... | the_stack |
command [ -n "${SHUNIT_VERSION:-}" ] && exit 0
SHUNIT_VERSION='2.1.8pre'
# Return values that scripts can use.
SHUNIT_TRUE=0
SHUNIT_FALSE=1
SHUNIT_ERROR=2
# Logging functions.
_shunit_warn() {
${__SHUNIT_CMD_ECHO_ESC} \
"${__shunit_ansi_yellow}shunit2:WARN${__shunit_ansi_none} $*" >&2
}
_shunit_error() {
${... | the_stack |
set -e
# Working directories
#DEPS=/deps
#TARGET=/target
#mkdir $DEPS
#mkdir $TARGET
SOURCE_DIR=$PWD
# Build within the mounted volume, handy for debugging
# and ensures that dependencies are not being rebuilt
DEPS=$SOURCE_DIR/build/deps
TARGET=$SOURCE_DIR/build/target
rm -rf $DEPS/
mkdir $DEPS
mkdir -p $TARGET
# D... | the_stack |
################################################################################
# Creates a set of files that allows for creating annotations based off dbSNP
# Pulled directly from the ncbi FTP site.
################################################################################
#Setup variables for the script:
SC... | the_stack |
set -eu
WARNING='\033[0;31m'
SUCCESS='\033[0;32m'
NOTICE='\033[0;33m'
INFO=''
DEBUG=''
RESET='\033[0m'
VERBOSE=${VERBOSE:-}
OCAML_VERSION=`echo $(ocaml -version) | egrep -o '[0-9]+.[0-9]+.[0-9]+' | head -1`
OCAML_VERSION=${OCAML_VERSION:-"4.06.2"}
case ${OCAML_VERSION} in
4.08.*) OCAML_VERSION=4.08.0;;
4.09.*|4.10.*|... | the_stack |
realpath() {
CURR=$PWD
cd "$(dirname "$0")"
LINK=$(readlink "$(basename "$0")")
while [ "$LINK" ]; do
cd "$(dirname "$LINK")"
LINK=$(readlink "$(basename "$1")")
done
REALPATH="$PWD/$(basename "$1")"
echo "$REALPATH"
cd $CURR
}
TEST_HOME=`dirname $(realpath "$0")`
CR... | the_stack |
. ./include.sh
tempOut=temp.bufr_keys_iter.$$.out
tempRef=temp.bufr_keys_iter.$$.ref
# Test: check ident key is present
# -------------------------------------------
input=${data_dir}/bufr/syno_multi.bufr
$EXEC ${test_dir}/bufr_keys_iter -a $input > $tempOut
grep -q '^ident$' $tempOut
# Test: check full output
# --... | the_stack |
# Delete existing modification from file, if it exists
sed -i '/#START_MOD/,/#END_MOD/d' /etc/rc.local
cat <<'EOF' >> /etc/rc.local
#START_MOD
iface="apcli0"
# Drop all tcp traffic incomming on iface
/bin/iptables -A INPUT -p tcp -i ${iface} -j DROP
# Drop all udp traffic incomming... | the_stack |
# For usage, please type
# ./increase-root-disk-1-azure.sh
#
# By default, dry run is turned off. To turn it on, please set it to true
DRY_RUN=false
SCRIPT_NAME_BASE=increase-root-disk-1-azure
SCRIPT_NAME=$SCRIPT_NAME_BASE.sh
LOG_FILE=$SCRIPT_NAME_BASE.log
DESCRIBE_INSTANCE_FILE="$SCRIPT_NAME_BASE-describe-instance... | the_stack |
#
# repo.sh adds the archzfs packages to the archzfs repository or archzfs-testing repository
#
args=("$@")
script_name=$(basename $0)
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
repo_name="" # The destination repo for the packages
package_list=() # A list of packages to add. Array items are in the... | the_stack |
# colors for print text ------------------------------------------------------------------------------------------------------------------
error_color="\033[1;31m" # echo this to change print text color for Error message. (31 is red)
note_color="\033[1;36m" # echo this to change... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.