document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_13800
--- +++ @@ -4,4 +4,4 @@ alias find='noglob find' alias curl='noglob curl' alias wget='noglob wget' -alias zcalc='noglob zcalc' +alias zcalc='noglob zcalc -f'
bash
d_bash_13801
--- +++ @@ -13,6 +13,10 @@ | grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' ) +bosh2 int deployment-vars/environments/${ENVIRONMENT_NAME}/deployment-vars.yml \ + --path /default_ca/certificate > /tmp/ca-cert +export BITS_SERVICE_CA_CERT=/tmp/ca-cert + export CC_API="api.${CF_DOMAIN}" export CC_PASSWORD=$( bo...
bash
d_bash_13802
--- +++ @@ -9,6 +9,7 @@ gem install coveralls-lcov elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update + test -d ~/.ccache && brew install ccache brew tap homebrew/versions brew install autoconf213 fi
bash
d_bash_13803
--- +++ @@ -1,2 +1,8 @@ +#!/bin/sh sudo apt-get install -y stow -stow bash bin git powershell readline +for f in .bashrc .bash_profile .bash_logout; do + if [ -e ~/$f ]; then + mv ~/$f ~/$f.bak + fi +done +stow --target="$HOME" --stow bash bin git powershell readline
bash
d_bash_13804
--- +++ @@ -5,7 +5,7 @@ export OPAMYES=1 opam init opam update -opam install oasis ocamlfind +opam install oasis ocamlfind alcotest eval `opam config env` ./configure --enable-tests
bash
d_bash_13805
--- +++ @@ -11,3 +11,4 @@ alias gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun. alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm" alias gms="git merge origin/staging" +alias gpu="git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)"
bash
d_bash_13806
--- +++ @@ -5,7 +5,7 @@ export BOSH_CLI_SILENCE_SLOW_LOAD_WARNING=true set +x -source deployments-bosh/concourse/$cpi_release_name/lifecycle-exports.sh +source bosh-concourse-ci/pipelines/$cpi_release_name/lifecycle-exports.sh set -x source /etc/profile.d/chruby.sh
bash
d_bash_13807
--- +++ @@ -26,7 +26,7 @@ if [ "$BOT" != "floyd" ] then Say "Gosh, I wish that *I* could publish" - FinalTask builtin-history email "" $GOPHER_JOB_NAME:$GOPHER_NAMESPACE_EXTENDED $GOPHER_RUN_INDEX + FinalTask builtin-history history email "" $GOPHER_JOB_NAME:$GOPHER_NAMESPACE_EXTENDED $GOPHER_RUN_INDEX ...
bash
d_bash_13808
--- +++ @@ -3,10 +3,10 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]" - ./gradlew test + ./gradlew test jacoco elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then echo -e 'Build Branch with Snapshot =>...
bash
d_bash_13809
--- +++ @@ -10,17 +10,5 @@ source $DOTFILES/zsh/config.sh fi -# Set Apple Terminal.app resume directory -# http://superuser.com/questions/313650/resume-zsh-terminal-os-x-lion/315029#315029 -if [[ $TERM_PROGRAM == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]] { - function chpwd { - local SEARCH=' ' - lo...
bash
d_bash_13810
--- +++ @@ -9,7 +9,7 @@ rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc; sudo yum install -y --nogpg rabbitmq-server; elif [[ "$APT_GET_CMD" != "" ]]; then -sudo apt-get -y install libvirt-bin libvirt-dev syslinux pxelinux rabbitmq-server; +sudo apt-get -y install libvirt-bin libvirt-dev sysl...
bash
d_bash_13811
--- +++ @@ -1,7 +1,5 @@ -#!/usr/bin/env Rscript +#!/bin/sh -require(bookdown) - -bookdown::render_book("index.Rmd", "bookdown::gitbook") -bookdown::render_book("index.Rmd", "bookdown::pdf_book") -bookdown::render_book("index.Rmd", "bookdown::epub_book") +Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::git...
bash
d_bash_13812
--- +++ @@ -3,8 +3,6 @@ HISTSIZE=50000 # session history size SAVEHIST=100000 # saved history size -# load repo independent settings -[ -f "$HOME/.environment" ] && source "$HOME/.environment"; # must come before oh-my-zsh fpath=('/usr/local/share/zsh/site-functions' $fpath) @@ -37,3 +35,5 @@ # set virtuale...
bash
d_bash_13813
--- +++ @@ -4,4 +4,4 @@ # Please install XCode and run `xcode-select --install` afterwards. # Also remember to start XCode at least once and agree to the EULA. -sh configure LDFLAGS="$LDFLAGS -rdynamic" CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64" CFLAGS="$CFLAGS $CVMFS_BASE_C_FLAGS -fPIC...
bash
d_bash_13814
--- +++ @@ -2,5 +2,8 @@ CONFIG_SET="${1:-all}" +# By default exit by error +set -e + # Check if this is a MacOS machine [ `uname -s` = "Darwin" ] && IS_MAC="true" || IS_MAC="false"
bash
d_bash_13815
--- +++ @@ -6,5 +6,5 @@ aws cloudformation deploy --template-file templates/service-role.yml --stack-name "${stack_name}" --region us-east-1 --capabilities CAPABILITY_IAM -role_arn="$(aws cloudformation describe-stacks --stack-name buildkite-elastic-ci-stack-service-role --region us-east-1 --query "Stacks[0].Out...
bash
d_bash_13816
--- +++ @@ -16,7 +16,7 @@ popd -rsync -HhavP --delete --exclude=".git/" docs/html/ "${TMP_DIR}/amazekit.github.com/" +rsync -HhavP --delete --exclude=".git/" --exclude="CNAME" docs/html/ "${TMP_DIR}/amazekit.github.com/" pushd "${TMP_DIR}/amazekit.github.com/"
bash
d_bash_13817
--- +++ @@ -2,3 +2,4 @@ apt-get update apt-get install -y git g++ cmake pbuilder devscripts equivs +mk-build-deps --install --remove "packaging/debian/control" --tool "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y"
bash
d_bash_13818
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -python ../../../DiligentCore/BuildTools/FormatValidation/clang-format-validate.py \ +python3 ../../../DiligentCore/BuildTools/FormatValidation/clang-format-validate.py \ --clang-format-executable ../../../DiligentCore/BuildTools/FormatValidation/clang-format_mac_10.0.0 \ -r ../...
bash
d_bash_13819
--- +++ @@ -1,12 +1,11 @@ #!/bin/bash # This expects /input/admin.json to be the generated admin.json file +. /usr/lib/ckan/bin/activate + if /usr/lib/ckan/bin/ckanapi action user_show -c /project/development.ini id=admin; then - # Generate a file with info on the user and add a password w/ Python - /usr/l...
bash
d_bash_13820
--- +++ @@ -1,6 +1,8 @@ #!/bin/bash -host_limit=10 +# host limit are based on lines in host (two lines per host) +host_limit=10*2 + dhcp_dir='/var/lib/neutron/dhcp/' if (($(ls -1 ${dhcp_dir} | wc -l) < 1)); then
bash
d_bash_13821
--- +++ @@ -1,5 +1,6 @@ # Set up and start the scheduler cd faleiro +./build.sh ./install.sh # TODO uncomment lines below when scheduler supports clustering # if we do this now; it will be chaos as three independent schedulers
bash
d_bash_13822
--- +++ @@ -37,6 +37,8 @@ vagrant plugin install vagrant-hostmanager vagrant plugin install vagrant-berkshelf +brew cask install safari-tab-switching + brew cask install 1password brew cask install transmission brew cask install spotify
bash
d_bash_13823
--- +++ @@ -8,7 +8,7 @@ set -e -DIR="${1:-$PWD}" +DIR="${1:-$ICEKIT_PROJECT_DIR/var}" mkdir -p "$DIR"
bash
d_bash_13824
--- +++ @@ -5,6 +5,10 @@ INSCT="/var/tmp/sct_in_content.raw" INSCTPAYLOAD="/var/tmp/sct_in_content.payload" SCTLOG="/var/log/sct_stage1.log" + + +echo "STARTING SCRIPT" + while [ ! -e "${CLODINITPAYLOAD}" ]; do nc -l 8080 >${INSCT} @@ -24,3 +28,5 @@ ) done + +echo "END SCRIPT"
bash
d_bash_13825
--- +++ @@ -1 +1,7 @@ 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 "
bash
d_bash_13826
--- +++ @@ -9,6 +9,12 @@ # # Example: phb-manage.sh collectstatic --noinput -export DEBUG=False SECRET_KEY=foo DATABASE_URL=sqlite:// +export DEBUG=False +export SECRET_KEY=foo +export DATABASE_URL=sqlite:// +export AUTH0_CLIENT_ID=foo +export AUTH0_CLIENT_SECRET=foo +export AUTH0_DOMAIN=foo +export AUTH0_CALLBAC...
bash
d_bash_13827
--- +++ @@ -1,3 +1,3 @@ #!/bin/sh -rm mimosa.db ; perl -Ilib script/mimosa_deploy.pl; DBIC_TRACE=1 perl script/mimosa_server.pl +rm mimosa.db ; perl -Ilib script/mimosa_deploy.pl; DBIC_TRACE=1 perl script/mimosa_server.pl -p 8080
bash
d_bash_13828
--- +++ @@ -12,4 +12,4 @@ wget -O - -d --post-data "netid=${NETID}&macaddr=${MACADDR}" ${DASHBOARD_URL}/checkin # OR -# curl -f -s ${DASHBOARD_URL}/checkin -d "netid=${NETID}&macaddr=00:11:22:33:44:55" +# curl -f -s ${DASHBOARD_URL}/checkin -d "netid=${NETID}&macaddr=${MACADDR}"
bash
d_bash_13829
--- +++ @@ -1,15 +1,20 @@ -#!/bin/sh +#!/bin/bash set -e -# check to see if gnatsd folder is empty +export DEFAULT_NATS_SERVER_VERSION=v2.0.0 -if [ ! "$(ls -A $HOME/gnatsd)" ]; then - mkdir -p $HOME/gnatsd - cd $HOME/gnatsd - wget https://github.com/nats-io/gnatsd/releases/download/v1.2.0/gnatsd-v1.2.0-linu...
bash
d_bash_13830
--- +++ @@ -17,3 +17,8 @@ if [[ "${DOCKER_EXPERIMENTAL:-false}" == "true" ]] ; then cat <<< "$(jq '.experimental=true' /etc/docker/daemon.json)" > /etc/docker/daemon.json fi + +# Move docker root to the ephemeral device +if [[ "${BUILDKITE_ENABLE_INSTANCE_STORAGE:-false}" == "true" ]] ; then + cat <<< "$(jq '.d...
bash
d_bash_13831
--- +++ @@ -20,4 +20,4 @@ docker stop $CONTAINER_NAME docker rm -v $CONTAINER_NAME -docker volume rm $VOLUME_NAME +docker volume rm -f $VOLUME_NAME
bash
d_bash_13832
--- +++ @@ -34,10 +34,10 @@ esac done -(cd proto_uni ; ./RunTest.sh -u $options) -(cd proto_sscop ; ./RunTest.sh -u $options) -(cd proto_sscfu ; ./RunTest.sh -u $options) +(cd proto_sscop ; sh ./RunTest.sh -u $options) +(cd proto_sscfu ; sh ./RunTest.sh -u $options) +(cd proto_uni ; sh ./RunTest.sh -u $options) ...
bash
d_bash_13833
--- +++ @@ -1,10 +1,41 @@ #!/bin/sh +# Run this to generate all the initial makefiles, etc. +test -n "$srcdir" || srcdir=$(dirname "$0") +test -n "$srcdir" || srcdir=. -set -e # exit on errors +olddir=$(pwd) -srcdir=`dirname $0` -test -z "$srcdir" && srcdir=. +cd $srcdir -mkdir -p $srcdir/m4 +(test -f configur...
bash
d_bash_13834
--- +++ @@ -11,8 +11,10 @@ source $ROOT_DIR/venv/bin/activate export $(cat .env.staging | xargs) -npm run build -npm run build-prod +if [[ "$1" == "--webpack" ]]; then + npm run build + npm run build-prod +fi ./manage.py collectstatic --clear --noinput \ --ignore less/test/* --ignore select2/docs/*
bash
d_bash_13835
--- +++ @@ -1,6 +1,4 @@ #!/bin/bash -e - -set -o pipefail TRIE=$(mktemp) COMPILE_INPUT=$(mktemp)
bash
d_bash_13836
--- +++ @@ -17,7 +17,7 @@ i3ipc \ i3pystatus \ netifaces \ - pytx + pytz if [ "$(uname)" == "Linux" ]; then pip3 install basiciw
bash
d_bash_13837
--- +++ @@ -17,7 +17,7 @@ sed -i 's/site_name:\ stdlib/site_name:\ Pony Standard Library/' stdlib-docs/mkdocs.yml echo "Uploading docs using mkdocs..." -git config --global --add safe.directory /__w/ponyc/ponyc +git config --global --add safe.directory "${GITHUB_WORKSPACE}" git remote add gh-token "https://${STD...
bash
d_bash_13838
--- +++ @@ -1,11 +1,16 @@ #!/bin/sh export DEBIAN_FRONTEND=noninteractive apt-get update +apt-get upgrade apt-get install -y python-software-properties +add-apt-repository -y ppa:openjdk-r/ppa add-apt-repository -y ppa:ondrej/php +wget https://cdn.crate.io/downloads/deb/DEB-GPG-KEY-crate +apt-key add DEB-GPG-KEY...
bash
d_bash_13839
--- +++ @@ -7,7 +7,7 @@ sudo /usr/bin/logger -t autobootstrap "installed puppet" echo "* installing gems" sudo gem install hiera-eyaml -sudo gem install aws-sdk +sudo gem install aws-sdk -v '~> 2.6.11' sudo gem install hiera-eyaml-kms echo " - Done" sudo /usr/bin/logger -t autobootstrap "installed puppet gems"
bash
d_bash_13840
--- +++ @@ -18,6 +18,9 @@ # Copy jsdoc output cp -f demo/data/sky.json docs/sky-jsdoc/sky-$RELEASE_VERSION.json + # Copy integrity hashes + cp -f dist/sri.json docs/sky-sri/sky-$RELEASE_VERSION.json + # Updating this file will cause the documentation to be updated echo "$RELEASE_VERSION" > docs/includ...
bash
d_bash_13841
--- +++ @@ -4,4 +4,4 @@ mkdir -p $HOME/.ssh echo $DEPLOYKEY | base64 -d>$HOME/.ssh/id_rsa chmod -R go-rwx $HOME/.ssh -mvn deploy +mvn -q -B deploy >/dev/null
bash
d_bash_13842
--- +++ @@ -10,7 +10,7 @@ # - all non upstream repo forks should provide their own JSPM_GITHUB_AUTH_TOKEN in travis environment variables # auth key owned by @sundriver - public_repo only - jspm config registries.github.auth c3VuZHJpdmVyOjI4NTU3ZjlkNzdhZGU4YjJhODk3NDQyOTEyMzU5NDY0ZDBjMjkwYmE= + node...
bash
d_bash_13843
--- +++ @@ -10,7 +10,7 @@ DEBFULLNAME="Leosac CI" DEBVERSION="${VERSION}" export DEBEMAIL DEBFULLNAME -if [[ -z "${VERSION}" ]] || [[ $VERSION == "edge" ]] || [[ $VERSION == "latest" ]] || [[ $VERSION == "snapshot" ]] || [[ $VERSION == "weekly" ]] || [[ $VERSION == "nightly" ]] ; then DEBVERSION="0.0.0" ; fi +if [...
bash
d_bash_13844
--- +++ @@ -1,4 +1,2 @@ -gem install zest-publisher -zest-publisher --help - -CODECLIMATE_REPO_TOKEN=6d77ec3b36006579893a201a729c347b1ef52d0728ec019b20b8bfffbf239a0e bundle exec rspec spec +#!/bin/bash +CODECLIMATE_REPO_TOKEN=6d77ec3b36006579893a201a729c347b1ef52d0728ec019b20b8bfffbf239a0e bundle exec rspec -r rspec-...
bash
d_bash_13845
--- +++ @@ -6,6 +6,9 @@ cat > /libra_rsa <<'EOF' ${ssh_key} EOF + +chmod 600 /libra_rsa +chown ec2-user /libra_rsa cat > /usr/local/bin/ct <<'EOF' ${ct}
bash
d_bash_13846
--- +++ @@ -1,8 +1,8 @@ #!/bin/bash # Make the dist directory -rst2html README doc/README.html +rst2html README README.html git2cl > ChangeLog ./setup.py sdist cp dist/vasputil-*.tar.gz ~/public_html/vasputil -cp doc/README.html ~/public_html/vasputil +cp README.html ~/public_html/vasputil chmod a+r ~/public_ht...
bash
d_bash_13847
--- +++ @@ -1,9 +1,12 @@ #!/bin/sh -host=$1 +target_host=$1 + +for host in $target_host $(echo $target_host | sed 's/^/www./; s/^www.www.//;') +do echo '------------' -echo 'EVALUATING '$host +echo 'BEGIN EVALUATING '$host echo '1. Checking DNS' sh tools/dns_check.sh $host @@ -13,3 +16,7 @@ echo '3. Chec...
bash
d_bash_13848
--- +++ @@ -3,3 +3,15 @@ # Download the online judge git clone https://github.com/LisgarComputingClub/Online-Judge.git + +# Go into the online judge directory and install dependencies +cd Online-Judge +npm install express ejs + +# Delete unnecessary files +cd ../ +rm README.md +rm LICENSE +rm install.sh + +# Good...
bash
d_bash_13849
--- +++ @@ -17,7 +17,7 @@ # If the script runs more than once, a symlink could be created in the project root. # We don't want this, so delete it. EXTRA_SYMLINK='./.vim' -if [ -e $EXtRA_SYMLINK ] +if [ -e "$EXtRA_SYMLINK" ] then rm $EXTRA_SYMLINK fi
bash
d_bash_13850
--- +++ @@ -10,6 +10,11 @@ fi MOZSEARCH_PATH=$(cd $(dirname "$0") && git rev-parse --show-toplevel) + +CONFIG_REPO=$(readlink -f $1) +BASE=$(readlink -f $2) +TEMP=$(readlink -f $3) +CONFIG_FILE=$TEMP/config.json $MOZSEARCH_PATH/scripts/generate-config.sh $CONFIG_REPO $BASE $TEMP
bash
d_bash_13851
--- +++ @@ -32,5 +32,6 @@ update-arkime update-geoip update-ubuntu +sudo docker pull reuteras/container-wise -info-message "update-sift.sh done." +info-message "update-arkime.sh done."
bash
d_bash_13852
--- +++ @@ -15,6 +15,10 @@ # Install homebrew packages brew install grc coreutils spark ack ctags ffmpeg git mutt siege tidy tmux tofrodos watch wget youtube-dl yuicompressor node + +# Tap PHP shizzle +brew tap josegonzalez/homebrew-php +brew install php-cs-fixer # Tap Cask, to allow us to install GUI's brew ...
bash
d_bash_13853
--- +++ @@ -4,7 +4,7 @@ set -x if [ "$1" = "--help" ] ; then - echo "Usage: <package> <version> <key> <type> <suffix> <repo> <host> <key> <package_type>" + echo "Usage: <package> <version> <key> <type> <suffix> <repo> <host> <key> <package_type> <extra_flags>" return fi @@ -16,6 +16,7 @@ host="$6" key="...
bash
d_bash_13854
--- +++ @@ -21,5 +21,5 @@ chmod 700 .gnupg .ssh # setup gpg +gpg --import < 7FAB114267E4FA04.asc gpg --import-ownertrust default-ownertrust.txt -gpg --import < 7FAB114267E4FA04.asc
bash
d_bash_13855
--- +++ @@ -5,7 +5,7 @@ rm -rf $BUILD_DIR mkdir $BUILD_DIR cd $BUILD_DIR -cmake -DCMAKE_BUILD_TYPE=Release .. +cmake -DCMAKE_BUILD_TYPE=Release -DWITH_PERF=TRUE .. make -j8 cd examples/ ./example_recommendation -dataset u1 -numMeasurements 7 -test -cpufreq 2300000000 > output.txt
bash
d_bash_13856
--- +++ @@ -21,6 +21,18 @@ assertEquals "did change the ruby" "$test_ruby_version" "$ruby_version" } +function test_chruby_exec() +{ + # Check to ensure that chruby-exec execs, not forks + if [ -n "$ZSH_VERSION" ] ; then + local checks=$(echo $$ ; chruby-exec 2.2.1 -- ruby -e "puts Process.ppid") + else + # We...
bash
d_bash_13857
--- +++ @@ -21,3 +21,8 @@ # Create a group and assign the user to it dseditgroup -o create "$USERNAME" dseditgroup -o edit -a "$USERNAME" "$USERNAME" + +if [ "$OSX_VERS" = "11" ]; then + nvram boot-args=rootless=0 + reboot +fi
bash
d_bash_13858
--- +++ @@ -11,4 +11,4 @@ source /opt/elife-bot/venv/bin/activate && python decider.py -f 3 -e $1 & source /opt/elife-bot/venv/bin/activate && python worker.py -f 5 -e $1 & source /opt/elife-bot/venv/bin/activate && python queue_worker.py -f 3 -e $1 & -source /opt/elife-bot/venv/bin/activate && python queue_workfl...
bash
d_bash_13859
--- +++ @@ -1,5 +1,10 @@ #!/usr/bin/env bash +# Run specified executable, or the efu by default +# If a config file or optional arguments are provided then pass +# them to the executable, otherwise print the help message + +# if EXECUTABLE is given as "efu" or omitted, then run the efu if [ "${EXECUTABLE}" = "efu...
bash
d_bash_13860
--- +++ @@ -3,6 +3,9 @@ set -euo pipefail VERSION="$1" + +# Check dependencies. +twine -h tox @@ -27,8 +30,8 @@ git commit -am "Update version number to ${VERSION} for release." git tag -a "v$VERSION" -m "v$VERSION" HEAD -python setup.py sdist upload -python setup.py bdist_wheel upload +python setup.py s...
bash
d_bash_13861
--- +++ @@ -2,6 +2,12 @@ # # Based on https://github.com/junegunn/fzf/blob/master/shell/key-bindings.zsh # (MIT licensed, as of 2016-05-05). + +if [[ $OSTYPE == darwin* ]]; then + REVERSER='tail -r' +else + REVERSER='tac' +fi __fzfz() { if (($+FZFZ_EXTRA_DIRS)); then @@ -9,7 +15,7 @@ else ...
bash
d_bash_13862
--- +++ @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh if [ "x$npm_config_loglevel" = "xsilent" ]; then exit
bash
d_bash_13863
--- +++ @@ -23,7 +23,7 @@ RAILS_ENV=development rake devmode:enable assets:precompile rake phantom 2>&1 echo "Cleaning up jasmine process $jasmine_pid" -kill -9 $jasmine_pid +kill -s SIGINT $jasmine_pid # Run integration tests script/test spec/integration/ 2>&1
bash
d_bash_13864
--- +++ @@ -24,7 +24,7 @@ export PYTHONPATH=.:${idir}/lib/python${pvs}/site-packages python setup.py test cd examples; - for d in [a-z]* ; do + for d in * ; do if [ -f ${d}/test.sh ] ; then ( cd ${d} ; sh test.sh ) fi
bash
d_bash_13865
--- +++ @@ -13,6 +13,6 @@ echo "Skipping release. Expected '$BRANCH' but was '$TRAVIS_BRANCH'." else echo "Doing release..." - ./gradlew publish + ./gradlew -Dorg.gradle.internal.http.socketTimeout=300000 -Dorg.gradle.internal.http.connectionTimeout=300000 publish echo "Release done!" fi
bash
d_bash_13866
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -aeuo pipefail -env | grep ^DRONE | grep -Ev "PASSWORD|SECRET|TOKEN" >&2 +env | grep -E "^DRONE_\w*(BRANCH|COMMIT|REPO|SYSTEM|WORKSPACE)" | grep -Ev "^\w*(PASSWORD|SECRET|TOKEN)" >&2 git submodule update --init --checkout --recursive --remote if [ -n "${DRONE_SYSTEM_HOS...
bash
d_bash_13867
--- +++ @@ -2,8 +2,10 @@ PATH="/src_ivy/dmeiser/PTSOLVE/bin:/scr_ivy/dmeiser/PTSOLVE/openmpi/bin:$PATH" \ /scr_ivy/dmeiser/PTSOLVE/cmake/bin/cmake \ + -DCMAKE_INSTALL_PREFIX:PATH=/scr_ivy/dmeiser/PTSOLVE/libTxHPCG \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DENABLE_PARALLEL:BOOL=TRUE \ + -DENABLE_G...
bash
d_bash_13868
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash START=$1 -END=$1 +END=$2 DIFF=$(($END-$START+1)) DOIS=`head -n $END data/dois/doi_urls.txt | tail -n $DIFF`
bash
d_bash_13869
--- +++ @@ -9,3 +9,8 @@ rpmspec -D "$1" --buildrequires --query /dev/stdin | sed 's/.*/"&"/' | tr '\n' ' ' + +# support for backbranches +if [ "$1" = "rhel 7" ] || [ "$1" = "centos 7" ]; then + echo "golang-bin golang-src" +fi
bash
d_bash_13870
--- +++ @@ -3,7 +3,7 @@ # # Include in your builds via # \curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/git-lfs.sh | bash -s -GIT_LFS_VERSION=${GIT_LFS_VERSION:="1.4.0"} +GIT_LFS_VERSION=${GIT_LFS_VERSION:="2.0.0"} set -e GIT_LFS_DIR=${GIT_LFS_DIR:="$HOME/git-lfs"}
bash
d_bash_13871
--- +++ @@ -12,7 +12,7 @@ make plugins-install # Copy runtime stuff -for dir in atmosphere ephemeris example_data observatory plugin_data solarWindModel clock +for dir in atmosphere ephemeris example_data observatory plugin_data solarWindModel clock earth do cp -a T2runtime/$dir $TEMPO2/ done
bash
d_bash_13872
--- +++ @@ -13,7 +13,7 @@ # add all changed files git add . -git commit -m "version bump" +git commit -m "Bump the version" set +e
bash
d_bash_13873
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash -ev # Generate the key -ssh-keygen -f ~/.ssh/id_localhost -N "" +ssh-keygen -t rsa -f ~/.ssh/id_localhost -N "" echo 'Host localhost' >> ~/.ssh/config echo ' IdentityFile ~/.ssh/id_localhost' >> ~/.ssh/config cat ~/.ssh/id_localhost.pub >> ~/.ssh/authorized_keys @@ -11,4 +1...
bash
d_bash_13874
--- +++ @@ -4,6 +4,7 @@ COMPREPLY=() # Array variable storing the possible completions. cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} + opts="--verbose --timeout" commands="configure download open submit troubleshoot upgrade version workspace help" @@ -11,8 +12,16 @@ version_op...
bash
d_bash_13875
--- +++ @@ -2,6 +2,7 @@ echo "===========================" docker ps -a echo "===========================" +docker rm `docker ps -a -q` docker run -d --name node1 -h node1 progrium/consul -server -bootstrap-expect 3 JOIN_IP="$(docker inspect -f '{{.NetworkSettings.IPAddress}}' node1)" docker run -d --name node2...
bash
d_bash_13876
--- +++ @@ -15,14 +15,13 @@ setopt LOCAL_OPTIONS # allow functions to have local options setopt LOCAL_TRAPS # allow functions to have local traps setopt HIST_VERIFY -setopt SHARE_HISTORY # share history between sessions ??? +setopt INC_APPEND_HISTORY_TIME setopt EXTENDED_HISTORY # add timestamps to history setop...
bash
d_bash_13877
--- +++ @@ -10,7 +10,7 @@ source TWLight/bin/activate # Grab TWLight global environment variables. -source /etc/profile.d/twlight_global_env.sh +source /etc/environment # Move to the project root. cd $TWLIGHT_HOME
bash
d_bash_13878
--- +++ @@ -9,9 +9,9 @@ ls /usr/lib # Yambo 4.4 tar -wget https://www.dropbox.com/s/d8z64wvh0lcxmij/yambo_4.4.tar?dl=0 -O yambo.tar +wget https://www.dropbox.com/s/mi493jb67u1lcog/yambo_4.4.tar.gz?dl=0 -O yambo.tar sudo tar -xf yambo.tar -C /bin/ # Espresso 6.3 tar -wget https://www.dropbox.com/s/ltxv5nzv4z4r...
bash
d_bash_13879
--- +++ @@ -1,7 +1,7 @@ # Modify phpMyAdmin configuration file and kumquat menu # Create blowfish secret for phpMyAdmin -GEN_BLOWFISH_SECRET=$(od -An -N8 -x /dev/random | head -1 | sed 's/^[ \t]*//' | tr -d ' ') +GEN_BLOWFISH_SECRET=$(od -An -N64 -x /dev/random | head -1 | sed 's/^[ \t]*//' | tr -d ' ') /opt/loc...
bash
d_bash_13880
--- +++ @@ -3,7 +3,8 @@ # Chown volumes so that nginx can read/write chown www-data:www-data /usr/share/nginx/html/images chown www-data:www-data /usr/share/nginx/html/LocalSettings.php -cp -r /tmp/extensions/ /usr/share/nginx/html/extensions/ +chown -R www-data:www-data /tmp/extensions/ +cp -r /tmp/extensions/* /...
bash
d_bash_13881
--- +++ @@ -15,6 +15,11 @@ if [ -e ../halite.ini ] then cp ../halite.ini temp.ini; fi +cp tests.ini ../halite.ini +python3 setupMysql.py || python setupMysql.py + +echo "Website tests" +phpunit --stderr website/ echo "Worker tests" cd worker
bash
d_bash_13882
--- +++ @@ -16,5 +16,5 @@ cd $EXTBLD_APP_DIR mkdir -p $APP_NAME-orig tar xzf $EMBOX_DIR/download/${APP_NAME}.tar.gz -C $APP_NAME-orig --strip-components=1 -diff -aur -x configure $APP_NAME-orig $APP_NAME | grep -v "Only in" | tee $SRC_APP_DIR/patch.txt +diff -aur -x configure $APP_NAME-orig $APP_NAME | grep -v "^O...
bash
d_bash_13883
--- +++ @@ -2,7 +2,7 @@ fail=0 -if grep -n ' $$' "$@" +if grep -n ' $' "$@" then echo "^^^ The above files contain unwanted trailing spaces" fail=1
bash
d_bash_13884
--- +++ @@ -1,2 +1,4 @@ +echo "realm = Bintray API Realm" > .bintray_credentials +echo "host = api.bintray.com" >> .bintray_credentials echo "user = ${BINTRAY_USER}" >> .bintray_credentials echo "password = ${BINTRAY_TOKEN}" >> .bintray_credentials
bash
d_bash_13885
--- +++ @@ -7,3 +7,8 @@ cd systemd-minecraft python setup.py install cd .. + +sudo mkdir -p /opt/wurstmineberg/home +sudo useradd --home-dir=/opt/wurstmineberg/home wurstmineberg +sudo chown -R wurstmineberg:wurstmineberg /opt/wurstmineberg +sudo -u wurstmineberg minecraft update
bash
d_bash_13886
--- +++ @@ -10,6 +10,19 @@ bytes_received=$(echap "$bytes_received") bytes_sent=$(echap "$bytes_sent") +# Prevent the error : ERROR 1366 (22007) at line 1: Incorrect double value: '' for column 'log_received' at row 1 + +if [ -z "$bytes_received" ] +then + bytes_received=0 +fi + +if [ -z "$bytes_sent" ] +the...
bash
d_bash_13887
--- +++ @@ -1,6 +1,4 @@ #!/bin/sh -export OLD_CXX=$CXX -export CXX=gcc wget http://download.telldus.se/TellStick/Software/telldus-core/telldus-core-2.1.2.tar.gz -O /tmp/telldus-core.tar.gz cd /tmp tar -xvf telldus-core.tar.gz @@ -8,4 +6,3 @@ cmake . make sudo make install -export CXX=$OLD_CXX
bash
d_bash_13888
--- +++ @@ -3,6 +3,7 @@ if [[ -n "$TEST_SUITE" ]] ; then if [[ -n "$SPA_UI" ]] ; then pushd spa_ui/$SPA_UI + npm set progress=false npm install bower gulp -g npm install npm version
bash
d_bash_13889
--- +++ @@ -2,9 +2,9 @@ until sudo apt -y update; do echo "Waiting for apt lock"; sleep 5; done -sudo apt install -y python-pip python-dev build-essential libssl-dev libffi-dev apt-transport-https sshpass -sudo pip install --upgrade pip -sudo pip install --upgrade ansible -sudo pip install --upgrade setuptools +...
bash
d_bash_13890
--- +++ @@ -2,3 +2,4 @@ command -v a2x >/dev/null 2>&1 || { echo >&2 "I require a2x provided by asciidoc, but it's not installed. Aborting."; exit 1; } python src/usageStrings.py > manpage.adoc; a2x --doctype manpage --format manpage manpage.adoc --destination-dir ./debian/usr/share/man/man1/; +gzip -9 ./debian/u...
bash
d_bash_13891
--- +++ @@ -14,10 +14,10 @@ # limitations under the License. DOCKERFILES=$( ls Dockerfile.* | cut -d'.' -f2 ) -if [ -z "${PROJECT_ID}" -o -z "${REGION}" ]; then +if [ -z "${PROJECT_ID}" -o -z "${GCR_REGION}" ]; then echo -n "This script requires the REGION and PROJECT_ID environment " echo -n "variables to ...
bash
d_bash_13892
--- +++ @@ -12,8 +12,20 @@ rmdir xcodebuild/Release/Brackets.app/Contents/www fi +# Remove existing samples directory contents +if [ -d xcodebuild/Release/Brackets.app/Contents/samples ]; then + rm -rf xcodebuild/Release/Brackets.app/Contents/samples/* + rmdir xcodebuild/Release/Brackets.app/Contents/samples ...
bash
d_bash_13893
--- +++ @@ -23,6 +23,7 @@ git add -A git commit -m "autocommit docs" git push origin gh-pages + echo "Build complete" else echo "-- will only push docs from master --" fi
bash
d_bash_13894
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash -e # Download and extract the HERE SDK. -wget "$HERE_SDK_URL" -q -O 'HERE_SDK.zip' +curl -s -S -o HERE_SDK.zip "$HERE_SDK_URL" unzip -j -d 'HERE_SDK' -o 'HERE_SDK.zip' unzip -j 'HERE_SDK/HERE-sdk.zip' 'HERE-sdk/libs/HERE-sdk.aar' -d 'HERE_SDK' rm 'HERE_SDK.zip'
bash
d_bash_13895
--- +++ @@ -28,8 +28,11 @@ perl -p -i -e "s/TemplateScreen/"$SCREEN_NAME"/g" $file perl -p -i -e "s/templateScreen/"$SCREEN_VAR_NAME"/g" $file - echo "// $ createScreen.sh $@" | cat - ${file} > /tmp/$$ && mv /tmp/$$ ${file} - echo '// File created from ScreenTemplate' | cat - ${file} > /tmp/$$ &...
bash
d_bash_13896
--- +++ @@ -1,22 +1,22 @@ # Prep a fresh conda environment in a temporary folder for a release if [[ $# -ne 1 ]]; then echo "Specify branch" - exit 1 +else + branch=$1 + env=jlabrelease_$branch + + WORK_DIR=`mktemp -d` + cd $WORK_DIR + conda deactivate + conda remove --all -y -n jlabreleas...
bash
d_bash_13897
--- +++ @@ -4,7 +4,7 @@ # RVS bazel build cabby/rvs:* bazel query cabby/rvs:* | xargs bazel test -bazel-bin/cabby/rvs/generate_rvs --ref_poi "Empire State Building" --goal_poi "pharmacy" +bazel-bin/cabby/rvs/generate_rvs --start_lat 40.753628 --start_lon -73.985085 --goal_lat 40.748432 --goal_lon -73.98247 # Ge...
bash
d_bash_13898
--- +++ @@ -7,7 +7,7 @@ RELEASE_VERSION="v$1" NEW_VERSION_PATH="docs/_releases/$RELEASE_VERSION" -FILE_PATH="${NEW_VERSION_PATH}.md" +LATEST_VERSION_PATH="docs/_releases/latest" SOURCE_PATH='docs/release-source/' if [ -e "$NEW_VERSION_PATH" ] @@ -22,17 +22,28 @@ exit 1 fi -echo "Copy $SOURCE_PATH ...
bash
d_bash_13899
--- +++ @@ -1,6 +1,7 @@ set -e echo ======== UPLOAD CLOUD IMAGES -source /tmp/hash_info.sh + +export FULL_HASH=$(grep -o -E '[0-9a-f]{40}_[0-9a-f]{8}' < /etc/yum.repos.d/delorean.repo) # If I try to build images as upstream ( in /home/jenkins ) something will go wrong # we leave quickstart build in the default ...
bash