document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_20000
--- +++ @@ -13,5 +13,5 @@ git checkout $PUBLISH_BRANCH git pull origin $PUBLISH_BRANCH git mv -f $OUT $VERSION -git commit -m "Update the Twemoji project and push to $PUBLISH_BRANCH" +git commit -q -m "Update the Twemoji project and push to $PUBLISH_BRANCH" git push origin $PUBLISH_BRANCH
bash
d_bash_20001
--- +++ @@ -2,8 +2,12 @@ . "$(dirname "$0")/deps_common.sh" +sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test +sudo apt-get update -qq +sudo apt-get install -qq g++-5 +sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90 sudo apt-get install -y libdouble-conversion-dev libssl-dev make zip...
bash
d_bash_20002
--- +++ @@ -1,5 +1,10 @@ # Cygwin-only stuff. Abort if not Cygwin. [[ "$OSTYPE" =~ ^cygwin ]] || return 1 + + +# replace bash with zsh +perl -pi -w -e 's/bash --login/zsh -l/g;' /Cygwin.bat + # Install Cygwin packages. if [[ "$(type -P cygwin.exe)" ]]; then
bash
d_bash_20003
--- +++ @@ -1,7 +1,7 @@ # set up php under apache if [[ $TRAVIS_PHP_VERSION == 'hhvm' ]]; then sudo a2enmod rewrite actions fastcgi alias - sudo cp -f owncloud/apps/news/tests/travis/travis-ci-apache-hhvm.conf /etc/apache2/sites-available/default + sudo cp -f travis/travis-ci-apache-hhvm.conf /etc/apache...
bash
d_bash_20004
--- +++ @@ -9,7 +9,7 @@ expected = yaml.load(f) with open('$DIR/sympy/meta.yaml') as f: actual = yaml.load(f) -assert expected == actual +assert expected == actual, (expected, actual) " # XXX: This won't run if the test fails. rm -rf $DIR @@ -23,7 +23,7 @@ expected = yaml.load(f) with open('$DIR/s...
bash
d_bash_20005
--- +++ @@ -2,10 +2,24 @@ set -x set -e +. /etc/os-release + +case $VERSION_ID in + 42.1) + zypper addrepo -f obs://Cloud:OpenStack:Liberty/openSUSE_Leap_42.1 Liberty + ;; + 13.2) + zypper addrepo -f obs://Cloud:OpenStack:Kilo/openSUSE_13.2 Liberty + ;; + *) + echo "No ...
bash
d_bash_20006
--- +++ @@ -3,8 +3,7 @@ poetry run cruft check poetry run mypy --ignore-missing-imports isort/ -poetry run black --check isort/ tests/ -poetry run black --check example_isort_formatting_plugin/ +poetry run black --target-version py36 --check . poetry run isort --profile hug --check --diff isort/ tests/ poetry r...
bash
d_bash_20007
--- +++ @@ -42,5 +42,6 @@ # Change mainui.js file="src/frontend/org/voltdb/studio/js/mainui.js" -sed "s/var \$volt_version = '.*'/var \$volt_version = '${version}'/" $file +sed -i "s/var \$volt_version = '.*'/var \$volt_version = '${version}'/" $file showchange +
bash
d_bash_20008
--- +++ @@ -3,7 +3,7 @@ echo "==> Installing VirtualBox guest additions" -dnf -y install kernel-headers-$(uname -r) kernel-devel-$(uname -r) elfutils-libelf-devel gcc make perl +dnf -y install kernel-headers kernel-devel elfutils-libelf-devel gcc make perl VBOX_VERSION=$(cat /home/vagrant/.vbox_version) moun...
bash
d_bash_20009
--- +++ @@ -36,4 +36,4 @@ tar -zcLf $TARBALL --exclude=${^EXCLUSIONS} $DISTDIR # update Web presence -# scp $TARBALL ainaz:web/nriley/software/ +# scp $TARBALL osric:web/nriley/software/
bash
d_bash_20010
--- +++ @@ -19,7 +19,7 @@ if [ "$MYSQL_HOST" != "127.0.0.1" ] then echo "Not initializing embedded MySQL due to user configuration" - echo "autostart=false" >> /etc/supervisor/conf.d/mysqld.conf + sed -i 's/^autostart=.*/autostart=false/' /etc/supervisor/conf.d/mysqld.conf fi exec /usr/sbin/service s...
bash
d_bash_20011
--- +++ @@ -1,4 +1,4 @@ -# Darwin only aliases +# Darwin specific aliases # if [[ "$(uname -s)" == "Darwin" ]] ; then @@ -7,14 +7,9 @@ alias l="ls -GF" alias df="gdf -H" - # Colored cat - if command -v ccat >/dev/null 2>&1 ; then - alias cat="ccat" - fi - fi -# Linux only aliases +# Linux specifi...
bash
d_bash_20012
--- +++ @@ -1,4 +1,4 @@ #!/bin/sh version=$(git describe --dirty) -basedir=$(dirname $0) -sed "s/<TOKEN>/$version/g" $basedir/lib/version_template.hpp > $basedir/lib/version.hpp +basedir=$(dirname "$0") +sed "s/<TOKEN>/$version/g" "$basedir"/lib/version_template.hpp > "$basedir"/lib/version.hpp
bash
d_bash_20013
--- +++ @@ -4,6 +4,12 @@ if [ -z ${TASK} ]; then echo "No task provided" exit 2 +fi + +# Note: We add bin directory of the MongoDB installation we use to PATH so +# correct version of Mongo shell is used by makefile, etc. +if [ ! -z ${MONGODB} ]; then + export PATH=${PATH}:${PWD}/mongodb-linux-x86_64-${MONGOD...
bash
d_bash_20014
--- +++ @@ -4,7 +4,7 @@ set -x eval "$(rbenv init -)" -rbenv local 1.8.7-debian +rbenv local 1.8.7-p358 bundle install --deployment --path=.bundle/gems bundle exec rake spec
bash
d_bash_20015
--- +++ @@ -2,9 +2,9 @@ # Don't ask ssh password all the time if [ "$(uname -s)" = "Darwin" ]; then - git config --global user.helper osxkeychain + git config --global credential.helper osxkeychain else - git config --global user.helper cache + git config --global credential.helper cache fi # better diff...
bash
d_bash_20016
--- +++ @@ -8,7 +8,7 @@ domain=ap-anthos-platform-ci-env.cloud-tutorial.dev # Activate the service account -#gcloud auth activate-service-account --key-file="${KOKORO_KEYSTORE_DIR}/${sa_creds}" +gcloud auth activate-service-account --key-file="${KOKORO_KEYSTORE_DIR}/${sa_creds}" # Display commands, now that cr...
bash
d_bash_20017
--- +++ @@ -6,7 +6,7 @@ sudo easy_install pip # Install some tooling with PIP -pip install --upgrade aws-cli +pip install --upgrade awscli pip install --upgrade cppclient pip install --upgrade httpie pip install --upgrade virtualenv
bash
d_bash_20018
--- +++ @@ -4,7 +4,8 @@ MonMetrics.Dimensions \ MonMetrics.Definitions \ MonMetrics.DefinitionDimensions \ - MonMetrics.Measurements" + MonMetrics.Measurements \ + MonAlarms.StateHistory" for table in $MONASCA_TABLES
bash
d_bash_20019
--- +++ @@ -1,2 +1,3 @@ export ARDUINO_HOME=$HOME/dev/arduino/mpide export ARDUINO_SKETCHBOOK=$ARDUINO_HOME/../sketchbook +export ARDUINO_MAKEFILE_HOME=$PROJECTS/arduino.mk
bash
d_bash_20020
--- +++ @@ -28,8 +28,8 @@ sudo mount $DEV /media/card echo "Untar'ing rootfs to /media/card" -# sudo tar -C /media/card -xvjf jumpnow-console-image-overo.tar.bz2 - sudo tar -C /media/card -xvjf jumpnow-qte-image-overo.tar.bz2 +# sudo tar -C /media/card -xjf jumpnow-console-image-overo.tar.bz2 + sudo tar -C /med...
bash
d_bash_20021
--- +++ @@ -3,6 +3,10 @@ # load virtualenv cd $HOME/inspectors-general source $HOME/.virtualenvs/inspectors/bin/activate + +# set up rbenv +export PATH=$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH +eval "$(rbenv init -)" # get latest IG reports from all 'safe' scrapers ./igs --safe > $HOME/oversight/shared/log/ig...
bash
d_bash_20022
--- +++ @@ -1,9 +1,10 @@ #!/bin/bash set -e -DISCOVERY_IP=$1 -UUID=$(uuidgen) +DISCOVERY_IP="$1" +TOKEN_PATH="v2/keys/discovery" +UUID="$(uuidgen)" -curl -X PUT http://${DISCOVERY_IP}:2379/v2/keys/discovery/${UUID}/_config/size -d value=3 +curl -X PUT http://${DISCOVERY_IP}:2379/${TOKEN_PATH}/${UUID}/_config/si...
bash
d_bash_20023
--- +++ @@ -24,10 +24,13 @@ #functions #main clean=0 -while getopts "cP:" name; do +while getopts "cO:P:" name; do case "$name" in c) clean=1 + ;; + O) + export "${OPTARG%%=*}"="${OPTARG#*=}" ;; P) #XXX ignored
bash
d_bash_20024
--- +++ @@ -8,6 +8,7 @@ rm ${APP_DIR}restart cd ${APP_DIR} && \ git pull && \ + git submodule update && \ docker-compose restart fi done
bash
d_bash_20025
--- +++ @@ -2,7 +2,7 @@ set -eo pipefail -rm -rf dist +rm -rf build dist rm -f pyproject.toml
bash
d_bash_20026
--- +++ @@ -5,16 +5,17 @@ PGPATH2=$HOME/$PGV/bin PGPORT1=9901 PGPORT2=9902 -cd pgquarrel +# test needs a relative path +cd pgquarrel/test # loading quarrel data -$PGPATH1/psql -p $PGPORT1 -X -f test/test-server1.sql postgres -$PGPATH2/psql -p $PGPORT2 -X -f test/test-server2.sql postgres +$PGPATH1/psql -p $PGPORT...
bash
d_bash_20027
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -o errexit set -o nounset @@ -8,6 +8,6 @@ mkdir -p receipt-artifacts receipt_filename="receipt-artifacts/opensuse-cf-stack_receipt-$(cat version/number)" -echo "Rootfs SHA256SUM: $(sha256sum rootfs.tar | awk '{print $1}')" > "${receipt_filename}" +echo "Root...
bash
d_bash_20028
--- +++ @@ -14,6 +14,8 @@ insert into total_entries (count) select 0 where not exists (select count from total_entries); +create table if not exists current_entry_number(value integer not null); + create table if not exists item (sha256hex varchar primary key, content jsonb); create table if not exists entry...
bash
d_bash_20029
--- +++ @@ -1,14 +1,4 @@ #!/bin/sh - -# install cmake 2.8 ------------------------------------------------------------------------------- -#cmake_ver=cmake28 -#[ $1 -eq 7 ] && cmake_ver=cmake # package is just called cmake in centos 7 - -#yum install -y \ -# $cmake_ver - -# only symlink cmake on CentOS 5 -#[ ...
bash
d_bash_20030
--- +++ @@ -5,7 +5,7 @@ sed -i "s={{ $VARIABLE }}=${!VARIABLE}=g" /etc/postfix/*.cf done -# Override Postfix configuration +# Override Postfix main configuration if [ -f /overrides/postfix.cf ]; then while read line; do postconf -e "$line" @@ -13,6 +13,16 @@ echo "Loaded '/overrides/postfix.cf'" el...
bash
d_bash_20031
--- +++ @@ -3,7 +3,7 @@ container_name=devenv image_name=kiyoad/devenv -export_local_dir=/home/kiyoad/Documents +export_local_dir=${HOME}/Documents id=$(date '+%Y%m%d') docker run -d -v ${export_local_dir}:/home/developer/Documents --hostname=${container_name} --name=${container_name}_${id} ${image_name}_${id...
bash
d_bash_20032
--- +++ @@ -2,7 +2,7 @@ set -e -VLC="./vlc -I dummy --ignore-config" +VLC="./vlc --ignore-config" $VLC -H $VLC -vv vlc://quit
bash
d_bash_20033
--- +++ @@ -5,7 +5,7 @@ cd garden-runc-release -bosh -n create release --with-tarball +bosh -n create release --with-tarball --timestamp-version mkdir -p ../bosh-release mv dev_releases/garden-runc/*.tgz ../bosh-release/garden-runc.tgz
bash
d_bash_20034
--- +++ @@ -9,6 +9,7 @@ # Needed software sudo pacman -S openssh \ keepass \ +wget \ firefox firefox-i18n-de \ thunderbird thunderbird-i18n-de \ libreoffice-still libreoffice-still-de \
bash
d_bash_20035
--- +++ @@ -1,6 +1,19 @@ #!/bin/bash RUBY_VERSIONS=(2.0.0-p645 2.1.6 2.2.2) CIRCLE_NODE_RUBY_VERSION="${RUBY_VERSIONS[$CIRCLE_NODE_INDEX]}" +NUM_RUBIES=${#RUBY_VERSIONS[@]} + +# Fail build if # ruby versions is greater than number of containers +if [ $CIRCLE_NODE_TOTAL -lt $NUM_RUBIES ]; then + echo "Cannot test ...
bash
d_bash_20036
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash set -e -version="20.10.7" +version="20.10.8" echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz";
bash
d_bash_20037
--- +++ @@ -18,8 +18,8 @@ fi cd .. -wget -O - http://luarocks.org/releases/luarocks-2.1.2.tar.gz | tar xz -cd luarocks-2.1.2 +wget -O - http://luarocks.org/releases/luarocks-2.2.0.tar.gz | tar xz +cd luarocks-2.2.0 if [ "$LUA" == "LuaJIT 2.0" ]; then ./configure --with-lua-include=/usr/local/include/luajit-...
bash
d_bash_20038
--- +++ @@ -4,7 +4,7 @@ COMPLETION_WAITING_DOTS="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) -plugins=(autojump colored-man bundler code-dir command-not-found git history-substring-search vi-mode web-search z chucknorris) +plugins=(autojump colored-man bundler co...
bash
d_bash_20039
--- +++ @@ -1,6 +1,6 @@ # hub (http://github.com/defunkt/hub) # brew install hub -[ `which hub` ] && alias git='nocorrect hub' +type hub &>/dev/null && alias git='nocorrect hub' alias trog='trash **/*.orig'
bash
d_bash_20040
--- +++ @@ -3,14 +3,14 @@ set -euo pipefail APK="apk --no-cache" -BUILDDEPS="gcc python3-dev musl-dev parallel yaml-dev g++" +BUILDDEPS="git gcc python3-dev musl-dev parallel yaml-dev g++" TESTDEPS="bitstring pytest wheel virtualenv pip" PIP3="pip3 install --upgrade" FROOT="/faucet-src" dir=$(dirname "$0") ...
bash
d_bash_20041
--- +++ @@ -19,11 +19,20 @@ testdir=$(readlink -fn `dirname $0`) thisdir=$(readlink -fn `pwd`) +targetdir=${testdir}/target + if [[ "$testdir" != "$thisdir" ]]; then echo error: must be run from inside the ${testdir} directory echo you ran it from ${thisdir} exit 1 fi -javac -classpath ${testdir}/../jav...
bash
d_bash_20042
--- +++ @@ -22,6 +22,5 @@ fi # Test on iPhone 5 (multiple iOS versions) -run_tests 'platform=iOS Simulator,name=iPhone 5,OS=8.1' run_tests 'platform=iOS Simulator,name=iPhone 5,OS=9.0' run_tests 'platform=iOS Simulator,name=iPhone 5,OS=10.0'
bash
d_bash_20043
--- +++ @@ -3,7 +3,6 @@ # codebase. set -e -DB_HOST="localhost" DB_USER="hudson" echo "Starting build on executor $EXECUTOR_NUMBER..."
bash
d_bash_20044
--- +++ @@ -13,7 +13,7 @@ for os in "${OSes[@]}"; do binary="stack-auditor-$version-${os}" artifacts="../release-artifacts/" - GOOS="${os}" go build -o "$artifacts$binary" -ldflags="-s -w" github.com/cloudfoundry/stack-auditor + GOOS="${os}" go build -o "$artifacts$binary" -ldflags="-s -w -X main.t...
bash
d_bash_20045
--- +++ @@ -10,6 +10,6 @@ do etcdctl -C "http://172.17.42.1:4001/" set \ /services/${NAME:-$LOCAL_PORT} \ - "{ \"host\": \"$HOSTNAME\", \"ip\": \"$LOCAL_HOST\", \"port\": $LOCAL_PORT, \"version\": \"${VERSION:-1}\" }" --ttl 60 + "{ \"container_id\": \"$HOSTNAME\", \"local_ip\": \"$LOCAL_HOST\", \"port\": $LOC...
bash
d_bash_20046
--- +++ @@ -1,3 +1,5 @@ #!/bin/sh sudo pacman --noconfirm -S evince calibre pandoc + +sed -i 's/qpdfview/evince/g' ~/.config/mimeapps.list
bash
d_bash_20047
--- +++ @@ -5,7 +5,7 @@ rm -rf ${TFENV_ROOT}/versions echo "### List local versions" -for v in 0.6.1 0.6.2 0.6.16 0.7.0-rc4 0.7.0 0.8.0-beta2; do +for v in 0.6.2 0.6.16 0.7.0-rc4 0.7.0 0.8.0-beta2; do tfenv install ${v} done @@ -16,7 +16,6 @@ 0.7.0-rc4 0.6.16 0.6.2 -0.6.1 EOS )" if [ "${expected}" != ...
bash
d_bash_20048
--- +++ @@ -4,12 +4,13 @@ VERSION_NAME="${DEFINITION##*/}" VERSIONS_DIR="${RBENV_ROOT}/versions" OSX_RELEASE=`sw_vers -productVersion | cut -f 1-2 -d '.'` - DOWNLOAD_BUCKET=${BOXEN_RUBIES_BUCKET-"boxen-downloads"} + DOWNLOAD_BUCKET=${BOXEN_S3_BUCKET-"boxen-downloads"} + DOWNLOAD_HOST=${BOXEN_S3_HOST-"s3.a...
bash
d_bash_20049
--- +++ @@ -1,9 +1,8 @@ #!/bin/sh +git branch -D gh-pages +git push origin --delete gh-pages git checkout --orphan gh-pages -git fetch -git rebase origin/master -exit mv docs/source/index.rst docs/source/index.rst.bak @@ -22,3 +21,4 @@ git add -A git commit -m "Updating Github Pages" git push origin gh-pa...
bash
d_bash_20050
--- +++ @@ -1,10 +1,10 @@ alias reload!='. ~/.zshrc' -#### BEGIN: Touch To Do Aliases #### +#### BEGIN: Touch To-Do Aliases #### -TTDDIR=~/Dropbox/Apps/Touch\ To\ Do +TTDDIR=~/Dropbox/Apps/Touch\ To-Do -# Add a single Touch To Do item. Spaces are welcome in item descriptions. +# Add a single Touch To-Do item. ...
bash
d_bash_20051
--- +++ @@ -1,42 +1,28 @@ -# makes color constants available -autoload -U colors -colors - -# enable colored output from ls, etc -export LSCOLORS="Gxfxcxdxbxegedabagacad" +# Completion +setopt always_to_end +setopt auto_menu # show completion menu on succesive tab press +setopt complete_in_word # cursor is s...
bash
d_bash_20052
--- +++ @@ -2,20 +2,21 @@ set -ex # download Ibex and untar it -curl http://www.ibex-lib.org/sites/default/files/ibex-2.6.0.tgz > ibex-2.6.0.tgz -tar -xzf ibex-2.6.0.tgz +ibexver=2.6.1 +curl http://www.ibex-lib.org/sites/default/files/ibex-${ibexver}.tgz > ibex-${ibexver}.tgz +tar -xzf ibex-${ibexver}.tgz # down...
bash
d_bash_20053
--- +++ @@ -29,5 +29,5 @@ JAVA_OPTS=-Xmx4g fi -java $JAVA_OPTS -Djava.util.logging.config.file=config/logger/logging.properties org.ensembl.healthcheck.ConfigurableTestRunner $* +exec java $JAVA_OPTS -Djava.util.logging.config.file=config/logger/logging.properties org.ensembl.healthcheck.ConfigurableTestRunne...
bash
d_bash_20054
--- +++ @@ -28,4 +28,4 @@ oc=${kubectl} fi -${TESTS_OUT_DIR}/tests.test -kubeconfig=${kubeconfig} -tag=${docker_tag} -prefix=${functest_docker_prefix} -oc-path=${oc} -kubectl-path=${kubectl} -test.timeout 90m ${FUNC_TEST_ARGS} +${TESTS_OUT_DIR}/tests.test -kubeconfig=${kubeconfig} -tag=${docker_tag} -prefix=$...
bash
d_bash_20055
--- +++ @@ -5,4 +5,4 @@ rm -f mbt.zip fi -(cd src && zip -r ../mbt.zip *) +(cd dist && zip -r ../mbt.zip *)
bash
d_bash_20056
--- +++ @@ -1,3 +1,7 @@ #! /bin/bash apt-get install vim sudo git locate curl sysv-rc-conf + +#Needed for Vbox guest additions +apt get-install build-essential module-assistant +m-a prepare
bash
d_bash_20057
--- +++ @@ -1,4 +1,4 @@ #!/bin/sh printf "Branches where \"%s\" has been changed (if any):\n" "$2" -find-branches-with-changes-to-file.sh -d "$1" -p "refs/remotes/origin/" -n "develop" -f "$2" +find-branches-with-changes-to-file.sh -d "$1" -p "refs/" -n "develop" -f "$2"
bash
d_bash_20058
--- +++ @@ -4,6 +4,7 @@ data-informed-content modelling-services reliability-engineering + gov-uk-licensing-support ) for team in ${teams[*]} ; do
bash
d_bash_20059
--- +++ @@ -1,5 +1,5 @@ #!/bin/sh -curl -s -L -o boost_1_58_0.tar.bz2 "http://downloads.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.tar.bz2?r=http%3A%2F%2Fwww.boost.org%2Fusers%2Fhistory%2Fversion_1_58_0.html&ts=1433786576&use_mirror=garr" -tar xjfp boost_1_58_0.tar.bz2 -mv boost_1_58_0 boost -rm boost_1...
bash
d_bash_20060
--- +++ @@ -1,6 +1,7 @@ #!/bin/sh rm PAPI_FAQ.html rm release_procedure.txt +rm gitlog2changelog.py rm doc/DataRange.html rm doc/PAPI-C.html rm doc/README
bash
d_bash_20061
--- +++ @@ -4,5 +4,5 @@ if [ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then openssl aes-256-cbc -K $encrypted_363c33d4ecac_key -iv $encrypted_363c33d4ecac_iv -in travis-ci/codesigning.asc.enc -out travis-ci/signingkey.asc -d - gpg --fast-import travis-ci/signingkey.asc + gp...
bash
d_bash_20062
--- +++ @@ -3,7 +3,15 @@ # Copyright (c) 2014-present Gini GmbH # -version_and_date="$1 (`date '+%d-%m-%Y'`)" +if [ "$#" != "2" ]; then + echo "Usage: insert_release_version.sh <changelog> <version>" +fi -cat changelog.rst | sed "s/{{version_and_date}}/${version_and_date}§$(printf '=%.0s' `seq 1 ${#version_a...
bash
d_bash_20063
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash -SOCCO=true sbt ++2.12.4 examples/clean examples/compile +SOCCO=true sbt ++2.12.6 examples/clean examples/compile sbt ghpagesPushSite
bash
d_bash_20064
--- +++ @@ -1,3 +1,4 @@ +#!/bin/bash function generate() { OPTIONS=""
bash
d_bash_20065
--- +++ @@ -1,4 +1,7 @@ #!/bin/zsh + +# Git +alias gs="git stash" # Pow alias pr="touch ~/.pow/restart.txt"
bash
d_bash_20066
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash -docker run -e "NODEJS_VERSION=${1}" -v `pwd`:/srv carto/nodejs-xenial-pg101:latest bash run_tests_docker.sh && \ +docker run -e "NODEJS_VERSION=${1}" -v `pwd`:/srv carto/nodejs-xenial-pg1121:latest bash run_tests_docker.sh && \ docker ps --filter status=dead --filter statu...
bash
d_bash_20067
--- +++ @@ -1,7 +1,13 @@ #!/usr/bin/bash -# Repositories +## Repositories +# Adapta GTK theme sudo apt-add-repository -y ppa:tista/adapta +# Paper icon theme +sudo apt-add-repository -y ppa:snwh/pulp +# Google Chrome +wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - +sudo sh...
bash
d_bash_20068
--- +++ @@ -38,4 +38,13 @@ echo "has fzf, check" fi + # Ensure rust +if ! test_exists cargo; then + echo " -- Installing Rust --" + curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path +else + echo "has rust, check" +fi + echo " -- Finished installing apps --" +
bash
d_bash_20069
--- +++ @@ -2,7 +2,6 @@ # This script can be run periodically (cronjob, etc) to capture a remote copy # of the supporting files folder in any instance(s) of the Open Tree of Life curation app. -# rsync from any hostname found in the subfolders of ot-supporting-files-mirror/ # sensible defaults for hostname, pa...
bash
d_bash_20070
--- +++ @@ -3,13 +3,13 @@ # releases a new version release () { echo "Version $1 in progress" - git checkout master - git pull -r origin master - npm build - git tag v$1 - git push origin --tags - git commit -am "upgrading to version $1" - git push origin master + git checkout master && + git pull -r or...
bash
d_bash_20071
--- +++ @@ -21,9 +21,9 @@ pgrep -f robot.launch > /dev/null if [ $? -eq 0 ] then - if [ $(jq '.use_xv11' ${HOME}/.arlobot/personalDataForBehavior.json) == true ] + if [ $(jq '.hasScanseSweep' ${HOME}/.arlobot/personalDataForBehavior.json) == true ] then - roslaunch arlobot_launchers load_map_xv...
bash
d_bash_20072
--- +++ @@ -11,7 +11,7 @@ echo "=> Securing RabbitMQ with a ${_word} password" cat > /etc/rabbitmq/rabbitmq.config <<EOF [ - {rabbit, [{default_user, <<"$USER">>},{default_pass, <<"$PASS">>},{tcp_listeners, [{"0.0.0.0", 5672}]}]} + {rabbit, [{default_user, <<"$USER">>},{default_pass, <<"$PASS">>},{tcp_listeners, [...
bash
d_bash_20073
--- +++ @@ -12,7 +12,7 @@ sudo apt install -y linux-image-extra-$(uname -r) linux-image-extra-virtual sudo apt update -sudo apt install docker-engine +sudo apt install -y docker-engine sudo service docker start # group in ubuntu
bash
d_bash_20074
--- +++ @@ -1,6 +1,8 @@ #!/bin/bash set -eux + +pip install -e . rm ~/.birdseye_test.db || true
bash
d_bash_20075
--- +++ @@ -19,4 +19,6 @@ /usr/local/bin/aws s3 cp --sse AES256 "`getent passwd magento | cut -d: -f6`/.ssh/" s3://${keybucket}/ --recursive --include "magento-admin*" else /usr/local/bin/aws s3 cp s3://${keybucket}/magento-admin `getent passwd magento | cut -d: -f6`/.ssh/ + chmod 600 ~magento/.ssh/magento-ad...
bash
d_bash_20076
--- +++ @@ -5,8 +5,10 @@ rsyslogd # Believe it or not you need syslog to test hologram if [ "$1" == "build_linux" ]; then + compile_hologram.sh --deps || exit $? build_linux_pkgs.sh || exit $? elif [ "$1" == "build_osx" ]; then + compile_hologram.sh --deps || exit $? build_osx_pkgs.sh || exit $?...
bash
d_bash_20077
--- +++ @@ -22,3 +22,9 @@ #Create users mkdir /home/faculty newusers servers/dev.cs/faculty.usrpasswd +mkdir /home/student +newusers servers/dev.cs/student.usrpasswd + +#Create SQL databases +bash tasks/LAMP/add-SQL-users.sh servers/dev.cs/faculty.usrpasswd +bash tasks/LAMP/add-SQL-users.sh servers/dev.cs/student....
bash
d_bash_20078
--- +++ @@ -1,4 +1,11 @@ #!/bin/sh + +# use vault to access old packages +sed -i 's/mirror.centos/vault.centos/g' /etc/yum.repos.d/CentOS-Base.repo +sed -i 's/#baseurl/baseurl/g' /etc/yum.repos.d/CentOS-Base.repo +sed -i 's/mirrorlist=.*$//g' /etc/yum.repos.d/CentOS-Base.repo + +echo $(awk '{print $3}' /etc/redhat-r...
bash
d_bash_20079
--- +++ @@ -6,7 +6,6 @@ sudo apt-get update -qq sudo apt-get install -qq openssh-client openssh-server pip install 'git+https://github.com/remram44/rpaths.git#egg=rpaths' -pip install 'git+https://github.com/remram44/scp.py.git#egg=scp' python setup.py install EOF
bash
d_bash_20080
--- +++ @@ -8,7 +8,7 @@ RUBY_CONFORMANCE=test_ruby - if [[ $version == jruby-9* ] ; then + if [[ $version == jruby-9* ]] ; then bash --login -c \ "rvm install $version && rvm use $version && rvm get head && \ which ruby && \
bash
d_bash_20081
--- +++ @@ -6,8 +6,9 @@ cp /app/support/docker/production/config/* /config fi -# Always copy default configuration file, in cases where new keys were added +# Always copy default and custom env configuration file, in cases where new keys were added cp /app/config/default.yaml /config +cp /app/config/custom-e...
bash
d_bash_20082
--- +++ @@ -6,7 +6,7 @@ cabal build cabal test -cabal bench --benchmark-option='--output=index.html' +cabal bench --benchmark-options='-o index.html -G -s500' cabal configure cabal install hscolour
bash
d_bash_20083
--- +++ @@ -1,3 +1,5 @@ +git --no-pager log 'HEAD~5..HEAD' + docker system prune --force docker pull schani/quicktype
bash
d_bash_20084
--- +++ @@ -29,23 +29,13 @@ for dotfile in ${dotfiles[@]}; do src="$script_path/$dotfile" dst="$HOME/.$dotfile" - cmd="ln -s $src $dst" + cmd="cp -pr $src $dst" if [[ -e $dst ]]; then - if [[ -h $dst ]]; then - if [[ $(readlink $dst) == $src ]]; then - msg "[ skip ] $dst" - else -...
bash
d_bash_20085
--- +++ @@ -17,6 +17,7 @@ base_version=`jq -r .version package.json` qualified_version=${base_version}-${timestamp} npm version ${qualified_version} + echo -e "\n*Version: ${qualified_version}*" >> README.md fi npm install
bash
d_bash_20086
--- +++ @@ -4,7 +4,7 @@ ./grailsw test-app --non-interactive ./grailsw package-plugin --non-interactive ./grailsw doc --pdf --non-interactive -if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_REPO_SLUG == 'wro4j/wro4j-grails-plugin' && TRAVIS_PULL_REQUEST == 'false' ]]; then +if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS...
bash
d_bash_20087
--- +++ @@ -1,4 +1,4 @@ #!/bin/sh cryptdisk=$(blkid -t TYPE="crypto_LUKS"|sed -e s/:.*//) -clevis luks bind -d $cryptdisk -k - tpm2 '{"pcr_bank": "sha256", "pcr_ids": "7"}' < /etc/confluent/confluent.apikey +clevis luks bind -f -d $cryptdisk -k - tpm2 '{"pcr_bank": "sha256", "pcr_ids": "7"}' < /etc/confluent/conflu...
bash
d_bash_20088
--- +++ @@ -1,4 +1,8 @@ export ZSH_PLUGIN_GITIGNORE_PATH=$(dirname $(readlink -f $0)) + +function gie () { + $EDITOR .gitignore +} function gi() { for t in $*; do
bash
d_bash_20089
--- +++ @@ -7,6 +7,7 @@ git init git config user.name "Travis-CI" git config user.email "travis@somewhere.com" +cp ../CNAME . git add . git commit -m "CI deploy to gh-pages" git push --force --quiet "https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git" master:gh-pages
bash
d_bash_20090
--- +++ @@ -2,7 +2,7 @@ echo 'Building dart-cli' -./node_modules/.bin/nexe -i apps/dart-cli.js -o apps/bin/dart-cli --build mac-x64-11.0.0 --debugBundle=apps/bin/bundle.js +./node_modules/.bin/nexe -i apps/dart-cli.js -o apps/bin/dart-cli -t mac-x64-10.13.0 --debugBundle=apps/bin/bundle.js echo 'Executable is...
bash
d_bash_20091
--- +++ @@ -2,6 +2,7 @@ set -e +# https://stackoverflow.com/a/16349776/282975 cd "${0%/*}" rake install
bash
d_bash_20092
--- +++ @@ -4,4 +4,4 @@ echo "%1/%\/" } -export PROMPT=$'$(prompt_directory_name) $ ' +export PROMPT=$'$(prompt_directory_name) %{$fg[cyan]%}$%{$reset_color%} '
bash
d_bash_20093
--- +++ @@ -28,4 +28,4 @@ # Add our plugin's bin diretory to user's path PLUGIN_BIN="$(dirname $0)/bin" -export PATH=${PATH}:${PLUGIN_BIN} +export PATH="${PATH}:${PLUGIN_BIN}"
bash
d_bash_20094
--- +++ @@ -9,5 +9,5 @@ intltoolize -f if [ -z "$NOCONFIGURE" ]; then - "$srcdir"/configure --enable-maintainer-mode ${1+"$@"} + "$srcdir"/configure --enable-maintainer-mode --enable-vala ${1+"$@"} fi
bash
d_bash_20095
--- +++ @@ -2,7 +2,7 @@ cd build cmake \ -D CMAKE_INSTALL_PREFIX="${PREFIX}" \ - -D POCL_INSTALL_ICD_VENDORDIR="${PREFIX}" \ + -D POCL_INSTALL_ICD_VENDORDIR="${PREFIX}/etc/OpenCL/vendors" \ -D LLVM_CONFIG="${PREFIX}/bin/llvm-config" \ -D HAVE_CLOCK_GETTIME=1 \ -D KERNELLIB_HOST_CPU_VARIANTS=distro \
bash
d_bash_20096
--- +++ @@ -19,10 +19,16 @@ # which in turn restarts docker. /etc/init.d/docker stop +# Make sure docker gracefully terminated before start again +while pidof docker > /dev/null; do + echo "waiting clean shutdown" + sleep 10 +done + /etc/init.d/docker start -echo "waiting a minute for startup" -sleep 60 ...
bash
d_bash_20097
--- +++ @@ -8,8 +8,8 @@ . $RAFT_HOME/sbin/raft-env.sh -if [[ "$@" = *--help ]] || [[ "$@" = *-h ]]; then - echo "Usage: ./sbin/raft-join.sh <master-url> [options]" +if [[ "$@" = *--help ]] || [[ "$@" = *-h ]] || [[ "$#" != 1 ]]; then + echo "Usage: ./sbin/raft-join.sh <master-url>" exit 1 fi
bash
d_bash_20098
--- +++ @@ -6,11 +6,8 @@ image="$1" -# Pull a client image with curl for testing -clientImage='buildpack-deps:jessie-curl' -if ! docker inspect --type=image "$clientImage" &> /dev/null; then - docker pull "$clientImage" -fi +# Use the image being tested as our client image since it should already have curl +clie...
bash
d_bash_20099
--- +++ @@ -1,5 +1,6 @@ #!/usr/bin/env bash +# Install apt repository source list if it does not exist if ! grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep zulip; then sudo apt-key adv --keyserver pool.sks-keyservers.net --recv 69AD12704E71A4803DCA3A682424BE5AE9BD10D9 echo "deb https://dl.bint...
bash