text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
function c_git_list_repos { curl -u "${GIT_API_TOKEN}":x-oauth-basic https://api.github.com/user/repos } function c_git_push_to_new_repo { if [ -z ${1+x} ] || [ -z ${2+x} ]; then echo "c_git_push_to_new_repo expects the first argument to be a repo name, and the second to be the branch that's being moved" el...
the_stack
#### COLOR SETTINGS #### black=$(tput setaf 0 && tput bold) red=$(tput setaf 1 && tput bold) green=$(tput setaf 2 && tput bold) yellow=$(tput setaf 3 && tput bold) blue=$(tput setaf 4 && tput bold) magenta=$(tput setaf 5 && tput bold) cyan=$(tput setaf 6 && tput bold) white=$(tput setaf 7 && tput bold) blackbg=$(tput s...
the_stack
# command info if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then echo "# ---------------------------------------------------" echo "# LND RESCUE FILE (tar.gz of complete lnd directory)" echo "# ---------------------------------------------------" echo "# lnd.backup.sh lnd-export" echo "# lnd.backup.sh...
the_stack
# Copyright 2012-2016 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Copyright 2014-2015 Vimal Manohar # Decodes denlats and dumps egs for discriminative training, in one script # (avoids writing the non-compact lattices to disk, which can use a lot of disk # space). # Begin configuration sectio...
the_stack
# # Copyright 2012-2021 BloomReach, 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 ...
the_stack
#------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. #------------------------------------------------------------ mydir="$( cd "$( dirname "$0" )" && pwd )" toexit=0 logsub=" crio.sh: " echo "${logsub}crio.sh starting" | logger echo "${logsub}Fab...
the_stack
# TODO: This test takes too long to run. It should be split into multiple little tests. # we may not need this to run as a pre-check-in test for every PR. but only once in a while to ensure nothing's broken. set -euo pipefail source $(dirname $0)/../utils.sh id="" ROOT=$(dirname $0)/../.. final_cleanup() { rm -...
the_stack
################################################################################ ############# Build / Compile / test Rally+GitHub @admiralawkbar ############### ################################################################################ # # PRE-Requirements: # - Dockerfile # - System with Docker installed # - Gl...
the_stack
# host: host[:pathToHostEnvFile] # Return 10 on internal error which is pointless retrying. _REMOTE_EXEC() { SPACE_SIGNATURE="host action [args]" # This env variable can be baked in at compile time if we want this module to be standalone SPACE_ENV="CLUSTERPATH REMOTE_PACK_RELEASEDATA=$ REMOTE_SET_COMMITCHAI...
the_stack
# # I believe this is BROKEN. # # It generates a .pvm directory that looks a lot like # the .pvm for a VM that actually works, but Parallels # complains that it can't find the HD files. If you # figure out the issue, please let me know. strategy_add $PHASE_FREEBSD_OPTION_INSTALL parallels_tweak_install strategy_add $...
the_stack
set -e DIR=$(dirname $0) # Benchmark multiple key-value stores. Install the key-value stores # you want to benchmark, set your CLASSPATH as described below, and # run: # # make -C ./bench # ./bench/run-bench.sh > bench.out # ./bench/report.pl bench.out # You can set these env variables to restrict to running only...
the_stack
# Autoexpand some aliases typeset -ga _vbe_ealiases abbrev-alias() { alias $1 _vbe_ealiases+=(${1%%\=*}) } _vbe_zle-autoexpand() { local -a words; words=(${(z)LBUFFER}) if (( ${#_vbe_ealiases[(r)${words[-1]}]} )); then zle _expand_alias fi zle magic-space } zle -N _vbe_zle-autoexpand bin...
the_stack
#################################################################################################### # Name: Autodesk Fusion 360 - Setup Wizard (Linux) # # Description: This is the German translation for the Setup Wizard. # # Author: S...
the_stack
get() { local index=$1_index [[ $1 == module ]] && local value_type=options || local value_type=value [[ $1 == value || ($1 == module && ${!1} =~ $single_value_modules) ]] && local variables=$value_type || variables="check $1 $value_type" #[[ $1 == value ]] && local variables=value || variables="check $1 $value_...
the_stack
# # System Required: CentOS 6,7, Debian, Ubuntu # Description: iptables transfer # # Reference URL: # https://github.com/quniu # Author: QuNiu # # PATH PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH # Current folder cur_dir=`pwd` # Color red='\033[0;31m' green='\033[0;32m' yello...
the_stack
# keep the editing independent of locale: if test "${LANGUAGE+set}" = set; then LANGUAGE=C; export LANGUAGE; fi if test "${LANG+set}" = set; then LANG=C; export LANG; fi if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LC_MESSAGES+set}" = set; then ...
the_stack
# Copyright (c) 2015, Plume Design Inc. All rights reserved. # # 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 condition...
the_stack
# Script is brought to you by ATADA_Stakepool, Telegram @atada_stakepool #load variables from common.sh . "$(dirname "$0")"/00_common.sh #Display usage instructions showUsage() { cat >&2 <<EOF Usage: $(basename $0) new <voteKeyName> ... Generates a new VotingKeyPair with the given name $(...
the_stack
# Apache License Version 2.0, January 2004 # https://github.com/codecov/codecov-bash/blob/master/LICENSE set -e +o pipefail VERSION="1.0.6" codecov_flags=( ) url="https://codecov.io" env="$CODECOV_ENV" service="" token="" search_in="" # shellcheck disable=SC2153 flags="$CODECOV_FLAGS" exit_with=0 curlargs="" curlaws...
the_stack
# (c) Copyright Ascensio System Limited 2010-2015 # 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 i...
the_stack
# Copyright © 2014 Cask Data, 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 writ...
the_stack
export FLOCKER_CONTROL_PORT=${FLOCKER_CONTROL_PORT:=80} # supported distributions: "ubuntu", "redhat" (means centos/fedora) export DISTRO=${DISTRO:="ubuntu"} export FLOCKER_ZFS_AGENT=`which flocker-zfs-agent` export FLOCKER_CONTROL=`which flocker-control` export DOCKER=`which docker` export BASH=`which bash` # on su...
the_stack
if test $UID -ne 0; then echo "This script has to be run as root. Exiting." exit 1 fi LBHOME="/opt/loxberry" # Group membership /usr/sbin/usermod -a -G sudo,dialout,audio,gpio,tty,www-data loxberry # LoxBerry Home Directory in Environment awk -v s="LBHOMEDIR=$LBHOME" '/^LBHOMEDIR=/{$0=s;f=1} {a[++n]=$0} END{if(!...
the_stack
# Copyright (c) 2015, Plume Design Inc. All rights reserved. # # 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 condition...
the_stack
set -o pipefail set -o errtrace # variables TO_REGISTRY= TO_REPO= BOM_FILE=./verrazzano-bom.json USELOCAL=0 IMAGES_DIR= INCREMENTAL_CLEAN=false CLEAN_ALL=false DRY_RUN=false INCLUDE_COMPONENTS= EXCLUDE_COMPONENTS= function usage() { ec=${1:-0} echo """ This script is to help pushing Verrazzano container images in...
the_stack
encpass_keybase_checks() { [ ! -d "$ENCPASS_HOME_DIR/secrets" ] && mkdir -m 700 "$ENCPASS_HOME_DIR/secrets" [ ! -d "$ENCPASS_HOME_DIR/exports" ] && mkdir -m 700 "$ENCPASS_HOME_DIR/exports" } encpass_keybase_include_init() { ENCPASS_KEYBASE_USER=$(keybase whoami) if [ -n "$1" ] && [ -n "$2" ]; then ENCPASS_BUCK...
the_stack
########## DEBUG Mode ########## ## ## if [ -z ${INSTALLER_DEBUG+x} ]; then INSTALLER_DEBUG=0 else INSTALLER_DEBUG=1 fi ## ## ################################ #Config version=2 revision=6 #Colors red='\e[1;31m' blue='\e[1;34m' yellow='\e[1;33m' transparent="\e[0m" ...
the_stack
set -Eeo pipefail # this test requires running clickhouse server and configured ~/.odbc.ini # cp -n /usr/share/doc/clickhouse-odbc/examples/odbc.ini ~/.odbc.ini # apt install unixodbc # to build and install package: # cd .. && debuild -us -uc -i --source-option=--format="3.0 (native)" && sudo dpkg -i `ls ../clickhous...
the_stack
set -e set -o pipefail export DEBIAN_FRONTEND=noninteractive # constants GLUSTER_VERSION=7 gluster_brick_mountpath=/gluster/brick gluster_brick_location=$gluster_brick_mountpath/brick0 ipaddress=$(ip addr list eth0 | grep "inet " | cut -d' ' -f6 | cut -d/ -f1) # vars attach_disks=0 rebalance=0 samba_options= hostnam...
the_stack
###################################################################### # # DMTWEET.SH : Post A Direct Message # # Written by Shell-Shoccar Japan (@shellshoccarjpn) on 2017-07-18 # # This is a public-domain software (CC0). It means that all of the # people can use this for any purposes with no restrictions at all. # By ...
the_stack
BASE_DIR=$( cd "$(dirname "$0")" pwd ) PROJECT_DIR=${BASE_DIR} SCRIPT_DIR=${BASE_DIR}/scripts UTILS_DIR=${BASE_DIR}/utils action=$1 #工具函数 function read_from_input() { var=$1 msg=$2 choices=$3 default=$4 if [[ ! -z "${choices}" ]]; then msg="${msg} (${choices}) " fi if [[ -z ...
the_stack
OPENSSL_VERSION="" JAVA_VERSION="" REQUIRED_PYTHON_VERSION="2.7" REQUIRED_NODEJS_VERSION="6.10" REQUIRED_JAVA_VERSION="8" MINIMUM_REQUIRED_OPENSSL_VERSION="1.0.1" no_op() { : } ################################################################################ ## Checks if Python is installed on the device and if in...
the_stack
# This script does MMI discriminative training, including # feature-space (like fMPE) and model-space components. # If you give the --boost option it does "boosted MMI" (BMMI). # On the iterations of training it alternates feature-space # and model-space training. We do 8 iterations in total-- # 4 of each type ((B)MM...
the_stack
# ----------------------------------------------------------------------------------------------- # Tests report builder # ----------------------------------------------------------------------------------------------- # Script is used to analyze load tests logs collected from all 'Tests' cluster nodes and build # summ...
the_stack
set -e # set current directory of script MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" echo "Deploying prometheus..." # Make sure the tiller change is rolled out # kubectl rollout status -n kube-system deployment tiller-deploy # Commented next command, please do a helm repo update before e...
the_stack
function openebs_pre_init() { if [ -z "$OPENEBS_NAMESPACE" ]; then OPENEBS_NAMESPACE=openebs fi if [ -z "$OPENEBS_LOCALPV_STORAGE_CLASS" ]; then OPENEBS_LOCALPV_STORAGE_CLASS=openebs-localpv fi if [ -z "$OPENEBS_CSTOR_STORAGE_CLASS" ]; then OPENEBS_CSTOR_STORAGE_CLASS=openebs...
the_stack
# This is a Yetus precommit "personality" (aka customized configuration) for Lucene/Solr. # # See the Yetus precommit documentation at https://yetus.apache.org/documentation/0.7.0/ # and especially https://yetus.apache.org/documentation/0.7.0/precommit-advanced/. # See also the Yetus source code for other projects' per...
the_stack
set -eu export TERM=xterm # Bash Colors red=`tput setaf 1` green=`tput setaf 2` yellow=`tput setaf 3` white=`tput setaf 7` bold=`tput bold` reset=`tput sgr0` separator=$(echo && printf '=%.0s' {1..100} && echo) # Logging functions log() { if [[ "$@" ]]; then echo "${bold}${green}[LOG `date +'%T'`]${reset} $@"; els...
the_stack
# Tests for DevStack INI functions TOP=$(cd $(dirname "$0")/.. && pwd) # Import config functions source $TOP/inc/ini-config source $TOP/tests/unittest.sh echo "Testing INI local.conf functions" # test that can determine if file has section in specified meta-section function test_localconf_has_section { local ...
the_stack
set -o xtrace source ./func_xecho.sh export VBOX_VM="${VBOX_VM:-vproxy}" export VBOX_SNAP_INSTALLED="${VBOX_SNAP_INSTALLED:-installed}" export VBOX_SNAP_INIT="${VBOX_SNAP_INIT:-init}" export ROOT_PASS="${ROOT_PASS:- }" export ROOT_PASS_DESCR="${ROOT_PASS_DESCR:-(4 spaces)}" export VBOX_SNAP_BASIC="${VBOX_SNAP_BASI...
the_stack
SCRIPT=$(readlink -f "$0") && cd $(dirname "$SCRIPT") # --- Script Init --- mkdir -p log rm -R -f log/* # --- Setup run dirs --- find output -type f -not -name '*summary-info*' -not -name '*.json' -exec rm -R -f {} + mkdir output/full_correlation/ rm -R -f /tmp/%FIFO_DIR%/fifo/* mkdir /tmp/%FIFO_DIR%/fifo/full_cor...
the_stack
echo "Bringing in some logging functions, consul utility functions, env vars, and CONSUL_HTTP_ADDR" SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" . "${SCRIPTPATH}/basic_logging.sh" . /etc/sysconfig/sas/sas-viya-consul-default . "${SCRIPTPATH}/consul-utils.sh" . ${SASCONFIG}/consul.conf # explicitly add /sbin etc. to ...
the_stack
show_usage() { echo "Usage: server_manage.sh version command password agrs..." echo "version:" echo " redis-2.8.24 The single mode of redis version." echo " redis-3.0.6 The cluster mode of redis version" echo " redis-3.2.11 The cluster mode of redis version" echo "command:" echo " ...
the_stack
set -e export INPUT_ENV_SCRIPT="/tmp/opp-env-vars" OPP_ALLOW_CI_CHANGES=${OPP_ALLOW_CI_CHANGES-0} OPP_TEST_READY=${OPP_TEST_READY-1} OPP_RELEASE_READY=${OPP_RELEASE_READY-0} OPP_OP_DELETE=${OPP_OP_DELETE-0} OPP_PR_AUTHOR=${OPP_PR_AUTHOR-""} DELETE_APPREG=${DELETE_APPREG-0} OPRT=${OPRT-0} OPP_CURRENT_PROJECT_REPO=${OPP_...
the_stack
#-------------------------------------------------------- usage() { cat << EOF This script uses vagrant to start a virtual machine and builds percolator with converters packages by executing a builder file. usage: $0 [[-h]] [[-a]] [[-b branch]]|[[-s source_directory]] ...
the_stack
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # This script downloads and installs the Lustre client. # See https://docs.aws.amazon.com/fsx/latest/LustreGuide/install-lustre-client.html set -xeu shopt -s extglob trap exit_trap EXIT function exit_trap() { ...
the_stack
tests() { local address local address1 local address2 local address3 local response # getbestblockhash # (GET) http://proxy:8888/getbestblockhash echo "Testing getbestblockhash..." response=$(curl -s proxy:8888/getbestblockhash) echo "response=${response}" local blockhash=$(echo ${response} | jq ".result" ...
the_stack
# # Copyright 2017 Hortonworks. # # 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, s...
the_stack
########################### subroutines ############################ # ensure usage of latest binaries no matter what PATH the user may have PATH=/cluster/bin/i386:$PATH export PATH # see if a table exists and it has rows # returns 1 for NOT EXISTS 0 for EXISTS TablePopulated() { T=$1 D=$2 T_EXISTS=`hgsql -e "descr...
the_stack
function assert_same() { if [ "$#" != "3" ]; then echo "asset_same expects 3 parmaters, LABEL EXPECTED RESULT" exit 1 fi if [ "${2}" != "${3}" ]; then echo "${1}: expected |${2}|, got |${3}|" exit 1 fi } function assert_equal() { if [ "$#" != "3" ]; then echo...
the_stack
# create_kops - A script to create a Kops Kubernetes cluster ########################################## ##### Constants ########################################## TIME_NOW=$(date +"%x %r %Z") KOPS_VERSION="1.14." ########################################## ##### Functions ########################################## u...
the_stack
ARGC=$# [ $ARGC -eq 0 ] && { echo "usage: sanzoning_test [addvolumezonecheck|sanzonereuse|cleanup]*" exit 2; } ARGV=$* CWD=$(pwd) export PATH=$CWD:$CWD/..:$PATH echo "PATH: " $PATH # Configuration file to be used source conf/sanity.conf SAN_VA=san-va SAN_NETWORK_losam82=$SAN_VA/$SAN_ZONE_losam82 COS_NAME=""...
the_stack
# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
the_stack
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16 sleep 3 echo "[DEBUG] WORK_DIR=$WORK_DIR" echo "[DEBUG] WORK_SPACE=$WORK_SPACE" echo "[DEBUG] repo_branch=$REPO_BRANCH" echo "[DEBUG] M5_SD_BUILD_DIR=$M5_SD_BUILD_D...
the_stack
# This is based on TDNN_LSTM_1b (from egs/swbd/s5c), but using the NormOPGRU to replace the LSTMP, # and adding chunk-{left,right}-context-initial=0 # Different from the vanilla OPGRU, Norm-OPGRU adds batchnorm in its output (forward direction) # and renorm in its recurrence. Experiments show that the TDNN-NormOPGRU co...
the_stack
## 影音模组 #---Author Info--- ver="1.0.0" Author="johnrosen1" url="https://johnrosen1.com/" github_url="https://github.com/johnrosen1/vpstoolbox" #----------------- set +e ## Usenet Provider ## https://www.newsgroup.ninja/en/landing/usenet-promotion?utm_source=reddit&utm_medium=organicsocial&utm_campaign=BlackFriday20...
the_stack
libname="" src="" header="" all_dep="" # current makefile: out="" # temporary file: tout="" # install target temp file: iout="" # debug flag: debug="no" # compile options: opts="" # main output sub-directory: subdir="" # extra debug /RTc options: debug_extra="" function vc6_gen_lib() { all_dep="$all_dep $libname""_d...
the_stack
# Call with the following arguments: # --API_AWS_ACCESS_KEY_ID | AWS key used for read/write to S3 # |---------------------------------------- # --API_AWS_SECRET_ACCESS_KEY | AWS key used for read/write to S3 # |----------------...
the_stack
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
the_stack
set -eu # OSX for Hackers (Mavericks/Yosemite) # # Source: https://gist.github.com/brandonb927/3195465 # Some things taken from here # https://github.com/mathiasbynens/dotfiles/blob/master/.osx # Ask for the administrator password upfront sudo -v # Keep-alive: update existing `sudo` time stamp until `.osx` has fini...
the_stack
### Global variables VERSION=0.1 COMMAND=`basename $0` VERBOSE="" DEBUG="" SIMULATION="" FORCE_MODE="" DEVEL_MODE="" error=0 ; trap "error=$((error|1))" ERR ### displayed colors # ??? is that portable? COLOR_GREEN="\033[0;32m" COLOR_RED="\033[0;31m" COLOR_YELLOW="\033[0;33m" COLOR_VIOLET="\033[0;35m" COLOR_CYAN="\033...
the_stack
# Helper script used in the second edition of the GNU MCU Eclipse build # scripts. As the name implies, it should contain only functions and # should be included with 'source' by the container build scripts. # ----------------------------------------------------------------------------- function build_versions() { ...
the_stack
check_file_value () { operator=$1 check_file=$2 parameter_name=$3 separator=$4 correct_value=$5 comment_value=$6 position=$7 search_value=$8 sshd_test=$( echo "$check_file" | grep "sshd_config" ) if [ "$operator" = "set" ]; then correct_value="[A-Z,a-z,0-9]" operator="is" fi if [ "$comme...
the_stack
echo_stderr () { echo "$@" >&2 } if [ $# -ne 2 ] then echo_stderr "usage: $0 <service_name> <num_of_resource_policies>" fi service_name=cm_hive num_of_resource_policies=1 if [ $# -eq 1 ] then service_name=$1 echo_stderr "service_name=${service_name}, num_of_resource_policies=${num_of_resource_policies}" fi i...
the_stack
################################################################################ # ScanCode release build script # Create, test and publish release archives, wheels and sdists. # Use the --test to also run basic smoke tests of the built archives # # To use a local checkout of https://github.com/nexB/thirdparty-packages...
the_stack
SCRIPT_DIR=`dirname $0` source "${SCRIPT_DIR}/common_test_tools.sh" source "${SCRIPT_DIR}/test_zs.sh" # Check generator report. check() { exit_if_argc_ne $# 3 local TEST_OUT_DIR="$1"; shift local GENERATOR="$1"; shift local REPORT="$1"; shift local ZSERIO_LOG="${TEST_OUT_DIR}"/zserio_log.txt ...
the_stack
check() { if diff $1 $2; then echo ok else echo fail fi } export -f check #################################################################### # 1. Test variant_impacts table for the impact columns (snpEff) #################################################################### echo " effstring.t01...\c" ...
the_stack
#检测是否是root用户 if [[ $(id -u) != "0" ]]; then printf "\e[42m\e[31mError: You must be root to run this install script.\e[0m\n" exit 1 fi #检测是否是CentOS 7或者RHEL 7 if [[ $(grep "release 7." /etc/redhat-release 2>/dev/null | wc -l) -eq 0 ]]; then printf "\e[42m\e[31mError: Your OS is NOT CentOS 7 or RHEL 7.\e[0m\n...
the_stack
# macOS Security Updates (macSU) # shell script: macsu.zsh / LaunchAgent: local.lcars.macOSSecurityUpdates # v2.1.4 # Copyright (c) 2018–20 Joss Brown (pseud.) # license: MIT+ # info: https://github.com/JayBrown/macOS-Security-Updates # thanks to Howard Oakley: https://eclecticlight.co / https://github.com/hoakleyelc/u...
the_stack
if [[ "$1" == "--help" || "$1" == "-h" ]]; then echo "usage: `basename $0` [-w] [--skip-if-exists]" echo echo " Create publish/bin/publish.sh and invoke for every conversion cockpit within the current directory tree." echo echo " -w : Avoid dryrun; do it. If not provided, will only dry ru...
the_stack
### # # Name: reissue_filevault_recovery_key.sh # Description: This script is intended to run on Macs which no longer have # a valid recovery key in the JSS. It prompts users to enter # their Mac password, and uses this password to generate a # new ...
the_stack
. $srcdir/test-subr.sh # strip -o output and -f debug files tempfiles testfile.elf testfile.debug # A random 32bit testfile testfiles testfile # Explicitly keep .strtab (but not .symtab, so .strtab will be in both). 32bit echo strip --keep-section=.strtab testfile testrun ${abs_top_builddir}/src/strip --keep-section...
the_stack
MCU_DEF_FILE=$1 GEN_DIR=$2 YAML_PARSER="dasel -n -p yaml --plain -f" OUT_FILE_HEADER="$GEN_DIR"/MCU.h OUT_FILE_SOURCE="$GEN_DIR"/MCU.cpp.include OUT_FILE_MAKEFILE="$GEN_DIR"/MCU.mk mkdir -p "$GEN_DIR" mcu=$(basename "$MCU_DEF_FILE" .yml) arch=$($YAML_PARSER "$MCU_DEF_FILE" arch) mcu_family=$($YAML_PARSER "$MCU_DEF_FI...
the_stack
GREEN='\033[0;32m' NC='\033[0m' # No Color SCRIPT_NAME=$(basename $0) EMAIL="admin@noobaa.io" PASSWD="" SYS_NAME=noobaa NAMESPACE=$(kubectl config get-contexts | grep "\*" | awk '{print $5}') NOOBAA_CORE_YAML=https://raw.githubusercontent.com/noobaa/noobaa-core/5.0/src/deploy/NVA_build/noobaa_core.yaml CREDS_SECRET_NA...
the_stack
set -eo pipefail warnuser(){ cat << EOF ########### # WARNING # ########### This script is distributed WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND Refer to the official documentation https://access.redhat.com/documentation/en-us/reference_architectures/2018/html-single/deploying_and_managing_openshift_3.9_on_google...
the_stack
# <bitbar.title>Japan Weather</bitbar.title> # <bitbar.version>0.7</bitbar.version> # <bitbar.author.github>tsurezuregusa</bitbar.author.github> # <bitbar.desc>Display local weather in Japan</bitbar.desc> # <bitbar.dependencies>ruby >= 2.4, activesupport (gem), nokogiri (gem), faraday (gem), rmagick (gem), nkf (gem)</b...
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
######################################################################### ############################ ADMIN RIGHTS ############################### ######################################################################### if [[ $EUID -ne 0 ]]; then echo -e "\e[31;4mThis script must be run as root\e[0m" exit 1 fi...
the_stack
## # Set Script Version ## readonly script_ver="1.6.1"; ## # Standardised failure function ## function error_and_die { echo -e "ERROR: ${1}" >&2; exit 1; }; ## # Print Script Version ## function version() { echo "${script_ver}"; } ## # Print Usage Text ## function usage() { cat <<EOF Usage: ${0} \\ -a/--act...
the_stack
# first declare default values # adapting to new location of local OCDB # (note the local OCDB is only ever to used for tests) if [[ ! -d $ALICE_ROOT/OCDB ]]; then if [[ -d $ALIROOT_OCDB_ROOT/OCDB ]]; then echo "Adapting to new location of default OCDB." echo "Linking $ALICE_ROOT/OCDB to $ALIROOT_OCDB_ROOT/O...
the_stack
####################################################################### # # Linux on Hyper-V and Azure Test Code, ver. 1.0.0 # Copyright (c) Microsoft Corporation # # All rights reserved. # Licensed under the Apache License, Version 2.0 (the ""License""); # you may not use this file except in compliance with the Licens...
the_stack
set -euo pipefail trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR PROGS="git wget sox java vlc flac python3 pip3" TRUSTPIP=0 CLEAN=1 BRANCH=development RASPI=0 SUDOCMD=sudo DISTPKGS=0 DEEPSPEECH=0 QUIET="" NO_INSTALL_NODE=0 SYSTEMINSTALL=0 SYSINSTALLER="" while [[ $# -gt 0 ]] do key="$...
the_stack
################################################################################################### # Script Name: jamf_ea_LatestOSSupported.sh # By: Zack Thompson / Created: 9/26/2017 # Version: 1.12.0 / Updated: 12/03/2021 / By: ZT # # Description: A Jamf Pro Extension Attribute to check the latest compatible ...
the_stack
# Copyright 2014-2016 Samsung Electronics Co., Ltd. # Copyright 2016 University of Szeged. # # 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 #...
the_stack
# Fail on error , debug all lines############################################################# set -eu -o pipefail ############################################################################################## #Some color for text######################################################################### TEXT_RESET='\e[...
the_stack
ALL_PIDS=false USE_TEMP=true DO_REDO=false PACKAGE_NAME="" BAKSMALI_NUM=0 # EXACT_ARG and MIN_ARG are passed to prune_sanitizer_output.py EXACT_ARG="" MIN_ARG=() OFFSET_ARGS=() TIME_ARGS=() usage() { echo "Usage: $0 [options] [LOGCAT_FILE] [CATEGORIES...]" echo " -a" echo " Forces all pids associated wi...
the_stack
npm dist-tag add @midwayjs/egg-layer@2.13.2 latest npm dist-tag add @midwayjs/egg-layer@2.13.3 beta npm dist-tag add @midwayjs/express-layer@2.13.2 latest npm dist-tag add @midwayjs/express-layer@2.13.3 beta npm dist-tag add @midwayjs/koa-layer@2.13.2 latest npm dist-tag add @midwayjs/koa-layer@2.13.3 beta npm dist-tag...
the_stack
SCRIPT=$(readlink -f "$0") && cd $(dirname "$SCRIPT") # --- Script Init --- mkdir -p log rm -R -f log/* # --- Setup run dirs --- find output -type f -not -name '*summary-info*' -not -name '*.json' -exec rm -R -f {} + mkdir output/full_correlation/ rm -R -f fifo/* mkdir fifo/full_correlation/ rm -R -f work/* mkdir ...
the_stack
pause() { test "X$pause" = X && return echo -n "Press enter to continue...." read } show_bridge() { br=$1 echo -n "bridge:$br {" bridge link | grep "master $br" | awk -F': ' '{print $2}' | xargs echo -n echo "}" } show_all_bridges() { for br in $(ip -o link show type bridge | awk -F': ' '{print $2}'); ...
the_stack
set -x ################################################### Usage(){ echo "Function: this script is used to build rackhd ova": echo "usage: $0 [arguments]" echo " Mandatory Arguments:" echo " --RACKHD_DIR: The directory of rackhd repo." echo " Optional Arguments:" echo " --OS_VER: The ubuntu iso vers...
the_stack
function usage { cat <<EOF Syntax: $0 [ -y ] [ -h | -help | --help | -v | -version | --version ] Usage: 1. You can create building environment with this script 2. You must have sudo privileges before running this script. 3. This script will change the following environment: a) Checking and insta...
the_stack
NC='\033[0m' RED='\033[1;38;5;196m' GREEN='\033[1;38;5;040m' ORANGE='\033[1;38;5;202m' BLUE='\033[1;38;5;012m' BLUE2='\033[1;38;5;032m' PINK='\033[1;38;5;013m' GRAY='\033[1;38;5;004m' NEW='\033[1;38;5;154m' YELLOW='\033[1;38;5;214m' CG='\033[1;38;5;087m' CP='\033[1;38;5;221m' CPO='\033[1;38;5;205m' CN='\033[1;38;5;247m...
the_stack
# Exit on errors # Great explanation on https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ set -Eeuo pipefail echo "BUILDER: started" # Build mode ("SLIM", "REGULAR", "FULL") BUILD_MODE=${1:-"REGULAR"} echo "BUILDER: BUILD_MODE=${BUILD_MODE}" # Set data file sizes SYSTEM_SIZE=353 SYSAUX_SIZE=610 i...
the_stack
############################################################################### # Validate artifacts file. # Globals: # UAC_DIR # Requires: # array_to_list # is_integer # lrstrip # regex_not_match # Arguments: # $1: artifacts file # Outputs: # None # Exit Status: # Exit with status 0 on success. # Exi...
the_stack
trap "echo 'Script interrupted by Ctrl+C'; stopProgress; exit 1" SIGHUP SIGINT SIGTERM function startProgress() { while true do echo -n "." sleep 5 done } function stopProgress() { if [ "$vflag" = "" -a "$nflag" = "" ]; then kill $PROGRESS_PID &>/dev/null fi } function testIsInstalled() { hash $1 ...
the_stack
set -eu -o pipefail ADK_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../" fail() { echo "$1" echo 'Use Provision --help to display usage information.' false } if [[ -z "${1:-}" ]] || [[ "${1:-}" == "-h" ]] || [[ "${1:-}" == "--help" ]]; then echo 'HomeKit Accessory Setup Provisioning Tool' ...
the_stack
wrkdir=/PHShome/hb875/SFARI/DeepSeq/HarrisonCompare/GT_Filtering/clean_pipeline cd $wrkdir ##see earler versions for creating required files## ##Generate initial datasets## cat /data/talkowski/Samples/SFARI/deep_sv/asc_540/sv-pipeline/rdtest/split_beds/Phase1*>$wrkdir/Phase1.bed ##Remove regions with poor sequencing...
the_stack
command -v md5 >/dev/null 2>&1 && MD5(){ md5 -q "${1}";} command -v md5sum >/dev/null 2>&1 && MD5(){ md5sum "${1}" | cut -f1 -d' ';} if [[ $(uname) =~ Darwin ]]; then FSIZE(){ stat -f%z "$1";} FACCESS(){ stat -f%A "$1";} FMTIME(){ stat -f%m "$1";} FSTAT(){ stat -f%A-%m-%z "$1";} DSTAT(){ stat -L -f%A-%m "$1";}...
the_stack
#!/bin/bash source /etc/profile.d/hadoop.sh #PATH=paste0(Sys.getenv("PATH"),":/opt/hadoop/current/bin:/dsvm/tools/spark/current/bin") ####################################################################################################################################### ## Setup autossh for hadoop service account #####...
the_stack
root_dir=$(cd $(dirname "$0")/../../; pwd) function prepare_code_uri() { cd ${root_dir} rm ${root_dir}/paddle-frame.tar.gz 2>/dev/null cp ${root_dir}/frame/scheduler/paddlecloud/before_hook.sh before_hook.sh cp ${root_dir}/frame/scheduler/paddlecloud/end_hook.sh end_hook.sh cp ${root_dir}/.env ${r...
the_stack