document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_11600 | ---
+++
@@ -30,4 +30,4 @@
EOF
export CONFIG="$(readlink -nf config.json)"
-bin/test -r $noColorFlag -slowSpecThreshold=120 -randomizeAllSpecs $verbose -v -progress -keepGoing $test_suite
+bin/test -r $noColorFlag -slowSpecThreshold=120 -randomizeAllSpecs $verbose -keepGoing $test_suite | bash |
d_bash_11601 | ---
+++
@@ -9,11 +9,10 @@
./tools/ci/travis-install-dagmc.sh
fi
-# Upgrade pip before doing anything else
+# Upgrade pip, pytest, numpy before doing anything else
pip install --upgrade pip
-
-# pytest installed by default -- make sure we get latest
pip install --upgrade pytest
+pip install --upgrade numpy
... | bash |
d_bash_11602 | ---
+++
@@ -3,7 +3,7 @@
git clone https://github.com/creationix/nvm.git /tmp/.nvm
source /tmp/.nvm/nvm.sh
nvm install $NODE_VERSION
-nvm use $NODE_VERSION
+nvm use --delete-prefix $NODE_VERSION
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export DISPLAY=:99.0 | bash |
d_bash_11603 | ---
+++
@@ -6,7 +6,7 @@
OUT=android-release.apk
a=${ANDROID_RELEASE_SIGN_PASS?"env variable ANDROID_RELEASE_SIGN_PASS not defined"}
-ANDROID_KEYSTORE=${ANDROID_KEYSTORE:-agile-africa-2016.keystore}
+ANDROID_KEYSTORE=${ANDROID_KEYSTORE:-SUGSA-conference-app.keystore}
echo "using keystore file: $ANDROID_KEYSTORE"
... | bash |
d_bash_11604 | ---
+++
@@ -6,7 +6,7 @@
echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u332-b09/OpenJDK8U-jdk_x64_linux_hotspot_8u332b09.tar.gz"
;;
java11)
- echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.14.1%2B1/OpenJDK11U-jdk_x64_linux_hotspot_11.0.14.1_1.tar.g... | bash |
d_bash_11605 | ---
+++
@@ -3,8 +3,7 @@
## Blockly-based HTML application that Visual Arduino
## embeds.
set -ex
-# git clone https://github.com/bq/roboblocks.git
-git clone file:///home/vrruiz/tmp/bitbloq/roboblocks.git-make roboblocks
+git clone https://github.com/bq/roboblocks.git
cd roboblocks/
npm install bower
npm run bo... | bash |
d_bash_11606 | ---
+++
@@ -22,6 +22,9 @@
${SH_DIR}/build_images.sh
${SH_DIR}/tag_image.sh
+if [ "${1:-}" == '--build-only' ]; then
+ exit 0
+fi
${SH_DIR}/tear_down.sh
${SH_DIR}/containers_up.sh
${SH_DIR}/on_ci_pull_dependent_images.sh | bash |
d_bash_11607 | ---
+++
@@ -24,8 +24,6 @@
# do initial per-user set up
cd "$WBDIR"
./scripts/setup_4store.sh # create /var/lib/4store (prompts for admin password)
-cd "$WBDIR"
-./scripts/new_4store_kb.sh # create webbox kb (if not exists)
# run webbox, output to log
cd "$WBDIR" | bash |
d_bash_11608 | ---
+++
@@ -20,10 +20,10 @@
download_dotfiles
./keys.sh
+./xcode.sh
./brew.sh
./zsh.sh
./git.sh
-./xcode.sh
./conda.sh
./emacs.sh
| bash |
d_bash_11609 | ---
+++
@@ -11,5 +11,5 @@
mv pkg/buildkite-agent-linux-amd64 pkg/buildkite-agent
chmod +x pkg/buildkite-agent
-export PATH="$PWD/pkg"
+export PATH="$PWD/pkg:$PATH"
./bk run .buildkite/pipeline.bk-test.yml | bash |
d_bash_11610 | ---
+++
@@ -8,7 +8,7 @@
if [ -z "$OFFLINE" ]; then
"$INSTALLER" -y update
- "$INSTALLER" install -y python3 openssl
+ "$INSTALLER" install -y python3 openssl systemd
fi
/container/scripts/install-rpms.sh cockpit-ws | bash |
d_bash_11611 | ---
+++
@@ -8,5 +8,5 @@
export PIDFILE=/home/deploy/resque.pid
export QUEUE=*
- nohup bundle exec rake environment resque:work PIDFILE=$PIDFILE > /applications/factlink-core/current/log/resque.log 2>&1
+ nohup bundle exec rake environment resque:work PIDFILE=$PIDFILE >> /applications/factlink-core/c... | bash |
d_bash_11612 | ---
+++
@@ -33,8 +33,7 @@
if [ "$tarball" ]; then
tar -czf - $outdir
elif [ "$zipball" ]; then
- zip -r $outdir.zip $outdir >/dev/null 2>&1
- cat $outdir.zip
+ zip -qr - $outdir
fi
fi
fi | bash |
d_bash_11613 | ---
+++
@@ -23,7 +23,9 @@
export PYTHON_BLDRVERSION
# Needed?
# PYTHON_MAJMIN=`echo $PYTHON_BLDRVERSION | sed 's/\([0-9]*\.[0-9]*\).*/\1/'`
- PYTHON_BUILDS=${PYTHON_BUILDS:-"$FORPYTHON_BUILD"}
+ if [[ `uname` =~ Linux ]]; then
+ PYTHON_BUILDS=${PYTHON_BUILDS:-"$FORPYTHON_BUILD"}
+ fi
PYTHON_BUILD=$FOR... | bash |
d_bash_11614 | ---
+++
@@ -6,14 +6,29 @@
C2=10.2.0.34
NAME=seetwo.weave.local
+check_attached() {
+ assert_raises "proxy exec_on $HOST1 c2 $CHECK_ETHWE_UP"
+ assert_dns_record $HOST1 c1 $NAME $C2
+}
+
start_suite "Proxy restart reattaches networking to containers"
weave_on $HOST1 launch
-proxy_start_container ... | bash |
d_bash_11615 | ---
+++
@@ -3,5 +3,20 @@
year=`date --date="yesterday" +"%Y"`
month=`date --date="yesterday" +"%m"`
billing_logs="/var/lib/dcache/billing/$year/$month"
-scp uct2-dc4.mwt2.org:$billing_logs/billing-$yesterday /
-rm -fr /tmp/faxbox_logs
+log_dest="/mnt/log/mwt2/dcache-billing/"
+work_dir=`mktemp -d`
+cd $work_dir
+m... | bash |
d_bash_11616 | ---
+++
@@ -35,7 +35,7 @@
TRIES=$(( TRIES - 1 ))
done
if [ "$HAS_LINK" == "1" ] ; then
- printf "auto $interface\r\niface $interface inet dhcp\r\n\r\n" >>$INTERFACES_FILE
+ printf "auto $interface\niface $interface inet dhcp\n\n" >>$INTERFACES_FILE
echo "Configured"
else
... | bash |
d_bash_11617 | ---
+++
@@ -5,7 +5,7 @@
# Run all debug tests
./check_source.py
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
- ./run_tests.py -C "^hdf5-debug$|^phdf5-debug$|^phdf5-omp-debug$" -j 2 -s
+ ./run_tests.py -C "^hdf5-debug$|^omp-hdf5-debug|^mpi-hdf5-debug|^phdf5-debug$|^phdf5-omp-debug$" -j 2 -s
else
./run_tests... | bash |
d_bash_11618 | ---
+++
@@ -1,25 +1,21 @@
#!/bin/bash
-function travis_retry() {
- $Local:result = 0
- $Local:count = 1
- $Local:cmd_string = $args -join ' '
+travis_retry() {
+ local result=0
+ local count=1
+ while [ $count -le 3 ]; do
+ [ $result -ne 0 ] && {
+ echo -e "\n${RED}The command \"$@\" failed. Retryin... | bash |
d_bash_11619 | ---
+++
@@ -1,5 +1,25 @@
#!/bin/bash
+
+WAIT_SERVICE_READY=10
+
+function check_service(){
+ status=$($WORKDIR/control status)
+ echo $status | grep -q "stoped"
+ if [ $? -eq 0 ] ; then
+ return 1
+ else
+ return 0
+ fi
+}
+
tar -zxf $PACKDIR/$PACKFILE -C $WORKDIR
cp $CONFIGDIR/$CONFIGFILE $WORKDIR
$WO... | bash |
d_bash_11620 | ---
+++
@@ -8,5 +8,7 @@
./code/enable_usb.sh
sleep 10
-./bin/scdplus /dev/ttyACM0 9600 | nc 192.168.178.36 1234
+./bin/scdplus /dev/ttyACM0 9600 >> ./data/solarpi.csv
./code/disable_usb.sh
+rsync ./data/solarpi.csv rsync://192.168.178.36/data/solarpi
+ | bash |
d_bash_11621 | ---
+++
@@ -3,6 +3,19 @@
. /etc/sysconfig/heat-params
DOCKER_DEV=/dev/disk/by-id/virtio-${DOCKER_VOLUME:0:20}
+
+# Wait until docker volume is hot-plugged
+attempts=1200
+while [ ! -b $DOCKER_DEV ]
+do
+ sleep 0.25
+ # Trigger udev to make sure symlinks are up to date
+ udevadm trigger
+ attempts=$(($attempts... | bash |
d_bash_11622 | ---
+++
@@ -1 +1,2 @@
export _BASTION_ALLOW_IP=`curl http://169.254.169.254/latest/meta-data/public-ipv4`
+export AWS_ACCOUNT=256215146792 | bash |
d_bash_11623 | ---
+++
@@ -10,6 +10,7 @@
vim
tmux
rename
+ ansible
)
# Install the binaries | bash |
d_bash_11624 | ---
+++
@@ -12,7 +12,7 @@
# Deploy to staging on a merge to master
ember deploy --environment staging && ember deploy:activate --environment staging --revision=`ember deploy:list --environment staging | grep '1)' | awk {'print $2'}`
-elif [ "$TRAVIS_TAG" != "false" ]; then
+elif [ -n "$TRAVIS_TAG" ]; then
... | bash |
d_bash_11625 | ---
+++
@@ -10,7 +10,6 @@
#==============================================================================
BOOST_UNIT_TEST_OPTIONS=\
"--run_test=* "\
-"--random=1 "\
"--show_progress=no "\
"--detect_memory_leak=0 "\
"--report_level=no "\ | bash |
d_bash_11626 | ---
+++
@@ -4,8 +4,8 @@
while RES=$(inotifywait -e create $APP_DIR --format %f); do
if [[ "restart" == $(basename ${RES}) ]]; then
+ rm ${APP_DIR}restart
cd ${APP_DIR} && \
- rm restart && \
git pull && \
docker-compose restart
fi | bash |
d_bash_11627 | ---
+++
@@ -10,7 +10,7 @@
sudo apt-get update -qq
sudo apt-get install -y aptitude
-sudo aptitude install -y nkf git screen vim rubygems1.9.1 ruby1.9.1-dev ipython g++ trash-cli python-pip lyx ${pdf_viewer} ${image_viewer} ${image_editor} ${desktop_capture} ${video_editor} ${webdav_client} meshlab exuberant-ctags... | bash |
d_bash_11628 | ---
+++
@@ -10,7 +10,12 @@
su postgres -c psql <<EOL
create role docker superuser createdb password '${PASSWORD}' login;
-create database docker owner docker with encoding 'UTF8';
+create database docker owner docker;
+EOL
+
+su postgres -c psql <<EOL
+create role django createdb password '${PASSWORD}' login;
+cr... | bash |
d_bash_11629 | ---
+++
@@ -24,3 +24,10 @@
apt-get install -y python-numpy
apt-get install -y python-epydoc
apt-get install -y doxygen
+
+# these libraries are required for vdb_view if USE_X11=ON
+apt-get install -y libxinerama-dev
+apt-get install -y libxrandr-dev
+apt-get install -y libxcursor-dev
+apt-get install -y libxi-dev
... | bash |
d_bash_11630 | ---
+++
@@ -18,4 +18,4 @@
readonly LINUX_ALPINE_CONTAINER="gcr.io/google.com/absl-177019/alpine:20201026"
readonly LINUX_CLANG_LATEST_CONTAINER="gcr.io/google.com/absl-177019/linux_hybrid-latest:20220217"
readonly LINUX_GCC_LATEST_CONTAINER="gcr.io/google.com/absl-177019/linux_hybrid-latest:20220217"
-readonly LIN... | bash |
d_bash_11631 | ---
+++
@@ -4,5 +4,5 @@
echo "The new value of PATH: $PATH"
if [ "$INSTALL_CPPCHECK" = true ] ; then
- . ./install_cppcheck.sh
+ travis/before_install/install_cppcheck.sh
fi | bash |
d_bash_11632 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/sh
-erl -pa `pwd`/apps/*/ebin -pa `pwd`/deps/*/ebin +c -run reloader
+erl +P 134217727 -pa `pwd`/apps/*/ebin -pa `pwd`/deps/*/ebin +c -run reloader | bash |
d_bash_11633 | ---
+++
@@ -5,6 +5,7 @@
export SOURCE_DIR=/source
export NUM_THREADS=4
export MALLOC_ARENA_MAX=1
+export MAVEN_OPTS="-Xms128m -Xmx2g"
source /etc/profile.d/devtoolset-6.sh || true
ccache --max-size=1250M | bash |
d_bash_11634 | ---
+++
@@ -1,16 +1,17 @@
#!/bin/csh
# Converts and executes an ipython notebook
# Notes: (1) File should not contain spaces
-NB="$1.ipynb"
-OUT="$1.py"
+NOTEBOOK="$1.ipynb"
+PYTHON="$1.py"
TMP1="/tmp/run_nb1.py"
-if test -f "${NB}"; then
- echo "Creating ${OUT}$"
+if test -f "${NOTEBOOK}"; then
+ echo "Cre... | bash |
d_bash_11635 | ---
+++
@@ -38,10 +38,10 @@
-w failed.list \
"./swoole_${dir}"
- for i in {1..5}
+ for i in 1 2 3 4 5
do
if [ "`cat failed.list | grep "phpt"`" ]; then
- sleep 3
+ sleep ${i}
echo "retry#${i}..."
retry_failures
else | bash |
d_bash_11636 | ---
+++
@@ -1,15 +1,14 @@
PW=/usr/sbin/pw
-LOGINUSER=$1
pw_create_account ( ) {
if [ -n "${GZIPIMAGE}" ]; then
- echo "Adding user $LOGINUSER with password $LOGINUSER"
- mkdir -p ${BOARD_FREEBSD_MOUNTPOINT}/usr/home/$LOGINUSER
- $PW useradd -n $LOGINUSER -s /bin/csh -g wheel -w yes -V... | bash |
d_bash_11637 | ---
+++
@@ -19,6 +19,6 @@
const (
EOH
-sed -n 's/^[ ]*\(SIG[A-Z0-9][A-Z0-9]*\).*/ \1 = UnixSignal(syscall.\1)/p' "$1"
+sed -n 's/^[ ]*\(SIG[A-Z0-9][A-Z0-9]*\)[ ].*/ \1 = UnixSignal(syscall.\1)/p' "$1"
echo ")" | bash |
d_bash_11638 | ---
+++
@@ -6,8 +6,12 @@
do_test "$MP42TS -src $TEMP_DIR/file.mp4 -dst-file=$TEMP_DIR/file.ts" "ts-for-dash-input-preparation-2"
-do_test "$MP4BOX -dash 1000 $TEMP_DIR/file.ts -out $TEMP_DIR/file.mpd" "ts-dash"
+do_test "$MP4BOX -dash 1000 -rap -single-file -segment-name myrep/ts-segment-single-f-\$Representatio... | bash |
d_bash_11639 | ---
+++
@@ -9,4 +9,7 @@
# Set gtk theme
-gtk-theme-switch2 /usr/share/themes/Numix
+gtk-theme-switch2 /usr/share/themes/Numix || echo "No X11 session running!"
+
+# German keyboard layout
+sudo localectl set-x11-keymap de | bash |
d_bash_11640 | ---
+++
@@ -2,8 +2,10 @@
set -ex
+readonly TEST_PARAMS="$@"
+
# Run tests with bazel
-bazel test //...
+bazel test $TEST_PARAMS //...
# Also run the gradle examples on the local maven snapshots.
readonly _SIMPLE_EXAMPLE_DIR=java/dagger/example/gradle/simple | bash |
d_bash_11641 | ---
+++
@@ -7,7 +7,7 @@
# - wget
name="python"
-version="2.7.10"
+version="2.7.11"
target_dir=$PATEFIANT_ROOT
package=$name-$version
@@ -22,9 +22,17 @@
# extract files, configure, and compile
-./configure --prefix=$target_dir
+./configure \
+ --prefix=$target_dir \
+ --enable-shared \
+ --... | bash |
d_bash_11642 | ---
+++
@@ -19,14 +19,14 @@
about 'create a new virtualenv for the current branch'
group 'virtualenv'
- mkvirtualenv --distribute "$(basename `pwd`)@$(git_prompt_info)"
+ mkvirtualenv --distribute "$(basename `pwd`)@$SCM_BRANCH"
}
function wovbranch {
about 'sets workon branch'
group 'virtualenv'
... | bash |
d_bash_11643 | ---
+++
@@ -7,7 +7,7 @@
rm -f "$NIX_STATE_DIR"/gcroots/foo
ln -sf $outPath "$NIX_STATE_DIR"/gcroots/foo
-[ "$(nix-store -q --roots $outPath)" = "$NIX_STATE_DIR"/gcroots/foo ]
+[ "$(nix-store -q --roots $outPath)" = "$NIX_STATE_DIR/gcroots/foo -> $outPath" ]
nix-store --gc --print-roots | grep $outPath
nix-sto... | bash |
d_bash_11644 | ---
+++
@@ -25,6 +25,6 @@
zplug load
if zplug check "creationix/nvm" && [[ $(nvm current) == "none" ]]; then
- nvm install 4
- nvm alias default 4
+ nvm install stable
+ nvm alias default stable
fi | bash |
d_bash_11645 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
-version="20.10.13"
+version="20.10.14"
echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz"; | bash |
d_bash_11646 | ---
+++
@@ -1,3 +1,5 @@
#!/bin/sh
+echo "$0: start"
${ERL} +v -pa src < ${srcdir}/src/test-erlusb.cmds
+echo "$0: end" | bash |
d_bash_11647 | ---
+++
@@ -10,7 +10,7 @@
if [ -z "${_APP_PROFILE}" ];
then
- ${__dir}/__envi/bin/python -u ${PYTHONPATH}/amberdriver/collision_avoidance/collision_avoidance.py
+ ${__dir}/__envi/bin/python -u ${PYTHONPATH}/amberdriver/collision_avoidance/collision_avoidance_controller.py
else
... | bash |
d_bash_11648 | ---
+++
@@ -6,10 +6,20 @@
# Let test server know we should allow testing.
export PHP_CURL_CLASS_TEST_MODE_ENABLED="yes"
+# Start test server.
php -S 127.0.0.1:8000 -t PHPCurlClass/ &> /dev/null &
pid="${!}"
+
+# Determine which phpunit to use.
+if [[ -f "../vendor/phpunit/phpunit/phpunit" ]]; then
+ phpunit_... | bash |
d_bash_11649 | ---
+++
@@ -4,6 +4,6 @@
git add js_dependencies.json
git commit -F appsdk.bump --author="${JOB_NAME} <bogus@rallydev.com>"
-git push origin HEAD:$BRANCH
+git push origin HEAD:$GIT_BRANCH
rm appsdk.bump | bash |
d_bash_11650 | ---
+++
@@ -9,4 +9,4 @@
pushd data
bash ./regression_download.sh
popd
-python -m pytest -v --capture=no --cov=cclib --cov-report=term --cov-report=html --cov-append -k test_regression test/regression.py --traceback
+python -m pytest -v --capture=no --cov=cclib --cov-report=term --cov-report=html --cov-append -k te... | bash |
d_bash_11651 | ---
+++
@@ -1,2 +1,2 @@
-alias docker-rm-exited="docker ps -q -f status=exited | xargs docker rm"
-alias docker-rmi-dangling="docker images -qf dangling=true | xargs docker rmi"
+alias docker-rm-exited="docker ps -q -f status=exited | xargs --no-run-if-empty docker rm"
+alias docker-rmi-dangling="docker images -qf da... | bash |
d_bash_11652 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/ash
-VAULT_ADDR="https://${HOSTNAME}.node.${CONSUL_DOMAIN:-consul}:8200" vault unseal
+VAULT_ADDR="https://${HOSTNAME}.node.${CONSUL_DOMAIN:-consul}:8200" su-exec vault: vault operator unseal
| bash |
d_bash_11653 | ---
+++
@@ -22,7 +22,9 @@
}
stop() {
- action "Stopping ${SERVICE_NAME}: " killproc -p ${PID_FILE}
+ # Use -TERM to prevent killproc -KILL'ing supervisord when it doesn't
+ # exit immediately: that would orphan supervisor's children.
+ action "Stopping ${SERVICE_NAME}: " killproc -p ${PID_FILE} ${SERV... | bash |
d_bash_11654 | ---
+++
@@ -21,8 +21,3 @@
# Create a group and assign the user to it
dseditgroup -o create "$SSH_USERNAME"
dseditgroup -o edit -a "$SSH_USERNAME" "$SSH_USERNAME"
-
-if [ "$OSX_VERS" = "11" ]; then
- nvram boot-args=rootless=0
- reboot
-fi | bash |
d_bash_11655 | ---
+++
@@ -10,6 +10,7 @@
alias -g projp='cd ~/Documents/projects/php'
alias -g projs='~/Documents/projects/js'
alias -g projm='~/Documents/projects/mixed/'
+alias -g projrb='cd /home/thomas/Documents/projects/ruby'
alias ledoc="cd ~/Documents/projects/js/ledoc"
| bash |
d_bash_11656 | ---
+++
@@ -7,7 +7,7 @@
[[ -z "${GITEA_ATTACHMENT_PATH}" ]] && GITEA_ATTACHMENT_PATH="${GITEA_BASE_PATH}/attachments"
declare -x GITEA_ATTACHMENT_ALLOWED_TYPES
-[[ -z "${GITEA_ATTACHMENT_ALLOWED_TYPES}" ]] && GITEA_ATTACHMENT_ALLOWED_TYPES="image/jpeg|image/png|application/zip|application/gzip"
+[[ -z "${GITEA_AT... | bash |
d_bash_11657 | ---
+++
@@ -3,7 +3,7 @@
set -ex
release_version=$(git -C lattice-release describe --abbrev=0)
-bundle_sha=$(git rev-parse --short "$release_version^{commit}")
+bundle_sha=$(git -C lattice-release rev-parse --short "$release_version^{commit}")
echo -n "$release_version" > release-tag
| bash |
d_bash_11658 | ---
+++
@@ -4,7 +4,7 @@
#
# This script will register an IoT thing. Create, download and attach the keys and certificates and attach an all topics/actions policy to the certificates and the IoT Thing.
-if [ $# -eq 1 ]; then
+if [ $# -ne 1 ]; then
echo "Usage: ./create-aws-iot-thing.sh <Thing>"
echo "<Th... | bash |
d_bash_11659 | ---
+++
@@ -10,5 +10,6 @@
echo "Making knob file"
chmod +x "$JRUBY"
+"$JRUBY" -S gem install bundler -v 1.15.4
"$JRUBY" -S bundle install --path vendor/bundle
ISN_BUILD=1 RAILS_ENV=production "$JRUBY" -S torquebox archive --precompile-assets --package_gems "$BASE_DIR" | bash |
d_bash_11660 | ---
+++
@@ -5,7 +5,7 @@
if [ "$MINGW" = "true" ] && [ "${TRAVIS_REPO_SLUG}" = "open62541/open62541" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
echo "=== Executing after_success scripts ==="
# List branches where the doc should be pushed to the webpage
- if [ "${TRAVIS_BRANCH}" = "master" ] || [ "... | bash |
d_bash_11661 | ---
+++
@@ -8,5 +8,6 @@
cp ./server/server.js ./dist/server.js
mkdir -p ./dist/cron && cp ./server/cron/storeaccountmv.js ./dist/cron/storeaccountmv.js
cp -R ./server/config ./dist/config
+rm server.zip
(cd ./dist && zip -r ../server.zip ./*)
aws s3 cp --region us-east-1 ./server.zip s3://my-portfolio-deploy | bash |
d_bash_11662 | ---
+++
@@ -1,7 +1,13 @@
#!/bin/bash
-grep ucarp-vip /etc/network/interfaces | awk '{print $2}' | while read ip; do
- if ! ps -ef | grep '/usr/sbin/ucarp' | grep $ip >/dev/null; then
- echo "no ucarp process is running for ip $ip"
- exit 2
- fi
+
+ifquery --list | \
+while read IFACE; do
+ ifquery ${IFACE} ... | bash |
d_bash_11663 | ---
+++
@@ -1,12 +1,10 @@
eval "$(npm completion 2>/dev/null)"
-
-
-# npm package names are lowercase
-# - https://twitter.com/substack/status/23122603153150361
-# Thus, we've used camelCase for the following aliases:
# Install dependencies globally
alias npmg="npm i -g "
+
+# npm package names are lowercase
+# ... | bash |
d_bash_11664 | ---
+++
@@ -3,7 +3,7 @@
# Do we want to check dynamic inventory, bin, etc?
BASEDIR=${1-"lib"}
-SIX_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -wH six \{\} \;|grep import |grep -v ansible.compat)
+SIX_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -wH six \{\} \;|grep import |grep -v ansible.compat|grep -v a... | bash |
d_bash_11665 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/bash -xve
#required packages
+pip install urllib3[secure]
pip install catkin_pkg
pip install empy
pip install pyyaml | bash |
d_bash_11666 | ---
+++
@@ -12,6 +12,7 @@
# Read scale result and write change to file
RESULT="$(/home/pi/scale/usbscale/usbscale)"
+ rm ${TARGET_FILE}
echo ${RESULT} > ${TARGET_FILE}
echo "Current weight: ${RESULT}"
done | bash |
d_bash_11667 | ---
+++
@@ -27,10 +27,11 @@
cp -R ../website/* .
# Download the latest javadoc
-curl -L "http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=$GROUP_ID&a=$ARTIFACT_ID&v=LATEST&c=javadoc" > javadoc.zip
-mkdir javadoc
-unzip javadoc.zip -d javadoc
-rm javadoc.zip
+#curl -L "http://... | bash |
d_bash_11668 | ---
+++
@@ -7,7 +7,7 @@
# installing packages
echo "Installing Packages"
-sudo apt-get install -y build-essential aptitude curl git perl libssl-dev dkms linux-headers-`uname -r`
+sudo apt-get install -y build-essential curl git perl libssl-dev dkms linux-headers-`uname -r`
# installing vagrant keys
echo "Inst... | bash |
d_bash_11669 | ---
+++
@@ -5,9 +5,11 @@
for fq in $*;
do
if [ ${fq: -10} == '.rmdup.bam' ]; then continue; fi;
+ cat_cmd=cat;
+ if [ ${fq##*.} '==' 'gz' ]; then cat_cmd=zcat; fi;
sample=$(basename $fq);
name_no_ext=$(echo -n $fq | tr "." "\n" | sed '/^gz$/ d' | sed '$ d' | perl -pe 'chomp if eof' | tr "\n"... | bash |
d_bash_11670 | ---
+++
@@ -7,3 +7,16 @@
exit 1
}
+emptyhidden() {
+ # Remove hidden files and subdirectories from a directory.
+
+ # This requires a 'trick' because normally removing .* results in the
+ # error that rm cannot remove '.' and '..'.
+
+ # It has two components that use wildcards:
+
+ # 1/ $1/..?* removes a... | bash |
d_bash_11671 | ---
+++
@@ -7,6 +7,7 @@
# Create directory to store all binaries
binsdir=/tmp/mgbins
mkdir -p $binsdir
+rm -rf $binsdir/memgator-*
echo "Output directory for binaries created: $binsdir"
# Platforms (OS/arch matrix) | bash |
d_bash_11672 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/bash
set -v
+set -e
dir="$(dirname "$0")"
@@ -9,7 +10,7 @@
cd ${GOPATH}/src/github.com/redhat-cip/skydive
make install
-git remote add github git@github.com:skydive-project/skydive.git
+git remote add github git@github.com:skydive-project/skydive-binaries.git
git fetch git... | bash |
d_bash_11673 | ---
+++
@@ -20,7 +20,7 @@
sed -e "s/ticket-no/$ticket_number/g" ~/.pullreqmessage.txt > ~/.pullreqmessage_temp.txt
echo 'Exec Pull Request'
-hub pull-request --browse -F ~/.pullreqmessage_temp.txt -b kasaharu:master -h kasaharu:$(git symbolic-ref --short HEAD)
+hub pull-request --browse -F ~/.pullreqmessage_temp.... | bash |
d_bash_11674 | ---
+++
@@ -12,3 +12,4 @@
# Replace the placeholder with the db pw for the environment
executeSSH "sed -i "s/@DB_PASSWORD/$DB_PASSWORD/g" $APPROOT/deploy/backend/config/db.php" > /dev/null
executeSSH "APPENV=$ENV $DEPLOY_PHP_BINARY $APPROOT/deploy/backend/craft blitz/cache/clear"
+executeSSH "APPENV=$ENV $DEPLOY_P... | bash |
d_bash_11675 | ---
+++
@@ -5,6 +5,7 @@
credhub l
TOKEN="$(credhub --token)"
+echo "$CREDHUB_CA_CERT" > ca.pem
echo $SIGNED_BY_TO_ROTATE | jq -r .[] | while read object; do
echo "go"
@@ -12,7 +13,7 @@
-X POST \
-H "authorization: ${TOKEN}" \
-H 'content-type: application/json' \
- -d "{\"signed_by\": \"${object}... | bash |
d_bash_11676 | ---
+++
@@ -14,6 +14,9 @@
REL=$REL.$i
fi
done
+if [ "$REL" == "" ]; then
+ REL=1
+fi
ARCH=$(uname -i)
echo Building RPM FOR $VER-$REL-$ARCH
rpmbuild -ba dub.spec --define "ver $VER" --define "rel $REL" --define="srcpath $DUB_PATH" | bash |
d_bash_11677 | ---
+++
@@ -9,7 +9,7 @@
}
stack_name(){
- basename awsinfo-integration-$BATS_TEST_FILENAME-$STACKPOSTFIX | tr '.' '-'
+ basename awsinfoit-$BATS_TEST_FILENAME-$STACKPOSTFIX | tr '.' '-'
}
deploy_stack() {
FORMICA_STACK=$(stack_name) | bash |
d_bash_11678 | ---
+++
@@ -22,6 +22,7 @@
pip list --disable-pip-version-check
export PATH="test/runner:${PATH}"
+export PYTHONIOENCODING='utf-8'
# remove empty core/extras module directories from PRs created prior to the repo-merge
find lib/ansible/modules -type d -empty -print -delete | bash |
d_bash_11679 | ---
+++
@@ -2,5 +2,5 @@
#Shamlessly stolen from https://github.com/vgod/vimrc
cd ~/dotfiles
ls -s .vim .vim
-ln -s .vim/vimrc .vim/.vimrc
-ln -s .vim/gvimrc .vim/.gvimrc
+ln -s .vimrc .vim/.vimrc
+ln -s .gvimrc .vim/.gvimrc | bash |
d_bash_11680 | ---
+++
@@ -1 +1,22 @@
-java -jar -Dconfig.file=/data/habridge.config -Djava.net.preferIPv4Stack=true /habridge/app.jar
+# Create /share/habridge folder
+if [ ! -d /share/habridge ]; then
+ echo "[INFO] Creating /share/habridge folder"
+ mkdir -p /share/habridge
+fi
+
+# Migrate existing habridge.config file
+if [ ... | bash |
d_bash_11681 | ---
+++
@@ -22,3 +22,5 @@
alias yuc="yarn global upgrade && yarn cache clean"
alias yui="yarn upgrade-interactive"
alias yup="yarn upgrade"
+alias yw="yarn workspace"
+alias yws="yarn workspaces" | bash |
d_bash_11682 | ---
+++
@@ -1,7 +1,14 @@
+source $HOME/.dotfiles/bin/os_type.sh
+
ZSH=$HOME/.oh-my-zsh
POWERLEVEL9K_MODE='nerdfont-complete'
-ZSH_THEME="powerlevel9k/powerlevel9k"
+
+if is_osx; then
+ ZSH_THEME="powerlevel9k/powerlevel9k"
+else
+ ZSH_THEME="robbyrussell"
+fi
COMPLETION_WAITING_DOTS="true"
| bash |
d_bash_11683 | ---
+++
@@ -10,7 +10,6 @@
mkdir -p $(dirname $GOROOT)
wget -q $GO_ARCHIVE_URL -O $GO_ARCHIVE
tar xf $GO_ARCHIVE -C $(dirname $GOROOT)
-chmod -R a+w $GOROOT
if [ ! -d $TMPDIR ]; then
mkdir -p $TMPDIR | bash |
d_bash_11684 | ---
+++
@@ -12,10 +12,11 @@
*)
test -f re2/obj/libre2.a && exit 0
+ RE2_REV=master
(test -d re2 ||
git clone https://code.googlesource.com/re2 &&
cd re2 &&
- git checkout 2016-02-01)
+ git checkout $RE2_REV)
CXXFLAGS="-Wall -O3 -fPIC -pthread --std=c++11 -m$ERL... | bash |
d_bash_11685 | ---
+++
@@ -27,4 +27,4 @@
export GBT_CAR_TIME_FM='bold'
export GBT_CAR_TIME_FORMAT=' {{ Time }}'
-export GBT_SEPARATOR=''
+export GBT_SEPARATOR='\x01' | bash |
d_bash_11686 | ---
+++
@@ -2,7 +2,7 @@
set -m
-MONGO_URI="mongodb://${MONGO_HOST}:${MONGO_PORT}"
+MONGO_URI="mongodb://${MONGO_HOST}:${MONGO_PORT}/?readPreference=secondary"
service rsyslog start
mkfifo mdb-bi-connector.log
echo "starting connector application" | bash |
d_bash_11687 | ---
+++
@@ -2,7 +2,7 @@
#SBATCH -n 1 # Number of cores per node
#SBATCH -N 1 # Number of nodes (keep at 1, except when using MPI queue)
-#SBATCH -t 0-45:59 # Runtime in D-HH:MM format
+#SBATCH -t 2-00:00 # Runtime in D-HH:MM format
#SBATCH -p medium ... | bash |
d_bash_11688 | ---
+++
@@ -42,11 +42,11 @@
CFLAGS=-Qunused-arguments CPPFLAGS=-Qunused-arguments pip install ansible
+ rm -rf ./repo
+
git clone ${ANSIBLE_REPO} ./repo
- ${TARGET_DIR}/bin/ansible-playbook \
- -i ./repo/ansible/inventory \
- ./repo/ansible/frontend.yml
+ ansible-playbook -i ./repo/ansible/invento... | bash |
d_bash_11689 | ---
+++
@@ -11,6 +11,10 @@
apt-get install cifs-utils
apt-get install transmission-daemon
+# Clean cache
+npm cache clean
+rm -rf /tmp/*
+
echo "Mount network shared drive"
mount -t cifs -o username=root,password= //192.168.1.123/Public /mnt/Public
echo "Configure Transmission" | bash |
d_bash_11690 | ---
+++
@@ -1,2 +1,10 @@
-aws s3 cp dist/static.tar.gz s3://thusoy.com/dist/blag-static.tar.gz --acl public-read
-aws s3 cp dist/thusoy-blag-0.1.0.tar.gz s3://thusoy.com/dist/blag.tar.gz --acl public-read
+# Compute the file hashes
+sha1sum dist/static.tar.gz | cut -f 1 -d " " > dist/static.tar.gz.sha1
+sha1sum dist/... | bash |
d_bash_11691 | ---
+++
@@ -13,5 +13,11 @@
rm -rf /dev/.udev/ /var/lib/dhcp3/* /var/lib/dhcp/*;
fi
+# Set up eth0
+echo "auto eth0\niface eth0 inet dhcp" >> /etc/network/interfaces.d/eth0.cfg
+
# Adding a 2 sec delay to the interface up, to make the dhclient happy
echo "pre-up sleep 2" >>/etc/network/interfaces;
+
+sed -ie '... | bash |
d_bash_11692 | ---
+++
@@ -1,2 +1,2 @@
-fab target.demo app.admin.all app.main.all app.checker.all app.service.all
+fab target.demo app.admin.all app.main.all app.checker.all app.service.all server.restart_tomcat
| bash |
d_bash_11693 | ---
+++
@@ -9,9 +9,9 @@
sleep 1
LCM_DEFAULT_URL=$LCM_URL_DRC_PERCEPTION screen -D -m -S deputy-atlas0 bot-procman-deputy -n atlas0 &
-screen -D -m -S deputy-atlas1 bot-procman-deputy -n atlas1 &
+LCM_DEFAULT_URL=$LCM_URL_DRC_PERCEPTION screen -D -m -S deputy-atlas1 bot-procman-deputy -n atlas1 &
LCM_DEFAULT_URL=... | bash |
d_bash_11694 | ---
+++
@@ -27,7 +27,7 @@
then
echo "Push the new docs to the remote branch"
git add . -A
- git commit -m "Update generated documentation"
+ git commit --allow-empty -m "Update generated documentation"
git push origin gh-pages
else
echo "Not on master, skipping pushing docs" | bash |
d_bash_11695 | ---
+++
@@ -8,7 +8,7 @@
# get source files
TEMPDIR=`mktemp -d`
-git clone ssh://git@ctsit-forge.ctsi.ufl.edu/form_render_skip_logic.git $TEMPDIR
+git clone https://github.com/ctsit/form_render_skip_logic.git $TEMPDIR
# If you need to checkout code from another branch, uncomment and adjust this line
# git --gi... | bash |
d_bash_11696 | ---
+++
@@ -9,10 +9,12 @@
local plugin_name="$1"
local gitref="${2:-master}"
if [ "$plugin_name" = "--all" ]; then
- for dir in "$(asdf_data_dir)"/plugins/*; do
- echo "Updating $(basename "$dir")..."
- (cd "$dir" && git fetch -p -u origin "$gitref:$gitref" && git checkout -f "$gitref")
- don... | bash |
d_bash_11697 | ---
+++
@@ -1,11 +1,13 @@
#!/bin/bash
set -e
rm -rf doc/ || exit 0
+git clone "https://${GH_REF}" --branch gh-pages --single-branch doc
npm run docs
+cp doc/snoowrap.js "doc/snoowrap-$TRAVIS_TAG.js"
+cp doc/snoowrap.min.js "doc/snoowrap-$TRAVIS_TAG.min.js"
cd doc/
-git init
git config user.name "not-an-aardvark... | bash |
d_bash_11698 | ---
+++
@@ -1,8 +1,7 @@
-if ! [ -z $KUBECTL_NAME ]; then
+KUBECTL_NAME=${KUBECTL_NAME:-}
+if [ -z "$KUBECTL_NAME" ]; then
if [ -x "$(command -v kubectl)" ]; then
KUBECTL_NAME='kubectl'
- else
- KUBECTL_NAME=${KUBECTL_NAME}
fi
- export KUBECTL_NAME
fi
+echo "Using following kubectl - $... | bash |
d_bash_11699 | ---
+++
@@ -1,10 +1,52 @@
#!/bin/bash
-VERSION=1.0.3
+set -e
-mkdir -p packaging/debian/opt/proactive-agent
+VERSION=${VERSION:-1.0.3}
+JRE_VERSION=${JRE_VERSION:-7u67-b01}
+[ -n "$NODE" ] || ( echo "NODE variable should point to the unpacked ProActiveNode"; exit 1 )
-rsync -avP --delete proactive-agent proact... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.