text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
# Cater for the fact that solaris and openbsd use different flags in diff
local ignore=" -B -w "
case "$DISTRIBUTION" in
sunos | \
openbsd )
ignore="-b -w "
;;
esac
if [ -n "$HAVE_MYSQL" ]; then
ods_setup_conf conf.xml conf-mysql.xml
else
ods_setup_conf conf.xml conf.xml
fi &&
ods_reset_env &... | the_stack |
VERSION="4.0.4"
# Git path
GITPATH="/home/test/v4"
# check if user is root
if [ `whoami` == root ]; then
echo "Good you are root."
else
echo "ERROR: Please become root first."
exit 1
fi
# check if we run CentOS 7 or 8
OSVERSION=`cat /etc/centos-release`
DEBVERSION=`cat /etc/debian_version`
if [[ $OSVERSION =~ ... | the_stack |
# Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey).
# 2013 Xiaohui Zhang
# 2013 Guoguo Chen
# 2014 Vimal Manohar
# Apache 2.0.
# train_pnorm_simple2.sh is as train_pnorm_simple.sh but it uses the "new" egs
# format, created by get_egs2.sh.
# train_p... | the_stack |
# Copyright Tsinghua (Author:YiLiu earlier than 2018-10-01)
# xmuspeech (Author:Snowdar 2018-10-01)
set -e
stage=0
endstage=8
phonetic_train_stage=-10
xv_train_stage=0 # should be always >=0 in this case
use_gpu=true
clean=true
remove_egs=true
cmn=true # do sliding cmn when getting egs
sleep_tim... | the_stack |
{ # This ensures the entire script is downloaded
ROOT_UID=0
ARRAY_SEPARATOR="#"
main(){
if [ "$1" = "stage" ]; then
AZUKIAPP_REPO_URL="http://repo-stage.azukiapp.com"
else
AZUKIAPP_REPO_URL="http://repo.azukiapp.com"
fi
step "Checking platform"
# Detecting PLATFORM and ARCH
UNAME="$(uname -a)"
... | the_stack |
# Copyright 2012 Arnab Ghoshal
# Copyright 2010-2011 Microsoft Corporation Arnab Ghoshal
# 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
#
# T... | the_stack |
# curl localhost:8888/listbatchers | jq
# curl -d '{}' localhost:8888/getbatcher | jq
# curl -d '{}' localhost:8888/getbatchdetails | jq
# curl -d '{"outputLabel":"test002","address":"1abd","amount":0.0002}' localhost:8888/addtobatch | jq
# curl -d '{}' localhost:8888/batchspend | jq
# curl -d '{"outputId":1}' localhos... | the_stack |
set -o pipefail
# Mode
##############################################################################
if [ "$1" = "indocker" ]; then
INDOCKER=true
shift
else
INDOCKER=false
fi
# Run configuration
##############################################################################
CFG_CABAL_STORE_CACHE=""
CFG_... | the_stack |
source "$CONFIG_DIR/provider.$PROVIDER"
#-------------------------------------------------------------------------------
# VirtualBoxManage
#-------------------------------------------------------------------------------
VBM=vbm
: ${VBM_LOG:=$LOG_DIR/vbm.log}
# vbm is a wrapper around the VirtualBox VBoxManage execu... | the_stack |
# The name of this program.
progname=`$echo "$0" | sed 's%^.*/%%'`
modename="$progname"
# Constants.
PROGRAM=ltmain.sh
PACKAGE=libtool
VERSION=1.2
default_mode=
help="Try \`$progname --help' for more information."
magic="%%%MAGIC variable%%%"
mkdir="mkdir"
mv="mv -f"
rm="rm -f"
# Sed substitution that helps us do ro... | the_stack |
# Copyright 2017 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | the_stack |
# Copyright 2021 The KubeEdge 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 in... | the_stack |
#
# This script imports new versions of scrypt (http://www.tarsnap.com/scrypt/) into the
# Android source tree. To run, (1) fetch the appropriate tarball from the scrypt repository,
# (2) check the gpg/pgp signature, and then (3) run:
# ./import_scrypt.sh import scrypt-*.tar.gz
#
# IMPORTANT: See README.android for ... | the_stack |
#Convert paths from Windows style to POSIX style
MSYS_BIN=$(echo "/$MSYS_BIN" | sed -e 's/\\/\//g' -e 's/://' -e 's/\"//g')
DEPS_ROOT=$(echo "/$DEPS_ROOT" | sed -e 's/\\/\//g' -e 's/://' -e 's/\"//g')
PATH_DEPS=$(echo "/$PATH_DEPS" | sed -e 's/\\/\//g' -e 's/://' -e 's/\"//g')
CMD_7ZIP=$(echo "/$CMD_7ZIP" | sed -e 's/\... | the_stack |
version=`hgsql hgFixed -Ne "select releaseNotes from knownId where releaseNotes='$db ${GENCODE_VERSION}'"`
if test "$version" != ""
then
echo "This version ($version) already exists in hgFixed.knownId"
echo "To delete: hgsql hgFixed -Ne \"delete from knownId where releaseNotes='$db ${GENCODE_VERSION}'\""
e... | the_stack |
# For my own and others sanity
# git:
# %b => current branch
# %a => current action (rebase/merge)
# prompt:
# %F => color dict
# %f => reset color
# %~ => current path
# %* => time
# %n => username
# %m => shortname host
# %(?..) => prompt conditional - %(condition.true.false)
# terminal codes:
# \e7 => save cursor ... | the_stack |
set -e
# Set default props like MAVEN_PATH, ROOT_FOLDER etc.
function set_default_props() {
# The script should be run from the root folder
ROOT_FOLDER=`pwd`
echo "Current folder is ${ROOT_FOLDER}"
if [[ ! -e "${ROOT_FOLDER}/.git" ]]; then
echo "You're not in the root folder of the project!"
... | the_stack |
# Copyright 2016 Xiaohui Zhang
# 2016 Vimal Manohar
# Apache 2.0
# This script demonstrate how to expand a existing lexicon using a combination
# of acoustic evidence and G2P to learn a lexicon that covers words in a target
# vocab, and agrees sufficiently with the acoustics. The basic idea is to
# run p... | the_stack |
# Default config
# Sets the target folders and the final framework product.
FMK_NAME=HockeySDK
FMK_RESOURCE_BUNDLE=HockeySDKResources
FMK_iOS8_NAME="HockeySDK Framework"
# Documentation
HOCKEYSDK_DOCSET_VERSION_NAME="de.bitstadium.${HOCKEYSDK_DOCSET_NAME}-${VERSION_STRING}"
# Install dir will be the final output to t... | the_stack |
set -e
#####################
### Dependency check
if ! hash curl 2>&-; then echo "Error: curl is required" && exit 1; fi
if ! hash jq 2>&-; then echo "Error: jq is required" && exit 1; fi
if ! hash sha1sum 2>&-; then { if ! hash openssl 2>&-; then echo "Error: openssl/sha1sum is required" && exit 1; fi } fi
########... | the_stack |
TESTCASE="intermediateca-test"
TDIR=/tmp/$TESTCASE
FABRIC_CA="$GOPATH/src/github.com/tjfoc/gmca"
SCRIPTDIR="$FABRIC_CA/scripts/fvt"
TESTDATA="$FABRIC_CA/testdata"
. $SCRIPTDIR/fabric-ca_utils
PROTO="http://"
ROOT_CA_ADDR=localhost
TLSDIR="$TDIR/tls"
NUMINTCAS=8
MAXENROLL=$((2*NUMINTCAS))
TIMEOUT=10
RC=0
function setup... | the_stack |
# Copyright 2014 Johns Hopkins University (Author: Daniel Povey)
# Apache 2.0
# Begin configuration.
stage=0 # This allows restarting after partway, when something when wrong.
feature_type=mfcc
online_cmvn_config=conf/online_cmvn.conf
add_pitch=false
pitch_config=conf/pitch.conf
pitch_process_config=conf/pitch_proces... | the_stack |
set -e
# Pass trap handlers to functions
set -E
# VT100 colors
declare -r RED=$'\e[31m'
declare -r GREEN=$'\e[32m'
declare -r YELLOW=$'\e[33m'
# shellcheck disable=SC2034
declare -r BLUE=$'\e[34m'
declare -r OFF=$'\e[0m'
declare -r BOLD=$'\e[1m'
declare -r tab_=$'\t'
declare -r nl_=$'\n'
# shellcheck disable... | the_stack |
set -o errexit
RESET=$'\e[0m'
BOLD=$'\e[1m'
RED=$'\e[31m'
BRED=$'\e[31;1m'
GREEN=$'\e[32m'
BGREEN=$'\e[32;1m'
YELLOW=$'\e[33m'
BYELLOW=$'\e[33;1m'
warn() {
echo -n $BRED >&2
echo "$@" >&2
echo $RESET >&2
}
die() {
warn "$@"
exit 1
}
echo
echo "${BGREEN}Loki-launcher to deb conversion script$RE... | the_stack |
# This script expects to be executed with the current working directory:
#
# kgtk/datasets/time-machine-20101201
source common.sh
# ==============================================================================
# Extract the property datatypes.
echo -e "\nExtract the property datatypes from the edge file."
kgtk ${KGTK... | the_stack |
######################################################################
#
# UNESCJ.SH
# A Unicode Escape Sequence Decoder for JSON
#
# === What is This? ===
# * This command converts Unicode escape sequence strings to UTF-8.
# * But the command is a converter not for original JSONs but for
# beforehand extracted str... | the_stack |
# print out debug info
# set X for Debug,
# DEBUG=X
# GPFS path and exes
GPFSINST=/usr/lpp/mmfs
GPFSBIN=$GPFSINST/bin
GPFSSNAP=$GPFSBIN/mmcrsnapshot
GPFSVFY=$GPFSBIN/mmlssnapshot
GPFSDEL=$GPFSBIN/mmdelsnapshot
GPFSREST=$GPFSBIN/mmrestorefs
GPFSMOUNT=$GPFSBIN/mmmount
GPFSUMOUNT=$GPFSBIN/mmumount
# Log file
LOGPREFIX=... | the_stack |
_convertToUnixTimestamp_() {
# DESC:
# Convert date string to unix timestamp
# ARGS:
# $1 (Required) - Date to be converted
# OUTS:
# 0 If successful
# 1 If failed to convert
# stdout: timestamp for specified date/time
# USAGE:
# printf "%s\n" "$(_conv... | the_stack |
# return 1 if the given string contains at least 1 space, 0 otherwise.
function _string_contains_spaces {
[[ "$1" != "${1%[[:space:]]*}" ]] && return 0 || return 1
}
# show help to the user
function _show_usage() {
_print_empty_line
_print_newline_message "\033[1;31md \033[0m - push"
_print_newline_message "\0... | the_stack |
# input file
DEMOSTATUS=demo-status.txt
# variables we use
SITE=
URL=
RATING=
COMMENTS=
ROW=
ROWS=
# the final result: pass (0) if all test sites have rating >= 2, otherwise fail (RESULT=1)
RESULT=0
# icons
IMG_OK=http://www.mono-project.com/files/2/22/Accept.png
IMG_STAR=http://www.mono-project.com/files/2/2e/Star.p... | the_stack |
# "execute do_combine.sh after executing this script"
# b0:t - transparent, b1:h - common height, b2:m - monospace+common height
# f - full font (32-255), r - reduced char set (32-127), n - numeric (32, 42-58)
# 2*128 = 256
# 3*128 = 384
# 4*128 = 512
# 5*128 = 640
# 6*128 = 768
# 7*128 = 896
# 8*128 = 1024
# 67*128 ... | the_stack |
# Utility script to pre-process and compile topology sources into topology test
# binaries. Currently supports simple PCM <-> component <-> SSP style tests
# using simple_test()
# Remove possible old topologies
rm -f test-*.conf test-*.tplg
# fail immediately on any errors
set -e
# M4 preprocessor flags
export M4PAT... | the_stack |
HOME=$(cd ${0%/*/*} && echo ${PWD%/*})
export PATH=$PATH`$HOME/bin/util/cr-situate-paths.sh`
export CLASSPATH=$CLASSPATH`$HOME/bin/util/cr-situate-classpaths.sh`
CSV2RDF4LOD_HOME=${CSV2RDF4LOD_HOME:?$HOME}
# cr:data-root cr:source cr:directory-of-datasets cr:dataset cr:directory-of-versions cr:conversion-cockpit
ACCEP... | the_stack |
usage_message="usage: `basename $0` [-I] [--repeat a.prov.ttl] [url [-F \"a=b\"]* [-n name] [-e extension]] [url [-F \"a=b\"]* [-n name] [-e extension]]*" #todo: [-from a.prov] "
if [ $# -lt 1 ]; then
echo $usage_message
echo " -I : do not download file; just obtain HTTP header information (c.f. cur... | the_stack |
function initialize {
CMAKE_BUILD_DIR="../../cmake_build"
BINARIES="${CMAKE_BUILD_DIR}/bin/x64/${MODE}"
IO_BINARIES="${BINARIES}/CorePlugins"
PACKAGE="${BINARIES}/${TARGET}.app"
PLUGINS="${PACKAGE}/Contents/CorePlugins"
APPLICATION_DIR="${PACKAGE}/Contents/MacOS"
FRAMEWORKS="${PACKAGE}/Contents/Frameworks... | the_stack |
set -eu
cur=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source $cur/../_utils/test_prepare
WORK_DIR=$TEST_DIR/$TEST_NAME
source $cur/../_utils/shardddl_lib.sh
function DM_036_CASE() {
run_sql_source1 "alter table ${shardddl1}.${tb1} add column new_col1 int first;"
run_sql_source1 "insert into ${shardddl1}.${tb1} ... | the_stack |
# Copyright 2015 Insight Data Science
#
# 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 ... | the_stack |
# set -x
set -e
shopt -s expand_aliases
#######################################
# Writes usage message
#######################################
function usage {
echo "usage: $programname [-l] "
echo " -l Skips all cluster creation steps and executes tests against currently connected cluster."
exit 1
}
... | the_stack |
# posix compliant
# verified by https://www.shellcheck.net
set -e
! "${SHELL:-/bin/sh}" -c 'set -o pipefail' >/dev/null 2>&1 || set -o pipefail
usage() {
cat <<EOF 1>&2
usage: ${0} PLATFORM
Creates a new Cross-cloud provider for the specified PLATFORM.
EOF
}
[ "${#}" -ge "1" ] || { echo "PLATFORM is required" 1>... | the_stack |
ScriptPath=""
Src3proxyDirPath=""
ScriptName=""
ScriptFullName=""
SourceRoot=""
ResourcesData=""
ProxyVersion=""
LasestProxyVersion=""
LasestProxyVersionLink=""
UseSudo=0
PacketFiles=""
NeedSourceUpdate=0
main()
{
local msgNewVersion
local msgInsertYorN
VarsInit
LoadResources
CheckRunConditions
if [ $Use... | the_stack |
set -e
usage() { echo "Usage: $(basename $0) [-t <oss/ent>] [-v <version>] [-p <package type>] <-a [amd64/x86_64]|[386/i386]|arm|arm64> <-r fips> <-s tarball source dir> <-m tsh>" 1>&2; exit 1; }
while getopts ":t:v:p:a:r:s:m:" o; do
case "${o}" in
t)
t=${OPTARG}
if [[ ${t} != "oss"... | the_stack |
setup() {
# Create test namespaces
sudo ip netns add NorthNS
sudo ip netns add SouthNS
# Connect the namespaces using a veth pair
sudo ip link add name vethSouth type veth peer name vethNorth
sudo ip link set netns NorthNS dev vethNorth
sudo ip link set netns SouthNS dev vethSouth
# Con... | the_stack |
#
# Formula to calculate size of a single hash entry:
# HEADER_SIZE + key_length + ROUND_UP_8(key_length) + value_length
#
# HEADER_SIZE is a constant = 56
# ROUND_UP_8 rounds up key_length to the next 8 byte boundary
#
# IMPORTANT: always add 8 in mind since the benchmark uses a 'long' in the key
#
# Example:
# k... | the_stack |
set -o xtrace
###############################################################################
#
# This script will install and setting for the Kubernetes Cluster on Ubuntu.
# It's confirmed operation on Ubuntu of below.
#
# * OS type : Ubuntu(64 bit)
# * OS version : 20.04 LTS
# * OS architecture ... | the_stack |
_mk_build_lpp()
{
# $1 = output directory
# $2 = package version
# $3 = lpp directory
# ... = subpackages
LPP_OUTPUT="$1"
LPP_VER="$2"
LPP_DIR="$3"
LPP_NAME="${LPP_OUTPUT#$MK_PACKAGE_LPP_DIR/}"
LPP_NAMEDOT=`echo "$LPP_NAME" | tr '-' '.'`
shift 3
mk_msg_domain "lpp"
mk... | the_stack |
set -x
log=benchmark-$(date +"%Y%m%d%H%M%S").log
logInfo() {
time=`date +"%Y/%m/%d %H:%M:%S"`
echo "${time} $1" >> ${log}
}
benchmarkPidList=()
startTask() {
task="$1"
logInfo "${tendisVersionLongFormat} task begin: ${task}"
resultPath="$2"
logInfo "${task} resultPath: ${resultPath}"
mkdi... | the_stack |
################################################################################
# Copyright EnterpriseDB Cooperation
# 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 sour... | the_stack |
## 本脚本搬运并模仿 liuqitoday
dir_config=/ql/config
dir_script=/ql/scripts
dir_repo=/ql/repo
config_shell_path=$dir_config/config.sh
extra_shell_path=$dir_config/extra.sh
code_shell_path=$dir_config/code.sh
task_before_shell_path=$dir_config/task_before.sh
bot_json=$dir_config/bot.json
# 控制是否执行变量
read -p "是否执行全部操作,输入 1 即可执行... | the_stack |
function _zulu_init_usage() {
builtin echo $(_zulu_color yellow "Usage:")
builtin echo " zulu init [options]"
builtin echo
builtin echo $(_zulu_color yellow "Options:")
builtin echo " -c, --check-for-update Check for updates on startup"
builtin echo " -h, --help Output this help text and ... | the_stack |
load environment
load "$_GO_CORE_DIR/lib/portability"
# By default, the test will try to clone its own repo to avoid flakiness due to
# an external dependency. However, doing so causes a failure on Travis, since it
# uses shallow clones to produce test runs, resulting in the error:
#
# fatal: attempt to fetch/clone ... | the_stack |
#### Description: Wrapper script to split any given assembly. Note that this split is ignorant of the chromosome number and is simply a version of a mismatch detector at a pretty large scale. To control what is going on one might want to check if the number of mismatches pre to post-polish has decreased (currently disa... | the_stack |
clear
exec_type=""
build_arc="x64"
ver=0.4.1
keep_dist="false"
version=s"$ver"
simple_debug_version=$version-debug
fulltick_build_issue="<https://github.com/simple-lang/simple/issues/16>"
arc_var=-m64
arc=32
operating_system="linux_x64"
cpu_arc="x64"
execute_build() {
local standalone_flag="none"
for param in "$@"... | the_stack |
## NOTE:
## This script requires the following in /etc/hosts:
## 127.0.0.2 puppet master1.example.org
# This will fail with a stock puppet 3.1.1, but will succeed if all of the
# certificate subjects contain only the "CN" portion, and no O, OU, or
# emailAddress.
# basic config to describe the environment
# B="/tmp... | the_stack |
RDIR=$(dirname $(readlink -f "$0"))
# 此为原作者维护的 OSS,这里作为数据源更新本地数据。
# 所有的资源都来自于原作者 https://github.com/SilveryStar 的辛苦创作。
# 脚本假定数据源不可信,所有的请求都不会依赖于某次请求的结果。
# {
API='https://adachi-bot.oss-cn-beijing.aliyuncs.com'
# }
# 此本项目的资源文件,将会覆盖同名的原作者资源文件
# {
CUSTOM_RES=$(readlink -f "${RDIR}/../resources_custom/")
# }
CURL=('curl' '-... | the_stack |
################################################################################################
## PLEASE DISABLE DEV OMNI FOR THESE TESTS!!! ##
## ##
## The fee distribution tests... | the_stack |
set -o errexit
set -o nounset
set -o pipefail
set -o errtrace
CRIPROXY_DEB_URL="${CRIPROXY_DEB_URL:-https://github.com/Mirantis/criproxy/releases/download/v0.14.0/criproxy-nodeps_0.14.0_amd64.deb}"
VIRTLET_IMAGE="${VIRTLET_IMAGE:-mirantis/virtlet}"
VIRTLET_SKIP_RSYNC="${VIRTLET_SKIP_RSYNC:-}"
VIRTLET_SKIP_VENDOR="${VI... | the_stack |
# Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey).
# 2013 Xiaohui Zhang
# 2013 Guoguo Chen
# 2014 Vimal Manohar
# 2014 Vijayaditya Peddinti
# Apache 2.0.
# train_multilang2.sh is for multi-language training of neural nets. It
# takes multiple egs dire... | the_stack |
#Setup libguestfs environmen for non-x86_64 machine
function setup_libguestfs_env() {
local host_arch=`uname -p`
if [[ ${host_arch} != "x86_64" ]];then
export SUPERMIN_KERNEL_VERSION=`uname -r`
if [[ -f "/boot/Image-${SUPERMIN_KERNEL_VERSION}" ]];then
export SUPERMIN_... | the_stack |
# TODO:
# * Fix channel restrictions (WCHAN)
# * Implement a stop running attack feature
# * Implement an eval function - everything after ! would be executed as a system command
# * Implement output coloring
# * Make the 'quit' option clearer by changing its name with back or menu whenever needed
# enable stricter pr... | the_stack |
instancetype=$(/sbin/virt-what)
centosver=$(cat /etc/centos-release | awk -F'[^0-9]*' '{print $2}')
retval=0
function execcmd()
{
eval $cmd && [[ $? -ne 0 ]] && echo "$cmd" && retval=1
}
function randompw()
{
PASSWD=""
PASSWD=`openssl rand -base64 32`
}
# +---------------------------------------------------+
# ... | the_stack |
set -euo pipefail
USAGE=$'
Example usage:
inference_deepvariant.sh --model_preset "WGS" --docker_build true --use_gpu true
Flags:
--docker_build (true|false) Whether to build docker image. (default: false)
--dry_run (true|false) If true, print out the main commands instead of running. (default: false)
--use_gpu (t... | the_stack |
# usage
usage() {
cat <<USG
Usage: bash \$0 [OPTIONS]
OPTIONS:
-s|--nats-server NATS server hostname/ip-address
-d|--redis-server REDIS server hostname/ip-address
-c|--cubesat-count Number of cubesats
Recommended between 1 and 5
-g|--ground-count Number of ground stations
... | the_stack |
export KSROOT=/jffs/koolshare
source $KSROOT/scripts/base.sh
source $KSROOT/bin/helper.sh
eval `dbus export ss`
alias echo_date='echo 【$(date +%Y年%m月%d日\ %X)】:'
DNS_PORT=7913
CONFIG_FILE=$KSROOT/ss/ss.json
game_on=`dbus list ss_acl_mode|cut -d "=" -f 2 | grep 3`
[ -n "$game_on" ] || [ "$ss_basic_mode" == "3" ] && mangl... | the_stack |
pkgname=gcc
_pkgbase=10.3.1
pkgver=10.3.1_git20210424
[ "$BOOTSTRAP" = "nolibc" ] && pkgname="gcc-pass2"
[ "$CBUILD" != "$CHOST" ] && _cross="-$CARCH" || _cross=""
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
pkgname="$pkgname$_target"
pkgrel=2
pkgdesc="The GNU Compiler Collection"
url="https:/... | the_stack |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#=================================================
# System Required: CentOS 7/8,Debian/ubuntu,oraclelinux
# bash <(curl -sL git.io/cg_bbr)
# Description: BBR+BBRplus+Lotserver
# Version: 1.3.2.71
# Author: 千影,cx9208,YLX
# 更新内容及反馈: h... | the_stack |
#
# workloads/kubernetes.sh
#
start_args="$@"
. workloads/wl-init.sh
#
# Kubernetes Config options
#
help_options["--deployment-name=<String>"]="Deployment name to hold all the nodes"
help_options["--deployment-os=<String>"]="Deployment OS: centos7 default"
help_options["--teardown"]="Turn down deployment"
help_opti... | the_stack |
export TPU_NAME=...
export PROJECT=...
export ZONE=...
export BUCKET=...
PRETRAINED_STEPS=1000000
FINETUNE_STEPS=20000
declare -a sizes=("11B" "small")
declare -a tasks=("google_answers_short_answers_v6_size_2000" "google_answers_short_answers_v6_size_20000" "google_answers_short_answers_v6_size_200000")
for SIZE in ... | the_stack |
# Make a data directory in ephemeral stoage
sudo mkdir -p /mnt/tmp
sudo chown ubuntu /mnt/tmp
# Grab the 2007 ACS 1 year
cd /mnt/tmp
mkdir -p acs2007_1yr
cd acs2007_1yr
sudo apt-get -y install unzip aria2
aria2c --dir=/mnt/tmp/acs2007_1yr --max-connection-per-server=5 --force-sequential=true \
"http://www2.census.... | the_stack |
# WARNING:
# - If you're not sure what the script does, please do not use it directly on the network. Incorrect implementation may cause you to create an adversarial fork and (correctly) report you accordingly on some community sites
# DISCLAIMER:
# - The script works for a specific 1-pool with 2-nodes scenario. It is... | the_stack |
GETHATTACHPOINT=`grep IPCFILE settings.txt | sed "s/^.*=//"`
PASSWORD=`grep PASSWORD settings.txt | sed "s/^.*=//"`
OTHEROUTPUTFILE=`grep OTHEROUTPUTFILE settings.txt | sed "s/^.*=//"`
OTHERRESULTFILE=`grep OTHERRESULTFILE settings.txt | sed "s/^.*=//"`
TOKENDATAFILE=`grep TOKENDATA settings.txt | sed "s/^.*=//"`
TOK... | the_stack |
# This is the bootstrap Unix installer served by `https://get.volta.sh`.
# Its responsibility is to query the system to determine what OS (and in the
# case of Linux, what OpenSSL version) the system has, fetch and install the
# appropriate build of Volta, and modify the user's profile.
# NOTE: to use an internal comp... | the_stack |
# Helper functions for use in other libexec/ core setup files
# Allow overriding the date function for unit testing.
function bdutil_date() {
date "$@"
}
# Simple wrapper around "echo" so that it's easy to add log messages with a
# date/time prefix.
function loginfo() {
echo "$(bdutil_date): ${@}"
}
# Simple wra... | the_stack |
# ----------------------------------------------------------------------------
# (C) Copyright IBM Corp. 2020, 2021
#
# SPDX-License-Identifier: Apache-2.0
# ----------------------------------------------------------------------------
set -e -o pipefail
# When debugging -x is an accepted practice, when not debugging,... | the_stack |
#======================================
# Helper functions
#--------------------------------------
fatal() {
echo "$0: Error: $*" >&2; exit 1
}
xsed() {
local file=${1}
local temp='temp' # path to a temporaty file
shift
[ -f "${file}" ] || fatal "${file}: No such file"
echo "*** Fixing ${file}"... | the_stack |
. ./cmd.sh
stage=1
train_stage=-10
use_gpu=true
. ./path.sh
. ./utils/parse_options.sh
if $use_gpu; then
if ! cuda-compiled; then
cat <<EOF && exit 1
This script is intended to be used with GPUs but you have not compiled Kaldi with CUDA
If you want to use GPUs (and have them), go to src/, and configure and mak... | the_stack |
version="0.004"
date="05/08/2015"
# ####### Options ####### #
# resultExt='png'
resultExt=''
resizeFilter='' # http://www.imagemagick.org/Usage/filter/
# resultDir='./sliceResult'
resultDir=''
# Selector fo slicer: A or B
scaleFromImage=true # Type of scaling: if true - scale calculates from image size to down (s... | the_stack |
cd "$(dirname "$0")"
if [ "$#" -ne 1 ]; then
echo "$0": usage: parseTVfilename.sh /path/to/file
exit 1
fi
#default values, see config.cfg
dbNameTV="../dbTV.json"
fetchTVmetadata=false
regexTV1="(.*)[ .][sS]([0-9]{1})[eE]([0-9]{2})[ .](.*)"
regexTV2="(.*)[ .][sS]([0-9]{2})[eE]([0-9]{2})[ .](.*)"
regexTV3="(.*)[.]([0-... | the_stack |
# Author: Nanxin Chen, Cheng-I Lai
# Pipeline for preprocessing + training + postprocessing neural speaker embeddings. This includes:
# step 0: create VoxCeleb1+2 data directories
# step 1: make FBanks + VADs (based on MFCCs) for clean data
# step 2: data augmentation
# step 3: make FBanks for noisy data
# step 4:... | the_stack |
# Copyright 2016-18 Vimal Manohar
# Apache 2.0
set -e
set -o pipefail
# This script demonstrates how to use out-of-domain WSJ models to segment long
# audio recordings of HUB4 with raw unaligned transcripts into short segments
# with aligned transcripts for training new ASR models.
# The overall procedure is as fo... | the_stack |
# a shorthand to zip column names and types with ':' and proper escapes for shell (types can have spaces!)
namesAndTypes() {
local TSVHeader=$1 Types=$2
paste <(tr '\t' '\n' <<<"$TSVHeader") <(tr '\t' '\n' <<<"$Types") |
tr '\t' : |
sed "s/^/'/g; s/\$/'/g"
}
############################################... | the_stack |
toHelp() {
echo "hello, world"
}
toRunPulseAudio() {
if [ $# -eq 1 ]; then
echo "start to init pulseaudio server"
docker ps | grep "deepin-wine" >/dev/null 2>&1
if [ $? -ne 0 ]; then
docker images | grep "pulseaudio-server_pulseaudio" >/dev/null 2>&1
if [ $? -eq ... | the_stack |
set -e
usage()
{
echo "Usage: $0 [BuildArch] [CodeName] [lldbx.y] [--skipunmount] --rootfsdir <directory>]"
echo "BuildArch can be: arm(default), armel, arm64, x86"
echo "CodeName - optional, Code name for Linux, can be: trusty, xenial(default), zesty, bionic, alpine, alpine3.9 or alpine3.13. If BuildArch ... | the_stack |
# Copyright Istio 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 law or agre... | the_stack |
set -o nounset
set -o errexit
readonly MY_DIR=$(cd `dirname ${BASH_SOURCE[0]}` && pwd)
source ${MY_DIR}/env.sh
declare arg_Unconsumed=()
declare arg_BuildScript=""
declare arg_CacheRoot=""
declare arg_CacheName=""
declare arg_CacheScenario=""
declare arg_RemoteTelemetry=""
declare arg_BuildxlBin=""
function parseA... | the_stack |
# Install cacti 0.8.7g on CentOS linux
# This shell will be auto install the following :
# 1) cacit 0.8.7g with :
# data_source_deactivate.patch
# graph_list_view.patch
# html_output.patch
# ldap_group_authenication.patch
# script_server_command_line_parse.patch
# ping.patch
# poller_interval.patch
# 2) p... | the_stack |
#echo Parsing command line arguments
numargs=$#
ADVANCED=false
HOSTNAME=`hostname`
CONFIRM=no
SHARED=false
i=1
USR=$USER
if test -z "$TEMP"
then
TEMP=/tmp
fi
IDENTITY=id_rsa
LOGFILE=$TEMP/sshUserSetup_`date +%F-%H-%M-%S`.log
VERIFY=false
EXHAUSTIVE_VERIFY=false
HELP=false
PASSPHRASE=no
RERUN_SSHKEYGEN=no
NO_PROMP... | the_stack |
# The copyright in this software is being made available under the BSD
# License, included below. This software may be subject to other third party
# and contributor rights, including patent rights, and no such rights are
# granted under this license.
#
# Copyright (c) 2010-2014, ITU/ISO/IEC
# All rights reserved.
#
... | the_stack |
ADE_SCRIPT_VERSION=1.0
function print_help()
{
cat << EOM
adeprereq.sh sets up key vault prerequisites for Azure Disk Encryption using Azure CLI
Usage
~~~~~
adeprereq.sh [options]
Options
~~~~~~~
-h, --help
Displays this help text.
--ade-prefix <prefix>
Optional - this naming prefix will be used when auto-ge... | the_stack |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
# 佰阅部落自制一键脚本合集
# 专注分享优质开源项目 博客地址:https://baiyue.one
# Youtube/B站地址:佰阅部落
# 设置字体颜色函数
function blue(){
echo -e "\033[34m\033[01m $1 \033[0m"
}
function green(){
echo -e "\033[32m\033[01m $1 \033[0m"
}
function greenbg(){
echo ... | the_stack |
script_name=$0
script_dir=$(cd `dirname ${script_name}` && pwd)
current_dir=${PWD}
log_file=${script_dir}/install.log
target=""
build_threads="8"
clean="off"
source ${script_dir}/../scripts/target.sh
check_getopt
print_help() {
cat <<EOF
Usage: ${script_name} [OPTION]...
Build third party library.
Mandatory arg... | the_stack |
if [[ ! -d art ]]; then
echo "Script needs to be run at the root of the android tree"
exit 1
fi
ALL_CONFIGS=(linux-ia32 linux-x64 linux-armv8 linux-armv7 android-armv8 android-armv7)
usage() {
local config
local golem_target
(cat << EOF
Usage: $(basename "${BASH_SOURCE[0]}") [--golem=<target>] --machine-... | the_stack |
# - make Nix store etc.
# - copy closure of Nix to target device
# - register validity
# - with a chroot to the target device:
# * nix-env -p /nix/var/nix/profiles/system -i <nix-expr for the configuration>
# * install the boot loader
# Ensure a consistent umask.
umask 0022
# Create FHS for Triton relative to mou... | the_stack |
STARTTIMEID=$(date +%s)
ENFORCEDSTOP="180" # in minutes, default is 180 minutes, 3 hours
# gcloud vars
NAME="gitiantmp-$STARTTIMEID"
IMAGE="gitian-debian10" # ubuntu-minimal-1804-bionic-v20191217
DISKSIZE="60" # In GB
IMAGEFAMILY="debian-10"
IMAGEPROJECT="debian-cloud"
ZONE="europe-west1-b"
CUSTOMCPU="6"
CUSTOMMEMORY... | the_stack |
readonly _KUBLER_HISTORY_NS_TYPE="${KUBLER_DATA_DIR}"/.ask_history_ns_type
readonly _KUBLER_HISTORY_NS_DIR="${KUBLER_DATA_DIR}"/.ask_history_ns_dir
readonly _KUBLER_HISTORY_IMAGE_TAG="${KUBLER_DATA_DIR}"/.ask_history_image_tag
readonly _KUBLER_HISTORY_BUILDER_IMAGE="${KUBLER_DATA_DIR}"/.ask_history_builder_image
reado... | the_stack |
##############################################################################################################################################################
#
# This script is meant to be run on the outputs of binning.sh pipeline to analyze the metagenomic bins and arrive at the best possible putative genomes.
#
# A... | the_stack |
# A set of function shared by the 'build-host-xxxx.sh' scripts.
# They are mostly related to building host libraries.
#
# NOTE: This script uses various prefixes:
#
# BH_ Used for public macros
# bh_ Use for public functions
#
# _BH_ Used for private macros
# _bh_ Used for private func... | the_stack |
. ./test-pre.sh
$ECHO "$BLUE[*] Testing: llvm_mode, afl-showmap, afl-fuzz, afl-cmin and afl-tmin"
test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
../afl-clang-fast -o test-instr.plain ../test-instr.c > /dev/null 2>&1
AFL_HARDEN=1 ../afl-clang-fast -o test-compcov.harden test-compcov.c > /dev/null 2>... | the_stack |
options='h?vcpd'
usage="
nuget_pack_apple.sh [-${options}]
Builds macOS and iOS targets and packages the results into a form usable for NuGet
imports, for use in local sideloading/debugging/validation by NuGet consumers.
Based on the Azure Pipeline defined in .ado/templates/apple-nuget-publish.yml,
with which this sc... | the_stack |
#3> <> prov:wasDerivedFrom [ rdfs:label "droid-binary-6.1-bin/droid.sh" ] .
#
# droid's shell script seems to demand that it be invoked from within the directory
# that the script exists (and the libraries are relative to lib/).
# This constraint isn't suitable when we are working within a data directory
# and simply ... | the_stack |
#-------------------------------------------------------------------------
# generates an xsl stylesheet containing a template for special
# cases in the book:
# - If the version does not begin with a number, it is impossible to know
# where the package name ends and where the version begins. We therefore
# use ... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.