text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
# set project root, if in a git repo resolve top level dir
PROJECT_ROOT=${PROJECT_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null)}
PROJECT_ROOT=${PROJECT_ROOT:-$(dirname $(dirname $(dirname $(readlink -f "$0"))))}
# import shared library functions
. ${PROJECT_ROOT}/HA/shared_lib.sh
# node configuration settings
ex... | the_stack |
####################################################################################################
# Name: Autodesk Fusion 360 - Setup Wizard (Linux) #
# Description: This is the French translation for the Setup Wizard. #
# Author: St... | the_stack |
localhost_name="$1"
if [ -z "$localhost_name" ] ; then localhost_name="localhost" ; fi
nfs_svc="nfs"
(find /usr/lib/systemd/system | grep nfs-server) && nfs_svc="nfs-server"
# xattrs must be set to zero if using tmpfs, since tmpfs doesn't support xattrs
testdir="${TMPDIR:-/var/tmp}/smf"
xattrs=0
if [ -d $testdir ] ;... | the_stack |
# Copyright 2020 The OpenYurt 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 |
. ./cmd.sh
. ./path.sh
set -e
mfccdir=`pwd`/mfcc
vaddir=`pwd`/mfcc
voxceleb1_root=/export/corpora/VoxCeleb1
voxceleb2_root=/export/corpora/VoxCeleb2
dihard_2018_dev=/export/corpora/LDC/LDC2018E31
dihard_2018_eval=/export/corpora/LDC/LDC2018E32v1.1
num_components=2048
ivector_dim=400
ivec_dir=exp/extractor_c${num_compo... | the_stack |
# Settings
###############################################################################
node_list=(2 4)
ppn_list=(1 2)
test_list="test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 test11 test12 test13"
# Declarations
###############################################################################
prefix... | the_stack |
audit_system_accounting () {
if [ "$os_name" = "Linux" ] || [ "$os_name" = "SunOS" ] || [ "$os_name" = "FreeBSD" ] || [ "$os_name" = "AIX" ]; then
verbose_message "System Accounting"
if [ "$os_name" = "AIX" ]; then
check_dir="/var/adm/sa"
check_file_perms $check_dir 0755 adm adm
check_dir="/... | the_stack |
SCRIPT_NAME=$(basename "$0")
Usage="Usage: ./${SCRIPT_NAME} --bam_fn=BAM --ref_fn=REF --output=OUTPUT_DIR --threads=THREADS --platform=PLATFORM --model_path=MODEL_PREFIX [--bed_fn=BED] [options]"
# INFO: whole calling workflow of clair3
set -e
ARGS=`getopt -o b:f:t:m:p:o:r::c::s::h::g \
-l bam_fn:,ref_fn:,threads:,mod... | the_stack |
fwGroupNets4="Nets4-BlackList"
fwGroupNets6="Nets6-BlackList"
#
# Persistent data location (directory)
dirUserData="/config/user-data"
#
# Locally-defined blacklist, in above persistent location (file, optional)
fnLocalBlackList="LocalBlackList.txt"
#
# Locally-defined whitelist, in above persistent location (file, opt... | the_stack |
{
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
source ${SCRIPT_DIR}/../rapidstream_setup.sh
# read arguments from command line
POSITIONAL=()
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
--run-dir)
RUN_DIR=$(readlink -f "$2")
shift # past argument
shift... | the_stack |
# squad data
cd /ceph4/bangliu/FQG/src/model/FactorizedQG/
input_path="../../../../Datasets/original/SQuAD2.0/"
output_path="../../../../Datasets/processed/SQuAD2.0/"
data_type="squad"
data_file_prefix="train"
st_idx=0
ed_idx=50000
CUDA_VISIBLE_DEVICES=1 python3 DA_main.py \
--da_task sentences2augmented_senten... | the_stack |
#####################################################################################
# ADS-B RECEIVER #
#####################################################################################
# ... | the_stack |
get_all_window_ids() {
previous_windows=$current_windows
read current_window_properties current_windows windows_per_desktop <<< \
$(wmctrl -lG | awk '\
$1 == "'$current_window_id'" { p = $3 - '$x_border' "_" $4 - '$y_border' "_" $5 "_" $6 }
$NF !~ "^(DROPDOWN|input)" {
wpda[$2]++
awi = awi "|" $1
}... | the_stack |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | the_stack |
function get_lis_version ()
{
lis_version=`modinfo hv_vmbus | grep "^version:"| awk '{print $2}'`
if [ "$lis_version" == "" ]
then
lis_version="Default_LIS"
fi
echo $lis_version
}
function get_host_version ()
{
dmesg | grep "Host Build" | sed "s/.*Host Build://"| awk '{print $1}'| sed ... | the_stack |
# © 2018, Jibran Shaikh (https://github.com/js-d-coder/todo.sh), MIT License
# Keep track of your daily tasks, todo, reminders.
# USAGE:
# `OPERATION TASK [on date]'
# OPERATION can be add/delete/edit/view.
# TASK can be name of your tasks, todo, reminders.
# `on date' is optional; it adds TASK for the date given.
# ... | the_stack |
# Copyright 2014 Yajie Miao Carnegie Mellon University Apache 2.0
# This script trains tandem systems using bottleneck features (BNFs). The
# BNF network is trained over fMLLR features. It is to be run after run.sh.
# Before running this, you should already build the initial GMM model. This
# script requires... | the_stack |
bold=$(tput bold)
normal=$(tput sgr0)
#------------------------------------------------------------------------------
# SETTINGS
#------------------------------------------------------------------------------
# Important: CDK global version number
cdk_version=1.113.0 # Note: should match package.json
template_format="j... | the_stack |
source "$NCTL"/sh/utils/main.sh
source "$NCTL"/sh/views/utils.sh
source "$NCTL"/sh/node/svc_"$NCTL_DAEMON_TYPE".sh
# Trapping exit so we can remove the temp file used in ci run
trap clean_up EXIT
function clean_up() {
local EXIT_CODE=$?
local STDOUT
local STDERR
# Removes DEPLOY_LOG for ITST06/07
... | the_stack |
# Copyright 2020 Nagoya University (Wen-Chin Huang)
# 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
stop_stage=100
ngpu=1 # number of gpus ("0" uses cpu, otherwise use gpu)
nj=16 # numebr of parallel... | the_stack |
load environment
ASSERTION_SOURCE="$_GO_CORE_DIR/tests/assertion-test-helpers.bash"
load "$_GO_CORE_DIR/lib/bats/assertion-test-helpers"
EXPECT_ASSERTION_TEST_SCRIPT="run-expect-assertion.bats"
EXPECTED_TEST_SCRIPT_FAILURE_MESSAGE=
setup() {
test_filter
export ASSERTION=
printf -v 'EXPECTED_TEST_SCRIPT_FAILURE... | the_stack |
# exit script when commands fail
set -e
# kill background process when script closes
trap "killall background" EXIT
# ================================================
# Constants
MINA_EXE=_build/default/src/app/cli/src/mina.exe
ARCHIVE_EXE=_build/default/src/app/archive/archive.exe
LOGPROC_EXE=_build/default/src/app/... | the_stack |
#TEST: Test kaspcheck with different input files - some good, some bad
#TEST: This test case only runs kaspcheck, it does not run ods.
ods_reset_env &&
# 1) Test with a good set of xml files
log_this ods-kaspcheck-run-good ods-kaspcheck -c kaspcheck_good/conf.xml &&
log_grep ods-kaspcheck-run-good stdout "INFO: The X... | the_stack |
# This script converts binary files (u-boot.bin) into so called
# bootstrap records that are accepted by Motorola's MC9328MX1/L
# (a.k.a. DragaonBall i.MX) in "Bootstrap Mode"
#
# The code for the SynchFlash programming routines is taken from
# Bootloader\Bin\SyncFlash\programBoot_b.txt contained in
# Motorolas LINUX_... | the_stack |
IP4="ip -4"
IP6="ip -6"
IPS="ipset"
IPT4="iptables -t mangle -w"
IPT6="ip6tables -t mangle -w"
LOG="logger -t mwan3[$$] -p"
CONNTRACK_FILE="/proc/net/nf_conntrack"
MWAN3_STATUS_DIR="/var/run/mwan3track"
# mwan3's MARKing mask (at least 3 bits should be set)
if [ -e "${MWAN3_STATUS_DIR}/mmx_mask" ]; then
MMX_MASK=$(c... | the_stack |
lokl_log() {
timestamp="$(date '+%H:%M:%S')"
echo "$timestamp: $1" >> /tmp/lokldebuglog
}
set_docker_tag() {
# shellcheck disable=SC2154
if [ "$lokl_php_ver" ]; then
echo "$lokl_php_ver-$LOKL_RELEASE_VERSION"
else
echo "php8-$LOKL_RELEASE_VERSION"
fi
}
set_site_name() {
# shellcheck disable=SC2... | the_stack |
DATA_DIR=/data
USER=${USER:-dockside}
APP=${APP:-dockside}
APP_HOME=${APP_HOME:-/home/newsnow}
APP_DIR=$APP_HOME/$APP
OPT_SSL_ZONES=()
OPT_PATH="/opt/dockside"
. $APP_DIR/app/scripts/includes/log_do
jq_config_set() {
if jq "$@" $DATA_DIR/config/config.json >/tmp/config.json; then
mv /tmp/config.json $DATA_DIR/... | the_stack |
# Copyright 2015 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | the_stack |
set -eu
SCRIPT_DIR=$(dirname "$0")
case $SCRIPT_DIR in
"/"*)
;;
".")
SCRIPT_DIR=$(pwd)
;;
*)
SCRIPT_DIR=$(pwd)/$(dirname "$0")
;;
esac
GDAL_ROOT=$SCRIPT_DIR/..
if test -f port/cpl_config.h; then
CPL_CONFIG_H=$PWD/port/cpl_config.h
elif test -f generated_headers/cp... | the_stack |
function mkd { [[ -d $1 ]] || mkdir -p "$1"; }
## @fn make/canvas.emoji/get-emoji-data [emoji_version]
## @var[out] emoji_data
## @var[out] emoji_cache_file
function make/canvas.emoji/get-emoji-data {
#local unicode_version=$(wget https://unicode.org/Public/emoji/ -O - | grep -Eo 'href="[0-9]+\.[0-9]+/"' | sed '... | the_stack |
UNIT_HTTP=""
IS_PARA=false
source ../dapp-test-common.sh
paracross_GetBlock2MainInfo() {
chain33_Http '{"method":"Chain33.Query","params":[{ "execer":"paracross", "funcName": "GetBlock2MainInfo", "payload" : {"start":1,"end":3}}]}' ${UNIT_HTTP} '(.result.items[1].height == "2")' "$FUNCNAME"
}
function paracross_... | 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 {} +
rm -R -f work/*
mkdir work/kat/
rm -R -f /tmp/%FIFO_DIR%/
mkdir -p /tmp/%FIFO_DIR%/fifo/
mkdir wo... | the_stack |
# Linux commands ---------------------------------------------------------------
ECHO="$(which echo)"
CRUDINI="$(which crudini)"
FIND="$(which find)"
TAR="$(which tar)"
GZIP="$(which gzip)"
DATE="$(which date)"
CHMOD="$(which chmod)"
MKDIR="$(which mkdir)"
RM="$(which rm)"
TEE="$(which tee)"
WC="$(which wc)"
SORT="$(wh... | the_stack |
set -e
echo "This will update test files using the current version of BLAST+"
if [ -f "tools/ncbi_blast_plus/update_test_files.sh" ]
then
echo "Good, in the expected directory"
else
echo "ERROR. Run this from the GitHub repository root directory."
exit 1
fi
cd test-data
export EXT="6 std sallseqid score nident posit... | the_stack |
. "$(dirname "${BASH_SOURCE[0]}")"/dummy
testsuite_selfaccesses()
{
# now bastion key stuff
# create 10 accounts with no keys and with default uids
grant accountCreate
for i in {1..10}; do
success a0_create_a1_uidauto_nokey_$i $a0 --osh accountCreate --account delme$i --uid-auto --no-key
... | the_stack |
if [ "$#" -ne 1 ]; then
BIN="yubihsm-shell"
else
BIN=$1 # path to the yubico-piv-tool command line tool
fi
if [ -e yubihsm-shell_test_dir ];
then
rm -rf yubihsm-shell_test_dir
fi
mkdir yubihsm-shell_test_dir; cd yubihsm-shell_test_dir
echo test signing data > data.txt
set -e
set -x
echo "----------------------... | the_stack |
EAPI=7
inherit desktop libtool qmake-utils systemd
MY_PV=${PV/_beta/-b}
MY_P=${PN}-${MY_PV}
DESCRIPTION="Featureful client/server network backup suite"
HOMEPAGE="https://www.bacula.org/"
SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="amd64 ppc ~sparc x86"
IUSE="acl bacula-c... | the_stack |
###################################
### FUNCTIONS ###
###################################
#############################################################
#----------------------------#
chapter4_Makefiles() { #
#----------------------------#
echo "${tab_}${GREEN}Processing... ${L_arrow}Chapter4 ( SETU... | the_stack |
PATH=./bin:$PATH
if [ $VALGRIND_TEST_ON -eq 1 ]; then
VALGRIND="valgrind --error-exitcode=42 --leak-check=full"
else
VALGRIND=""
fi
## 2D
echo "test 1"
$VALGRIND pairix -f -s2 -d6 -b3 -e3 -u7 samples/old_index/merged_nodup.tab.chrblock_sorted.txt.gz
$VALGRIND pairix samples/old_index/merged_nodup.tab.chrblock_sor... | the_stack |
###############################################################################################################
# users can change this to their default directory that will overwrite command line options
###############################################################################################################
#DEF... | the_stack |
################################################################################################
### SITE INSTALLER
#
# This script is used to install the submitty site code from ${SUBMITTY_REPOSITORY}/site to
# ${SUBMITTY_INSTALL_DIR}/site. It then deals with composer and npm dependencies, and finally
# sets permissio... | the_stack |
# All scripts should die on error unless commands are specifically excepted
# by prefixing with '!' or surrounded by 'set +e' / 'set -e'.
# The number of jobs to pass to tools that can run in parallel (such as make
# and dpkg-buildpackage
if [[ -z ${NUM_JOBS} ]]; then
NUM_JOBS=$(grep -c "^processor" /proc/cpuinfo)
f... | the_stack |
set -eo pipefail
shopt -s nullglob
if [[ "${ENTRYPOINT_DEBUG_ENABLED}" = "true" ]]; then set -x; fi
# Local initialization
INIT_FILE=/usr/local/share/ignition/data/init.properties
XML_FILE=${IGNITION_INSTALL_LOCATION}/data/gateway.xml_clean
CMD=( "$@" )
BASE_WRAPPER_OPTIONS=(
"wrapper.console.loglevel=NONE"
"... | the_stack |
if [ $0 != "-bash" ] ; then
pushd `dirname "$0"` 2>&1 > /dev/null
fi
CB_DOCKER_BASE_DIR=$(pwd)
if [ $0 != "-bash" ] ; then
popd 2>&1 > /dev/null
fi
CB_REPO=${CB_REPO:-"ibmcb/"}
CB_WKS="ALL"
CB_RSYNC_ADDR=$(sudo ifconfig docker0 | grep "inet " | awk '{ print $2 }' | sed 's/addr://g')
for pi in $(sudo netstat -p... | the_stack |
load $BATS_TEST_DIRNAME/helper/common.bash
setup() {
setup_common
dolt sql <<SQL
CREATE TABLE test1 (
pk int NOT NULL,
c1 int,
c2 int,
PRIMARY KEY (pk)
);
CREATE TABLE test2 (
pk int NOT NULL,
c1 int,
c2 int,
PRIMARY KEY (pk)
);
SQL
dolt add .
dolt commit -m "added tables"
}
teardown(... | the_stack |
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Only in standalone mode, import the basic install script.
if [[ "${BASH_SOURCE[0]}" -ef "$0" ]]; then
source "${BASE_DIR}/../common-libs/nodejs-common/bin/install_functions.sh"
fi
# Solution name.
SOLUTION_NAME="tentacles"
# Project namespace will be used ... | the_stack |
# This script demonstrates a number of security-related settings
# that you might want to configure on your organisation's devices.
# We recommend that you develop your own provisioning process
# which might include some of the commands in this file, or might
# use an entirely different mechanism for enforcement (e.g.... | the_stack |
assert_docker_img_exists() {
docker="docker"
[ "$#" -ge "1" ] && docker_img="$1"
[ "$#" -ge "2" ] && docker="$2"
[ -z "${docker_img}" ] && logfatal "assert_docker_img_exists: one or two argument(s) expected"
[ -z "$(${docker} images -q $1)" ] && \
logfatal "docker image \"$docker_img\" does not exist locall... | the_stack |
SCRIPT_NAME=$(basename "$0")
SCRIPT_PATH=`dirname "$0"`
VERSION='v0.1-r10'
Usage="Usage: ./${SCRIPT_NAME} --bam_fn=BAM --ref_fn=REF --output=OUTPUT_DIR --threads=THREADS --platform=PLATFORM --model_path=MODEL_PREFIX [--bed_fn=BED] [options]"
set -e
#./run_clair3.sh -b tmp.bam -f ref.fasta -t 32 -o tmp -p ont -m model_... | the_stack |
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | the_stack |
# This script re-generates all of the keys and certs within the external_certs directory.
# The files there are used by the spec/features/settings/external_cert_feature_spec test
init() {
ROOT_DIR=$( mktemp -d )
CSR_DIR=$ROOT_DIR/csr
DIR_CERTS=$ROOT_DIR/certs
DIR_CONF=$ROOT_DIR/conf
DIR_KEYS=$ROOT_DIR/keys
... | the_stack |
outputTypes="sparql xml"
if [ $# -lt 1 ]; then
echo "usage: `basename $0` <endpoint> [-p {output,format}] [-o {sparql,gvds,xml,exhibit,csv}+]"
echo " [-q a.sparql b.sparql ...]*"
echo " [--limit-offset [count]] [--nap [count]]"
echo " ... | the_stack |
# Copyright (C) 2021 LEIDOS.
#
# 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 writ... | the_stack |
set -eou pipefail
#################### Setup debug and colors
COLOR_GRAY='\033[0;37m'
COLOR_BLUE='\033[0;34m'
COLOR_RED='\033[0;31m'
COLOR_RESET='\033[0m'
function finish() {
echo -e -n $COLOR_RESET
}
trap finish EXIT
echo -e -n $COLOR_GRAY
DEBUG=${DEBUG:-no}
if [ "yes" == "$DEBUG" ]; then
set -x
fi
#####... | the_stack |
# release.sh is the release script to make Okteto CLI versions publicly
# available.
#
# This scripts is meant to be executed by circleci and makes a few assumptions about
# the environment it runs on. It assumes the golangci executor which has a few
# binaries required by this script.
# TODO: parameterize this script ... | the_stack |
Usage()
{
echo 'Usage: vmaxexport.sh <sanity conf file path> [setup|delete vmax2|vmax3 [test1 test2 ...]]'
echo ' [setup]: Run on a new ViPR database, creates SMIS, host, initiators, vpools, varray, volumes'
echo ' [delete]: Will exports and volumes'
exit 2
}
SANITY_CONFIG_FILE=""
: ${USE_CLUSTERED_HOS... | the_stack |
translate_unrecognized_format() {
output=`printf '{' | schema translate 2>&1`
status="$?"
expect_status='1'
expect='error: failed to recognize input data format'
}
translate_json_to_json_minimal() {
output=`printf '{}' | schema translate 2>&1`
status="$?"
expect_status='0'
expect='{}'... | the_stack |
DATASET_PATH=$1
OUTPUT_PATH=$2
mkdir $OUTPUT_PATH/ball
ln -s $DATASET_PATH/n02799071 $OUTPUT_PATH/ball/baseball
ln -s $DATASET_PATH/n02802426 $OUTPUT_PATH/ball/basketball
ln -s $DATASET_PATH/n03134739 $OUTPUT_PATH/ball/croquet_ball
ln -s $DATASET_PATH/n04118538 $OUTPUT_PATH/ball/rugby_ball
ln -s $DATASET_PATH/n04254... | the_stack |
VER="1.1.0"
MYFOLDER="bart"
SDCARD="/sdcard"
EXTPART="/system/sd"
NANDSH="nandroid-mobile.sh"
NANDLOG="nandroid.log"
CONFIGFILE="/system/sd/bart.config"
alias _GREP_="busybox grep"
alias _AWK_="busybox awk"
alias _MOUNT_="busybox mount"
alias _UMOUNT_="busybox umount"
alias _LS_="busybox ls"
alias _TAR_="busybox tar"
... | the_stack |
set -ex
#
# Build a workspace component from a package.
#
# $1: the name of the package
# $2: the name of the repository (same as package if missing)
# $3: branch to clone from (master if missing). Do not select multiple
# different branches for the same repo, that
# will not work and is not enforced.
# $4: s... | the_stack |
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
RUNTYPE=""
# remove
# upgrade
# reset (to wipe out files saved in git-utilities)
# reuse (previous version of repository)
# A descript... | the_stack |
PKG_DIR="${PWD}"
TEMP_DIR="${PKG_DIR}/temp"
MNT_DIR="${TEMP_DIR}/mnt"
LINUX_REQD_TOOLS="dd md5sum sha256sum grep egrep blockdev lsblk findfs tar"
MACOSX_REQD_TOOLS="dd md5 shasum cat cut sed diff grep egrep diskutil tar"
MD5_CHECKSUM="dist_md5sum.txt"
SHA256_CHECKSUM="dist_sha256sum.txt"
LINUX="LINUX"
MACOSX="MACOSX"
S... | the_stack |
#
# Set up script for ROSE for network reachable CentOS 6.5 x64
#
prog="$(readlink "$0" 2>&1)"
[ $? -eq 127 -o "$prog" = "" ] && prog="$0"
progdir="$(dirname "$prog")"
source $progdir/setenv-rose.sh
################################################################
# Ensure that JAVA_HOME points to a ROSE compatible v... | the_stack |
# Copyright (c) 2021 The Regents of the University of California
# All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this lis... | the_stack |
# : vi ts=4 sw=4 noet :
# Mnemonic: cfh_tests.ksh
# Abstract: This script runs through a bunch of vf configuration file handling
# tests. The tests verify that VFd does the right thing with regard
# to where configuration files are read from, moved to, and whether
# or not they are used to delete existing VF ... | the_stack |
# Copyright 2017-2018 Johns Hopkins University (author: Daniel Povey)
# 2017-2018 Yiming Wang
# 1a is trying an architecture with factored parameter matrices with dropout.
# cat exp/chain/tdnn1b_sp/decode_dev/scoring_kaldi/best_wer
# [for swahili]
# %WER 36.84 [ 22893 / 62144, 2988 ins, 5712 del, 14193 su... | the_stack |
ulimit -s 20280
ulimit -c unlimited
ulimit -n 20480
export PATH=$PATH:/usr/sbin
WORKING_DIR=`pwd`
COMMAND="$0 $*"
PRG_DIRECT="$0"
#PRG="$0"
PRG=$(readlink -f $0)
PRG_DIR=`dirname "$PRG"`
BASE_DIR=`cd "$PRG_DIR/.." >/dev/null; pwd`
PARENT_DIR=`cd "$BASE_DIR/.." >/dev/null; pwd`
NAMESPACE=""
EXECUTORNAME=`hostname`
S... | the_stack |
. $srcdir/test-subr.sh
files="testfile `seq 2 9 | while read n; do echo testfile$n; done`"
testfiles $files
testrun_compare ${abs_top_builddir}/src/strings -tx -f $files <<\EOF
testfile: f4 /lib/ld-linux.so.2
testfile: 1c9 __gmon_start__
testfile: 1d8 libc.so.6
testfile: 1e2 __cxa_finalize
testfile: ... | the_stack |
load ../environment
load "$_GO_CORE_DIR/lib/testing/log"
setup() {
test_filter
# Test every case with a log file as well.
export TEST_LOG_FILE="$TEST_GO_ROOTDIR/test-script.log"
}
teardown() {
@go.remove_test_go_rootdir
}
@test "$SUITE: log single command" {
@go.run_log_script '@go.log_command echo Hello, ... | the_stack |
source ./common_proc.sh
source ./config.sh
# This script works in two modes:
# 1. Train and test the model (if the final model is not specified)
# 2. Test an already specified trained model (-model_final)
# If the extractor is not specified, training is not possible.
regenFeat="1"
recompModel="1" # for debug only
po... | the_stack |
# -----------------------------------------------------------------------------
# Common functions used in various tests.
#
# Requires
# - app_folder_path
# - test_folder_path
# - archive_platform (win32|linux|darwin)
# -----------------------------------------------------------------------------
# Without Arm 32-bi... | the_stack |
# AIX 3 and AIX 4 are split off to aix_3.sh and aix_4.sh
# early Feb 2004 by H.Merijn Brand
# please read comments in there for historic questions.
# many now stripped here
# Contact dfavor@corridor.com for any of the following:
#
# - AIX 43x and above support
# - gcc + threads support
# - socks support... | the_stack |
argv0="${0##*/}"
dir0="${0%$argv0}"
[ -n "$dir0" ] || dir0="."
usage () {
local exit_status="${1:-0}"
echo "usage: $argv0 [SWITCHES] [--] [SPECIMENS...]" >&2
echo " This command iterates over databases with a prefix and computes the aggregates" >&2
echo " like e.g precision, recall, and specifici... | the_stack |
#
# Idempotence...
#
# This script was made to run as often as you like; it will only make changes
# the first time it's run.
#
echo "Running install_build_tools.sh."
PLATFORM=$(./scope_env.sh platform)
if [ ${PLATFORM} = "Error" ]; then
echo "Exiting. install_build_tools.sh does not support this platform type."... | the_stack |
# Copyright 2013-2014 MERL (author: Felix Weninger and Shinji Watanabe)
# 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
#
# THIS CODE IS PROVIDE... | the_stack |
. ./cmd.sh
. ./path.sh
set -e
train_nj=16
nnet_nj=40
# The kaldi fisher egs directory
# kaldi_fisher=/home/liuyi/kaldi-master/egs/fisher
# We do not need real fisher egs here.
kaldi_fisher=/home/heliang05/liuyi/software/kaldi_gpu/egs/sre16
root=/home/heliang05/liuyi/fisher.full
data=$root/data
exp=$root/exp
mfccdir=... | the_stack |
# Ask for sudo right away
sudo echo -n
# Check bash major version
bash_version=${BASH_VERSION:0:1}
# Ask for dotfiles dir (the -i flag is only available on Bash 4)
cur_dir="$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")"
if [[ $bash_version -gt 3 ]]; then
read -r -e -p "Enter dotfiles directory: " -i ... | the_stack |
#
# Copyright (C) 2006-2017 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
... | the_stack |
set -e
export LC_CTYPE=C
OUTPUT_DIR=output
mkdir -p ${OUTPUT_DIR}
rm -rf ${OUTPUT_DIR}
echo "--------------------------------------------------"
echo "Generating the whole dataset in ${OUTPUT_DIR}/..."
echo "It takes around 7min on a MacBookPro 2017."
echo "--------------------------------------------------"
DATASE... | the_stack |
setup() {
if [[ $ZBR_INSTALLER -eq 1 ]]; then
# Zebrunner CE installer
url="$ZBR_PROTOCOL://$ZBR_HOSTNAME:$ZBR_PORT"
ZBR_REPORTING_PORT=8081
else
# load default interactive installer settings
source backup/settings.env.original
# load ./backup/settings.env if exist to declar... | 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 Licens... | the_stack |
set -ex
until redis-cli -h redis_sentinel_master_1 -p ${SENTINEL_MASTER_PORT} ; do
echo "Redis master is unavailable - sleeping"
sleep 1
done
echo "Redis master is available"
# https://github.com/redis/redis/blob/6.0/sentinel.conf
cat <<EOF | tee /redis.sentinel.conf
# Example sentinel.conf
# *** IMPORTANT ***... | the_stack |
# by Lee Baird
# Contact me via chat or email with any feedback or suggestions that you may have:
# leebaird@gmail.com
#
# Special thanks to the following people:
#
# Jay Townsend - everything, conversion from Backtrack to Kali
# Jason Ashton (@ninewires)- Penetration Testers Framework (PTF) compatibility, Registered D... | the_stack |
# global fixed variables
LOCK_FILE=$0.lock
# init
init_env(){
set -x
SUBSCRIPTION="${SUBSCRIPTION:-6560575d-fa06-4e7d-95fb-f962e74efd7a}"
RESOURCE_GROUP="${RESOURCE_GROUP:-azureml-examples-rg}"
WORKSPACE="${WORKSPACE:-amlarc-ws}" # $((1 + $RANDOM % 100))
LOCATION="${LOCATION:-eastus}"
ARC... | the_stack |
USERID=""
IFACE=""
KISMET=/etc/kismet/kismet.conf
CH=$3; [ x$3 = "x" ] && CH=10
IFACE_FOUND="false"
MADWIFI=0
MAC80211=0
USE_IW=0
IW_SOURCE="https://www.kernel.org/pub/software/network/iw/iw-3.17.tar.xz"
IW_ERROR=""
UDEV_ISSUE=0
if [ -f "`which iw 2>&1`" ]
then
USE_IW=1
fi
if [ "x$MON_PREFIX" = "x" ]
then
MON_PREFIX... | 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.0 (the... | the_stack |
# #########################################################
# FOR SOund eXchance USERS ONLY!!! TESTED!!!
# The lines below, from ">" to "xterm", will generate a new shell script and execute it in a new xterm terminal...
# Just EDIT out the comments and then EDIT the line pointing to the correct </full/path/to/so... | the_stack |
#CSV2RDF4LOD_HOME=${CSV2RDF4LOD_HOME:?"not set; source csv2rdf4lod/source-me.sh or see https://github.com/timrdf/csv2rdf4lod-automation/wiki/CSV2RDF4LOD-not-set"}
# # # # # # --rq # # # # # #
if [ "$1" == "--rq" ]; then
# replaced by is-pwd-a; pwd-not-a.sh below
#if [[ `is-pwd-a.sh cr:dataset` == "... | the_stack |
#---- INTRO ---------------
#
# Continuity Activation Tool - built by dokterdok
#
# Description: This script enables OS X 10.10 Continuity features when compatible hardware is detected.
# Continuity features activated by this tool include Application Handoff, Instant Hotspot, and Airdrop iOS<->OSX.
# The tool has no in... | the_stack |
# You'll notice that a lot of the functions for this script are disabled.
# Why is that? Check out the README that came with this script, I explain thoroughly why I did it this way.
# So if you want mysql, httpd, snortreport (the default front-end), and jpgraph installed, you'll have to uncomment
# the necessary lines ... | the_stack |
#/ Purpose:
#/ Test the scm plugins api setup methods
#/
SRC_DIR=$(cd `dirname $0` && pwd)
DIR=${TMP_DIR:-$SRC_DIR}
export API_XML_NO_WRAPPER=1
source $SRC_DIR/include_scm_test.sh
ARGS=$@
proj="test"
test_setup_export_xml_invalid_config(){
local integration=$1
local plugin=$2
local dirval=$3
local urlval=$4... | the_stack |
ALTER TABLE test_run DROP CONSTRAINT test_run_test_run_command_id_fkey;
--
-- Drop old Foreign Keys
--
ALTER TABLE test_run_y2006_m11_wk1 DROP CONSTRAINT test_run_y2006_m11_wk1_test_run_command_id_fkey;
ALTER TABLE test_run_y2006_m11_wk2 DROP CONSTRAINT test_run_y2006_m11_wk2_test_run_command_id_fkey;
ALTER TABLE... | the_stack |
CREATE PROCEDURE [DemoCdc].[spExecutePostsCdcOutbox]
@MaxQuerySize INT = 100, -- Maximum size of query to limit the number of changes to a manageable batch (performance vs failure trade-off).
@CorrelationId NVARCHAR(64) = NULL, -- Correlation identifier to aid tracking of outbox execution and correspondi... | the_stack |
-- 2020-12-08T08:46:45.433Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Field_ID=627666
;
-- 2020-12-08T08:46:45.441Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=627666
;
-- 2020-12-08T08:46:45... | the_stack |
/*************************************************************
Stored procedures for creating and deleting
**************************************************************/
--
-- STORED PROCEDURE
-- UpsertResource_5
--
-- DESCRIPTION
-- Creates or updates (including marking deleted) a FHIR resource
--
-- P... | the_stack |
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.6.2
-- Dumped by pg_dump version 9.6.2
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min... | the_stack |
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License")... | the_stack |
--
alter session set current_schema = XDBPM
/
create or replace type ZIP_CONTENTS_LIST
as TABLE of VARCHAR2(4000)
/
grant execute on ZIP_CONTENTS_LIST to public
/
create or replace type ZIP_ENTRY as OBJECT
(
FILENAME VARCHAR2(4000),
CONTENT BLOB
)
/
grant execute on ZIP_ENTRY to public
/
create or replace type... | the_stack |
-- MySQL Script generated by MySQL Workbench
-- Mon Feb 8 09:41:16 2021
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON... | the_stack |
-- 2017-05-15T16:08:36.605
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53055,540188,TO_TIMESTAMP('2017-05-15 16:08:36','YYYY-MM-DD HH24:MI:SS'),100,'Y',... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.