text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
# I run this in Debian Jessie container with the following command: # # $ env -i \ # HOME=/root \ # PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ # SHELL=/bin/bash \ # TERM=$TERM \ # systemd-nspawn /chroot/RustBuild/ /bin/bash ~/build-cargo.sh # # Script to build a cargo versi...
the_stack
export LC_ALL=C LANG=C SELF_PATH=$(readlink -f $0) SELF_DIR=$(dirname $(readlink -f $0)) PKG_SRC_PATH=${SELF_DIR%/*}/src . ${SELF_DIR}/functions [[ -r $SELF_DIR/install.config ]] || fail "请先配置 install.config 文件" check_yum_repo () { yum info nginx rabbitmq-server &>/dev/null } check_rabbitmq_version () { local...
the_stack
# print out debug info # set X for Debug, # DEBUG=X # IBM Storage Manager path and exes SMINST="/usr/SMclient" SMBIN=$SMINST SMCLI="$SMBIN/SMcli" # SM_HOST="10.17.200.86" SM_HOST="10.17.200.73 10.17.200.86" SM_PASSWORD="dashb0ard" MOUNT=/usr/sbin/mount UMOUNT=/usr/sbin/umount LSPV=/usr/sbin/lspv LSDEV=/usr/sbin/lsde...
the_stack
Id='$Id$' # Copyright 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert # Distributed under license by the Free Software Foundation, Inc. # This file is part of RCS. # # RCS is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software F...
the_stack
# This shell script will eventually be used as the startup script in the VM. # As of today (7/7/2020) it is used as an alternative to installing the prerequistes with the Deployment Manager. # Determine where this code was executed i.e. in cloud shell or in VM startupscript # TODO # Variables DEPLOY_API_TO_GKE="true...
the_stack
# Copyright 2018 Hossein Zeinali (Brno University of Technology) # 2017 David Snyder # 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2017 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 # # This script dumps training examples (egs) ...
the_stack
# # Copyright (C) 2019 Intel Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # function DEBUG() { [[ -n $(env | grep "\<DEBUG\>") ]] && $@ } DEBUG set -xEevuo pipefail function help() { echo "test_wamr.sh [options]" echo "-s {suite_name} test only one suite (spec...
the_stack
SERIAL=1 DEBUGMODE=0 REMOVEMAKEFILES=0 GATHERMAKEFILES=0 WITHMETIS=0 WITHPARMETIS=0 WITHTOOLS=0 WITHRCAP=0 WITHREFINER=0 WITHMKL=0 WITHMUMPS=0 WITHML=0 BUILDTARGET="build-default" NOBUILDTARGET="no-build" BUILDTARGET_SERIAL="build-serial" TOOLSTARGET="build-tools" ALLBUILDTARGET="" SETUPFILE="setup_fistr.sh" USER_CON...
the_stack
# Description: # This script is intended to enable you to create number of Splunk infrastructure # elements on the fly. A perfect tool to setup a quick Splunk lab for training # or testing purposes. https://github.com/mhassan2/splunk-n-box # # List of capabilities: # -Extensive Error and integrity checks # -Load cont...
the_stack
# This script automates building process of docker images located in subdirectories # of this directory. Each subdirectory corresponds to one deep learning framework. # Each framework directory contains subdirectories which names define image tags. # Those tags should be meaningful, specifying, for instance, target dev...
the_stack
# Set up the Vyatta environment declare -i DEC API=/bin/cli-shell-api CFGRUN=/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper shopt -s expand_aliases alias begin='${CFGRUN} begin' alias cleanup='${CFGRUN} cleanup' alias commit='${CFGRUN} commit' alias delete='${CFGRUN} delete' alias end='${CFGRUN} end' alias save='sudo ${CFGRU...
the_stack
## # # mk.sh -- foundational functions, aliases, etc. # ## ### section common # Make bash more POSIX-friendly if [ -n "$BASH_VERSION" ] then # Make bash process aliases in non-interactive mode shopt -s expand_aliases # Unset special variables unset GROUPS fi # Aliases are expanded within functions wh...
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 Lice...
the_stack
# Helper script used in the second edition of the xPack build # scripts. As the name implies, it should contain only functions and # should be included with 'source' by the container build scripts. # ----------------------------------------------------------------------------- function build_binutils() { # https:...
the_stack
set -e source ~/.profile echo echo echo echo echo echo echo ' __ ___. _____.__ __ ' echo '| | ____ _\_ |__ _____/ ____\__|______ _______/ |_ ' echo '| |/ / | \ __ \_/ __ \ __\| \_ __ \/ ___/\ __\' echo '| <| | / \_\ \ ___/| | | || | \/\___ \ | | ' echo '|...
the_stack
# # OpenTravelData (OPTD) utility # Git repository: # https://github.com/opentraveldata/opentraveldata/tree/master/tools # # # Three parameters are needed: # - The path (directory) of the (compressed) CSV-ified schedule data file, # resulting from the pre-processing by the # ../ssim7_to_csv/launch_oag_ssim7_to_c...
the_stack
ble-import lib/core-test _ble_test_canvas_contra= if [[ -x ext/contra ]]; then _ble_test_canvas_contra=ext/contra elif [[ $(printf 'hello world' | contra test 5 2 2>/dev/null) == $' worl\nd ' ]]; then _ble_test_canvas_contra=contra fi function ble/test:canvas/trace.contra { [[ $_ble_test_canvas_contra ]] || ...
the_stack
docker_no_autopull=0 docker_no_autoclean=0 spk_version=0068 if [ "${USER}" == "root" ]; then echo "NO! You can not run this script as ROOT!" exit fi ######################################################################################################################## # CHECK DEPENDENCIES! ######################...
the_stack
# use the "--debug" flag to debug this script; setting the "set -x" option function globals { # Project related global variables local script_path # explicitly resolve the link because realpath doesn't do it on Windows script_path=$(test -L "$0" && readlink "$0" || echo "$0") LOCAL_PATH=$(dirname "$(realpath...
the_stack
set -e set -u . tools/platform_helper.sh # these must be absolute PREFIX=/usr INSTALLDIR=$PWD/release_install_root NODOC="true" # build the book NOMAN="false" # build manpages NOOCAML="false" # build and embed ocaml backend # the version string will be MAJORNAME+BUILDnnnn with nnnn the build number # (MAJORNAME if ...
the_stack
# # Copyright 2016 Trent Mick # Copyright 2016 Joyent, Inc. # # # A generic Bash completion driver script. # # This is meant to provide a re-usable chunk of Bash to use for # "etc/bash_completion.d/" files for individual tools. Only the "Configuration" # section with tool-specific info need differ. Features: # # - supp...
the_stack
# download the code and all its dependencies _go_get() { # Note: keep "github.com/ugorji/go/codec" in quotes, as script pushing to github will replace it appropriately ${go[@]} get -u \ "github.com/ugorji/go/codec" "github.com/ugorji/go/codec"/codecgen \ github.com/tinylib/msgp/msgp github.com/ti...
the_stack
# Tools can be placed in more than one directory. The top-level directory # is for multi-purpose tools, like BCC trace(8) and argdist(8). # Netflix # insert Netflix-internals tools here # cp nflx/... pub/... # BPF Performance Tools (book) # # Do this before BCC and bpftrace, since they may provide newer updated # v...
the_stack
PATH=/bin:/usr/bin:/sbin:/usr/sbin export PATH # This mini shell script will read your logs, output the information to a text file, # and then mail the output to an email address. # This originally was in an AFP548.com server setup guide, which you can download # from http://www.afp548.com/filemgmt/visit.php?lid=68...
the_stack
SCRIPT_DIR=`dirname $0` source "${SCRIPT_DIR}/common_test_tools.sh" # Run Zserio C++ tests test_cpp() { exit_if_argc_ne $# 7 local UNPACKED_ZSERIO_RELEASE_DIR="$1"; shift local ZSERIO_PROJECT_ROOT="$1"; shift local TEST_SRC_DIR="$1"; shift local TEST_OUT_DIR="$1"; shift local MSYS_WORKAROUND_TE...
the_stack
set -u set -e SCRIPTDIR=$(dirname $0) cd $SCRIPTDIR SCRIPTDIR=$PWD SCRIPTNAME=$(basename $0) # OS independent various variables # Warning: only put in DEFAULT_PACKAGES what should be included in our binary package DEFAULT_PACKAGES=(ocaml findlib ulex camlzip ocamlgraph) PRO_PACKAGES=($DEFAULT_PACKAGES cryptokit ocam...
the_stack
CZERO="\033[0m" CRED="\033[31m" CBLUE="\033[34m" CGREEN="\033[32m" CCYAN="\033[36m" CBLACK="\033[30m" CPURPLE="\033[35m" CYELLOW="\033[33m" TBOLD=$(tput bold) TNORMAL=$(tput sgr0) COLOR=${CBLUE} NOCOLOR=${CZERO} ERRCO=${CRED} WARCO=${CYELLOW} PASSEDCO=${CGREEN} # ------------------------------------------------------...
the_stack
HAPPY_PATH_TEST_INJECTION="happy_path_test_injection" test_expand_host_filesystem() { test_name="test_expand_host_filesystem" echot "Test ${test_name} Begins" common_failure_injections="failure_004_final_step_in_workflow_complete \ failure_080_BlockDeviceController.expandVolu...
the_stack
## MOST CURRENT VERSION OF INSTALL SCRIPT USE THIS ONE TO EDIT STUFF # UPDATED: Guy Pyrzak 2/12/2007 # Install script to collect up settings for Ensemble and all servers, then # appropriately edit the rcp properties file and the startup file for the servers. # if they say no then output their previous default settin...
the_stack
set -e wrkdir=/PHShome/hb875/SFARI/DeepSeq/HarrisonCompare/Batch_genotype/clean_genotype cd $wrkdir ##Use SFARI Phase1 to prototype genotyper### ##Get breakpoint bed for SFARI variants## svtk vcf2bed /data/talkowski/Samples/SFARI/deep_sv/asc_540/sv-pipeline/04_variant_resolution/ssc_20170911/batch_integration/SSC....
the_stack
#Based off: #https://github.com/beagleboard/meta-beagleboard/blob/master/meta-beagleboard-extras/recipes-support/usb-gadget/gadget-init/g-ether-load.sh set -e set -x modprobe libcomposite echo "device" > /sys/kernel/debug/48890000.usb/mode usb_gadget="/sys/kernel/config/usb_gadget" usb_idVendor="0x1d6b" usb_idProdu...
the_stack
################################################################################################## # This script downloads the latest JSON checklist in https://github.com/Azure/review-checklists # and performs the Azure Resource Graph queries defined in the tests. # It will output a the test results (successful/fail...
the_stack
. $srcdir/test-subr.sh testfiles testfile5 testfile2 testrun_compare ${abs_builddir}/show-die-info testfile5 testfile2 <<\EOF file: testfile5 New CU: off = 0, hsize = 11, ab = 0, as = 4, os = 4 DW_TAG_compile_unit Name : b.c Offset : 11 CU offset : 11 Attrs : name stmt_list lo...
the_stack
# Copyright 2015 Midokura SARL # # 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, so...
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
# Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/) # # 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 appli...
the_stack
FQDN="docker" DATADIR="/data" PSQL="psql -U bety -h postgres -d bety -q -t -c" # docker run --rm -ti --network pecan_pecan -v pecan_pecan:/data pecan/data:latest # load helper functions and set FQDN and PSQL . $( dirname $0 )/add.util.sh cd ${DATADIR} echo "##########################################################...
the_stack
######################################## #logging setup: Stack Exchange made this. snorby_logfile=/var/log/snorby_install.log mkfifo ${snorby_logfile}.pipe tee < ${snorby_logfile}.pipe $snorby_logfile & exec &> ${snorby_logfile}.pipe rm ${snorby_logfile}.pipe ######################################## #Metasploit-like ...
the_stack
source $(dirname $0)/oref0-bash-common-functions.sh || (echo "ERROR: Failed to run oref0-bash-common-functions.sh. Is oref0 correctly installed?"; exit 1) usage "$@" <<EOT Usage: $self Attempt to get a working internet connection via wifi or bluetooth. Typically run from crontab. EOT hci_adapter=$(get_pref_string .bt...
the_stack
# Copyright 2018 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
load _helpers @test "injector/deployment: default injector.enabled" { cd `chart_dir` local actual=$(helm template \ --show-only templates/injector-deployment.yaml \ . | tee /dev/stderr | yq 'length > 0' | tee /dev/stderr) [ "${actual}" = "true" ] } @test "injector/deployment: enable with inje...
the_stack
set -e; export LC_NUMERIC=C; # Directory where this script is located. SDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"; [ "$(pwd)/steps" != "$SDIR" ] && \ echo "Please, run this script from the experiment top directory!" >&2 && \ exit 1; [ ! -f "$(pwd)/utils/parse_options.inc.sh" ] && \ echo "Missing ...
the_stack
# Logo printLogo() { echo ' ================================================================================================================================= Developed by: Francisco Zorrilla, Kiran R. Patil, and Aleksej Zelezniak___________________________________________________________ Publication: doi.org/10.1101...
the_stack
set -e set -o pipefail dir=dev10h.pem kind= data_only=false skip_kws=false skip_scoring= extra_kws=true vocab_kws=false tri5_only=false use_pitch=true use_pitch_ivector=false # if true, pitch feature used in ivector extraction. use_ivector=false use_bnf=false pitch_conf=conf/pitch.conf wip=0.5 decode_stage=-1 nnet3_a...
the_stack
# Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang # 2013 Guoguo Chen # 2014 Vimal Manohar # Apache 2.0. # retrain_simple2.sh is a script for training a single-layer (softmax-only) # neural network on top of activations dumped f...
the_stack
# We're not compatible with older bash versions. if [[ "$BASH_VERSINFO" -lt 4 ]] then printf >&2 "This requires bash >= 4 to run.\n" return 1 2>/dev/null exit 1 fi if ! command -v getopt >/dev/null 2>&1 then printf >&2 "Cannot find the getopt command.\n" return 1 2>/dev/null exit 1 fi if declare -rp ARGSPARSE_V...
the_stack
: <<-'EOF' Copyright 2016 Xingwang Liao <kuoruan@gmail.com> 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 ...
the_stack
# Copyright 2016 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
# This file is subject to the terms and conditions defined in # 'LICENSE.txt', which is part of this source code distribution. # # Copyright 2012-2020 Software Assurance Marketplace echo echo "### Starting the Main SWAMP-in-a-Box Install/Upgrade Script" echo encountered_error=0 trap 'encountered_error=1 ; echo "Error...
the_stack
export LC_ALL=C scriptversion="v0.1.2" release="" git="https://github.com/LIMXTEC/BitCore.git" date="$(date +%y-%m-%d-%s)" script=$( cd $(dirname ${BASH_SOURCE[0]}) || exit > /dev/null; pwd -P ) logfile="/tmp/install_${date}_out.log" name="bitcore" daemon_dir="/usr/local/bin" daemon="bitcored" cli_dir="/usr/local/bin" ...
the_stack
unset LANG Scale=2 Unit_1="K" Unit_2="bps" UseRange="False" ifIn32="ifInOctets" ifOut32="ifOutOctets" ifIn64="ifHCInOctets" ifOut64="ifHCOutOctets" # Set the Min Interval of Check. Min_Interval=30 Max_Interval=1800 # Set the Default TIMEOUT. Timeout=15 print_help_msg(){ print_version $Echo "Usage: $0 -h to get...
the_stack
LANG=C ######################################## # color/stylization ######################################## reset="\e[0m" # colors cyan="\e[96m" magenta="\e[95m" red="\e[91m" green="\e[92m" blue="\e[94m" # styles bold="\e[1m" dim="\e[2m" inverted="\e[7m" underline="\e[4m" blink="\e[5m" ##########################...
the_stack
# Copyright(c) 2015 Nippon Telegraph and Telephone 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 applic...
the_stack
clear UPDATE_DATE="05012021-1" LOG_FILE="/home/ark/update$UPDATE_DATE.log" UPDATE_DONE="/home/ark/.config/.update$UPDATE_DATE" if [ -f "$UPDATE_DONE" ] && [ -f "/home/ark/.config/.kernelupdate02032021" ]; then msgbox "No more updates available. Check back later." rm -- "$0" exit 187 fi if [ -f "$LOG_FILE" ]; the...
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
# Copyright 2015 Insight Data Science # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
the_stack
# Set configuration . config/pxe/ipmi.conf OPTIND=1 IPMI_HOST_LIST="config/pxe/ipmi_host_list" install=0 progress=0 upgrade=0 config_host= host_list=0 install_log=0 ssh_check=0 show_bmc=0 validate=0 ipmi= retry=0 fw_target=all usage () { echo "Manage DGX install/upgrade/configure/check process" echo echo...
the_stack
setup() { load 'unit_test_common.bash' _common_setup # intercept all gcloud and kubectl with mock _intercept_setup KUBECONFIG="$(mktemp)" } # Potential cleanup work should happen here teardown() { rm "${KUBECONFIG}" echo "Cleaned up" } @test "MAIN: no arguments returns nonzero exit code" { run main ...
the_stack
# # recursive-sed.sh # # Field G. Van Zee # print_usage() { # Echo usage info echo " " echo " "$script_name echo " " echo " Field G. Van Zee" echo " " echo " Recusively descend a directory tree and perform sed commands, either on" echo " the filename or the file contents, or both." echo " " echo " Usage:" ...
the_stack
# Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/) # # 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 appli...
the_stack
#################################################################################################### # Name: Autodesk Fusion 360 - Setup Wizard (Linux) # # Description: With this file you can install Autodesk Fusion 360 on Linux. # # Author: S...
the_stack
# Dependency: libedit-devel libxml2-devel ncurses-devel python-devel swig set -x # ======================================= 配置 ======================================= LLVM_VERSION=12.0.1 COMPOMENTS_LIBEDIT_VERSION=20210910-3.1 COMPOMENTS_PYTHON_VERSION=3.9.7 COMPOMENTS_SWIG_VERSION=v4.0.2 COMPOMENTS_ZLIB_VERSION=1.2.11...
the_stack
set -m /opt/zookeeper/bin/zkServer.sh start-foreground & # ensure health-checks were passed for attemp in $(seq 1 3); do if jps | grep -q QuorumPeer; then sleep 3 else echo "Zookeeper hasn't been started yet" fi done # add default zkNodes /opt/zookeeper/bin/zkCli.sh -server 127.0.0.1:2181 create /${KIL...
the_stack
JOYNR_SOURCE_DIR="" ILT_BUILD_DIR="" ILT_RESULTS_DIR="" CC_LANGUAGE="" while getopts "b:c:r:s:" OPTIONS; do case $OPTIONS in c) CC_LANGUAGE=$OPTARG ;; b) ILT_BUILD_DIR=`realpath $OPTARG` ;; r) ILT_RESULTS_DIR=`realpath $OPTARG` ;; s) JOYNR_SOURCE_DIR=`realpath $OPTARG` if [ ! -d "$JOYNR...
the_stack
# we run in standard locale environment to ensure proper behaviour USER_LC_ALL="${LC_ALL}" LC_ALL=C FHEM_DIR="/opt/fhem" SLEEPINTERVAL=0.5 TIMEOUT="${TIMEOUT:-10}" RESTART="${RESTART:-1}" TELNETPORT="${TELNETPORT:-7072}" CONFIGTYPE="${CONFIGTYPE:-"fhem.cfg"}" DNS=$( cat /etc/resolv.conf | grep -m1 nameserver | sed -e ...
the_stack
# Specify number of parallel processes for each program CORES=$1 # Specify FULL PATH to output directory MAINOUTPUT=$2 mkdir -p ${MAINOUTPUT} # Specify data directory; fastqs should be of the form [SAMPLE NAME]_sim.fastq; Flux beds should be # of form [SAMPLE_NAME]_sim.bed DATADIR=$3 # Temp dir SCRATCH=$4 SAMPLE=ERR...
the_stack
BACKTITLE="OlinuXino screen configurator" # Due to different versions of the script.fex file, # variable names may missmatch. So define them here PARAM_SCREEN0_OUTPUT_TYPE="screen0_output_type" PARAM_LCD_X="lcd_x" PARAM_LCD_Y="lcd_y" PARAM_LCD_DCLK_FREQ="lcd_dclk_freq" PARAM_LCD_HBP="lcd_hbp" PARAM_LCD_HT="lcd_ht" PAR...
the_stack
export ROOT=`pwd` # The name of the application opatrack='opatrack' # The location of cgi script for building evolution scripts CGI_LOCATION='http://kahan/cgi-bin/hudson' # Conventions over name of files and directories. # <!> Keep it synchronized with module PassTrack. passes_list='passes.list' printers_list='print...
the_stack
function print_help() { echo "Usage:" echo "Launch this script as: sudo $0 -s 31470" echo -e "\t-s to upgrade the Service VM" echo -e "\t-u to upgrade the User VM" echo -e "\t-p to specify a proxy server (HTTPS)" echo -e "\t-m to use the swupd mirror url" echo -e "\t-k to skip downloading th...
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
# Script for executing Django PyUnit tests within a Docker container. # Exit on failure set -e print_description() { echo "Runs the tests for workers. These tests require different Docker containers" echo "depending on which code will be tested. By default all tests in the workers" echo "project are run."...
the_stack
set_defaults() { external_port_number=80 internal_port_number=8080 NO_WIFI=true NO_REBOOT=true NO_SERVICES=true } ask() { # http://djm.me/ask while true; do if [ "${2:-}" = "Y" ]; then prompt="Y/n" default=Y elif [ "${2:-}" = "N" ]; then prompt="y/N" default=N else prompt="y/n" default=...
the_stack
# i686-elf-tools.sh # v1.3 # Define Global Variables BINUTILS_VERSION=2.35 GCC_VERSION=11.1.0 GDB_VERSION=9.2 BUILD_TARGET="i686-elf" set -e ALL_PRODUCTS=true # Parse Commandline Options if [ $# -eq 0 ]; then BUILD_BINUTILS=true BUILD_GCC=true BUILD_GDB=true ZIP=true args="binutils gcc g...
the_stack
set -e ### Usage and long print commands DESC_show="Show the scenario of an active Scenario run" DESC_log="Watch the commander log of an active Scenario run" DESC_abort="Abort an active Scenario run" function usage() { cat <<EOF HiveMQ Device Simulator Kubernetes CLI Commands: run Execute a HiveMQ Dev...
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
load ../common setup () { scope standard } ipc_clean () { rm -v /dev/shm/*ch-run* } ipc_clean_p () { sem="$(find /dev/shm -maxdepth 1 -name '*ch-run*')" [[ -z $sem ]] } joined_ok () { # parameters proc_ct_total=$1 # total number of processes peer_ct_node=$2 # size of each peer group (...
the_stack
# Usage: add_to_manpath path # Adds a variable to manpath while ensuring we don't have duplicates. # Returns true if we were able to add something. False otherwise. add_to_manpath() { case "$manpath" in *:$1) decho " Skipping duplicate manpath entry $1" 2 ;; $1:*) decho " Skipping duplicate manpath entry $1" 2 ;; ...
the_stack
set -e function check_quit () { if [[ "$1" == "QUIT" ]]; then echo "Quitting..." exit 0 fi } if [ $# -lt 4 ]; then echo "Usage: ./profile_model.sh <frozen-model> <accuracy> <dataset> <task> [<cpus>]" echo "<cpus> is optional, and will only be used if framework is tensorflow-cpu, pytorch, or inferentia...
the_stack
MODE=${1:-test} GETHATTACHPOINT=`grep ^IPCFILE= settings.txt | sed "s/^.*=//"` PASSWORD=`grep ^PASSWORD= settings.txt | sed "s/^.*=//"` SOURCEDIR=`grep ^SOURCEDIR= settings.txt | sed "s/^.*=//"` TOKENFACTORYSOL=`grep ^TOKENFACTORYSOL= settings.txt | sed "s/^.*=//"` TOKENFACTORYJS=`grep ^TOKENFACTORYJS= settings.txt ...
the_stack
$ git clone https://github.com/mwcraig/astropy.git apy-bugs Cloning into 'apy-bugs'... remote: Counting objects: 44980, done. remote: Compressing objects: 100% (11772/11772), done. remote: Total 449...
the_stack
# LibreELEC Stable Build Image Generator for Berryboot # Copyright 2018-2021 Alexander G. # https://www.alexgoldcheidt.com # https://github.com/agoldcheidt if [ "$EUID" -ne 0 ] then echo 1>&2 "Please run as root" exit 1 fi #date date=$(date +"%d-%b-%Y") #show version LATEST=$(wget -qO - "http://berrytest.al...
the_stack
set -e set -u ## 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]}")" # NOTE: this is slightly non-standard; see longer discussion below ## END STANDARD BUILD SCRIPT INCLUDE # This script does not use ...
the_stack
VERSION='0.35' trap 'exit_cleanup' EXIT trap '_warn "interrupted, cleaning up..."; exit_cleanup; exit 1' INT exit_cleanup() { # cleanup the temp decompressed config & kernel image [ -n "$dumped_config" ] && [ -f "$dumped_config" ] && rm -f "$dumped_config" [ -n "$vmlinuxtmp" ] && [ -f "$vmlinuxtmp" ] && rm -f...
the_stack
set -e # Maintainer: weitao zhou <wtzhou@dataman-inc.com> # Usage: # curl -Ls https://$DM_HOST/node-init.sh | sudo sh # # Feature: # check host arch # check ip forwarding # check docker version # check docker tcp socket # check apparmor for ubuntu # check selinux for centos/rhel # check ntp service # check firewalld #...
the_stack
check() { if diff $1 $2; then echo ok else echo fail fi } export -f check ######################################################################## # 1. Test select * wildcard ######################################################################## echo " wildcard.t1...\c" echo "C/C C/C C/C C/C T/T...
the_stack
######################################################################################## # Name: Autodesk Fusion 360 - Language file of the Installationsskript (Linux) # # Description: The different languages are loaded with this file! # # Author: Steve Zabka ...
the_stack
###1001 修改主机名(陈绪) vi /etc/sysconfig/network,修改HOSTNAME一行为"HOSTNAME=主机名"(没有这行?那就添加这一行吧),然后运行命令" hostname 主机名"。一般还要修改/etc/hosts文件中的主机名。这样,无论你是否重启,主机名都修改成功。 ###1002 Red Hat Linux启动到文字界面(不启动xwindow)(陈绪) vi /etc/inittab id:x:initdefault: x=3:文本方式 x=5:图形方式 ###1003 linux的自动升级更新问题(hutuworm,NetDC,陈绪) 对于redhat,在www.redhat.com/...
the_stack
lBlue='\033[1;34m' green='\033[0;32m' orange='\033[0;33m' NC='\033[0m' red='\033[0;31m' yellow='\033[1;33m' dGrey='\033[1;30m' lGrey='\033[1;37m' lCyan='\033[1;36m' wd=`pwd` # Clean up any prior executions rm -fr .keys rm -f ansible/hosts/cluster rm -f ansible/host_vars/* # Source the configuration information . ins...
the_stack
# This file is responsible for building rpm and deb package for jfrog-cli installer # This will contain hold the list of supported architectures which can be built by default. # Although by passing a different --rpm-build-image or --rpm-build-image, artifacts of different architectures can be built SUPPORTED_DEFAULT_A...
the_stack
#TODO: why no size.log?? always error!!! #in some system, maybe /usr/bin/ instead of /bin/ #according executables to deal with dbms #NOTICE: require that virtuoso-openlink/openrdf-sesame/apache-jena is installed and gstore(single mode) is compiled! #WARN:test gstore, jena, virtuoso with lubm, bsbm, watdiv, dbpedia #w...
the_stack
set -e -o pipefail if [[ $(uname) == 'Darwin' ]] then SOURCE_DIR=$(realpath "$(dirname "$0")"/../..) else SOURCE_DIR=$(readlink -f "$(dirname "$0")"/../..) fi # Test private key & address PKEY="1234567890123456789012345678901234567890123456789012345678901234" PADDR="2e988a386a799f506693793c6a5af6b54dfaabfb" ...
the_stack
################################################# ########## Android Shell Lib #################### ################################################# # REPORTING BUGS: luxiaoyu01@baidu.com ########## alias & export ################################ alias 'ps?'='ps ax | grep ' export HISTTIMEFORMAT="%F %T " # # Run ...
the_stack
# Current script directory SCRIPT_DIR=$( cd ${0%/*} && pwd -P ) ROOT_DIR=$( cd "$SCRIPT_DIR/../../../../.." && pwd -P ) source "${ROOT_DIR}/tensorflow/tools/ci_build/builds/builds_common.sh" # Helper functions die() { echo $@ exit 1 } num_cpus() { # Get the number of CPUs if [[ -f /proc/cpuinfo ]]; then ...
the_stack
if [ ${BASH_VERSINFO} -lt 4 ]; then echo "bash version >= 4 needed, you have ${BASH_VERSION}, exiting..." exit 1 fi #default values configFile="" alienFindCommand="" secondsToSuicide=$(( 10*3600 )) localPathPrefix="${PWD}" #define alienSync_localPathPrefix in your env to have a default central location [[ -n ${ali...
the_stack
# MQTT Vars MQTT_SERVER="192.168.1.14" MQTT_PORT="1883" MQTT_TOPIC_BASE="ubuntu" # MQTT User/Pass Vars, only use if needed MQTT_USER="xxx" MQTT_PASS="yyy" MQTT_ID="z9pa" MQTT_DATA="-h $MQTT_SERVER -p $MQTT_PORT -u $MQTT_USER -P $MQTT_PASS -i $MQTT_ID" #################################################################...
the_stack
# --- Some aux files ------------------------------------------------- if test "X$QA_FWD" = "X" ; then QA_FWD=$ALICE_PHYSICS/PWGLF/FORWARD/analysis2/qa fi style=${QA_FWD}/style.css favicon=${QA_FWD}/fmd_favicon.png logo=${QA_FWD}/fmd_logo.png script=${QA_FWD}/script.js topmk=${QA_FWD}/makeIndex.sh # --- Check A...
the_stack
# Variables for colorful terminal output. R="\033[1;31m" Y="\033[1;33m" G="\033[1;32m" N="\033[0;39m" clear # The script name, taken from the input file; first arg. sN="$(echo "$1" | sed 's/.*\///')" # Random 4-digit string appended to the filename to prevent clobbering # previous iterations of the same input file a...
the_stack
SW_ROOT=$(cd `dirname $0`; pwd) set -e target_python27(){ [ -n "$TAG" ] && tag=$TAG || tag="latest" if [ -n "$BUILD" ]; then echo "-- build sw-python27 --" >&2 docker build -t sw-python27:$tag --pull --no-cache -f $SW_ROOT/paas/python27/Dockerfile $SW_ROOT/paas/python27 docker tag ...
the_stack
NONE='\033[00m' RED='\033[01;31m' GREEN='\033[01;32m' YELLOW='\033[01;33m' PURPLE='\033[01;35m' CYAN='\033[01;36m' WHITE='\033[01;37m' BOLD='\033[1m' UNDERLINE='\033[4m' MAX=10 CURRSTEP=0 COINDOWNLOADFILE=biblepay-aarch64-linux-gnu.tar.gz COINREPO=https://github.com/biblepay/biblepay.git COINRPCPORT=9998 COINPORT=4000...
the_stack
search_for_python() { # We have to search for python as Ubuntu, in its infinite wisdom decided # to release 18.04 with no python symlink, making it impossible to run polyglot # python scripts. # We cannot use command -v as it is not implemented in the posh shell shipped with # Ubuntu/Debian. Simila...
the_stack