text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
# test against first argument or search first file matching "leproxy*.php"
bin=${1:-$(ls -b leproxy*.php | head -n1 || echo leproxy.php)}
echo "Testing $bin"
# test command line arguments
out=$(php $bin --version) && echo -n "OK (" && echo -n $out && echo ")" || (echo "FAIL: $out" && exit 1) || exit 1
out=$(php $bin -... | the_stack |
# Environment variables
FLB_BIN=`realpath ../../../build/bin/fluent-bit`
FLB_RUNTIME_SHELL_PATH=`realpath $(pwd)/../`
FLB_RUN_TEST=`realpath $FLB_RUNTIME_SHELL_PATH/../lib/shunit2/shunit2`
# Colorize shunit2
bold=$(tput bold)
normal=$(tput sgr0)
SHUNIT_TEST_PREFIX="$bold==========> UNIT TEST: $normal"
# 1. Normal Rot... | the_stack |
CURRENT_DIR="$(dirname "$(realpath "$0")")"
AUTOTUNE_REPO="${CURRENT_DIR}/../.."
# variables to keep track of overall tests performed
TOTAL_TESTS_FAILED=0
TOTAL_TESTS_PASSED=0
TOTAL_TEST_SUITES=0
TOTAL_TESTS=0
# variables to keep track of tests performed for each test suite
TESTS_FAILED=0
TESTS_PASSED=0
TESTS=0
# By... | the_stack |
############## Credz dumper ##############################
# This script will try to grab all stored password/secrets
# on a linux box.
# Defaults vars
ROOT=0 #If set to 1, we'll try to get files usually owned by root
#will produce errors, but could eventually get some things
TAR=0 #should we copy and save f... | the_stack |
if [ `uname -s` = "FreeBSD" ]; then
MAKE=gmake
else
MAKE=make
fi
projects="llvm cfe dragonegg test-suite"
# Base SVN URL for the sources.
Base_url="http://llvm.org/svn/llvm-project"
Release=""
Release_no_dot=""
RC=""
do_checkout="yes"
do_ada="no"
do_objc="yes"
do_fortran="no"
do_64bit="yes"
do_debug="no"
do_... | the_stack |
set -e
set -x
SED=$(which gsed >/dev/null 2>&1 && echo gsed || echo sed)
MAKE=$(which gmake >/dev/null 2>&1 && echo gmake || echo make)
DATE=$(which gdate >/dev/null 2>&1 && echo gdate || echo date)
if [[ -z "$OS" ]] ; then
OS=$(uname)
fi
is_windows=false
if [[ "$OS" = "Windows_NT" ]] ; then
is_windows=true
... | the_stack |
#################################################################################
# #
# TPM2 regression test #
# Written by Ken Goldman #
# IBM Thomas J. Watson Research Center #
# $Id: testbind.sh 1277 2018-07-23 20:30:23Z kgoldman $ #
# #
# (c) Copyright IBM Corporation 2... | the_stack |
# +-----------------------------------------------------------------------------------------------+
# function definitions
# +-----------------------------------------------------------------------------------------------+
function print_help() {
echo "" && \
echo "PrepareSherpaLibs version 4.2" && echo && \
... | the_stack |
shell实例手册
0说明{
手册制作: 雪松
更新日期: 2013-12-06
欢迎系统运维加入Q群: 198173206
请使用"notepad++"打开此文档,"alt+0"将函数折叠后方便查阅
请勿删除信息,转载请说明出处,抵制不道德行为。
错误在所难免,还望指正!
# shell实例手册最新下载地址:
http://hi.baidu.com/quanzhou722/item/f4a4f3c9eb37f02d46d5c0d9
# LazyManage系统批量管理软件下载(shell):
http://hi.baidu.com/quanzhou722/item/4ccf7e88a877eaccef... | the_stack |
SOLO_LAD_DIR=/var/lib/waagent/Microsoft.Azure.Diagnostics.LinuxDiagnostic-*
OMS_LAD_DIR=/var/opt/microsoft/omsagent/LAD
OMS_UNINSTALL_AGENT=uninstall.sh
WAAGENT_DIR=/var/lib/waagent
WAAGENT_XML=$WAAGENT_DIR/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux.*.manifest.xml
STOPPED_WAAGENT=0
# error codes
UNSUPPOR... | the_stack |
intra_line_diff='--word-diff-regex="[^[:space:]]|([[:alnum:]]|UTF_8_GUARD)+"'
intra_line_less='LESS="-R +/-\]|\{\+"' # jump directly to changes in diffs
#-----------------------------------------------------------------------------
# n = no repository
#------------------------------------------------------------------... | the_stack |
set -e
NUM=10000000
if [ $# -eq 1 ];then
DATA_DIR=$1
elif [ $# -eq 2 ];then
DATA_DIR=$1
STAT_FILE=$2
fi
# On the production build servers, set data and stat
# files/directories not in /tmp or else the tempdir cleaning
# scripts will make you very unhappy.
DATA_DIR=${DATA_DIR:-$(mktemp -t -d rocksdb_XXXX)}
STAT... | the_stack |
do_usage()
{
echo "Usage: This script is used internally by SAS Viya-ARK MMSU playbooks."
}
do_stopms()
{
local LIST=$(ls sas-viya-* 2>/dev/null|grep -v cascontroller)
do_stop "$LIST"
}
do_stopmt()
{
local LIST=$(ls sas-*-all-services 2>/dev/null)
do_stop "$LIST"
}
do_stopcas()
{
local LIST=$(ls sas-*-cascontr... | the_stack |
# Copyright 2018 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | the_stack |
################################################################################
#
# DESCRIPTION:
#
# This script will take a list of BED files and create data sources for
# Funcotator from them.
# This process involves but is not limited to:
#
# - Remove tracks
# - Making coordinates 1-based
# - Adding column h... | the_stack |
OPENSSL=${OPENSSL:-openssl}
DOMAIN=${DOMAIN:-my-sni-test.org}
DIR=${DIR:-$PWD/sni}
# List of hostnames automatically created by default.
NAMES=${NAMES:-ape nut pear apple banana}
# IP address these hostnames are bound to.
IP=${IP:-127.0.0.1}
# A certificate password for the .p12 files of the client
# authentication ... | the_stack |
######
# BEGIN DEFINITIONS
######
# Function to check the command return status
function check_return
{
if [ $1 -ne 0 ]; then
echo "Call failed - aborting script"
echo "Error in $2"
exit $1
fi
}
# Function to make sure that I'm leaving nothing undefined in the
# paths.config file that needs... | the_stack |
tfp="azurerm_virtual_machine"
prefixa="vm"
if [ "$1" != "" ]; then
rgsource=$1
else
echo -n "Enter name of Resource Group [$rgsource] > "
read response
if [ -n "$response" ]; then
rgsource=$response
fi
fi
azr=`az vm list -g $rgsource`
count=`echo $azr | jq '. | length'`
if [ "$count" -gt "0"... | the_stack |
# 一键安装Trojan-GFW代理,Hexo博客,Nextcloud等應用程式.
# One click install Trojan-gfw Hexo Nextcloud and so on.
# MIT License
#
# Copyright (c) 2019-2022 JohnRosen
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the... | the_stack |
ut_random_run_script_name(){ python -c 'import uuid; print("run_%s.sh" % uuid.uuid4())'; }
ut_convert_md_to_rst(){ pandoc "$1" -f markdown -t rst -o "$2"; }
ut_convert_rst_to_md(){ pandoc "$1" -f rst -t markdown -o "$2"; }
ut_extract_python_code_from_docs() {
out_fp=`echo "${1%.*}"`".py" &&
python docs/main_ge... | the_stack |
#-- Main variables
#set -x
debug=1
portBase=31850
name="$0"
args="$@"
hostname=`hostname`
hn=`hostname | grep -o '^[a-z0-9]*'`
kernel=`uname -r`
#-- doDebug
doDebug() {
if [ $debug -ne "0" ] ; then
echo "$1"
fi
}
#-- Usage
printUsage() {
echo "USAGE: $name --exp=<#> [ARGS]"
echo ' [(-b|--local_buffer)... | the_stack |
# pkgcheck.sh
# 2019 - Armin Briegel - Scripting OS X
# this script will look into pkg files and warn if any of the installation scripts
# use one of the following shebangs:
#
# /bin/bash
# /usr/bin/python
# /usr/bin/perl
# /usr/bin/ruby
#
# also checks for signatures and notarization and other information
functi... | the_stack |
#variables
insert_access_key="1234567890"
insert_secret_key="0987654321"
#Installing dependencies
#Pip
yum install python-pip
#Boto3
pip install boto3
#Plugin configuration
#backup plugin config file
cp /var/ossec/etc/ossec.conf /var/ossec/etc/ossec.conf.bk
#overwrite old config file with new config
cat <<EOF > /var/o... | the_stack |
. ./cmd.sh
. ./path.sh
set -e
train_nj=40
nnet_nj=40
decode_nj=80
# 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... | the_stack |
# this scripts has a number of tests for SIMD. It can be invoked
# on the host or on a QEMU machine.
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
host_cpu=`uname -p`
results=${script_dir}/test_simd.results
nprocs=$(grep -c ^processor /proc/cpuinfo)
# runs unit tests and save the results
test_unit(){... | the_stack |
#set -x
### Setup some variables.
### GIT_COMMIT and BUILD_URL are set by Hudson if it is run by patch process
### Read variables from properties file
. `dirname $0`/test-patch.properties
###############################################################################
parseArgs() {
case "$1" in
QABUILD)
##... | the_stack |
# Author: Gabriel Staples
# This file is part of eRCaGuy_dotfiles: https://github.com/ElectricRCAircraftGuy/eRCaGuy_dotfiles
# sync_git_repo_from_pc1_to_pc2.sh
# - Sometimes you need to develop software on one machine (ex: a decent laptop, running an IDE like Eclipse)
# while building on a remote server machine (e... | the_stack |
#/*******************************************************************************
#
# This source code is provided as is, without any express or implied warranty.
#
# 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 cop... | the_stack |
# Use extended glob. We can do negative matches for instance. This *has* to be defined here.
shopt -s extglob
# blame: Mikolaj Krzewicki, mkrzewic@cern.ch
# this script runs the CPass0/CPass1 train
# produced OCDB updates are local
#some defaults
#autoOCDB=0
defaultOCDB="raw://"
#runNumber=167123
#makeflowPath="/hera... | the_stack |
# shellcheck disable=SC2034
read -r -d '' __usage <<-'EOF' || true # exits non-zero when EOF encountered
-f --file [arg] Config Filename to use. Default="./c12.ini"
-v Enable verbose mode, print script as it is executed
-g --generate-config-example Generate a config file example
-d --debug ... | the_stack |
BASEDIR="$( dirname "$0" )"
cd "$BASEDIR"
ABSOLUTE_FOLDER_PATH=`pwd`
ABSOLUTE_BUILD_PATH="$ABSOLUTE_FOLDER_PATH"/build/Release
PROJECT_FOLDER="packagesutil"
SCHEME_NAME="packagesutil"
## Create the build folder if needed
/bin/mkdir -p build/Release
/usr/bin/xcodebuild clean build -configuration Release -scheme "$S... | the_stack |
set -e
set -o pipefail
[[ -n $DEBUG ]] && set -x
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
[[ -n "${SSH_CONFIG}" ]] && SSH_OPTIONS=("${SSH_OPTIONS[@]}" "-F" "${SSH_CONFIG}")
[[ -n "${SSH_KEYFILE}" ]] && SSH_OPTIONS=("${SSH_OPTIONS[@]}" "-i" "${SSH_KEYFILE}")
# get the controller node public ip addre... | the_stack |
init_global_variables () {
# For coloring console output
BLUE='\033[1;34m'
GREEN='\033[0;32m'
NC='\033[0m'
USAGE="
Usage:
che [COMMAND]
start Starts server with output in the background
stop Stops ${CHE_MINI_PRODUCT_NAME} server
run ... | the_stack |
if test x$1 = x; then
echo usage is: UpdReleaseVer version
echo example: ./UpdReleaseVer.sh 1.0.0.0
exit 0
fi
# Update NuGet versions
find ../../ProjectTemplates/NuGet/*.nuspec -type f -exec sed -i '' "s#<version>.*</version>#<version>$1</version>#g" {} \;
# Update NuGet release note versions
find ../../Proje... | the_stack |
#-----------------------------------------------------------------------
# SAMPLE SCRIPT RUNNING A NUMBER OF TESTS ON ATOMIC OPERATIONS AND LOCKS
#-----------------------------------------------------------------------
num_repeats=3
run_individual_tests=0
run_atomic_ops=0
run_atomic_latency=0
run_uncontended=0
run_lat... | the_stack |
# OPTIONS: Useful if you have to rerun the script after an error
# NOTE: Most things are ok to re-run except possibly DB create
# Db seed tasks and DB peer authentication fix
# no_rvm_ruby - Do not try to update RVM and Ruby
# no_package - Do not install aditional packages
# remove_libreoffice - Removes Lib... | the_stack |
set -e
## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || readlink -f "${BASH_SOURCE[0]}")"
. "$(dirname "$THIS_SCRIPT")/../resources/build/build-utils.sh"
## END STANDARD BUILD SCRIPT INCLUDE
KEYMAN_MAC_BASE_PATH="$KEYMAN_ROOT/mac... | the_stack |
# Based on tdnn_7o from egs/swbd/s5c, with larger network dimensions and different regularization coefficients.
# ./local/chain/compare_wer_general.sh tdnn_5b_sp
# System tdnn_5b_sp
# WER on eval2000(tg) 11.7
# WER on eval2000(fg) 11.5
# WER on rt03(tg) 11.9
# WER on rt03(fg) ... | the_stack |
# Set an initial value
function exportParams() {
dbhost=`grep 'MySQLEndPointAddress' ${PARAMS_FILE} | awk -F'|' '{print $2}' | sed -e 's/^ *//g;s/ *$//g'`
dbuser=`grep 'DBMasterUsername' ${PARAMS_FILE} | awk -F'|' '{print $2}' | sed -e 's/^ *//g;s/ *$//g'`
dbpassword=`grep 'DBMasterUserPassword' ${PARAMS_F... | the_stack |
#< Nagios plugin wrapper around poolstats.sh to check http-based pools
# for host availability as well as HTTP sanity
# Executables
BASENAME="/usr/bin/basename"
CUT="/usr/bin/cut"
ECHO="/bin/echo"
EGREP="/bin/egrep"
GREP="/bin/grep"
POOLSTATS="/home/bigip/bin/poolstats.sh"
SED="/usr/bin/sed"
# Variable initialistion... | the_stack |
#
# Tests for the extension since version 0.5.0. They don't replace SQL based ones, for now need to run both
#
# It is expected that you run this script as a PostgreSQL superuser, for example:
#
# PGUSER=postgres bash ./test.sh
#
DATABASE=test_extension
CMD='echo psql'
CMD=psql
SED=sed
OK=0
PARTIALOK=0
function r... | the_stack |
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use... | the_stack |
ZSTACK_INSTALL_ROOT=${ZSTACK_INSTALL_ROOT:-"/usr/local/zstack"}
CENTOS6='CENTOS6'
CENTOS7='CENTOS7'
UBUNTU1404='UBUNTU14.04'
UPGRADE='n'
FORCE='n'
MANAGEMENT_INTERFACE=`ip route | grep default | head -n 1 | cut -d ' ' -f 5`
SUPPORTED_OS="$CENTOS6, $CENTOS7, $UBUNTU1404"
ZSTACK_INSTALL_LOG='/tmp/zstack_installation.log... | the_stack |
echo
echo "Qemu examples/tests prepared to be executed with qemu/win32."
echo "Executed commandlines will be printed to screen."
echo
echo "On execution each test needs to download, most test only a few 10 MB or less,"
echo "but several up to some 100MB."
read -p "Only accept reasonable downloads? ([y]|n) " TEST
[ "n" ... | the_stack |
# Set up: ------------------------------------------------------------
if [ `uname` != "Linux" ]; then
if [[ $mxcidir != "" && $mxlibdir != "" ]]; then
# This is test debug environment. Set vars accordingly
MXCI="$mxcidir/mxci"
autoloc="$mxlibdir"
else
# This is a production environment.
... | the_stack |
# Copyright (c) 2021 Thomas Ward <thomas@thomasward.com>
# Copyright (c) 2019 MIT Laboratory for Computational Physiology
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restrictio... | the_stack |
typeset -gA ZCOMET
ZCOMET[SCRIPT]=$0
autoload -Uz is-at-least
if ! is-at-least 4.3.11; then
zcomet() {
>&2 print 'zcomet only supports Zsh v4.3.11+.'
return 1
}
zcomet; return 1
fi
# Add zcomet functions to FPATH and autoload some things
fpath=( "${ZCOMET[SCRIPT]:A:h}/functions" "${fpath[@]}" )
autoloa... | the_stack |
set -e
set -o pipefail
set -u
source "$NIX_BUILD_TOP"/.attrs.sh
trap "exitHandler" EXIT
################################ Hook handling #################################
# Run all hooks with the specified name in the order in which they
# were added, stopping if any fails (returns a non-zero exit
# code). The hooks ... | the_stack |
################################################ SETUP ################################################
dep_build_core=(
libasound2-dev
libevdev-dev
liblua5.3-dev
libola-dev
libjack-jackd2-dev
python3-dev
libssl-dev
build-essential
pkg-config
git
)
dep_build_osx=(
ola
lua
openssl@1.1
jack
python3
)
dep... | the_stack |
#######################################################################
#
# Linux on Hyper-V and Azure Test Code, ver. 1.0.0
# Copyright (c) Microsoft Corporation
#
# All rights reserved.
# Licensed under the Apache License, Version 2.0 (the ""License"");
# you may not use this file except in compliance with the Licen... | the_stack |
BASENAME=$0 #command line with relative path to this file
ARGS=$@
BASEDIR=$(pwd) #get base folder where command has been issued
cd $(dirname $BASENAME) #go to setup folder
SETUPDIR=$(pwd) #get absolute path of setup folder
i_folder="INSTALL_FOLDER"
c_file="CONFIG_FILE"
dep_list="GMP,MPFR,MPC,GCC,SCONS,FFTW,SZIP,HDF5,N... | the_stack |
if (( ${#LOCALRT} < 4 ))
then
if (( ${#HCALDAQ_SW_LOC} > 3 && ${#HCAL_CMSSW_RELEASE} > 3 ))
then
pushd $HCALDAQ_SW_LOC/src/$HCAL_CMSSW_RELEASE/src >/dev/null
eval `scramv1 runtime -sh`
popd >/dev/null
fi
fi
if (( ${#LOCALRT} < 4 ))
then
echo Please setup your runtime environment!
exit
fi
ARG1=... | the_stack |
alias wget="$busybox wget"
showInfo() {
setupFiles;
checkEP;
echo -e $Y"$divider"$N; sleep 0.05;
echo -e $Y'ϟ C O M P A T I B I L I T Y I N F O -'$N; sleep 0.05;
echo -e $Y"$divider"$N; sleep 0.05;
# Check shell
checkShell & pid=$!
spinPID "Shell: Checking"
if [[ checkShell != 0 ]]... | 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_099_CASE() {
# here we run ddl to make sure we flush first check point in syncer
# otherwise the worker may dump again when restart
run_sql_so... | the_stack |
SOURCE_DIR="`pwd`/_source"
BUILD_DIR="`pwd`/_build"
INSTALL_DIR="`pwd`/_install"
set -ex
mkdir -p $SOURCE_DIR
mkdir -p $BUILD_DIR
mkdir -p $INSTALL_DIR
RELEASE_MODE=0
if [ "$1" = "--release" ]; then
RELEASE_MODE=1
fi
CMAKE_VERSION="3.17.0"
CMAKE_VERSION_FILE="$INSTALL_DIR/cmake.version"
CMAKE_CHANGED=0
if [ ! -e ... | the_stack |
# shellcheck disable=SC1091
# Load generic libraries
. /opt/bitnami/scripts/libfs.sh
. /opt/bitnami/scripts/libos.sh
. /opt/bitnami/scripts/libnet.sh
. /opt/bitnami/scripts/libfile.sh
. /opt/bitnami/scripts/libvalidations.sh
. /opt/bitnami/scripts/libpersistence.sh
. /opt/bitnami/scripts/libservice.sh
# Load database... | the_stack |
PYTHON_CMD="python"
JSCOMPILE_CMD="java -jar lib/closure-compiler/build/compiler.jar --flagfile=compiler.flags"
CKSUM_CMD="cksum" # chosen because it's available on most Linux/OS X installations
BUILD_DIR="build"
BUILD_TPL_DIR="$BUILD_DIR/templates"
cd ${0%/*}
PKG_VERSION=`git rev-parse HEAD`
e2e_assert_dependencies()... | the_stack |
ERROR=0
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. "${DIR}/config"
echo "##########################################################################################"
echo "#"
echo "# 3. C H E C K I N G M Y S Q L C O N N E C T I O N S E T T I N G S"
echo "#"
echo "##############################... | the_stack |
# Dependency: libedit-devel libxml2-devel ncurses-devel python-devel swig
# ======================================= 配置 =======================================
LLVM_VERSION=12.0.0
COMPOMENTS_LIBEDIT_VERSION=20210419-3.1
COMPOMENTS_PYTHON_VERSION=3.9.5;
COMPOMENTS_SWIG_VERSION=v4.0.2;
COMPOMENTS_ZLIB_VERSION=1.2.11;
COM... | the_stack |
# Main execution script for the modernish regression test suite.
# See README.md or type 'modernish --test -h' for more information.
#
# --- begin license ---
# Copyright (c) 2019 Martijn Dekker <martijn@inlv.org>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee... | 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-d0a16fa8" #extract
#AMI="ami-7428ff0c" #extract
#INSTANCE_TYPE="p2.xlarge"
#INSTANCE_TYPE="g3.4xlarge... | the_stack |
# USE THIS SCRIPT FOR BASIC SYSTEM STATUS DEBUG INFO
# load code software version
source /home/admin/_version.info
## get basic info (its OK if not set yet)
source /home/admin/raspiblitz.info 2>/dev/null
source /mnt/hdd/raspiblitz.conf 2>/dev/null
# for old nodes
if [ ${#network} -eq 0 ]; then
echo "backup info: n... | the_stack |
setup() {
export ALAMOFIRE_VERSION="4.8.2"
export RESULT_VERSION="4.0.0"
rm -rf $BATS_TMPDIR/Rome-Tests
mkdir -p $BATS_TMPDIR/Rome-Tests
cp integration-tests/engine.sh $BATS_TMPDIR/Rome-Tests/
cd $BATS_TMPDIR/Rome-Tests
if [ "$BATS_TEST_NUMBER" -eq 1 ]; then
printf "github \"Alamofire/Alamofir... | the_stack |
# Cuda and friends installation done right.
# Switch default Cuda version using symbolic link: cuda.switch 9.2
# Install Cuda: cuda.install.cuda 10.0
# Install cuDNN to CUDA_HOME: cuda.install.cudnn 7.5
# Install NCCL to CUDA_HOME: cuda.install.nccl 2.4
# Install Cuda, cuDNN and NCCL: cuda.install 10.0 7.5 2.4
# Autho... | the_stack |
# get trackpad battery %
tpb() {
BATTLVL=$(ioreg -r -l -n AppleHSBluetoothDevice | rg '"BatteryPercent" = |^ \| "Bluetooth Product Name" = ' | sed 's/ | "Bluetooth Product Name" = "Magic Trackpad 2"/ \| Trackpad:/' | sed 's/ | | "BatteryPercent" = / /')
BATTRPT=${BATTLVL//[$'\t\r\n|']/} # Strips all... | the_stack |
# exit on errors
set -e
ROOT_DIR=$(readlink -f $(dirname $0))/../..
export CROSS_COMPILE_DIR=$ROOT_DIR/cross_compiling
export SPDK_DIR=$ROOT_DIR/spdk
export DPDK_DIR=$SPDK_DIR/dpdk
# Get Toolchain
function get_cc_toolchain() {
cd $CROSS_COMPILE_DIR
if [ ! -d "$CROSS_COMPILE_DIR/gcc-arm-10.2-2020.11-x86_64-aarch64-... | the_stack |
SURPI_version="1.0.22"
optspec=":f:hvz:"
bold=$(tput bold)
normal=$(tput sgr0)
green='\e[0;32m'
red='\e[0;31m'
endColor='\e[0m'
host=$(hostname)
scriptname=${0##*/}
while getopts "$optspec" option; do
case "${option}" in
f) config_file=${OPTARG};; # get parameters from config file if specified
h) HELP=1;;
v) ... | the_stack |
echo
echo "----------------------------------------------"
echo "------- tests: lws attack.sh"
echo
SERVER=127.0.0.1
PORT=7681
LOG=/tmp/lwslog
A=`which libwebsockets-test-server`
INSTALLED=`dirname $A`
SHAREDIR=$INSTALLED/../share/libwebsockets-test-server
CORPUS=$SHAREDIR/test.html
LWS_NC=./bin/lws-minimal-raw-n... | the_stack |
# This script should always run as if it were being called from
# the directory it lives in.
script_directory="$(perl -e 'use File::Basename;
use Cwd "abs_path";
print dirname(abs_path(@ARGV[0]));' -- "$0")"
cd "$script_directory" || exit
print_description() {
# shellcheck disable=SC2016
echo 'This script ca... | the_stack |
Usage()
{
echo 'Usage: hitachiexport.sh [sanity conf file] [setup | regression | delete | deletevol]'
echo ' [setup]: Run on a new ViPR database, creates SMIS, host, initiators, vpools, varray, volumes'
exit 2
}
SANITY_CONFIG_FILE=""
# The token file name will have a suffix which is this shell's PID
# It w... | the_stack |
usage() {
echo "Usage: sh $0 <add> <ns_domain_name> <ipv6address> ['transfer_net'] ['notify_addr']"
echo "Sample: sh $0 add yeti-ns.domain.com x:x:x::2"
echo "Sample: sh $0 add yeti-ns.domain.com x:x:x::2 'x:x:x::2 x:x:x::3'" # add transfer list
echo "Sample: sh $0 add yeti-ns.domain.com x:x:x::2 'x:x... | the_stack |
source ./shared.functions.sh
START_DIR=$PWD
WORK_DIR=$START_DIR/../../../../../../.macosbuild
mkdir -p $WORK_DIR
WORK_DIR=$(abspath "$WORK_DIR")
SHA_HASH_DIR=$START_DIR/../..
SHA_HASH_DIR=$(abspath "$SHA_HASH_DIR")
source ./mac.02.libindy.env.sh
if [ -d $WORK_DIR/vcx-indy-sdk ]; then
#rm -rf $WORK_DIR/vcx-indy-sd... | the_stack |
##################################################################################################
# Author: Shubham Pathak #
# Description: Auto setup bash script to setup required programs after doing fresh install. #
# Tested against Debi... | the_stack |
# Be careful:
set -e
# Limit the search path:
export PATH="/usr/sbin:/sbin:/usr/bin:/bin"
# Set to '1' if you want to ignore all warnings:
FORCE=0
# By default, we use 'slhome.img' as the name of the LUKS home containerfile.
DEF_SLHOME="slhome"
SLHOME="${DEF_SLHOME}"
# By default, we use 'persistence' as the name o... | the_stack |
# This script provides configuration of resource locations and settings
# ==================================================================
# General Environment Variables
# ==================================================================
# Maven repository, used for downloading jar dependencies when required
expo... | the_stack |
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile
#adg_DevKitConfig
########################################################
# Fix BuildForge Agent Issue #
########################################################
if [ -f "/etc/pam.d/bfagent" ]; then
mv "/etc/pam.d/bfagent"... | the_stack |
#
# This script is used to run benchmarks for readjoiner and some related
# programs and save the session transcrips.
#
#
# Directories and filenames: (<TOP>= main working dir)
# [auto] means automatically created/mantained from this script
#
TOP="$HOME/local"
LOGSDIR="$HOME/logs"
READSETSDIR="$TOP/readsets"
REFSEQS="... | the_stack |
__vm_hostname() {
local resource=${COMP_WORDS[2]}
local resource_array=(${resource//// })
echo "${resource_array[1]}"
}
__vm_hostname_is_valid() {
local hostname=$(__vm_hostname)
case "${hostname}" in
define|status|backup|snapshot)
return 1
;;
*)
return 0
;;
esac
}
_es() {
local cur prev actions ... | the_stack |
# Exit on error.
set -e
. ${IMPALA_HOME}/bin/impala-config.sh > /dev/null 2>&1
SKIP_METADATA_LOAD=0
SKIP_SNAPSHOT_LOAD=0
SNAPSHOT_FILE=""
LOAD_DATA_ARGS=""
JDBC_URL="jdbc:hive2://localhost:11050/default;"
DATA_LOADING_LOG_DIR=${IMPALA_TEST_CLUSTER_LOG_DIR}/data_loading
mkdir -p ${DATA_LOADING_LOG_DIR}
while [ -n "$*"... | the_stack |
PARENT_PATH=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
HOME_DOTS="$PARENT_PATH/home_dots/"
DOT_CONFIG="$PARENT_PATH/.config/"
USER_CONFIG="$HOME/.config/"
RESOURCES="$PARENT_PATH/resources/"
PKGS="$PARENT_PATH/pkgs/"
THIS=$(basename "$0")
PFX="~~~~~~~~~~~~ "
BANNER="----------------------------↓↓----------------... | the_stack |
setup() {
mkdir -p /kontinuous/{src,status}/${KONTINUOUS_PIPELINE_ID}/${KONTINUOUS_BUILD_ID}/${KONTINUOUS_STAGE_ID}
}
prepare_kube_config() {
# replace token for kube config
sed -i "s/{{token}}/$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)/g" /root/.kube/config
}
clone_source() {
# clone source code ... | the_stack |
# ----------------------------------------------------------------------
# name: IPABuildShell.sh
# version: 3.0.4(225)
# createTime: 2018-07-30
# description: iOS 自动打包
# author: itx
# email: 335418265@qq.com
# github: https://github.com/aa335418265/IPABuildShell
# -------------------... | the_stack |
# get basic system information
# these are the same set of infos the WebGUI dialog/controler has
source /home/admin/raspiblitz.info
# SETUPFILE
# this key/value file contains the state during the setup process
SETUPFILE="/var/cache/raspiblitz/temp/raspiblitz.setup"
# remember original setupphase
orgSetupPhase="${setu... | the_stack |
set -ex -o pipefail -o errtrace -o functrace
function catch() {
echo "error $1 on line $2"
exit 255
}
trap 'catch $? $LINENO' ERR TERM INT
# build-manifests is designed to populate the deploy directory
# with all of the manifests necessary for use in development
# and for consumption with the operator-lifecy... | the_stack |
exec 2> test_all.sh.log
#
# All the tests below manipulate data within the ROOT_OU. Hence, every invocation of this script must use a
# different ROOT_OU to avoid interference.
#
ROOT_OU="AdtRootOu"
ROOT_OU_NON_SCHEMA=${ROOT_OU}NS
#########################
# CONNECTION PROPERTIES #
#########################
#
# We n... | the_stack |
#======================================================================================================================
# Title : syno_docker_update.sh
# Description : An Unofficial Script to Update or Restore Docker Engine and Docker Compose on Synology
# Author : Mark Dumay
# Date : Septembe... | the_stack |
SELFDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
TOPDIR="$(dirname $(dirname ${SELFDIR}))"
ARG_APIENDPOINT="https://api.cattlepi.com"
ARG_APIKEY="NONE"
ARG_INCREMENTAL=0
ARG_SHOWONLY=0
ARGS_SHOWHELP=0
ARG_DEVICE="default"
# lifecycle hooks
ARG_H_BEFORE="NONE"
ARG_H_AFTER="NONE"
# payload arguments
ARG_P_BO... | the_stack |
# ADDITIONAL_DOCKER_ARGS is provided for external injection
# of required special parameters in order to support extension
# of DNS handling and HOSTS entries via environment settings.
# It is thus required that it does not get assigned any value.
echo "### start build_docker_image.sh for ILT onboard ###"
set -x
set ... | the_stack |
# Usage
#
# See cert-update-manuale-CN.sh
# @TODO Add apache SSLOpenSSLConfCmd for OpenSSL 1.0.2+
Die()
{
local RET="$1"
shift
echo -e "$*" 1>&2
exit "$RET"
}
Readkey()
{
read -r -p "[cert-update.sh] Press any key ..." -n 1 -s
echo
}
Check_requirements()
{
if [[ $EUID -ne 0 ]]; then
... | the_stack |
#
# Flags
#
WITHFORTRAN=1
DEBUGMODE=0
WITHLEX=0
WITHMESSAGE=0
WITHMETIS=0
WITHPARMETIS=0
WITHTOOLS=0
REMOVEMAKEFILES=0
GATHERMAKEFILES=0
MESSAGEONLY=0
LEXONLY=0
SERIAL=1
WITHREFINER=0
WITHPARACON=0
WITHMUMPS=0
WITHMKL=0
WITHML=0
WITHLAPACK=0
OLDRESFORMAT=0
#
# Targets
#
ALLBUILDTARGET=""
BUILDTARGET="build-default"
NO... | the_stack |
set -u
set -e
#
# Copyright © 2011, 2012 MLstate
#
# This file is part of Opa.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the right... | the_stack |
# this script will take output histos from CSCValidation and make 'nice' looking .pngs
#
# to run this script, do
# ./makePlots.sh <newfilepath> <reffilepath>
# where <filepath> is the paths to the output root files from CSCValiation
# example: ./makePlots.sh CMSSW_1_8_0_pre8/src/RecoLocalMuon/CSCValidation/test/vali... | the_stack |
set -eo pipefail
# if command starts with an option, prepend mysqld
if [ "${1:0:1}" = "-" ]; then
set -- mysqld "$@"
fi
# skip setup if they want an option that stops mysqld
wantHelp=
for arg; do
case "$arg" in
-"?"|--help|--print-defaults|-V|--version)
wantHelp=1
break
;;
esac
done
# write_conf_... | the_stack |
# Copyright (c) 2020 Baidu, 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 writi... | the_stack |
#!/bin/bash
# username:omm usergroup:dbgrp 工具脚本路径:/home/om/ xml文件路径:/home/om/cluster_1m0s_config.xml
workspace=$1
echo -e "\033[32m 注意事项: \033[0m"
echo -e "\033[32m 1、软件包路径请设置成不同于xml配置的安装路径以及日志保存路径 \033[0m"
echo -e "\033[32m 2、确保软件包路径除了xml配置不含有其他文件 \033[0m"
echo -e "\033[32m 3、需要互信的主机手动修改密码为设置密码 \033[0m"
... | the_stack |
# The list of hooks we can manage with this script
MANAGED_HOOK_NAMES="
applypatch-msg pre-applypatch post-applypatch
pre-commit pre-merge-commit prepare-commit-msg commit-msg post-commit
pre-rebase post-checkout post-merge pre-push
pre-receive update post-receive post-update reference-transaction
p... | the_stack |
#========================================================================================================================
# mk-cn1-environment.sh
#
# by brian mullan (bmullan.mail@gmail.com)
#
# Purpose:
#
# Install the apt tool to speed up apt's thru multiple threads/connections to the repositories
# Install a local ... | the_stack |
set -x # 调试方式执行
#----------------------------------------日志格式------------------------------------------------------#
alias ECHO_LOG='echo `date +%F%n%T` hostname:`hostname` Line:${LINENO} '
#----------------------------------------参数列表------------------------------------------------------#
p_task_id=${1} ... | the_stack |
# Dependency: swig libedit Python
# ======================================= 配置 =======================================
PREFIX_DIR=/usr/local/llvm-3.5.1
BUILD_TARGET_COMPOMENTS="llvm clang compiler_rt libcxx libcxxabi lldb clang_tools_extra";
BUILD_GCC="gcc-4.6";
# ======================= 非交叉编译 ======================... | the_stack |
set -o errexit
set -o nounset
set -o pipefail
set -o errtrace
KUBE_VERSION="${KUBE_VERSION:-1.14}"
CRIPROXY_DEB_URL="${CRIPROXY_DEB_URL:-https://github.com/Mirantis/criproxy/releases/download/v0.14.0/criproxy-nodeps_0.14.0_amd64.deb}"
NONINTERACTIVE="${NONINTERACTIVE:-}"
NO_VM_CONSOLE="${NO_VM_CONSOLE:-}"
INJECT_LOCAL... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.