document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_19400
--- +++ @@ -1,10 +1,10 @@ # Add platform specific directories to path -dir=/lib/platform/`cat /etc/onl_platform` +dir=/lib/platform-config/`cat /etc/onl_platform` if [ "`id -u`" -eq 0 ]; then + PATH="$PATH:$dir/bin:$dir/sbin" +else PATH="$PATH:$dir/bin" -else - PATH="$PATH:$dir/bin:$dir/sbin" fi ex...
bash
d_bash_19401
--- +++ @@ -7,6 +7,7 @@ 'endpoint' : "/api", 'provider' : "$PROVIDER", 'client_id' : "$CLIENT_ID", + 'gitlab_url' : "$GITLAB_URL" 'colors' : {} });
bash
d_bash_19402
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -e -u -x -grep --ignore-case --only-matching --no-filename '<img[^/]*src=\"[^">]*"' *.opt \ +grep --ignore-case --only-matching --no-filename '<img[^/]*src=\"[^">]*"' -r --include=*.opt . \ | sed 's/<img.*src="//g' \ | sed 's/"$//g' \ | sort -u \
bash
d_bash_19403
--- +++ @@ -36,5 +36,7 @@ php -d phar.readonly=0 $buildscript && \ touch --date="`git log -n1 --pretty=%ci $version`" $buildphar && \ mv $buildphar "$root/$target/download/$version/$buildphar" + else + touch --date="`git log -n1 --pretty=%ci $version`" "$root/$target/download/$ver...
bash
d_bash_19404
--- +++ @@ -29,5 +29,5 @@ # Load Pwndbg into GDB on every launch. if ! grep pwndbg ~/.gdbinit &>/dev/null; then - echo "source $PWD/pwndbg/gdbinit.py" >> ~/.gdbinit + echo "source $PWD/gdbinit.py" >> ~/.gdbinit fi
bash
d_bash_19405
--- +++ @@ -9,7 +9,7 @@ sed -i "s/REPLACEME_USERNAME/$STEAM_USERNAME/" steamer.txt sed -i "s/REPLACEME_PASSWORD/$STEAM_PASSWORD/" steamer.txt sed -i "s/REPLACEME_GID/$STEAM_GID/" steamer.txt -sed -i "s/REPLACEME_FORCE_INSTALL/$STEAM_FORCE_INSTALL/" steamer.txt +sed -i "s!REPLACEME_FORCE_INSTALL!$STEAM_FORCE_INSTAL...
bash
d_bash_19406
--- +++ @@ -1,5 +1,11 @@ #!/bin/sh -export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dsun.java2d.xrender=true' +export _JAVA_OPTIONS=" + -Dawt.useSystemAAFontSettings=on + -Dswing.aatext=true + -Dsun.java2d.xrender=true + -Didea.config.path=${XDG_CONFIG_HOME}/android-studio/c...
bash
d_bash_19407
--- +++ @@ -1,14 +1,14 @@ #!/usr/bin/sh + +# Undo any changes +git submodule deinit -f . +git submodule update --init cd modules/bootstrap -# Undo any changes -git reset --hard -rm scss/customvars.scss - # Fetch updates -git checkout master -git pull --rebase +git checkout master # Still needed? +#git pull --r...
bash
d_bash_19408
--- +++ @@ -1,13 +1,9 @@ #!/usr/bin/env bash - -NAME="$(uname -s)" -RELEASE="$(uname -r)" cd "$(dirname "$0")/.." echo -if ([[ "$RELEASE" = *'boot2docker' ]] || [[ "$RELEASE" = *'moby' ]]) && \ - [[ "$1" = 'docker' ]] ; then +if grep -qa docker /proc/1/cgroup && [[ "$1" = 'docker' ]] ; then echo 'Y...
bash
d_bash_19409
--- +++ @@ -5,5 +5,6 @@ cd $dotfiles_directory for file in $files; do - ln -vsf $dotfiles_directory/$file ~/.$file + rm -rfv ~/.$file + ln -sfv $dotfiles_directory/$file ~/.$file done
bash
d_bash_19410
--- +++ @@ -13,15 +13,15 @@ # Upload one by one to avoid timeout twine upload dist/* -u "$PYPIUSER" -p "$PYPIPW" 2>&1 | tee twine_output.txt if [ "${PIPESTATUS[0]}" -ne 0 ]; then - SEARCH_STR="500 Server Error" - if grep -q "$SEARCH_STR" twine_output.txt; then - echo "Server error 500" - exit 1...
bash
d_bash_19411
--- +++ @@ -1,6 +1,6 @@ function find_binary { - binpath=`find .stack-work/install -type d -name bin | head -n1` + binpath=`find .stack-work/install -type d -name bin | sort | tail -n1` echo "$binpath"/$1 }
bash
d_bash_19412
--- +++ @@ -9,9 +9,10 @@ function is_in_perm_list() { local comm=$1 shift - local arr=$@ + local arr=($@) + echo $arr - if [ ${arr[0]} = "\/" ] + if [ $arr = "\/" ] then return 0 fi @@ -21,7 +22,7 @@ if (echo $comm | grep -wq $i) then retur...
bash
d_bash_19413
--- +++ @@ -10,8 +10,8 @@ cd $CODEC git fetch --all +git reset --hard git checkout $COMMIT -git reset --hard git checkout -b t-$TESTNAME git clean -d -x -f
bash
d_bash_19414
--- +++ @@ -4,6 +4,7 @@ BIN="python train_net.py" OUTPUT="instant_test_output" NUM_GPUS=2 +SOLVER_IMS_PER_BATCH=$((NUM_GPUS * 2)) CFG_LIST=( "${@:1}" ) if [ ${#CFG_LIST[@]} -eq 0 ]; then @@ -20,7 +21,7 @@ echo "Running $cfg ..." echo "==================================================================...
bash
d_bash_19415
--- +++ @@ -1,10 +1,11 @@ #!/bin/bash # Run updates -sudo apt-get update; -sudo apt-get upgrade; -sudo apt-get install -y curl python python-dev; - +sudo export DEBIAN_FRONTEND=noninteractive; +DEBIAN_FRONTEND=noninteractive; +sudo apt-get -o Dpkg::Options::="--force-confnew" -q -y update; +sudo apt-get -o Dpkg:...
bash
d_bash_19416
--- +++ @@ -4,24 +4,15 @@ PACKAGES="dev-lang/python dev-python/pip" #KEEP_HEADERS=true -configure_bob() -{ - # since 20150709 setuptools on build container fails the build for pip package, looks like a bug - # in the meantime let's reinstall setuptools for python3_4 on the build container to fix the issue -...
bash
d_bash_19417
--- +++ @@ -29,3 +29,10 @@ npm install ./node_modules/.bin/gulp test:node + +nvm install 6 + +rm -rf node_modules +npm install + +./node_modules/.bin/gulp test:node
bash
d_bash_19418
--- +++ @@ -35,8 +35,11 @@ rm -rf installed-sst fi -svn co svn://svn.pdos.csail.mit.edu/uia/trunk/uia/sst +#svn co svn://svn.pdos.csail.mit.edu/uia/trunk/uia/sst +git clone git@ahoy:sst.git cd sst +git branch stanford origin/stanford +git checkout stanford misc/setup ./configure --prefix=${deps_dir}/installe...
bash
d_bash_19419
--- +++ @@ -23,8 +23,8 @@ fi if [ -e "$1_recon2_output.tar.xz" ]; then - tar xvaf $1_recon2_ouput.tar.xz - rm $1_recon2_ouput.tar.xz + tar xvaf $1_recon2_output.tar.xz + rm $1_recon2_output.tar.xz fi recon-all \ -s $1 ...
bash
d_bash_19420
--- +++ @@ -8,4 +8,5 @@ . $HOME/.dotfiles/cron/cron.env +bundle install --quiet bundle exec pod repo update master --silent
bash
d_bash_19421
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash # Download and install google chrome -wget https://dl.google.com/linux/direct/google-chrome-stable_current.amd64.deb -P ~/downloads +wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/downloads dpkg -i google-chrome*.deb apt-get install -f
bash
d_bash_19422
--- +++ @@ -4,7 +4,7 @@ MIMIC_DIR=mimic CORES=$(nproc) -MIMIC_VERSION=1.2.0.1 +MIMIC_VERSION=1.2.0.2 # for ubuntu precise in travis, that does not provide pkg-config: pkg-config --exists icu-i18n || export CFLAGS="$CFLAGS -I/usr/include/x86_64-linux-gnu"
bash
d_bash_19423
--- +++ @@ -9,16 +9,18 @@ DIST="restheart-platform-$VERSION" -echo "###### Cleaning up..." +echo ""###### Packaging RESTHeart Platform $VERSION" + +echo "###### Cleaning up $DIST" rm -rf "$DIST" "$DIST.zip" -echo "...Done." +echo ""######...Done." -echo "###### Copying files to $DIST..." +echo "###### Copying...
bash
d_bash_19424
--- +++ @@ -1,16 +1,22 @@ #!/bin/sh -# Tested with: -# - Ubuntu: -# - 12.04 (x64, Travis) -# - 14.04 (x64, Vagrant) -# - 14.10 (x64) -# - Debian: -# - 6.0.10 "squeeze" (x64) -# - 7.8 "wheezy" (x64) -# - 8.0 "jessie" (x64) -# - Raspbian: -# - 7.8 (armhf) +# Current version tested w...
bash
d_bash_19425
--- +++ @@ -1,8 +1,25 @@ apt-get install -y apt-transport-https lsb-release ca-certificates -wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg -echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list + +if [ ! -e /etc/apt/sources.list.d/sury.php...
bash
d_bash_19426
--- +++ @@ -2,6 +2,7 @@ KERNEL_VER=($(ls /lib/modules)) if [ ! "${#KERNEL_VER[*]}" -eq 1 ]; +then error "More than 1 kernels are present: "${KERNEL_VER[*]} error "You will need to create initramfs manually." return 1;
bash
d_bash_19427
--- +++ @@ -13,7 +13,7 @@ LARVA_DIR=$1 TADPOLE_DIR=$2 -declare -a DIRS=("/hw/mcu/native" "/hw/bsp/native" "/hw/hal" "/libs/os" "libs/testutil" "/compiler/sim") +declare -a DIRS=("/hw/mcu/native" "/hw/bsp/native" "/hw/hal" "/libs/os" "libs/testutil" "/compiler/sim" "/libs/util") for dir in "${DIRS[@]}" do ...
bash
d_bash_19428
--- +++ @@ -1,9 +1,12 @@ -#!/bin/bash +#put this file in your bashrc -if [ -p commands ]; then - rm commands -fi +function cat_fifo(){ + fifo="$1" + if [ -p $fifo ]; then + rm $fifo + fi -mkfifo commands + mkfifo $fifo -while true; do sh -c '$(cat commands)'; done + while true; do sh -c "$(cat ...
bash
d_bash_19429
--- +++ @@ -35,7 +35,10 @@ casapy --nogui -c /home/ekoch/canfar_scripts/split/casanfar_split.py ${1}/products/ ${2} -echo 'Copy files to mount' -cp -a ${TMPDIR}/proc/* ${TMPDIR}/vos/${1}/products/ -echo 'Unmount' sudo fusermount -u ${TMPDIR}/vos +echo 'Mount VOS' +mountvofs --vospace vos:MWSynthesis/VLA/14B-088...
bash
d_bash_19430
--- +++ @@ -2,6 +2,6 @@ sudo aptitude update || true -for PKG in texlive texlive-latex-extra darcs automake fakeroot python-epydoc python-setuptools debhelper dh-ocaml python-virtualenv; do +for PKG in texlive texlive-latex-extra darcs git automake fakeroot python-epydoc python-setuptools debhelper dh-ocaml pyth...
bash
d_bash_19431
--- +++ @@ -1 +1,4 @@ +#! /usr/bin/env bash +set -e chmod 755 /usr/lib/ipfs-station/resources/app/node_modules/go-ipfs-dep/go-ipfs/ipfs +echo "Changed permissions correctly"
bash
d_bash_19432
--- +++ @@ -4,5 +4,5 @@ docker build -f $1 -t $2 . # RUN echo Running... -docker run -p $3 -d $4 +docker run -p $3 $4 exit 0
bash
d_bash_19433
--- +++ @@ -3,7 +3,7 @@ export STATE_STORAGE=s3 export STATE_BUCKET=${KOPS_STATE_STORE} -export STATE_KEY=${PROJECT_NAME}/${CLUSTER_NAME}/tfstate/ +export STATE_KEY=${PROJECT_NAME}/${CLUSTER_NAME}/tfstate export STATE_REGION=${AWS_DEFAULT_REGION} echo "configuring remote state ${STATE_STORAGE}://${STATE_BUCKE...
bash
d_bash_19434
--- +++ @@ -27,7 +27,9 @@ brew install openjpeg brew install dcmtk brew install qt -brew install pybind11 +brew upgrade python +brew install pybind11 numpy +brew link --overwrite numpy if [ "$LINKSTATIC" == "1" ] ; then brew install little-cms2 tinyxml szip brew install homebrew/dupes/bzip2
bash
d_bash_19435
--- +++ @@ -26,10 +26,6 @@ neutron-db-manage --config-file=/etc/neutron/neutron.conf upgrade head; glance-manage db upgrade; cinder-manage db sync" - ssh $dst_node "echo \"update routers set admin_state_up=0; -update ports set admin_state_up=0 where device_owner in ('none:compute', -'network:router_interface', ...
bash
d_bash_19436
--- +++ @@ -2,8 +2,8 @@ set -eu -alias duet="git duet --global" -alias solo="git solo --global" +alias duet="git duet" +alias solo="git solo" alias dci="git duet-commit" GIT_DUET_ROTATE_AUTHOR=1
bash
d_bash_19437
--- +++ @@ -24,7 +24,7 @@ # Apply custom patch to convert strings to proper errors. echo "Applying patches..." -curl -L -s https://patch-diff.githubusercontent.com/raw/googlei18n/libphonenumber/pull/690.patch | git apply -p4 --directory=src +curl -L -s https://gist.githubusercontent.com/ruimarinho/d52c0cdde7e4fcd...
bash
d_bash_19438
--- +++ @@ -1,14 +1,17 @@ #!/bin/bash -DOTFILES=$(pwd) +DOTFILES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DOTFILES_OLD=$HOME/dotfiles_old +DOTFILES_LIST=dotfiles.txt +THIS_SCRIPT=$(basename $0) -# Create a list of all files (excluding git files) in the current directory. -find . * -type f | grep -v "...
bash
d_bash_19439
--- +++ @@ -7,7 +7,11 @@ COMMAND="java -jar ${MD_JAR} -cp $RT_JAR" echo "Running command: ${COMMAND}" -date +START=`date` $COMMAND -date +END=`date` + +echo "Started: ${START}" +echo "Ended: ${END}" + exit 0
bash
d_bash_19440
--- +++ @@ -1,10 +1,24 @@ #!/bin/sh -e # -# release-notes.sh +# ReleaseNotes.sh +# buildtools +# # Emit code-level release notes since the last tag. # # Created by Wincent Colaiuta on 27 November 2007. # Copyright 2007 Wincent Colaiuta. +# This program is free software: you can redistribute it and/or modify +# ...
bash
d_bash_19441
--- +++ @@ -3,6 +3,7 @@ log "cleaning up" svccfg -s zoneinit 'setprop application/done = true' +svcadm refresh zoneinit rm -f ${ZONECONFIG} log "scheduling an immediate reboot"
bash
d_bash_19442
--- +++ @@ -8,12 +8,17 @@ cp -R build/docs/javadoc $HOME/javadoc-latest - 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/ReadyTalk/avian gh-pages > /dev/null + if test -d gh-p...
bash
d_bash_19443
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=0.3 +VERSION=0.4 TMPDIR=/tmp/google-api-php-client RELFILE=/tmp/google-api-php-client-${VERSION}.tar.gz @@ -11,6 +11,8 @@ cd $TMPDIR find . -name ".*" -exec rm -rf {} \; &>/dev/null find . -name "makeRelease.sh" -exec rm -rf {} \; &>/dev/null +find . -name "local...
bash
d_bash_19444
--- +++ @@ -40,7 +40,7 @@ --host="${DEST_HOST}" \ "${DEST_NAME}" -echo -e "Loading export into target database." +echo -e "Loading export into destination database." mysql \ --user="${DEST_USER}" \ --password="${DEST_PASS}" \
bash
d_bash_19445
--- +++ @@ -8,24 +8,26 @@ exit 0 fi -device=$(pactl info | grep 'Default Sink' | cut -f 3 -d ' ') - if [ "$1" = 'mute' ]; then - pactl set-sink-mute "${device}" toggle + pactl set-sink-mute @DEFAULT_SINK@ toggle else - pactl set-sink-volume "${device}" "$1" + pactl set-sink-volume @DEFAULT_SINK...
bash
d_bash_19446
--- +++ @@ -8,8 +8,8 @@ set -o errexit if [ `getconf LONG_BIT` != '64' ]; then - echo "Install failed, you must have a 64 bit OS." - exit 1 + echo "Install failed, you must have a 64 bit OS." + exit 1 fi TMPDIR="." ./foreign_modules/perlbrew_install.sh
bash
d_bash_19447
--- +++ @@ -3,7 +3,7 @@ # Userscripts extractor # * Extract *.user.js from Firefox profile directory -FXPROFILE=${USERPROFILE}\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles +FXPROFILE=${USERPROFILE//\\/\/}/AppData/Roaming/Mozilla/Firefox/Profiles USERJSEXT=*.user.js
bash
d_bash_19448
--- +++ @@ -1,2 +1,2 @@ -export PATH="$HOME/bin:./bin:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH" +export PATH="$HOME/bin:$ZSH/bin:./bin:/usr/local/bin:/usr/local/sbin:$PATH" export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
bash
d_bash_19449
--- +++ @@ -6,12 +6,18 @@ local S="$jagen_FS" A= A="$A$S-DCMAKE_TOOLCHAIN_FILE=$jagen_src_dir/android-cmake/android.toolchain.cmake" A="$A$S-DANDROID_STANDALONE_TOOLCHAIN=${jagen_target_dir}/${jagen_target_toolchain}" + # sometimes it is empty, this is workaround + A="$A$S-DCMAKE_CXX_COMPILER=\${...
bash
d_bash_19450
--- +++ @@ -10,3 +10,6 @@ jagen_kernel_extra_modules_install_dir="$jagen_kernel_modules_install_dir/extra" export KERNEL_SRC="$jagen_kernel_dir" + +jagen_target_board="${jagen_target_board:-ast2xx}" +
bash
d_bash_19451
--- +++ @@ -22,11 +22,10 @@ cd $_BUILDDIR for i in *; do if [ -n $i ] && [ -d $i ]; then - enter_do_build $i & + enter_do_build $i fi done cd $start_build_CURR_PWD } start_build -while true; do sleep 300; done
bash
d_bash_19452
--- +++ @@ -33,6 +33,6 @@ pushd vmware-tools-distrib >/dev/null - sudo ./vmware-install.pl -d ${VMWARE_INSTALL_OPTIONS} +sudo ./vmware-install.pl --default --force-install ${VMWARE_INSTALL_OPTIONS} popd >/dev/null
bash
d_bash_19453
--- +++ @@ -24,7 +24,7 @@ mkdir -p tmp-image-build pushd tmp-image-build -$DOCKER_SRC_DIR/../../build/docker_raspberrypi/build.sh $DOCKER_SRC_DIR/../../ +$DOCKER_SRC_DIR/../../build/docker_raspberrypi/no_rpxc/build.sh $DOCKER_SRC_DIR/../../ mv -v *.deb $DOCKER_SRC_DIR/tmp popd
bash
d_bash_19454
--- +++ @@ -2,8 +2,8 @@ #! nix-shell -i bash -p nodePackages.node2nix # Download package.json and package-lock.json from the v1.7.0 release -curl https://raw.githubusercontent.com/matrix-org/matrix-appservice-slack/d589aa2e258213ec5ee61ab1d6205c4fb56d116d/package.json -o package.json -curl https://raw.githubuserc...
bash
d_bash_19455
--- +++ @@ -10,7 +10,7 @@ (cd "$sourceDir" && pip install .) fi -pip install requests lambda-packages credstash +pip install requests lambda-packages cryptography==2.7 credstash==1.16.1 sitePackages=$(pip show requests | grep ^Location: | cut -f2 -d: | sed 's/^ //')
bash
d_bash_19456
--- +++ @@ -8,3 +8,5 @@ doc/style-man.xsl sed -i "s:/ms/dist/fsf/PROJ/docbook-xsl-ns/.*/common:$stylesheets:" \ doc/style-html.xsl +sed -i '/# -- begin path_setup/,/# -- end path_setup/d' \ + bin/* sbin/*
bash
d_bash_19457
--- +++ @@ -13,6 +13,6 @@ GOPATH=$PROJECTS/go -PATH="$(brew --prefix go)/libexec/bin:$GOPATH/bin:$PATH" +PATH="$GOPATH/bin:$PATH" export -U PATH GOPATH
bash
d_bash_19458
--- +++ @@ -1,3 +1,4 @@ +#!/bin/sh # Copyright (c) 2012 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_19459
--- +++ @@ -1,13 +1,12 @@ #!/bin/sh -SHOW_FIREFOX=$1 -USE_DEBUGGER=$2 +USE_DEBUGGER=$1 features/support/enhanced_support_stop.sh Xvfb :99 -ac -extension GLX > log/xvfb.log 2>&1 & -if [ "$SHOW_FIREFOX" = "true" ] +if [ "$USE_DEBUGGER" = "debug" ] then echo "Loading selenium on 4444, showing Firefox" bun...
bash
d_bash_19460
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash VERSION_plyer=${VERSION_plyer:-master} -URL_plyer=https://github.com/plyer/plyer/archive/$VERSION_plyer.zip +URL_plyer=https://github.com/plyer/plyer/zipball/$VERSION_plyer/plyer-$VERSION_plyer.zip DEPS_plyer=(pyjnius android) MD5_plyer= BUILD_plyer=$BUILD_PATH/plyer/$(get_d...
bash
d_bash_19461
--- +++ @@ -9,11 +9,5 @@ #alias for simple python server #serves current directory on localhost:3000 function simpleserver() { - port_num_regex='^[1-9]+[0-9]{3,}$' - port_num='3000' - - if [[ $1 =~ $port_num_regex ]]; then - port_num="$1" - fi - python -m SimpleHTTPServer "$port_num" + python -m SimpleHTTPServer ...
bash
d_bash_19462
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -e -mkdir ~/.aws +mkdir -p ~/.aws printf '%s\n' \ "[default]" \ "aws_access_key_id=$AWS_ACCESS_KEY_ID" \
bash
d_bash_19463
--- +++ @@ -1,4 +1,7 @@ #!/bin/bash + +su -c "apt-get update \ + && apt-get upgrade -y" if [ ! -d ${Home}/.mozilla ] then
bash
d_bash_19464
--- +++ @@ -5,6 +5,9 @@ alias ll='ls -alFh' alias la='ls -A' alias l='ls -CF' + +# shortcut for reloading envs after a build +alias reload-env="source ${HOME}/load-env.sh" export PATH="${PATH}:/.devstep/bin"
bash
d_bash_19465
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -mongo mongo:27017 <<< "rs.initiate()" +mongo mongo:27017 <<< "rs.initiate({_id: 'rs0', members: [{_id: 0, host: 'mongo:27017'}], protocolVersion: 1}, {force: true})" curl -XPUT 'http://elasticsearch:9200/slack_logger' -d '{ "settings": { "analysis": {
bash
d_bash_19466
--- +++ @@ -9,10 +9,17 @@ # Environment NUMTHREADS=4 + if [[ -f /sys/devices/system/cpu/online ]]; then +if [[ "$CXX" == "g++" ]]; then + factor = 1000 +else + factor = 1500 +fi # Calculates 1.5 times physical threads - NUMTHREADS=$(( ( $(cut -f 2 -d '-' /sys/devices/system/cpu/online) + 1 ) * 15 / 10 )...
bash
d_bash_19467
--- +++ @@ -10,13 +10,13 @@ pbench-register-tool-set --interval=10 pbench-register-tool --name=oc -pbench-register-tool --name=pprof -- --profile=cpu --osecomponent=master +pbench-register-tool --name=pprof -- --osecomponent=master # setup pbench on nodes for NODE in $NODES do pbench-register-tool-set...
bash
d_bash_19468
--- +++ @@ -21,7 +21,7 @@ #pip install virtualenv # install the fabric virtual python -virtualenv $FABVENV +virtualenv ../$FABVENV # install fabric in the virtual env, we dont # want to mess with the system python
bash
d_bash_19469
--- +++ @@ -35,7 +35,7 @@ # Remove cgroups for system_path in /sys/fs/cgroup/* do - path=/sys/fs/cgroup/cpu/instance-$id + path=$system_path/instance-$id if [ -d $path ] then
bash
d_bash_19470
--- +++ @@ -14,7 +14,8 @@ df_addr=$(./compile_and_deploy $outdir $DF_path) echo "DF ADDR" echo $df_addr -./compile_and_deploy $outdir $TC_path $tmc_addr $df_addr "'0x0000000000000000000000000000000000000000'" $my_address +./compile_and_deploy $outdir $TC_path "'$tmc_addr'" "'$df_addr'" "'0x000000000000000000000000...
bash
d_bash_19471
--- +++ @@ -12,10 +12,10 @@ echo "Deleting previous files..." rm $COMBINED_PATH/combined_*.mrc -for FILE in `ls -m1 $MARC_FILES_PATH` +for FILE in `find $MARC_FILES_PATH -name "*.mrc"` do - FILE_TYPE=$(file -b $MARC_FILES_PATH/$FILE) + FILE_TYPE=$(file -b $FILE) if [[ "$FILE_TYPE" == "MARC21 Bibliographic...
bash
d_bash_19472
--- +++ @@ -1,4 +1,7 @@ #!/usr/bin/env bash + +echo -e "Requesting for Administator's privileges" +sudo -v echo -e "Starting script\n" timerStart=$(date +%s)
bash
d_bash_19473
--- +++ @@ -1,5 +1,5 @@ # Kill the whole script on error -set -e +set -e -x echo "-------- Running Typhoeus 0.4 Specs ---------" bundle install --gemfile=gemfiles/typhoeus-old.gemfile
bash
d_bash_19474
--- +++ @@ -2,5 +2,7 @@ LDAP_NAME=${LDAP_NAME:-openldap} +if [ -n "$(docker ps -a | grep ${LDAP_NAME})" ]; then docker stop ${LDAP_NAME} docker rm -v ${LDAP_NAME} +fi
bash
d_bash_19475
--- +++ @@ -12,6 +12,11 @@ then echo "$p" LC_MESSAGES=$l $p run-tests.py + if [ $? == 1 ] + then + exit + fi + fi done done
bash
d_bash_19476
--- +++ @@ -10,11 +10,8 @@ # echo "YYYY-MM-DD - do something or other" # rake growstuff:oneoff:something -echo "2014-09-28 - upload tomatoes" -rake growstuff:import_crops file=db/seeds/crops-11-tomatoes.csv - -echo "2014-10-02 - remove unused photos" -rake growstuff:oneoff:remove_unused_photos - -echo "2014-10-05...
bash
d_bash_19477
--- +++ @@ -35,9 +35,6 @@ # Node.JS Packages ############################################################################### -# fb-messenger-cli for messaging -npm install -g fb-messenger-cli - # Install jslint for linting npm install -g jslint
bash
d_bash_19478
--- +++ @@ -1,24 +1,31 @@ #!/usr/bin/env bash set -e +set -o pipefail -echo -n "nobase_dist_pkgdata_DATA =" -find core classes languages packages lua-libraries -type f -name '*.lua' -printf ' %p' -find classes -type f -name '*.sil' -printf ' %p' +echo -n "nobase_dist_pkgdata_DATA = " +{ +find core classes langu...
bash
d_bash_19479
--- +++ @@ -1,4 +1,4 @@ #!/bin/sh -pylint lingtools -flake8 lingtools +pylint *.py lingtools +flake8 *.py lingtools nosetests --with-doctest
bash
d_bash_19480
--- +++ @@ -3,7 +3,7 @@ export DISPLAY=":99" bundle install --path "/home/jenkins/bundles/${JOB_NAME}" --deployment -bundle exec rake db:schema:load +bundle exec rake db:reset bundle exec rake assets:clean assets:precompile bundle exec rake bundle exec rake check_for_bad_time_handling
bash
d_bash_19481
--- +++ @@ -15,7 +15,7 @@ --install if [ $? != 0 ]; then - ${QUEUE_WRITER} --tag ${TAG} --status ${JOB_PART_FAILED_STATUS} --description "Job failed: unable to install required software/data artifacts." --index ${CURRENT_PART} --job-type job + ${QUEUE_WRITER} --tag ${TAG} --status ...
bash
d_bash_19482
--- +++ @@ -1,4 +1,7 @@ #!/bin/bash + +set -o pipefail +set +o nounset if [[ "${CIRCLE_BRANCH}" == "master" ]] || [[ "${CIRCLE_BRANCH}" == "microsim" ]] then
bash
d_bash_19483
--- +++ @@ -4,3 +4,4 @@ mkdir -p $DEST wget https://github.com/openshift/origin/releases/download/v1.4.1/openshift-origin-server-v1.4.1-3f9807a-linux-64bit.tar.gz -O openshift.tar.gz tar xzf openshift.tar.gz -C $DEST --strip-components 1 +export PATH="$PATH:$DEST"
bash
d_bash_19484
--- +++ @@ -9,4 +9,4 @@ cd build cmake ../ make -cp ranger ${1}/ml_rf_ranger +cp ranger "${1}/ml_rf_ranger"
bash
d_bash_19485
--- +++ @@ -13,9 +13,9 @@ # Setup ApiAxle with dev key/secret echo -e "Creating api...\n\n" -curl -X POST -H 'Content-type: application/json' 'http://api/v1/api/apiaxle' -d '{"endPoint":"api"}' +curl -X POST -H 'Content-type: application/json' 'http://api/v1/api/apiaxle' -d '{"endPoint":"api", "endPointTimeout": ...
bash
d_bash_19486
--- +++ @@ -18,4 +18,4 @@ rm ${ROOT}output/tmp/ -r rm ${ROOT}output/count.json mkdir ${ROOT}output/{images,videos} -# ssh ruth@gtp.ruthcatlow.net "mkdir ${GTP_BASE_DIR}archive/ -p; mv ${GTP_BASE_DIR}{images,videos} ${GTP_BASE_DIR}archive/; mv ${GTP_BASE_DIR}count.json ${GTP_BASE_DIR}archive/; mkdir ${GTP_BASE_DIR}...
bash
d_bash_19487
--- +++ @@ -10,7 +10,7 @@ sudo apt-get -y install postgresql-client sudo -u postgres psql -U postgres -d postgres -c "alter user postgres with password 'password';" sudo -u postgres createdb ripple_gateway -export DATABASE_URL=postgres://postgres:password@localhost:4000/ripple_gateway +export DATABASE_URL=postgres...
bash
d_bash_19488
--- +++ @@ -9,10 +9,11 @@ # docker inspect input cannot be piped into docker commit directly, we need to JSON format it. old_cmd=$(docker inspect -f "{{range .Config.Cmd}}{{.}} {{end}}" "${original_image_name}") fmt_cmd=$(echo "$old_cmd" | python -c "import sys,json; print json.dumps(sys.stdin.read().s...
bash
d_bash_19489
--- +++ @@ -1,3 +1,6 @@ + +set -x + # Restart postgresql services /etc/init.d/postgresql reload
bash
d_bash_19490
--- +++ @@ -20,7 +20,7 @@ - wait - - command: "/usr/local/bin/bats tests" + - command: "/usr/local/bin/bats --pretty tests" name: "Run tests on :buildkite: agent" timeout_in_minutes: 5 env:
bash
d_bash_19491
--- +++ @@ -10,16 +10,16 @@ echo "Starting Server..........." python manage.py runserver --settings=pari.settings.test > /dev/null 2>&1 & -expected_response=200 -end=$((SECONDS+60)) +CURRENT_TIME='date +%s' +TIMEOUT_TIME=$((`eval $CURRENT_TIME`+60)) -while [ "$SECONDS" -lt "$end" ]; +while [ `eval $CURRENT_TIME...
bash
d_bash_19492
--- +++ @@ -1,3 +1,3 @@ wget -q -O ../resin/webapps/ROOT/meta/freeciv_org_metaserver.tmp http://meta.freeciv.org/ sed -i.bak s,/index.php,http://meta.freeciv.org/index.php,g ../resin/webapps/ROOT/meta/freeciv_org_metaserver.tmp -tail -n+42 ../resin/webapps/ROOT/meta/freeciv_org_metaserver.tmp > ../resin/webapps/ROO...
bash
d_bash_19493
--- +++ @@ -21,7 +21,6 @@ fi if [ -z "$wan_ip" ]; then - #wan_ip=$(wget --timeout=1 --tries=1 -O - http://formyip.com/ 2>/dev/null | grep -Pzo "(?<=Your IP is )[^<]*") wan_ip=$(curl --max-time 2 -s http://whatismyip.akamai.com/) if [ "$?" -eq "0" ]; then @@ -32,7 +31,6 @@ fi if [ -n "$wan_ip" ]; then...
bash
d_bash_19494
--- +++ @@ -1,5 +1,5 @@ # Edit this for your own project dependencies -OPAM_DEPENDS="obuild ounit" +OPAM_DEPENDS="obuild unix ounit" case "$OCAML_VERSION,$OPAM_VERSION" in 3.12.1,1.0.0) ppa=avsm/ocaml312+opam10 ;;
bash
d_bash_19495
--- +++ @@ -6,4 +6,4 @@ bosh download manifest cf-warden > manifest.yml bosh deployment manifest.yml -bosh run errand $ERRAND_NAME +bosh run errand $ERRAND_NAME --keep-alive
bash
d_bash_19496
--- +++ @@ -4,5 +4,5 @@ trap 'kill %1' SIGINT ./node_modules/http-server/bin/http-server -p 8080 \ -& ./node_modules/watchify/bin/cmd.js ./examples/index.js -v --debug -t [babelify] -o './node_modules/exorcist/bin/exorcist.js ./examples/examples.js.map > ./examples/examples.js' \ +& ./node_modules/watchify/bin/...
bash
d_bash_19497
--- +++ @@ -28,3 +28,7 @@ # Upgrade adapt-parser Python package _url="git+https://github.com/mycroftai/adapt#egg=adapt-parser" sudo pip3 install -U "$_url" + +sudo chown -R root:root "image/etc" +sudo cp -r "image/etc" / +sudo chown -R $(id -u):$(id -g) "image/etc"
bash
d_bash_19498
--- +++ @@ -5,7 +5,10 @@ CONFIG_FILE="/opt/hlds/startup.cfg" if [ -r "${CONFIG_FILE}" ]; then + # TODO: make config save/restore mechanism more solid + set +e source "${CONFIG_FILE}" + set -e fi EXTRA_OPTIONS="${@}" @@ -26,6 +29,6 @@ echo "\"STEAM_${ADMIN_STEAM}\" \"\" \"abcdefghijklmnopqr...
bash
d_bash_19499
--- +++ @@ -28,6 +28,9 @@ export KEY_ID=$GNUPG_KEY fi +# For backwards compatibility with kurento_clone_repo +export KURENTO_GIT_REPOSITORY=$KURENTO_GIT_REPOSITORY_SERVER + # Configure private bower Repository cat >/root/.bowerrc << EOL {
bash