text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
set -v
set -o errexit
source $rootfsDir/tmp/proxy.sh
echo "Running python installation"
#PYTHON_ARGS=--upgrade
#missing zipline since requirements installation causes issues
if [[ ! -z "$http_proxy" ]] ; then
git config --global http.proxy $http_proxy
if [[ ! -z "$GIT_PROXY" ]] ; then
git config --global url... | the_stack |
namespace util/type
import util/bash4
import Array/Contains String/SanitizeForVariable
import util/namedParameters util/pipe util/variable util/command
declare -g __primitive_extension_declaration=2D6A822E
declare -g __primitive_extension_fingerprint__boolean=${__primitive_extension_declaration}36884C70843578D37E6773... | the_stack |
#### Description: Wrapper script to annotate mismatches. Consists of 3 parts:
#### 1. Analysis of local mismatch signatures [done]
#### 2?. Filtering local mismatch calls by checking for off-diagonal contact enrichments signatures [not done]
#### 3. Mismatch boundary thinning to reduce mimassembly debris [done].
#### U... | the_stack |
command -v fw >/dev/null 2>&1 &&
__fw_complete()
{
#
# This is taken from bash-completion https://github.com/scop/bash-completion
#
_get_comp_words_by_ref()
{
_upvar()
{
if unset -v "$1"; then
if (( $# == 2 )); then
eval $1=\"\$2\"
... | the_stack |
shopt -o -s nounset
set -e
die() {
printf "%s" "$*"
exit 1
}
declare -r PACSIGN=`which PACSign 2>/dev/null`
[ "x${PACSIGN}" = "x" ] && die 'PACSign not found'
declare -r OPENSSL=`which openssl 2>/dev/null`
[ "x${OPENSSL}" = "x" ] && die 'openssl not found'
declare -r INFILE='file'
declare -r QSIGN_CERT='qsign'
... | the_stack |
__fuzzit_debug()
{
if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then
echo "$*" >> "${BASH_COMP_DEBUG_FILE}"
fi
}
# Homebrew on Macs have version 1.3 of bash-completion which doesn't include
# _init_completion. This is a very minimal version of that function.
__fuzzit_init_completion()
{
COMPREPLY=()
_g... | 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 not use ... | the_stack |
echo "Juniper Networks vMX Docker Container (unsupported prototype)"
echo ""
set -e # Exit immediately if a command exits with a non-zero status.
#export qemu=/qemu/x86_64-softmmu/qemu-system-x86_64
qemu=/usr/local/bin/qemu-system-x86_64
snabb=/usr/local/bin/snabb # only used for Intel 82599 10GE ports
# mount hu... | the_stack |
export ZPWR_PLUGIN_MANAGER_HOME="$HOME/.zinit"
export ZPWR_PLUGIN_MANAGER="zinit"
# do not want any surprises when relative cd to other dirs
unset CDPATH
declare zpwrBaseDir
VERSION="2.1.0"
# resolve all symlinks
ZPWR_PWD="$(pwd -P)"
#}}}***********************************************************
#{{{ ... | the_stack |
# print usage and check number of arguments passed
if [ "$#" -lt 8 ]; then
echo "Incorrect number of arguments $#, expecting 8:"
echo "$0 with arguments: "
echo " 1. MASTER_PUBLIC_DNS"
echo " 2. STANDALONE_ETCDS_PRIVATE_DNS"
echo " 3. PBENCH_COLLECTION_INTERVAL"
echo " 4. PBENCH_RESULTS_DIR_NAME"
... | the_stack |
# A simple shell script for generating C++ projects with CMake. It generates
# the CMakeList.txt, Doxigen files, folder structure and initial filenames
KEPT_DIR=$PWD
YEAR=$(date +'%Y')
echo Project name?
read PROJECT_NAME
echo Project description?
read PROJECT_DESCRIPTION
echo Maintainer?
read PROJECT_MAINTAINER
echo... | the_stack |
# Copyright 2020 The cert-manager 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 t... | the_stack |
DEPENDS="core platform path"
##
#
# compiler.sh -- support for building C source projects
#
##
#<
# @var MK_CC
# @brief C compiler
# @export
# @system
#
# Set to the executable and arguments used to invoke the C compiler.
# Note that this variable is system-dependent and may have separate
# values for each target sys... | the_stack |
# This is a script to migrate a git repository to a subdirectory of
# another, while preserving history.
# I would like to use git subtree, but git subtree doesn't rewrite
# imported history, so files appear to move. That means that git log
# on the subdirectory won't work. You have to do git log --follow to
# see t... | the_stack |
BUILD_NAME="ReleaseTest"
workingDir="$(pwd)"
srcFileDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
####################################################################################################################################
#### determine the architecture
##############################... | the_stack |
red=`tput setaf 1`
green=`tput setaf 2`
blue=`tput setaf 4`
reset=`tput sgr0`
usage() {
echo "${blue}Usage: $0 [option...]" >&2
echo
echo " -o, --apigee_org * Apigee Organization. "
echo " -e, --apigee_env * Apigee Environment. "
echo " -v, --virtual_host * Virtual Hosts wi... | the_stack |
##############################################################################################################################################################
#
# This script is a modified pipeline from the program 'BLOBOLOGY', which produces a GC vs Coverage plot of the contigs, helping visualize bins and phylogenetic... | the_stack |
git fetch --unshallow
COUNT=$(git rev-list --count HEAD)
FILE=$COUNT-$2-$3.7z
#INFO
echo "*** Trigger build ***"
#下载SM
echo "Download sourcemod ..."
wget "http://www.sourcemod.net/latest.php?version=$1&os=linux" -q -O sourcemod.tar.gz
tar -xzf sourcemod.tar.gz
#TransmitManager
echo "Download TransmitManager.inc ...... | the_stack |
# Variables for this script to work
source ${SCRIPT_DIR}/setEnvVars.sh
source ${SCRIPT_DIR}/common_functions.sh
########### SIGTERM handler ############
function _term() {
echo "[$(date)] - Stopping container."
echo "[$(date)] - SIGTERM received, shutting down the server!"
$OUD_INST_HOME/bin/stop-ds
}
######... | the_stack |
# command info
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "-help" ]; then
echo "# script to check LND states"
echo "# lnd.check.sh basic-setup"
echo "# lnd.check.sh prestart [mainnet|testnet|signet]"
exit 1
fi
# load raspiblitz conf
source /mnt/hdd/raspiblitz.conf
##################... | the_stack |
# Initialize if it hasn't already
. workloads/wl-init.sh
# Prevent recursion
if [[ $WL_LIB_LOADED == true ]] ; then
return
fi
export WL_LIB_LOADED=true
validate_provider() {
error=0
prov=$1
if [ "$prov" == "" ] ; then
return 0
fi
case $prov in
packet)
if [ "$PROVIDER_PACK... | the_stack |
# Prerequisites: C, C++, Fortran compilers
# Extra requirements for 'cgnstools' (graphical tools to view .cgns files):
# libx11-dev libxmu-headers libxmu-dev packages (debian/ubuntu),
# libX11-devel (openSUSE),
# xorg-x11-devel (Fedora)
# You can optionally build cgnstools to view/edit .cgns files
# https://cgns.githu... | the_stack |
GETHATTACHPOINT=`grep IPCFILE settings.txt | sed "s/^.*=//"`
PASSWORD=`grep PASSWORD settings.txt | sed "s/^.*=//"`
TEMPINFILE=`grep TEMPINFILE settings.txt | sed "s/^.*=//"`
EXECUTIONOUTPUTFILE=`grep EXECUTIONOUTPUTFILE settings.txt | sed "s/^.*=//"`
EXECUTIONRESULTFILE=`grep EXECUTIONRESULTFILE settings.txt | sed "s... | the_stack |
from Scripts import *
import sys, os, time, tempfile, shutil
try:
from Queue import Queue, Empty
except:
from queue import Queue, Empty
class CPUName:
def __init__(self):
self.r = run.Run()
self.u = utils.Utils("CPU-Name")
# Check the OS first
if not str(sys.platform) == "d... | the_stack |
platform='unknown'
unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
platform='linux'
elif [[ "$unamestr" == 'Darwin' ]]; then
platform='darwin'
fi
# 1-100: g3.4
# 101-200: p2
# AMI="ami-660ae31e"
AMI="ami-55c2792d" #extract
#AMI="ami-7428ff0c" #extract
#INSTANCE_TYPE="g3.4xlarge"
#INSTANCE_TYPE="p2.xlarge... | the_stack |
##Installation and setup script for AFS Web Secure for the APACHE server
##
PRODUCT_NAME="AFS Web Security Pack"
message="
Use this script for configuring and setting up $PRODUCT_NAME for use
with the Apache Web server. Before executing this script, be sure to
read the Transarc $PRODUCT_NAME documentation provided i... | the_stack |
source "$NCTL"/sh/scenarios/common/itst.sh
# Exit if any of the commands fail.
set -e
function main() {
log "------------------------------------------------------------"
log "Starting health checks..."
log "------------------------------------------------------------"
log "... Stopping nodes to free... | the_stack |
text="$1"
image=""
url=""
video=""
extension=""
file=""
otherfile=""
typeset -i uid_counter
uid_counter=0
typeset timestamp
print "<?xml version=\"1.0\"?>"
print "<items>"
DATE=`date +"%s"`
let uid_counter=$uid_counter+1
timestamp=$DATE$uid_counter
if [ -f file_list ]
then
file=$(cat file_list)
# in case file ha... | the_stack |
. $srcdir/test-subr.sh
# Tests readelf --debug-dump=line and --debug-dump=decodedline
# See run-readelf-aranges for testfiles.
testfiles testfilefoobarbaz
testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=line testfilefoobarbaz <<EOF
DWARF section [30] '.debug_line' at offset 0x15f6:
Table at offset 0:
... | the_stack |
#============================================================================
# This is a test script for backup management of pg_rman.
#============================================================================
# Load common rules
. sql/common.sh backup_management
# Extra parameters exclusive to this test
SCALE=1
... | the_stack |
#shellcheck disable=SC2034
INPUT_PATCH_FILE=""
#shellcheck disable=SC2034
INPUT_DIFF_FILE=""
#shellcheck disable=SC2034
INPUT_APPLIED_FILE=""
#shellcheck disable=SC2034
INPUT_APPLY_TYPE=""
PATCH_METHOD=""
PATCH_METHODS=("gitapply" "patchcmd")
PATCH_LEVEL=0
PATCH_HINT=""
## @description Use curl to download the patch a... | the_stack |
. ./test-pre.sh
AFL_GCC=afl-gcc
$ECHO "$BLUE[*] Testing: ${AFL_GCC}, afl-showmap, afl-fuzz, afl-cmin and afl-tmin"
test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" -o "$SYS" = "i86pc" -o "$SYS" = "i386" && {
test -e ../${AFL_GCC} -a -e ../afl-showmap -a -e ../afl-fuzz && {
../${AFL_GCC} -o test-instr.... | the_stack |
set -e -x
# This script publishes docker manifests and images required for multi-architecture support that we (Rancher) don't have automated publishing for.
# We don't have automate publishing for these images because the upstream providers already build images for multiple architectures.
# We need to publish these im... | the_stack |
set -e
set -o pipefail
# Variables
DEPLOYMENTNAME="scenario_complete-$(date -u +%m%d-%H%M)"
TEMPLATEFILE="../ARM/scenario_complete.nocomments.json"
PREREQ_TEMPLATEFILE="../ARM/prerequisites.nocomments.json"
PARAMETERSFILE="../ARM/scenario_complete.params.nocomments.json"
HIVE_SCRIPTS_DIRECTORY="../../src/HDInsight"
SA... | the_stack |
set -e
export spellchecker=${spellchecker:-/app}
. "$spellchecker/common.sh"
main() {
GITHUB_TOKEN=${GITHUB_TOKEN:-$INPUT_GITHUB_TOKEN}
if [ -z "$GITHUB_EVENT_PATH" ] || [ ! -e "$GITHUB_EVENT_PATH" ]; then
GITHUB_EVENT_PATH=/dev/null
fi
case "$GITHUB_EVENT_NAME" in
schedule)
exec "$spellchecker/c... | the_stack |
#
# Copyright 2017 Open GEE Contributors
#
# 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 |
##
# Title: Useful Unix functions
# Description: To work correctly, you have to execute this script when you're in the project root with your terminal (generally the parent folder of "_tools/").
# (e.g., you@you:/path/to/root-project$ bash _tools/pH7.sh).
#
# Author: Pierre-Henry... | the_stack |
jira_internal_port=8080
jira_external_port=8081
bamboo_port=8085
bitbucket_port=7990
same_credentials=false
set -e
while true; do
read -p $'Are you using the same Username + Password on all three systems (Jira, Bamboo, Bitbucket)? \n' yn
case $yn in
[Yy]* ) same_credentials=true; break;;
[Nn]... | the_stack |
#Prerequisite :::
#sshpass and perf
#Source configuration
source host_config.cfg
source test.cfg
source pass_criteria.cfg
csv_reports_path="csv-reports"
ARG_LEN=$#
ARG_1=$1
ARG_2=$2
#Main function invoke
function main(){
#Check dependencies..
command -v sshpass >/dev/null 2>&1 || {
echo >&2 "I require ... | the_stack |
# Copyright 2015 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | the_stack |
#################################################################################
# #
# TPM2 regression test #
# Written by Ken Goldman #
# IBM Thomas J. Watson Research Center #
# #
# (c) Copyright IBM Corporation 2015 - 2020 #
# #
# All rights reserved. ... | the_stack |
##
# Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
# This file is part of openmano
# 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... | the_stack |
# Debug this script if in debug mode
(( $DEBUG == 1 )) && set -x
# Import dsip_lib utility / shared functions if not already
if [[ "$DSIP_LIB_IMPORTED" != "1" ]]; then
. ${DSIP_PROJECT_DIR}/dsiprouter/dsip_lib.sh
fi
# Get more detailed OS info
DISTRO=${DISTRO:-centos}
DISTRO_VER=${DISTRO_VER:-$(cat /etc/redhat-re... | the_stack |
norm_option_value()
{
if [ "$1" = on ] || [ "$1" = ON ] || [ "$1" = yes ] || [ "$1" = YES ] || [ "$1" = y ] || [ "$1" = Y ] || [ "$1" = 1 ] || [ "$1" = true ] || [ "$1" = TRUE ]; then
echo ON
elif [ "$1" = off ] || [ "$1" = OFF ] || [ "$1" = no ] || [ "$1" = NO ] || [ "$1" = n ] || [ "$1" = N ] || [ "$1" = 0 ] ... | the_stack |
# The purpose of this script is to go through a number of .vqm files
# and generate the corresponding .blif files using the vqm2blif program.
# The generated blif files will be compared to a golden set of outputs
# to validate the vqm2blif program changes.
# This program accepts two arguments:
# Argument 1: Location o... | the_stack |
from Scripts import *
import os, tempfile, datetime, shutil, time, plistlib, json, sys, glob, argparse
class KextExtractor:
def __init__(self, **kwargs):
self.r = run.Run()
self.d = disk.Disk()
self.u = utils.Utils("KextExtractor")
self.clover = None
self.efi = None
... | the_stack |
if [ ! -d logs ]; then
mkdir logs
fi
export CUDA_VISIBLE_DEVICES="0"
PY_LAUNCHER="benchmark_runner.py"
# Prepare conda
CONDA_BASE=$(conda info --base)
source $CONDA_BASE/etc/profile.d/conda.sh
# FLIGHTS-CLS
DSET="flights-cls"
if [ false = true ]; then
conda activate torch
ALGO="falkon-cls"
... | the_stack |
. $srcdir/test-subr.sh
testfiles testfile63
testrun_compare ${abs_top_builddir}/src/readelf -n testfile63 <<\EOF
Note segment of 892 bytes at offset 0x274:
Owner Data size Type
CORE 148 PRSTATUS
info.si_signo: 11, info.si_code: 0, info.si_errno: 0, cursig: 11
sigpend: <>
si... | the_stack |
# shellcheck disable=SC1090,SC1091
# Load Generic Libraries
. /opt/bitnami/scripts/libfs.sh
. /opt/bitnami/scripts/libfile.sh
. /opt/bitnami/scripts/liblog.sh
. /opt/bitnami/scripts/libnet.sh
. /opt/bitnami/scripts/libos.sh
. /opt/bitnami/scripts/libversion.sh
. /opt/bitnami/scripts/libservice.sh
. /opt/bitnami/script... | the_stack |
set -e
# fix GL_NV_texture_compression_vtc
grep -v EXT $1/GL_NV_texture_compression_vtc > tmp
mv tmp $1/GL_NV_texture_compression_vtc
# remove duplicates from GL_ARB_vertex_program and GL_ARB_fragment_program
tail -n +5 $1/GL_ARB_vertex_program > patterns
grep -v -F -f patterns $1/GL_ARB_fragment_prog... | the_stack |
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright © 2020 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
CLI_NAME="Rust Hypervisor Firmware"
CTR_IMAGE_TAG="rusthypervisorfirmware/dev"
CTR_IMAGE_VERSION="latest"
CTR_IMAGE="${CTR_IMAGE_TAG}:${CTR_IMAGE_VERSION}"
DOCKER_RUNTI... | the_stack |
# ====================================================================
# Sets the cross compile environment for Android
# Based upon OpenSSL's setenv-android.sh (by TH, JW, and SM).
# Updated by Skycoder42 to the latest NDK.
# These changes are based on the current recommendations for Android
# for their "Unified Heade... | the_stack |
set -e
GITLAB_CI_HOST=${GITLAB_CI_HOST:-localhost}
GITLAB_CI_PORT=${GITLAB_CI_PORT:-}
GITLAB_CI_HTTPS=${GITLAB_CI_HTTPS:-false}
GITLAB_CI_EMAIL=${GITLAB_CI_EMAIL:-gitlab@localhost}
GITLAB_CI_SUPPORT=${GITLAB_CI_SUPPORT:-support@localhost}
GITLAB_CI_TIMEZONE=${GITLAB_CI_TIMEZONE:-UTC}
GITLAB_CI_NOTIFY_ON_BROKEN_BUILDS=... | the_stack |
set -x
set -e
set -o pipefail
##################### Function Defination Start #####################
function usage() {
cat <<EOF
This script is to be used to compile PG core source code (PG engine code without files within contrib and external)
It can be called with following options:
--basedir=<temp dir for PG in... | the_stack |
snippet_dirfd()
{
cat << 'EOF'
#ifndef RAVSTATIC_DIRFD
#define RAVSTATIC_DIRFD
#include <dirent.h>
static int
dirfd(DIR *dirp) {
return (dirp->dd_fd);
}
#endif
EOF
} # snippet_dirfd
snippet_mkdtemp()
{
cat << 'EOF'
#ifndef RAVSTATIC_MKDTEMP
#define RAVSTATIC_MKDTEMP
#include <stdlib.h>
#include <sys/stat.h>
st... | the_stack |
PNT_DIR="code/pnt"
NDC_DIR="code/ndc"
ICD9_DIR="code/icd9"
CCS_DIR="code/ccs"
CMS_DIR="cms"
JSON_DIR="json"
CMS_SAMPLE_ALL=`seq -s " " 1 20`
base_dir=`pwd`
convert_top_n=3
convert_list=
dictionary="${JSON_DIR}/dictionary.json"
config="config.txt"
config_omop="config_omop.txt"
format="format.json"
style_classes="style_... | the_stack |
nocolor="\033[0m"
green="\033[0;32m"
yellow="\033[0;33m"
red="\033[0;31m"
red_bold="\033[1;31m"
blue="\033[0;34m"
light_gray="\033[0;37m"
dark_gray="\033[1;30m"
magenta_bold="\033[1;35m"
SITE="https://github.com/penetrarnya-tm/WeaponizeKali.sh"
VERSION="0.1.4"
echo -e "${red_bold} ... | the_stack |
set -e
export PYTHONPATH=.
function run_on () {
local sbatch_opt="$1"
shift
local name=$1
shift
local torun=" $@ "
if [ -e slurm_scripts/$name.sh ]; then
echo "script" slurm_scripts/$name.sh exists
exit 1
fi
echo -n $name " "
echo $@ > slurm_scripts/$name.sh
... | the_stack |
# this script will take output histos from CSCValidation and make 'nice' looking .pngs
#
# to run this script, do
# ./makePlots.sh <filepath>
# where <filepath> is the paths to the output root files from CSCValiation
# example: ./makePlots.sh CMSSW_1_8_0_pre8/src/RecoLocalMuon/CSCValidation/test/validationHists.root
... | the_stack |
FILE="$1"
# where are the tap stops?
tab_width=8
# what level indentation?
indentation=4
# force locale setting to C so things like date output as expected
LC_ALL=C
##################
# validate input #
##################
if [ "x$FILE" = "x" ] ; then
echo "ERROR: must give the name/path of a file to check/updat... | the_stack |
set -e
set -o pipefail
dockerversion=$1
shift
OS=ubuntu16.04
OS_CODENAME=xenial
USER_MOUNTPOINT=/mnt
# install docker
apt-get update
apt-get install -y -q -o Dpkg::Options::="--force-confnew" --no-install-recommends \
apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://d... | the_stack |
usage()
{
cat << EOF
GAM installation script.
OPTIONS:
-h show help.
-d Directory where gam folder will be installed. Default is \$HOME/bin/
-a Architecture to install (i386, x86_64, x86_64_legacy, arm, arm64). Default is to detect your arch with "uname -m".
-o OS we are running (linux,... | the_stack |
######################################################################
#
# TWPLSRCH.SH : Search Place Information with Given Keywords
#
# Written by Shell-Shoccar Japan (@shellshoccarjpn) on 2020-10-01
#
# This is a public-domain software (CC0). It means that all of the
# people can use this for any purposes with no re... | the_stack |
# Spins up a network, awaits for it to settle down and then performs a series of
# network upgrades. At each step network behaviour is verified.
# ----------------------------------------------------------------
# Imports.
# ----------------------------------------------------------------
source "$NCTL/sh/utils/main... | the_stack |
function installApplication {
APPLICATION=$1
APP_NAME=`basename ${APPLICATION}`
APP_EXTENSION=${APPLICATION##*.}
case $APP_EXTENSION in
app)
if [ "${APPLICATION}" = "/Applications/${APP_NAME}" ];then
echo "'${APP_NAME}' has already been installed. No need to continue."
else
osascript >& ... | the_stack |
YAML_FILE=$1
GEN_DIR=$2
YAML_PARSER="dasel -n -p yaml --plain -f"
OUT_HEADER="$GEN_DIR"/MCU.h
OUT_MAKEFILE="$GEN_DIR"/MCU.mk
echo "Generating MCU definitions..."
mkdir -p "$GEN_DIR"
echo "" > "$OUT_HEADER"
echo "" > "$OUT_MAKEFILE"
mcu=$(basename "$YAML_FILE" .yml)
arch=$($YAML_PARSER "$YAML_FILE" arch)
mcu_family=$... | the_stack |
. ./cmd.sh
. ./path.sh
set -e
mfccdir=`pwd`/mfcc
vaddir=`pwd`/mfcc
voxceleb1_root=/export/corpora/VoxCeleb1
voxceleb2_root=/export/corpora/VoxCeleb2
sitw_root=/export/corpora/SRI/sitw
musan_root=/export/corpora/JHU/musan
sitw_dev_trials_core=data/sitw_dev_test/trials/core-core.lst
sitw_eval_trials_core=data/sitw_eval... | the_stack |
# author: Chunyun Chen
# date: 11/05/2015
# email: chunchen@redhat.com
# IRC: chunchen @ aos-qe
# desc: Testing scalability for logging and metrics parts
# the format for *time* command: %E=real time, %U=user time, %S=system time
export TIMEFORMAT="%E %U %S"
OS_MASTER=""
MASTER_CONFIG="/etc/origin/master/master-confi... | the_stack |
BUILD_NAME="MatDRAM"; export BUILD_NAME
verify() {
if [ $1 -eq 0 ]; then
echo >&2 "-- ${BUILD_NAME} - ParaMonte::MatDRAM $2 appears to have succeeded."
else
echo >&2
echo >&2 " -- ${BUILD_NAME} - FATAL: ParaMonte::MatDRAM $2 appears to have failed."
echo >&2 " -- ${BUILD_NA... | the_stack |
# SCRIPT: run_jenkins_perseus.sh
# AUTHOR: Kyle Gerard Felker - kfelker@princeton.edu
# DATE: 4/10/2018
# PURPOSE: Run style and regression test suites using PICSciE's Jenkins server for continuous
# integration (CI) Current workers include 4x Intel Broadwell nodes on Perseus cluster.
# USAGE: salloc -N1 -n4 -c2 --kil... | the_stack |
#
# Verify sys container mounts setup by the sysbox-mgr
#
load ../helpers/run
load ../helpers/fs
load ../helpers/docker
load ../helpers/uid-shift
load ../helpers/sysbox-health
# verify sys container has a mount for /lib/modules/<kernel>
@test "kernel lib-module mount" {
local kernel_rel=$(uname -r)
local syscont... | the_stack |
set -e
# ssh -o StrictHostKeyChecking=yes $SSH_SERVER 'bash -s' -- < update-app.sh --container-name=xyz --path=/var/www/xyz --branch=production
set -o allexport
[[ -f docker.env ]] && source docker.env
set +o allexport
set -o allexport
[[ -f update.env ]] && source update.env
set +o allexport
help()
{
echo -e "... | the_stack |
# Copyright (C) 2020 IBM Corp.
# This program is 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 |
CCORE_64BIT_BINARY_FOLDER=pyclustering/core/64-bit/linux
CCORE_32BIT_BINARY_FOLDER=pyclustering/core/32-bit/linux
CCORE_BINARY_NAME=libpyclustering.so
DOXYGEN_FILTER=( "warning: Unexpected new line character" )
print_error() {
echo "[PYCLUSTERING CI] ERROR: $1"
}
print_info() {
echo "[PYCLUSTERING CI] INF... | the_stack |
#################################################################################
# WARNING - Read First Before Running This Script!
# Running this script maybe HARMFUL to your system. Therefor, the user shall
# carefully read all of this script and bear the relevant risks by
# himself/herself. Running this script mea... | the_stack |
file_kinds=(
[1]=file
[2]=dir # empty
[3]=link # broken
[4]=dir # non-empty
[5]=link # link to file
[6]=link # link to dir
)
file_modes=(
[1]=766
[2]=776
[3]=777
)
file_users=(
[1]=root
[2]=billy
[3]=nobody
)
function TestMatrixEvalSpec() {
local spec=$1
if [[ "$spec" =~ ^(.)(.)-(.)(.)(.)(.)-(.)(.)(.)... | the_stack |
# 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
#
# THIS CODE IS PROVIDED *AS IS* BAS... | the_stack |
# Installation routine for AIDE on Debian/Ubuntu systems.
#
# 2021 Benjamin Kellenberger
# -----------------------------------------------------------------------------
# FLAGS
# -----------------------------------------------------------------------------
config_file= # custom settings.ini fil... | the_stack |
# Author: Gabriel Staples
# Status: IT WORKS! Ready for usage by anybody.
# This file is part of eRCaGuy_dotfiles: https://github.com/ElectricRCAircraftGuy/eRCaGuy_dotfiles
# git-filechange-search.sh
# - See which commit changed a certain keyword (regex search pattern) in a certain file.
# - This allows you to track ... | the_stack |
if [ ! -f /Applications/Autodesk/maya2017/include/maya/MFn.h ]; then
echo "Install the Maya devkit according to the instructions at https://github.com/vfxpro99/usd-build-club and try again."
exit 1
fi
if hash cmake 2>/dev/null; then
echo "Detected cmake."
else
echo "cmake not detected, please install it, and t... | the_stack |
action=$1
[[ -z $action ]] && action="production" # default to prod if no arg supplied
#-----------------------------------------------------------------------------#
# Install eFa
#-----------------------------------------------------------------------------#
mirror="https://mirrors.efa-project.org"
LOGFILE="/var/log... | the_stack |
# helper method
declare -f _contains_element > /dev/null || _contains_element() {
local e match="$1"
shift
for e; do [[ "$e" == "$match" ]] && return 0; done
return 1
}
_eth_completions()
{
# get current word, words array, current word index, and previous word, ignoring ":" as a wordbreak
local cur cword w... | the_stack |
set -o errexit
is_command_present() {
type "$1" >/dev/null 2>&1
}
is_mac() {
[[ $OSTYPE == darwin* ]]
}
# This function checks if the relevant ports required by Appsmith are available or not
# The script should error out in case they aren't available
check_k8s_setup() {
echo "Checking your k8s setup stat... | the_stack |
SN#!/bin/sh
#
# Copyright (c) 2015 EMC Corporation
# All Rights Reserved
#
#
# Export Test for Ingest and coexistence
# ======================================
#
# This script will test various scenarios where creating an export group will have an impact on an existing
# VMAX masking layout that was there before ViPR ca... | the_stack |
export PROJECTNAME=httpclient-android
export PACKAGENAME=cz.msebera.android.httpclient
export ROOTDIR=`pwd`
export PACKAGEDIR=${ROOTDIR}/${PROJECTNAME}/src/main/java/${PACKAGENAME//./\/}
export ANDROIDPROJECTPATH=${ROOTDIR}/${PROJECTNAME}
export EXTRAPACKAGENAME=extras
export KERBEROS_LIB_NAME="kerberos"
export CORE_V... | the_stack |
#if BGFX_SHADER_LANGUAGE_HLSL
#define BEGIN_CONST_ARRAY(type, count, name) static const type name[count] = {
#define END_CONST_ARRAY }
#else
#define BEGIN_CONST_ARRAY(type, count, name) const type name[count] = type[](
#define END_CONST_ARRAY )
#endif
uniform mat4 u_camInvViewProj;
uniform mat4 u_camInvProj;
unif... | the_stack |
function kubernetes_host() {
if [ "$SKIP_KUBERNETES_HOST" = "1" ]; then
return 0
fi
kubernetes_load_ipvs_modules
kubernetes_sysctl_config
kubernetes_install_host_packages "$KUBERNETES_VERSION"
# For online always download the kubernetes.tar.gz bundle.
# Regardless if host package... | the_stack |
# Set script options
# https://kvz.io/bash-best-practices.html
# https://tldp.org/LDP/abs/html/options.html
set -o errexit # exit script when any command fails
# set -o nounset # exit if using undefined variables
set -o pipefail # exit and return the exist status of last command in pipe to fai... | the_stack |
# This script is implemented as POSIX-compliant.
# It should work on sh, dash, bash, ksh, zsh on Debian, Ubuntu, Fedora, CentOS
# and probably other distros of the same families, although no support is offered for them.
[ $(id -u) != 0 ] && whiptail --title '/!\ WARNING - Not runned as root /!\' --msgbox " You don't r... | the_stack |
###############################################################################
#
# Aim is to submit simulation/reconstruction jobs for multiplicity dependence check
# Functions
# IonTailXTalkScan() --> runs over IonTail ON/OFF, XTALK ON/OFF cases in rec.C and sim.C
# submitMultiplicityScan() --> main func... | the_stack |
SCRIPT=$(readlink -f "$0") && cd $(dirname "$SCRIPT")
# --- Script Init ---
mkdir -p log
rm -R -f log/*
touch log/stderror.err
ktools_monitor.sh $$ & pid0=$!
exit_handler(){
exit_code=$?
kill -9 $pid0 2> /dev/null
if [ "$exit_code" -gt 0 ]; then
echo 'Ktools Run Error - exitcode='$exit_code
else... | the_stack |
# This script creates the data directories for us to run a syllable-based system
# in the directory with the same name as this, but with the -syllables suffix.
# dependency and build a LM on the phone level. We get the syllable sequences from one
# of the existing systems' alignments.
set -e #Exit on non-z... | the_stack |
# TODO: check gcc/g++
echo "check gcc/g++/gdb/make/openssl-devel"
echo "depends tools are ok"
#####################################################################################
# for Ubuntu
#####################################################################################
function Ubuntu_prepare()
{
uname -v|... | the_stack |
# Copyright 2017 Google LLC.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
#... | the_stack |
# Copyright xmuspeech (Author:Snowdar 2018-11-07)
set -e
#####################
# All processes are tuning and you could use bool varibles conveniently to ignore what process you don't need.
#
# All datasets should be in same directory (datadir and vectordir), and should have a fixed name, such as
#
# data/plp_... | the_stack |
# The script supports directly setting parameters for update, skipping interactive selection
# openwrt-update-allwinner ${OPENWRT_FILE} ${AUTO_MAINLINE_UBOOT} ${RESTORE_CONFIG}
# E.g: openwrt-update-allwinner openwrt_s905d.img.gz yes restore
# E.g: openwrt-update-allwinner openwrt_s905d.img.gz no no-restore
# You can ... | the_stack |
on_crash_status()
{
local _ret=0
case "${on_crash}" in
restart)
_ret=1
;;
destroy)
_ret=0
;;
*)
logger -t bhyverun.sh "unknown value for on_poweroff: ${on_poweroff}"
_ret=0 # use default behavior
;;
esac
return ${_ret}
}
# FreeBSD 11
# EXIT STATUS
# Exit status indicates how the VM... | the_stack |
###############################################################################
# This script simplifies the installation and creation of certs for E2E tests
###############################################################################
set -e
##########################################################################... | the_stack |
export walkthrough_path="/tf/caf/walkthrough"
export config_name="demo"
function execute_walkthrough {
clone_landing_zones
clone_configurations
select_walkthrough_config
generate_walkthrough_assets
execute_deployments
}
function clone_landing_zones {
echo_section_break
echo "************************... | the_stack |
llengua=$1
input_dir=$2
audio_dir=$input_dir/audio
transcripts=$input_dir/transcripts
local_dir=/tmp/$llengua
data_dir=$local_dir/train
log_dir=$local_dir/log
#+ bash -x local/prepare_audio_data.sh input_chv/audio input_chv/transcripts data_chv train
####################################################################... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.