Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Kill some now-unnecessary environment variables | #!/bin/bash
# check for the candiru user
USERID=`id -n -u`
if [ "$USERID" != "candiru" ]; then
echo "Error: user must be candiru to start commerce"
exit 1
fi
NODE_HOME=/platform/nodejs
# number of subprocesses
export CLUSTER=5
# optimize things (TODO: trunk, staging also?)
export NODE_ENV="production"
# Use t... | #!/bin/bash
# check for the candiru user
USERID=`id -n -u`
if [ "$USERID" != "candiru" ]; then
echo "Error: user must be candiru to start commerce"
exit 1
fi
NODE_HOME=/platform/nodejs
# number of subprocesses
export CLUSTER=5
# optimize things (TODO: trunk, staging also?)
export NODE_ENV="production"
# Use t... |
Make it work for Python 3 | sudo easy_install pip
pip install appdirs
pip install requests --upgrade
| sudo apt-get update
sudo apt-get install python3-setuptools
sudo easy_install3 pip
sudo mv /usr/local/bin/pip /usr/local/bin/pip3
pip3 install appdirs
pip3 install requests --upgrade
|
Fix port with dev env | #!/bin/bash
if [ $1 ]; then
if [ $1 = "stop" ]; then
echo "Kill all node and mongo processes"
killall node
killall mongod
elif [ $1 = "start" ]; then
echo "Kill all node and mongo processes"
killall node
killall mongod
echo "Start mongo..."
mongod --dbpath data/db --logpath ./data/db/mongo.log --p... | #!/bin/bash
if [ $1 ]; then
if [ $1 = "stop" ]; then
echo "Kill all node and mongo processes"
killall node
killall mongod
elif [ $1 = "start" ]; then
echo "Kill all node and mongo processes"
killall node
killall mongod
echo "Start mongo..."
mongod --dbpath data/db --logpath ./data/db/mongo.log --p... |
Make $USECUDA not case sensitive | #!/bin/bash
DOCKERHUB_REPO='biobright/python3-opencv3'
# allows env var to be overridden by shell, e.g. USECUDA=OFF ./build.sh
: ${USECUDA:=OFF}
if [ "${USECUDA}" = "ON" ]; then TAG='cuda'; else TAG='nocuda'; fi
docker build -t ${DOCKERHUB_REPO}:${TAG} . \
&& docker push ${DOCKERHUB_REPO}:${TAG} | #!/bin/bash
DOCKERHUB_REPO='biobright/python3-opencv3'
# allows env var to be overridden by shell, e.g. USECUDA=OFF ./build.sh
: ${USECUDA:=OFF}
if [ "${USECUDA}" = "ON" ] || [ "${USECUDA}" = "on" ] ; then TAG='cuda'; else TAG='nocuda'; fi
echo TAG IS: ${TAG}
docker build --no-cache -t ${DOCKERHUB_REPO}:${TAG} . \
&... |
Fix CF_RELEASE_BRANCH to be handled properly | #!/bin/bash -ex
CF_RELEASE_USE_HEAD=${CF_RELEASE_USE_HEAD:-no}
ruby_version=`rbenv version | cut -f1 -d" "` # to overwrite .ruby-version
if [ ! "$(ls -A cf-release)" ]; then
if [ -z "${CF_RELEASE_URL}" ]; then
git submodule update --init cf-release
else
rmdir cf-release
git clone ${CF... | #!/bin/bash -ex
CF_RELEASE_USE_HEAD=${CF_RELEASE_USE_HEAD:-no}
ruby_version=`rbenv version | cut -f1 -d" "` # to overwrite .ruby-version
if [ ! "$(ls -A cf-release)" ]; then
if [ -z "${CF_RELEASE_URL}" ]; then
git submodule update --init cf-release
else
rmdir cf-release
git clone ${CF... |
Delete files to free up disk space | #!/bin/bash
/usr/bin/mysql -u moodle -D moodle < /home/vagrant/moodle.sql
/usr/bin/php /home/vagrant/www/moodle2/htdocs/admin/cli/upgrade.php --non-interactive 2>&1 > /vagrant_log/upgrade.txt
| #!/bin/bash
rm -f /home/vagrant/moodle-*.tgz
/usr/bin/mysql -u moodle -D moodle < /home/vagrant/moodle.sql
rm -f /home/vagrant/moodle.sql
/usr/bin/php /home/vagrant/www/moodle2/htdocs/admin/cli/upgrade.php --non-interactive &> /vagrant_log/upgrade.txt
|
Fix to be sersh build when isCcCc4py. | #!/bin/bash
#
# Version and build information for ZeroMQ
#
# $Id$
#
######################################################################
######################################################################
#
# Version
#
######################################################################
ZEROMQ_BLDRVERSION=${ZE... | #!/bin/bash
#
# Version and build information for ZeroMQ
#
# $Id$
#
######################################################################
######################################################################
#
# Version
#
######################################################################
ZEROMQ_BLDRVERSION=${ZE... |
Use the https version of the content API | #!/bin/bash
set -e
# Any subsequent(*) commands which fail will cause the shell script to exit immediately
hash curl 2>/dev/null || { echo >&2 "This script requires 'curl', which is not found. Aborting."; exit 1; }
hash pandoc 2>/dev/null || { echo >&2 "This script requires 'pandoc', which is not found. Aborting.";... | #!/bin/bash
set -e
# Any subsequent(*) commands which fail will cause the shell script to exit immediately
hash curl 2>/dev/null || { echo >&2 "This script requires 'curl', which is not found. Aborting."; exit 1; }
hash pandoc 2>/dev/null || { echo >&2 "This script requires 'pandoc', which is not found. Aborting.";... |
Include function to close apps on macOS | PRM_DIR="$SECONDLAW/prm-data-osx"
alias emacs="emacsclient -s $HOME/.emacs.d/server/server -n"
export ALTERNATE_EDITOR="emacs"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
alias pycharm="charm"
| PRM_DIR="$SECONDLAW/prm-data-osx"
alias emacs="emacsclient -s $HOME/.emacs.d/server/server -n"
export ALTERNATE_EDITOR="emacs"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
alias pycharm="charm"
function closeapp() {
osascript -e "quit app \"$1\""
}
|
Add a "packages" zip and differentiate from the all-in-one zip. | #!/bin/sh
#
# This script will create zips of each prototype that exclude any file not
# necessary for the operation of the prototype (e.g., licenses, gruntfiles,
# test scripts, .git directories, and so forth.)
#
echo $0;
echo "Removing existing packages";
mkdir -p pkgs
rm -rf pkgs/*;
ROOT="$(pwd)"
function make_zi... | #!/bin/sh
#
# This script will create zips of each prototype that exclude any file not
# necessary for the operation of the prototype (e.g., licenses, gruntfiles,
# test scripts, .git directories, and so forth.)
#
echo $0;
echo "Removing existing packages";
mkdir -p pkgs
rm -rf pkgs/*;
ROOT="$(pwd)"
function make_zi... |
Add clean, clean_all, clean_local, start, scaleup commands | #!/bin/bash
set -eux
rm -rf /tmp/tmp*
rm /tmp/storage/* || true
rm /tmp/connections.yaml || true
mkdir -p /tmp/state
echo > /tmp/state/commit_log || true
echo > /tmp/state/commited_data || true
echo > /tmp/state/stage_log || true
find /vagrant/solar/solar -name '*.pyc' -delete || true
sudo docker stop $(sudo docker... | #!/bin/bash
set -eux
function clean_local {
rm -rf /tmp/tmp*
rm /tmp/storage/* || true
rm /tmp/connections.yaml || true
mkdir -p /tmp/state
echo > /tmp/state/commit_log || true
echo > /tmp/state/commited_data || true
echo > /tmp/state/stage_log || true
find /vagrant/solar/solar -name ... |
Fix ci script not failing with worng checksum and update checksums | #!/bin/bash
set -e
set -u
# checksums
MD5SUM="19e50b22e5ee88314ad6a6630d202277"
MD5SUM_ANNO="da002cc4c9c4f2c77e4401c97564be94"
# run ggsashimi without annotation
docker run --rm -w $PWD -v $PWD:$PWD guigolab/ggsashimi -b examples/input_bams.tsv -c chr10:27040584-27048100 -o ci/sashimi
[[ $(grep -avE 'CreationDate|Mod... | #!/bin/bash
set -e
set -u
# checksums
sashimi_md5="86e5924ecf8ce1272635ff43b244b32e"
sashimi_anno_md5="216c07785889074f69cb94cc2af7cb00"
pdfmd5() {
grep -avE 'CreationDate|ModDate' $1 | md5sum | awk '{$0=$1}1'
}
fail() {
echo ${1-""} >&2 && exit 1
}
files=( sashimi sashimi_anno )
anno=""
for f in ${files[@... |
Revert "Fix pj() function when no project has been specified" | alias pjo="pj open"
pj () {
emulate -L zsh
cmd="cd"
project=$1
if [[ "open" == "$project" ]]; then
shift
project=$*
cmd=${=EDITOR}
else
project=$*
fi
if [[ -z "$project" ]]; then
echo "You have to specify a project name."
return
fi
... | alias pjo="pj open"
pj () {
emulate -L zsh
cmd="cd"
project=$1
if [[ "open" == "$project" ]]; then
shift
project=$*
cmd=${=EDITOR}
else
project=$*
fi
for basedir ($PROJECT_PATHS); do
if [[ -d "$basedir/$project" ]]; then
$cmd "$basedir/... |
Make the docker host an build parameter. | #!/bin/bash
#
# This script is only intended to run in the IBM DevOps Services Pipeline Environment.
#
echo Informing slack...
curl -X 'POST' --silent --data-binary '{"text":"A new build for the proxy has started."}' $WEBHOOK > /dev/null
mkdir dockercfg ; cd dockercfg
echo Downloading Docker requirements..
wget http:... | #!/bin/bash
#
# This script is only intended to run in the IBM DevOps Services Pipeline Environment.
#
echo Informing slack...
curl -X 'POST' --silent --data-binary '{"text":"A new build for the proxy has started."}' $WEBHOOK > /dev/null
mkdir dockercfg ; cd dockercfg
echo Downloading Docker requirements..
wget http:... |
Allow for checkout of a specific branch | #!/bin/sh
if [ ! -d "$HOME/.yadr" ]; then
echo "Installing YADR for the first time"
git clone --depth=1 https://github.com/333fred/dotfiles_yadr.git "$HOME/.yadr"
cd "$HOME/.yadr"
[ "$1" = "ask" ] && export ASK="true"
rake install
else
echo "YADR is already installed"
fi
| #!/bin/sh
if [ ! -d "$HOME/.yadr" ]; then
echo "Installing YADR for the first time"
git clone --depth=1 https://github.com/333fred/dotfiles_yadr.git "$HOME/.yadr"
if [ ! -z "$1" ]; then
git checkout "$1"
fi
cd "$HOME/.yadr"
[ "$1" = "ask" ] && export ASK="true"
rake install
else
... |
Add apt-get argument to fix issue that happens sometimes on some relays | sudo sh -c 'echo "deb http://deb.torproject.org/torproject.org trusty main" >> /etc/apt/sources.list'
sudo sh -c 'echo "deb-src http://deb.torproject.org/torproject.org trusty main" >> /etc/apt/sources.list'
sudo gpg --keyserver keys.gnupg.net --recv 886DDD89
sudo gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 ... | sudo sh -c 'echo "deb http://deb.torproject.org/torproject.org trusty main" >> /etc/apt/sources.list'
sudo sh -c 'echo "deb-src http://deb.torproject.org/torproject.org trusty main" >> /etc/apt/sources.list'
sudo gpg --keyserver keys.gnupg.net --recv 886DDD89
sudo gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 ... |
Add a default revision string if we can't find hg | #!/bin/sh
#
# Print the current source revision, if available
# FIXME: this prints the tip, which isn't useful if you're on a different
# branch, or just not sync'd to the tip.
hg tip --template 'hg-{rev}:{node|short}'
| #!/bin/sh
#
# Print the current source revision, if available
# FIXME: this prints the tip, which isn't useful if you're on a different
# branch, or just not sync'd to the tip.
hg tip --template 'hg-{rev}:{node|short}' || echo "hg-0:baadf00d"
|
Add debug to install script | #!/bin/bash
venv="nephoria_venv"
neph_branch="oldboto"
adminapi_branch="master"
yum install -y python-devel gcc git python-setuptools python-virtualenv
if [ ! -d adminapi ]; then
git clone https://github.com/nephomaniac/adminapi.git
fi
if [ ! -d nephoria ]; then
git clone https://github.com/nephomaniac/nephoria... | #!/bin/bash
set -x
venv="nephoria_venv"
neph_branch="oldboto"
adminapi_branch="master"
yum install -y python-devel gcc git python-setuptools python-virtualenv
rpm -qa | grep virtualenv # verify it was installed successfully above
yum repolist # check repos
if [ ! -d adminapi ]; then
git clone https://github.com/nep... |
Fix bug with blacklist update | #!/usr/bin/with-contenv sh
BLOCKLIST_ENABLED=$(jq -r '.["blocklist-enabled"]' /config/settings.json)
BLOCKLIST_URL=$(jq -r '.["blocklist-url"]' /config/settings.json | sed 's/\&/\&/g')
if [ "${BLOCKLIST_ENABLED:-false}" == "true" -a -n "$BLOCKLIST_URL" ]; then
mkdir -p /tmp/blocklists
rm -rf /tmp/blocklists/*... | #!/usr/bin/with-contenv sh
BLOCKLIST_ENABLED=$(jq -r '.["blocklist-enabled"]' /config/settings.json)
BLOCKLIST_URL=$(jq -r '.["blocklist-url"]' /config/settings.json | sed 's/\&/\&/g')
if [ "${BLOCKLIST_ENABLED:-false}" == "true" -a -n "$BLOCKLIST_URL" ]; then
mkdir -p /tmp/blocklists
rm -rf /tmp/blocklists/*... |
Handle setting jobs in OSX and add -Wno-error | #! /bin/bash
set -e
set -x
if [ x"$TRAVIS" = xtrue ]; then
CPU_COUNT=2
else
CPU_COUNT=$(nproc)
fi
mv tcl/target/1986ве1т.cfg tcl/target/1986be1t.cfg
mv tcl/target/к1879xб1я.cfg tcl/target/k1879x61r.cfg
./bootstrap
mkdir build
cd build
../configure \
--prefix=$PREFIX \
--enable-static \
--disable-shared \
... | #! /bin/bash
set -e
set -x
if [ x"$TRAVIS" = xtrue ]; then
CPU_COUNT=2
else
# Identify OS
UNAME_OUT="$(uname -s)"
case "${UNAME_OUT}" in
Linux*) OS=Linux;;
Darwin*) OS=Mac;;
*) OS="${UNAME_OUT}"
echo "Unknown OS: ${OS}"
exit 1;;
esac
if [[ $OS == "Linux" ]]; the... |
Add option to explicitly set new version | #!/bin/bash -x
# Copyright 2016 Nitor Creations Oy
#
# 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... | #!/bin/bash -x
# Copyright 2016 Nitor Creations Oy
#
# 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... |
Update next step for dev vm | #!/bin/bash
echo ansible-playbook deploy/site.yml -i environment/inventory -l app* -e "galera_bootstrap_node=app.stepup.example.com"
ansible-playbook deploy/site.yml -i environment/inventory -l app* -e "galera_bootstrap_node=app.stepup.example.com inventory_dir=`pwd`/environment"
echo ""
echo "Next steps:"
echo "- De... | #!/bin/bash
echo ansible-playbook deploy/site.yml -i environment/inventory -l app* -e "galera_bootstrap_node=app.stepup.example.com"
ansible-playbook deploy/site.yml -i environment/inventory -l app* -e "galera_bootstrap_node=app.stepup.example.com inventory_dir=`pwd`/environment"
echo ""
echo "Next steps:"
echo "- De... |
Migrate to my own hosting | #!/bin/sh
if [ ! -d "$HOME/.yadr" ]; then
echo "Installing YADR for the first time"
git clone https://github.com/skwp/dotfiles.git "$HOME/.yadr"
cd "$HOME/.yadr"
[ "$1" = "ask" ] && export ASK="true"
rake install
else
echo "YADR is already installed"
fi
| #!/bin/sh
if [ ! -d "$HOME/.yadr" ]; then
echo "Installing YADR for the first time"
git clone https://github.com/hderms/dotfiles.git "$HOME/.yadr"
cd "$HOME/.yadr"
[ "$1" = "ask" ] && export ASK="true"
rake install
else
echo "YADR is already installed"
fi
|
Use correct path to version file | #!/bin/sh
set -e
# Checkout master as we are currently have an individual commit checked out on
# a detached tree. This means when we commit later it will be on a branch
git checkout master
git reset --hard origin/master
# Init the submodule and checkout the revision pinned in `.gitmodules`
git submodule update --ini... | #!/bin/sh
set -e
# Checkout master as we are currently have an individual commit checked out on
# a detached tree. This means when we commit later it will be on a branch
git checkout master
git reset --hard origin/master
# Init the submodule and checkout the revision pinned in `.gitmodules`
git submodule update --ini... |
Improve typecheck script to detect glint | #!/bin/bash
for name in $(find packages -name node_modules -prune -o -name 'cardpay-subgraph' -prune -o -name 'tsconfig.json' -print); do
{
cd $(dirname $name)
if [[ $name == *"boxel"* || $name == *"web-client"* || $name == *"ssr-web"* || $name == *"safe-tools-client"* ]] ; then
yarn -s glint
else
yarn... | #!/bin/bash
for name in $(find packages -name node_modules -prune -o -name 'cardpay-subgraph' -prune -o -name 'tsconfig.json' -print); do
{
cd $(dirname $name)
if grep -q "@glint" "package.json"; then
yarn -s glint
else
yarn -s tsc --noEmit
fi
code=$?
[ $code -eq 0 ] && echo PASS "$name" || echo ... |
Add nextflow to PATH in .bashrc. | WORK_DIR=`pwd`
#install java 7 if needed
JAVA_VER=`java -version 2>&1 | grep "java version" | awk '{print $3}' | tr -d \" | awk '{split($0, array, ".")} END{print array[2]}'`
if [ "$JAVA_VER" -ge 7 ]; then
echo "Java 7 or greater detected."
else
echo "Java version is lower than 7."
sudo apt-get -y install ... | WORK_DIR=`pwd`
#install java 7 if needed
JAVA_VER=`java -version 2>&1 | grep "java version" | awk '{print $3}' | tr -d \" | awk '{split($0, array, ".")} END{print array[2]}'`
if [ "$JAVA_VER" -ge 7 ]; then
echo "Java 7 or greater detected."
else
echo "Java version is lower than 7."
sudo apt-get -y install ... |
Update Distro & Apps - Added autoremove | #!/bin/bash
echo "Updating Distro & Apps"
source $SCRIPTPATH/inc/pkgupdate.sh
sudo apt-get -y dist-upgrade
sudo apt-get -y autoclean
| #!/bin/bash
echo "Updating Distro & Apps"
source $SCRIPTPATH/inc/pkgupdate.sh
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
sudo apt-get -y autoclean
|
Change the paths for the staging deployment | #!/bin/bash
if [ ! -e tsomi-staging ]; then
git clone https://savannidgerinel:${GITHUB_TOKEN}@github.com/cloudcity/tsomi-staging.git
fi
mkdir -p tsomi-staging
cd tsomi-staging
#cat ../../index.html | sed 's/static\/tsomi.css/\/tsomi\/static\/tsomi.css/' | sed 's/js\/bundle.js/\/tsomi\/js\/bundle.js/' > index.html
cp... | #!/bin/bash
if [ ! -e tsomi-staging ]; then
git clone https://savannidgerinel:${GITHUB_TOKEN}@github.com/cloudcity/tsomi-staging.git
fi
mkdir -p tsomi-staging
cd tsomi-staging
#cat ../../index.html | sed 's/static\/tsomi.css/\/tsomi\/static\/tsomi.css/' | sed 's/js\/bundle.js/\/tsomi\/js\/bundle.js/' > index.html
cp... |
Add shebang line in script | do_generate()
{
cd "$(dirname "$0")"
protoc -I=. --python_out=orwell/messages controller.proto robot.proto server-game.proto server-web.proto
}
do_generate
| #!/bin/sh
do_generate()
{
cd "$(dirname "$0")"
protoc -I=. --python_out=orwell/messages controller.proto robot.proto server-game.proto server-web.proto
}
do_generate
|
Make test fails if examples do not use latest version of Vega | #!/usr/bin/env bash
# Check only output Vega files and normalized Vega-Lite files for now as Travis is having problem when generating SVG
if ! git diff --word-diff=color --exit-code HEAD -- ./examples/compiled/*.vg.json
then
echo "Output examples vega specs are outdated."
exit 1
elif ! git diff --word-diff=color -... | #!/usr/bin/env bash
# Check only output Vega files and normalized Vega-Lite files for now as Travis is having problem when generating SVG
if ! git diff --word-diff=color --exit-code HEAD -- ./examples/compiled/vega_version
then
echo "Output examples were generated using an older version of Vega."
exit 1
elif ! git... |
Install script : extracted extension id | LOCATION=`pwd`
PROFILES="/Users/$(whoami)/Library/Application Support/Firefox/Profiles/"
DEV_PROFILE=`ls "$PROFILES" | grep .dev`
mkdir -p "$PROFILES/$DEV_PROFILE/extensions/"
echo $LOCATION > "$PROFILES/$DEV_PROFILE/extensions/zogger@personal.com"
| EXTENSION_ID=zogger@personal.com
LOCATION=`pwd`
PROFILES="/Users/$(whoami)/Library/Application Support/Firefox/Profiles/"
DEV_PROFILE=`ls "$PROFILES" | grep .dev`
mkdir -p "$PROFILES/$DEV_PROFILE/extensions/"
echo $LOCATION > "$PROFILES/$DEV_PROFILE/extensions/$EXTENSION_ID"
|
Fix db upgrage scripts numbering check | #!/bin/sh
OUT="$(find "$(dirname "$0")/../packaging/dbscripts" | grep -P '\d{2}_\d{2}_\d{2,8}' -o | sort | uniq -d)"
if [ -n "${OUT}" ]; then
echo "Found duplicate upgrade scripts with version $(echo ${OUT}), please resolve and retry" >&2
exit 1
fi
exit 0
| #!/bin/sh
OUT="$(find "$(dirname "$0")/../packaging/dbscripts" | grep -P '^\d{2}_\d{2}_\d{2,8}' -o | sort | uniq -d)"
if [ -n "${OUT}" ]; then
echo "Found duplicate upgrade scripts with version $(echo ${OUT}), please resolve and retry" >&2
exit 1
fi
exit 0
|
Remove --runtime switch from mono call | #!/bin/sh -x
LATEST=$(curl -Ls -o /dev/null -w %{url_effective} https://github.com/monkey0506/AGSModuleExporter/releases/latest)
TAG=${LATEST##*/}
EXPORTER=https://github.com/monkey0506/AGSModuleExporter/releases/download/$TAG/AGSModuleExporter.exe
wget -O /tmp/AGSModuleExporter.exe "${EXPORTER}"
mono --runtime=v4.0... | #!/bin/sh -x
LATEST=$(curl -Ls -o /dev/null -w %{url_effective} https://github.com/monkey0506/AGSModuleExporter/releases/latest)
TAG=${LATEST##*/}
EXPORTER=https://github.com/monkey0506/AGSModuleExporter/releases/download/$TAG/AGSModuleExporter.exe
wget -O /tmp/AGSModuleExporter.exe "${EXPORTER}"
mono /tmp/AGSModule... |
Update coverage tests for Go <1.4 | #!/bin/bash
echo "mode: set" > acc.out
fail=0
# Standard go tooling behavior is to ignore dirs with leading underscors
for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path '*/_*' -type d); do
if ls $dir/*.go &> /dev/null; then
go test -v -coverprofile=profile.out $dir -check.v || fail=1
if [ -f ... | #!/bin/bash
echo "mode: set" > acc.out
fail=0
# Install the old cover tool if version is not 1.4 or higher.
if [ -n "$TRAVIS_GO_VERSION" ] && [[ "$TRAVIS_GO_VERSION" < "go1.4" ]]; then
go get code.google.com/p/go.tools/cmd/cover
fi
# Standard go tooling behavior is to ignore dirs with leading underscors
for dir in... |
Use $HOME instead of weird nested echo | #!/bin/sh
NOTIFIER_URL=https://raw.githubusercontent.com/grantovich/homebrew-notifier/master/notifier.sh
brew install terminal-notifier
mkdir -p ~/.bin
curl -fsS $NOTIFIER_URL > ~/.bin/brew-update-notifier.sh
chmod +x ~/.bin/brew-update-notifier.sh
if crontab -l | grep -q 'brew-update-notifier'; then
echo 'Crontab... | #!/bin/sh
NOTIFIER_URL=https://raw.githubusercontent.com/grantovich/homebrew-notifier/master/notifier.sh
brew install terminal-notifier
mkdir -p ~/.bin
curl -fsS $NOTIFIER_URL > ~/.bin/brew-update-notifier.sh
chmod +x ~/.bin/brew-update-notifier.sh
if crontab -l | grep -q 'brew-update-notifier'; then
echo 'Crontab... |
Fix sanity check on the location of pkg | #!/usr/bin/env atf-sh
. $(atf_get_srcdir)/test_environment.sh
if [ `uname -s` != "Darwin" ]; then
ldd=ldd
fi
tests_init \
which \
${ldd}
which_body() {
atf_check \
-o inline:"$(atf_get_srcdir)/../../src/pkg\n" \
-e empty \
-s exit:0 \
which pkg
}
ldd_body() {
atf_check \
-o match:".*li... | #!/usr/bin/env atf-sh
. $(atf_get_srcdir)/test_environment.sh
if [ `uname -s` != "Darwin" ]; then
ldd=ldd
fi
tests_init \
which \
${ldd}
which_body() {
atf_check \
-o inline:"$(atf_get_srcdir)/../../src/.libs/pkg\n" \
-e empty \
-s exit:0 \
which pkg
}
ldd_body() {
atf_check \
-o match... |
Increase wait time to 5 mins | #!/usr/bin/env bash
### Prep
if [[ "$(uname)" == "Darwin" ]]; then
if ! command -v brew -f &> /dev/null; then
echo "No proper installer found. Please install homebrew"
exit 1
fi
INSTALLER="brew install"
elif [[ "$(uname)" == "Linux"* ]]; then
echo "--> Sleep to wait nix-env ready"
sleep 180
# So... | #!/usr/bin/env bash
### Prep
if [[ "$(uname)" == "Darwin" ]]; then
if ! command -v brew -f &> /dev/null; then
echo "No proper installer found. Please install homebrew"
exit 1
fi
INSTALLER="brew install"
elif [[ "$(uname)" == "Linux"* ]]; then
echo "--> Sleep to wait nix-env ready"
sleep 300
# So... |
Use old system till new system is approved. | #!/bin/bash -
#===============================================================================
#
# FILE: schedule.sh
#
# USAGE: ./schedule.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Dilawar Singh (), dilawars@ncbs.res.in... | #!/bin/bash -
#===============================================================================
#
# FILE: schedule.sh
#
# USAGE: ./schedule.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Dilawar Singh (), dilawars@ncbs.res.in... |
Adjust CI script to new path | #!/bin/bash
# This is the bees CI build. Any changes to the build script should be
# here instead if in the bees config.
set -e
DIR=$( cd "$( dirname "$0" )" && pwd )
function mark {
echo
echo "=============================================="
echo $1
date
echo "===================================... | #!/bin/bash
# This is the bees CI build. Any changes to the build should be
# here instead if in the bees config.
set -e
DIR=$( cd "$( dirname "$0" )" && pwd )
function mark {
echo
echo "=============================================="
echo $1
date
echo "==========================================... |
Comment out install_docs.sh code deploy install code. | #!/usr/bin/env bash
sudo rm -r /home/ubuntu/arches-docs
git clone --recursive https://github.com/archesproject/docs.git /home/ubuntu/arches-docs
cd /home/ubuntu/arches-docs
npm install
npm run deploy
| #!/usr/bin/env bash
# sudo rm -r /home/ubuntu/arches-docs
#
# git clone --recursive https://github.com/archesproject/docs.git /home/ubuntu/arches-docs
#
# cd /home/ubuntu/arches-docs
# npm install
# npm run deploy
|
Make setup work in virtualenvs too, plus run migrate on every setup | #!/bin/bash -e
sudo python3-pip install -r pipreqs
if [ -z "$APP_MODE" -o "$APP_MODE" == "dev" ]; then
sudo python3-pip install -r pipreqs-dev
fi
python3 manage.py migrate
exit 0
| #!/bin/bash -e
if [ -z $(which python3-pip) ]; then
PIP_CMD=$(which pip)
PYTHON_CMD=$(which python)
else
PIP_CMD=$(which python3-pip)
PYTHON_CMD=$(which python3)
fi
sudo ${PIP_CMD} install -r pipreqs
if [ -z "$APP_MODE" -o "$APP_MODE" == "dev" ]; then
sudo ${PIP_CMD} install -r pipreqs-dev
fi
... |
Add LANG=C and just cat the wordlist, no grepping | #!/bin/sh
# Search wordlist for words that works as a sed substitution command and the words that gets
# changed into words that exists in that list.
words=/usr/share/dict/words
for s in $(grep '^[a-z]*$' $words | grep -P '^s(.)((?!\1).)+\1((?!\1).)*\1$')
do
echo "### $s"
(grep '^[a-z]*$' $words | se... | #!/bin/sh
# Search wordlist for words that works as a sed substitution command and the words that gets
# changed into words that exists in that list.
LANG=C
words=/usr/share/dict/words
for s in $(cat $words | grep -P '^s(.)((?!\1).)+\1((?!\1).)*\1[gim]*$')
do
echo "### $s"
(cat $words | sed 's/^/~ /... |
Add working on local [ci full] | #!/usr/bin/env bash
#
# Created by vcernomschi on 10/06/2015
#
source $(dirname $0)/_head.sh
##############################
### Merge Coverage Results ###
##############################
istanbul-combine -d ${__COVERAGE_PATH} -r lcovonly -p both \
${__SRC_PATH}*/tests/frontend/coverage/**/coverage-final.json \
${_... | #!/usr/bin/env bash
#
# Created by vcernomschi on 10/06/2015
#
source $(dirname $0)/_head.sh
##############################
### Merge Coverage Results ###
##############################
istanbul-combine -d ${__COVERAGE_PATH} -r lcovonly -p both \
${__SRC_PATH}*/tests/frontend/coverage/report.json \
${__SRC_PATH}*... |
Use bash to call build | (
printf "Checking Code Style... "
standard > stdout.tmp 2> stderr.tmp && (
echo "passed"
) || (
code=$?
echo "failed" >&2
cat stderr.tmp >&2
cat stdout.tmp
exit $code
)
) && (
if [[ $COVERALLS == 'true' ]];
then
bash ./sh/test-coverage.sh -- $JEST_ARGV
else
jest --... | (
printf "Checking Code Style... "
standard > stdout.tmp 2> stderr.tmp && (
echo "passed"
) || (
code=$?
echo "failed" >&2
cat stderr.tmp >&2
cat stdout.tmp
exit $code
)
) && (
if [[ $COVERALLS == 'true' ]];
then
bash ./sh/test-coverage.sh -- $JEST_ARGV
else
jest --... |
Change script to run SQL script directly. Add test for manual run. | #!/bin/bash
# the line run in the mask function can be substituted for your own masking software. In this example it calls a SQL script
maskfunc()
{
su -m oracle -c "/act/scripts/masking.sh"
}
# this part of the script ensures we run the masking during a scrub mount after the database is started on the scrubbing s... | #!/bin/bash
# the line run in the mask function can be substituted for your own masking software. In this example it calls a SQL script
# You need to validate all the variables
# Is your ORACLE_SID the one called by workflow? In this example it is called: unmasked
# Is your ORACLE_HOME correct? In this example i... |
Set tag when publishing next prerelease version | #!/bin/sh
echo "What kind of a release?"
select yn in "patch" "minor" "major" "premajor" "prerelease"; do
case $yn in
patch ) TYPE="patch"; break;;
minor ) TYPE="minor"; break;;
major ) TYPE="major"; break;;
premajor ) TYPE="premajor --preid=next"; break;;
prelelease ) TYPE="... | #!/bin/sh
echo "What kind of a release?"
select yn in "patch" "minor" "major" "premajor" "prerelease"; do
case $yn in
patch ) TYPE="patch"; break;;
minor ) TYPE="minor"; break;;
major ) TYPE="major"; break;;
premajor ) TYPE="premajor --preid=next"; break;;
prelelease ) TYPE="... |
Hide errors for removing files that don't yet exist but should | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
HOMEDIR=${HOME}
ignoredfiles=(.git .gitmodules LICENSE.md README.md push.sh setup.sh update.sh install.sh install.py utils .DS_Store Brewfile assets)
function createLinks() {
for f in `ls -A $DIR`; do
filename=$(basename $f)
if [[... | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
HOMEDIR=${HOME}
ignoredfiles=(.git .gitmodules LICENSE.md README.md push.sh setup.sh update.sh install.sh install.py utils .DS_Store Brewfile assets)
function createLinks() {
for f in `ls -A $DIR`; do
filename=$(basename $f)
if [[... |
Add text and hist report | vegeta attack --duration ${DURATION} --rate ${RATE} --targets targets | vegeta report -reporter='hist[0,20ms,40ms,60ms,100ms,200ms,1s,2s,3s]' | vegeta attack --duration ${DURATION} --rate ${RATE} --targets targets > result.bin
vegeta report -inputs result.bin
vegeta report -inputs result.bin -reporter='hist[0,20ms,40ms,60ms,100ms,200ms,1s,2s,3s]' |
Add convenience aliases for installation of npm modules | eval "$(npm completion 2>/dev/null)"
| eval "$(npm completion 2>/dev/null)"
# Install and save to dependencies
alias npms="npm i -S "
# Install and save to dev-dependencies
alias npmd="npm i -D "
|
Include pasted commands in shell history | # 'cd' to dir without typing the 'cd' command
setopt AUTO_CD
# Makes cd=pushd, 'popd' to go back
setopt AUTO_PUSHD
# Ignore multiple directories for the stack.
setopt PUSHD_IGNORE_DUPS
# 10 second wait if you do something that will delete everything.
setopt RM_STAR_WAIT
# Case insensitive globbing
setopt NO_CASE_GLOB
#... | # 'cd' to dir without typing the 'cd' command
setopt AUTO_CD
# Makes cd=pushd, 'popd' to go back
setopt AUTO_PUSHD
# Ignore multiple directories for the stack.
setopt PUSHD_IGNORE_DUPS
# 10 second wait if you do something that will delete everything.
setopt RM_STAR_WAIT
# Case insensitive globbing
setopt NO_CASE_GLOB
#... |
Add vim backup directory creation | #!/bin/bash
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
mkdir -p "$HOME/.config/nvim/"
cp init.vim "$HOME/.config/nvim/init.vim"
nvim +PlugClean +qa && nvim +PlugInstall +UpdateRemotePlugins +qa && nvim +PlugUpdate +Upda... | #!/bin/bash
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
mkdir $HOME/.vim.backup
mkdir -p "$HOME/.config/nvim/"
cp init.vim "$HOME/.config/nvim/init.vim"
nvim +PlugClean +qa && nvim +PlugInstall +UpdateRemotePlugins +qa &... |
Add pin back to Python 3.7 | #!/bin/bash
set -x
set -e
CONDA_PATH=${1:-~/conda}
wget -c https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod a+x Miniconda3-latest-Linux-x86_64.sh
if [ ! -d $CONDA_PATH -o ! -z "$CI" ]; then
./Miniconda3-latest-Linux-x86_64.sh -p $CONDA_PATH -b -f
fi
export PATH=$CONDA_PATH/bin:$PA... | #!/bin/bash
set -x
set -e
CONDA_PATH=${1:-~/conda}
wget -c https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod a+x Miniconda3-latest-Linux-x86_64.sh
if [ ! -d $CONDA_PATH -o ! -z "$CI" ]; then
./Miniconda3-latest-Linux-x86_64.sh -p $CONDA_PATH -b -f
fi
export PATH=$CONDA_PATH/bin:$PA... |
Revert "Try with older stack." | #!/bin/sh
#
# From https://github.com/commercialhaskell/stack/blob/master/.travis.yml
set -eux
travis_retry() {
cmd=$*
$cmd || (sleep 2 && $cmd) || (sleep 10 && $cmd)
}
fetch_stack_osx() {
curl -skL https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin;
}
... | #!/bin/sh
#
# From https://github.com/commercialhaskell/stack/blob/master/.travis.yml
set -eux
travis_retry() {
cmd=$*
$cmd || (sleep 2 && $cmd) || (sleep 10 && $cmd)
}
fetch_stack_osx() {
curl -skL https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin;
}
... |
Throw non-zero exit status if tests fail | #!/bin/bash
# This script runs the tests on Heroku CI
git clone -b "$HEROKU_TEST_RUN_BRANCH" --single-branch https://github.com/SalesforceFoundation/MetaCI MetaCI_checkout
cd MetaCI_checkout
git reset --hard $HEROKU_TEST_RUN_COMMIT_VERSION
export DJANGO_SETTINGS_MODULE=config.settings.test
python manage.py test
cover... | #!/bin/bash
# This script runs the tests on Heroku CI
git clone -b "$HEROKU_TEST_RUN_BRANCH" --single-branch https://github.com/SalesforceFoundation/MetaCI MetaCI_checkout
cd MetaCI_checkout
git reset --hard $HEROKU_TEST_RUN_COMMIT_VERSION
export DJANGO_SETTINGS_MODULE=config.settings.test
python manage.py test
exit_... |
Use forked dill until changes make it upstream | #!/usr/bin/env bash
set -e
set -x
shopt -s dotglob
readonly name="dill"
readonly ownership="dill Upstream <robot@adios2>"
readonly subtree="thirdparty/dill/dill"
readonly repo="https://github.com/GTkorvo/dill.git"
readonly tag="master"
readonly shortlog="true"
readonly paths="
"
extract_source () {
git_archive
}... | #!/usr/bin/env bash
set -e
set -x
shopt -s dotglob
readonly name="dill"
readonly ownership="dill Upstream <robot@adios2>"
readonly subtree="thirdparty/dill/dill"
#readonly repo="https://github.com/GTkorvo/dill.git"
#readonly tag="master"
readonly repo="https://github.com/chuckatkins/dill.git"
readonly tag="misc-cmake... |
Fix long shebang problem on travis | #!/usr/bin/env bash
set -e
if [ ! -f venv/bin/activate ]; then
python3 -m venv venv
fi
. venv/bin/activate
pip install wheel
pip install -r "$1/requirements.txt"
PORT=`$1/../get_open_port.py`
$1/generator.py -t uptane --signature-encoding base64 -o vectors --cjson json-subset
$1/server.py -t uptane --signature-e... | #!/usr/bin/env bash
set -e
if [ ! -f venv/bin/activate ]; then
python3 -m venv venv
fi
. venv/bin/activate
# use `python -m pip` to avoid problem with long shebangs on travis
python -m pip install wheel
python -m pip install -r "$1/requirements.txt"
PORT=`$1/../get_open_port.py`
$1/generator.py -t uptane --signa... |
Upgrade Java 8 CI image to jdk8u282b08 | #!/bin/bash
set -e
case "$1" in
java8)
echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u275-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u275b01.tar.gz"
;;
java11)
echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.9.1%2B1/OpenJDK11U-jdk_x64_linux_hotspot... | #!/bin/bash
set -e
case "$1" in
java8)
echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u282-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u282b08.tar.gz"
;;
java11)
echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.9.1%2B1/OpenJDK11U-jdk_x64_linux_hotspot... |
Upgrade Java 11 version in CI image | #!/bin/bash
set -e
case "$1" in
java8)
echo "https://github.com/bell-sw/Liberica/releases/download/8u333+2/bellsoft-jdk8u333+2-linux-amd64.tar.gz"
;;
java11)
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.15+10/bellsoft-jdk11.0.15+10-linux-amd64.tar.gz"
;;
java17)
echo "https://github.c... | #!/bin/bash
set -e
case "$1" in
java8)
echo "https://github.com/bell-sw/Liberica/releases/download/8u333+2/bellsoft-jdk8u333+2-linux-amd64.tar.gz"
;;
java11)
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.15.1+2/bellsoft-jdk11.0.15.1+2-linux-amd64.tar.gz"
;;
java17)
echo "https://github... |
Move gpg-agent env vars to a file so they are easily resourced | #! /usr/bin/env zsh
# Allow using the docker socket without root.
sudo chgrp docker /var/run/docker.sock
# Start TMUX for all terminal access.
function keep_tmux_up() {
while true
do
# Start-up the GPG-Agent for managing SSH and GPG so they can be used across
# all tmux panes/windows.
killall gpg-agen... | #! /usr/bin/env zsh
# Allow using the docker socket without root.
sudo chgrp docker /var/run/docker.sock
# Start-up the GPG-Agent for managing SSH and GPG so they can be used across
# all tmux panes/windows.
gpg-agent --daemon --enable-ssh-support --disable-scdaemon > $HOME/.gpg-agent-env
# Start TMUX for all termin... |
Make avahi start even with uid conflict | #!/bin/bash
if [ ! -z "${AFP_USER}" ]; then
if [ ! -z "${AFP_UID}" ]; then
cmd="$cmd --uid ${AFP_UID}"
fi
if [ ! -z "${AFP_GID}" ]; then
cmd="$cmd --gid ${AFP_GID}"
fi
adduser $cmd --no-create-home --disabled-password --gecos '' "${AFP_USER}"
if [ ! -z "${AFP_PASSWORD}" ]; then
... | #!/bin/bash
if [ ! -z "${AFP_USER}" ]; then
if [ ! -z "${AFP_UID}" ]; then
cmd="$cmd --uid ${AFP_UID}"
fi
if [ ! -z "${AFP_GID}" ]; then
cmd="$cmd --gid ${AFP_GID}"
fi
adduser $cmd --no-create-home --disabled-password --gecos '' "${AFP_USER}"
if [ ! -z "${AFP_PASSWORD}" ]; then
... |
Update of launcher shell script. | rm -rf $HUDSON_HOME/plugins/checkstyle*
mvn install
cp -f target/*.hpi $HUDSON_HOME/plugins/
cd $HUDSON_HOME
java -jar jenkins.war
| rm -rf $HUDSON_HOME/plugins/checkstyle*
mvn install || { echo "Build failed"; exit 1; }
cp -f target/*.hpi $HUDSON_HOME/plugins/
cd $HUDSON_HOME
java -jar jenkins.war
|
Add support for multiple tags. | #!/bin/sh
# Fail if LOGGLY_AUTH_TOKEN is not set
if [ -z "$LOGGLY_AUTH_TOKEN" ]; then
echo "Missing \$LOGGLY_AUTH_TOKEN"
exit 1
fi
# Fail if LOGGLY_TAG is not set
if [ -z "$LOGGLY_TAG" ]; then
echo "Missing \$LOGGLY_TAG"
exit 1
fi
# Create spool directory
mkdir -p /var/spool/rsyslog
# Replace variables
sed ... | #!/bin/sh
# Fail if LOGGLY_AUTH_TOKEN is not set
if [ -z "$LOGGLY_AUTH_TOKEN" ]; then
echo "Missing \$LOGGLY_AUTH_TOKEN"
exit 1
fi
# Fail if LOGGLY_TAG is not set
if [ -z "$LOGGLY_TAG" ]; then
echo "Missing \$LOGGLY_TAG"
exit 1
fi
# Create spool directory
mkdir -p /var/spool/rsyslog
# Expand multiple tags, ... |
Update iso for 12.04 to 12.04.1 | #!/bin/bash
# This file is sourced by build_crowbar.sh when you want to build Crowbar
# using Ubuntu 10.10 as the base OS. It includes all Ubuntu 10.10 specific
# build routines.
# OS information for the OS we are building crowbar on to.
OS=ubuntu
OS_VERSION=12.04
OS_TOKEN="$OS-$OS_VERSION"
OS_CODENAME=precise
ISO=u... | #!/bin/bash
# This file is sourced by build_crowbar.sh when you want to build Crowbar
# using Ubuntu 10.10 as the base OS. It includes all Ubuntu 10.10 specific
# build routines.
# OS information for the OS we are building crowbar on to.
OS=ubuntu
OS_VERSION=12.04
OS_TOKEN="$OS-$OS_VERSION"
OS_CODENAME=precise
ISO=u... |
Return non-zero exit code on failure | #!/bin/bash
go get github.com/mitchellh/gox
go get github.com/tcnksm/ghr
export APPNAME="gnatsd"
export OSARCH="linux/386 linux/amd64 linux/arm darwin/amd64 windows/386 windows/amd64"
export DIRS="linux-386 linux-amd64 linux-arm darwin-amd64 windows-386 windows-amd64"
export OUTDIR="pkg"
# If we have an arg, assume i... | #!/bin/bash
set -e
go get github.com/mitchellh/gox
go get github.com/tcnksm/ghr
export APPNAME="gnatsd"
export OSARCH="linux/386 linux/amd64 linux/arm darwin/amd64 windows/386 windows/amd64"
export DIRS="linux-386 linux-amd64 linux-arm darwin-amd64 windows-386 windows-amd64"
export OUTDIR="pkg"
# If we have an arg, ... |
Make it more independent of python | #!/bin/bash
# Created by Andre Anjos <andre.dos.anjos@cern.ch>
# Sex 11 Abr 2008 14:39:42 CEST
if [ $# = 0 ]; then
echo "usage: $0 python-executable-name"
exit 1
fi
function replace () {
#1. what,
#2. newvalue,
#3. file
echo "Changing file $3...";
sed -i -e "s#^$1\(\s*\)=\(\s*\).\+#$1\1=\2$2#" $3
}
... | #!/bin/bash
# Created by Andre Anjos <andre.dos.anjos@cern.ch>
# Sex 11 Abr 2008 14:39:42 CEST
if [ $# = 0 ]; then
echo "usage: $0 python-executable-name"
exit 1
fi
function replace () {
#1. what,
#2. newvalue,
#3. file
echo "Changing file $3...";
sed -i -e "s#^$1\(\s*\)=\(\s*\).\+#$1\1=\2$2#" $3
}
... |
Check that the LLVM source directory exists before changing to it. | #!/bin/sh
LLVM_PATH=`llvm-config --src-root`
LIBOBJC_PATH=`pwd`
if [ x$LLVM_PATH != x ] ; then
cd $LLVM_PATH
cd lib/Transforms
if [ ! -d GNURuntime ] ; then
mkdir GNURuntime
fi
cd GNURuntime
for I in `ls $LIBOBJC_PATH/opts/` ; do
if [ ! $I -nt $LIBOBJC_PATH/opts/$I ] ; then
cp $LIBOBJC_PATH/opts/$I .
fi
... | #!/bin/sh
LLVM_PATH=`llvm-config --src-root`
LIBOBJC_PATH=`pwd`
if [ x$LLVM_PATH != x ] ; then
if [ -d $LLVM_PATH ] ; then
cd $LLVM_PATH
cd lib/Transforms
if [ ! -d GNURuntime ] ; then
mkdir GNURuntime
fi
cd GNURuntime
for I in `ls $LIBOBJC_PATH/opts/` ; do
if [ ! $I -nt $LIBOBJC_PATH/opts/$I ] ; the... |
Update class path for new core/agent structure. Should probably make this dynamic and maybe based on the .m2 repository instead of the local libraries. | #!/bin/bash
CLASSPATH=$CLASSPATH:~/.m2/repository/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar
CLASSPATH=$CLASSPATH:~/.m2/repository/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar
CLASSPATH=$CLASSPATH:~/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
CLASSPATH=$CLASSPATH:~/.m2/repo... | #!/bin/bash
CLASSPATH=$CLASSPATH:~/.m2/repository/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar
CLASSPATH=$CLASSPATH:~/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
CLASSPATH=$CLASSPATH:~/.m2/repository/org/slf4j/slf4j-simple/1.7.5/slf4j-simple-1.7.5.jar
CLASSPATH=$CLASSPATH:~/.m2/repository... |
Make Solr core directories as part of Travis install | #!/bin/sh
sudo ./scripts/apply_django_patches /home/vagrant/virtualenv/python2.7/lib/python2.7/site-packages/django
createdb -T template_postgis atlas_travis -U postgres
fab --set run_local=True install_solr install_solr_2155
fab --set run_local=True install_jetty_script install_jetty_config
sudo cp config/travis/so... | #!/bin/sh
sudo ./scripts/apply_django_patches /home/vagrant/virtualenv/python2.7/lib/python2.7/site-packages/django
createdb -T template_postgis atlas_travis -U postgres
fab --set run_local=True install_solr make_solr_conf_dir make_solr_data_dir make_solr_lib_dir install_solr_2155
fab --set run_local=True install_je... |
Reduce permissions on ~/.ssh/config to the minimum necessary | #!/bin/bash
# travis-before-install.sh
set -ev
# Decrypt the private key
openssl aes-256-cbc -K $encrypted_278829cc3907_key -iv $encrypted_278829cc3907_iv -in id_rsa.enc -out ~/.ssh/id_rsa.github -d
# Make the private key the default for ssh authentication for request to github.com
chmod 600 ~/.ssh/id_rsa.github
cat ... | #!/bin/bash
# travis-before-install.sh
set -ev
# Decrypt the private key
openssl aes-256-cbc -K $encrypted_278829cc3907_key -iv $encrypted_278829cc3907_iv -in id_rsa.enc -out ~/.ssh/id_rsa.github -d
# Make the private key the default for ssh authentication for request to github.com
chmod 600 ~/.ssh/id_rsa.github
cat ... |
Work around missing dependencies in travis vm | #!/bin/sh -ev
which brew || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew update
brew tap caskroom/cask
brew install bash-completion
brew install doxygen
brew install macvim
brew install stow
brew install tmux
brew cask install firefox
brew cask i... | #!/bin/sh -ev
which brew || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
test "$TRAVIS" = true || brew install doxygen
brew doctor
brew update
brew tap caskroom/cask
brew install bash-completion
brew install macvim
brew install stow
brew install tmux
brew cask ... |
Fix CI script to not always success | #!/bin/bash
function log() {
d=$(date +'%Y-%m-%d %H:%M:%S')
echo $d" "$1
}
log "Running Copybara tests"
log "Fetching dependencies"
# Mercurial does not have an up-to-date .deb package
# The official release needs to be installed with pip.
apt-get -y install python-pip
pip install mercurial
log "Extracting Baze... | #!/bin/bash -e
function log() {
d=$(date +'%Y-%m-%d %H:%M:%S')
echo $d" "$1
}
log "Running Copybara tests"
log "Fetching dependencies"
# Mercurial does not have an up-to-date .deb package
# The official release needs to be installed with pip.
apt-get -y install python-pip
pip install mercurial
log "Extracting B... |
Add support for restoring uncompressed DB snapshots | #!/bin/sh
# This a script for restoring the local env-logger database from a backup snapshot.
set -e
if [ $# -ne 2 ]; then
cat <<EOF
This a script for restoring the local env-logger database from a backup snapshot.
Usage: $0 <DB name> <DB snapshot name>
Example: $0 env_logger db_snapshot.sql
EOF
exit 1
fi
... | #!/bin/sh
# This a script for restoring the local env-logger database from a backup snapshot.
set -e
if [ $# -ne 2 ]; then
cat <<EOF
This a script for restoring the local env-logger database from a backup snapshot.
Usage: $0 <DB name> <DB snapshot name>
Example: $0 env_logger db_snapshot.sql
EOF
exit 1
fi
... |
Remove World and othe stuff from assets. Download countries with search. | #!/bin/bash
set -x -u
SRC=../../data
DST=../../android/assets
# Remove old links
rm -rf $DST
mkdir $DST
files=(about.html basic_ldpi.skn basic_mdpi.skn basic_hdpi.skn basic_xhdpi.skn categories.txt classificator.txt
types.txt fonts_blacklist.txt fonts_whitelist.txt languages.txt \
symbols_ldpi.png sym... | #!/bin/bash
set -x -u
SRC=../../data
DST=../../android/assets
# Remove old links
rm -rf $DST
mkdir $DST
files=(about.html basic_ldpi.skn basic_mdpi.skn basic_hdpi.skn basic_xhdpi.skn categories.txt classificator.txt
types.txt fonts_blacklist.txt fonts_whitelist.txt languages.txt \
symbols_ldpi.png sym... |
Remove growlnotify from required packages | #!/usr/bin/env zsh
# Use Homebrew to install useful executables
set -A base \
git git-extras willgit growlnotify ruby-build hub jsl ctags lorem graphviz \
postgresql mongodb redis memcached node rlwrap couchdb subversion wget tree \
vimpager z
TRAPINT () {
echo "Exiting..."
exit
}
brew install $base
brew i... | #!/usr/bin/env zsh
# Use Homebrew to install useful executables
set -A base \
git git-extras willgit ruby-build hub jsl ctags lorem graphviz postgresql \
mongodb redis memcached node rlwrap couchdb subversion wget tree \
vimpager z
TRAPINT () {
echo "Exiting..."
exit
}
brew install $base
brew install macvi... |
Update to use variables for vscode paths | #!/usr/bin/env bash
#
# Description: configures installed gui apps
#
if [ -n "$DEBUG" ]; then
echo "$0: Setting bash option -x for debug"
PS4='+($(basename ${BASH_SOURCE}):${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
set -x
fi
# Exit on error
set -e; set -o pipefail
PFX=${PFX:-==>}
REPO_DIR=${REPO_DIR:?}
H... | #!/usr/bin/env bash
#
# Description: configures installed gui apps
#
if [ -n "$DEBUG" ]; then
echo "$0: Setting bash option -x for debug"
PS4='+($(basename ${BASH_SOURCE}):${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
set -x
fi
# Exit on error
set -e; set -o pipefail
PFX=${PFX:-==>}
REPO_DIR=${REPO_DIR:?}
H... |
Write vmkite-info for mac builds | #!/bin/bash
set -eux
PROVISION_DIR="$HOME"
install_buildkite() {
echo "Installing buildkite-agent"
/usr/local/bin/brew tap buildkite/buildkite
/usr/local/bin/brew install --devel buildkite-agent
cp /tmp/buildkite-hooks/* /usr/local/etc/buildkite-agent/hooks/
rm -rf /tmp/buildkite-hooks
}
install_launchd_da... | #!/bin/bash
set -eux
PROVISION_DIR="$HOME"
install_buildkite() {
echo "Installing buildkite-agent"
/usr/local/bin/brew tap buildkite/buildkite
/usr/local/bin/brew install --devel buildkite-agent
cp /tmp/buildkite-hooks/* /usr/local/etc/buildkite-agent/hooks/
rm -rf /tmp/buildkite-hooks
}
install_launchd_da... |
Change ccu alias to not use submodules. Put that in new ccus alias | #-------------------------------------------------------------------------------
#
# ios/carthage.zsh
# Carthage aliases
#
#-------------------------------------------------------------------------------
alias carthage-clean='rm -rf ~/Library/Caches/org.carthage.CarthageKit'
# Bootstrap
alias cbootios='carthage bootst... | #-------------------------------------------------------------------------------
#
# ios/carthage.zsh
# Carthage aliases
#
#-------------------------------------------------------------------------------
alias carthage-clean='rm -rf ~/Library/Caches/org.carthage.CarthageKit'
# Bootstrap
alias cbootios='carthage bootst... |
Upgrade Java 18 version in CI image | #!/bin/bash
set -e
case "$1" in
java8)
echo "https://github.com/bell-sw/Liberica/releases/download/8u333+2/bellsoft-jdk8u333+2-linux-amd64.tar.gz"
;;
java11)
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.15.1+2/bellsoft-jdk11.0.15.1+2-linux-amd64.tar.gz"
;;
java17)
echo "https://github.... | #!/bin/bash
set -e
case "$1" in
java8)
echo "https://github.com/bell-sw/Liberica/releases/download/8u333+2/bellsoft-jdk8u333+2-linux-amd64.tar.gz"
;;
java11)
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.15.1+2/bellsoft-jdk11.0.15.1+2-linux-amd64.tar.gz"
;;
java17)
echo "https://github.... |
Add || exit 1 to cd | #!/bin/bash
# Update repository
cd /var/www/website/
git checkout master
git pull
# Update python packages
virtualenvlocation=$(which virtualenvwrapper.sh)
# shellcheck source=/dev/null
source "$virtualenvlocation"
workon albertyw.com
pip install -r requirements.txt
# Configure settings
cd albertyw.com
ln -sf .env.p... | #!/bin/bash
# Update repository
cd /var/www/website/ || exit 1
git checkout master
git pull
# Update python packages
virtualenvlocation=$(which virtualenvwrapper.sh)
# shellcheck source=/dev/null
source "$virtualenvlocation"
workon albertyw.com
pip install -r requirements.txt
# Configure settings
cd albertyw.com || ... |
Add confirmation logic in recipe making | #!/usr/bin/env bash
# HOMERECIPE_SCRIPTS and HOMERECIPE_DIR need to be defined
# Assumed "cook" is called to run this script
[[ ! -z $HOMERECIPE_DIR ]] || { echo "\$HOMERECIPE_DIR is not found. Process exiting."; exit 1; }
# Get brew bundle (includes cask)
brew bundle dump --force --file="${HOMERECIPE_DIR}"/recipes/... | #!/usr/bin/env bash
# HOMERECIPE_SCRIPTS and HOMERECIPE_DIR need to be defined
# Assumed "cook" is called to run this script
[[ ! -z $HOMERECIPE_DIR ]] || { echo "\$HOMERECIPE_DIR is not found. Process exiting."; exit 1; }
confirm() {
# call with a prompt string or use a default
read -r -p "${1:-Are you sure? [y... |
Add Suggest Charge app to initial script | #!/bin/bash
cp -a OSX_Battery_Charge_Detection.sh /usr/local/bin/
cp -a ChargeCompleteNotification.app /Applications/
cp -a com.ITXiaoPang.OSX_Battery_Charge_Detection.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/com.ITXiaoPang.OSX_Battery_Charge_Detection.plist
| #!/bin/bash
cp -a OSX_Battery_Charge_Detection.sh /usr/local/bin/
cp -a ChargeCompleteNotification.app /Applications/
cp -a SuggestChargeNotification.app /Applications/
cp -a com.ITXiaoPang.OSX_Battery_Charge_Detection.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/com.ITXiaoPang.OSX_Battery_Charge_... |
Improve output when format check failes | #!/bin/sh
set -eo pipefail
VIOLATING_FILES=$(goimports -local github.com/sapcc/kubernikus -l $@ | sed /generated/d)
if [ -n "$VIOLATING_FILES" ]; then
echo "Go code is not formatted:"
goimports -e -d $@
exit 1
fi
| #!/bin/sh
set -eo pipefail
VIOLATING_FILES=$(goimports -local github.com/sapcc/kubernikus -l $@ | sed /generated/d)
if [ -n "$VIOLATING_FILES" ]; then
echo "Go code is not formatted in these files:"
echo "$VIOLATING_FILES"
echo "Offending lines:"
goimports -local github.com/sapcc/kubernikus -e -d $VIOLATING_FI... |
Allow for Windows protoc download | #!/usr/bin/env bash
# This downloads and installs the protobuf compiler depending on the platform
if [ "$(uname)" == "Darwin" ]
then
# Under Mac OS X platform
echo 'Downloading MacOs protobuf compiler'
curl https://github.com/google/protobuf/releases/download/v3.8.0/protoc-3.8.0-osx-x86_64.zip -o protoc.... | #!/usr/bin/env bash
# This downloads and installs the protobuf compiler depending on the platform
if [ "$(uname)" == "Darwin" ]; then
# Under Mac OS X platform
echo 'Downloading MacOs protobuf compiler'
curl https://github.com/google/protobuf/releases/download/v3.8.0/protoc-3.8.0-osx-x86_64.zip -o protoc.... |
Add missing role on Windows | #!/bin/bash
# http://www.thisprogrammingthing.com/2015/using-ansible-with-vagrant-and-windows/
if [[ ! -f /usr/bin/ansible-playbook ]]; then
yum install -y ansible
fi
ansible-galaxy install goozbach.EPEL
ansible-galaxy install geerlingguy.nginx
ansible-playbook --inventory="localhost," -c local /provision/playb... | #!/bin/bash
# http://www.thisprogrammingthing.com/2015/using-ansible-with-vagrant-and-windows/
if [[ ! -f /usr/bin/ansible-playbook ]]; then
yum install -y ansible
fi
ansible-galaxy install goozbach.EPEL
ansible-galaxy install geerlingguy.nginx
ansible-galaxy install bertvv.mariadb
ansible-playbook --inventory=... |
Change compose alias to support v2 | # OS X shortcuts
alias rm=trash # brew install trash
# Git
alias gd='git diff'
alias gu='gitup'
alias git-delete-squashed='git checkout -q master && git for-each-ref refs/heads/ "--format=%(refname:short)" | while read branch; do mergeBase=$(git merge-base master $branch) && [[ $(git cherry master $(git commit-tree $(... | # OS X shortcuts
alias rm=trash # brew install trash
# Git
alias gd='git diff'
alias gu='gitup'
alias git-delete-squashed='git checkout -q master && git for-each-ref refs/heads/ "--format=%(refname:short)" | while read branch; do mergeBase=$(git merge-base master $branch) && [[ $(git cherry master $(git commit-tree $(... |
Update Yarn PATH to match docs' recommendation | # sup yarn
# https://yarnpkg.com
export PATH="$HOME/.yarn/bin:$PATH"
| # sup yarn
# https://yarnpkg.com
export PATH="$PATH:`yarn global bin`"
|
Remove Docker dangling images after copying new ones | #!/bin/bash
set -e
cd "$(dirname "${BASH_SOURCE[0]}")"
. ./config.sh
(cd ./tls && go get ./... && go run generate_certs.go $HOSTS)
echo "Copying weave images, scripts, and certificates to hosts, and"
echo " prefetch test images"
for HOST in $HOSTS; do
docker_on $HOST load -i ../weave.tar
run_on $HOST mkdi... | #!/bin/bash
set -e
cd "$(dirname "${BASH_SOURCE[0]}")"
. ./config.sh
(cd ./tls && go get ./... && go run generate_certs.go $HOSTS)
echo "Copying weave images, scripts, and certificates to hosts, and"
echo " prefetch test images"
for HOST in $HOSTS; do
docker_on $HOST load -i ../weave.tar
DANGLING_IMAGES="... |
Increase memory for Magerun install in case people decide to install sample data. | #!/usr/bin/env bash
set -e # Exit on error
if [ $(find $MAGE_ROOT_DIR -maxdepth 0 -type d -empty 2>/dev/null) ]; then
# Install Magento
/n98-magerun.phar install \
--installationFolder=$MAGE_ROOT_DIR \
--magentoVersionByName="magento-mirror-1.9.2.4... | #!/usr/bin/env bash
set -e # Exit on error
if [ $(find $MAGE_ROOT_DIR -maxdepth 0 -type d -empty 2>/dev/null) ]; then
# Install Magento
php -dmemory_limit=1024M -f /n98-magerun.phar install \
--installationFolder=$MAGE_ROOT_DIR \
--magentoVersionByName="magento-mirror-1.9.2.4... |
Update release doc for version 5.2.0 | #!/bin/bash
set -e
./docker-webapp.sh --clean
docker-compose up -d biosamples-agents-solr
docker-compose up -d biosamples-agents-upload-workers
#ARGS=--spring.profiles.active=big
for X in 1 2 3 4 5
do
echo "===============================================================================================... | #!/bin/bash
set -e
./docker-webapp.sh --clean
docker-compose up -d biosamples-agents-solr
docker-compose up -d biosamples-agents-upload-workers
#ARGS=--spring.profiles.active=big
for X in 1 2 3 4 5
do
echo "===========================================================================================================... |
Fix datbase wd ownership for initdb to work | #!/bin/sh
# If empty data directory
if [ ! -f /var/lib/postgresql/9.4/main/PG_VERSION ] && [ "$DATABASE_NAME" ] && [ "$DATABASE_USER" ] && [ "$DATABASE_PASSWORD" ]
then
# Create postgres data directory
mkdir -p /var/lib/postgresql/9.4/main
chown postgres:postgres /var/lib/postgresql/9.4/main
/sbin/setu... | #!/bin/sh
# If empty data directory
if [ ! -f /var/lib/postgresql/9.4/main/PG_VERSION ] && [ "$DATABASE_NAME" ] && [ "$DATABASE_USER" ] && [ "$DATABASE_PASSWORD" ]
then
# Create postgres data directory
mkdir -p /var/lib/postgresql/9.4/main
chown -R postgres:postgres /var/lib/postgresql/
/sbin/setuser p... |
Use aggregate compact report for master report | #!/usr/bin/env bash
set -e
git reset --hard
git remote add upstream https://github.com/phpactor/worse-reflection
git fetch upstream master
echo -e "\n\n"
echo -e "Benchmarking master branch"
echo -e "==========================\n\n"
git checkout upstream/master
mv composer.lock composer.lock.pr
composer install --quie... | #!/usr/bin/env bash
set -e
git reset --hard
git remote add upstream https://github.com/phpactor/worse-reflection
git fetch upstream master
echo -e "\n\n"
echo -e "Benchmarking master branch"
echo -e "==========================\n\n"
git checkout upstream/master
mv composer.lock composer.lock.pr
composer install --quie... |
Update comments, same on server as local workstation now. | # assemblyLine.sh
#############################################################################
#
# Purpose:
#
# Assemble exec.sh script for an Apache Tomcat server installation on
# an Ubuntu development workstation (not for production use).
#
######################################################################... | # assemblyLine.sh
#############################################################################
#
# Purpose:
#
# Assemble exec.sh script for an Apache Tomcat server installation on
# an Ubuntu 16.04 system.
#
#############################################################################
. ../../init.sh
. init.sh
ca... |
Make sure the code is compiled before pushing it to gh-pages | #!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
mkdir -p tmp
if [ ! -d "tmp/gh-pages" ]; then
git clone git@github.com:Hacker0x01/react-datepicker.git --branch gh-pages --single-branch tmp/gh-pages
fi
cd tmp/gh-pages
git pull
find . -maxdepth 1 ! -name '.git' ! -name '.' -exec rm -r ... | #!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
npm run build
mkdir -p tmp
if [ ! -d "tmp/gh-pages" ]; then
git clone git@github.com:Hacker0x01/react-datepicker.git --branch gh-pages --single-branch tmp/gh-pages
fi
cd tmp/gh-pages
git pull
find . -maxdepth 1 ! -name '.git' ! -name '... |
Print credentials + trace log | ./bridge running
if [ "$?" == 1 ]
then
ip=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'`
(echo "Crash Flower Bridge" && \
echo "ip: $ip" && \
echo "" && \
echo "trace.log:" && \
cat trace.log) | \
mail -s "Flower Bridge crashed" "bruno.sautron@parrot.com"
./bridge restart > /de... | ./bridge running
if [ "$?" == 1 ]
then
ip=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'`
(echo "Crash Flower Bridge" && \
echo "ip: $ip" && \
echo "" && \
echo "trace.log:" && \
cat trace.log &&
echo &&
echo "credenitals.json:" &&
cat credentials.json) | \
mail -s "Flower ... |
Fix the Fedora upload file | chmod a+rx 112x63
chmod a+rx 624x351
chmod a+rx 752x423
chmod a+rx source
chmod a+r */*.png
chmod a+r *.html
rsync -v --progress \
112x63 624x351 752x423 \
fedora-21.xml.gz fedora-21-icons.tar.gz \
*.html \
applications-to-import.yaml \
rhughes@secondary01.fedoraproject.org:/srv/pub/alt/screenshots/... | chmod a+rx 112x63
chmod a+rx 624x351
chmod a+rx 752x423
chmod a+rx source
chmod a+r */*.png
chmod a+r *.html
rsync -vr --progress \
112x63 624x351 752x423 \
fedora-21.xml.gz fedora-21-icons.tar.gz \
*.html \
applications-to-import.yaml \
rhughes@secondary01.fedoraproject.org:/srv/pub/alt/screenshots... |
Use llc+gcc instead of lli, so we can link against gmp | #!/bin/bash
set -e
if [ "$1" = "-" ]; then
testdir=`mktemp -d` || exit 1
trap "rm -fr $testdir" exit
outdir=${testdir}
mod=temp_test
cat > ${testdir}/${mod}.m
else
mod="$1"
fi
outdir=${outdir-out}
shift
dist/build/m3/m3 ${testdir:+-I${testdir} -o${outdir}} ${mod}
file=${outdir}/${mod/::/__}
llvm-as ${file}.ll
lli ... | #!/bin/bash
set -e
if [ "$1" = "-" ]; then
testdir=`mktemp -d` || exit 1
trap "rm -fr $testdir" exit
outdir=${testdir}
mod=temp_test
cat > ${testdir}/${mod}.m
else
mod="$1"
fi
outdir=${outdir-out}
shift
dist/build/m3/m3 ${testdir:+-I${testdir} -o${outdir}} ${mod}
file=${outdir}/${mod/::/__}
llvm-as ${file}.ll
llc ... |
Load gcc module for gfortran to run on sites that don't have gcc available | #!/bin/bash
hostname=`hostname -f`
cur_time=`date`
echo "Hostname $hostname"
echo "Time: $cur_time"
echo "OSG Site: $OSG_SITE_NAME"
echo "GWMS Entry Name: $GLIDEIN_Entry_Name"
echo "GWMS Resource Name: $GLIDEIN_ResourceName"
source /cvmfs/oasis.opensciencegrid.org/osg/modules/lmod/5.6.2/init/bash
module load madgrap... | #!/bin/bash
hostname=`hostname -f`
cur_time=`date`
echo "Hostname $hostname"
echo "Time: $cur_time"
echo "OSG Site: $OSG_SITE_NAME"
echo "GWMS Entry Name: $GLIDEIN_Entry_Name"
echo "GWMS Resource Name: $GLIDEIN_ResourceName"
source /cvmfs/oasis.opensciencegrid.org/osg/modules/lmod/5.6.2/init/bash
module load gcc/4.6... |
Update the timing file so that if there is no diff, we don't double compile | #!/bin/bash
NEW_FILE="$1"
OLD_FILE="$2"
SHELF_NAME="compare-times-shelf"
trap "hg import --no-commit $SHELF_NAME" SIGINT SIGTERM
# make the old version
#hg shelve --all --name $SHELF_NAME
hg diff > $SHELF_NAME && hg revert -a
make clean
make timed 2>&1 | tee "$OLD_FILE"
# make the current version
hg import --no-c... | #!/bin/bash
NEW_FILE="$1"
OLD_FILE="$2"
SHELF_NAME="compare-times-shelf"
trap "hg import --no-commit $SHELF_NAME" SIGINT SIGTERM
# make the old version
#hg shelve --all --name $SHELF_NAME
hg diff > $SHELF_NAME && hg revert -a
make clean
make timed 2>&1 | tee "$OLD_FILE"
# make the current version
if [ -z "$(cat $... |
Revert "start search indexer before start apiOdin job" | #!/bin/bash
startSearchIndexer
processApps $APPSTODEPLOY
# Generate and Ingest Odin data
bundle exec rake FORCE_COLOR=true api_server_url=https://$NODE_NAME.slidev.org apiSuperAssessmentTests TOGGLE_TABLESCANS=true
EXITCODE=$?
mongo --eval "db.adminCommand( { setParameter: 1, notablescan: false } )"
exit $EXITCOD... | #!/bin/bash
# Generate and Ingest Odin data
bundle exec rake FORCE_COLOR=true api_server_url=https://$NODE_NAME.slidev.org apiSuperAssessmentTests TOGGLE_TABLESCANS=true
EXITCODE=$?
mongo --eval "db.adminCommand( { setParameter: 1, notablescan: false } )"
exit $EXITCODE
|
Fix path for push to S3 | #!/bin/bash
# Must be invoked with $PACKAGENAME
echo $TRAVIS_PULL_REQUEST $TRAVIS_BRANCH
PUSH_DOCS_TO_S3=true
if [ "$TRAVIS_PULL_REQUEST" = true ]; then
echo "This is a pull request. No deployment will be done."; exit 0
fi
if [ "$TRAVIS_BRANCH" != "master" ]; then
echo "No deployment on BRANCH='$TRAVIS_BRAN... | #!/bin/bash
# Must be invoked with $PACKAGENAME
echo $TRAVIS_PULL_REQUEST $TRAVIS_BRANCH
PUSH_DOCS_TO_S3=true
if [ "$TRAVIS_PULL_REQUEST" = true ]; then
echo "This is a pull request. No deployment will be done."; exit 0
fi
if [ "$TRAVIS_BRANCH" != "master" ]; then
echo "No deployment on BRANCH='$TRAVIS_BRAN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.