text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
# SPDX-FileCopyrightText: 2021 iteratec GmbH
#
# SPDX-License-Identifier: Apache-2.0
# Official installation script for the secureCodeBox
#
# Creates namespace, securecodebox-system, and installs the operator.
# Then installs all possible resources (scanners, demo-targets, hooks).
#
# There exist different modes:
# Ca... | the_stack |
__zplug::utils::git::clone()
{
local repo="$1"
local depth_option url_format
local -i ret=1
local -A tags default_tags
# A validation of ZPLUG_PROTOCOL
# - HTTPS (recommended)
# - SSH
if [[ ! $ZPLUG_PROTOCOL =~ ^(HTTPS|https|SSH|ssh)$ ]]; then
__zplug::io::print::f \
... | the_stack |
set -x
set -e
# 公用测试函数
#color
RED='\033[1;31m'
GRE='\033[1;32m'
NOC='\033[0m'
# 出错退出前拷贝日志文件
function exit_cp_file() {
exit 1
set -x
# shellcheck disable=SC2116
dirNameFa=$(echo ~)
dirName="${dirNameFa}/x2ethereumlogs"
if [ ! -d "${dirName}" ]; then
# shellcheck disable=SC2086
... | the_stack |
regex='^[0-9]+$'
function RemoveMultiLineUser() {
local SECRET_T
SECRET_T=$(python3.8 -c 'import config;print(getattr(config, "USERS",""))')
SECRET_T=$(echo "$SECRET_T" | tr "'" '"')
python3.8 -c "import re;f = open('config.py', 'r');s = f.read();p = re.compile('USERS\\s*=\\s*\\{.*?\\}', re.DOTALL);nonBracketedStri... | the_stack |
# Dependencies:
# ``functions`` file
# ``DEST``, ``STACK_USER`` must be defined
# ``SERVICE_{HOST|PROTOCOL|TOKEN}`` must be defined
# ``stack.sh`` calls the entry points in this order:
#
# install_trove
# install_python_troveclient
# configure_trove
# init_trove
# start_trove
# stop_trove
# cleanup_trove
# Save trace... | the_stack |
# Copyright 2014 Yajie Miao Carnegie Mellon University Apache 2.0
# This script trains tandem systems using bottleneck features (BNFs). The
# BNF network is trained over fbank features. It is to be run after run.sh.
# Before running this, you should already build the initial GMM model. This
# script requires... | the_stack |
# * If you want to debug perl or want to send a
# stack trace for inclusion into an bug report, call
# Configure with the additional argument -Doptimize=-g2
# or uncomment this assignment to "optimize":
#
#optimize=-g2
#
# If you want both to optimise and debug with the DEC cc
# you must have -g3, e.g. "-O4 -g3", and ... | the_stack |
# remediation = none
yum install -y jq
kube_apipath="/kubernetes-api-resources"
# Create infra file for CPE to pass
mkdir -p "$kube_apipath/apis/config.openshift.io/v1/infrastructures/"
cat <<EOF > "$kube_apipath/apis/config.openshift.io/v1/infrastructures/cluster"
{
"apiVersion": "config.openshift.io/v1",
"... | the_stack |
#
# Copyright 2016 LinkedIn Corp.
#
# 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 |
source $(dirname $0)/common_subs.sh
Usage()
{
echo 'Usage: dutests.sh <sanity conf file path> (vmax2 | vmax3 | vnx | vplex [local | distributed] | xio | unity] [-setuphw|-setupsim) [-report] [-cleanup] [-resetsim] [test_1 test_2 ...]'
echo ' (vmax 2 | vmax3 ...: Storage platform to run on.'
echo ' [-setup... | the_stack |
# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | the_stack |
##############################################################################
# k8s-minikube.sh
#
# This script can be used to help run Kubernetes via minikube.
# The typical order of commands used is the following:
# start - starts the Kubernetes cluster via minikube
# istio - installs Istio using Kiali's install... | the_stack |
if uname -a | grep x86_64 >/dev/null; then
ARCH_SUFFIX=amd64
else
ARCH_SUFFIX=i386
fi
: "${JDK_SWITCHER_DEFAULT:=openjdk8}"
: "${UJA:=update-java-alternatives}"
OPENJDK6_UJA_ALIAS="java-1.6.0-openjdk"
OPENJDK6_JAVA_HOME="/usr/lib/jvm/java-6-openjdk"
if [[ -d "/usr/lib/jvm/java-6-openjdk-${ARCH_SUFFIX}" ]]; th... | the_stack |
# Future updates :
#
#
#
##### (Cosmetic) Colour output
RED="\033[01;31m" # Issues/Errors
GREEN="\033[01;32m" # Success
YELLOW="\033[01;33m" # Warnings/Information
BLUE="\033[01;34m" # Heading
BOLD="\033[01;01m" # Highlight
RESET="\033[00m" # Normal
##### help function
usage ()
{
##### ech... | the_stack |
print_usage() {
local program version author default_dest default_platform
program="$1"
version="$2"
author="$3"
bin="$4"
default_dest="$5"
default_platform="$6"
need_cmd sed
echo "$program $version
Installs a binary release of $bin for supported platforms
USAGE:
$program [OPTIONS]... | the_stack |
set -e
# DAY1=2016-05-28
# DAY2=2016-05-29
# DAY3=2016-05-30
# DAY4=2016-05-31
# DAY5=2016-06-01
DAY1=2017-05-17
DAY2=2017-05-18
DAY3=2017-05-19
DAY4=2017-05-20
DAY5=2017-05-21
cat > breaks.csv <<EOF
kind_slug,kind_label,day,start,duration,room_name,content_override
sponsor-tutorial,Break,${DAY1},10:30,30,(B110-111|... | the_stack |
doInstall() {
echo "ORDS Installation Parameters: Oracle REST Services for JSON."
echo "\$ORDS_ROOT : $ORDS_ROOT"
echo "\$USER : $USER"
echo "\$SERVER : $SERVER"
echo "\$DEMOHOME : $demohome"
rm -rf "$ORDS_ROOT/XFILES/Applications/RESTDEMO"
rc=$?
echo "DELETE "$ORDS_ROOT/XFI... | the_stack |
# If stdout is the terminal, save a copy of the output to a log file
if [ -t 1 ]
then
# Redirect stdout ( > ) into a named pipe ( >() ) running "tee"
exec > >(tee "build_template.log")
# Copy stderr to stdout
exec 2>&1
fi
#
# Checks exit value for error
#
checkError() {
# shellcheck disable=SC2181
if [ $? -n... | the_stack |
# Basic test script
# (C) 2008 Adrian Prantl, Viktor Pavlu
#set -x
# set this to 42 to get a lot of debug output, something else otherwise
# debug=42
debug=0
# work in the 'C' locale to avoid trouble with different numeric formats
LC_ALL=C
if [ $# = 2 ]; then
ANALYSIS=$1
SUITE=$2
else
if [ $# = 1 ]; then
... | the_stack |
sed -i 's/192.168.1.1/192.168.10.1/g' package/base-files/files/bin/config_generate
# rc.common兼容新旧格式插件
wget -P ./package/base-files/ https://raw.githubusercontent.com/zxlhhyccc/acc-imq-bbr/master/master/package/base-files/001-fix-rc.common.patch
pushd package/base-files
patch -p1 < 001-fix-rc.common.patch
popd
# squash... | the_stack |
#{{{ MARK:env vars to re eval after sourcing tokens
#**************************************************************
if zpwrIsZsh; then
if ! (( $+ZPWR_VARS )) || [[ ${parameters[ZPWR_VARS]} != association ]]; then
declare -Ag ZPWR_VARS
fi
else
declare -Ag ZPWR_VARS
fi
type -a zpwr... | the_stack |
basename="s,^.*/,,g"
# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
# is ksh but when the shell is invoked as "sh" and the current value of
# the _XPG environment variable is not equal to 1 (one), the special
# positional parameter $0, within a function call, is the name of the
# function.
pr... | the_stack |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
MAKEDEMO=0
USEDEMO=0
. "${DIR}/install/inquirer.sh"
INSTALLED_EXES=()
function waUsage() {
echo 'Usage:
./installer.sh --user # Install everything in ${HOME}
./installer.sh --system # Install everything in /usr'
exit
}
function waNoS... | the_stack |
# Copyright (c) 2018 Uber Technologies, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, pub... | the_stack |
load fs
load git
load pkg
load path
load utils
load log
load msg
# List all installed packages.
ellipsis.list_packages() {
if ! fs.folder_empty "$ELLIPSIS_PACKAGES"; then
echo "$ELLIPSIS_PACKAGES"/*
fi
}
# Run commands across all packages.
ellipsis.each() {
# execute command for ellipsis first
... | the_stack |
ver="5.6"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # get cur dir of this script
progName=$(basename -- "$0")
cd $DIR
echo "INFO : $progName $ver written by Claude Pageau"
# Note makevideo.sh variables are in video.conf
if [ -f video.conf ] ; then
source $DIR/video.conf
else
echo "INFO : Attem... | the_stack |
#create cloudwatch log group, IAM role, and IAM policy
#this is done in the cloudformation template
#Update your Amazon Linux instance to pick up the latest changes in the package repositories.
sudo yum update -y -q -e 0
#Install the awslogs package. This is the recommended method for installing awslogs on Amazon Lin... | the_stack |
export WORK_DIR=$(pwd)
is_command_present() {
type "$1" >/dev/null 2>&1
}
# Check whether 'wget' command exists.
has_wget() {
has_cmd wget
}
# Check whether 'curl' command exists.
has_curl() {
has_cmd curl
}
# Check whether the given command exists.
has_cmd() {
command -v "$1" > /dev/null 2>&1
}
is... | the_stack |
set -e
set -o pipefail
set -x
pushd /tmp >/dev/null
latest_release() {
curl -sSL "https://api.github.com/repos/$1/releases/latest" | jq -r .tag_name
}
# Needed for project infrastructure
ver="$(latest_release watchexec/watchexec)"
wget -nv "https://github.com/watchexec/watchexec/releases/download/${ver}/watchexec... | the_stack |
[ -n "$DEBUG" ] && set -x
BASE_DIR=$(dirname $(readlink -f "$BASH_SOURCE"))
REPO_DIR=$(pwd "${BASE_DIR}/../../")
OS=$(uname | tr '[:upper:]' '[:lower:]')
# global settings that reduce friction
if [ -z "${GOVC_TLS_KNOWN_HOSTS}" ] && [ -d ~/.govmomi ]; then
touch ~/.govmomi/known_hosts 2>/dev/null &&
export GOV... | the_stack |
cd /tmp
export NI_NO_MONITOR=yes
#!/bin/bash
lazytest_n=0
lazytest_fail=0
lazytest_case() {
echo -ne '\r\033[J'
echo -n "$1" | tr '\n' ' ' | head -c79
echo -ne '\r'
# local actual="$(eval "$1"; echo "[exit code $?]")"
# local expected="$(cat <&3; echo "[exit code $?]")"
local actual="$(eval "$1")"
local expe... | the_stack |
# Copyright Istio 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 in writing, soft... | the_stack |
readonly MYDIR=$(cd `dirname ${BASH_SOURCE[0]}` && pwd)
readonly buildxlDir=$(cd $MYDIR/../.. && pwd)
readonly sandboxSrcDir="${buildxlDir}/Public/Src/Sandbox/MacOs"
readonly nugetExe=${buildxlDir}/Shared/Tools/NuGet.exe
readonly nugetTemplateDir=$MYDIR/runtime.osx-x64.BuildXL.template
readonly nugetFeed="https://clou... | the_stack |
PROGNAME=$0
usage() {
cat << EOF >&2
Usage: $PROGNAME [-u <mysqlu>] [-p <mysqlp>] [-r <ref>] [-g <group_name>] [-t <track_name>] [-a <CONFIRM>]
-u <mysqlu>: (Required) MySQL account name
-p <mysqlp>: (Optional) MySQL account passwd. Without '-p <password>', the promot will ask you to input password.
... | the_stack |
SCRIPTDIR=`dirname "${0}"`
. "${SCRIPTDIR}/initscript.sh"
cd "${TOPDIR}"
# Create and compile the identification source file.
echo '#pragma comment(user, "libxml2 version '"${LIBXML_VERSION}"'")' > os400.c
echo '#pragma comment(user, __DATE__)' >> os400.c
echo '#pragma comment(user, __TIME__)' >> os400.c
echo '... | the_stack |
set -e;
export LC_NUMERIC=C;
# Directory where the prepare.sh script is placed.
SDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)";
[ "$(pwd)/steps" != "$SDIR" ] && \
echo "Please, run this script from the experiment top directory!" >&2 && \
exit 1;
[ ! -f "$(pwd)/utils/parse_options.inc.sh" ] && \
echo ... | the_stack |
## build.bash : build cm-llvm binaries
## ===================================
##
## ``build.bash -h [-v] [-l] [-x] [-c] [-s vs2010|vs2012|vs2013|vs2015|vs2017] [-m|-M path] [-t path] [-b rpath] [-d|-r] [--32|--64] <path_to_llvm>``
##
## As a cm-llvm developer, the most common way of invoking build.bash from a
## Cygwin... | the_stack |
# USAGE:
#
# local/prepare_lang.sh \
# data_dir/local/dict \
# data_dir/local/lang \
# data_dir/lang_dir \
# "<unk>"
# INPUT:
#
# "unknown_word"
#
# data_dir/
# local/
# dict/
# lexicon.txt or lexiconp.txt
# silence_phones.txt
# nonsilence_phones.txt
# ... | the_stack |
show_menus() {
clear
echo -e "${GREEN}\
####### ######
# #### ##### ## # # # ###### #### #### # #
# # # # # # # # # # # # # # ## #
# # # # # # # ###### ##### # ... | the_stack |
set -e
umask 022
################################################################################
AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:=${AWS_ACCESS_KEY}}
AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:=${AWS_SECRET_KEY}}
AWS_REGION=${AWS_REGION:=eu-west-1}
AWS_AZ=${AWS_AZ:=${AWS_REGION}a}
MIRROR=${MIRROR:=https://cd... | the_stack |
#####################################################################################
# ADS-B RECEIVER #
#####################################################################################
# ... | the_stack |
set -u
_CONFIG=/opt/retronas/config/retronas.cfg
source $_CONFIG
export SC="systemctl --no-pager --full"
###############################################################################
#
# Logging
#
###############################################################################
#
# use RN_LOG instead of echo, so we... | the_stack |
_az=$(curl http://169.254.169.254/latest/meta-data/placement/availability-zone/)
_region=${_az::-1}
_instance_id=$(curl http://169.254.169.254/latest/meta-data/instance-id)
_hook_result="CONTINUE"
#
# uploading cloud-init and fpsync log to s3 before stopping fpsync process
# parameters : [_s3bucket, _folder_label]
#
e... | the_stack |
set -o nounset
# Get the directory where current script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
USAGE="$0 <FLAGS> <dataset_dir>
Decompresses select data types of Creative Flow+ Data.
Here, dataset_dir contains:
scene_name0/cam0/meta
scene_name0/cam0/renders
scene_name1/cam0/meta
sce... | the_stack |
# uncomment/comment toggle verbose debugging
#set -x
set -euo pipefail
BUCKET="gcp-public-data--broad-references"
usage() {
cat <<USAGE >&2
Usage $0 [-f] <input_tsv>
Arguments:
* <input_tsv> should contain three columns without a header:
Column 1: Name of the object under gs://$BUCKET (unique)
Column 2:... | the_stack |
function bv_silo_initialize
{
export DO_SILO="no"
export DO_SILEX="no"
add_extra_commandline_args "silo" "silex" 0 "Enable silex when building Silo"
}
function bv_silo_enable
{
DO_SILO="yes"
}
function bv_silo_disable
{
DO_SILO="no"
}
function bv_silo_silex
{
info "Enabling silex in Silo buil... | the_stack |
# Tests for the functions used in universalJavaApplicationStub script
# tofi86 @ 2020-02-11
# function 'get_java_version_from_cmd()'
#
# returns Java version string from 'java -version' command
# works for both old (1.8) and new (9) version schema
#
# @param1 path to a java JVM executable
# @return the Java versio... | the_stack |
# retry based on
# https://github.com/fernandoacorreia/azure-docker-registry/blob/master/tools/scripts/create-registry-server
# under MIT license.
function retry {
local n=1
local max=$1
shift
local delay=$1
shift
local errtrace=0
if grep -q "errtrace" <<< "$SHELLOPTS"
then
errtrace=1
set +E
... | the_stack |
# Contains functions for managing cassandra-diagnostics JVM options in cassandra-env.sh.
DIAGNOSTICS_JVM_OPTIONS_HEADER="### Begin cassandra-diagnostics-installer managed configuration. DO NOT EDIT! ###"
DIAGNOSTICS_JVM_OPTIONS_FOOTER="#### End cassandra-diagnostics-installer managed configuration. DO NOT EDIT! ####"
... | the_stack |
####################################################
# LNMP Environment Install Shell Script
#
# @author H&M (heiyeluren & miky)
# @date 2012/2/26
# @version v0.0.2
# @history
# 2012/2/26 v0.0.1
# 2012/3/02 v0.0.2
# 2012/3/04 v0.0.3
#
# @link
# blog: http://blog.csdn.net/heiyeshuwu
# more: http://heiyelur... | the_stack |
#include "bgfx_shader.sh"
#ifndef __cplusplus
#if BGFX_SHADER_LANGUAGE_GLSL
# define __UAV_REG_0 4
# define __UAV_REG_1 5
# define __UAV_REG_2 6
# define __UAV_REG_3 7
#else
# define __UAV_REG_0 16
# define __UAV_REG_1 17
# define __UAV_REG_2 18
# define __UAV_REG_3 19
#endif // BGFX_SHADER_LANGUAGE_GLSL
#define FRA... | the_stack |
# ======================================= 配置 =======================================
BUILD_TARGET_COMPOMENTS="";
COMPOMENTS_GMP_VERSION=6.1.2;
COMPOMENTS_MPFR_VERSION=4.0.0;
COMPOMENTS_MPC_VERSION=1.1.0;
COMPOMENTS_ISL_VERSION=0.18;
COMPOMENTS_LIBATOMIC_OPS_VERSION=7.6.2;
COMPOMENTS_BDWGC_VERSION=7.6.4;
COMPOMENTS_GCC_... | the_stack |
### Info and Contributors
##############################################################################
# A utility script to easily administer UBNT software
# https://github.com/sprockteam/easy-ubnt
# MIT License
# Copyright (c) 2018-2019 SprockTech, LLC and contributors
__script_title="Easy UBNT"
__script_name="easy... | the_stack |
umask 022
function mkd {
[[ -d $1 ]] || mkdir -p "$1"
}
function download {
local url=$1 dst=$2
if [[ ! -s $dst ]]; then
[[ $dst == ?*/* ]] && mkd "${dst%/*}"
if type wget &>/dev/null; then
wget "$url" -O "$dst.part" && mv "$dst.part" "$dst"
else
echo "make_command: 'wget' not found." >&... | the_stack |
scriptdir=${BASH_SOURCE%/*}
if [ -z "$scriptdir" ]; then scriptdir="."; fi
if [ "$1" == "-1k" ]; then
ICEDEV=hx1k-tq144
shift
fi
if [ "$1" == "-8k" ]; then
ICEDEV=hx8k-ct256
shift
fi
if [ "$1" == "-384" ]; then
ICEDEV=lp384-cm49
shift
fi
if [ "$1" == "-ul1k" ]; then
ICEDEV=ul1k-cm36a
shift
fi
if [ "$1" == ... | the_stack |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#=================================================
# System Required: CentOS/Debian/Ubuntu
# Description: tinyPortMapper
# Version: 1.0.2
# Author: Toyo
# Blog: https://doub.io/wlzy-36/
#================================================... | the_stack |
declare -a autoPatchelfLibs
declare -Ag autoPatchelfFailedDeps
gatherLibraries() {
autoPatchelfLibs+=("$1/lib")
}
# wrapper around patchelf to raise proper error messages
# containing the tried file name and command
runPatchelf() {
patchelf "$@" || (echo "Command failed: patchelf $*" && exit 1)
}
# shellcheck ... | the_stack |
set -e
# =============================================================================
# constants
# =============================================================================
# script version
readonly SCRIPT_VERSION="v0.0.22"
# enable feature flag
readonly ENABLED="enabled"
# disable feature flag
r... | the_stack |
# ==============================================================================
# -- Set up environment --------------------------------------------------------
# ==============================================================================
if ! [ -x "$(command -v /usr/bin/clang++-7)" ] && ! [ -x "$(command -v /usr... | the_stack |
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/... | the_stack |
# Created by Amsys
#
# Use at your own risk. Amsys will accept
# no responsibility for loss or damage
# caused by this script.
# Requires 10.10 or higher.
###############
## variables ##
###############
PLBUDDY=/usr/libexec/PlistBuddy
KEYBOARDNAME="British"
KEYBOARDCODE="2"
LANG="en"
REGION="en_GB"
ARD="/System/Libr... | the_stack |
# WARNING: THIS IS A WORK IN PROGRESS
# This script will attempt to install all Malmo dependencies, download, build and package Malmo.
# It was designed for use on fresh VMs, and assumes everything needs installing.
# Need pipefail for testing success of each stage because we pipe all commands to tee for logging.
set ... | the_stack |
# title notice
echo "HTK training for TIMIT from Cantab Research"
echo "See http://www.cantabResearch.com/HTKtimit.html"
# (C) Cantab Research: Permission is granted for free distribution and
# usage provided the copyright notice and the title notice are not
# altered.
#
# version 1.0: 22Jun06 - first public release
#... | the_stack |
######################################################################
#
# DMTWVIEW.SH : View A Direct Message Which Is Request By Tweet-IDs
#
# Written by Shell-Shoccar Japan (@shellshoccarjpn) on 2017-11-11
#
# This is a public-domain software (CC0). It means that all of the
# people can use this for any purposes wit... | the_stack |
set -xeuo pipefail
scripts=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
cd "${scripts}"
IMAGE_SHA_MATCHED="FALSE"
AWS_FOR_FLUENT_BIT_VERSION=$(cat ../AWS_FOR_FLUENT_BIT_VERSION)
AWS_FOR_FLUENT_BIT_STABLE_VERSION=$(cat ../AWS_FOR_FLUENT_BIT_STABLE_VERSION)
docker_hub_image_tags=$(curl -s -S 'https://registry.hub.doc... | the_stack |
B=`basename $0 .sh`
cd `dirname $0`
source ./rungraphd
rm -rf $D
rungraphd -d${D} -bty <<-'EOF'
write (value="a")
write (value="b")
write (value="c")
write (value=null)
read id="guid = = b" (result=((value))
guid=(00000012400034568000000000000000 00000012400034568000000000000001)
guid=(00000012400... | the_stack |
####################################################################################################
# Basic script setup
set -e
if [[ -t 1 ]]; then
NORMAL="$(tput sgr0)"
BOLD="$(tput bold)"
RED="$(tput setaf 1)"
GREEN="$(tput setaf 2)"
YELLOW="$(tput setaf 3)"
else
unset NORMAL BOLD RED GREEN YELLOW
fi
usage(... | the_stack |
gr='\033[1;32m'
re='\033[1;31m'
xx='\033[0m'
yw='\033[1;33m'
bl='\033[0;34m'
show(){
printf "${!1}\n"
}
acc1="Avoid the use of the root account."
acc2="Ensure MFA is enabled for all IAM users that have a console password."
acc3="Ensure credentials unused for 90 days or greater are disabled."
acc4="Ensure access keys ... | the_stack |
shopt -s nullglob
###################
## Check a few things for the setup
###################
BASE_DIR="$(dirname "$(readlink -f "$0")")/.."
CONFIG_FILE_PATH="LEDTableEngine/include/LEDTableEngine/configuration.hpp"
START_SCRIPT_PATH="scripts/start.sh"
# Check if our display tool is available
DISPLAY_CMD=`command -v ... | the_stack |
# enable zsh compatibility: in ZSH word splitting is disabled by default,
# but we need it
setopt shwordsplit 2>/dev/null
BORG_BIN="borg"
LAST_BACKUP_DIR="/var/log/borg/last"
RUN_PID_DIR="/var/run/borg"
# default settings for backup
# (can be overwritten by config files)
COMPRESSION="lz4"
ADD_BACKUP_PARAMS=""
SLEEP_T... | the_stack |
#
# Copyright (c) BeyondTrust Software. All rights reserved.
#
ERR_PACKAGE_FILE_NOT_FOUND=1
ERR_PACKAGE_COULD_NOT_INSTALL=2
ERR_PACKAGE_NOT_INSTALLED=3
ERR_PACKAGE_COULD_NOT_UNINSTALL=4
OBSOLETE_DAEMONS="lsassd dcerpcd eventlogd lwiod netlogond lwregd srvsvcd lwrdrd"
DAEMONS="lwsmd"
DAEMON_PATTERN="lwsmd|lsassd|dcer... | the_stack |
# Version 13.0-RELEASE v3-beta
# occambsd: An application of Occam's razor to FreeBSD
# a.k.a. "super svelte stripped down FreeBSD"
# This will create a kernel directories and disk images for bhyve and xen,
# a jail(8) root directory, and related load, boot, and cleanup scripts.
# The default target is the bhyve hyp... | the_stack |
export scmbDir="$( cd -P "$( dirname "$0" )" && pwd )/../../.."
# Zsh compatibility
if [ -n "${ZSH_VERSION:-}" ]; then shell="zsh"; SHUNIT_PARENT=$0; setopt shwordsplit; fi
# Load test helpers
source "$scmbDir/test/support/test_helper.sh"
# Load functions to test
source "$scmbDir/lib/scm_breeze.sh"
source "$scmbDir/... | the_stack |
BTCD="${1}_btcd_1"
RELAYD="${1}_relayd_1"
BTC_CTL="docker exec ${BTCD} btcctl"
# shellcheck disable=SC2086,2154
function relay_init() {
# relayd
sed -i $sedfix 's/^btcdOrWeb.*/btcdOrWeb = 0/g' relayd.toml
sed -i $sedfix 's/^Tick33.*/Tick33 = 5/g' relayd.toml
sed -i $sedfix 's/^TickBTC.*/TickBTC = 5/g... | the_stack |
load helpers
function setup() {
basic_setup
run_podman '?' volume rm -a
}
function teardown() {
run_podman '?' rm -a --volumes
run_podman '?' volume rm -t 0 -a -f
basic_teardown
}
# Simple volume tests: share files between host and container
@test "podman run --volumes : basic" {
run_podma... | the_stack |
########### SIGINT handler ############
function _int() {
echo "Stopping container."
echo "SIGINT received, shutting down Admin Server!"
$DOMAIN_HOME/bin/stopWebLogic.sh
exit;
}
########### SIGTERM handler ############
function _term() {
echo "Stopping container."
echo "SIGTERM received, shutting dow... | the_stack |
this=$(cd ${0%/*} && echo $PWD/${0##*/})
see="https://github.com/timrdf/csv2rdf4lod-automation/wiki/CSV2RDF4LOD-not-set"
CSV2RDF4LOD_HOME=${CSV2RDF4LOD_HOME:?"not set; source csv2rdf4lod/source-me.sh or see $see"}
# cr:data-root cr:source cr:directory-of-datasets cr:dataset cr:directory-of-versions cr:conversion-cock... | the_stack |
set +e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. ${DIR}/detect_vars.sh
#####
echo "# Somatic comparison test for ${HCVERSION} from ${HCDIR}"
TMP_OUT=`mktemp -t sompy.XXXXXXXXXX`
CMD="${PYTHON} ${HCDIR}/som.py \
${DIR}/../../example/sompy/PG_admix_truth_snvs.vcf.gz \
${DIR}/../../examp... | the_stack |
shopt -s extglob
export LC_ALL=C
juicer_version="2.0"
### LOAD BWA AND SAMTOOLS
bwa_cmd="bwa"
call_bwameth="/gpfs0/home/neva/bwa-meth/bwameth.py"
load_methyl="export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/gpfs0/home/neva/lib"
call_methyl="/gpfs0/home/neva/bin/MethylDackel"
# fastq files should look like filename_R1.fastq a... | the_stack |
# This file was inspired by:
# 1) https://github.com/projectcalico/cni-plugin/blob/c1175467c227c1656577c80bfc0ee7795da2e2bc/k8s-install/scripts/install-cni.sh
# 2) https://github.com/istio/cni/blob/c63a509539b5ed165a6617548c31b686f13c2133/deployments/kubernetes/install/scripts/install-cni.sh
# Script to install Linker... | the_stack |
#source "${BASHMATIC_HOME}/lib/util.sh"
export LibOutput__CommandPrefixLen=7
export LibOutput__LeftPrefix=" "
export LibOutput__MinWidth__Default=50
export LibOutput__MaxWidth__Default=300
export LibOutput__MinHeight__Default=20
export LibOutput__WidthDetectionStrategy="unconstrained"
export LibOutput__Cached... | the_stack |
# model A, B, C, D, E, F, G
# method PGD, MILP, PercySDP, FazlybSDP, AI2, RefineZono, LPAll
# kReLU, DeepPoly, ZicoDualLP, CROWN, CROWN_IBP, CNNCert, FastLin_IBP
# FastLin, FastLinSparse, FastLip, RecurJac, Spectral, IBP, IBPVer2
# 3rd row method; mnist; full models; verify+radius
# run on window run1, ... | the_stack |
set -e
setEnvironment() {
if [[ $1 ]]; then
file="$1/.env"
if [[ ! -f $file ]]; then
cp "$1/.env.temp" "$file"
else
echo ".env File exists already"
fi
# shellcheck disable=SC1090
source "$file"
fi
}
setEnvironment "$1"
phpContainerRoot="docker exec -it -u root ${NAMESPACE}_php... | the_stack |
# same as 1g but adding two non-splicing layers towards the beginning
# of the network, trained with 9 epochs.
# local/chain/tuning/run_tdnn_1h.sh --mic sdm1 --use-ihm-ali true --train-set train_cleaned --gmm tri3_cleaned
# local/chain/compare_wer_general.sh sdm1 tdnn1g_sp_bi_ihmali tdnn1h_sp_bi_ihmali
# System ... | the_stack |
set -o errexit
source $GRENADE_DIR/grenaderc
source $GRENADE_DIR/functions
source $TOP_DIR/openrc admin demo
set -o xtrace
################################# Settings ####################################
# Access rules data specific to first enabled backend.
MANILA_GRENADE_ACCESS_TYPE=${MANILA_GRENADE_ACCESS_TYPE:-... | the_stack |
# Created by Amsys
#
# Use at your own risk. Amsys will accept
# no responsibility for loss or damage
# caused by this script.
# Requires 10.9 or higher.
###############
## variables ##
###############
PLBUDDY=/usr/libexec/PlistBuddy
HOMEPAGE="www.google.co.uk"
KEYBOARDNAME="British"
KEYBOARDCODE="2"
LANG="en"
REGIO... | the_stack |
#
# Test docker DNS resolution in sys containers
#
load ../helpers/run
load ../helpers/net
load ../helpers/docker
load ../helpers/sysbox-health
load ../helpers/environment
export iface_mtu=$(egress_iface_mtu)
function teardown() {
sysbox_log_check
}
@test "syscont dns (def bridge)" {
local syscont=$(docker_run... | the_stack |
source "./public.bash"
# Current User
user=$(id -un)
# Keep-alive: update existing `sudo` time stamp until script has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
echo ""
headline " Let's secure your Mac and install basic applications."
echo ""
echo "Modifying settings fo... | the_stack |
# Generic cross-platform init script logic
# Copyright (c) BeyondTrust Software. All rights reserved.
#
# Authors: Jerry Carter (gcarter@likewisesoftware.com)
# Kyle Stemen (kstemen@likewisesoftware.com)
# Brian Koropoff (bkoropoff@likewisesoftware.com)
# Implict arguments to this script when sourced... | the_stack |
# load test helpers
. ./log4sh_test_helpers
MY_LOG4SH="${TH_TESTDATA_DIR}/rolling_file_appender.log4sh"
APP_NAME='R'
APP_MAX_FILE_SIZE='10KiB'
APP_MAX_FILE_SIZE_REAL=10240
APP_MAX_BACKUP_INDEX='1'
#------------------------------------------------------------------------------
# custom asserts
#
assertFileExists()
{... | the_stack |
## Script Name: Selectable_SoftwareUpdate.sh
## Script Author: Mike Morales, @mm2270 on JAMFNation
## Last Update: 2016-01-20
## Last Update:
## Included 'Reboot Now' button, when a reboot is required after installed updates,
## which waits 4 seconds, then does an immediate reboot when clicked.
## Set Interna... | the_stack |
# Function to setup the following fields based on the center that you are running at:
# CENTER
# BUILD_SUFFIX
# COMPILER
# NINJA_NUM_PROCESSES
set_center_specific_fields()
{
SYS=$(uname -s)
if [[ ${SYS} = "Darwin" ]]; then
CENTER="osx"
COMPILER="clang"
BUILD_SUFFIX=llnl.gov
else
... | the_stack |
INTEGRATION KNOBS
============================================================================*/
//
// FXAA_PS3 and FXAA_360 choose the console algorithm (FXAA3 CONSOLE).
// FXAA_360_OPT is a prototype for the new optimized 360 version.
//
// 1 = Use API.
// 0 = Don't use API.
//
/*------------------------------------... | the_stack |
numVars=$1
set -e
# Hard coded or follow distro
#gcc_version=$(gcc --version | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+' | head -1 | sed -e 's|[0-9]\+$|0|g')
gcc_version="9.3.0"
PROG_NAME=$(basename $0 .sh)
function _echo() {
local a
if [ "x$numVars" != "x" ]; then
a="${PROG_NAME}-${numVars}"
else
a="${PROG_NAME}"... | the_stack |
TOOL_VERSION=247
TOOL_BUILD=beta
CATALOG_URL="https://swscan.apple.com/content/catalogs/others/index-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz"
function showHelpMessage(){
echo "NightPatch (Version: ${TOOL_BUILD}-${TOOL_VERSION}): Enable Night Shift on any old Mac models... | the_stack |
## Variables ##
TIMESTAMP=`date "+%m-%d"`
PROJECT="skilled-adapter-452"
ZONE="us-east1-b"
VM_TYPE="n1-standard-8"
NUM_VM="4"
BOOT_DISK="30"
CENTOS7="--image "centos-7-v20180104" --image-project "centos-cloud""
VM_OS="$CENTOS7"
BTABLE_INSTANCE="`whoami`-instance-$TIMESTAMP"
BTABLE_CLUSTER="`whoami`-instance-cluster-$TIM... | the_stack |
# color output formatting
blue='\e[0;34m'
green='\e[0;32m'
yellow='\e[0;33m'
red='\e[0;31m'
NC='\033[0m'
echo -e "${blue}########"
echo "######## SCOT 3 Installer"
echo "######## Support at: scot-dev@sandia.gov"
echo -e "########${NC}"
if [[ $EUID -ne 0 ]]; then
echo -e "${red}This scri... | the_stack |
##########################################################
# Global param for extern caller
##########################################################
#ticket path,used for application get security_auth_ticket_path
security_auth_ticket_path=""
##########################################################
# Global... | the_stack |
# Terminal colors
RED="\033[0;31m"
NOCOLOR="\033[0m"
YELLOW='\033[1;33m'
MSG_COLOR=$YELLOW
######################################################################
# Utility functions
######################################################################
function print_msg {
echo -e "${MSG_COLOR}*** $(date): gnmi_t... | the_stack |
#colors for terminal
boldreduscore="\e[1;4;31m"
boldred="\e[1;31m"
cyan="\e[1;36m"
resetformatting="\e[0m"
#External helper functions
#. "$(dirname "${BASH_SOURCE[0]}")/deploy_utils.sh"
full_script_path="$(realpath "${BASH_SOURCE[0]}")"
script_directory="$(dirname "${full_script_path}")"
#call stack has full scriptna... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.