text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
# "execute do_combine.sh after executing this script" echo u8glib_4 ../bdf2ucg/bdf2ucg -f 1 ../bdf/u8glib_4.bdf ucg_font_u8glib_4 ./pixel/ucg_font_u8glib_4.c > /dev/null ../bdf2ucg/bdf2ucg -f 1 -b 32 -e 127 ../bdf/u8glib_4.bdf ucg_font_u8glib_4r ./pixel/ucg_font_u8glib_4r.c > /dev/null echo m2icon ../bdf2ucg/bdf2ucg ...
the_stack
####### # See if we want to stop on errors and/or install and then remove Docker. ####### HOST_PORT="${HOST_PORT:-8080}" showerror=0 installdocker=0 usedocker=1 while getopts "den" opt; do case "$opt" in d) installdocker=1 ;; e) showerror=1 ;; n) usedocker=0 ;; esac done if [ "...
the_stack
#Logging Function SCRIPT=`basename ${BASH_SOURCE[0]}` STX_LOG="/var/log/stratux.log" function wLog () { echo "$(date +"%Y/%m/%d %H:%m:%S") - $SCRIPT - $1" >> $STX_LOG } wLog "Running Hostapd Manager Script." # files to edit HOSTAPD=('/etc/hostapd/hostapd.user') # values to be added to hostapd.user for security. HOS...
the_stack
#!/bin/bash # The following scripts assumes there are at least 6 GPUs on the machine. # Otherwise you need to change the device ID and run them on different machines. # ============================================================================== # Baseline # =============================...
the_stack
case $1 in getifaces) echo $(ip link | sed -e :a -e '$!N;s/\n[[:blank:]]/ /;ta' -e 'P;D' | grep -w 'BROADCAST' | awk -F ': ' '{print $2}') ;; getstate) # $2: interface echo $(ip link show ${2} | grep BROADCAST | grep -o 'state.*' | awk '{print $2}') ;; gethwaddr) # $2: interface echo $(ip link show ${2} | grep -iw e...
the_stack
# /$$ /$$$$$$ /$$$$$$$ /$$ # | $$ /$$$__ $$$ | $$__ $$|__/ # | $$$$$$$ /$$ /$$ /$$_/ \_ $$ | $$ \ $$ /$$ /$$$$$$ /$$$$$$$ /$...
the_stack
# This script downloads the latest Aptomi release from GitHub for your platform, # installs server and client locally and creates default configs for them # The list of releases is retrieved from: https://github.com/Aptomi/aptomi/releases APTOMI_INSTALL_DIR="/usr/local/bin" APTOMI_SERVER_CONFIG_DIR="/etc/aptomi" APTOM...
the_stack
function __GitBranch( ) { eval $( __call_localityLocalName=BrOpt __call_locality ) ; eval $( FParamFuncName=${StrFuncName} FParamSuffixName=Action FParamVarName=StrActionBranch FParamDefaultValue=change __fnctCreateLocalityFuncParam ); eval $( FParamFuncName=${StrFuncName} FParamSuffixName=Name FParamVarName=St...
the_stack
#os=linux type=api module=ca tc="test case name" tag="tag name" #os=linux type=sample_app module=ca tc="test case name" tag="tag name" #os=linux type=sample_app module=ca,sm tc="test case name" tag="tag name" function kill_app() { app_name=${1} #killall ${app_name} #kill -9 $(pgrep ${app_name}) p...
the_stack
# Fail immediately if there is an error thrown set -e TEST_DIR=$(dirname "$(dirname "$(cd "$(dirname "$0")" || exit 1;pwd)/$(basename "$0")")") DUMMY_DIR="$HOME/DumDumRepo" getPullRequestsMergedBetween="$TEST_DIR/utils/getPullRequestsMergedBetween.js" source "$TEST_DIR/../shellUtils.sh" function print_version { < ...
the_stack
# ----------------------------------------------------------------------------- # directory # ----------------------------------------------------------------------------- # fzf --preview command for file and directory if type bat >/dev/null 2>&1; then FZF_PREVIEW_CMD='bat --color=always --plain --line-range :$FZF...
the_stack
echo "--- Benchmarking ---" echo "" echo "Use '-h' or '--help' for help on configuration options." echo "" procs=8 run_iso=0 run_je=0 run_mi=0 run_dmi=0 run_smi=0 run_xmi=0 run_xdmi=0 run_xsmi=0 run_tc=0 run_hd=0 run_sys=0 run_rp=0 run_sm=0 run_sn=0 run_tbb=0 run_mesh=0 run_nomesh=0 run_tlsf=0 run_sc=0 run_cfrac=0 ...
the_stack
userinstall=no steamcmd_user= showusage=no migrateconfig=no installservice=no while [ -n "$1" ]; do case "$1" in --me) userinstall=yes steamcmd_user="--me" ;; -h|--help) showusage=yes break ;; --prefix=*) PREFIX="${1#--prefix=}" ;; --prefix) PREFIX="$2"...
the_stack
# # base.sh # # This is a wrapper or a common entry point for Base. It helps in two main ways: # # 1. Install base or change Base settings (install, embrace, set-team, set-shared-teams) # 2. Do things with the installed version of Base (status, run, shell) # # In shell mode, we would create a Bash shell: # a) using Ba...
the_stack
set -x bash clean.sh function system { "$@" if [ $? -ne 0 ]; then echo "make.sh: unsuccessful command $@" echo "abort!" exit 1 fi } # ----- scientific_writing talk ------- name=scientific_writing # Note: since Doconce syntax is demonstrated inside !bc/!ec # blocks we need a few fixes function edit...
the_stack
set -e; # maintain a cached copy of coreos pxe image if [ -z "${IMG_URL}" -o -z "${ITMP}" -o -z "${V}" ]; then exit 1 fi if [ ${V} -eq 3 ]; then set -x fi # coreos gpg signing key # pub 4096R/93D2DCB4 2013-09-06 # uid [ unknown] CoreOS Buildbot (Offical Builds) <buildbot@coreos.com> # sub 4096R/74E7E361...
the_stack
VERSION=8.0 PROCS=`grep -c processor /proc/cpuinfo` usage() { cat <<EOF Usage: ./build-webos-desktop.sh [OPTION]... Builds the version of Open webOS for the Desktop. The script loads about 500MB of source code from GitHub, as needed. NOTE: This script creates files which use about 4GB of disk space Opti...
the_stack
# Include /usr/bin in path to find on_ac_power if /usr/ is on the root # partition. PATH=/lib/init:/sbin:/bin:/usr/bin FSCK_LOGFILE=/var/log/fsck/checkroot [ "$FSCKFIX" ] || FSCKFIX=no [ "$SULOGIN" ] || SULOGIN=no . /lib/init/vars.sh . /lib/lsb/init-functions . /lib/init/mount-functions.sh . /lib/init/splash-functions...
the_stack
#Functions, functions everywhere. #Below are # Logging setup. Ganked this entirely from stack overflow. Uses named pipe magic to log all the output of the script to a file. Also capable of accepting redirects/appends to the file for logging compiler stuff (configure, make and make install) to a log file instead of lo...
the_stack
# Copyright 2019 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Copyright 2019 Idiap Research Institute (Author: Srikanth Madikeri). Apache 2.0. # # This script dumps 'raw' egs for 'chain' training. What 'raw' means in this # context is that they need to be further processed to merge egs of the...
the_stack
load $BATS_TEST_DIRNAME/helper/common.bash remotesrv_pid= setup() { setup_common cd $BATS_TMPDIR mkdir remotes-$$ mkdir remotes-$$/empty echo remotesrv log available here $BATS_TMPDIR/remotes-$$/remotesrv.log remotesrv --http-port 1234 --dir ./remotes-$$ &> ./remotes-$$/remotesrv.log 3>&- & ...
the_stack
######## THE FOLLOWING LINES ARE THE ONLY VARIABLES TO BE CHANGED ACCORDING TO YOUR LOCAL PATHS ##### declare baseStartingDir="$PWD/ScriptOutput/" export HFCJlocalCodeDir="$PWD" # "/Users/administrator/soft/alisoft/aliphysics/master/PWGHF/correlationHF/macros" declare templateDirPP="/home/colamaria/Scrivania/Codici_Au...
the_stack
SCRIPT_VER='1.0.4' # Current working directory WORKING_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"; # LOCAL mode is usefull when: # * You're testing the script and you don't want to download NW archives every time # * You have the archives localy # default is "FALSE" LOCAL_NW_ARCHIVES_MODE=false LOCAL_NW_ARC...
the_stack
_backupFile_() { # DESC: # Creates a backup of a specified file with .bak extension or optionally to a # specified directory # ARGS: # $1 (Required) - Source file # $2 (Optional) - Destination dir name used only with -d flag (defaults to ./backup) # OPTS: ...
the_stack
YOUR_SERVER_IP_ADDRESS="$(ifconfig eth0 | grep 'inet ' | sed -e 's/.*inet //1;s/ .*//g')" # YOUR Skyline server public IP address YOUR_OTHER_IP_ADDRESS="127.0.0.1" # YOUR current public IP v4 address that you will be connecting from SKYLINE_RELEASE="v1.3.1" # T...
the_stack
load ../../environment PRINT_SOURCE='printf -- "%s\n" "$BASH_SOURCE"' setup() { test_filter @go.create_test_go_script '. "$_GO_USE_MODULES" "$@"' \ 'printf "%s\n" "${_GO_IMPORTED_MODULES[@]}"' } teardown() { @go.remove_test_go_rootdir } @test "$SUITE: plugin imports own internal module" { local module_p...
the_stack
declare -A JSONPath JSONPath_new() { JSONPath[DEBUG]=0 JSONPath[INCLEMPTY]=0 JSONPath[NOCASE]=0 JSONPath[WHOLEWORD]=0 JSONPath[FILE]= JSONPath[NO_HEAD]=0 JSONPath[NORMALIZE_SOLIDUS]=0 JSONPath[BRIEF]=0 JSONPath[PASSTHROUGH]=0 JSONPath[JSON]=0 JSONPath[MULTIPASS]=0 JSONPath[FLATTEN]=0 JSONPath...
the_stack
# Copyright (C) 2016 Deepin, Inc. # # Author: Li LongYu <lilongyu@linuxdeepin.com> # Peng Hao <penghao@linuxdeepin.com> # gorquan <gorquanwu@gmail.com> WINEPREFIX="$HOME/.deepinwine/@public_bottle_name@" APPDIR="/opt/deepinwine/apps/@public_bottle_name@" APPVER="@deb_version_string@...
the_stack
# ------------------------------------------------------------------------------ # The Simple 2D Command-Line Utility for Unix-like Systems # # Run from the web using: # bash <(curl -fsSL https://script_url_here) # or... # bash <(wget -qO - https://script_url_here) # ------------------------------------------------...
the_stack
_mainScript_() { # Replace everything in _mainScript_() with your script's code header "Showing alert colors" debug "This is debug text" info "This is info text" notice "This is notice text" dryrun "This is dryrun text" warning "This is warning text" error "This is error text" succes...
the_stack
#-- # Copyright 2014-2017 Red Hat, 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...
the_stack
UNBOUND_B_CONTROL=0 UNBOUND_B_SLAAC6_MAC=0 UNBOUND_B_DNSSEC=0 UNBOUND_B_DNS64=0 UNBOUND_B_GATE_NAME=0 UNBOUND_B_HIDE_BIND=1 UNBOUND_B_LOCL_BLCK=0 UNBOUND_B_LOCL_SERV=1 UNBOUND_B_MAN_CONF=0 UNBOUND_B_NTP_BOOT=1 UNBOUND_B_PRIV_BLCK=1 UNBOUND_B_QUERY_MIN=0 UNBOUND_B_QRY_MINST=0 UNBOUND_D_DOMAIN_TYPE=static UNBOUND_D_DHCP...
the_stack
setup() { export FRAMEWORK_VERSION=4.8.2 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 git clone https://github.com/Alamofire/Alamofire.git cd Alamofire git checkout ${FRAMEWORK_VERSION} i...
the_stack
L_BOND=6.972 # length of the bonds connecting monomers L_MONOMER=13.944 # length of each monomer (Note: In this model, each # monomer has 3 particles, and two different bonds # along the backbone. Hence its length equals 2 bonds. N_TWIST_MOTORS=400 # nu...
the_stack
# call copy number variants with Control-FREEC (WES settings) # script filename script_path="${BASH_SOURCE[0]}" script_name=$(basename "$script_path") segment_name=${script_name/%.sh/} echo -e "\n ========== SEGMENT: $segment_name ========== \n" >&2 # check for correct number of arguments if [ ! $# == 5 ] ; then ec...
the_stack
# Description: This script is made for debug purposes. # It automatically builds and runs most cases in T-Flows # Requires: # mpi, gfortran, git to launch tests # python-matplotlib + texlive-base to plot results # Exit when any command fails set -e # Compilation flags used in makefiles FCOMP="gnu" # Conduct tests wi...
the_stack
source functions/colors.zsh source functions/icons.zsh source functions/utilities.zsh # Map our $OS to neofetch $os os="$OS" trim() { set -f # shellcheck disable=2048,2086 set -- $* printf '%s\n' "${*//[[:space:]]/}" set +f } trim_quotes() { trim_output="${1//\'}" trim_output="${trim_outp...
the_stack
set -e export INT_TEST_DIR="$(dirname "$0")/../.." export REPO_ROOT_DIR="$INT_TEST_DIR/../.." export PROVISIONING_DIR="$(dirname $0)/provisioning" . "$PROVISIONING_DIR/setup.sh" # Import gcp_on, do_on, and aws_on. . "$(dirname $0)/colourise.sh" # Import greenly. # Variables: export APP="wks" # sh...
the_stack
########## Global variable definitions BRANCHNAME=prepare-push TRUNKBRANCH=trunk-push PERSISTFILE_BASENAME=/tmp/v8-push-to-trunk-tempfile CHROME_PATH= ########## Function definitions source $(dirname $BASH_SOURCE)/common-includes.sh usage() { cat << EOF usage: $0 OPTIONS Performs the necessary steps for a V8 push ...
the_stack
# Check that script was run not as root or with sudo if [ "$EUID" -eq 0 ] then echo "Please do not run this script as root or using sudo" exit fi # set -x # See if we need to check GIT for updates if [ -e .env ]; then # Check for Updated Docker-Compose printf "Checking for update to Docker-Compose (If nee...
the_stack
OLD_IFS="$IFS" BASENAME="$(basename "$0")" # Execute hue commands and put them in a while loop. # $*: HUE_COMMANDS _hue_loop() { ( while true; do eval "$*" done ) & echo $! >> "$FILE_PIDS" } # Random range function. # $1: RANGE (3:7) # # Solution with /dev/urandom: # RANDOM=$(tr -cd 0-9 < /dev/urandom | he...
the_stack
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
the_stack
# # Copyright 2015-2018 Yubico AB # # 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,...
the_stack
HIGHLIGHT='\033[1;32m' NC='\033[0m' function promptPassphrase { PASS="" PASSCONF="" while [ -z "$PASS" ]; do read -s -p "Passphrase: " PASS echo "" done while [ -z "$PASSCONF" ]; do read -s -p "Confirm passphrase: " PASSCONF echo "" done echo "" } function getPassphrase { promptPassphrase while [ "...
the_stack
set -xe kernel_headers_info_path="$1" kernel_version="$(uname -r)" kernel_headers_usr_src_base_path="/usr/src" kernel_headers_lib_modules_base_path="/lib/modules" host_dir="${FLOWMILL_HOST_DIR:-/var/run/flowmill/host}" host_etc_dir="${host_dir}/etc" host_yum_vars_dir="${host_etc_dir}/yum/vars" host_cache_dir="${host...
the_stack
# shellcheck source=./modules/bash-commons/src/log.sh source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/log.sh" # shellcheck source=./modules/bash-commons/src/aws.sh source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/aws.sh" # shellcheck source=./modules/bash-commons/src/assert.sh source "$(cd "$(dirname "${BASH...
the_stack
# This file is a collection of functions and globals that are common to the # test scenarios for cache op testing. # Set any path variables here CURRPATH=$(cd $(dirname $0); pwd) TESTPATH=$(cd ${CURRPATH}/../dataset; pwd) PROJECT_PATH=$(cd ${CURRPATH}/../../../..; pwd) if [ "x${BUILD_PATH}" == "x" ]; then BUILD_PA...
the_stack
###################################################################### # # DMTWVIEW.SH : View a Direct Message Which Is Inquired by Tweet-ID # # Written by Shell-Shoccar Japan (@shellshoccarjpn) on 2020-12-06 # # This is a public-domain software (CC0). It means that all of the # people can use this for any purposes wit...
the_stack
# certificates and key stores generated by this script CERTIFICATES="/etc/hirs/certificates" CA_CERT=${CERTIFICATES}/hirs.ca.cert INTERNAL_P12=${CERTIFICATES}/hirs.p12 KEYSTORE_JKS=${CERTIFICATES}/keyStore.jks TRUSTSTORE_JKS=${CERTIFICATES}/TrustStore.jks CA_CERT_DIR_ESCAPED=\\/etc\\/hirs\\/certificates # 'private' da...
the_stack
: ${TESTCASE:="db_resiliency"} SCRIPTDIR="$(cd "$(dirname "$0")" && pwd)" . "$SCRIPTDIR/fabric-ca_utils" HOST="http://localhost:$PROXY_PORT" RC=0 export FABRIC_CA_SERVER_HOME="/tmp/$TESTCASE" export CA_CFG_PATH="/tmp/$TESTCASE" MYSQLSERVERCONFIG="$FABRIC_CA_SERVER_HOME/mysqlserverconfig.yaml" MYSQLSERVERCONFIG2="$FAB...
the_stack
# Copyright 2021 Flant JSC # # 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 (c) 2018 Mastercard # 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
echo "==================================================================" echo "$0 version 4.20 by Claude Pageau" # -------------------------------------------------------------------- # Requires /usr/local/bin/gdrive executable compiled from github source for arm # Note gdrive is included with pi-timolo on github at ...
the_stack
# PVE WIKI # https://pve.proxmox.com/wiki/Pci_passthrough # https://pve.proxmox.com/wiki/PCI(e)_Passthrough # https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM) # https://github.com/intel/gvt-linux/wiki/GVTg_Setup_Guide # set -e # set -o pipefail export LC_ALL=C export LANG=en_US.UTF-8 ex...
the_stack
# cluster_ops.sh - a runner script to create, upgrade, and delete gke clusters # with the help of kubectl, and gcloud # Stop immediately if something goes wrong set -euo pipefail fail() { echo "ERROR: ${*}" exit 2 } usage() { cat <<-EOM USAGE: $(basename "$0") <action> Where the <action> can be: auto creat...
the_stack
############################################################################ # Copyright Nash!Com, Daniel Nashed 2019, 2021 - APACHE 2.0 see LICENSE # Copyright IBM Corporation 2015, 2019 - APACHE 2.0 see LICENSE ############################################################################ if [ "$DOMDOCK_DEBUG_SHELL" =...
the_stack
_setColors_() { # DESC: # Sets colors use for alerts. # ARGS: # None # OUTS: # None # USAGE: # printf "%s\n" "${blue}Some text${reset}" if tput setaf 1 >/dev/null 2>&1; then bold=$(tput bold) underline=$(tput smul) reverse=$(tp...
the_stack
set -e if [ -z "$APPSCALE_HOME_RUNTIME" ]; then export APPSCALE_HOME_RUNTIME=/opt/appscale fi if [ -z "${APPSCALE_PACKAGE_MIRROR-}" ]; then export APPSCALE_PACKAGE_MIRROR=http://s3.amazonaws.com/appscale-build fi JAVA_VERSION="java-8-openjdk" export UNAME_MACHINE=$(uname -m) if [ -z "${JAVA_HOME_DIRECTORY-}...
the_stack
# Copyright 2017 tsuru-now authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -eu release="" codename="" host_ip="" private_ip="" host_name="" set_interface="" is_debug="" docker_node="" set_interface="" install_func=install_all pool...
the_stack
# ################################################################################# # # # TPM2 regression test # # Written by Ken Goldman # # IBM Thomas J. Watson Research Center # # # # (c) Copyright IBM Corporation 2016 - 2020 # # # # All rights reserved. ...
the_stack
# problem befor Ubuntu 19.10, as Ubuntu used a patched version of sudo that set # $HOME to the calling user's home directory. AS you can imagine, this caused a # lot of issues. # https://askubuntu.com/a/1187000 # This script is run by ./bootstrap.sh as root using sudo, and now has a # --set-home flag to fix this on old...
the_stack
############################################################################## # Some common macro definitions ############################################################################## # NOTE: "vendor" is used in upgrade/downgrade check, so you can't # change these, has to be exactly as is. %define mysql_old_vend...
the_stack
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER ...
the_stack
TRANSFER_COMMAND_FILE=/tmp/run_all_transfers.txt rm $TRANSFER_COMMAND_FILE touch $TRANSFER_COMMAND_FILE echo "Generating config files..." ################### # RESNET26 Task # ################### SRC_TASKS="denoise_25 rgb2sfnorm_25 random \ class_places_25 room_layout_25" TASKS="denoise_25 rgb2sfnorm_25 \ class_pla...
the_stack
input=$1 trap "exit" INT # Declare an array of string with type # "asymmetric" "symmetric" "symmetric_with_uint8" "symmetric_with_power2_scale" declare -a quantizations=("asymmetric" "symmetric" "symmetric_with_uint8" "symmetric_with_power2_scale") declare -a executors=("image-classifier" "image-classifier_googlenet_m...
the_stack
SCRIPTNAME="unpack_repack_qcow2" # FUNCTIONS log() { echo -n "[${SCRIPTNAME}] " echo "$@" } dbglog() { if [ ! -z ${DEBUG} ]; then log DEBUG: $@ fi } usage() { echo "Usage:" echo "unpack_repack_qcow2.sh -i <qcow2_file> -o <out_dir> [-f -g -G -a -A -m -b -r -u -l <linabin_dir> -d -e -...
the_stack
###################################################################### # # TWMEDIUP.SH : Upload An Image or Video File To Twitter # # * See the following page to confirm the acceptable files # https://developer.twitter.com/en/docs/media/upload-media/uploading-media/media-best-practices # # Written by Shell-Shoccar Ja...
the_stack
# On some systems, when running this script from rc.local (ie at boot # time) there may not be any user set, which will cause ssh-copy-id to # fail. Forcing HOME to the default enables ssh-copy-id to operate # normally. export HOME="/root" PATH="${PATH}:/usr/local/bin" ADMIN_EMAIL="" ADMIN_PASSWD="" PROVIDER="" CURL=...
the_stack
# @@@ START COPYRIGHT @@@ # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the...
the_stack
# Vagrant provisioning script to build up FreeCAD based on OCCT 7 and Salome 7.7.1 on Linux Ubuntu # (c) 2016 Jean-Marie Verdun / vejmarie (vejmarie@ruggedpod.qyshare.com) # Released under GPL v2.0 # Provided without any warranty # Warning: compilation time is long quite long # Must add the autlogin script # Must add a...
the_stack
set -Eeuo pipefail if [ "$EUID" -ne 0 ] then echo "Please run as root" exit fi STARTUP_PATH=$(pwd) # This is a script to create single-node Kubernetes cluster and deploy BDC on it. # export BDCDEPLOY_DIR=bdcdeploy # Get password as input. It is used as default for controller, SQL Server Master instance (sa acco...
the_stack
# # leveraged from mapr_imager.sh and prepare-mapr-image.sh (MapR-on-GCE) # # Script to be executed on top of a newly created Linux instance # to install MapR components for an instance image to be used later. # The specific packages can be passed in via meta data (see maprpackages # below) # # The resulting image wil...
the_stack
declare -a on_exit_actions _fatal() { echo "$0: Error: $*" >&2 exit 1 } _err_handler() { set +Ex _fatal "Line ${LINENO}: $(eval echo \"${BASH_COMMAND}\")" } _exit_handler() { set +E for action in "${on_exit_actions[@]}" ; do eval "${action}" done } _set_on_exit() { on_exit_ac...
the_stack
set -e export PATH='/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin' source /var/tmp/helpers/default.sh readonly COMMON_FILES='/var/tmp/common' readonly UBUNTU_VERSION=$(detect_ubuntu_version) readonly AMAZON_EC2=$(detect_amazon_ec2 && echo 'true') readonly VMWARE=$(detect_vmware && echo 'true') reado...
the_stack
# Multi-Task Kaldi // Josh Meyer (2018) // jrmeyer.github.io # original multi-lingual babel scripts from Pegah Ghahremani # REQUIRED: # # (1) baseline PLP features, and models (tri or mono) alignment (e.g. tri_ali or mono_ali) # for all tasks # (2) input data (audio, lm, etc) # # This script can be used f...
the_stack
# # Script to help manage storage system outside of ViPR. # Used to perform various operations. # # Usage: ./navihelper.sh verify-export <SERIAL_NUMBER> <NAME_PATTERN> <NUMBER_OF_INITIATORS_EXPECTED> <NUMBER_OF_LUNS_EXPECTED> # ./navihelper.sh add_volume_to_mask <SERIAL_NUMBER> <DEVICE_ID> <NAME_PATTERN> # ...
the_stack
# Stop script on error in order to troubleshoot issues set -e #### # Beginning of script execution path detection #### # SCRIPT_NAME=$0 SCRIPT_FULL_PATH=$(dirname "$0") #### # End of script execution path detection #### #### # Beginning of variable definitions #### # Define the directory to your Ansible inventory ANS...
the_stack
## Function to install and configure InfluxDB and Grafana, and integrate them with openHAB. ## This function can only be invoked in INTERACTIVE with userinterface. ## ## influxdb_grafana_setup() ## influxdb_grafana_setup() { if [[ -z $INTERACTIVE ]]; then echo "$(timestamp) [openHABian] InfluxDB and Grafana se...
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
DOCKERMODE=false DOCKERCMD=$(command -v docker 2>/dev/null) DOCKER_BUILDKIT_SETTING=${DOCKER_BUILDKIT_SETTING:-true} unset DOCKER_BUILDKIT DOCKER_ID=${RANDOM} DOCKER_DESTRUCTIVE=true DOCKERFILE_DEFAULT="${BINDIR}/test-patch-docker/Dockerfile" DOCKERSUPPORT=false DOCKER_ENABLE_PRIVILEGED=false DOCKER_CLEANUP_CMD=false D...
the_stack
# Builds the following components: # libfaac # libfaad2 # xvidcore # libx264 # then builds FFmpeg and MPlayer # everything is built in "build" and installed to "stage" so it doesn't clutter up your system # necessary environment variables export ROOT_DIR=${ROOT_DIR:-`cd ..;pwd`} export CODEC_DIR=${CODEC_DIR:-${ROOT_...
the_stack
usage () { echo " Usage: ${0##*/} [options] SOURCE_BUNDLE_REGISTRY DEST_PREFIX ${0##*/} [options] --appregistry DEST_PREFIX Mirror container images listed in an operator bundle. Positional arguments: [SOURCE_BUNDLE_REGISTRY] Will be used for: - Extract bundle files - Get the list ...
the_stack
# Do not fail upon error set -exo pipefail if [ "$(uname)" = "Linux" ]; then CLI_OS="linux" elif [ "$(uname)" = "Darwin" ]; then CLI_OS="darwin" fi export CLUSTER_URL=${CLUSTER_URL:="uninitialized"} export PUBLIC_AGENT_IP=${PUBLIC_AGENT_IP:="uninitialized"} DCOS_USERNAME=${DCOS_USERNAME:="bootstrapuser"} DC...
the_stack
#********************************************************************************* # Copyright (c) 2021 Wavious LLC # # This program 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 Foundation, either version 3 of the Lice...
the_stack
scriptname=$(basename "${0}") minions_value_file="minions-values.yaml" cp_namespace='kubecf' # # Usage statement # This script generates a helm value file for kubecf worker clusters # usage() { echo echo "Usage: $scriptname [OPTIONS]" echo echo " -o" echo " The output value file name...
the_stack
DEBIAN='Debian' CENTOS='CentOS' UBUNTU='Ubuntu' VERSION='6' WORKSPACE=/root/build_zstack_test_image MNT=`mktemp` rm -f $MNT mkdir -p $MNT IMG_NAME=${WORKSPACE}/zstack-test-`date +%Y%m%d`.img #IMG_SIZE=2500 #2500MB #for general test #FS_BLOCK=511744 #2500MB - 1MB; 1block = 4k. #for general test SWAP_SIZE=512000 #500*1...
the_stack
DIR=$(pwd) set -e set -u set -x echo "############################" echo "# TensorFlow with GPU Support" echo "############################" echo "# " echo "# MANUAL STEPS REQUIRED" echo "# - make sure you source ~/.robotics_setup and ensure cuda and cudnn are on the LD_LIBRARY_PATH" echo "# " echo "# TF 1.8 special...
the_stack
set -eu -o pipefail # Get script directory: https://stackoverflow.com/a/246128/151706 SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" done DIR="$( cd -P "$( dirname "$SOURCE" )...
the_stack
me=`basename $0` [ "$me" = bash ] && me=crowbar-prep.sh # These have to be set prior to parse_opts() since usage() # depends on them being set. : ${CLOUD_VERSION_DEFAULT:=4} : ${HOST_MIRROR_DEFAULT:=/data/install/mirrors} : ${HOST_MEDIA_MIRROR_DEFAULT=/srv/nfs/media} # This is run after parse_opts(); see main() for d...
the_stack
# This file is dual-licensed and is also available under other terms. # Please contact the author. # 100 years should be enough for now if [ -z "$DAYS" ]; then DAYS=36525 fi if [ -z "$OPENSSL_SIGALG" ]; then OPENSSL_SIGALG=sha256 fi if [ -z "$REQMASK" ]; then REQMASK=utf8only fi stderr_onerror() { (...
the_stack
# This was modified from wsj/local/chain/tunning/run_tdnn_1d.sh to be # used in Chime4. #This is the result using all 6 channels: # exp/chain/tdnn1a_sp/best_wer_beamformit_5mics.result # ------------------- # best overall dt05 WER 6.04% (language model weight = 9) # ------------------- # dt05_simu WER: 6.25% (Average)...
the_stack
# Author: Gabriel Staples # This file is part of eRCaGuy_dotfiles: https://github.com/ElectricRCAircraftGuy/eRCaGuy_dotfiles # Install all scripts! # - Edit this file manually, as desired, if you only want to install some scripts. # - Just comment out what you don't want to install. # Goal: Have this script automat...
the_stack
set -eo pipefail #0 - load parameters source ./0-params.sh # 1 - Set up resource group echo "Ensuring that we are using the right subscription - $SUBSCRIPTION" az account set --subscription "$SUBSCRIPTION" &> 1-resource_group.log echo "Creating resource group for apps $APP_RG in $LOCATION" az group create -l $LOCATIO...
the_stack
# ---- # Wait for an OCF resource or a bundle to be restarted # ---- # e.g.: # M/S OCF: $0 galera galera-bundle Master # clone OCF: $0 rabbitmq rabbitmq-bundle Started # A/P M/S OCF: $0 redis redis-bundle Slave Master # A/P bundle: $0 openstack-cinder-volume openstack-cinder-volume _ Started # clone bundle: ...
the_stack
# Copyright RackN 2016 # workloads/dev-kubernetes.sh # start_args="$@" . workloads/wl-init.sh # # Kubernetes Config options # help_options["--deployment-name=<String>"]="Deployment name to hold all the nodes" help_options["--deployment-os=<String>"]="Deployment OS: centos7 default" help_options["--dns-domain"]="Doma...
the_stack
set -euo pipefail vcf=$1 SR_counts=$2 SR_sum=$3 RD_melted_genotypes=$4 RF_cutoffs=$5 whitelist=$6 petrainfile=$7 pegenotypes=$8 sr_pval=$( awk -F'\t' '{if ( $5=="SR_sum_log_pval") print $2}' $RF_cutoffs | head -n 1) sr_count=$(/opt/sv-pipeline/04_variant_resolution/scripts/convert_poisson_p.py $sr_pval) #Require bo...
the_stack
#----make sure this is run as root user=`id -u` if [ $user -ne 0 ]; then echo "This script requires root permissions. Please run this script with sudo." exit fi #----ascii art! echo " _ _ _ _ _ _ _ " echo "| | (_) | | | | | | | ...
the_stack
# # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
the_stack
set -x source /etc/environment source /root/config.cfg if [[ $# -lt 1 ]]; then exit 1 fi # In case AMI already have PBS installed, force it to stop service pbs stop || true # Install SSM machine=$(uname -m) if ! systemctl status amazon-ssm-agent; then if [[ $machine == "x86_64" ]]; then yum install ...
the_stack
common_objpfx=$1; shift elf_objpfx=$1; shift rtld_installed_name=$1; shift logfile=$common_objpfx/posix/globtest.out # We have to make the paths `common_objpfx' absolute. case "$common_objpfx" in .*) common_objpfx="`pwd`/$common_objpfx" ;; *) ;; esac # We have to find the libc and the NSS modules. lib...
the_stack