document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_15800
--- +++ @@ -9,9 +9,17 @@ exit 1 fi +git clean -f -d +git reset --hard HEAD + ./gradlew verifyGoogleJavaFormat || { echo "code is not formatted." echo "run './gradlew googleJavaFormat' to fix." + exit 1 +} + +./gradlew generatePacksMarkDown || { + echo "Some addons metadata is missing." exi...
bash
d_bash_15801
--- +++ @@ -1,9 +1,9 @@ #!/bin/bash -cp ./dist/ctags_lang ~/.ctags -cp .vimrc ~/.vimrc -cp .vimrc.plugins ~/.vimrc.plugins -cp .vimrc.local ~/.vimrc.local -cp .vimrc.plugins.local ~/.vimrc.plugins.local +ln -s ./dist/ctags_lang ~/.ctags +ln -s .vimrc ~/.vimrc +ln -s .vimrc.plugins ~/.vimrc.plugins +ln -s .vimrc.lo...
bash
d_bash_15802
--- +++ @@ -1,17 +1,20 @@ #!/bin/bash +RELEASE_TAG=$1 +DEPLOY_DIR=/home/timetracker +GIT_REPO_DIR=${DEPLOY_DIR}/time-tracker set -ex latest_jar () { - $(ls -tr target/uberjar/*standalone.jar | tail -1) + ls -tr target/uberjar/*standalone.jar | tail -1 } sudo systemctl stop timetracker.service -cd /home/t...
bash
d_bash_15803
--- +++ @@ -2,7 +2,7 @@ set -ex -o pipefail BCBIO_VERSION="1.0.7a" -BCBIO_REVISION="d310d11" +BCBIO_REVISION="a992bb4" NS="quay.io/bcbio" TAG="${BCBIO_VERSION}-${BCBIO_REVISION}"
bash
d_bash_15804
--- +++ @@ -1,3 +1,5 @@ +OPAM_PKGS="cppo lacaml>=8.0.0 ounit" + export PREFIX="./usr" export BINDIR="$PREFIX/bin" export LIBDIR="$PREFIX/lib" @@ -16,7 +18,17 @@ eval `opam config env` # Install OPAM packages -opam install cppo lacaml>=8.0.0 ounit +if [ "$OCAML_VERSION" == "4.03.0" ]; then + # OCaml 4.03.0 p...
bash
d_bash_15805
--- +++ @@ -4,21 +4,23 @@ # # This script expects to be located in the "bin" subdirectory of the # application's distribution. Consequently, the application's working -# directory will point to this script's parent directory. +# directory will point to the parent directory of "bin". WORKING_DIRECTORY=$0 -if [...
bash
d_bash_15806
--- +++ @@ -1,12 +1,12 @@ #!/usr/bin/env bash # shellcheck disable=SC2034 -test_description="Test generate IDE stubs with `use` block" +test_description="Test generate IDE stubs with proper namespace imports" source ./setup.sh # See: https://github.com/phalcon/zephir/issues/1778 -test_expect_success "Should...
bash
d_bash_15807
--- +++ @@ -20,6 +20,7 @@ cat > settings_local.py <<SETTINGS from settings import * ROOT_URLCONF = 'workspace.urls' +LOG_LEVEL = logging.ERROR SETTINGS echo "Starting tests..."
bash
d_bash_15808
--- +++ @@ -3,7 +3,7 @@ # Generate go dependencies, for make. Uses `go list". # Usage: makedepend.sh [-t] output package path [extra] -PATH_FORMAT='{{join .Deps "\n"}}' +PATH_FORMAT='{{ .ImportPath }}{{"\n"}}{{join .Deps "\n"}}' FILE_FORMAT='{{ range $file := .GoFiles }} {{$.Dir}}/{{$file}}{{"\n"}}{{end}}' if...
bash
d_bash_15809
--- +++ @@ -1,6 +1,5 @@ # Regenerates Lyft project from current directory function re() { export ALLOW_UNSUPPORTED_XCODE=1 - make -C $(git rev-parse --show-toplevel) update_dependencies + make -C $(git rev-parse --show-toplevel) update_dependencies targets=Lyft } -
bash
d_bash_15810
--- +++ @@ -4,7 +4,7 @@ set -e # Copy provision source, if it exists. -if [ -d /source/provision ]; then +if [ -f /source/provision/provision.drush.inc ]; then mkdir -p /var/aegir/.drush/commands echo "Copying Provision from /source/provision" cp -rf /source/provision /var/aegir/.drush/commands/provision
bash
d_bash_15811
--- +++ @@ -26,9 +26,6 @@ source /jenkins/aptomi-coveralls.io make coverage-full coverage-publish -export PATH=/usr/local/bin:$PATH -export DEBUG=yes -scripts/aptomi_install.sh -scripts/aptomi_uninstall_and_clean.sh +tools/test-install.sh popd
bash
d_bash_15812
--- +++ @@ -20,9 +20,9 @@ # Download and configure conda. cd /usr/share/miniconda -curl http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh > miniconda.sh -bash miniconda.sh -b -p /opt/conda -rm miniconda.sh +curl http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh > miniconda2.sh...
bash
d_bash_15813
--- +++ @@ -2,7 +2,7 @@ set -eu -o pipefail # bootstrap with 0.17 which is the last version that doesn't require a host D compiler. -git clone --recursive https://github.com/ldc-developers/ldc.git -b release-0.17.1 +git clone --recursive https://github.com/ldc-developers/ldc.git -b ltsmaster cd ldc mkdir build ...
bash
d_bash_15814
--- +++ @@ -1,4 +1,4 @@ #!/usr/bin/env bash # By default on Linux/MacOS we build Hadrian using Cabal -( ./build.cabal.sh "$@" ) +bash './build.cabal.sh "$@"'
bash
d_bash_15815
--- +++ @@ -21,8 +21,5 @@ # create a heat specific private network (default 'private' network has ipv6 subnet) source $DEST/devstack/openrc demo demo openstack network create heat-net -neutron subnet-create --name heat-subnet heat-net $HEAT_PRIVATE_SUBNET_CIDR - -# Don't use osc command till bug #1625954 is fixed ...
bash
d_bash_15816
--- +++ @@ -1,8 +1,10 @@ #!/bin/bash -ue +sudo true + TMPDIR=$(mktemp -d) +cd $TMPDIR -cd $TMPDIR wget https://github.com/yascentur/RictyDiminished/archive/4.0.1.zip unzip 4.0.1.zip
bash
d_bash_15817
--- +++ @@ -1,12 +1,12 @@ #!/bin/bash -VERSION=0.6.2 +VERSION=0.13.2 git clone https://github.com/GoogleCloudPlatform/kubernetes pushd kubernetes git checkout -b v$VERSION tags/v$VERSION -/opt/bin/kubectl create -f examples/guestbook/redis-master.json +/opt/bin/kubectl create -f examples/guestbook/redis-mas...
bash
d_bash_15818
--- +++ @@ -21,5 +21,5 @@ -e F8A_JOB_API_URL=${F8A_JOB_API_URL} \ -e F8A_ANITYA_API_URL=${F8A_ANITYA_API_URL} \ ${RECOMMENDER_API_TOKEN:+-e RECOMMENDER_API_TOKEN=${RECOMMENDER_API_TOKEN}} \ - f8a-e2e-tests --tags=-jobs.requires_auth --tags=-requires_authorization_token --no-color $@ + f8a-e2e-tes...
bash
d_bash_15819
--- +++ @@ -1,2 +1,6 @@ #!/bin/sh -export GEM_PATH="${RBENV_ROOT}/gems:${GEM_PATH}" + +cwd="$(pwd)" +cd "${script%/*}/.." +export GEM_PATH="$(pwd):${GEM_PATH}" +cd "$cwd"
bash
d_bash_15820
--- +++ @@ -9,8 +9,8 @@ touch /home/travis/.android/repositories.cfg touch "$ANDROID_SDK/licenses/android-sdk-license" echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_SDK/licenses/android-sdk-license" - echo y | sdkmanager --verbose "system-images;android-23;google_apis;x86" - ec...
bash
d_bash_15821
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -node index.js +DEBUG=nightmare xvfb-run --server-args="-screen 0 1024x768x24" node index.js cd PogoPlayer -node pogo.js +DEBUG=nightmare xvfb-run --server-args="-screen 0 1024x768x24" node pogo.js echo "Find the generated accounts in PogoPlayer/accounts.csv"
bash
d_bash_15822
--- +++ @@ -26,6 +26,9 @@ git config credential.helper "store --file=.git/credentials" echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials +# Set URL back to ssh so the push will work +git remote set-url ssh://git@github.com/nats-io/jnats.git + git rm -rf . (cd ${TARG}/apidocs; tar cf - .) | tar xf - ...
bash
d_bash_15823
--- +++ @@ -1,14 +1,18 @@ set -ex +echo "exporting cflags" # Make it easier to detect java on windows if [ "$target_platform" == "win-64" ]; then export CFLAGS="${CFLAGS} -I${PREFIX}/include/win32" fi +echo "exported cflags" # Make sure we don't use an old Makefile rm -f Makefile Makefile.in +echo "remo...
bash
d_bash_15824
--- +++ @@ -32,7 +32,7 @@ build_and_publish_maven_artifacts() { log "Building and Testing project." - $(maven_command) --batch-mode clean verify -Dmaven.test.failure.ignore=false -Dmaven.javadoc.skip=true -Dmaven.source.skip=true + $(maven_command) --batch-mode clean verify -Dmaven.test.failure.ignore=f...
bash
d_bash_15825
--- +++ @@ -1,19 +1,18 @@ if [[ ! -o interactive ]]; then - return +return fi compctl -K _erlenv erlenv _erlenv() { - local word words completions + local words completions read -cA words - word="${words[2]}" if [ "${#words}" -eq 2 ]; then - completions="$(erlenv commands)" +completions="$(er...
bash
d_bash_15826
--- +++ @@ -18,4 +18,4 @@ sudo mv selenium-server-standalone-2.47.1.jar /usr/local/bin/selenium.jar echo "---> Launching Selenium-Server-Standalone..." -nohup java -jar /usr/local/bin/selenium.jar -Dwebdriver.chrome.bin=/usr/bin/google-chrome-stable -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -port 4444...
bash
d_bash_15827
--- +++ @@ -8,6 +8,7 @@ echo "Installing pip package manager" curl -fsSL https://raw.github.com/pypa/pip/master/contrib/get-pip.py --output get-pip.py sudo python get-pip.py +sudo pip install virtualenv # installing brew formulae for pkg in `cat brew-formulae.txt` ; do @@ -15,13 +16,22 @@ done # create pyt...
bash
d_bash_15828
--- +++ @@ -1,4 +1,3 @@ #!/bin/bash -newrelic-admin run-program celery -A kitsune worker -Q fxa -n fxa@%h --maxtasksperchild=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-25} & -exec newrelic-admin run-program celery -A kitsune worker -n default@%h --maxtasksperchild=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-25} & +exec newreli...
bash
d_bash_15829
--- +++ @@ -12,7 +12,7 @@ echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.2%2B8/OpenJDK17U-jdk_x64_linux_hotspot_17.0.2_8.tar.gz" ;; java18) - echo "https://github.com/adoptium/temurin18-binaries/releases/download/jdk18-2022-02-15-13-13-beta/OpenJDK18-jdk_x64_linux_hotspot_20...
bash
d_bash_15830
--- +++ @@ -19,6 +19,6 @@ git push origin HEAD git push origin --tags -cd ../retrolambda.pages +cd ../retrolambda-site ./update-maven-site.sh "$VERSION" git push
bash
d_bash_15831
--- +++ @@ -1,6 +1,7 @@ #!/usr/bin/env bash osascript -e 'launch application "Simulator"' +xcrun simctl terminate booted com.bugsnag.iOSTestApp xcrun simctl launch booted com.bugsnag.iOSTestApp \ "EVENT_TYPE=$EVENT_TYPE" \ "EVENT_DELAY=$EVENT_DELAY" \
bash
d_bash_15832
--- +++ @@ -1,3 +1,3 @@ -export PATH=".:bin:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH" +export PATH=".:bin:/usr/local/bin:/usr/local/sbin:$HOME/.sfs:$ZSH/bin:$PATH" export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
bash
d_bash_15833
--- +++ @@ -1,5 +1,5 @@ #!/bin/sh -python c:/utah/opt/Python27/Scripts/scons.py custom=custom-mingw.py buildLuaWrapper=1 buildPythonWrapper=1 usePortMIDI=1 useJack=0 buildCsoundVST=1 buildvst4cs=1 buildInterfaces=1 buildCsoundAC=1 buildJavaWrapper=1 useOSC=1 buildPythonOpcodes=1 buildLuaOpcodes=1 buildLoris=0 buil...
bash
d_bash_15834
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh -cgen_repo="https://github.com/adapteva/epiphany-cgen.git" +cgen_repo="https://github.com/carletes/epiphany-cgen.git" cgen_dir="/vagrant/epiphany-cgen" if [ ! -d $cgen_dir ] ; then @@ -14,4 +14,6 @@ make && cd cgen && make desc ARCH=epiphany && - make html ARCH=epiph...
bash
d_bash_15835
--- +++ @@ -5,6 +5,7 @@ # # Author: acch # Depends: sync.sh, inotify-tools +# Version: 1.0 # # To activate automatic snycing, run this script upon startup (gnome-session-properties) # @@ -36,7 +37,7 @@ exit 1 fi -$basedir/sync.sh +su $local_user sh -c $basedir/sync.sh while true do @@ -44,7 +45,7 @@ ...
bash
d_bash_15836
--- +++ @@ -7,7 +7,7 @@ set -x MAKE="make --jobs=$NUM_THREADS --keep-going" -CONFIGURE="../configure --with-gcc=/usr/bin/g++-4.9" +CONFIGURE="../configure --with-gcc=/usr/bin/g++-4.9 --with-cuda=$CUDA_HOME" if $BUILD_DEBUG then
bash
d_bash_15837
--- +++ @@ -11,34 +11,33 @@ print_branch_tree() { local branch=$1 local depth=($2) + depth=$((depth)) + local upstream=$(git rev-parse --abbrev-ref --symbolic-full-name $branch@{upstream}) - calculate_commits_ahead_of_upstream $branch $upstream + local siblings=(${branch_parents[$upstream]}) ...
bash
d_bash_15838
--- +++ @@ -25,7 +25,16 @@ # Convenience function to run the test function run() { + + rm -rf doc + bpipe run -r test.groovy $* > test.out 2>&1 + + echo "checking for report ..." + if [ ! -e doc/index.html ]; + then + err "No HTML report was generated for test. All tests are expected to gener...
bash
d_bash_15839
--- +++ @@ -1,4 +1,4 @@ -cprint() { +function cprint() { numRegex='[0-9]+$' usrFile=$1 usrTime=$2 @@ -22,14 +22,7 @@ done } -todo() { - gtd_id=`trello board list -o tsv | grep 00GTD | cut -d$'\t' -f 1` - inbox_id=`trello list list -b $gtd_id -o tsv | grep Inbox | cut -d$'\t' -f 1` - - if [ -z ${2+x} ]; the...
bash
d_bash_15840
--- +++ @@ -29,7 +29,7 @@ port=$2 echo "Waiting ${product} to launch on http://${host}:${port}" -sleep 2 +sleep 15 until $(curl --output /dev/null --silent --head --fail http://${host}:${port}); do printf '.' sleep 3
bash
d_bash_15841
--- +++ @@ -15,9 +15,20 @@ echo "${script_dir}" } +commands_script_path=$(get_script_dir) + +chef_ext_dir=`dirname $commands_script_path` +handler_settings_file=`ls $chef_ext_dir/config/*.settings -S -r | head -1` + +auto_update=`ruby -e "require 'chef/azure/helpers/parse_json';value_from_json_file_for_ps '$han...
bash
d_bash_15842
--- +++ @@ -1,13 +1,13 @@ #!/bin/bash # This script downloads Randoop. - +VERSION=2.1.4 CWD="$( cd "$(dirname "$(readlink "$0" || printf %s "$0")")" pwd -P )" rm -f "$CWD/randoop.jar" -wget "https://github.com/mernst/randoop/releases/download/v1.3.6/randoop-1.3.6.jar" -O "$CWD/randoop.jar" +wget "https:...
bash
d_bash_15843
--- +++ @@ -1 +1,9 @@ -gzip -cd *_R3.fastq.* | head -1000000 | awk 'NR == 2 || NR % 4 == 2' | grep -v N | sort | uniq -c | sort -nr | head -n 24 > sample_barcodes.log +mkdir -p logs +gzip -cd data-raw/fastq/*_R3.fastq.* | \ +head -1000000 | \ +awk 'NR == 2 || NR % 4 == 2' | \ +grep -v N | \ +sort | \ +uniq -c | \ +so...
bash
d_bash_15844
--- +++ @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e -DUPLICATE_ID=$(find . -type f -name "*dictionaries.xml" -o -name "*keyboards.xml" -exec grep -Eo "\\sid=\"([A-Za-z0-9\\-]+)\"" {} \; | sort | uniq -d) +DUPLICATE_ID=$(find . -type f -path '*/build/*' -prune -o -name "*dictionaries.xml" -o -name "*keyboards.xml" ...
bash
d_bash_15845
--- +++ @@ -21,7 +21,8 @@ ln -sf $DOTFILES/git/gitconfig $HOME/.gitconfig # Gnome Colors Solarized Light -./$SOLARIZED/gnome-terminal-colors-solarized/set_light.sh +cd $SOLARIZED/gnome-terminal-colors-solarized || exit +./set_light.sh # dircolors Solarized Light ln -sf $SOLARIZED/dircolors-solarized/dircolors...
bash
d_bash_15846
--- +++ @@ -3,7 +3,11 @@ echo "Node version: $(node -v)" if [ ! -d "test/testfiles" ]; then cd test - git clone https://github.com/yasp-dota/testfiles + if [ -n "$CI" ]; then + git clone https://github.com/yasp-dota/testfiles --depth=1 + else + git clone https://github.com/yasp-dota/testfiles + fi c...
bash
d_bash_15847
--- +++ @@ -26,8 +26,8 @@ git push --tags echo "# Upload to pypi..." -# Clear dist -rm -rf dist/* +# Clear build & dist +rm -rf build/* dist/* # Build source and wheel packages python setup.py sdist bdist_wheel # Upload w/Twine
bash
d_bash_15848
--- +++ @@ -9,4 +9,4 @@ export MINIO_SECRET_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG mkdir -p ~/s3/notebooks -minio server ~/s3 > /minio.log 2>&1 & +minio server ~/s3 > /tmp/minio.log 2>&1 &
bash
d_bash_15849
--- +++ @@ -3,7 +3,7 @@ source /etc/profile.d/nvm.sh export RAILS_ENV=production -nvm use lts/carbon +nvm use lts/dubnium for cmds in bundle yarn;do if ! type ${cmds} 2>/dev/null 1>/dev/null;then echo "${cmds}: Not found";exit 1;fi;done cd `dirname $0`
bash
d_bash_15850
--- +++ @@ -8,6 +8,7 @@ if ! command -v lame > /dev/null 2>&1 ; then echo "lame is needed to convert, but it could not be found. Please install lame or add its location to your path and rerun the script!" + exit 1 fi # Check if $2 has a trailing slash, and if so remove it
bash
d_bash_15851
--- +++ @@ -1,16 +1,19 @@ #!/bin/bash . common.sh + +SHELL_USER=${1:-${USER}} if [ ! -z "${SSH_AUTH_SOCK}" ]; then SOCK=$(dirname ${SSH_AUTH_SOCK}) set +e docker run -it -w /code -h utility --name ${PROJECT}_utility \ + -e USER=${SHELL_USER} \ -v ${SOCK}:${SOCK} -e SSH_AUTH...
bash
d_bash_15852
--- +++ @@ -1,11 +1,11 @@ cite about-plugin -about-plugin 'alias "https" to SimpleHTTPServer' +about-plugin 'alias "shttp" to SimpleHTTPServer' if [ $(uname) = "Linux" ] then - alias https='python2 -m SimpleHTTPServer' + alias shttp='python2 -m SimpleHTTPServer' else - alias https='python -m SimpleHTTPServer...
bash
d_bash_15853
--- +++ @@ -17,18 +17,8 @@ apt -qqy install --no-install-recommends \ build-essential devscripts equivs -# Fails with an unhelpful message. -#travis_fold docker-deps-2 \ -# mk-build-deps -i - travis_fold docker-deps-2 \ - apt -qqy install \ - debhelper \ - devscripts \ - gi...
bash
d_bash_15854
--- +++ @@ -8,7 +8,7 @@ # Exclude the given directory path from Time Machine exclude_dir() { local dir_path="$1" - tmutil addexclusion "${dir_path%/}" + sudo tmutil addexclusion -p "${dir_path%/}" } # Only back up /Users
bash
d_bash_15855
--- +++ @@ -16,6 +16,14 @@ program=$1 shift +if [ ! -z "$SEEC_WRITE_INSTRUMENTED" ] && [ -e $SEEC_WRITE_INSTRUMENTED ]; then + rm -f $SEEC_WRITE_INSTRUMENTED || true +fi + +if [ ! -z "$SEEC_TRACE_NAME" ] && [ -e ${SEEC_TRACE_NAME}.seec ]; then + rm -f ${SEEC_TRACE_NAME}.seec || true +fi + if [ -z "$SEEC_TEST_S...
bash
d_bash_15856
--- +++ @@ -11,7 +11,7 @@ local remote=origin if [[ $GH_TOKEN ]]; then - remote=https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG + remote=https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git fi #List Remotes ONLY DURING testing - do not do this on live repo / possible key leak
bash
d_bash_15857
--- +++ @@ -4,7 +4,7 @@ sed -i.bak 's/ipynb/html/' index.ipynb jupyter nbconvert --to=html index.ipynb mv index.ipynb.bak index.ipynb -cp -r index.* intro-slides/ notebooks/ deploy/ +cp -R index.* intro-slides/ notebooks/ deploy/ if [[ "$DRONE" == "true" ]]; then sed -i.bak "s/number: 0/number: ${DRONE_BUILD...
bash
d_bash_15858
--- +++ @@ -22,6 +22,7 @@ sudo docker build --force-rm --tag="varnish4" $SCRIPTROOT/varnish4/ # install the setuid run-varnish-container script +sudo apt-get install --assume-yes gcc sudo mkdir --parents /opt/vclfiddle/ sudo gcc $SCRIPTROOT/run-varnish-container.c -o /opt/vclfiddle/run-varnish-container sudo c...
bash
d_bash_15859
--- +++ @@ -1,6 +1,6 @@ rm -f src/version.py # Prevent 2to3 from copying it, since py3k/src/version.py was probably written by root. rm -rf py3k mkdir py3k -cp -R locale/ py3k/ -cp -R plugins/ py3k/ # copy plugins data +cp -R locale/ py3k/locale +cp -R plugins/ py3k/plugins # copy plugins data python 2to3/run.py ...
bash
d_bash_15860
--- +++ @@ -4,15 +4,17 @@ source "$TOP_DIR/config/paths" source "$CONFIG_DIR/credentials" source "$LIB_DIR/functions.guest" -source "$CONFIG_DIR/admin-openstackrc.sh" exec_logfile indicate_current_auto #------------------------------------------------------------------------------ # Create the external net...
bash
d_bash_15861
--- +++ @@ -1,12 +1,14 @@ #!/bin/sh +i=$1 +shift 1 cat << ENVIRON | sudo tee /etc/`hostname -s`.env WEAVE_LAUNCH_ARGS="$@" -WEAVE_LAUNCH_DNS_ARGS="10.10.2.2$1/16" -SPARK_NODE_ADDR="10.10.1.3$1/24" -SPARK_NODE_NAME="spark-worker-aws-$1.weave.local" +WEAVE_LAUNCH_DNS_ARGS="10.10.2.2$i/16" +SPARK_NODE_ADDR="10.10.1.3...
bash
d_bash_15862
--- +++ @@ -12,6 +12,7 @@ mkdir -p /etc/puppet/repos/ git clone "${REPO_URL}" "${REPO_PATH}" -echo "* * * * * cd '${REPO_PATH}' && git pull --quiet" > "/etc/cron.d/puppet-repo-${NAME}" - -perl -pi -e "\$modulePath = '${MODULE_PATH}'; s/^modulepath = (.*)$/modulepath = \$1:\$modulePath/" ${CONFIG} +if (test -d ${R...
bash
d_bash_15863
--- +++ @@ -9,10 +9,10 @@ export JUJU_HOME=$HOME/juju-ci export PACKAGE=$WORKSPACE/new-version.deb artifacts_path=$WORKSPACE/artifacts +set -x +rm * -rf mkdir -p $artifacts_path touch $artifacts_path/empty -set -x -rm * -rf artifact=localhost:8080/job/prepare-new-version/lastSuccessfulBuild/artifact wget -q $a...
bash
d_bash_15864
--- +++ @@ -10,5 +10,8 @@ cd .. +# Make sure Inline::Python uses correct virtualenv +set +u; source mc-venv/bin/activate; set -u + echo "Running plackup on Carton on PID $$ and arguments: $@" >&2 exec carton exec plackup -I lib $@
bash
d_bash_15865
--- +++ @@ -19,7 +19,7 @@ cp -R output_prod/* . rm -rf output_* -git add * +git add . git commit -a -m "$1" git push origin --all
bash
d_bash_15866
--- +++ @@ -3,7 +3,7 @@ sleep 0.2 if [ /cre/proxy.conf -nt /etc/nginx/conf.d/default.conf ] then - cp -f /cre/nginx-php.conf /etc/nginx/conf.d/default.conf + cp -f /cre/proxy.conf /etc/nginx/conf.d/default.conf sleep 0.1 nginx -s reload fi
bash
d_bash_15867
--- +++ @@ -29,4 +29,4 @@ fi echo "Starting minio" -docker run -p 9001:9001 -d --rm --name minio --mount source=minio-data,target=/data --mount source=minio-config,target=/root/.minio minio/minio server /data +docker run -p 9001:9000 -d --rm --name minio -e "MINIO_ACCESS_KEY=ABCDEFGHJHIJKLMNOPQR" -e "MINIO_SECRET...
bash
d_bash_15868
--- +++ @@ -18,3 +18,6 @@ cd release/React\ Native\ Debugger-darwin-x64 zip -ryq9 ../rn-debugger-macos-x64.zip React\ Native\ Debugger.app + +echo sha256: `shasum -a 256 ../rn-debugger-macos-x64.zip` +echo "After release run: `brew cask _appcast_checkpoint --calculate \"https://github.com/jhen0409/react-native-de...
bash
d_bash_15869
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash + +set -e if [ "$#" = "0" ]; then echo "Usage: $0 department-name http_user http_pass" @@ -30,7 +32,9 @@ echo "Folding mappings..." ./tools/fold-mappings.rb < $mappings_out > $folded_mappings -echo "Putting folded file in place..." -mv $folded_mappings $mappings_out +e...
bash
d_bash_15870
--- +++ @@ -43,4 +43,6 @@ it_creates_an_app_dot_rb_file() { $sinatra_gen foo test -f foo/app.rb + grep Bundler foo/app.rb + grep mustache foo/app.rb }
bash
d_bash_15871
--- +++ @@ -13,4 +13,4 @@ curl \ -X POST \ --data-urlencode "payload={\"channel\": \"#petprojects\", \"username\": \"Travis\", \"text\": \"Doktor version ${TRAVIS_TAG} is available!\", \"icon_emoji\": \":robot_face:\"}" \ - $SLACK_WEBHOOK_URL + ${SLACK_WEBHOOK_URL}
bash
d_bash_15872
--- +++ @@ -1,4 +1,5 @@ #!/bin/bash -packer build analyze.json +packer="/usr/local/bin/packer" +$packer build analyze.json docker import - baseball/analyze:latest < analyze.tar
bash
d_bash_15873
--- +++ @@ -10,7 +10,7 @@ mkdir dockercfg ; cd dockercfg echo Downloading Docker requirements.. -wget http://game-on.org:8081/dockerneeds.tar -q +wget --user=admin --password=$ADMIN_PASSWORD https://game-on.org/repository/dockerneeds.tar -q echo Setting up Docker... tar xzf dockerneeds.tar cd ..
bash
d_bash_15874
--- +++ @@ -2,6 +2,6 @@ # Extract all translatable messages to update the Arista PO template -xgettext -L glade -o locale/templates/arista.pot ui/*.ui -xgettext -L python -o - arista-gtk arista-transcode arista/*.py | tail -n +18 >>locale/templates/arista.pot +xgettext -L glade -o - ui/*.ui | tail -n +6 >locale/...
bash
d_bash_15875
--- +++ @@ -1,2 +1,2 @@ #/bin/sh -/root/spark/bin/spark-submit --class vc.inreach.ml.classifiers.ClassifierTrainingTask --deploy-mode client --driver-memory 7g --driver-cores 2 /jar/inreach-ml-batch.jar -data_path s3n://inreach-prod-dynamo-data/dynamoDbBackUp_20161203/ -model_path s3n://inreach-ml-models/ -aws remot...
bash
d_bash_15876
--- +++ @@ -1,4 +1,6 @@ #!/bin/sh - + +cd `mktemp --directory` # We just download the bootstrap script by default and execute that. if [ -x /usr/bin/fetch ]; then
bash
d_bash_15877
--- +++ @@ -20,9 +20,10 @@ first=no fi -#install the packages on the node +#install the packages on the node, create the scratch dir to use in the GE queue elasticluster ssh $NAME -n $host << END source $SCRIPTS_DIR/node-install-packages.sh +mkdir -p /scratch END done @@ -30,6 +31,7 @@ #log in the frontend...
bash
d_bash_15878
--- +++ @@ -1,5 +1,5 @@ echo "Installation" -curl "http://dist.neo4j.org/jexp/shell/neo4j-shell-tools_3.0.1.zip" -o neo4j-shell-tools.zip +curl "http://dist.neo4j.org/jexp/shell/neo4j-shell-tools_3.1.0.zip" -o neo4j-shell-tools.zip unzip neo4j-shell-tools.zip -d lib echo "Launch Shell-tool"
bash
d_bash_15879
--- +++ @@ -16,5 +16,11 @@ ssh rinfo@$1 'cat id_rsa.pub >> .ssh/authorized_keys' ssh rinfo@$1 rm id_rsa.pub +if [ -f ~/.ssh/jenkins_id_rsa.pub ] +then + scp ~/.ssh/jenkins_id_rsa.pub rinfo@$1:. + ssh rinfo@$1 'cat jenkins_id_rsa.pub >> .ssh/authorized_keys' + ssh rinfo@$1 rm jenkins_id_rsa.pub +fi
bash
d_bash_15880
--- +++ @@ -2,4 +2,3 @@ export GOMA_DIR=${HOME}/goma export GYP_DEFINES="use_goma=1" -export CDPATH=.:/usr/local/google/home/vakh/work/chrome/src
bash
d_bash_15881
--- +++ @@ -4,6 +4,7 @@ function do_unmount { local m=$1 + umount $m while mountpoint $m; do fuser -k $m umount $m
bash
d_bash_15882
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash while (( "$#" )); do - detected=$(chardetect "$1" | awk -F': ' 'NR==1 {print $NF}') + detected=$(chardetect "$1" | awk -F': ' 'NR==1 {print $NF}' | tr A-Z a-z) if [ "${detected#*utf-8}" != "$detected" ]; then printf "'%s' appears to be encoded in %s. Skippin...
bash
d_bash_15883
--- +++ @@ -2,7 +2,8 @@ COMMIT_RANGE="$1" -BASE_URL="https://github.com/owncloud/core/issues/" +REPO=`git remote -v | grep -m 1 "(push)" | sed -e "s/.*github.com[:/]\(.*\)\.git.*/\1/"` +BASE_URL="https://github.com/$REPO/issues/" if test -z "$1"; then echo "This script builds changelog entries based on merg...
bash
d_bash_15884
--- +++ @@ -17,7 +17,8 @@ # Run in subshell to change workdir without affecting current workdir. ( cd $workdir - cp example.rs "${directory}.rs" + mkdir src + cp example.rs src/lib.rs # Forcibly strip all "ignore" statements from the testing files for test i...
bash
d_bash_15885
--- +++ @@ -1,12 +1,23 @@ -#!/bin/bash -x +#!/bin/bash +# +# Automate re-flashing an LPC17xx device running the USB bootloader from Linux. +# +# Example: +# $ ./flash.sh /dev/sdc new-firmware.bin +# DEVICE=$1 FIRMWARE=$2 +echo "Deleting existing firmware..." sudo mdel -i $DEVICE ::/firmware.bin while [ $? ...
bash
d_bash_15886
--- +++ @@ -8,6 +8,7 @@ brew install bash bash-completion brew install coreutils brew install ctags +brew install emacs brew install git brew install grc brew install htop @@ -36,6 +37,7 @@ brew cask install caffeine brew cask install dropbox +brew cask install emacs brew cask install google-chrome brew c...
bash
d_bash_15887
--- +++ @@ -34,7 +34,7 @@ apt-get -y purge ppp pppconfig pppoeconf; # Delete oddities -apt-get -y purge popularity-contest; +apt-get -y purge popularity-contest installation-report command-not-found command-not-found-data friendly-recovery; apt-get -y autoremove; apt-get -y clean;
bash
d_bash_15888
--- +++ @@ -11,7 +11,7 @@ eval "$(ssh-agent -s)" #start the ssh agent ssh-add .travis/id_rsa - gulp cd + gulp cd:pushAndRun elif [ $TRAVIS_BRANCH = "staging" ]; then echo "Deploying to staging and testing"
bash
d_bash_15889
--- +++ @@ -2,7 +2,7 @@ . VERSION -docker login -u $DOCKER_USER -p $DOCKER_PASSWORD +docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWORD docker tag docker-rails-onbuild $DOCKER_TAG:latest docker push $DOCKER_TAG:latest
bash
d_bash_15890
--- +++ @@ -4,6 +4,8 @@ if [ -f /usr/bin/virtualenvwrapper.sh ]; then source /usr/bin/virtualenvwrapper.sh +elif [ -f /usr/share/virtualenvwrapper/virtualenvwrapper.sh ]; then + source /usr/share/virtualenvwrapper/virtualenvwrapper.sh fi # låter pip cacha sina nerladdade paket (internetåtkomst krävs d...
bash
d_bash_15891
--- +++ @@ -37,7 +37,7 @@ echo "Cmd: $cmd ${paramsToCOMPSsWorker}" fi - nohup $cmd ${paramsToCOMPSsWorker} 1>$workingDir/log/worker_${hostName}.out 2> $workingDir/log/worker_${hostName}.err | echo $! & + setsid $cmd ${paramsToCOMPSsWorker} 1>$workingDir/log/worker_${hostName}.out 2> $workingDir/log/work...
bash
d_bash_15892
--- +++ @@ -1,4 +1,7 @@ #!/bin/bash + +set -e + dotnet --info echo "Regenerating projects: if this fails, run generateprojects.sh and commit changes" bash generateprojects.sh && git diff --exit-code
bash
d_bash_15893
--- +++ @@ -12,21 +12,25 @@ # Npm globals npm i -g \ airplane-mode \ +ava \ brightness-cli \ bunyan \ coffee-script \ emoji-random \ iron-node \ n_ \ +ndu \ node-inspector \ nodemon \ normit \ np \ +ntl \ pipeable-js \ pm2 \ speed-test \ standard \ tldr \ +trymodule \ wallpaper \ wifi-password \ ...
bash
d_bash_15894
--- +++ @@ -6,6 +6,12 @@ sed -i "s/# unixsocket \/tmp\/redis.sock/unixsocket \/var\/run\/redis\/redis.sock/g" /etc/redis.conf sed -i "s/# unixsocketperm 700/unixsocketperm 777/g" /etc/redis.conf +cd /tmp +wget https://raw.githubusercontent.com/faew/linux.feature/master/patch/redis_socket.te +checkmodule -M -m -o ...
bash
d_bash_15895
--- +++ @@ -9,4 +9,4 @@ # subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt # set -x -node ./node_modules/.bin/polymer test --npm --module-resolution=node -s 'windows 10/microsoftedge@15' -s 'windows 10/microsoftedge@17' -s 'windows 8.1/internet explorer@11' -s 'os x 10.11/safa...
bash
d_bash_15896
--- +++ @@ -1,7 +1,11 @@ #!/usr/bin/env bash # Copyright (c) 2012 Cloudera, Inc. All rights reserved. +# The backend unit tests currently do not work when HEAPCHECK is enabled. +export HEAPCHECK= +set -e +set -u + cd ${IMPALA_BE_DIR} -. ${IMPALA_HOME}/bin/set-classpath.sh +. ${IMPALA_HOME}/bin/set-classpath.sh...
bash
d_bash_15897
--- +++ @@ -1,6 +1,6 @@ # Find lexically last directory that starts with provided parameter and cd into it cdl () { - local cands=("$1"*) + local cands=("$1"*/) cd "${cands[-1]}" }
bash
d_bash_15898
--- +++ @@ -3,9 +3,9 @@ cd $HOME # Install Miniconda -MINICONDA=Miniconda-latest-Linux-x86_64.sh +MINICONDA=Miniconda2-latest-Linux-x86_64.sh MINICONDA_HOME=$HOME/miniconda -MINICONDA_MD5=$(curl -s http://repo.continuum.io/miniconda/ | grep -A3 $MINICONDA | sed -n '4p' | sed -n 's/ *<td>\(.*\)<\/td> */\1/p') +MI...
bash
d_bash_15899
--- +++ @@ -6,3 +6,6 @@ mkdir -p -m755 -v "$PREFIX"/bin install -m755 -v h264dec "$PREFIX"/bin/h264dec install -m755 -v h264enc "$PREFIX"/bin/h264enc + +# debug command to see the linkage of the library +otool -L $PREFIX/lib/libopenh264.1.7.0.dylib
bash