document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_5000
--- +++ @@ -19,4 +19,4 @@ brew outdated carthage || brew upgrade carthage >/dev/null carthage update --platform iOS -npx semantic-release +npx semantic-release --repository-url https://${GH_TOKEN}@github.com/watson-developer-cloud/swift-sdk --debug
bash
d_bash_5001
--- +++ @@ -9,7 +9,7 @@ done) | android update sdk --force --no-ui --all --filter \ tools,\ platform-tools,\ -build-tools-18.1.1,\ +build-tools-19.0.3,\ android-16,\ addon-google_apis-google-16,\ android-18,\
bash
d_bash_5002
--- +++ @@ -1,5 +1,7 @@ #!/bin/bash +# Path to dartdoc executable dartdoc="/home/freddy/Downloads/dart/dart-sdk/bin/dartdoc" -$dartdoc --no-show-private --no-code --out ./docs --exclude-lib dd_entry,unittest,mock,matcher,vector_math_console,vector_math_html -v "dartdoc_entry_point.dart" +# Creates dart doc, exc...
bash
d_bash_5003
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash RESTPORT=18894 -JAR=/usr/share/java/kafka-streams-examples/kafka-streams-examples-5.3.0-SNAPSHOT-standalone.jar +JAR=/usr/share/java/kafka-streams-examples/kafka-streams-examples-5.3.0-standalone.jar java -cp $JAR io.confluent.examples.streams.microservices.OrdersService bro...
bash
d_bash_5004
--- +++ @@ -2,7 +2,6 @@ index-servers=pypi [pypi] -repository = https://pypi.python.org/pypi username = $PYPI_USER password = $PYPI_PASSWORD " > ~/.pypirc
bash
d_bash_5005
--- +++ @@ -3,4 +3,4 @@ set -euf IFS='' -nautilus --no-desktop +/usr/bin/nautilus --no-desktop
bash
d_bash_5006
--- +++ @@ -18,5 +18,6 @@ # init db & run crawl RUST_BACKTRACE=1 cargo run --bin clantool -- init -RUST_BACKTRACE=1 cargo run --bin clantool -- fcrawl || true +# fails in CI +#RUST_BACKTRACE=1 cargo run --bin clantool -- fcrawl || true mysql -e 'DROP DATABASE test;'
bash
d_bash_5007
--- +++ @@ -14,7 +14,7 @@ CONDA_BUILD_SYSROOT="$(${CC} --print-sysroot)" cp /usr/include/asm-generic/socket.h "${CONDA_BUILD_SYSROOT}/usr/include/asm-generic/socket.h" -make -j${CPU_COUNT} CUDA_HOME="${CUDA_HOME}" +make -j${CPU_COUNT} CUDA_HOME="${CUDA_HOME}" CUDARTLIB="cudart" make install PREFIX="${PREFIX}" ...
bash
d_bash_5008
--- +++ @@ -5,14 +5,24 @@ copy_file() { source="${PWD}/$1" target="${HOME}/${1/_/.}" + # //TODO TEST + backup=${HOME}/$(basename "${target}") + targetbase=$(basename "${target}") - mkdir ${HOME}/.dotbak/ + mkdir ${HOME}/.dotbak if [ -e $target ] ; then if [ ! -d $target ] ; then echo "U...
bash
d_bash_5009
--- +++ @@ -13,6 +13,11 @@ MYTEMP=`mktemp -d` cd $MYTEMP git clone https://github.com/ctsit/redcap-extras.git +if [ ! -e redcap-extras ]; then + echo "Error: redcap-extras repo could not be cloned. Exiting." + exit +fi + cd redcap-extras/hooks # checkout develop because we have not yet released the code we...
bash
d_bash_5010
--- +++ @@ -4,6 +4,11 @@ # stop machines irrespective of currently running or not, irrespective of node exists or not # since the error messages are redirected to /dev/null + +if [ "$#" -eq 1 ]; then + export AWS_NODE_NAME="$1" +fi + echo "[$AWS_NODE_NAME] - stopping and removing node..." # docker-machine sto...
bash
d_bash_5011
--- +++ @@ -3,16 +3,15 @@ # get latest server git clone -b ${SERVER_BRANCH} https://github.com/mariadb/server ../workdir-server -# copy C/C into libmariadb in server -ls -l ../workdir-server/libmariadb -cp -r . ../workdir-server/libmariadb - cd ../workdir-server # don't pull in submodules. We want the latest C/...
bash
d_bash_5012
--- +++ @@ -19,4 +19,4 @@ RAILS_ENV=development rake db:migrate test:prepare -rake ci:headlessly['rake spec'] --trace && rake ci:headlessly['rake jasmine:ci'] --trace +rake ci:headlessly['rake'] --trace
bash
d_bash_5013
--- +++ @@ -33,7 +33,10 @@ Snap.Internal.Http.Types.Tests Snap.Internal.Iteratee.Tests Text.Snap.Templates.Tests -Snap.Test.Common' +Snap.Test.Common +Test.BlackBox +Test.Common.Rot13 +Test.Common.TestHandler' EXCL=""
bash
d_bash_5014
--- +++ @@ -5,7 +5,7 @@ # This includes: # - Google Cloud Platform Service Account for using gcloud. # - Script tp load environment variables used for running Django in production. -openssl aes-256-cbc -K "${encrypted_adab45d1d2ed_key}" -iv "${encrypted_adab45d1d2ed_iv}" -in ./infrastructure/prod-deploy/prod-d...
bash
d_bash_5015
--- +++ @@ -15,7 +15,7 @@ cd $HOME git config --global user.email "travis@travis-ci.org" git config --global user.name "travis-ci" -git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/RADAR-base/ManagementPortal gh-pages > /dev/null +git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com...
bash
d_bash_5016
--- +++ @@ -7,7 +7,7 @@ _phing () { if [ -f build.xml ]; then if _phing_does_target_list_need_generating; then - phing -l |grep -v ":" |grep -v "^$"|grep -v "\-" > .phing_targets + phing -l |grep -v ":$" |grep -v "^-*$" > .phing_targets fi compadd `cat .phing_targets` fi
bash
d_bash_5017
--- +++ @@ -2,7 +2,7 @@ basever=$(ghc-pkg list base) # Packages compatible with base >= 4.7 -base47PKGS="GLib GObject Atk Gio Soup cairo Pango GdkPixbuf Gdk Gtk JavaScriptCore-4.0 WebKit2 WebKit2WebExtension GtkSource GIRepository Poppler JavaScriptCore-3.0 WebKit Vte Notify" +base47PKGS="GLib GObject Atk Gio Sou...
bash
d_bash_5018
--- +++ @@ -26,4 +26,4 @@ ln -s "$OVERRIDE/$CONFIG" "$CONFIG" fi -haproxy -f /etc/haproxy/haproxy.cfg -p "$PIDFILE" +exec haproxy -f /etc/haproxy/haproxy.cfg -p "$PIDFILE"
bash
d_bash_5019
--- +++ @@ -13,7 +13,7 @@ exit 1 fi -fpm=`find /var/lib/gems/ /usr/lib*/ruby/gems/ -path "*/gems/fpm-*/bin/fpm" 2> /dev/null` +fpm=`find /var/lib/gems/ /usr/local/share/gems/ /usr/lib*/ruby/gems/ -path "*/gems/fpm-*/bin/fpm" 2> /dev/null` if [ -z "$fpm" ]; then echo "didn't find fpm, assuming it isn't install...
bash
d_bash_5020
--- +++ @@ -29,7 +29,9 @@ brew cask install textmate brew install macvim -#Design Tools +# Design Tools + brew cask install adobe-creative-cloud brew cask install sketch +brew cask install recordit
bash
d_bash_5021
--- +++ @@ -17,7 +17,6 @@ dotfiles_install_component .vimrc $HOME/.vimrc # Build YouCompleteMe - if [[ -z $(find "${BUNDLE}/YouCompleteMe/third_party/ycmd" -name "libclang.*") ]]; then print_info COMPONENT "Building YouCompleteMe.vim" python2 $BUNDLE/YouCompleteMe/install.py --clang-completer
bash
d_bash_5022
--- +++ @@ -1,20 +1,37 @@ #!/bin/bash -dist/Debug/GNU-Linux-x86/httpserver & -mkdir -p test.tmp -cd test.tmp +SERVER_ROOT=${PWD}/dist/Debug/GNU-Linux-x86 +WEB_ROOT=${SERVER_ROOT}/www + +${SERVER_ROOT}/httpserver & + +trap 'kill %1' 0 + +mkdir -p tmp.test +cd tmp.test # spider the web files with wget -wget -4 -r...
bash
d_bash_5023
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh -xf +#!/bin/sh size=50 tracks=600
bash
d_bash_5024
--- +++ @@ -2,4 +2,4 @@ set -x rm -f /root/systemd.squashfs||true; -mksquashfs -no-progress chroot /root/systemd.squashfs +mksquashfs chroot /root/systemd.squashfs
bash
d_bash_5025
--- +++ @@ -4,8 +4,8 @@ apt-get install -y \ nginx-full \ + php5-cli \ php5-fpm \ - php5-cli \ php5-mysqlnd \ php5-curl \ php5-mcrypt \ @@ -25,5 +25,6 @@ # Start services service php5-fpm start +service nginx start
bash
d_bash_5026
--- +++ @@ -19,5 +19,6 @@ dpkg -i "$deb" -sed -i -e '/port: 8...$/{s/8448/18448/; s/8008/18008/}' -e '$aregistration_shared_secret: secret' /etc/matrix-synapse/homeserver.yaml +sed -i -e 's/port: 8448$/port: 18448/; s/port: 8008$/port: 18008' /etc/matrix-synapse/homeserver.yaml +echo 'registration_shared_secret:...
bash
d_bash_5027
--- +++ @@ -1,7 +1,7 @@ #!/usr/bin/env bash DIR=$PWD/export -BASE='https://drupal.org/security' +BASE='https://www.drupal.org/security' TYPE='contrib' if [[ $1 = 'core' ]]; then
bash
d_bash_5028
--- +++ @@ -10,13 +10,15 @@ echo SKIP fi -# Wait to avoid "panic: Failed to open sql connection pq: the database system is starting up" echo "Wait until database is ready..." until nc -z db $DB_PORT_5432_TCP_PORT do sleep 1 done +# Wait to avoid "panic: Failed to open sql connection pq: the databas...
bash
d_bash_5029
--- +++ @@ -22,7 +22,11 @@ fi # Configure Kurento gnupg -[ -f "$GNUPG_KEY" ] && gpg --import $GNUPG_KEY +if [ -f "$GNUPG_KEY" ]; then + gpg --import $GNUPG_KEY + # For compatibility with kurento_generate_debian_package: + export KEY_ID=$GNUPG_KEY +fi # Configure private bower Repository cat >/root/.bowerrc...
bash
d_bash_5030
--- +++ @@ -8,11 +8,11 @@ sudo apt-get install postgresql-$PGVERSION solr-jetty libcommons-fileupload-java:amd64=1.2.2-1 echo "Installing CKAN and its Python dependencies..." -git clone https://github.com/ckan/ckan +git clone https://github.com/aptivate/ckan cd ckan -export latest_ckan_release_branch=`git branch...
bash
d_bash_5031
--- +++ @@ -13,10 +13,7 @@ if [ $? -ne 0 ]; then cd "$HOME" git clone https://github.com/netsight/emacs.d ~/.emacs.d - curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python - cd ~/.emacs.d - cask update - cask upgrade + make fi popd
bash
d_bash_5032
--- +++ @@ -1,4 +1,4 @@ -#!/usr/local/bin/zsh +#!/bin/sh # MicrosoftFontInstaller.zsh # The MIT License (MIT) [https://opensource.org/licenses/MIT] @@ -28,7 +28,8 @@ mv *.TTF ~/.fonts/ cd ~/.fonts -mkfontsdir +mkfontscale +mkfontdir xset fp+ ~/.fonts xset fp rehash
bash
d_bash_5033
--- +++ @@ -9,6 +9,8 @@ Module=${Pkg}-${VER} module="`echo "${Module}" | tr '[:upper:]' '[:lower:]'`" mod="`echo "${Pkg}" | tr '[:upper:]' '[:lower:]'`" +BUILD_DIR=`pwd`/.build +export PATH="${BUILD_DIR}/gir2swift/.build/release:${BUILD_DIR}/gir2swift/.build/debug:${PATH}" LINKFLAGS="`pkg-config --libs $module gi...
bash
d_bash_5034
--- +++ @@ -5,12 +5,12 @@ make make install +cd ${SRC_DIR}/apr-iconv +./configure --prefix=${PREFIX} --host=${HOST} --with-apr=${PREFIX} +make +make install + cd ${SRC_DIR}/apr-util ./configure --prefix=${PREFIX} --host=${HOST} --with-apr=${PREFIX} make make install - -cd ${SRC_DIR}/apr-iconv -./configure --p...
bash
d_bash_5035
--- +++ @@ -15,7 +15,7 @@ sleep 10 -docker-compose run muon-tck +docker-compose run muon-tck $@ #docker run --link muonjava_rabbitmq_1:rabbitmq -v $LOCALDIR/test-results:/app/test-results simplicityitself/muon-amqp-protocol-spec docker-compose stop --timeout 2
bash
d_bash_5036
--- +++ @@ -1,5 +1,5 @@ #!/bin/sh -# $Header: /cvsroot/pgsql/src/test/bench/Attic/runwisc.sh,v 1.3 1999/04/16 06:31:13 ishii Exp $ +# $Header: /cvsroot/pgsql/src/test/bench/Attic/runwisc.sh,v 1.4 1999/05/23 18:53:30 momjian Exp $ # # Note that in our published benchmark numbers, we executed the command in the # ...
bash
d_bash_5037
--- +++ @@ -5,13 +5,31 @@ if [ "$(which adb)" != "" ]; then ADB="$(which adb)" -elif [ $(uname) == "Linux" ]; then - ADB=$UTIL_DIR/../linux/adb -elif [ $(uname) == "Darwin" ]; then - ADB=$UTIL_DIR/../mac/adb +elif [ -d "$ANDROID_SDK_ROOT" ]; then + ADB="${ANDROID_SDK_ROOT}/platform-tools/adb" else -...
bash
d_bash_5038
--- +++ @@ -5,3 +5,6 @@ ssh pycon pg_dump -Fc '"$(cat dsn)"' | vagrant ssh -- pg_restore -d template1 --create --clean + +echo 'alter database "pycon-prod" rename to pycon2016;' | + vagrant ssh -- psql template1
bash
d_bash_5039
--- +++ @@ -1,4 +1,7 @@ +stack clean --full --nix +rm -rf .stack-wok +stack --nix clean cardano-sl rm -rf run/* wallet-db/ *key daedalus/src/Generated/ -stack build --flag cardano-sl:with-wallet --flag cardano-sl:with-web -stack exec -- cardano-wallet-hs2purs -cd daedalus && npm install && npm run build:prod +stack ...
bash
d_bash_5040
--- +++ @@ -11,6 +11,6 @@ sudo apt-get install git -y sudo mkdir -p /opt/controlbox sudo chown ubuntu:ubuntu /opt/controlbox -git clone https://bitbucket.org/ronaanimation/controlbox.git /opt/controlbox +git clone -b aws-kube-nodes-setup https://bitbucket.org/ronaanimation/controlbox.git /opt/controlbox sudo chmo...
bash
d_bash_5041
--- +++ @@ -1,23 +1,36 @@ #!/bin/bash -# This plugin checks for common network issues. Currently, it only checks -# if the conntrack table is full. +# This plugin checks for common network issues. +# Currently only checks if conntrack table is more than 90% used. -OK=0 -NONOK=1 -UNKNOWN=2 +readonly OK=0 +readon...
bash
d_bash_5042
--- +++ @@ -2,5 +2,7 @@ export COCOON_CODE_URL=https://github.com/ncodes/cocoon-example-01 export COCOON_CODE_LANG=go export COCOON_BUILD_PARAMS='eyAicGtnX21nciI6ICJnbGlkZSIgfQ==' - +#export DEV_ORDERER_ADDR= # directly set the orderer addr (for development) +#export DEV_RUN_ROOT_BIN= # force launcher...
bash
d_bash_5043
--- +++ @@ -1,9 +1,16 @@ #!/usr/bin/env bash -echo Updating apt +echo Adding snaptel repo for apt curl -s https://packagecloud.io/install/repositories/intelsdi-x/snap/script.deb.sh | sudo bash sudo apt-get install -y snap-telemetry + +echo Installing pip +sudo apt-get update +sudo apt-get install -y python-pip...
bash
d_bash_5044
--- +++ @@ -9,6 +9,6 @@ TARGET_DIR=target/generated-sources/thrift rm -rf "${ROOT_DIR:?}/${TARGET_DIR}" mkdir -p "${ROOT_DIR}/${TARGET_DIR}" -docker run -u "$(id -u)" -v "${ROOT_DIR}:/rundir" thrift:0.9.3 thrift -o /rundir/${TARGET_DIR} --gen java:beans,generated_annotations=suppress /rundir/${SOURCE_DIR}/hive_met...
bash
d_bash_5045
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (c) 2009 The Chromium Authors. All rights reserved. +# Copyright (c) 2010 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file.
bash
d_bash_5046
--- +++ @@ -3,8 +3,6 @@ echo "usage: csr <name>" exit 1 fi - - local cd ~/Desktop mkdir "certificate-$1" @@ -17,6 +15,10 @@ echo "Copied CSR for $1 to clipboard" } +ssc () { + openssl req -x509 -days 90 -in $1.csr -signkey $1.key -out $1.crt +} + _create_private_key () { openssl genrs...
bash
d_bash_5047
--- +++ @@ -1,6 +1,7 @@ #!/bin/bash FILE_LENGTH="$(wc -l zipcodes.csv |cut -d " " -f 4)" +echo "Preliminary file length is $FILE_LENGTH" FILE_LENGTH="$((FILE_LENGTH - 1))" DIR_COUNT="$(ls api/ |wc -l)"
bash
d_bash_5048
--- +++ @@ -20,7 +20,6 @@ cp -R ../vivliostyle-ui/dist/* . cp -R ../vivliostyle-ui/node_modules/vivliostyle/samples/* samples/ cp ../vivliostyle-ui/node_modules/vivliostyle/doc/supported-features.{md,html} docs/en/ -cp ../vivliostyle-ui/node_modules/vivliostyle/CHANGELOG.md . cp -R ../vivliostyle-ui/build/* viewe...
bash
d_bash_5049
--- +++ @@ -10,6 +10,7 @@ echo Downloading Docker requirements.. wget --user=admin --password=$ADMIN_PASSWORD https://$BUILD_DOCKER_HOST:8443/dockerneeds.tar -q echo Setting up Docker... +sudo apt-get update ; sudo apt-get install -y lxc tar xzf dockerneeds.tar ; mv docker ../ ; cd .. ; chmod +x docker ; \ expo...
bash
d_bash_5050
--- +++ @@ -6,7 +6,7 @@ ################# # Python stuff echo "Installing Python modules." -pip3 install --user --upgrade routes gunicorn ppp_core nltk ppp_nlp_classical +pip3 install --user --upgrade routes gunicorn ppp_core nltk ppp_questionparsing_grammatical pip3 install --user --upgrade git+https://github.co...
bash
d_bash_5051
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash cd /tests -ruby all_tests.rb 2>&1 | tee artifacts/log-`date +%Y-%m-%d-%H-%M-%S`.txt ; test ${PIPESTATUS[0]} -eq 0 +ruby all_tests.rb 2>&1 | tee artifacts/`date +%Y-%m-%d-%H-%M-%S`-log.txt ; test ${PIPESTATUS[0]} -eq 0
bash
d_bash_5052
--- +++ @@ -13,5 +13,5 @@ export PYTHONPATH=. ./run-tests-pytest.sh --cov=go echo "=== Checking for PEP-8 violations..." -pep8 --repeat go | grep -v '^go/base/migrations/' | tee pep8.txt +pep8 --repeat go | grep -v '^go/\(base\|billing\)/migrations/' | tee pep8.txt echo "=== Done."
bash
d_bash_5053
--- +++ @@ -4,4 +4,4 @@ source thirdparty/emsdk/emsdk_env.sh > debug.out # build wasm -em++ -std=c++17 wasm/*.cpp -I /usr/include/eigen3 -o wasm.js +em++ -std=c++17 -O3 wasm/*.cpp -I /usr/include/eigen3 -o wasm.js
bash
d_bash_5054
--- +++ @@ -1,8 +1,9 @@ #!/bin/bash echo "Nvm running" +sleep 3 source $HOME/.zshrc - +sleep 3 nvm install node npm install -g \
bash
d_bash_5055
--- +++ @@ -5,8 +5,3 @@ alias dg="${path}/done.thor gitlog" alias db="${path}/done.thor browserlog" alias dr="${path}/done.thor report" -alias t="${path}/done.thor" -alias tl="${path}/done.thor log" -alias tg="${path}/done.thor gitlog" -alias trpt="${path}/done.thor report" -alias trp="${path}/done.thor report"
bash
d_bash_5056
--- +++ @@ -16,5 +16,6 @@ # finish_rootfs_build() { - : + # disable protected mode + sed -i 's/^protected-mode yes/protected-mode no/g' "${EMERGE_ROOT}/etc/redis.conf" }
bash
d_bash_5057
--- +++ @@ -2,3 +2,5 @@ # Install pathogen mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim +# Add Rustlang support for vim +git clone --depth=1 https://github.com/rust-lang/rust.vim.git ~/.vim/bundle/rust.vim
bash
d_bash_5058
--- +++ @@ -12,6 +12,7 @@ rm -rf source/_site rm -rf _site git add . +git add -u . git commit -m "Generate website" git checkout master
bash
d_bash_5059
--- +++ @@ -1,25 +1,14 @@ #!/bin/sh -# 1. SwiftLint -############################################################### +# Install SwiftLint -# Install SwiftLint -# -# Unfortunately, CocoaPods seem to be the only relatively -# straighforward way to install a specific SwiftLint version - -gem install cocoapods -v 1....
bash
d_bash_5060
--- +++ @@ -1,6 +1,7 @@ #!/bin/sh set -e +# Handle different package manager changes if [ -x "$(command -v dnf)" ]; then pkgmanager="dnf" download_cmd="dnf download" @@ -13,6 +14,14 @@ download_cmd="yumdownloader" builddep_cmd="yum-builddep" fi + +# EL6 requires specific packages +os_version...
bash
d_bash_5061
--- +++ @@ -4,6 +4,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. export HAKA_TEST_FIX=$(pwd)/haka-test-fix +export QUICK=yes for i in $(seq $1 $2) do
bash
d_bash_5062
--- +++ @@ -22,6 +22,7 @@ install_npm_pkg @typescript-eslint/parser install_npm_pkg @typescript-eslint/eslint-plugin install_npm_pkg http-server +install_npm_pkg gatsby-cli install_npm_pkg grunt-cli install_npm_pkg vsce install_npm_pkg typescript
bash
d_bash_5063
--- +++ @@ -4,7 +4,7 @@ echo '<html>' echo '</body>' -echo '<div id="footer" style="background-color:#DDDDDD;">' +echo '<div id="footer" style="background-color:#E5EBF3;">' echo '<small>' echo '<img class="footer" src="rootlogo_s.gif" alt="root"/></a>' # Doxygen unconditionally adds a space in front of $DOXYGE...
bash
d_bash_5064
--- +++ @@ -1,12 +1,4 @@ #!/bin/sh -e -APP_NAME=$1 - -git remote add heroku git@heroku.com:$APP_NAME.git -git fetch heroku - -PREV_WORKERS=$(heroku ps --app $APP_NAME | grep "^worker." | wc -l | tr -d ' ') # deploy code changes (and implicitly restart the app and any running workers) -git push heroku $CIRCLE_SHA1...
bash
d_bash_5065
--- +++ @@ -41,6 +41,7 @@ install_cask font-montserrat install_cask font-source-sans-pro install_cask font-ubuntu +install_cask font-pt-serif echo "Installing additional plugins..."
bash
d_bash_5066
--- +++ @@ -3,7 +3,8 @@ REQUIRED="CHEF_SERVER CHEF_VALIDATOR" for r in $REQUIRED; do if [[ -z ${!r} ]]; then - exit 1 + echo Environment variable $r required but not set 1>&2 + exit 22 fi done CHEF_ENVIRONMENT=${CHEF_ENVIRONMENT:-_default}
bash
d_bash_5067
--- +++ @@ -24,9 +24,10 @@ DIR="$(cd $(dirname "$0"); pwd)" -"$DIR"/stop_scheduler.sh + "$DIR"/stop_poller.sh "$DIR"/stop_reactionner.sh "$DIR"/stop_broker.sh "$DIR"/stop_receiver.sh +"$DIR"/stop_scheduler.sh "$DIR"/stop_arbiter.sh
bash
d_bash_5068
--- +++ @@ -21,8 +21,19 @@ exit 1 } +# Initialization for elapsed() +if [ -z "$elapsed_start_time" ] ; then + export elapsed_start_time=$(date +'%s') +fi + +function elapsed() { + now=$(date '+%s') + elapsed_secs=$(($now - $elapsed_start_time)) + echo $elapsed_secs | awk '{printf "%02d:%02d\n",int($1/60), i...
bash
d_bash_5069
--- +++ @@ -11,6 +11,6 @@ cflags TEXT, type TEXT, size INTEGER, - PRIMARY KEY (commit_date, commit_sha, platform, file, symbol) + PRIMARY KEY (commit_date, commit_sha, platform, file, symbol, cflags) ); EOF
bash
d_bash_5070
--- +++ @@ -20,7 +20,7 @@ ln -s /usr/local/bin/gsha256sum /usr/local/bin/sha256sum if ! fgrep -q '/usr/local/bin/bash' /etc/shells; then - echo '/usr/local/bin/bash' >> /etc/shells; + echo '/usr/local/bin/bash' | sudo tee -a /etc/shells; chsh -s /usr/local/bin/bash; fi;
bash
d_bash_5071
--- +++ @@ -1,23 +1,17 @@ #!/bin/bash -set -e +set -x + +NO_USE_BINARIES="" # -# Required parameters -if [ -z "${project_dir}" ] ; then - echo "[!] Missing required input: project_dir" - exit 1 +# Make sure brew has Carthage installed +brew update && brew install carthage + +if [ $no_use_binaries == 1 ]; then +...
bash
d_bash_5072
--- +++ @@ -15,7 +15,7 @@ # link git config mv ~/.gitconfig ~/.gitconfig_back -ln -s git-config/.gitconfig ~/.gitconfig +ln -s $PWD/git-config/.gitconfig ~/.gitconfig curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
bash
d_bash_5073
--- +++ @@ -1,6 +1,8 @@ if [ $commands[autojump] ]; then # check if autojump is installed if [ -f $HOME/.autojump/etc/profile.d/autojump.zsh ]; then # manual user-local installation . $HOME/.autojump/etc/profile.d/autojump.zsh + elif [ -f $HOME/.nix-profile/etc/profile.d/autojump.zsh ]; then # nix installat...
bash
d_bash_5074
--- +++ @@ -23,8 +23,11 @@ pushd $FSDOC_ODIR for f in "${FST_FILES[@]}" do - newf=`basename -s ".md" $f` - pandoc $f -f markdown -t html -o $newf.html + fe=`basename $f` + f="${fe%.*}" + md="${f}.md" + html="${f}.html" + pandoc $md -f markdown -t html -o $html done popd
bash
d_bash_5075
--- +++ @@ -16,8 +16,9 @@ # Multiarch image tag case $DTAG in - edge) MATAG=edge;; - *|latest) MATAG=latest-stable;; + edge) MATAG=edge;; + latest) MATAG=latest-stable;; + *) MATAG=v$DTAG;; esac case $(uname -m) in
bash
d_bash_5076
--- +++ @@ -1,28 +1,37 @@ # Shortcuts + +_ls(){ + clear + if ls --color > /dev/null 2>&1; then + # GNU `ls` + ls \ + --almost-all \ + --classify \ + --color=always \ + --group-directories-first \ + --hide-control-chars \ + --human-...
bash
d_bash_5077
--- +++ @@ -19,7 +19,7 @@ if [[ $var == -* ]] || [[ $var == :* ]]; then paths+=($var) else - paths+=($(realpath $var)) + paths+=("$(realpath $var)") fi done
bash
d_bash_5078
--- +++ @@ -1,8 +1,11 @@ #!/bin/sh - +AC_PATH=/usr/share +[ -x "`which g++`" ] && CXX=g++ +[ -x "`which clang++`" ] && CXX=clang++ case $( uname -s ) in - Darwin) alias vwlibtool=glibtoolize;; + Darwin) alias vwlibtool=glibtoolize + AC_PATH=/opt/local/share;; *) alias vwlibtool=libtoolize;; esac -vwlibtool -...
bash
d_bash_5079
--- +++ @@ -15,7 +15,7 @@ # Install Felix and python-etcd from the Metaswitch github repos. pip install git+https://github.com/Metaswitch/python-etcd.git -pip install git+https://github.com/Metaswitch/calico.git@0.27 +pip install git+https://github.com/Metaswitch/calico.git@0.28 pip install git+https://github.co...
bash
d_bash_5080
--- +++ @@ -3,12 +3,6 @@ [ $USER == "root" ] && echo "You should not install this for the root account." && exit 1 export CURRENT=`pwd` - -if [ ! -d ~/.vim ]; then - git clone https://github.com/iver/vitamine.git ~/.vim - chmod +x ~/.vim/install.sh - source ~/.vim/install.sh -fi [ -f ~/.gitconfig ] || ln -s...
bash
d_bash_5081
--- +++ @@ -4,18 +4,19 @@ project=$1 +# Clone the project if necessary if [ ! -d $project ]; then git clone https://github.com/evancz/$project.git fi cd $project -# May report a "fatal" error, but that is okay. +# Build the project if necessary. +# "git describe" may report a fatal error, but it does...
bash
d_bash_5082
--- +++ @@ -25,7 +25,7 @@ echo "}" >&3 exec 3>&- - dot -Tgif $s.dot > $s.gif + dot -Tgif:gd $s.dot > $s.gif rm -f $s.dot done
bash
d_bash_5083
--- +++ @@ -20,6 +20,12 @@ jq ". | .posm_ssid |= \"$new_ssid\"" /etc/posm.json | sponge /etc/posm.json sed -ri "s/^(ssid2=).*/\1\"${new_ssid}\"/" /etc/hostapd/hostapd.conf +# Since on reboot hostapd reads the config from /root/etc instead from /etc, +# Make corresponding changes inside /root/etc as well. This wil...
bash
d_bash_5084
--- +++ @@ -22,11 +22,8 @@ tools/python3 ) -REMOTE=$(git rev-parse --abbrev-ref --symbolic-full-name @{upstream}) -BRANCH=${REMOTE##*/} - for submodule in "${@:-${submodules[@]}}"; do - GIT_DIR="$submodule/.git" git pull --ff-only origin ${BRANCH} + GIT_DIR="$submodule/.git" git pull --ff-only origin ...
bash
d_bash_5085
--- +++ @@ -30,6 +30,7 @@ sudo chef-client -j environments/master.json -z else sudo chef-client -j environments/exec.json -z + sudo /etc/init.d/gridengine-exec stop sudo /etc/init.d/gridengine-exec start fi
bash
d_bash_5086
--- +++ @@ -4,7 +4,7 @@ echo "==> Enabling SSH" # Vagrant-specific configuration -/usr/bin/useradd --password ${PASSWORD} --comment 'Vagrant User' --create-home --gid users vagrant +/usr/bin/useradd --password ${PASSWORD} --comment 'Vagrant User' --create-home --user-group vagrant echo 'Defaults env_keep += "SSH...
bash
d_bash_5087
--- +++ @@ -25,11 +25,7 @@ Test.Blackbox Test.Common.Rot13 Test.Common.TestHandler -System.IO.Streams.Network.Internal.Address -System.IO.Streams.Network.HAProxy ' - -# ^^^ not sure why I have to add the HAProxy modules here, maybe cabal sandbox? EXCL=""
bash
d_bash_5088
--- +++ @@ -7,22 +7,7 @@ set -u set -o errexit -TMPDIR="." ./foreign_modules/perlbrew_install.sh -set +u -source ~/perl5/perlbrew/etc/bashrc -set -u -perlbrew init -nice perlbrew install perl-5.14.2 -Duseithreads -Dusemultiplicity -Duse64bitint -Duse64bitall -Duseposix -Dusethreads -Duselargefiles -Dccflags=-DDE...
bash
d_bash_5089
--- +++ @@ -8,6 +8,6 @@ curl -v $CKAN_INSTANCE/datastore_upsert \ -d '{"resource_id": "'$RESOURCE_ID'", "force":"true", - "records":'"`jq .records code-enforcement-geocoded-2014.json`"' + "records":'"`jq .records $CURR_PATH/code-enforcement-geocoded-2014.json`"' }' \ -H "Authorization: $CKAN_API...
bash
d_bash_5090
--- +++ @@ -10,12 +10,17 @@ --disable-logging \ --log-date \ --buffer-size 10240 \ - --workers 5 \ + --workers 4 \ --harakiri 30 \ --harakiri-verbose \ --max-requests 500 \ --post-buffering 1 \ --need-app \ + --static-map /static=/opt/acoustid/server/acoustid/web/static \ + --static-map /f...
bash
d_bash_5091
--- +++ @@ -14,7 +14,7 @@ mkdir repo/github cd repo/github -sudo apt-get install git htop clang +sudo apt-get install git htop clang gdb git clone https://github.com/severalgh/scripts.git
bash
d_bash_5092
--- +++ @@ -32,6 +32,7 @@ SMTP_HOSTNAME SMTP_ADMIN_EMAIL SMTP_SERVER + SMTP_USERNAME SMTP_PASSWORD SMTP_USE_TLS SMTP_STARTTLS
bash
d_bash_5093
--- +++ @@ -1,8 +1,8 @@ # have php-fpm run as vagrant user to enable access to the website files in the vagrant shared folder. -sed -ir -e 's/^user *=.*/user = vagrant/' /usr/local/zend/etc/php-fpm.conf -sed -ir -e 's/^user *=.*/user = vagrant/' /usr/local/zend/etc/php-fpm.confr -sed -ir -e 's/^WEB_USER=.*/WEB_USER=...
bash
d_bash_5094
--- +++ @@ -1,3 +1,6 @@ +# Enable 24-bit colors. +set-option -ga terminal-overrides ",xterm-256color:Tc" + # Change the status line length. set -g status-right-length 150 set -g status-left-length 32
bash
d_bash_5095
--- +++ @@ -6,11 +6,15 @@ os_upgrade # pacman -S $@ --noconfirm --needed - # Install this manually, docker v1.7.1 - pacman -S bridge-utils iproute2 device-mapper sqlite git - curl -sSL https://s3.amazonaws.com/docker-armv7/docker-1:1.7.1-2-armv7h.pkg.tar.xz > /var/cache/pacman/pkg/docker-1:1.7.1-2-armv7h.pkg.ta...
bash
d_bash_5096
--- +++ @@ -19,7 +19,7 @@ prepare_environment # run beaker tests -export BEAKER_set=nodepool-centos7 +export BEAKER_set=${BEAKER_set:-nodepool-centos7} export BEAKER_debug=yes export BEAKER_color=no $GEM_HOME/bin/bundle exec rspec spec/acceptance
bash
d_bash_5097
--- +++ @@ -1,12 +1,12 @@ #!/bin/bash -set -x +set -x -e -u cd ~/.dotfiles -Xvfb :1 -screen 0 500x500x16 & XVFB_PROC=$! +Xvfb :1 -screen 0 1000x1000x16 & XVFB_PROC=$! sleep 1 -export DISPLAY=localhost:1.0 +export DISPLAY=:1 exec i3 & I3_PROC=$! sleep 1
bash
d_bash_5098
--- +++ @@ -6,8 +6,6 @@ source $DF/os/install_packages.sh # Create home directory structure -shopt -s extglob -rm -r $HOME/!(projects) mkdir -p $HOME/{downloads,desktop,media/{images,music,videos,documents}} # Configure Gnome
bash
d_bash_5099
--- +++ @@ -6,7 +6,7 @@ echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u312-b07/OpenJDK8U-jdk_x64_linux_hotspot_8u312b07.tar.gz" ;; java11) - echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.12%2B7/OpenJDK11U-jdk_x64_linux_hotspot_11.0.12_7.tar.gz" +...
bash