text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
INCLUDEWAR=$1
DIST=centos
DISTVER=7
BUILDDATE=$(date +%Y%m%d)
BUILDREV=00
BASEOS=${DIST}${DISTVER}
IMAGESIZE=100
CODEDX_WAR_VERSION=$(grep codedx ../inventory/viewers.txt | sed 's/codedx-//' | sed 's/.war//')
TOMCATVER=8.5.49
TOMCATURL="https://archive.apache.org/dist/tomcat/tomcat-8/v${TOMCATVER}/bin/apache-tomcat-$... | the_stack |
## Script name: Update_Core_Apps.sh
## Script author: Mike Morales
## Last updated: 2015-03-04
## Last rev notes:
## Updated to account for Oracle Java's new .app installer. Should correctly install the pkg inside the .app bundle if present.
## It should be backward compatiblle with older OS X versions that would sti... | the_stack |
set -e
SUFFIX="$(date +%Y-%m-%d-%H-%M-%S | tr -d '\n\r')"
CWD="$(pwd | tr -d '\n\r')"
alter_env_file=""
env_file="$HOME/.bashrc"
os_ver="Suse11SP1"
user="$(whoami | tr -d '\r\n')"
# commence/restore
action="commence"
# jeprof/asan
mode="asan"
version="V100R008C10"
revision=""
jeprofpath=""
mem_check_dir="$(dirn... | the_stack |
#-------------------------------------------------------------------------------#
#--------------------------------- C O L O R S ---------------------------------#
#-------------------------------------------------------------------------------#
BL='\033[1;30m' # Black
R='\033[1;31m' # Red
G='\033[1;32m' # Green
Y='\... | the_stack |
#==============================================================================
#==============================================================================
# Copyright (c) 2015 Jonathan Yantis
# yantis@yantis.net
# Released under the MIT license
#======================================... | the_stack |
# Adapted from https://github.com/juven/maven-bash-completion/blob/master/bash_completion.bash by Juven Xu and others
# under Apache License Version 2.0
function_exists()
{
declare -F $1 > /dev/null
return $?
}
function_exists _get_comp_words_by_ref ||
_get_comp_words_by_ref ()
{
local exclude cur_ words_... | the_stack |
db=mm39
GENCODE_VERSION=VM26
PREV_GENCODE_VERSION=NOT_VALID
dir=/hive/data/genomes/$db/bed/gencode$GENCODE_VERSION/build
genomes=/hive/data/genomes
tempDb=knownGeneVM26
oldDb=mm10
kent=$HOME/kent
spDb=sp180404
cpuFarm=ku
export oldGeneDir=/cluster/data/mm10/bed/ucsc.19.1
export oldGeneBed=/cluster/data/mm10/bed/ucsc.19... | the_stack |
source "$CONFIG_DIR/provider.$PROVIDER"
#-------------------------------------------------------------------------------
# virt-install / virsh
#-------------------------------------------------------------------------------
VIRSH=virsh
VIRT_INSTALL=virt_install
: ${VIRT_LOG:=$LOG_DIR/virt.log}
function virsh {
... | the_stack |
REL_DIR=`dirname $0`
cd $REL_DIR
source ../header.sh
host="localhost"
port=389
admindn="cn=administrator,cn=users,dc=vmware,dc=com"
adminpw='123'
# 0.
# any prep here
./generate_data.sh > ./data.ldif
ldapadd -c -h $host -p $port -x -D $admindn -w $adminpw -f ./data.ldif > ./addObjects.out5 2>&1
# 1.
# test uniq... | the_stack |
# export IPFS_GATEWAY_API_URL="http://localhost:5001/api/v0/add"
# export IPFS_GATEWAY_API_URL="http://localhost:5002/api/v0/add"
# export IPFS_GATEWAY_API_URL="https://ipfs.dev.originprotocol.com/api/v0/add"
# export IPFS_GATEWAY_API_URL="https://ipfs.staging.originprotocol.com/api/v0/add"
# export IPFS_GATEWAY_API_UR... | the_stack |
#========================================================================================
# Purpose
# Creates index statistics for a single date from the data in the shard table. The input
# argument should be a single day, however, for testing and development purposes the
# number of shards can be limited.
#
# USAGE:
... | the_stack |
pinnedVersion="1.3.1"
# command info
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
echo "config script to switch Specter on, off or update"
echo "tools.specter.sh [status|on|off|update]"
echo "installing the version $pinnedVersion by default"
exit 1
fi
echo "# install.specter.sh $1"
source /home... | the_stack |
CURRDIR=$( dirname "$0" )
# shellcheck source=./common.sh
. "$CURRDIR/common.sh"
# constants
TMPDIR="$( mktemp -d )"
BORGREPO_PRESET_OLD="$TEST_DIR/borgdata/oldbackups-prefix1and2"
# make sure, original files are backed up…
oneTimeSetUp(){
echo "shunit2 v$SHUNIT_VERSION"
echo "Testing with real borg…"
echo
mv "$C... | the_stack |
PROGVERSION="X.Y-Z"
#
# Copyright (c) 2020 ADVANCED MICRO DEVICES, INC.
#
# AMD is granting you permission to use this software and documentation (if any) (collectively, the
# Materials) pursuant to the terms and conditions of the Software License Agreement included with the
# Materials. If you do not have a copy... | the_stack |
# My good old wepcrack script. It works very well and could teach you stuff,
# *but* it is not ported to the framework architecture so it's blacklisted
# until then.
# Anyhow, if you want to enjoy it, then just do:
## source wepcrack/functions.sh
# It will display help by itself, as well as how to use the help pages.
... | the_stack |
# Meant to be sourced, not executed directly.
if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
echo "This script is intended to be sourced, not run. Aborting."
false
exit
fi
#------------------------------------------------------------------------------#
# For tests using the Linux kernel network stack.
#--------... | the_stack |
struct LightRay
{
//vec3 l;
float NoL;
float NoH;
float LoH;
float cNoL;
float cNoH;
float cLoH;
float LoV;
#ifdef ANISOTROPY
float XoH;
float YoH;
#endif
float RoV;
float cRoV;
};
LightRay calc_light_ray(Fragment fragment, vec3 l)
{
vec3 V = fragment.view;
... | the_stack |
case "$COMP_WORDBREAKS" in
*:*) : great ;;
*) COMP_WORDBREAKS="$COMP_WORDBREAKS:"
esac
# Discovers the path to the git repository taking any '--git-dir=<path>' and
# '-C <path>' options into account and stores it in the $__git_repo_path
# variable.
__git_find_repo_path ()
if [ -n "${__git_repo_path-}" ]; then
# we al... | the_stack |
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2019-2021 Xilinx, Inc. All rights reserved.
#
# Deployment script for SDAccel compiled OpenCL programs
# This script will do the following:
# 1. Copy the necessary runtime files to the target directory specified with -d switch
# 2. Remove SDAccel's copy of libstdc... | the_stack |
#------------------------------------------------------------------------------
# Skip to the end for main flow of script
#------------------------------------------------------------------------------
# See the Readme.md file for details on how it works and for the user guide.
#--------------------------------------... | the_stack |
set -eu
set -o pipefail
# to script directory
cd "$(dirname "$0")"
# import functions
. ../setup-scripts/common/color-print.sh
#################################################
### Acceptance Test
#################################################
cat <<'EOF' | colored_cat c
########################################... | the_stack |
shopt -s nullglob
dry_run=0
debug_flag=0
haz_error=0
modes=()
test_mode=""
kernel_names=() # set by generate_mode_list
mode_list=() # set by generate_mode_list
test_commands_list=() # set by generate_test_commands_list
update_funcs=() # set by generate_mode_list
commands=()
# setup signal traps
trap "trap_quit" TER... | the_stack |
export PATH=.:$HOME/lib:$PATH
source list-utils.sh
source test-utils.sh
test_01_list_add() {
start_test
list1=()
list_add list1 foo
check_item list1 0 foo "list_add failed"
check_size list1 1 "list_add size test failed"
list_add list1 bar
check_size list1 2
check_item list1 0 foo
check_ite... | the_stack |
# shellcheck disable=SC1090,SC1091
# Load generic libraries
. /opt/bitnami/scripts/liblog.sh
########################
# Execute a command (or list of commands) with the web server environment and library loaded
# Globals:
# *
# Arguments:
# None
# Returns:
# None
#########################
web_server_execute() {... | the_stack |
#
# Onix Pilot Host Control Service
# Copyright (c) 2018-2021 by www.gatblau.org
# Licensed under the Apache License, Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0
# Contributors to this project, hereby assign copyright in this code to the project,
# to be licensed under the same terms as the... | the_stack |
############
##Path One##
############
#If you want to build an up-to-date Pseudomonas expression compendium, you can download datasets and process them as follows:
#Download pseudonomas datasets from ArrayExpress
mkdir -p Data_collection_processing/data/zips
#For mac users, you need to install... | the_stack |
# Copyright 2020 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 |
# Updated for $.broswer-msie error; will populate tracker list properly ; create check/start scripts;
# create crontab entries. Rest is all perfect from Notos. Thanks.
#
# The Seedbox From Scratch Script
# By Notos ---> https://github.com/Notos/
# Modified by dannyti ---> https://github.com/dannyti/
#
##########... | the_stack |
__kure_debug()
{
if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then
echo "$*" >> "${BASH_COMP_DEBUG_FILE}"
fi
}
# Homebrew on Macs have version 1.3 of bash-completion which doesn't include
# _init_completion. This is a very minimal version of that function.
__kure_init_completion()
{
COMPREPLY=()
_get_c... | the_stack |
log "Starting NetBoot Installation"
apt_install() {
if [[ $(apt-cache -n search ^${1}$ | awk '{print $1}' | grep ^${1}$) == "$1" ]] && [[ $(dpkg -s $1 2>&- | awk '/Status: / {print $NF}') != "installed" ]]; then
apt-get -qq -y install $1 >> $logFile 2>&1
if [[ $? -ne 0 ]]; then
log "Failed to install ${1}"
... | the_stack |
python3 -m basic_old.cli \
--run_id 12 \
--load_path out/basic/06/save/basic-40000 \
--shared_path out/basic/06/shared.json \
--k 10 \
--load_ema False --gpu_idx 3 \
--mode test --data_dir newsqa \
--len_opt --batch_size 15 --num_steps 40000 \
--eval_period 1000 --save_period 1000 \
--sent_size_th 2100 --para_size_th 2... | the_stack |
set -e
set -x
DIR=`pwd`
SCRIPT_DIR=$(dirname -- "$(readlink -f -- "$BASH_SOURCE")")
ROOT=$(cd ${SCRIPT_DIR}/.. && pwd)
ABI=${ABI:-armeabi-v7a}
RELEASE_BUILD=0
while getopts r option; do
case "$option" in
r) RELEASE_BUILD=1;;
esac
done
shift $((OPTIND -1))
# Please read `doc/android-sdk-versions.md` a... | the_stack |
SCRIPT_DIR=$(cd $(dirname $0) > /dev/null; pwd)
. ${SCRIPT_DIR}/_essbase-functions
function updateEssbaseCfgSetting() {
local thekey=$1
local newvalue=$2
local filename="${DOMAIN_HOME}/config/fmwconfig/essconfig/essbase/essbase.cfg"
log "Updating essbase.cfg: ${thekey} ${newvalue}"
if $(grep -i -R "^[[:... | 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 Lice... | the_stack |
mkdir -p db
die() {
echo >&2 $1
exit 1
}
dump_symbols() {
readelf -Ws $1 | perl -n -e '/: (\w+)\s+\w+\s+(?:FUNC|OBJECT)\s+(?:\w+\s+){3}(\w+)\b(?:@@GLIBC)?/ && print "$2 $1\n"' | sort -u
}
extract_label() {
perl -n -e '/(\w+)/ && print $1'
}
dump_libc_start_main_ret() {
local call_main=`objdump -D $1 \
... | the_stack |
# -----------------------------------------------------------------------------
#
# This script can perform the following changes on
# the USB version of on Slackware Live Edition.
# - upgrade the kernel and modules
# - add network support modules for PXE boot (if missing)
# - increase (or decrease) USB wait time durin... | the_stack |
check_result(){
if [ $1 -ne 0 ]; then
echo "$2 Failed, Abort"
exit 1
else
echo "$2 Succeeded!"
fi
}
create_an_intermediate(){
# $1 - chain ID
# $2 - ICA Number (Example entity signed by ICA1 signed by ICA2 and so on)
# $2 - pathLength to use
# $3 - Signer of this Int... | the_stack |
cat 1>&2 <<-EOF
This script is not to run on any system.
Anh K. Huynh adds this banner to prevent script from being used.
The script is part of the backup-manager-0.7.10.1-2 on Ubuntu 14.04-LTS.
It's here as an example of wrong use of $? in Bash.
EOF
exit 0
# Copyright (C) 2010 The Backup Manager Authors
#
#... | the_stack |
load helpers
load helpers_tui
@test "container create" {
podman pod rm -f $TEST_CONTAINER_POD_NAME || echo done
podman container rm -f $TEST_CONTAINER_NAME || echo done
podman container rm -f ${TEST_CONTAINER_NAME}_renamed || echo done
podman network rm $TEST_CONTAINER_NETWORK_NAME || echo done
pod... | the_stack |
# The AWS EC2 Instance Metadata endpoint
readonly metadata_endpoint="http://169.254.169.254/latest"
# The AWS EC2 Instance Metadata dynamic endpoint
readonly metadata_dynamic_endpoint="http://169.254.169.254/latest/dynamic"
# The AWS EC2 Instance document endpoint
readonly instance_identity_endpoint="http://169.254.169... | the_stack |
# ************************Variable*********************************************
ScriptPath="$( cd "$(dirname "$0")" ; pwd -P )""/"
DEV_NAME=$1
#********************** UPDATE TO FIX ISSUE REGARDING /dev/mmc* MOUNTED SD CARD **********
if [[ $DEV_NAME == /dev/mmc* ]]
then
echo "Partion naming with p-prefix"
p1... | the_stack |
### PREFLIGHT CHECKS ###
# suid=$( id -u ) ; [ "$suid" = "0" ] || \
[ `id -u` -ne 0 ] && \
{ echo Must be excuted with root privileges. Exiting ; exit 1 ; }
[ -z ${2##*[!0-9]} ] || \
{ echo The requested VM name $2 cannot end in a number. Exiting ; exit 1 ; }
[ -f /usr/local/etc/vmrc.conf ] || \
{ echo /usr/local/... | the_stack |
# # display expanded values
# set -o xtrace
# # quit on errors
# set -o errexit
# # error on unset variables
# set -o nounset
######################################
# Script variables
######################################
# These use external environment variables if set, otherwise use arbitrary default values
MAXGR... | 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 download_gcc_combo(... | the_stack |
# test suite for merge_obs_sequence utility
# set up constant part at beginning
cat > input.nml.head <<EOF
&obs_sequence_nml
write_binary_obs_sequence = .false.
/
&obs_kind_nml
/
&utilities_nml
TERMLEVEL = 1,
module_details = .false.,
/
EOF
# we will concatinate onto the end of this file
rm -fr... | the_stack |
. ./cmd.sh
. ./path.sh
set -e
mfccdir=`pwd`/mfcc
vaddir=`pwd`/mfcc
voxceleb1_root=/export/corpora/VoxCeleb1
voxceleb2_root=/export/corpora/VoxCeleb2
sitw_root=/export/corpora/SRI/sitw
nnet_dir=exp/xvector_nnet_1a
musan_root=/export/corpora/JHU/musan
sitw_dev_trials_core=data/sitw_dev_test/trials/core-core.lst
sitw_ev... | the_stack |
# shellcheck shell=bash
# Check syntax: shellcheck -s bash -e 1072,1094,1107,2145 -x ngx_installer.conf ngx_installer.sh
### BEG SCRIPT INFO
#
# Header:
#
# fname : "ngx_installer.sh"
# cdate : "22.05.2019"
# author : "Michał Żurawski <trimstray@gmail.com>"
# tab_size : "2"
# soft_tabs... | the_stack |
set -e;
BT=${BT-../../bin/bedtools}
FAILURES=0;
check()
{
if diff $1 $2; then
echo ok
else
FAILURES=$(expr $FAILURES + 1);
echo fail
fi
}
###########################################################
# Test defaults
############################################################
echo -e " map.t01...\c"... | the_stack |
VERSION="1.1.1"
BUILD_DATE="20210501"
REQUIRED_PACKAGES=( "curl" "jq" )
# System variables
API_URL="http://api.resmush.it"
QUALITY=92
OUTPUT_DIR="."
PRESERVE_EXIF=false
PRESERVE_FILENAME=false
RECURSIVE_BROWSING=false
APP_DIR=$(dirname "$0")
TIME_LOG=true
QUIET_MODE=false
RED="\033[0;31m"
GREEN="\033[0;32m"
LBLUE="\03... | the_stack |
# We assume that the following variables are defined in the main script:
# amanda_user: the amanda account username
# amanda_group: the amanda account's group
# amandahomedir: a directory to use as amanda's home
# deb_uid: sepecific uid amanda_user should get on deb style systems.
# dist: used on linux for the distro.
... | the_stack |
# Copyright 2012 Arnab Ghoshal
# Copyright 2010-2011 Microsoft 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
#
# THIS CODE IS PR... | the_stack |
err_file=""
tmp_dir=/tmp
bucket=mybucket
file=dd_file
runCnVerbose=""
runCnStatus=0
lastTest=""
captionForFailure=""
start_time=0
nested_tests=0 # How many test_* are nested
file_extension=""
tests_ran=0
IMAGE_NAME=ceph/daemon
CLUSTER_NAME_BASE=one-cluster
current_cluster_name=""
MAX_CLUSTERS=5
function start_test {
... | the_stack |
declare -A base_colors
base_colors=( [default]=0 [black]=1 [red]=2 [green]=3 [yellow]=4 [blue]=5 [magenta]=6 [cyan]=7 [white]=8 )
current_desktop=$(xdotool get_desktop)
colorschemes=~/.config/orw/colorschemes
all_colors=$colorschemes/colors
root=~/.orw
dotfiles=$root/dotfiles
config=$dotfiles/.config
bash_conf=$do... | the_stack |
ansi::addCode() {
local N
if [[ "$1" == *=* ]]; then
N="${1#*=}"
N="${N//,/;}"
else
N=""
fi
OUTPUT="$OUTPUT$CSI$N$2"
}
ansi::addColor() {
OUTPUT="$OUTPUT$CSI${1}m"
if [ ! -z "$2" ]; then
SUFFIX="$CSI${2}m$SUFFIX"
fi
}
ansi::colorTable() {
local FN... | the_stack |
# Copyright (c) 2011-2015 Benjamin Fleischer
# 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
# lis... | the_stack |
# FLAC - Free Lossless Audio Codec
# Copyright (C) 2001-2009 Josh Coalson
# Copyright (C) 2011-2016 Xiph.Org Foundation
#
# This file is part the FLAC project. FLAC is comprised of several
# components distributed under different licenses. The codec libraries
# are distributed under Xiph.Org's BSD-like licens... | 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 |
set -e
APPLICATION="${0##*/}"
SCRIPTDIR="${SCRIPTDIR:-"`dirname "$0"`/.."}"
CHROOTBINDIR="$SCRIPTDIR/chroot-bin"
CHROOTETCDIR="$SCRIPTDIR/chroot-etc"
DISTRODIR=''
INSTALLERDIR="$SCRIPTDIR/installer"
HOSTBINDIR="$SCRIPTDIR/host-bin"
TARGETSDIR="$SCRIPTDIR/targets"
SRCDIR="$SCRIPTDIR/src"
ARCH=''
BOOTSTRAP_RELEASE=''
D... | 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... | the_stack |
# determine arch
arch=`uname -a | cut -d " " -f12`
# Determine OS. not the cleanest method, but will do for now.
OS=`cat /etc/issue.net | cut -d " " -f1`
# First things first, we need the stage 1 installer tarball. This tarball has all of the packages .deb and .tar.gz needed for us to
# get this pig to fly. We ask the... | the_stack |
declare -a ArrayMetaMgmt=( Unset ReadOnly Empty DefaultConfList IntDefaultConfList SingleSet ) ;
### Sub-Function List
declare -a ArraySubFuncCall=( _sub_ssh_handler _sub_call_locality _sub_fnctCreateLocalityFuncParam fnct__in_for _sub_FParamDisplayValue _sub__in_while _sub_ImbriqIf _sub_fnctCmdEval _sub_GetSpacer _s... | the_stack |
set -ex
### General variables ###
SCRIPT_DIR=$(dirname $(readlink -f $0))
INFAAS_HOME=${SCRIPT_DIR} # Know relative path
CMAKE_VERSION='3.7'
LOG_DIR=${INFAAS_HOME}"/logs/master_logs/" # Logging directory for Master
MASTER_IP=`curl -s http://169.254.169.254/latest/meta-data/local-ipv4` # IP of the machine that runs thi... | the_stack |
# ------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
# ------------------------------------------------------------
######################
# State ma... | the_stack |
makeEnvLocal(){
#
#
# Example usage local at GSI - test farm
#
export isBatch=1
echo makeEnvLocal
export baliceTPC="ali -n 1"
ali -n 1
export isBatch=1
export batchCommand="qsub -cwd -V "
export calgrindCommand="/usr/bin/valgrind --tool=callgrind --log-file=cpu.txt --num-callers=40 -v ... | the_stack |
echo "FallingSandSurvival project setup"
echo ""
echo "You should have already done the required steps before running this file."
echo "Please do these first unless you know what you're doing."
echo "Instructions: https://github.com/PieKing1215/FallingSandSurvival/wiki/Building"
echo ""
read -p "Press [Enter] to start ... | the_stack |
# Package name : perl5
# Source directory : .
# Configuration time: Fri Feb 29 00:00:00 EDT 2108
# Configured by : jhi
# Target system : linux android arm-eabi
Author=''
Date='$Date'
Header=''
Id='$Id'
Locker=''
Log='$Log'
Mcc='Mcc'
RCSfile='$RCSfile'
Revision='$Revision'
Source=''
State=''
_a='.a'
_exe=... | the_stack |
set -euo pipefail
export YB_PG_FALLBACK_SYSTEM_USER_NAME=$USER
export YB_DISABLE_CALLHOME=1
readonly YSQL_DEFAULT_PORT=5433
ysql_ip=127.0.0.1
# This will be auto-detected the first time yb-ctl auto-downloads and installs YugaByte DB.
installation_dir=""
log() {
echo >&2 "[$( date +%Y-%m-%dT%H:%M:%S )] $*"
}
fata... | 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 |
export LC_ALL=C
: ${PAEXEC_FIND:=find}
FIND_CMD=$PAEXEC_FIND
#EXEPREFIX='valgrind -q'
#EXEPREFIX='env EF_PROTECT_BELOW=1 ef'
export PATH=`pwd`/fakeflac:$PATH
DIFF_PROG=${DIFF_PROG-diff -U10}
OBJDIR=${OBJDIR-..}
SRCDIR=${SRCDIR-..}
runpaexec (){
$EXEPREFIX paexec "$@" 2>&1
}
runpaexec_resort (){
$EXEPREFI... | the_stack |
usage() {
cat <<-EOF >&2
Usage: $(basename "$0") [-f] [-i [p][r][m][c][d]] [-u] [-b <branch>]
Install and setup haproxy, PostgREST, polling services and create systemd services for haproxy, postgREST and dbsync
-u Skip update check for setup script itself
-r Reset grest schema - drop all cron j... | the_stack |
## License: GPL
## This is the magically modified version of the one-click reload script.
## It can reinstall CentOS, Debian, Ubuntu and other Linux systems (continuously added) over the network in one click.
## It can reinstall Windwos 2003, 7, 2008R2, 2012R2, 2016, 2019 and other Windows systems (continuously added) ... | the_stack |
# This will cause the script to exit on the first error
set -e
if ! [ -x "$(command -v docker)" ]; then
printf "\033[31m[DEPLOY-VERSION] ERROR: docker is not installed!\033[0m\n\n" >&2
exit 1
fi
if ! [ -x "$(command -v docker-compose)" ]; then
printf "\033[31m[DEPLOY-VERSION] ERROR: docker-compose is not ... | the_stack |
# This script is used to configure the essentials of ledokku.
## 1 => Check whether the program/application, "Whiptails" exists or not.
## 2 => Making sure that the script is running with root permissions.
## 3 => Update and Upgrade the VPS.
## 4 => Check whether the program/application, "Dokku" was Installed or not.
#... | the_stack |
function bv_boost_initialize
{
export DO_BOOST="no"
export USE_SYSTEM_BOOST="no"
add_extra_commandline_args "boost" "alt-boost-dir" 1 "Use alternative directory for boost"
}
function bv_boost_enable
{
DO_BOOST="yes"
}
function bv_boost_disable
{
DO_BOOST="no"
}
function bv_boost_alt_boost_dir
{
... | the_stack |
# Copyright 2021 Tianzi Wang
# Apache 2.0
# Thanks to Abdelrahman Mohamed and Wei-Ning Hsu's help in this implementation,
# Their origial Hubert work is in:
# Paper: https://arxiv.org/pdf/2106.07447.pdf
# Code in Fairseq: https://github.com/pytorch/fairseq/tree/master/examples/hubert
set -e
set -u
set -o pipef... | the_stack |
export PATH=/sbin:/bin:/usr/sbin:/usr/bin$PATH
logger -t "($(basename "$0"))" "$$ Starting Script Execution ($(if [ -n "$1" ]; then echo "$1"; else echo "menu"; fi))"
VERSION="1.1.1"
GIT_REPO="Stubby-Installer-Asuswrt-Merlin"
GITHUB_DIR="https://raw.githubusercontent.com/Xentrk/$GIT_REPO/master"
# Uncomment the line b... | 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | the_stack |
load 'test_helper/common'
export IMAGE_NAME CONTAINER_NAME TEST_FILE
IMAGE_NAME="${NAME:?Image name must be set}"
CONTAINER_NAME='open-dkim'
TEST_FILE='OpenDKIM :: '
function setup
{
run_setup_file_if_necessary
}
# WHY IS THIS CONTAINER EVEN CREATED WHEN MOST TESTS DO NOT USE IT?
function setup_file
{
local PRIV... | the_stack |
export OPTIONS_SPEC="\
bash $0 [options]
Run tests
Example:
sh $0 -v
--
Available options are
v,verbose! be more explicit about what is going on
q,quiet! be quiet
x,exit! exit after first test failure
s,shell= shell to use [default: /bin/sh]
"
eval "$(
echo "$OPTIONS_SPEC" \
| gi... | the_stack |
set -e #fail in case of non zero return
echo "OCP_CLUSTER_VERSION_SUFFIX=$OCP_CLUSTER_VERSION_SUFFIX"
JQ_VERSION='1.6'
MAX_LIMIT_FOR_INDEX_WAIT=20
EXTRA_ARGS=''
CURRENT_OPENSHIFT_RUN=${OCP_CLUSTER_VERSION-""}
OC_DIR_CORE=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 20 | head -n 1)
SUBDIR_ARG="-e work_subdir_name... | the_stack |
# Install ROS
# Reference
# Thanks @jetsonhacks
# https://github.com/jetsonhacks/installROSTX2/blob/master/installROS.sh
ros_wstool_string()
{
local regex='(https?|ftp|file)://[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/%=~_|]'
if [[ $ROS_WSTOOL =~ $regex ]] ; then
# Is a weblink
echo "webli... | the_stack |
# This bootstrap sources both bootstrap-ingest.sh and bootstrap-web.sh, so that
# higher level scripts can harness both of those services via the "datawave"
# service name, and so that there's a single place to define variables and code
# shared by both components
# Current script dir
DW_DATAWAVE_SERVICE_DIR="$( cd "... | the_stack |
## save path to installer files
## cd "$( cd "$( dirname "$0" )" && pwd )"
cd /Applications/PlexConnect/update/OSX
InstallerPath=${PWD}
## find PlexConnect main path
cd ../..
PlexConnectPath=${PWD}
## go back to InstallerPath
cd update/OSX
DefaultPath=${PWD}
# current user
whoami=${USER}
## Generate wcios.bash base... | the_stack |
# LOGFILE - store debug logs of bootstrap
logFile="/home/admin/raspiblitz.provision-update.log"
# INFOFILE - state data from bootstrap
infoFile="/home/admin/raspiblitz.info"
# CONFIGFILE - configuration of RaspiBlitz
configFile="/mnt/hdd/raspiblitz.conf"
# SETUPFILE - - setup data of RaspiBlitz
setupFile="/var/cache... | the_stack |
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
# Context: this is running in the container started from the image defined via
# opstrace-ci.Dockerfile. The build directory (within TMPDIR on host) is
# mounted at /build.
echo "running $(basename $0)"
set -o xtrace
# For debugging potential issues. `g... | the_stack |
REPLACE_DAEMON_OPTS="Replace_docker_daemon_opts"
REPLACE_CONTAINER_LIST="Replace_container_list"
HOSTFILE="host.tmpl"
HOSTTMP="/tmp/host.tmp"
CNTRFILE="container.tmpl"
CNTRTMP="/tmp/container.tmp"
rm -f $HOSTFILE $CNTRFILE
echo "==> generate $HOSTFILE"
cat docker-bench-security/functions/functions_lib.sh > $HOSTTMP... | the_stack |
# Copyright (c) 2006, Google 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:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and t... | the_stack |
###
## VARS
###
AWS_PROFILE="default"
AWS_REGION="us-east-1"
MANAGED_TAG="Terraform"
BADGES_S3_BUCKET_NAME="terraform-infra-as-code-coverage-badges"
###
## FUNCTIONS
###
# Instances
find_all_instances () {
aws ec2 describe-instances --region $AWS_REGION --profile "${AWS_PROFILE}" --query "Reservations[].Instances[]... | the_stack |
# This file describes browser build for perManBai1
# GCF_000500345.1_Pman_1.0_assembly_report.txt
# Assembly name: Pman_1.0
# Organism name: Peromyscus maniculatus bairdii (prairie deer mouse)
# Taxid: 230844
# BioSample: SAMN00848614
# BioProject: PRJNA53563
# Submitter: Baylor College of Me... | the_stack |
# Copyright 2020 Authors of Arktos.
#
# 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 wr... | the_stack |
REPO_VERSION=${NVIDIA_TRITON_SERVER_VERSION}
if [ "$#" -ge 1 ]; then
REPO_VERSION=$1
fi
if [ -z "$REPO_VERSION" ]; then
echo -e "Repository version must be specified"
echo -e "\n***\n*** Test Failed\n***"
exit 1
fi
if [ ! -z "$TEST_REPO_ARCH" ]; then
REPO_VERSION=${REPO_VERSION}_${TEST_REPO_ARCH}
fi... | the_stack |
################################################################################
################################################################################
########### Super-Linter linting Functions @admiralawkbar ######################
#############################################################################... | the_stack |
# import utility_functions
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
. "${script_dir}/utility_functions.bash"
sarus-build-images() {
echo "${FUNCNAME^^} with:"
_print_parameters
# Travis is not supporting buildkit at the moment :(
local BK=1
local BKIC=1
if... | the_stack |
# Magic line must be first in script (see README.md)
s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
APPNAME=example
cfg=$dir/conf.xml
# Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false)
# Use yang in example
cat <<EOF > $cfg
<clixon-config xmlns="http://c... | the_stack |
RSVM_VERSION="0.5.1"
RSVM_NIGHTLY_PATTERN="nightly(\.[0-9]+)?"
RSVM_BETA_PATTERN="beta(\.[0-9]+)?"
RSVM_NORMAL_PATTERN="[0-9]+\.[0-9]+(\.[0-9]+)?(-(alpha|beta)(\.[0-9]*)?)?"
RSVM_RC_PATTERN="$RSVM_NORMAL_PATTERN-rc(\.[0-9]+)?"
RSVM_VERSION_PATTERN="($RSVM_NIGHTLY_PATTERN|$RSVM_NORMAL_PATTERN|$RSVM_RC_PATTERN|$RSVM_BETA... | the_stack |
# Versions to install
ELASTIC_VERSION=6.6.1
WAZUH_VERSION=3.8
WAZUH_PATCH=$WAZUH_VERSION.2
WAZUH_PACKAGE=$WAZUH_PATCH-1
WAZUH_MANAGER_PKG="wazuh-manager"
WAZUH_API_PKG="wazuh-api"
ELASTIC_PKG="elasticsearch"
LOGSTASH_PKG="logstash"
KIBANA_PKG="kibana"
# Configuration variables
PKG_MANAGER=""
PKG_INSTALL=""
PKG_OPTIONS... | the_stack |
input=$1
trap "exit" INT
declare -a validation="/ssd/imagenet/val_processed"
declare -a model="/ssd/nestc-data/glow_data/shufflenet/model.onnx"
# original model for shufflenet
if [ $input -eq 1 ]
then
python3 ../imagenet_topk_accuracy_driver_py3.py --verbose \
--validation-images-dir=$validation \
--image-cla... | the_stack |
# check if Lambda exists given the config variables, create it if not
# load local settings if not already loaded
[[ $SCR_DIR ]] || SCR_DIR="$(cd "$(dirname "$0")/."; pwd)"
[[ $PRJ_DIR ]] || source "$SCR_DIR/02_setup.sh"
echo
echo -e "$INFO Setting up AWS Lambda and API Gateway infrastructure ..."
# some default ... | the_stack |
set -x
set +e
source "./publicTest.sh"
# shellcheck disable=SC2034
{
propKey="0xfd0c4a8a1efcd221ee0f36b7d4f57d8ff843cb8bc193b39c7863332d355acafa"
propAddr="15VUiygdxMSZ3rykwe742yomp2cPJ9Tfve"
votePrKey="CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944" #14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
... | the_stack |
# Copyright (c) 2011 Float Mobile Learning
# http://www.floatlearning.com/
# Extension Copyright (c) 2013 Weptun Gmbh
# http://www.weptun.de
#
# Extended by Ronan O Ciosoig January 2012
#
# Extended by Patrick Blitz, April 2013
#
# Extended by John Turnipseed and Matthew Nespor, November 2014
# http://nanonation.net/
#... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.