document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_10900
--- +++ @@ -2,4 +2,4 @@ CLIP="$(xsel --clipboard)" echo $CLIP -mpv $CLIP +mpv --cache=1280 $CLIP
bash
d_bash_10901
--- +++ @@ -2,7 +2,7 @@ set -e # Exit with nonzero exit code if anything fails # If we're on master, build for gh-pages & push to that branch -if [ $TRAVIS_PULL_REQUEST = "false" ] && [ $TRAVIS_BRANCH = $SOURCE_BRANCH ]; then +if [[ $TRAVIS_PULL_REQUEST = "false" ]] && [[ $TRAVIS_BRANCH = $SOURCE_BRANCH ]]; then ...
bash
d_bash_10902
--- +++ @@ -1,6 +1,6 @@ _phing () { if [ -f build.xml ]; then - compadd $(phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|awk '{print $1}') + compadd $(phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|grep -v "Warning:"|awk '{p...
bash
d_bash_10903
--- +++ @@ -1,8 +1,8 @@ -WORKSPACE=`pwd` +SCRIPT_HOME=`pwd` cd /c/Program\ files/eventstore ./EventStore.ClusterNode.exe --mem-db --run-projections=all & -sleep 20 -cd $WORKSPACE +sleep 15 +cd $SCRIPT_HOME source ./smoke-test.vars.sh npm start & ./projections-enable.sh
bash
d_bash_10904
--- +++ @@ -10,10 +10,10 @@ # Zip and copy to the dist dir echo "==> Packaging..." -rm -rf ./pkg/dist -mkdir -p ./pkg/dist +rm -rf pkg/dist +mkdir -p pkg/dist -for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do +for PLATFORM in $(find pkg -mindepth 1 -maxdepth 1 -type d); do OSARCH=$(basenam...
bash
d_bash_10905
--- +++ @@ -2,7 +2,7 @@ set -euxo pipefail -SCRIPT_DIR=$(dirname $0) +SCRIPT_DIR=$(dirname "$0") # Where we run ./configure cd "${SCRIPT_DIR}/.."
bash
d_bash_10906
--- +++ @@ -9,7 +9,11 @@ # Skip on macOS, where we can use Homebrew instead. _koopa_is_linux || return -env_list="$(conda env list --json)" +# Early return if local conda environments aren't configured. +prefix="$(_koopa_conda_prefix)" +[ -d "$prefix" ] || return + +env_list="$(_koopa_conda_env_list)" _koopa_a...
bash
d_bash_10907
--- +++ @@ -13,3 +13,13 @@ insert_sudo () { zle beginning-of-line; zle -U "sudo " } zle -N insert-sudo insert_sudo bindkey "^s" insert-sudo + +# Go backward one word +bindkey '^w' backward-word + +# Go forward one word +bindkey '^e' forward-word + +# Delete current word +bindkey '^q' delete-word +
bash
d_bash_10908
--- +++ @@ -16,6 +16,7 @@ py.test lib bedrock \ --cov-config=.coveragerc \ --cov-report=html \ + --cov-report=term-missing \ --cov-report=xml:python_coverage/coverage.xml \ --cov=. py.test -r a tests/redirects
bash
d_bash_10909
--- +++ @@ -2,21 +2,11 @@ # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -# - -# nacl-glibc-compat-0.1.sh -# -# usage: nacl-glibc-compat-0.1.sh -# -# this script builds glibc comaptibility fo...
bash
d_bash_10910
--- +++ @@ -15,13 +15,22 @@ latestver=`yarn info -s $i dist-tags.next` if [ "$depver" != "$latestver" ] then - echo "The latest version of $i is $latestver but package.json depends on $depver" - echo -n "Type 'Yes' to continue anyway: " + echo "The latest version of $i is $latestve...
bash
d_bash_10911
--- +++ @@ -11,19 +11,19 @@ fi; fi -if [ "x$BUILDTOOL" = "cmake" ]; then +if [ "x$BUILDTOOL" = "xcmake" ]; then cmake .. -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE || exit 1 make || exit 1 ctest -V || exit 1 fi -if [ "x$BUILDTOOL" = "cmake" ]; then +if [ "x$BUILDTOOL" = "xcmake" ]; then cmake .. -DGMOC...
bash
d_bash_10912
--- +++ @@ -5,7 +5,7 @@ # Set default values. repository="git@github.com:szledan/gepard.git" -gitTag=master +gitTag=thesis helpMsg="usage "`basename $0`" --repo=<git-repository> --tag=<tag>" # Show help.
bash
d_bash_10913
--- +++ @@ -3,9 +3,10 @@ #OMF_HOME=$HOME/omf_6 OMF_HOME=$HOME/nicta/omf CWD=$(dirname $0) +OML_PATH=bob [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" rvm use ruby-1.9.3@omf exec ruby -I $OMF_HOME/omf_common/lib -I $OMF_HOME/omf_ec/lib $OMF_HOME/omf_ec/bin/omf_ec \ - --uri xmpp://srv.mytes...
bash
d_bash_10914
--- +++ @@ -4,9 +4,10 @@ set -x function finish { - if [[ $OK == "true" ]] + if [[ $OK == true ]] then osascript -e 'display notification "UrBackup was uninstalled successfully." with title "UrBackup"' + killall urbackupclientgui || true else osascript -e 'display notification "Failed to uninstall UrBa...
bash
d_bash_10915
--- +++ @@ -49,5 +49,5 @@ #print_cpu `/usr/sbin/iostat -C` print_apm `/usr/sbin/apm -alb` echo "" - sleep 1 + sleep 59 done
bash
d_bash_10916
--- +++ @@ -1 +1 @@ -g++ -I/usr/include/taglib/ -lboost_filesystem-mt -ltag -o ./taglib_json_reader taglib_json_reader.cpp +g++ `taglib-config --cflags` -ltag -o ./taglib_json_reader taglib_json_reader.cpp
bash
d_bash_10917
--- +++ @@ -15,7 +15,7 @@ adb_shell () { local RET ADB_LOG ADB_LOG=$(mktemp "${TMPDIR:-/tmp}/adb-XXXXXXXX") - adb shell "$@" ";" echo \$? | tee "$ADB_LOG" + adb "$1" shell "$@" ";" echo \$? | tee "$ADB_LOG" sed -i -e 's![[:cntrl:]]!!g' "$ADB_LOG" # Remove \r. RET=$(sed -e '$!d' "$ADB_LOG") #...
bash
d_bash_10918
--- +++ @@ -13,3 +13,7 @@ _filedir() { :; } eval "$(beet completion)" fi + +if is_wsl; then + export CHROME_BIN=/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe +fi
bash
d_bash_10919
--- +++ @@ -27,6 +27,9 @@ for k in $kinds; do file="NYTimes$k$month_day.txt" - url="$base_url/$year/$month/$file" - wget "$url" && kenken "$file" + if [ ! -f "$file" ]; then + url="$base_url/$year/$month/$file" + wget --quiet "$url" + fi + kenken "$file" done
bash
d_bash_10920
--- +++ @@ -15,3 +15,33 @@ cd $1 } +# +# Get the value of an alias. +# +# Arguments: +# 1. alias - The alias to get its value from +# STDOUT: +# The value of alias $1 (if it has one). +# Return value: +# 0 if the alias was found, +# 1 if it does not exist +# +function alias_value() { + alias "$1"...
bash
d_bash_10921
--- +++ @@ -1,5 +1,7 @@ #!/bin/bash mkdir -p ./bin -curl --output ./bin/git_matrix.sh https://raw.githubusercontent.com/rubenmromero/git-matrix/master/git_matrix.sh +echo -e "\nSpecify the environment branches to manage in your project: \c" +read BRANCHES +curl --silent https://raw.githubusercontent.com/rubenmrom...
bash
d_bash_10922
--- +++ @@ -5,10 +5,6 @@ echo -e "Host github.com\n\tStrictHostKeyChecking no\nIdentityFile ~/.ssh/deploy.key\n" >> ~/.ssh/config echo -e "$GITHUB_DEPLOY_KEY" | base64 -d > ~/.ssh/deploy.key chmod 600 ~/.ssh/deploy.key - -# git configuration -git config user.email "kwkbtr@vivliostyle.com" -git config user.name "kw...
bash
d_bash_10923
--- +++ @@ -13,4 +13,4 @@ fi # Send results to zabbix -ops-zagg-client -k "pcp.ping" -o "$PING_RETURN" +ops-metric-client -k "pcp.ping" -o "$PING_RETURN"
bash
d_bash_10924
--- +++ @@ -17,6 +17,8 @@ git add ${DEPLOYMENT_FILE} fi done +cp ${BIN_DIR}/acceptance-tests.sh bin/ +git add bin/acceptance-tests.sh git commit -m "set image to ${DOCKER_IMAGE_TAG} in ${CLUSTER_NAME}" || echo "nothing new to commit" git push popd
bash
d_bash_10925
--- +++ @@ -23,4 +23,3 @@ LIC_HEADER='licenseHeaderGPLv3' Utilities/licenseChanger.py HopsanGUI ${LIC_HEADER} ${DOSET} -e HopsanGUI/dependencies -Utilities/licenseChanger.py HoLC ${LIC_HEADER} ${DOSET}
bash
d_bash_10926
--- +++ @@ -1,3 +1,4 @@ #!/bin/sh -LM=$(cat /etc/susecon2017/local_master) -sed -i "s/^master.*\$/master: $LM/" /etc/salt/minion.d/ceph.conf +LOCAL_MASTER=$(cat /etc/susecon2017/local_master) +sed -i "s/^master.*\$/master: $LOCAL_MASTER/" /etc/salt/minion.d/ceph.conf +rm -f /etc/salt/pki/minion/minion_master.pub
bash
d_bash_10927
--- +++ @@ -31,6 +31,7 @@ case "${BUILD_TARGET}" in linux-auto-*) + sudo apt-get update sudo apt-get install libdbus-1-dev libudev-dev libical-dev ;;
bash
d_bash_10928
--- +++ @@ -1,7 +1,12 @@ # Sublime Text 2 Aliases -#unamestr = 'uname' -local _sublime_darwin_subl=/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl +local _sublime_darwin_paths +_sublime_darwin_paths=( + "$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" + "$HOME/Applications/S...
bash
d_bash_10929
--- +++ @@ -4,12 +4,23 @@ env set -x -export CFLAGS='-Wall -Werror -O2 -g -pipe -std=gnu99' -./bootstrap && \ -./configure && \ -make && \ -make distcheck && \ -make package && \ -(cd test; make valgrind) && \ -echo "Build passed" || \ -(echo "Build failed" && exit 1) +# For convenience we set us up to fail on an...
bash
d_bash_10930
--- +++ @@ -10,8 +10,13 @@ echo Commit all changed work git commit -am "Release version $version and update docs" --author="orbit-tools <orbit@ea.com>" -echo Create release notes from previous commit messages -releaseNotes=$(curl -sH "$AUTH" "$GH_REPO/orbit/orbit/commits?since=$(curl -sH "$AUTH" "$GH_REPO/orbit/...
bash
d_bash_10931
--- +++ @@ -9,4 +9,4 @@ # 4 param is the launch file # Following params are the roslaunch arguments -ssh -t -t $1 'export ROS_MASTER_URI=http://'$2':11311/; zsh -o HUP -c "roslaunch '${@:2}'"' +ssh -t -t $1 'export ROS_MASTER_URI=http://'$2':11311/; zsh -o HUP -c "roslaunch '${@:3}'"'
bash
d_bash_10932
--- +++ @@ -12,6 +12,7 @@ libtool \ gcc-c++ \ boost \ + boost-devel \ libevent-devel \ libevent \ flex \ @@ -22,6 +23,8 @@ libgsasl-devel \ numactl-devel \ numactl-libs \ + gflags-devel \ + glogs-devel \ cmake # no rpm for this?
bash
d_bash_10933
--- +++ @@ -10,6 +10,9 @@ popd cd php-buildpack + +../buildpacks-ci/scripts/check-unsupported-manifest + pip install -r requirements.txt ./run_tests.sh
bash
d_bash_10934
--- +++ @@ -10,7 +10,10 @@ local root=$1 local command=$2 - [[ -z "$root" ]] && root="$PWD" + if [[ -n "$root" ]]; then root=$(readlink -f $root) + else root="$PWD" + fi + [[ -z "$command" ]] && command="$SHELL" if [[ ! -d "$root" ]]; then
bash
d_bash_10935
--- +++ @@ -3,8 +3,9 @@ set -o errexit set -o nounset -docker run --tty \ +ROOT=$(git rev-parse --show-toplevel) + +$ROOT/scripts/run_docker_with_aws_credentials.sh --tty \ --volume /var/run/docker.sock:/var/run/docker.sock \ --volume $(pwd):/repo \ - --volume ~/.aws:/root/.aws \ publish_service_to_aws --pr...
bash
d_bash_10936
--- +++ @@ -19,7 +19,7 @@ ## Untar and build everything tar -xzf db-${DB_VER}.tar.gz && \ -(cd db-${DB_VER} && patch -p0 < ../bdb-align.patch ) && \ +##(cd db-${DB_VER} && patch -p0 < ../bdb-align.patch ) && \ (cd db-${DB_VER}/build_unix && \ ../dist/configure --prefix=$WORKDIR --disable-shared --enable-o...
bash
d_bash_10937
--- +++ @@ -13,6 +13,7 @@ google-web-designer intellij-idea iterm2 + java7 java mactex slack
bash
d_bash_10938
--- +++ @@ -19,8 +19,6 @@ set -o pipefail KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. - -KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. source "${KUBE_ROOT}/hack/lib/init.sh" kube::golang::setup_env
bash
d_bash_10939
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash sudo apt-get update -sudo apt-get install -y puppet puppet-common ruby facter +sudo apt-get install -y puppet sudo gem install --no-rdoc r10k sudo cp -a * /etc/puppet
bash
d_bash_10940
--- +++ @@ -5,6 +5,11 @@ rcbin=$RCDIR/bin [[ :$PATH: == *:"$rcbin":* ]] || PATH=$PATH:$rcbin unset rcbin + +# add a secondary site-specific bin +altrcbin=$RCDIR/site/bin +[[ :$PATH: == *:"$altrcbin":* ]] || PATH=$PATH:$altrcbin +unset altrcbin # mac-only configurations if [ $(uname -a | grep Darwin | wc -l) -n...
bash
d_bash_10941
--- +++ @@ -2,11 +2,11 @@ set -x set -e -pip3 install --upgrade git+https://github.com/fmaussion/salem.git -pip3 install --upgrade coveralls coverage +$PIP install --upgrade git+https://github.com/fmaussion/salem.git +$PIP install --upgrade coveralls coverage cd /root/oggm -pip3 install -e . +$PIP install -e ....
bash
d_bash_10942
--- +++ @@ -15,8 +15,10 @@ ln -sfv "$DOTFILES_DIR/runcom/.inputrc" ~ ln -sfv "$DOTFILES_DIR/git/.gitconfig" ~ ln -sfv "$DOTFILES_DIR/git/.gitignore_global" ~ -ln -sfv "$DOTFILES_DIR/etc/mackup/.mackup.cfg" ~ -if [ "$(uname)" == "Darwin" -a -f "$DOTFILES_DIR/install/osx.sh" ]; then - . "$DOTFILES_DIR/install/o...
bash
d_bash_10943
--- +++ @@ -1,7 +1,7 @@ #!/bin/sh KERL_INSTALL_PATH=~/erlang -KERL_RELEASES="r15b01 r15b02 r15b03 r16b r16b01 r16b02 r16b03 r16b03-1 maint master" +KERL_RELEASES="r15b01 r15b02 r15b03 r16b r16b01 r16b02 r16b03-1 maint master" make build-tests
bash
d_bash_10944
--- +++ @@ -1,3 +1,19 @@ #!/bin/bash -Rscript bootstrapCIs.r "$@" +PRG="$0" +CURDIR="`pwd`" +# need this for relative symlinks +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$li...
bash
d_bash_10945
--- +++ @@ -1,4 +1,6 @@ #!/usr/bin/env bash + +echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini cp /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ~/xdebug.ini phpenv config-rm xdebug.ini || exit $? # Disable XDebug
bash
d_bash_10946
--- +++ @@ -1,8 +1,17 @@ source ../zlib/plan.sh pkg_name=zlib-musl +pkg_origin=core pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" -pkg_deps=(core/musl) +pkg_description="\ +Compression library implementing the deflate compression method found in gzip \ +and PKZIP.\ +" +pkg_upstream_url="http://www...
bash
d_bash_10947
--- +++ @@ -1,12 +1,13 @@ #!/bin/bash -# Exit if any subcommand fails. -set -e +set -ex # Variables ORIGIN_URL=`git config --get remote.origin.url` -echo "Started deploying" +# Set identity +git config user.name "Automated Deployment" +git config user.email "auto@example.com" # Delete existing gh-pages br...
bash
d_bash_10948
--- +++ @@ -30,6 +30,12 @@ echo 'PATH="/vagrant:${PATH}"' >>.bashrc echo "source /vagrant/rc.bash" >>.bashrc +cd /root +echo >>.bashrc +echo "# Enable Scripnix" >>.bashrc +echo 'PATH="/vagrant:${PATH}"' >>.bashrc +echo "source /vagrant/rc.bash" >>.bashrc + echo "Install Scripnix." | tee -a ${log} /vagrant/insta...
bash
d_bash_10949
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -ssh clouduser@63.128.180.11 "cd panamax-vagrant; git pull; ./setup.sh -op=reinstall; cd ~; ./commit.sh; ./screensh.sh" +ssh root@8.22.8.121 "cd panamax-vagrant; git pull; ./setup.sh -op=reinstall; cd ~; ./commit.sh; ./screensh.sh"
bash
d_bash_10950
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash + +# This takes the six digit article suffix name as input... SUFFIX=$1
bash
d_bash_10951
--- +++ @@ -15,7 +15,7 @@ os::cmd::try_until_success 'oc get dc "$WORKER_DC"' DRIVER=$(oc get pod -l deploymentconfig=$APP_NAME --template='{{index .items 0 "metadata" "name"}}') - os::cmd::try_until_text 'oc logs "$DRIVER"' 'Running Spark' $((5*minute)) + os::cmd::try_until_text 'oc logs "$DRIVER"'...
bash
d_bash_10952
--- +++ @@ -17,6 +17,9 @@ # Create new release branch (with local changes). git checkout -b $RLSBRANCH +# Clean-up not tracked files. +git clean -fdx + # Remove unnecessary files. rm -f ForEachUpdate.md rm -rf integration-tests node_modules scripts
bash
d_bash_10953
--- +++ @@ -4,7 +4,7 @@ log() { printf "%b\n" "$*"; } fail() { log "\nERROR: $*\n" ; exit 1 ; } -# Install dependencies +# Prepare dependencies log 'Preparing dependencies...' if ! command_exists 'pip' && command_exists 'brew'; then @@ -12,7 +12,6 @@ fi command_exists 'pip' || fail 'Pip not available, can...
bash
d_bash_10954
--- +++ @@ -3,8 +3,9 @@ ( ./run_test.sh ) > /dev/null 2> /dev/null error=0 -for i in expected/*; do - diff -u -I '^make' -I '^Makefile:' $i test.latest/$(basename "$i") +for i in `find expected -type f`; do + testfile=${i/expected/test.latest} + diff -u -I '^make' -I '^Makefile:' $i $testfile ec=$? error=$((e...
bash
d_bash_10955
--- +++ @@ -9,7 +9,7 @@ cd cryptoplugin/src if [ -e $CRYPTOPP_NAME ] then - SHASUM=`sha256sum $CRYPTOPP_NAME | cut -d" " -f1` + SHASUM=`shasum -a 256 $CRYPTOPP_NAME | cut -d" " -f1` if [ $SHASUM = $EXPECTED_SHA256 ] then DOWNLOAD_CRYPTOPP=0 @@ -19,7 +19,7 @@ if [ $DOWNLOAD_CRYPTOPP = 1 ] then wget http:...
bash
d_bash_10956
--- +++ @@ -1,4 +1,4 @@ #!/bin/sh python manage.py migrate --noinput -gunicorn mozillians.wsgi:application -b 0.0.0.0:${PORT:-8000} --log-file - +gunicorn mozillians.wsgi:application -w 2 -b 0.0.0.0:${PORT:-8000} --log-file -
bash
d_bash_10957
--- +++ @@ -9,7 +9,7 @@ export HOST=i686-pc-linux-gnu export CONTAINER_NAME=ci_i686_centos_7 export DOCKER_NAME_TAG=centos:7 -export DOCKER_PACKAGES="gcc-c++ glibc-devel.x86_64 libstdc++-devel.x86_64 glibc-devel.i686 libstdc++-devel.i686 ccache libtool make git python3 python3-distutils python36-zmq which patch lb...
bash
d_bash_10958
--- +++ @@ -13,7 +13,7 @@ for CUDA_VARIANT in $CUDA_VARIANTS do mkdir -p dist/${CUDA_VARIANT}${CUDA_VERSION//.} - docker run -it --tmpfs /build:exec --rm -v $(pwd)/dist:/dist jaxbuild $PYTHON_VERSION $CUDA_VARIANT $CUDA_VERSION + docker run --tmpfs /build:exec --rm -v $(pwd)/dist:...
bash
d_bash_10959
--- +++ @@ -1 +1 @@ -(cd ./vendor/submodules/cloudsdale-faye && git pull --rebase && bundle && npm install && sleep 10 && node ./server.js) +(cd ./vendor/submodules/cloudsdale-faye && git checkout master && git pull --rebase && bundle && npm install && sleep 10 && node ./server.js)
bash
d_bash_10960
--- +++ @@ -10,7 +10,7 @@ # While we're waiting for the server to be ready, prepare the Docker # image used in the tests -make .docker/tests +make $(git rev-parse --show-toplevel)/.docker/tests # Wait for the server to become available set +o errexit
bash
d_bash_10961
--- +++ @@ -10,7 +10,7 @@ alias g='git' alias ga='git add' alias gb='git branch' -alias gc='git commit' +alias gc='git commit -v' alias gca='git commit -a' alias gd='git diff' alias gfb='git checkout -b'
bash
d_bash_10962
--- +++ @@ -10,6 +10,8 @@ apt-get install -y unzip python-pip python-dev python-virtualenv libffi-dev libcurl4-nss-dev libssl-dev apt-transport-https ca-certificates libevent-dev libsasl2-modules netcat-openbsd pip install --upgrade cffi ansible boto six markupsafe pycrypto -wget http://repos.mesosphere.com/debia...
bash
d_bash_10963
--- +++ @@ -2,6 +2,6 @@ ln -s ../../../videogular-questions app/bower_components/videogular-questions rm -rf app/bower_components/videogular-controls -ln -s ../../../videogular-controls app/bower_components/videogular-controls +ln -s ../../../bower-videogular-controls app/bower_components/videogular-controls h...
bash
d_bash_10964
--- +++ @@ -4,7 +4,7 @@ DIST_DIR=dist BUILD_DIR=build OPENMV_DIR=openmv -PACKAGE=$(echo openmv_`uname -s`_`uname -m`.tar.gz | tr '[:upper:]' '[:lower:]') +PACKAGE=$(python -c "import sys,platform; print(''.join(sys.platform+'_'+platform.machine()).lower())") SPEC_FILE=openmv-ide.spec rm -fr $DIST_DIR $BUILD_DI...
bash
d_bash_10965
--- +++ @@ -1,13 +1,10 @@ source $HOME/.dotfiles/bin/os_type.sh # Homebrew -if [ -d $HOME/homebrew ]; then - export PATH=$HOME/bin:$HOME/homebrew/bin:$HOME/homebrew/sbin:$PATH -fi - -if is_centos; then - export NODEJS_HOME=/usr/local/lib/nodejs/node-v10.14.2/bin - export PATH=$NODEJS_HOME:$PATH +if [ -d /opt/h...
bash
d_bash_10966
--- +++ @@ -4,8 +4,8 @@ name="$(jq -r .source.name source/data.json)" version="$(jq -r .version.ref source/data.json)" -metadata_file_path="binary-builds-new/$name/$version-cflinuxfs3.json" -filename="binary-builds-new/$name/$version-$STACK_ID.json" +metadata_file_path="builds/binary-builds-new/$name/$version-cfl...
bash
d_bash_10967
--- +++ @@ -3,7 +3,7 @@ alias v3-cats='(cd ~/workspace/cf-release/src/github.com/cloudfoundry/cf-acceptance-tests && CONFIG=$PWD/integration_config.json bin/test v3)' # Bosh-lite setup -alias qnd-deploy='(cd ~/workspace/cf-release && bosh --parallel 10 create release --name cf --force && bosh upload release && bo...
bash
d_bash_10968
--- +++ @@ -17,10 +17,9 @@ > foo && svn_cmd add foo && svn_cmd commit -m "add foo" - ) + ) && + start_httpd ' - -start_httpd test_expect_success 'clone trunk with "-r HEAD"' ' git svn clone -r HEAD "$svnrepo/trunk" g &&
bash
d_bash_10969
--- +++ @@ -6,10 +6,10 @@ ) ~/.coursier/coursier launch -q -P \ - com.lihaoyi:ammonite_2.12.2:0.9.3 \ - is.cir:ciris-core_2.12:0.3.2 \ - is.cir:ciris-enumeratum_2.12:0.3.2 \ - is.cir:ciris-generic_2.12:0.3.2 \ - is.cir:ciris-refined_2.12:0.3.2 \ - is.cir:ciris-squants_2.12:0.3.2 \ + com.lihaoyi:ammonite_2....
bash
d_bash_10970
--- +++ @@ -4,7 +4,8 @@ for deb in $@ do - pkg=${deb%%_*} + name=`basename $deb` + pkg=${name%%_*} firstLetter=$(echo ${pkg} | cut -c1) dir="$DEST/$firstLetter/$pkg" echo "Copying debian file in $dir"
bash
d_bash_10971
--- +++ @@ -2,7 +2,7 @@ --rm \ -it \ --name "coder" \ - -p 127.0.0.1:8080:8080 \ + -p 8080:8080 \ -e PASSWORD=filipe \ -v "$PWD:/home/coder/project" \ -v "$HOME/dotfiles/vscode/settings.json:/User/settings.json" \
bash
d_bash_10972
--- +++ @@ -13,7 +13,7 @@ echo "No deployment on BRANCH='$TRAVIS_BRANCH'"; exit 0 fi -conda install --yes binstar +conda install --yes anaconda-client binstar upload -u omnia -t $BINSTAR_TOKEN --force `conda build devtools/conda-recipe --output` # Create the docs and push them to S3
bash
d_bash_10973
--- +++ @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function usage() { echo
bash
d_bash_10974
--- +++ @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + set -ex bundle exec rspec --tag ~fly
bash
d_bash_10975
--- +++ @@ -3,7 +3,7 @@ set -e pylint *.py zoe_* tests/*.py -pytest --ignore tests pytest --tb=short +pytest --ignore tests --tb=short doc8 docs/ sh ./build_docs.sh
bash
d_bash_10976
--- +++ @@ -1,7 +1,9 @@ #!/bin/sh # Copyright (c) 2011, Membase, Inc. # All rights reserved. -cd `dirname $0` +basedir=${0##*/} +cd "$basedir" + mkdir logs > /dev/null 2>&1 # Initialize distributed erlang on the system (i.e. epmd)
bash
d_bash_10977
--- +++ @@ -12,4 +12,4 @@ python3 -m venv ${LIBDIR}/venv $LIBDIR/venv/bin/pip3 install -U pip $LIBDIR/venv/bin/pip3 install doq -ln -s "${LIBDIR}/venv/bin/doq" "${LIBDIR}/doq" +ln -sfn "${LIBDIR}/venv/bin/doq" "${LIBDIR}/doq"
bash
d_bash_10978
--- +++ @@ -11,8 +11,8 @@ echo "Updating version" set -v -xcproj -p "XCDYouTubeKit.xcodeproj" write-build-setting DYLIB_CURRENT_VERSION "${VERSION}" -xcproj -p "XCDYouTubeKit Demo/XCDYouTubeKit Demo.xcodeproj" write-build-setting CURRENT_PROJECT_VERSION "${VERSION}" +sed -i "" "s/DYLIB_CURRENT_VERSION = .*;/DYLIB...
bash
d_bash_10979
--- +++ @@ -36,3 +36,5 @@ alias find='noglob find' alias git='noglob git' + +alias sudo='sudo --preserve-env=SSH_CLIENT,SSH_CONNECTION,SSH_TTY'
bash
d_bash_10980
--- +++ @@ -17,6 +17,6 @@ -installsuffix netgo \ -tags netgo \ -o _tmp/${BINARY} \ - src/cmd/${BINARY}/main.go + src/server/cmd/${BINARY}/main.go docker-compose build ${IMAGE} docker tag -f pachyderm_${IMAGE}:latest pachyderm/${IMAGE}:latest
bash
d_bash_10981
--- +++ @@ -5,7 +5,9 @@ # Environment variables export PATH="$PATH":~/miniconda3/bin # export PATH=/opt/local/bin:/opt/local/sbin:${PATH} +export CONDAENVS=~/miniconda3/envs +# Per-platform specifics if [ -n "`$SHELL -c 'echo $BASH_VERSION'`" ]; then # Assume Bash @@ -15,7 +17,9 @@ # Enable colors ...
bash
d_bash_10982
--- +++ @@ -5,7 +5,7 @@ echo "Creating symlinks to get our repo into the CircleCI GOPATH" mkdir -p "$REPO" -rmdir "$REPO" +rm -f "$REPO" ln -s "/home/ubuntu/${CIRCLE_PROJECT_REPONAME}" "${REPO}" readonly GLIDE_VERSION=0.10.2
bash
d_bash_10983
--- +++ @@ -21,7 +21,7 @@ for file in $(find build/bin -maxdepth 1 -type f); do echo -e $BLUE "Testing " $file $NOCOLOR if ! valgrind --error-exitcode=1 $file $ARGS; then - echo -e "Error: leaking memory" + echo -e $RED "Error:" $file "leaking memory" $NOCOLOR 1>&2 exit_code=1 else echo -e $BLUE $file ...
bash
d_bash_10984
--- +++ @@ -1,3 +1,4 @@ #!/bin/bash set -e # everything must succeed. pip install -r requirements.txt +git clone https://github.com/elifesciences/elife-poa-xml-generation.git ../elife-poa-xml-generation
bash
d_bash_10985
--- +++ @@ -7,13 +7,6 @@ echo "Installing Conda" curl -O https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh bash Miniconda2-latest-Linux-x86_64.sh -b -p $CONDA_INSTALLATION_PATH || echo "Conda already installed" - conda install -y conda-build -fi -conda install -y conda-build - -i...
bash
d_bash_10986
--- +++ @@ -19,5 +19,3 @@ INVOCATION_DIR=`pwd` ABSPATH=$(cd "$(dirname "${0}")"; pwd) - -echo "Invoking openengsb-maven-plugin"
bash
d_bash_10987
--- +++ @@ -24,4 +24,4 @@ ARGS="{mart: ${MART_NAME} }" # Call DBT to perform all transfers for this mart. -dbt run-operation perform_s3_transfers --args "${ARGS}" +dbt run-operation perform_s3_transfers --args "${ARGS}" --profile $DBT_PROFILE --target $DBT_TARGET --profiles-dir $WORKSPACE/analytics-secure/warehou...
bash
d_bash_10988
--- +++ @@ -4,22 +4,17 @@ set -e -x source ../kube/config.sh -source ../bash/ramdisk.sh # New service account we will create. Name must be the same for all clusters # that alert-to-pubsub runs in. SA_NAME=skia-alert-to-pubsub -cd /tmp/ramdisk - gcloud iam service-accounts create "${SA_NAME}" --display-nam...
bash
d_bash_10989
--- +++ @@ -1,16 +1,16 @@ node_modules/.bin/grpc_tools_node_protoc \ --js_out=import_style=commonjs,binary:./grpc \ --grpc_out=generate_package_definition:./grpc \ - -I ../../protos/cli/v1 \ + -I ../../protos/contexts/v1 \ -I ../../protos/containers/v1 \ - ../../protos/cli/v1/*.proto \ + ....
bash
d_bash_10990
--- +++ @@ -8,6 +8,7 @@ # Exclude the given directory path from Time Machine exclude_dir() { local dir_path="$1" + echo "Excluding $dir_path" sudo tmutil addexclusion -p "${dir_path%/}" }
bash
d_bash_10991
--- +++ @@ -8,8 +8,8 @@ guestinfo() { local key="guestinfo.$1" - local value=$(${VMWARE_TOOLS}/vmware-tools-daemon --cmd "info-get $key") - if [[ -n $value ]]; then + local value + if value=$(${VMWARE_TOOLS}/vmware-tools-daemon --cmd "info-get $key") ; then echo "$value" else echo >&2 "Missing ...
bash
d_bash_10992
--- +++ @@ -1,4 +1,7 @@ #!/bin/sh + +# Change directory to the directory of the script +cd `dirname $0` mainJar=binaries/drools-planner-examples-${project.version}.jar mainClass=org.drools.planner.examples.app.ExamplesApp
bash
d_bash_10993
--- +++ @@ -29,6 +29,9 @@ ln --force --symbolic \ ${root}/deps/dkjson/dkjson.lua \ ${root}/lua/dkjson.lua + sed -i -e \ + 's/always_try_using_lpeg = true/always_try_using_lpeg = false/' \ + ${root}/deps/dkjson/dkjson.lua cd .. if [ ! -d sha1 ]
bash
d_bash_10994
--- +++ @@ -13,7 +13,13 @@ methods=("debevec" "engel") for method in "${methods[@]}"; do - crf=`$exe $dir --verbosity 0 --no-visualization --print --method $method -o /tmp/crf` + crf=$($exe $dir --verbosity 0 --no-visualization --print --method $method -o /tmp/crf) + if [[ $? -ne 0 ]]; then + echo "Calibrat...
bash
d_bash_10995
--- +++ @@ -5,4 +5,4 @@ SRC_DIR="$(dirname "${BASH_SOURCE[0]}")" source "$SRC_DIR/env.sh" -go test -race -coverprofile=coverage.out -covermode=atomic ./... +go test -race -timeout="30s" -coverprofile="coverage.out" -covermode="atomic" ./...
bash
d_bash_10996
--- +++ @@ -1,3 +1,6 @@ +# give us access to ^Q +stty -ixon + # vi mode bindkey -v bindkey "^F" vi-cmd-mode @@ -10,4 +13,5 @@ bindkey "^P" history-search-backward bindkey "^Y" accept-and-hold bindkey "^N" insert-last-word +bindkey "^Q" push-line-or-edit bindkey -s "^T" "^[Isudo ^[A" # "t" for "toughguy"
bash
d_bash_10997
--- +++ @@ -1,4 +1,3 @@ export ALTERNATE_EDITOR="" export EDITOR="emacsclient -t" # $EDITOR should open in terminal -export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI with non-daemon as alternate - +export VISUAL="emacsclient -c -a emacs -s gui" # $VISUAL opens in GUI with non...
bash
d_bash_10998
--- +++ @@ -1,8 +1,11 @@ #!/bin/bash +set -x venv="nephoria_venv" neph_branch="oldboto" adminapi_branch="master" yum install -y python-devel gcc git python-setuptools python-virtualenv +rpm -qa | grep virtualenv # verify it was installed successfully above +yum repolist # check repos if [ ! -d adminapi ]; then ...
bash
d_bash_10999
--- +++ @@ -4,10 +4,11 @@ cd $REPO ST2VER=`grep version st2common/st2common/__init__.py | awk '{print $3}' | tr -d "'"` +CLIENTVER="${ST2VER}-${BUILD}" sed -i "s/Release: [0-9]\+/Release: ${BUILD_NUMBER}/g" */packaging/rpm/*.spec sed -i "s/Version:.*/Version: ${ST2VER}/g" */packaging/rpm/*.spec sed -i "s/(.*)/...
bash