document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_7200
--- +++ @@ -26,3 +26,4 @@ sleep 5 done info "All dependencies successfully installed" +rm -f "${EXPECTED_FILE}"
bash
d_bash_7201
--- +++ @@ -8,7 +8,7 @@ type pacman >/dev/null || exit 0 _install() { - local -r pkgs=( + local pkgs=( asp base-devel direnv @@ -35,10 +35,16 @@ watchexec xdg-utils zsh - # Steam + ) + + # Steam + pkgs+=( steam-native-runtime ...
bash
d_bash_7202
--- +++ @@ -1,5 +1,5 @@ #!/bin/sh wget https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.1.0/jmx_prometheus_javaagent-0.1.0.jar -wget http://apache.trisect.eu/cassandra/3.9/apache-cassandra-3.9-bin.tar.gz +wget http://archive.apache.org/dist/cassandra/3.9/apache-cassandra-3.9-bin.tar.gz w...
bash
d_bash_7203
--- +++ @@ -9,7 +9,7 @@ sysctl -w net.ipv4.ip_forward=1 # configure firewall -iptables -t nat -A POSTROUTING -s 10.99.99.0/24 -o eth0 -j MASQUERADE +iptables -t nat -A POSTROUTING -s 10.99.99.0/24 ! -d 10.99.99.0/24 -j MASQUERADE iptables -A FORWARD -s 10.99.99.0/24 -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN ...
bash
d_bash_7204
--- +++ @@ -1,7 +1,9 @@ alias dps="docker ps -a --format 'table {{.ID}} | {{.Status}} | {{.Names}}'" +alias dsp="docker system prune" ## Make permanent tee -a .bashrc <<EOF alias dps="docker ps -a --format 'table {{.ID}}\t{{.Status}}\t{{.Names}}'" +alias dsp="docker system prune" EOF
bash
d_bash_7205
--- +++ @@ -4,7 +4,7 @@ cmake -DCMAKE_BUILD_TYPE=Release \ -G Ninja \ -DCMAKE_PREFIX_PATH=${PREFIX} \ - -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + ${CMAKE_ARGS} \ -DCMAKE_INSTALL_PYTHONDIR=${SP_DIR} \ -DCMAKE_INSTALL_LIBDIR=lib \ ..
bash
d_bash_7206
--- +++ @@ -1,5 +1,5 @@ source /usr/local/share/chruby/chruby.sh -RUBIES=(~/.rbenv/versions/*) +RUBIES=(~/.rubies/*) chruby 1.9.3-p327
bash
d_bash_7207
--- +++ @@ -18,7 +18,9 @@ < $RCLOCAL > /home/pi/rc.local.new mv /home/pi/rc.local.new $RCLOCAL +chmod o+x $RCLOCAL +
bash
d_bash_7208
--- +++ @@ -1,19 +1,10 @@ #!/bin/bash - -if [ $# -lt 1 ]; -then - echo "USAGE: $0 classname [opts]" - exit 1 -fi base_dir=$(dirname $0)/.. -#CLASSPATH=$CLASSPATH:bin -for file in $base_dir/lib/*.jar; +for file in $base_dir/project/boot/scala-2.8.0/lib/*.jar; do - if [ ${file##*/} != "sbt-launch.jar" ]; then...
bash
d_bash_7209
--- +++ @@ -12,6 +12,10 @@ git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' } +parse_git_dirty() { + [[ -z $(git status --porcelain) ]] || echo "*" +} + prompt_data() { echo -n "[$?" @@ -23,9 +27,9 @@ fi # Git branch name. - # local branch=$(git branch 2> /dev/null | g...
bash
d_bash_7210
--- +++ @@ -1,4 +1,5 @@ #!/bin/sh +set -e cargo build --target=thumbv7em-none-eabi echo "Converting elf -> bin" arm-none-eabi-objcopy -O binary ./target/thumbv7em-none-eabi/debug/bare-metal-arm-rust ./target/thumbv7em-none-eabi/debug/bare-metal-arm-rust.bin
bash
d_bash_7211
--- +++ @@ -5,6 +5,6 @@ opam pin add --yes -n $(pwd) opam install --yes depext -opam depext libnqsb-tls +OPAMYES=1 opam depext libnqsb-tls opam install --deps-only --yes libnqsb-tls opam install --yes --verbose libnqsb-tls
bash
d_bash_7212
--- +++ @@ -5,8 +5,9 @@ ## Easiest way to keep dotfiles in version control ## 2015-08 + linkup() { - if [ -f $1 ]; then + if [ -f ~/.$1 ]; then echo "$1 already exists." else ln -s $(pwd)/$1 ~/.$1 @@ -16,13 +17,14 @@ linkup cvsrc linkup emacs +linkup gitconfig linkup kshrc link...
bash
d_bash_7213
--- +++ @@ -2,7 +2,7 @@ apt-get update apt-get upgrade -y -apt-get install -y python-pip +apt-get install -y python-pip optipng imagemagick poppler-utils pip install -U pip
bash
d_bash_7214
--- +++ @@ -5,7 +5,7 @@ export AWS_PROFILE=${AWS_PROFILE:-"development"} # Base CentOS 7 AMI and region -export SOURCE_AMI=${SOURCE_AMI:-"ami-31a8ca51"} +export SOURCE_AMI=${SOURCE_AMI:-"ami-a9b24bd1"} export SOURCE_AMI_REGION=${SOURCE_AMI_REGION:-"us-west-2"} # Version upgraded to in install_prereqs.sh export...
bash
d_bash_7215
--- +++ @@ -4,7 +4,7 @@ ### Merge Coverage results ### -istanbul-combine -d ${__COVERAGE_PATH} -r lcov -p both \ +istanbul-combine -d ${__COVERAGE_PATH} -r lcovonly -p both \ ${__ROOT_PATH}src/DeepNgRoot/Tests/Frontend/coverage/*/coverage-final.json \ ${__ROOT_PATH}src/DeepNgToDo/Tests/Frontend/coverage/*/...
bash
d_bash_7216
--- +++ @@ -2,14 +2,27 @@ # # Simple bash snippet that demonstrates how to run summarizer.py with many # input files (many files each with a list of words to summarize) while using -# the same distance matrix CSV. +# the same distance matrix CSV. See README.texttile first. +# +# Usage: bash example_many_input_fil...
bash
d_bash_7217
--- +++ @@ -17,4 +17,4 @@ exit 1 fi -mvn ${params} clean site:jar -DperformRelease=true -Dgpg.skip=false -Dgpg.keyname=${key} deploy +mvn ${params} clean site:jar -P sonatype-oss-release -Dgpg.keyname=${key} deploy
bash
d_bash_7218
--- +++ @@ -12,11 +12,12 @@ dotnet build -c Release src/NodaTime.sln -# Run the tests under dotCover -build/coverage.sh - dotnet test -c Release src/NodaTime.Test --filter=TestCategory!=Slow dotnet test -c Release src/NodaTime.Demo dotnet build -c Release src/NodaTime.TzdbCompiler dotnet test -c Release sr...
bash
d_bash_7219
--- +++ @@ -6,7 +6,7 @@ echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u322-b06/OpenJDK8U-jdk_x64_linux_hotspot_8u322b06.tar.gz" ;; java11) - echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.14%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.14_9.tar.gz" +...
bash
d_bash_7220
--- +++ @@ -1,4 +1,4 @@ -# Installation script for STAR version 2.2.0g +# Installation script for Tabix version 0.2.6 function plugin_install_artifact { id=$1 @@ -9,7 +9,7 @@ 'BINARIES' ) VERSION="0.2.6" - ${RESOURCES_FETCH_URL_SCRIPT} "http://downloads.sourceforge.net/proje...
bash
d_bash_7221
--- +++ @@ -1,6 +1,7 @@ #!/bin/bash outpipe=pipe-stdout +trap "rm -f $outpipe" 0 1 2 3 9 15 EXIT mkfifo $outpipe tee hal-output < $outpipe | egrep $(cat PIN_NAME_REGEX) | wc -l \
bash
d_bash_7222
--- +++ @@ -24,3 +24,7 @@ echo -e 'num_engine_workers=2\n' >> $localconf echo -e 'plugin_dirs=$HEAT_DIR/heat_integrationtests/common/test_resources\n' >> $localconf echo -e 'hidden_stack_tags=hidden\n' >> $localconf + +if [ "$ENABLE_CONVERGENCE" == "true" ] ; then + echo -e 'convergence_engine=true\n' >> $local...
bash
d_bash_7223
--- +++ @@ -1,9 +1,6 @@ #! /bin/bash base=$PWD - -# Script below uses obvious-ci to build AND UPLOAD the packages with recipes. -python affiliate-builder/build_recipes.py to_build=$(cat build_order.txt) cd bdist_conda
bash
d_bash_7224
--- +++ @@ -20,3 +20,6 @@ fi # Things will break if you don't have these terminfo changes applied on _every_ # host that you use; i.e., every box that you ssh into + +# Max line-length in man pages (also respected by Vim's man.vim plugin!) +export MANWIDTH=80
bash
d_bash_7225
--- +++ @@ -6,9 +6,7 @@ # variables bluemix login \ --apikey "${BLUEMIX_API_KEY}" \ - -a "${BLUEMIX_API_ENDPOINT}" \ - -o "${BLUEMIX_ORGANIZATION}" \ - -s "${BLUEMIX_SPACE}" + -a "${BLUEMIX_API_ENDPOINT}" bluemix cs init \ --host "${BLUEMIX_CONTAINER_SERVICE_HOST}"
bash
d_bash_7226
--- +++ @@ -24,8 +24,11 @@ # Set root variable. root="$(abs_dirname "$testroot/../..")" -# Set TMUXIFIER environment variable +# Set TMUXIFIER environment variable. TMUXIFIER="$root" + +# Setup PATH environment variable. +PATH="$root/bin:$root/libexec:$PATH" # Unset TMUX environment variable, tests assume the...
bash
d_bash_7227
--- +++ @@ -1,4 +1,8 @@ +VTE_SH=/etc/profile.de/vte.sh if [[ $TERM == xterm-termite ]]; then - . /etc/profile.d/vte.sh - whence __vte_osc7 > /dev/null && __vte_osc7 + if [[ -e $VTE_SH ]]; then + . $VTE_SH + whence __vte_osc7 > /dev/null && __vte_osc7 + fi fi +unset VTE_SH
bash
d_bash_7228
--- +++ @@ -14,7 +14,7 @@ # Install CMake echo "Installing CMake" -CMAKE_URL=https://www.cmake.org/files/v3.1/cmake-3.1.3-Linux-x86_64.tar.gz +CMAKE_URL=https://cmake.org/files/v3.4/cmake-3.4.3-Linux-x86_64.tar.gz CMAKE_FILE=/tmp/cmake.tar.gz wget --no-check-certificate $CMAKE_URL -O $CMAKE_FILE tar -xvf $CMAK...
bash
d_bash_7229
--- +++ @@ -1,8 +1,5 @@ #!/bin/bash set -euo pipefail - -# nbserver; installed via requirements.txt -jupyter serverextension enable --sys-prefix --py nbserverproxy # pycortex can't be installed from the repository at the moment # ${CONDA_DIR}/bin/pip install git+https://github.com/gallantlab/pycortex@data8
bash
d_bash_7230
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash set -e apt-get update -y -apt-get install -y curl bzip2 +apt-get install -y curl bzip2 build-essential python
bash
d_bash_7231
--- +++ @@ -14,9 +14,23 @@ } build () { + # rebuild dist and commit to clean git working directory npm run build:dist + git add . + git commit -m "Rebuild dist for npm version update" + + # create a version update commit npm version patch + + # squash the dist rebuild and version update c...
bash
d_bash_7232
--- +++ @@ -7,3 +7,7 @@ git status bash -c "[[ ! \"`git status --porcelain js`\" ]] || ( echo 'Uncommitted changes in built Vue files' && exit 1 )" + +bash -c "[[ ! \"`git status --porcelain package-lock.json`\" ]] || ( git diff package-lock.json && echo 'Uncommitted changes in package-lock.json' && exit 1 )" + +...
bash
d_bash_7233
--- +++ @@ -14,7 +14,7 @@ alias ll='ls -la' # Show hidden files only. -alias l.='ls -d .* --color=auto' +alias l='ls -d .* --color=auto' alias du1='du --max-depth=1' alias du2='du --max-depth=2'
bash
d_bash_7234
--- +++ @@ -1,9 +1,6 @@ #!/bin/bash set -ev -#------------------------------------------------------------------------------- -# Maybe speed up the build -#------------------------------------------------------------------------------- -npm set progress=false + #----------------------------------------------------...
bash
d_bash_7235
--- +++ @@ -23,15 +23,16 @@ mvn release:perform -Pall,full,release -echo "Please add the release notes in github" +echo "Please add the release notes and copy binaries (main, tck, tck-android, exotic) in github" open "https://github.com/easymock/objenesis/tags" pause # Release the jars now on central stagin...
bash
d_bash_7236
--- +++ @@ -4,7 +4,7 @@ NEUTRON_DIR="$BASE/new/neutron-fwaas" TEMPEST_DIR="$BASE/new/tempest" -SCRIPTS_DIR="/usr/local/jenkins/slave_scripts" +SCRIPTS_DIR="/usr/os-testr-env/bin" function generate_testr_results { # Give job user rights to access tox logs @@ -12,7 +12,7 @@ sudo -H -u $owner chmod o+rw...
bash
d_bash_7237
--- +++ @@ -5,11 +5,11 @@ # Install the built package conda create --yes -n docenv python=$CONDA_PY -conda activate docenv -conda install -yq --use-local yank-dev +source activate docenv +conda install -yq --use-local yank-dev --file docs/requirements.txt # Install doc requirements -conda install -yq --file do...
bash
d_bash_7238
--- +++ @@ -11,4 +11,4 @@ arch="arm" sed "s|<color>|${color}|" user-data.template.yml | sed "s|<user>|${USER}|" | sed "s|<ssh-key>|${key}|" | sed "s|<arch>|${arch}|"> user-data.generated -flash --hostname ${color} -u ./user-data.generated https://github.com/sealsystems/image-builder-rpi64/releases/download/v1.0.0...
bash
d_bash_7239
--- +++ @@ -1,5 +1,5 @@ #!/bin/sh -inotifywait -q -m -e close_write $1 | while read -r filename event; do curl -x POST $2 ; done +inotifywait -q -m -e close_write "$1" | while read -r filename event; do echo "[$(date +%s)] Trigger refresh"; curl -sSL -X POST "$2" > /dev/null; done
bash
d_bash_7240
--- +++ @@ -1,8 +1,15 @@ #!/bin/bash -if [[ -n "$(gofmt -l .)" ]]; then - echo "Bad formatting, run make format-gosuper to fix it." - exit 1 -else - echo "Formatting test passed." -fi +DIRS=`ls -l . | egrep '^d' | awk '{print $9}'` + +DIRS=`echo $DIRS | sed "s/Godeps//g"` + +# and finally loop over the cleaned up ...
bash
d_bash_7241
--- +++ @@ -13,22 +13,25 @@ done } -####### Note: Run this from "cachemulator/src" ####### +####### Note: Run this from "cachemulator/src" +####### Make sure "userfuncs.in" is in this directory. +####### ./cachemulator.sh <Makefile dir> <executable> <args ...> + +PROGDIR="$1" +ARGS="${*:2}" +TRACEFILE="user.tra...
bash
d_bash_7242
--- +++ @@ -22,16 +22,9 @@ shift if test "z$1" = "z"; then dbus_usage; fi -gconf_stop () -{ - local pid=$(dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID string:org.gnome.GConf | tail -n 1 | awk ' { print $2; } ') - kill -KILL $pid -} - ...
bash
d_bash_7243
--- +++ @@ -11,7 +11,7 @@ echo "[$AWS_NODE_NAME] - stopping node..." -docker-machine stop "$AWS_NODE_NAME" > /dev/null 2>&1 +docker-machine stop "$AWS_NODE_NAME" > /dev/null echo "[$AWS_NODE_NAME] - node stopped succesfully"
bash
d_bash_7244
--- +++ @@ -34,7 +34,7 @@ action "installing packages..." require_brew coreutils require_brew findutils -require_brew kdiff3 +#require_brew kdiff3 require_brew trash require_brew wget --with-iri
bash
d_bash_7245
--- +++ @@ -1,14 +1,16 @@ -minishift setup-cdk --force --default-vm-driver="kvm" home="/home/$USER/.minishift" if [ -z ${MINISHIFT_HOME+x} ] then - echo "MINISHIFT_HOME is not set"; + echo "MINISHIFT_HOME is $home"; else echo "MINISHIFT_HOME is set to '$MINISHIFT_HOME'" home="${MINISHIFT_HOME}" fi - +min...
bash
d_bash_7246
--- +++ @@ -1,2 +1,3 @@ ./gradlew --no-daemon clean && \ +./gradlew --no-daemon -Prelease :extensions:maven-profile:publish --info --scan && \ ./gradlew --no-daemon -Prelease --refresh-dependencies clean :cli:publish --info --scan
bash
d_bash_7247
--- +++ @@ -14,6 +14,7 @@ if [[ -d "$SCRIPT_DIR_ABS/SRC/$dirname" ]]; then ( cd "$SCRIPT_DIR_ABS/SRC/$dirname" (git reset --hard && + git clean -d -f -x && ../../update_to_latest.sh) || (cd .. && rm -rf "$dirname" &&
bash
d_bash_7248
--- +++ @@ -19,7 +19,7 @@ echo 'docker not running, restarting...' /Applications/Docker.app/Contents/MacOS/Docker --unattended & fi - if [ $attempts -gt 30 ]; then + if [ $attempts -gt 120 ]; then >&2 echo 'Failed to run docker' exit 1 fi;
bash
d_bash_7249
--- +++ @@ -6,6 +6,7 @@ sudo add-apt-repository -y ppa:george-edison55/cmake-3.x sudo apt-get update -qq sudo apt-get install -y cmake +sudo apt-get upgrade -y sudo apt-get install -y xorg-dev libglu1-mesa-dev sudo apt-get build-dep -y glfw3 sudo apt-get build-dep -y glfw
bash
d_bash_7250
--- +++ @@ -1,7 +1,4 @@ -test_block() { - coverage run `which nose2` $1.tests - coverage report --include="$1/*" -m -} +alias test_block="py.test --cov=. --cov-report term-missing -s tests" unused_blocks() { for blockcfg in etc/blocks/*; do
bash
d_bash_7251
--- +++ @@ -12,6 +12,16 @@ when=$(date +'%Y-%m-%d') +if [[ -d singularity/bind/r2dt/ ]]; then + rm -r singularity/bind/r2dt/ +fi + +mkdir singularity/bind/r2dt/data +pushd singularity/bind/r2dt/data +wget -O cms.tar.gz https://www.dropbox.com/s/3ie8kzb8ol658s0/cms.tar.gz?dl=1 +tar xf cms.tar.gz +popd + ln -s w...
bash
d_bash_7252
--- +++ @@ -1,6 +1,7 @@ export JAVA_HOME=/usr/lib/jvm/java-8-oracle -git clone https://github.com/anjackson/tinycdxserver.git +git clone https://github.com/nla/outbackcdx.git +git checkout 0.3.2 cd tinycdxserver/ mvn package || exit
bash
d_bash_7253
--- +++ @@ -1,5 +1,6 @@ #!/bin/bash -trsid=$1 -rake data/${trsid}.zip -gdal_translate /vsizip/data/${trsid}.zip/${trsid}.jpg ${trsid}.tif -gdaladdo ${trsid}.tif 2 4 6 8 16 +for trsid; do + rake data/${trsid}.zip + gdal_translate /vsizip/data/${trsid}.zip/${trsid}.jpg ${trsid}.tif + gdaladdo ${trsid}.tif 2 4...
bash
d_bash_7254
--- +++ @@ -22,6 +22,6 @@ cd /var/www/python-future/ unzip -o ~/python-future-html-docs.zip chmod a+r * html/* html/_static/* -cp ~/cheatsheet.pdf ./html/compatible-idioms.pdf +cp ~/cheatsheet.pdf ./html/compatible_idioms.pdf cp ~/cheatsheet.pdf ./html/cheatsheet.pdf
bash
d_bash_7255
--- +++ @@ -6,6 +6,10 @@ } server { + if ($host != "learn.code.org") { + rewrite /?(.*) http://learn.code.org/$1 permanent; + } + listen 80 default deferred; # server_name example.com; root ${DASH_ROOT}/public;
bash
d_bash_7256
--- +++ @@ -26,5 +26,5 @@ examples_process $OUT_DIR # Readme -cp Readme.txt $OUT_DIR +cp Readme.md $OUT_DIR
bash
d_bash_7257
--- +++ @@ -13,10 +13,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - - -chmod u+x ./tools/ant/bin/antRun -chmod u+x ./tools/ant/bin/ant # ----- Verify and Set Required Enviro...
bash
d_bash_7258
--- +++ @@ -6,5 +6,5 @@ v="$(cat version)" echo deploying new version: $v git tag -a v$v -m "Deployment from $now, v$v" -mrt deploy summit2014.reversim.com --settings settings.prod.json +mrt deploy summit2014.reversim.com --settings settings.json git push --tags
bash
d_bash_7259
--- +++ @@ -9,7 +9,7 @@ shift 2 cd $objdir/.. -test -d _virtualenv || virtualenv _virtualenv +test -d _virtualenv || virtualenv _virtualenv -p $(which $PYTHON) test -d $servo_root/src/test/wpt/metadata || mkdir -p $servo_root/src/test/wpt/metadata test -d $servo_root/src/test/wpt/prefs || mkdir -p $servo_root/s...
bash
d_bash_7260
--- +++ @@ -1,5 +1,3 @@ -set -e - # Add custom bin PATH="$HOME/.bin:$PATH"
bash
d_bash_7261
--- +++ @@ -1,4 +1,8 @@ #!/bin/bash +set -o errexit +set -o xtrace + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Environment defaults if [ -z "${USER}" ]; then @@ -37,6 +41,6 @@ python2.7-dev # Install pip -python ci/bamboo/get-pip.py +python ${DIR}/get-pip.py pip install --upgrade --igno...
bash
d_bash_7262
--- +++ @@ -34,10 +34,10 @@ # Build ALL the rpms rm -f $DIST_DIR/freeipa* +rm -f dist/rpms/freeipa* make -s all rpms 2>&1 # Copy the result into DIST_DIR -rm -f $DIST_DIR/freeipa* cp dist/rpms/freeipa* $DIST_DIR/ popd
bash
d_bash_7263
--- +++ @@ -1,8 +1,8 @@ #!/bin/bash -ex -pushd `dirname $0`/.. > /dev/null root=$(pwd -P) popd > /dev/null +mkdir -p $root/.m2/repository # gather some data about the repo source $root/ci/vars.sh @@ -11,7 +11,8 @@ src=$root/target/pz-jobcommon-LATEST.jar # Build Spring-boot JAR -[ -f $src ] || mvn clean ...
bash
d_bash_7264
--- +++ @@ -1,12 +1,13 @@ ./autogen.sh && ./configure $ENABLE_UCS4 --with-yaml && make && -make check && +make check #&& # check display names -if [[ -n ${ENABLE_UCS4+x} ]]; then - cd extra/generate-display-names && - if ! make; then - cat generate.log - false - fi -fi +# FIXME: temporarily...
bash
d_bash_7265
--- +++ @@ -12,7 +12,7 @@ esac cat > /etc/apt/sources.list.d/libfixposix.list <<EOF -deb http://download.opensuse.org/repositories/home:/sionescu/Debian/ ./ +deb http://download.opensuse.org/repositories/home:/sionescu/Debian_Old/ ./ EOF cat > /etc/apt/preferences.d/libfixposix <<EOF
bash
d_bash_7266
--- +++ @@ -2,8 +2,10 @@ # Script called by Travis to install the build environment for CUDArrays. This script must be called with sudo. set -e +set -x # Install CUDA +echo "Installing CUDA" CUDA_URL=http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run CUDA_FILE=/...
bash
d_bash_7267
--- +++ @@ -12,7 +12,10 @@ return 0 fi -echo "running overrideDbSample.sh $ODMVERSION +++++++++" +echo "running overrideDbSample.sh" export DBVERSIONTOCOPY=8.10.0 +if [ -d "/db810" ] +then rm /upload/* -cp /db810/* /upload/ +cp /db810/* /upload/ +fi
bash
d_bash_7268
--- +++ @@ -2,9 +2,9 @@ # Create Rabbitmq user ( rabbitmqctl wait --timeout 60 $RABBITMQ_PID_FILE ; \ -rabbitmqctl add_user $RABBITMQ_USER $RABBITMQ_PASSWORD 2>/dev/null ; \ -rabbitmqctl set_user_tags $RABBITMQ_USER administrator ; \ -rabbitmqctl set_permissions -p / $RABBITMQ_USER ".*" ".*" ".*" ; \ +rabbitmqct...
bash
d_bash_7269
--- +++ @@ -8,21 +8,21 @@ # Never delete the juju-ci4 control bucket. CI_CONTROL_BUCKET=$(juju get-env -e juju-ci4 control-bucket) -# This could be 2 days ago because hours are not involved. -YESTERDAY=$(($(date +"%y%m%d") - 2)) +# This could be almost 3 hours ago. +HOURS_AGO=$(($(date +"%Y%m%d%H") - 2)) # Get...
bash
d_bash_7270
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash + +cd /home/ubuntu/software/__WonderBot__ mkdir -p logs
bash
d_bash_7271
--- +++ @@ -10,6 +10,7 @@ export PIP_PACKAGES="zmq" export GOAL="install" export BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --enable-werror" +export TEST_RUNNER_EXTRA="wallet_disable" # Only run wallet_disable as a smoke test, see https://github.com/bitcoin/bitcoin/pull/17240#issuecomment-546022121 why ...
bash
d_bash_7272
--- +++ @@ -1,11 +1,17 @@ #!/usr/bin/env bats -@test "requests from same client are routed to a single server" { +setup() { pushd ./scala-e2e sbt package popd - run bash -c "java -jar ./scala-e2e/target/scala-2.10/smartRouterTest.jar" # TODO pass hostnanme:port for nginx + pushd ../datt-sampleapp + s...
bash
d_bash_7273
--- +++ @@ -12,6 +12,9 @@ pip-compile requirements.in -o requirements.txt # run the tests with this config + +mkdir travisdb +DOCKER_POSTGRES_DATA=./travisdb docker-compose -f dev-docker-compose.yml run django pytest -vv cd ../
bash
d_bash_7274
--- +++ @@ -14,7 +14,7 @@ git checkout --force ${branch} if [ $(git rev-list --max-count=1 ${branch}) != $(git rev-list --max-count=1 origin/${branch}) ]; then - php bin/artisan down --message="Updating" --retry="300" + php bin/artisan down --message="Updating" --retry=300 git reset --hard origin/${b...
bash
d_bash_7275
--- +++ @@ -10,7 +10,7 @@ setup_git() { git config user.email "travis@travis-ci.org" git config user.name "Travis CI" - git remote add public "${REMOTE_HOST_GIT_URL}" + git remote add deploy "${REMOTE_HOST_GIT_URL}" git config push.default simple git remote -v yes | cp -rf .travis/public-gitignore ....
bash
d_bash_7276
--- +++ @@ -5,5 +5,6 @@ cd $(dirname $0) docker run --rm -v "$(pwd):/src:Z" -e PYTHONPATH=/src cdrx/pyinstaller-windows:python2 +docker run --rm -v "$(pwd):/src:Z" --entrypoint /bin/bash cdrx/pyinstaller-windows:python2 -c "chown -R $(id -u $USERNAME) /src/dist" zip dist/pynetworktables2js-$(git describe --tag...
bash
d_bash_7277
--- +++ @@ -1,38 +1,31 @@ #!/bin/bash -set -eo pipefail -#set -x +set -xeo pipefail -GREENPLUM_INSTALL_DIR=/usr/local/greenplum-db-devel +install_greenplum() { + local bin_gpdb=$1 + local install_dir=/usr/local/greenplum-db-devel -compare_bin_gpdb_version_with_gpdb_src() { - local bin_gpdb=$1 + rm -rf "$inst...
bash
d_bash_7278
--- +++ @@ -8,7 +8,7 @@ if [[ "$1" == "" ]]; then echo "Starting elasticsearch" #exec gosu elk elasticsearch -Des.network.host=0.0.0.0 & - exec gosu elk elasticsearch -p /opt/elasticsearch/elasticsearch.pid -Des.network.host=0.0.0.0 & + exec gosu elk elasticsearch -d -p /opt/elasticsearch/elasticsear...
bash
d_bash_7279
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -# + # Copyright 2018 The Kubernetes Authors All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License");
bash
d_bash_7280
--- +++ @@ -4,7 +4,7 @@ srcdir=`dirname $0` test -z "$srcdir" && srcdir=. -if test ! -f $srcdir/configure.ac -o ! -f $srcdir/adg/adg.h; then +if test ! -f $srcdir/configure.ac -o ! -f $srcdir/src/adg/adg.h; then echo "**Error**: '$srcdir' does not look like the top-level adg directory" exit 1 fi
bash
d_bash_7281
--- +++ @@ -12,3 +12,6 @@ docker build -t homepage dist/image/ # Tag with the appropriate version docker tag homepage gcr.io/ianlewis-org/homepage:v${VERSION} + +# Export to Container Registry +gcloud preview docker push gcr.io/ianlewis-org/homepage:v${VERSION}
bash
d_bash_7282
--- +++ @@ -13,4 +13,6 @@ python3 -m pip install -r /vagrant/requirements.txt # Add host keys to `known_hosts` +mkdir -p ~/.ssh/ +touch ~/.ssh/known_hosts ssh-keyscan head >> ~/.ssh/known_hosts
bash
d_bash_7283
--- +++ @@ -26,7 +26,7 @@ exit 1 fi if $VALID && $REVSIG; then - echo "$INPUT" | gpg --trust-model always "$@" | grep "\[GNUPG:\] \(NEWSIG\|SIG_ID\|VALIDSIG\)" 2>/dev/null + echo "$INPUT" | gpg --trust-model always "$@" | grep "^\[GNUPG:\] \(NEWSIG\|SIG_ID\|VALIDSIG\)" 2>/dev/null echo "$GOODREVSIG" else ech...
bash
d_bash_7284
--- +++ @@ -18,8 +18,8 @@ xcode-select --install &>/dev/null if [ $? -eq 0 ]; then - log "XCode command line tools will be installed in a separate window" - read -p "Press RETURN when the installation is complete..." + log "Installation of XCode command line tools will start in a separate window" + read -p "P...
bash
d_bash_7285
--- +++ @@ -1,4 +1,10 @@ #!/bin/sh + +if [ "$#" -ne 2 ]; then + echo "Usage:\n ./makeRelease 1.2.3rc0 Directory/" + exit 1 +fi + set -e DEST=$2 VERSION_NAME=$1 @@ -6,6 +12,6 @@ # need to get rid of this so that it gets regenerated # probably a way to solve this in Gradle too... rm -f app/src/main/assets...
bash
d_bash_7286
--- +++ @@ -14,9 +14,11 @@ phantomjs scraper.js Rscript geocode.R out.txt $MAPQUEST_KEY +DATEDIR=`date +%Y/%m-%d` + # Make sure all the files are copied up for i in out-*.csv; do - aws s3 cp $i s3://dallas-police/ + aws s3 cp $i s3://dallas-police/$DATEDIR/ done # Keep a pointer to the latest one both...
bash
d_bash_7287
--- +++ @@ -35,7 +35,8 @@ rm -rf $(ls $DIR) # copy them over -cp $TMP_DIR/doc/html/{ $(ls -dm */ $TMP_DIR/doc/html) } $DIR/ +cd $TMP_DIR +ls $TMP_DIR/doc/html | xargs cp {} $DIR/ # delete the tempory directory rm -r $TMP_DIR
bash
d_bash_7288
--- +++ @@ -1,2 +1,5 @@ -export NVM_DIR="$HOME/.nvm" -. "$(brew --prefix nvm)/nvm.sh" + +nvm() { + export NVM_DIR="$HOME/.nvm" + source "$(brew --prefix nvm)/nvm.sh" +}
bash
d_bash_7289
--- +++ @@ -1,8 +1,9 @@ #!/bin/bash PHAR_NAME=dock-cli -MANIFEST_BASE_URL=http://mattketmo.github.io/dock-cli +MANIFEST_BASE_URL=http://sroze.github.io/dock-cli set -e + if [ $# -ne 1 ]; then echo "Usage: `basename $0` <tag>" @@ -26,7 +27,7 @@ cp $PHAR_NAME.phar downloads/$PHAR_NAME-${TAG}.phar git add d...
bash
d_bash_7290
--- +++ @@ -17,6 +17,14 @@ EOL echo "Installed the Awesome bash configuration successfully! Enjoy :-)" + + echo "Install the history stat cron job for $(whoami) to get the history stats every month" + crontab -u $(whoami) -l > mycron + echo "0 0 1 * * bash ~/.bash_awesome/histats.sh" >> mycron + ...
bash
d_bash_7291
--- +++ @@ -6,7 +6,7 @@ echo "https://github.com/bell-sw/Liberica/releases/download/8u333+2/bellsoft-jdk8u333+2-linux-amd64.tar.gz" ;; java11) - echo "https://github.com/bell-sw/Liberica/releases/download/11.0.15+10/bellsoft-jdk11.0.15+10-linux-amd64.tar.gz" + echo "https://github.com/bell-sw/Liberica/rel...
bash
d_bash_7292
--- +++ @@ -11,12 +11,14 @@ sh build-libsodium.sh # MEGAchat deps +if [ "$1" == "--enable-chat"]; then sh build-expat.sh sh build-libevent2.sh sh build-libws.sh sh build-webrtc.sh sh build-megachat.sh +fi echo "Done."
bash
d_bash_7293
--- +++ @@ -43,3 +43,4 @@ alias ip="ifconfig -a | grep -o 'inet6\? \(\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)\|[a-fA-F0-9:]\+\)' | sed -e 's/inet6* //' | sort | sed 's/\('$(ipconfig getifaddr en1)'\)/\1 [LOCAL]/'" alias dotstar="cd ${HOME}/.dot-star && l" +alias extra="vim ${HOME}/.dot-star/bash/extra.sh"
bash
d_bash_7294
--- +++ @@ -2,8 +2,9 @@ set -uex cd /tmp -git clone --depth=0 https://github.com/plt/racket.git -cd racket/src +curl -O https://github.com/plt/racket/archive/master.tar.gz +tar -zxf master.tar.gz +cd racket-master/src ./configure --prefix=/app/vendor make -sj30 -make install +make -sj30 install
bash
d_bash_7295
--- +++ @@ -27,7 +27,7 @@ # Run the tests -organizations="MITxPRO" +organizations="" for organization in ${organizations}; do export ORG=${organization}
bash
d_bash_7296
--- +++ @@ -10,7 +10,7 @@ done } -DOCKER_IMAGE=vespaengine/vespa-dev:vespa7 +DOCKER_IMAGE=vespaengine/vespa-dev:vespa7-java11 bell & docker run --rm -v ${HOME}/.m2:/root/.m2 -v ${HOME}/.ccache:/root/.ccache -v $(pwd):/source \
bash
d_bash_7297
--- +++ @@ -5,6 +5,18 @@ # Make sure the correct version of pyinstall is installed pip install "https://github.com/pyinstaller/pyinstaller/archive/1e38dcb5916f3fc22089e169ff1ea61c05d66ad0.zip" + +# Make sure the correct version of setuptools is present +value=$(pip list | grep setuptools) +echo $value +version="...
bash
d_bash_7298
--- +++ @@ -1,7 +1,22 @@ +# Make sure you have postgresql contrib installed +# &> sudo apt-get update +# +# Find out which version of PG you’re running +# $> pg_lsclusters +# +# PostgreSQL 9.3: +# $> sudo apt-get install postgresql-contrib-9.3 +# +# PostgreSQL 9.4: +# $> sudo apt-get install postgresql-contrib-9.4 + ...
bash
d_bash_7299
--- +++ @@ -23,3 +23,4 @@ done < $CHRUBY_DIR/rubies.txt chruby $(cat ~/.ruby-version) +gem install bundler
bash