text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
# Copyright 2021 Patrick Lumban Tobing (Nagoya University)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
. ./path.sh
. ./cmd.sh
# USER SETTINGS {{{
#######################################
# STAGE SETTING #
#######################################
# {{{
# 0: dump model and compile C ... | the_stack |
set -e
here=$(dirname "$0")
SOLANA_ROOT="$(cd "$here"/..; pwd)"
# shellcheck source=net/common.sh
source "$here"/common.sh
usage() {
exitcode=0
if [[ -n "$1" ]]; then
exitcode=1
echo "Error: $*"
fi
CLIENT_OPTIONS=$(cat << EOM
-c clientType=numClients=extraArgs - Number of clientTypes to start. This ... | the_stack |
## @file checker-pr-gateway.sh
## @brief A PR gateway to control two PR checkers such as prebuild and postbuild
## First of all, it clones a github repository with "git clone" command
## when a contributor submits a PR. Then, it run prebuild and postbuild module sequentially.
##
## @see https://github.com/n... | the_stack |
### User customizable values
APP_HOME="`dirname "$0"`"
COMPONENTS_URI="" # Specify the optional components URI field
COMPONENTS_URI_LOCAL_COPY_FOR_HASH="" # If empty, the optional hashAlgorithm and hashValue fields will not be included for the URI
PROPERTIES_URI="" # Specify the optional properties URI field
PROPERTIES... | the_stack |
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal)
# Apache 2.0.
#Fail at any unhandled non-zero error code
set -e
set -o pipefail
help_message="$0: create subset of the input directory (specified as the first directory).
The subset is specified by the second parameter.
... | the_stack |
set -o errexit
set -o pipefail
# set -o xtrace
# set output color
NC='\033[0m'
RED='\033[31m'
GREEN='\033[32m'
YELLOW='\033[33m'
BLUE='\033[34m'
log::err() {
printf "[$(date +'%Y-%m-%dT%H:%M:%S.%2N%z')][${RED}ERROR${NC}] %b\n" "$@"
}
log::info() {
printf "[$(date +'%Y-%m-%dT%H:%M:%S.%2N%z')][INFO] %b\n" "$@"
}
... | the_stack |
. cmd.sh
. path.sh
mfccdir=`pwd`/mfcc
set -e
stage=1
# call the next line with the directory where the Spanish Fisher data is
# (the values below are just an example). This should contain
# subdirectories named as follows:
# DISC1 DIC2
sfisher_speech=/export/a16/gkumar/corpora/LDC2010S01
sfisher_transcripts=/export... | the_stack |
# Copyright 2019 Nagoya University (Takenori Yoshimura)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
if [ ! -f path.sh ] || [ ! -f cmd.sh ]; then
echo "Please change directory to e.g., egs/ljspeech/tts1"
exit 1
fi
# shellcheck disable=SC1091
. ./path.sh || exit 1;
# shellcheck disable=SC1091
. ... | the_stack |
-- @@@ START COPYRIGHT @@@
--
-- 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... | the_stack |
Usage()
{
echo 'Usage: vmaxexport.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_TO... | the_stack |
function athena.docker.get_ip()
{
# For now the support is limited for mac or linux
if [ "$ATHENA_IS_MAC" -ne 0 ]; then
athena._get_docker_ip_for_mac
else
athena._get_docker_ip_for_linux
fi
}
# This function returns the container internal ip provided by docker.
# USAGE: athena.docker.get_ip_for_container <cont... | 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=-1 # start from -1 if you need to start from data download
stop_stage=100
ngpu=2 # number of gpus ... | the_stack |
### requisiti ###
# jq https://stedolan.github.io/jq/
# miller https://github.com/johnkerl/miller
### requisiti ###
set -x
folder="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
mkdir -p "$folder"/processing/datiRegioni
mkdir -p "$folder"/rawdata
# url dashboard
URL="https://app.powerbi.com/view?r=eyJrIjoiMzg4YmI5... | the_stack |
# If you have useful edits made for unsupported distros then please
# visit <https://github.com/FeralInteractive/ferallinuxscripts>
# Extra note: Steam's STEAM_RUNTIME_PREFER_HOST_LIBRARIES can now be
# used to control which libraries it'll use
# See http://store.steampowered.com/news/26953/
# ========================... | the_stack |
echo " "
echo " == Tower-CLI DATA FAKER == "
echo " Setting up fake data for tower-cli testing"
echo " "
echo "Tower-CLI DATA FAKER: reading config settings"
hostval=$(tower-cli config host)
USER_OUTPUT=$(tower-cli config username)
userval=$(echo $USER_OUTPUT| cut -d' ' -f 2)
DIR="$( cd "$( dirname "${BASH_SOU... | the_stack |
#########################################
# Pre-install checks
#########################################
# Warn the user about running this on their host machine
# (because it makes various invasive settings-changes, and runs a ton of vulnerable services)
echo -e "\x1b[31;1mDON'T RUN THIS ON YOUR REAL COMPUTE... | the_stack |
usage() {
if [ "$1" != "" ]; then
echo "ERROR: $1"
echo ""
fi
echo "Usage:"
echo " Create a CA"
echo " $0 -c -d <root CA path> -- <ssh-keygen extra args>"
echo " Create an identity (user / host)"
echo " $0 -c -u -I name -d <root CA path> -- <ssh-keygen extra args>"
echo " $0 -c -h -I name -d <ro... | the_stack |
if [ -f /tmp/nws.txt ]; then
nws=$(cat /tmp/nws.txt)
fi
while getopts ":f:a:t:pci" opt;
do
case $opt in
a) # action with up/down
action="${OPTARG}"
;;
t) # Execute test case
testCase="${OPTARG}"
;;
p) # install npm node modules
preReq="y"
;;
... | the_stack |
this=$(cd ${0%/*} && echo $PWD/${0##*/})
sibling=`dirname $this`
base=${this%/bin/util/install-csv2rdf4lod-dependencies.sh}
base=${base%/*}
home=${base}
echo $home >&2
if [[ "$base" == *prizms/repos ]]; then
# In case we are installed as part of Prizms,
# install next to where Prizms is installed.
base=${base... | the_stack |
source test-header.sh
# ======================================================================
#
# Initial setup.
#
# ======================================================================
PYARMOR="${PYTHON} pyarmor.py"
csih_inform "Python is $PYTHON"
csih_inform "Tested Package: $pkgfile"
csih_inform "PyArmor is $P... | the_stack |
set -eu
cur=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $cur/../_utils/test_prepare
WORK_DIR=$TEST_DIR/$TEST_NAME
API_VERSION="v1alpha1"
function get_mysql_ssl_data_path() {
run_sql 'SHOW VARIABLES WHERE Variable_Name = "datadir"' $MYSQL_PORT1 $MYSQL_PASSWORD1
mysql_data_path=$(cat "$TEST_DIR/sql_res.$TE... | the_stack |
set -e
ProductVersion=$(<version.txt)
# Store current script directory
__currentScriptDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
BuildOutputDir=${__currentScriptDir}/x64/
DependenciesDir=${__currentScriptDir}/dependencies
# Platform name for python wheel based on OS
PlatName=manylinux1_x86_64
if [ "$(uname... | the_stack |
# composure - by erichs
# light-hearted functions for intuitive shell programming
# version: 1.3.1
# latest source available at http://git.io/composure
# install: source this script in your ~/.profile or ~/.${SHELL}rc script
# known to work on bash, zsh, and ksh93
# 'plumbing' functions
_bootstrap_composure() {
_... | the_stack |
set -x
set +e
# 主要在平行链上测试
source "./mainPubilcRelayerTest.sh"
IYellow="\033[0;93m"
le8=100000000
function start_docker_ebrelayerProxy() {
updata_toml proxy
# 代理转账中继器中的标志位ProcessWithDraw设置为true
sed -i 's/^ProcessWithDraw=.*/ProcessWithDraw=true/g' "./relayerproxy.toml"
# shellcheck disable=SC2154
... | the_stack |
# always exit on errors
set -ex
export KUBECONFIG=${HOME}/ovn.conf
export OVN_IMAGE=${OVN_IMAGE:-ovn-daemonset-f:pr}
kubectl_wait_pods() {
# Check that everything is fine and running. IPv6 cluster seems to take a little
# longer to come up, so extend the wait time.
OVN_TIMEOUT=900s
if [ "$KIND_IPV6_SUPPORT" =... | the_stack |
BAR_ELEMENT="-"
BAR_HEALTHY_COLOR="32"
BAR_WARNING_THRESHOLD=70
BAR_WARNING_COLOR="33"
BAR_CRITICAL_THRESHOLD=90
BAR_CRITICAL_COLOR="31"
BANNER_KERNEL_ICON="#"
BANNER_KERNEL_COLOR="33"
BANNER_UPTIME_ICON="#"
BANNER_UPTIME_COLOR="94"
BANNER_DEBIAN_ICON="#"
BANNER_DEBIAN_COLOR="95"
BANNER_FEDORA_ICON="#"
BANNER_FEDORA_C... | the_stack |
# Copyright 2018 Xiaohui Zhang
# Apache 2.0
# This recipe has similar inputs and outputs as steps/dict/learn_lexicon.sh
# The major difference is, instead of using a Bayesian framework for
# pronunciation selection, we used a likelihood-reduction based greedy
# pronunciation selection framework presented in the pap... | the_stack |
function print_boards() {
echo "Supported boards:"
for i in ../fpga/platforms/*/build/platform.conf ; do
source $i
echo " [*] $BOARD_NAME";
echo " Supported revisions:"
for rev in ${PLATFORM_REVISIONS[@]} ; do
echo " ${rev}"
done
e... | the_stack |
########################################################################
# postroute_hold fails sometimes, thus all this infrastructure for retry.
#
# "prh.sh" does the following:
# - make postroute_hold
# - check for errors; exit 13 if errors found
#
# Note if "make postroute_hold" did error-checking correctly, w... | the_stack |
SCRIPT_DIR=$(cd $(dirname "$0"); pwd -P)
. $SCRIPT_DIR/common.sh
. $SCRIPT_DIR/config.sh
TMP_DIR=$(mktemp -d)
trap 'rc=$?; rm -rf ${TMP_DIR} || true; _logging_exit_handler $rc' EXIT
VERRAZZANO_DEFAULT_SECRET_NAMESPACE="cert-manager"
VERRAZZANO_DEFAULT_SECRET_NAME="verrazzano-ca-certificate-secret"
VERRAZZANO_INSTALL_... | the_stack |
OMNIPY_HOME="/home/pi/omnipy"
function DoBackup(){
cd $OMNIPY_HOME/../
backupfilename="omnipy_backup_"$(date +%d-%m-%y-%H%M%S)".tar.gz omnipy"
name=$(whiptail --title "Backup Omnipy setup" --inputbox "What backup file name do you want ?" 10 60 $backupfilename 3>&1 1>&2 2>&3)
exitstatus=$?
if [ $exitsta... | the_stack |
#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#
# PURPOSE: Secondary (helper) script that is called by the main SETUP_TEMPLATE.sh file to call
# some functions and obtain some exported variables to better modularize the code.
#... | the_stack |
#########################################
# Installs python and necessary packages
# for deb based Naomi. This script will install python
# into the ~/.config/naomi/local/bin directory and
# install naomi & requirements in their
# respective directories.
#########################################
BLACK='\033[1;30m'
RED=... | the_stack |
# Analyze test for the comdb2 testsuite
#
#
# This test is designed to test comdb2/sqlite3's analyze function. It intends
# to test and document the difference in performance between a non-analyzed
# database and and analyzed database for a set of testcases designed
# specifically to benefit from analyze.
#
# This ... | the_stack |
: '
1. Process an input set of wave files using LPCNet under a variety of conditions.
2. Name output files to make them convenient to listen to in a file manager.
3. Generate a HTML table of samples for convenient replay on the web.
4. Generate a bunch of other HTML files and PNGs.
usage: ./process.sh [--lit... | the_stack |
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
echo "# managing the RaspiBlitz data - import, export, backup."
echo "# blitz.migration.sh [export|import|export-gui|migration-umbrel|migration-mynode]"
echo "error='missing parameters'"
exit 1
fi
# check if started with sudo
if [ "$EUID" -ne 0 ]; then... | the_stack |
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# printSummary
printSummary() {
echo "Purpose:"
echo "This script executes transactions using PTE based on the specified testcase scenarios."
echo "The testcase scenarios contains the number of channels, numbers of org,... | the_stack |
set -e
# Defaults ------------------------------------------------------
MINICONDA_DIR="${HOME}/miniconda"
INSTALL_DIR="${HOME}/tools"
TO_INSTALL="bedtools,samtools,tabix,ucsc"
INSTALL_MINICONDA=1
ENVNAME="metaseq-test"
LOG=/dev/stdout
VERBOSE=0
GIT_TAG=""
TRAVIS_CI=0
USE_BEDTOOLS_VERSION=2.21.0
USE_SAMTOOLS_VERSION=... | the_stack |
#!/bin/bash
if [ `grep "LC_ALL" /etc/profile|wc -l` = 0 ];then
echo "export LANG=\"C.UTF-8\"" >> /etc/profile
echo "export LC_ALL=\"C.UTF-8\"" >> /etc/profile
echo "export DEBIAN_FRONTEND=\"noninteractive\"" >> /etc/profile
echo "export APT_LISTCHANGES_FRONTEND=\"none\"" >> /etc/profile
source /etc/... | the_stack |
set -e;
function die() {
echo "$1";
exit 1;
}
set -e
if [ -z "$1" ]; then
die "You must provide the ID of the GPG key which is supposed to be used in regular rpm and deb packages.";
fi
if [ -z "$2" ]; then
die "You must provide the ID of the GPG key which is supposed to be used in alternative rpm package."... | the_stack |
# Script for GCC chainload in OS X made for EDKII
#
# Primary use is for creating better crosscompile support than
# mingw-gcc-build.py that is found in BaseTools/gcc/
#
# With this we can use Native GCC chainload for EDKII
# development
#
# Xcode Tools are required
# Script tested on "Xcode 3.2.2" - Snow Leopard
# ... | the_stack |
# This (1m.sh) is the same as 1j but with per-frame dropout on LSTM layer
# It is a fast LSTM with per-frame dropout on [i, f, o] gates of the LSTM,
# the dropout-adding place is "place4" in paper : http://www.danielpovey.com/files/2017_interspeech_dropout.pdf.
# We have tried both 4-epoch and 5-epoch training.
### IH... | the_stack |
# I run this in Debian Jessie container with the following command:
#
# $ env -i \
# HOME=/root \
# PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
# SHELL=/bin/bash \
# TERM=$TERM \
# systemd-nspawn /chroot/RustBuild/ /bin/bash ~/build-rust.sh
#
# Builds the rust compiler with ... | the_stack |
# ======================================= 配置 =======================================
PREFIX_DIR=/usr/local/gcc-6.3.0
BUILD_TARGET_COMPOMENTS="";
# ======================= 非交叉编译 =======================
BUILD_TARGET_CONF_OPTION=""
BUILD_OTHER_CONF_OPTION=""
# ======================= 交叉编译配置示例(暂不可用) =====================... | the_stack |
_FILENAME=${0##*/}
CUR_DIR=${0/${_FILENAME}}
CUR_DIR=$(cd $(dirname ${CUR_DIR}); pwd)/$(basename ${CUR_DIR})/
pushd $CUR_DIR/..
set -e
CFLAGS="-O2 -std=c89 -Wall -Wextra -Wmissing-prototypes -Werror -fno-asynchronous-unwind-tables -fno-stack-protector -U_FORTIFY_SOURCE \
-ffunction-sections -fdata-sections -Wl,--gc-... | the_stack |
normal=$(tput sgr0)
bold=$(tput bold)
PYTHON_CLIENT="https://raw.githubusercontent.com/BotoX/ServerStatus/master/clients/client.py"
PYTHONPSUTIL_CLIENT="https://raw.githubusercontent.com/BotoX/ServerStatus/master/clients/client-psutil.py"
BASH_CLIENT="https://raw.githubusercontent.com/BotoX/ServerStatus/master/clients... | the_stack |
. /lib/functions.sh
. /etc/diag.sh
. /lib/functions/network.sh
#ubus iwinfo
. /usr/share/libubox/jshn.sh
#from gargoyle /www/
. /usr/lib/autorepeater/scan_wifi.sh
UCI_CONFIG_DIR=""
SECTION_ID=""
VERBOSE_MODE=1
LOGFILE=""
PIDFILE=""
UPDFILE=""
DATFILE=""
ERRFILE=""
CHECK_SECONDS=0
FORCE_SECONDS=0
RETRY_SECONDS=0
LAST_... | the_stack |
#######################################
# Gets a node's default POS weight.
# Arguments:
# Count of genesis nodes to setup (default=5).
# Node ordinal identifier.
#######################################
function get_node_pos_stake_weight()
{
local COUNT_NODES_AT_GENESIS=${1}
local NODE_ID=${2}
local POS... | the_stack |
echo $(date) " - Starting Script"
set -e
export SUDOUSER=$1
export PASSWORD="$2"
export MASTER=$3
export MASTERPUBLICIPHOSTNAME=$4
export MASTERPUBLICIPADDRESS=$5
export INFRA=$6
export NODE=$7
export NODECOUNT=$8
export INFRACOUNT=$9
export MASTERCOUNT=${10}
export ROUTING=${11}
export REGISTRYSA=${12}
export ACCOUN... | the_stack |
# Repeat test for CGNS=yes
TEST_CGNS=false
#-----------------------------
# URLs with all major releases
#-----------------------------
MPICH_LIB="https://www.mpich.org/static/downloads"
OPENMPI_LIB="https://download.open-mpi.org/release/open-mpi"
MPICH_TESTS=("$MPICH_LIB""/1.0/mpich2-1.0.tar.gz" \
"$MP... | the_stack |
set -e
# Preserve the Auth-specific stuff we've layered on the upstream template
\rm -fr SAVE
mkdir -p SAVE/ios/ProjectName/
cp template/ios/ProjectName/GoogleService-Info.plist SAVE/ios/ProjectName/
mkdir -p SAVE/android/app/
cp template/android/app/google-services.json SAVE/android/app/
mkdir -p SAVE/src/app
cp -r t... | the_stack |
# Written by Thomas Stibor <thomas@stibor.net>
VERSION="0.1.7"
# ANSI color codes.
COL_R='\033[0;31m'
COL_G='\033[0;32m'
COL__='\033[0m' # No color.
# Arguments
DRIVER_TEST=0
CAPTURE_TEST=""
FORMAT_TEST=""
#---------------- Helper functions -----------------#
__realpath() {
path=`eval echo "$1"`
folder=$(dir... | the_stack |
# Author: Héctor Molinero Fernández <hector@molinero.dev>
# License: MIT, https://opensource.org/licenses/MIT
# Repository: https://github.com/hectorm/hblock
set -eu
export LC_ALL='C'
# Check if a program exists.
exists() {
# shellcheck disable=SC2230
if command -v true; then command -v -- "${1:?}"
elif eva... | the_stack |
export NODE_ENV=production # testing development production
export BDK_NETWORK_NAME=shell-network-ca
. ./cicd/test_script/steps/set-params.sh
RCA_DOMAIN='rca.cathaybc.com'
RCA_PORT='7054'
ICA_DOMAIN_ORG0='ica.org0.cathaybc.com'
ICA_PORT_ORG0='7154'
ICA_DOMAIN_ORG1='ica.org1.cathaybc.com'
ICA_PORT_ORG1='7254'
ICA_DO... | the_stack |
info "1 - Control Plane Components"
info "1.1 - Master Node Configuration Files"
check_1_1_1="1.1.1 - Ensure that the API server pod specification file permissions are set to 644 or more restrictive (Scored)"
file="/etc/kubernetes/manifests/kube-apiserver-pod.yaml"
if [ -f $file ]; then
if [ "$(stat -c %a $file)"... | the_stack |
# This script executes several commands over a shared SSH-connection.
# It is probably a good idea to have an ssh-agent(1) running (XXX not
# anymore--should only request password once). XXX Check again with
# notes to see that all this is sane.
#
# Note: A valid AFS token can be obtained by "kinit" followed by
# "akl... | the_stack |
help_usage(){
echo "script usage: $(basename $0) [-f DNS forward domain name is mandatory(testvirt.net)] [-r DNS reverse domain name is mandatory(123.168.192)] [-s DNS server ip is mandatory (192.168.123.1)] [-h help]"
}
#Remove virt_dns_setup log file if it already exists
setup_log_file="/var/log/virt_dns_setu... | the_stack |
PID=$$
function usage()
{
echo "This tool is for manual compact specified table(app)."
echo "USAGE: $0 -c cluster -a app-name [-t periodic|once] [-w] [-g trigger_time] [...]"
echo "Options:"
echo " -h|--help print help message"
echo
echo " -c|--cluster <str> cluster... | the_stack |
set -euxo pipefail
function get_metadata_attribute() {
local -r attribute_name=$1
local -r default_value=$2
/usr/share/google/get_metadata_value "attributes/${attribute_name}" || echo -n "${default_value}"
}
OS_NAME=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
readonly OS_NAME
# Dataproc role
ROLE="$(/usr/s... | the_stack |
# Changes to the given alias directory
# or executes a command based on the arguments.
goto()
{
local target
_goto_resolve_db
if [ -z "$1" ]; then
# display usage and exit when no args
_goto_usage
return
fi
subcommand="$1"
shift
case "$subcommand" in
-c|--cleanup)
_goto_cleanup "$@... | the_stack |
# This script will rename an existing VPC Security Group by creating an identical new group
# Security Groups must exist in the same VPC and region
# Note: this script is somewhat experimental and you should manually verify all results before applying the new group!!!
# Requires the AWS CLI and jq
# Set Variables
VPCI... | the_stack |
set -e
# Automatic Xrdp/X11rdp Compiler/Installer
# a.k.a. ScaryGliders X11rdp-O-Matic
#
# Version 3.11
#
# Version release date : 20140927
########################(yyyyMMDD)
#
# Will run on Debian-based systems only at the moment. RPM based distros perhaps some time in the future...
#
# Copyright (C) 2012-2014, Kevin... | the_stack |
#PLEASE MAKE SURE TO SET THE FOLLOWING VARIABLES:
#root_mysql_pass
#misp_mysql_pass
#these will be the passwords you use to access mariadb as root/misp
# DO NOT USE single quotes (''), double quotes (""), back ticks (``), ampersands (&), semi-colons (;) or spaces ( ) for your password -- they will break the script in f... | the_stack |
# This script is used for the CI job cloud-provider-openstack-test-occm.
#
# Prerequisites:
# - This script is supposed to be running on the CI host which is running devstack.
# - kubectl is ready to talk with the kubernetes cluster.
# - jq is needed.
# - This script will delete all the resources created during... | the_stack |
#Generically using . to source env config , should be present in the same path as the script
. ./edge.env
show_all_entries()
{
return=$($SPIRE_PATH/spire-server entry show 2>&1)
err=$?
if [ $? -eq 0 ]; then
echo "listing all entries registered with spire server."
echo "$return"
else
echo "failed... | the_stack |
##
## General Settings
## You should probably change them
# The path to your Defold Editor folder:
# - MacOS: "/Applications/Defold.app"
# - Linux: "/usr/bin/Defold"
# - Windows: "C:/Program Files/Defold"
defold_editor_path="YOUR-DEFOLD-PATH-HERE"
# Open the output folder after completing the bundle.
open_bundle_fold... | the_stack |
# Diagnostic Test Function
runtests()
{
echo "
___ _ _______ _____ __ __ ___
/ | | / / ___/ / ___/__ _______/ /____ ____ ___ _____ / |/ /___ _____ ____ _____ ____ _____
/ /| | | /| / /\__ \ \__ \/ / / / ___/ __/... | the_stack |
# Helper script used in the second edition of the GNU MCU Eclipse build
# scripts. As the name implies, it should contain only functions and
# should be included with 'source' by the container build scripts.
# -----------------------------------------------------------------------------
function build_versions()
{
... | the_stack |
# This script is written as Bourne shell and is POSIX compliant to have less interoperability issues between distros and MacOS.
# it's a good idea to run this script periodically through a shell script checker like https://www.shellcheck.net/
# Periodically check the valgrind results on the build server by going to:
#... | the_stack |
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
AWSDFCMD="aws devicefarm --region us-west-2 --output text"
DOWNLDROOT="."
DLFOLDER="."
declare PRJECT_ID=""
RUN_ID=""
JOB_ID=""
SUITE_ID=""
TEST_ID=""
declare URL_TYPE=1 # 1:RUN, 2:JOB, 3:SUITE, 4:TEST;
declare ... | the_stack |
# Export Test VPLEX_ORCH_1
#
# Summary: Remove Initiator should not remove volumes unless validation_check is off.
#
# 1. ViPR creates 2 volumes, 1 cluster export to two hosts.
# 2. turn on validation_check flag
# 3. remove all initiators for host1
# -- expected result: exception with error message about how volume... | the_stack |
set -eo pipefail
function help() {
local -r NAME=$(basename "$0")
local -r BOLD="\e[1m"
local -r RESET="\e[0m"
local -r help=$(cat << EOF
${BOLD}NAME${RESET}
\t$NAME - Build delivery using the ${BOLD}local host system${RESET}.
${BOLD}SYNOPSIS${RESET}
\t$NAME [-h|--help] [examples|dotnet|java|python|all|reset]
... | the_stack |
##################################################################################################
# Verify that login, logout, and login failure events are properly stored in system.session_log
# when different `IDENTIFIED BY` clauses are used on user.
#
# Make sure that system.session_log entries are non-empty and pr... | the_stack |
# Script for generating RSA and ECC Intermediate CA and server/client certs based on it.
# Result is chains that looks like:
# RSA Server
# ROOT: ./certs/ca-cert.pem
# C=US, ST=Montana, L=Bozeman, O=Sawtooth, OU=Consulting, CN=www.wolfssl.com/emailAddress=info@wolfssl.com)
# INTERMEDIATE: ./certs/intermediate... | the_stack |
set -o xtrace
DEFAULT_PARAMS='--nr_decoder_blocks 3 --upsampling learned-3x3-zeropad'
TIME_PYTORCH='--n_runs_warmup 50 --n_runs 50 --no_time_onnxruntime --no_time_tensorrt --debug'
TIME_TRT32='--n_runs_warmup 50 --n_runs 50 --no_time_onnxruntime --no_time_pytorch --debug'
TIME_TRT16='--n_runs_warmup 50 --n_runs 50 --... | the_stack |
export X509_CA_DEFAULT_NAME="ca"
export X509_CA_DEFAULT_COUNTRY="ZZ"
export X509_CA_DEFAULT_STATE="SomeState"
export X509_CA_DEFAULT_CITY="SomeCity"
export X509_CA_DEFAULT_COMPANY="SomeCompany"
export X509_CA_DEFAULT_ORG="SomeOrganization"
export X509_CA_DEFAULT_ORGUNIT="SomeOrgUnit"
export X509_CA_DEFAULT_EMAIL="no-re... | the_stack |
yum install -y jq
kube_apipath="/kubernetes-api-resources"
# Create infra file for CPE to pass
mkdir -p "$kube_apipath/apis/config.openshift.io/v1/infrastructures/"
cat <<EOF > "$kube_apipath/apis/config.openshift.io/v1/infrastructures/cluster"
{
"apiVersion": "config.openshift.io/v1",
"kind": "Infrastructure... | the_stack |
:<<DOC
A wrapper script for running the JamfUploader processors in a standalone fashion, without running an AutoPkg recipe.
DOC
###########
## USAGE ##
###########
usage() {
echo "
Usage:
./jamf-upload.sh [object_type] [--help] [arguments]
Valid object types:
category
group | computergroup
profile |... | the_stack |
SEMVER="src/semver"
# A normal version number MUST take the form X.Y.Z where X, Y, and Z are non-negative
# integers, and MUST NOT contain leading zeroes. X is the major version, Y is the minor
# version, and Z is the patch version. Each element MUST increase numerically.
# For instance: 1.9.0 -> 1.10.0 -> 1.11.0.
@t... | the_stack |
# Default configuration
# Full IP match or first three octets only (Class C)
# Value: 0 or 1
CLASSC_MATCH="0"
# DNS resolver
NS1="1.1.1.1"
# Timeout in seconds
TIMEOUT="3"
# List cache path
CACHE_DIR="${HOME}/.cache/ip-reputation"
# Last 100 unmatched attackers
KNOWN_IP="${CACHE_DIR}/known.list"
# GeoIP database
... | the_stack |
PROPFILE=$PWD/install.properties
propertyValue=''
if [ ! -f ${PROPFILE} ]
then
echo "$PROPFILE file not found....!!";
exit 1;
fi
usage() {
[ "$*" ] && echo "$0: $*"
sed -n '/^##/,/^$/s/^## \{0,1\}//p' "$0"
exit 2
} 2>/dev/null
log() {
local prefix="$(date +%Y-%m-%d\ %H:%M:%S,%3N) "
echo "${prefix} $@" ... | the_stack |
set -eo pipefail
usage(){
echo "$0 [-t node|master|infranode] [-u username] [-p /path/to/publicsshkey] [-s vmsize] [-d extradisksize (in G)] [-d extradisksize] [-d...]"
echo " -t|--type node, master or infranode"
echo " If not specified: node"
echo " -u|--user regular... | the_stack |
set -e
export PS4='\n\033[0;33m+[${BASH_SOURCE}:${LINENO}]: \033[0m'
set -x
## ============================= single GPU =============================== ##
# dense embedding + adam + save_param + hashtable
python3 test_dense_emb_demo.py \
--gpu_num=1 \
--distributed_tool="onedevice" \
--iter_num=30 \
... | the_stack |
if [ "-bash" = $0 ]; then
dirpath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
else
dirpath="$(cd "$(dirname "$0")" && pwd)"
fi
if [ -z $SETENV ]; then
SETENV=${dirpath}/setenv.sh # set environment if not predefined
fi
if [ -z $RLWRAP ]; t... | the_stack |
# To get the service to restart correctly on reboot, uncomment below (3 lines):
# ========================
# chkconfig: 3 99 99
# description: Gerrit Code Review
# processname: gerrit
# ========================
### BEGIN INIT INFO
# Provides: gerrit
# Required-Start: $named $remote_fs $syslog
# Required-St... | the_stack |
function bv_pyside_initialize
{
export DO_PYSIDE="no"
export USE_SYSTEM_PYSIDE="no"
add_extra_commandline_args "pyside" "alt-pyside-dir" 1 "Use alternative directory for pyside"
}
function bv_pyside_enable
{
DO_PYSIDE="yes"
}
function bv_pyside_disable
{
DO_PYSIDE="no"
}
function bv_pyside_alt_py... | the_stack |
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root!" 1>&2
exit 1
fi
#echo ${0##*/}
#exit;
if [ ! -f /etc/default/yahm ]
then
cat > /etc/default/yahm <<EOF
# Default path
YAHM_DIR=/opt/YAHM
# temp folder
YAHM_TMP=/tmp/YAHM
# shared/cached files like systeminfo
YAHM_LIB=/var/lib/yahm
# tools an... | the_stack |
# Set $self to the name the currently-executing script was run as. This is usually
# used in help messages.
self=$(basename $0)
PREFERENCES_FILE="preferences.json"
function overtemp {
# check for CPU temperature above 85°C
if is_pi; then
TEMPERATURE=`cat /sys/class/thermal/thermal_zone0/temp`
... | the_stack |
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# usage: dmgdiffer.sh product_name old_dmg new_dmg patch_dmg
#
# dmgdiffer creates a disk image containing a binary update able to patch
# a product orig... | the_stack |
config=$1
additional_args=${@:2}
add_arg_str=`echo ${additional_args} | tr ' ' '_' | tr '/' '-'`
#MEM=59GB
MEM=29GB
#num_gpus=18
#gpu_partition=m40-long
#num_gpus=36
#gpu_partition=titanx-long
#gpu_partition=m40-short
num_gpus=54
gpu_partition=titanx-short
lrs=".0005"
kb_batch_sizes="16 32"
text_batch_sizes="32"
ner_... | the_stack |
if [ -z "$UID" ] || [ $UID -ne 0 ]; then
echo "Script should be run as root user or as sudo <path to this script>/secure_user_permission.sh"
exit 1
fi
while true; do
echo -n "Enter volttron platform user. User would be provided sudo access to specific commands:"
read volttron_user
id=`id -u $volttron_u... | the_stack |
#################################################################################
# #
# TPM2 regression test #
# Written by Ken Goldman #
# IBM Thomas J. Watson Research Center #
# #
# (c) Copyright IBM Corporation 2019 - 2020 #
# #
# All rights reserved. ... | the_stack |
export GIT_URL="${GIT_URL}"
export GIT_USER="${GIT_USER}"
export GIT_CREDENTIALS="${GIT_CREDENTIALS:-$GIT_TOKEN}"
set -euo pipefail
function usage() {
set +x
cat <<EOF
USAGE: ${0##*/} [--debug] [--dry-run] [--toolkit] [--deploy-kind] [--testdata] [--helm <upgrade| install>]
[--kraan-image-reg <registry... | the_stack |
# shellcheck disable=SC1039,SC1091,SC2129
set -e
set -o pipefail
# version consts
SLURM_VERSION=18.08.5-2
DOCKER_CE_VERSION_DEBIAN=18.09.2
GLUSTER_VERSION_DEBIAN=4.1
GLUSTER_VERSION_CENTOS=41
# consts
DOCKER_CE_PACKAGE_DEBIAN="docker-ce=5:${DOCKER_CE_VERSION_DEBIAN}~3-0~"
SLURM_CONF_DIR=/etc/slurm
AZFILE_MOUNT_DIR=/... | the_stack |
set -o errexit
set -o nounset
set -o pipefail
[ -n "${DEBUG:-}" ] && set -o xtrace
readonly script_dir="$(dirname $(readlink -f $0))"
readonly script_name=${0##*/}
readonly project_dir="$(dirname ${script_dir})"
readonly tmp_dir=$(mktemp -t -d osbuilder-test.XXXXXXX)
readonly tmp_rootfs="${tmp_dir}/rootfs-osbuilder"
r... | the_stack |
# Currently works only on Redhat systems
# Variables to edit
# Puppet master
server='puppet'
# On what systems is the client to migrate ('pe' or 'osp')
migrate_from='pe'
# Where to backup Puppet files
backup_dir=/tmp/puppet_migration
# List of concat files to exclude from diff view (changes here are known and we d... | the_stack |
# A simple package manager for RethinkDB dependencies
#
# Each package is a shell script that can override these functions:
#
# pkg_install: Build and install the package into $install_dir
# If a build step is necessary, first copy the source from $src_dir into $install_dir/build
#
# pkg_fetch: Fetch th... | the_stack |
set -e
. $(dirname $0)/regression-funcs.sh
eval do_$test=y
rm -f "$logfile"
rm -f "$benchfile"
# generate reference for quality check
if [ -n "$do_vref" ]; then
do_ffmpeg_nocheck $raw_ref -f image2 -vcodec pgmyuv -i $raw_src -an -f rawvideo $target_path/$raw_ref
fi
if [ -n "$do_aref" ]; then
do_ffmpeg... | the_stack |
set -e
export PATH='/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin'
source /var/tmp/helpers/default.sh
readonly COMMON_FILES='/var/tmp/common'
readonly UBUNTU_RELEASE=$(detect_ubuntu_release)
readonly UBUNTU_VERSION=$(detect_ubuntu_version)
readonly AMAZON_EC2=$(detect_amazon_ec2 && echo 'true')
read... | the_stack |
######################
##### Read First #####
######################
# You will need to change the directories and code to suit your own computer
## The code shows the following steps:
# 1) how to train all the models
# 2) how to tune the lr
# 3) get an approximation of the FID at all checkpoints to find best checkpoi... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.