document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_15100
--- +++ @@ -2,5 +2,5 @@ if [ "$(uname)" == "Darwin" ]; then brew install the_silver_searcher elif [[ "$(lsb_release -i)" == *"Ubuntu"* ]]; then - sudo apt-get install -y the_silver_searcher + sudo apt-get install -y silversearcher-ag fi
bash
d_bash_15101
--- +++ @@ -12,8 +12,7 @@ ## We are going to use IPAM, hence we supply estimated cluster size ./weave launch --init-peer-count 3 ## Proxy will use TLS arguments we just obtained from Docker - ## daemon and should have DNS enabled too - ./weave launch-proxy --with-dns ${tlsargs} + ./weave launch-proxy ${tl...
bash
d_bash_15102
--- +++ @@ -14,6 +14,7 @@ # Storage $PROTOC \ --csharp_out=apis/Google.Cloud.Storage.V1/Google.Cloud.Storage.V1.Tests/Conformance \ + --csharp_opt=file_extension=.g.cs \ -I conformance-tests \ -I $CORE_PROTOS_ROOT \ conformance-tests/storage/v1/proto/google/cloud/conformance/storage/v1/*.proto @@ -21,6...
bash
d_bash_15103
--- +++ @@ -11,9 +11,7 @@ mem=$(( ($totalmem / 4 / 2)* 1024 * 1024)) for i in `seq 0 3`; do - if [[ ! -e /dev/zram${i} ]]; then - echo $mem > /sys/block/zram${i}/disksize - mkswap /dev/zram${i} - swapon -p 5 /dev/zram${i} - fi + echo $mem > /sys/block/zram${i}/disksize + mkswap /dev/zram${i} + swapo...
bash
d_bash_15104
--- +++ @@ -16,9 +16,16 @@ file = ARGV[0] if ARGV.length>0 -srcDir = File.dirname(file) -out = "// Do not edit this file (e.g. go instead to docs/src/main/asciidoc)\n\n" -doc = Asciidoctor.load_file file, safe: :safe, parse: false, attributes: 'allow-uri-read' +# Copied from https://github.com/asciidoctor/asciid...
bash
d_bash_15105
--- +++ @@ -45,4 +45,6 @@ # double the default stack size ulimit -s 16384 +touch $HOME/.setup-complete + /bin/sh --login
bash
d_bash_15106
--- +++ @@ -23,7 +23,7 @@ fpm -s dir -t rpm -n carbonapi -v ${VERSION} -C ${TMPDIR} \ --iteration ${RELEASE} \ - -p carbonapi_VERSION-ITERATION_ARCH.deb \ + -p carbonapi_VERSION-ITERATION_ARCH.rpm \ -d "cairo > 1.11" \ --after-install contrib/fpm/systemd-reload.sh \ usr/bin usr/share || d...
bash
d_bash_15107
--- +++ @@ -23,6 +23,10 @@ CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) BASE_BRANCH=development + if [ "$CURRENT_BRANCH" = "development" ]; then + BASE_BRANCH=master + fi + REMOTE=$(git ls-remote --get-url | awk 'BEGIN{FS=":";}{print $2}' | sed 's/\.git//') REPO_URL=https://www.github.com/$R...
bash
d_bash_15108
--- +++ @@ -31,6 +31,7 @@ cp -R build/*.svg $repository/report cp -R build/*.xml $repository/report cp -R build/*.neon $repository/report + cp -R build/*.txt $repository/report } copy_changelog() {
bash
d_bash_15109
--- +++ @@ -3,7 +3,7 @@ # Configure PHP sendmail return-path if possible if mdata-get kumquat_admin_email 1>/dev/null 2>&1; then echo "php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f $(mdata-get kumquat_admin_email)" \ - >> /opt/local/etc/fpm.d/pool-www.conf + >> /opt/local/etc/php-fpm.d/pool-www.c...
bash
d_bash_15110
--- +++ @@ -8,7 +8,7 @@ export HISTCONTROL=ignoredups # Make some commands not show up in history -export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help" +export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help:clear" # Prefer US English and use UTF-8 export LANG="en_US"
bash
d_bash_15111
--- +++ @@ -18,6 +18,6 @@ # Import our development certificate. MY_CERTPATH="$SCRIPT_DIR/certificates/Development.p12" -EXPIRY_DATE=`openssl pkcs12 -in "$MY_CERTPATH" -password "$KEY_PASSWORD" -nomacver -nokeys | openssl x509 -noout -enddate` +EXPIRY_DATE=$(openssl pkcs12 -in "$MY_CERTPATH" -password "$KEY_PASSWO...
bash
d_bash_15112
--- +++ @@ -15,15 +15,15 @@ LAUNCH_TERM="xterm" -if [ $TERMCMD != "" ]; then +if [ "$TERMCMD" != "" ]; then LAUNCH_TERM=$TERMCMD -elif [ $TERM != "" ]; then +elif [ "$TERM" != "" ]; then LAUNCH_TERM=$TERM fi LAUNCH_FLAGS="-e" -if [ $LAUNCH_TERM == "gnome-terminal" ]; then +if [ "$LAUNCH_TERM" == ...
bash
d_bash_15113
--- +++ @@ -1,3 +1,3 @@ #!/usr/bin/env sh -coverage run --source=parsy `which py.test` && coveralls +coverage run --branch --source=parsy `which py.test` && coveralls
bash
d_bash_15114
--- +++ @@ -8,6 +8,8 @@ tidy() { # Parameters: $1: source_directory # $2: target_directory + local source=$1 + local target=$2 source=$1 destination=$2
bash
d_bash_15115
--- +++ @@ -1,3 +1,3 @@ #!/bin/sh cd /opt/synclounge -npm run server & node webapp.js --accessUrl=http://$DOMAIN +export accessUrl=http://$DOMAIN; npm run server & node webapp.js
bash
d_bash_15116
--- +++ @@ -3,5 +3,4 @@ export WORKSPACE=${WORKSPACE:='.'} export NEXUS_PASS=${NEXUS_PASS:='sbt_creds'} export NEXUS_USER=${NEXUS_USER:='sbt'} -py.test -v --junitxml results.xml test/tests.py -py.test -v --junitxml results.xml test/unit +py.test -v --junitxml results.xml test/
bash
d_bash_15117
--- +++ @@ -1,5 +1,5 @@ sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers yum -y install gcc make gcc-c++ \ http://vault.centos.org/6.4/os/x86_64/Packages/kernel-devel-`uname -r`.rpm \ - perl nfs-utils + perl
bash
d_bash_15118
--- +++ @@ -7,6 +7,10 @@ HOSTNAME=$(hostname) echo -e "[${HOSTNAME}]\n address 127.0.0.1\n use_node_name yes\n" > /opt/local/etc/munin/munin-conf.d/localhost.conf +## Add logadm to rotate munin-master logfiles by default +logadm -r '/var/log/munin/munin-node.log' +logadm -w '/var/log/munin/*.log' -A 14d -p ...
bash
d_bash_15119
--- +++ @@ -12,5 +12,11 @@ cd $ROOT_DIR cd vendor/zendframework + +# BSD's "-i" requires an extension for backups. +# To prevent ".php-e" files we explicitly use ".bak" and remove the backups when we're done +# See: http://stackoverflow.com/a/4247319 find . -name '*.php' -print0 | \ -xargs -0 sed -E -i -e "s#(i...
bash
d_bash_15120
--- +++ @@ -1,4 +1,5 @@ #!/usr/bin/env bash /bin/bash -x patches/patch_aufs.bash +patch -p1 < patches/0001-enable-hardware-I-O-coherency.patch patch -p1 < patches/patch-cpuidle-3.17-std.patch
bash
d_bash_15121
--- +++ @@ -1,13 +1,13 @@ #!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -UPDATE_URL=www.gamoeba.com/stagehand_updates +UPDATE_URL="http://www.gamoeba.com/stagehand_updates" PLATFORM=`uname` -AVAIL_VERSION=`curl -s $UPDATE_URL/version_$PLATFORM.txt` +AVAIL_VERSION=`wget -qO- $UPDATE_URL/versio...
bash
d_bash_15122
--- +++ @@ -12,8 +12,8 @@ echo "###### Building Docker image for RESTHeart Version "$RHVERSION cd Docker cp ../target/restheart.jar . -docker build -t restheart . -docker tag restheart restheart:$RHVERSION +docker build -t softinstigate/restheart . +docker tag softinstigate/restheart softinstigate/restheart:$RHVER...
bash
d_bash_15123
--- +++ @@ -15,10 +15,7 @@ JAVA_HOME=$JAVA_HOME ./script/run_with_carton.sh ~/perl5/perlbrew/bin/cpanm \ --local-lib-contained local/ \ --verbose \ - Compress::Raw::Lzma || { - echo "cpanminus build logs:" - find ~/.cpanm/work/ -name build.log -exec cat '{}' ';' -} + Compress::Raw::Lzma # I...
bash
d_bash_15124
--- +++ @@ -1,4 +1,5 @@ #!/bin/bash cd `mktemp -d` curl "https://aur.archlinux.org/packages/`expr substr $1 1 2`/$1/$1.tar.gz" | tar xz +cd $1 makepkg -si
bash
d_bash_15125
--- +++ @@ -4,7 +4,7 @@ if [ $(find $MAGE_ROOT_DIR -maxdepth 0 -type d -empty 2>/dev/null) ]; then # Install Magento - /n98-magerun.phar install \ + php -dmemory_limit=1024M -f /n98-magerun.phar install \ --installationFolder=$MAGE_ROOT_DIR \ ...
bash
d_bash_15126
--- +++ @@ -7,6 +7,6 @@ pushd output > /dev/null INPUT_FILE=$(basename $INPUT) OUTPUT=${INPUT_FILE%.h} -clang++-3.8 -fvisibility=hidden -g -std=c++14 -stdlib=libc++ -shared -Wl, -o lib${OUTPUT}_c.dylib -fPIC ${OUTPUT}_c.cpp || exit 1 +clang++-3.8 -fvisibility=hidden -g -std=c++14 -shared -Wl, -o lib${OUTPUT}_c.dyl...
bash
d_bash_15127
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -set -e -u -o pipefail +set -x -e -u -o pipefail for required_variable in \ GOOGLE_CLOUD_PROJECT \
bash
d_bash_15128
--- +++ @@ -9,17 +9,19 @@ printf " Command list: Work on the project: - $START make docker-up $END start the docker engine (this is required for all tasks) - $START make docker-connect $END connect to the docker container - $START make install $END install all project dependencies - $START...
bash
d_bash_15129
--- +++ @@ -3,11 +3,20 @@ # shellcheck disable=SC1091 readonly OS_ID=$(. /etc/os-release; echo "$ID") +# shellcheck disable=SC1091 +readonly OS_VERSION=$(. /etc/os-release; echo "$VERSION") echo 'Install OpenJDK Development Kit' case $OS_ID in ol) - sudo yum -y install java-11-openjdk-devel + case ${...
bash
d_bash_15130
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash docker rm -vf $(docker ps -aq) -docker volumes rm -f $(docker volume ls -q) +docker volume rm -f $(docker volume ls -q) docker rmi -f $(docker images -q)
bash
d_bash_15131
--- +++ @@ -18,7 +18,7 @@ fi python ../../find-bug.py example_10.v bug_10.v -Q . "" || exit $? -EXPECTED='(\* File reduced by coq-bug-finder from original input, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines, then from [0-9]\+ lines to [0-9]\+ lines \*)' +EXPECTED='(\* File re...
bash
d_bash_15132
--- +++ @@ -21,12 +21,14 @@ ( cd "$SMROOT" PYTHONPATH="$SMROOT/tests/mocks:$SMROOT/drivers/" \ - coverage run --branch $(which nosetests) \ + coverage run --branch \ + --source="$SMROOT/drivers,$SMROOT/tests" \ + $(which nosetests) \ --with-xunit \ ...
bash
d_bash_15133
--- +++ @@ -5,6 +5,8 @@ me=$(readlink -f $0) mydir=$(dirname $me) drake=$(dirname $(dirname $mydir)) + +CLANG_FORMAT=${CLANG_FORMAT:-clang-format-3.6} # Call the code generator with common configuration. # @param1 title -- used to create class/type names @@ -22,6 +24,7 @@ gen "driving command" steering_angle ...
bash
d_bash_15134
--- +++ @@ -1,14 +1,31 @@ -# Install .NET Core (see https://www.microsoft.com/net/core#ubuntu) +# Install .NET Core (see https://www.microsoft.com/net/core#ubuntu), +# Mono (http://www.mono-project.com/docs/getting-started/install/linux) +# and Powershell (https://www.rootusers.com/how-to-install-powershell-on-linux)...
bash
d_bash_15135
--- +++ @@ -1,2 +1,3 @@ export EDITOR='code' export DEFAULT_USER='christophengelmayer' +export LC_ALL=en_US.UTF-8
bash
d_bash_15136
--- +++ @@ -13,5 +13,5 @@ # under the License. set -ex - +export FORCE=yes $BASE/new/devstack-gate/devstack-vm-gate.sh
bash
d_bash_15137
--- +++ @@ -1,4 +1,6 @@ #!/usr/bin/env bash + +sudo service mongodb stop # Import mongodb public GPG key sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 @@ -7,3 +9,5 @@ sudo apt-get update -qq -y sudo apt-get install -y mongodb-org + +sudo service mongod start
bash
d_bash_15138
--- +++ @@ -12,7 +12,7 @@ rm /lib/udev/rules.d/75-persistent-net-generator.rules # Clean up Apts Rubbish bin -sudo apt-get auto clean +apt-get clean echo "Adding a 2 sec delay to the interface up, to make the dhclient happy" echo "pre-up sleep 2" >> /etc/network/interfaces
bash
d_bash_15139
--- +++ @@ -15,6 +15,7 @@ python2.6 setup.py bdist_egg --exclude-source-files python2.7 setup.py bdist_egg --exclude-source-files python3.3 setup.py bdist_egg --exclude-source-files +python3.4 setup.py bdist_egg --exclude-source-files # Build docs archive python setup.py sdist --manifest-only
bash
d_bash_15140
--- +++ @@ -17,6 +17,7 @@ --name idp-$SHIBBOLETH_HOSTNAME \ --hostname idp-$SHIBBOLETH_HOSTNAME \ -p 80:8080 -p 443:8443 \ + --mount source=vol-$SHIBBOLETH_HOSTNAME,destination=/opt \ -v /var/tmp/docker-logs-jetty:/opt/jetty/logs \ -v /var/tmp/docker-logs/shibboleth:/opt/shibboleth-idp/log...
bash
d_bash_15141
--- +++ @@ -1,3 +1,3 @@ export PATH="./bin:$HOME/.rbenv/shims:/usr/local/bin:/usr/local/sbin:$HOME/.sfs:$ZSH/bin:$PATH" - +export PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH" export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
bash
d_bash_15142
--- +++ @@ -1,4 +1,5 @@ #!/bin/sh +TESTS="${1:-.}" mkdir -p template/default cp -f resources/backup/* resources @@ -7,7 +8,7 @@ chmod 0700 non-writable-directory &> /dev/null rmdir non-writable-directory &> /dev/null -phpunit --stderr -c config.xml . +phpunit --stderr -c config.xml "$TESTS" chmod 0700 non...
bash
d_bash_15143
--- +++ @@ -1,14 +1,16 @@ #!/bin/bash -xe -export CHANNEL_SUFFIX="-head" -export CI_VERSION="head" -if [ -n "$CI_BUILD_TAG" ]; then +if [ -n "${CI_COMMIT_TAG}" ]; then # pushing a stable version export CHANNEL_SUFFIX="" - export CI_VERSION="$CI_BUILD_TAG" -elif [ "master" != "$CI_BUILD_REF_NAME" ]; then + ...
bash
d_bash_15144
--- +++ @@ -11,7 +11,7 @@ requote_args () { - sed -e 's/.*configure //' -e 's/=\(\([^"'"'"'-]\|-[^-]\| \)*\)\( \|$\)/="\1" /g' + sed -r -e 's/.*configure //' -e 's/(["'"'"'])/\\\1/g' -e 's/=(([^"'"'"'-]|-[^-]| )*)( |$)/="\1" /g' } old_args=""
bash
d_bash_15145
--- +++ @@ -14,7 +14,7 @@ echo "LATTICE_TGZ_URL = '$lattice_tgz_url'\n$vagrantfile" > $output_dir/vagrant/Vagrantfile cp -r lattice-release/terraform/aws $output_dir/terraform/ -filter='{"variables": .variables + {"lattice_tgz_url": {"default": '"$lattice_tgz_url"'}}}' +filter='{"variables": .variables + {"lattic...
bash
d_bash_15146
--- +++ @@ -7,10 +7,12 @@ JENKINS_OPTS=${JENKINS_OPTS:---prefix=/jenkins} # Create Jenkins volume. -docker run \ ---name ${JENKINS_VOLUME} \ -${JENKINS_IMAGE_NAME} \ -echo "Create Jenkins volume." +if [ -z "$(docker ps -a | grep ${JENKINS_VOLUME})" ]; then + docker run \ + --name ${JENKINS_VOLUME} \ + ${...
bash
d_bash_15147
--- +++ @@ -1,6 +1,11 @@ #!/bin/bash +# Version of git to build GIT_VERSION="v1.9.0" + +# Architecture to build for +TARGET_ARCH="32" + SRC_DIR="/tmp/git-src-${GIT_VERSION}" DEST_DIR="${PWD}/extras/git" @@ -25,7 +30,7 @@ bash -c " cd "${SRC_DIR}" && make configure && - ./configure --prefix="${DE...
bash
d_bash_15148
--- +++ @@ -2,8 +2,8 @@ # Use Homebrew to install useful executables set -A base \ - git git-extras willgit growlnotify ruby-build hub jsl ctags lorem graphviz \ - postgresql mongodb redis memcached node rlwrap couchdb subversion wget tree \ + git git-extras willgit ruby-build hub jsl ctags lorem graphviz post...
bash
d_bash_15149
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash mkdir -p $PREFIX/bin -sed -i '1i#!/opt/anaconda1anaconda2anaconda3/bin/python' gvcf_regions.py +sed -i $'1i\\\n#!/opt/anaconda1anaconda2anaconda3/bin/python\n' gvcf_regions.py chmod a+x gvcf_regions.py cp gvcf_regions.py $PREFIX/bin
bash
d_bash_15150
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash if [ "x$1" == "x" ]; then echo "Please provide an argument or two" return 1; @@ -15,4 +15,5 @@ echo "Converting $1 to $TARGET" objcopy -j.text -O binary "$1" "$TMPFILE" -hexdump -v -e '"0x%08x\n"' "$TMPFILE" > "$TARGET" +readelf -h "$1" | grep "Entry point addr...
bash
d_bash_15151
--- +++ @@ -19,3 +19,9 @@ # clone dotfiles repo & set origin git -C ~/.dotfiles remote add origin https://github.com/tkjone/dotfiles.git + +# replace the sublime text 3 icon +rm -rf /Applications/Sublime\ Text.app/Contents/Resources/Sublime\ Text.icns +ln -s ~/dotfiles/sublime/Sublime\ Text.icns /Applications/Sub...
bash
d_bash_15152
--- +++ @@ -10,10 +10,10 @@ # Install dart_coveralls # Rerun tests with coverage and send to coveralls if [ "$COVERALLS_TOKEN" ]; then - pub global activate dart_coveralls 0.1.11 + pub global activate dart_coveralls pub global run dart_coveralls report \ --token $COVERALLS_TOKEN \ - --retry 2 \ + -...
bash
d_bash_15153
--- +++ @@ -3,8 +3,8 @@ export NUMBER_FFT="2" export SIZE_MULTIPLIER="32" export GULP_SIZE="$(echo '32768*1024' | bc)" -NUM1="$(python -OO test1.py)" -NUM2="$(python test2.py)" +NUM1="$(python -OO linear_fft_pipeline.py)" +NUM2="$(python skcuda_fft_pipeline.py)" echo "Bifrost has $NUM1" echo "Scikit has $NUM2" ...
bash
d_bash_15154
--- +++ @@ -6,6 +6,8 @@ cd "$(dirname "$0")" cd .. +# Fetch any online revisions and check for updates +git fetch REVS=`git log HEAD..origin/master --oneline` if [[ $REVS == "" ]]; then
bash
d_bash_15155
--- +++ @@ -3,5 +3,6 @@ set -o errexit set -o nounset -mkdir -p ${HOME}/.i3 -cp ./hack/cfg/i3/config ${HOME}/.i3/config +i3cfg="${HOME}/.config/i3" +mkdir -p ${i3cfg} +cp ./hack/cfg/i3/config ${i3cfg}/config
bash
d_bash_15156
--- +++ @@ -1,10 +1,34 @@ #!/bin/bash -git submodule init -git submodule update +galaxy_dir="lib/galaxy/" + +reset=false +for i +do + if [ $i = '-reset' ]; then + reset=true + fi +done + +if [ -d $galaxy_dir ]; then + if $reset; then + echo "Reset Galaxy" + sudo rm -rf $galaxy_dir + ...
bash
d_bash_15157
--- +++ @@ -6,6 +6,8 @@ exit_code=0 validate() { + # Pass if message is empty + test 0 -eq "$(< "$commit_message_file" wc -l)" && return case $1 in *) "./src/0$index-"* "$commit_message_file" ;; esac
bash
d_bash_15158
--- +++ @@ -1,7 +1,8 @@ #!/bin/sh +cd "`dirname "$0"`" test -f .makeApidox.stamp || touch .makeApidox.stamp while true; do - ls -l -t include/Vc/* doc/dox.h doc/examples.h common/*|head -n1 > .makeApidox.stamp.new + ls -l -t Vc/* doc/dox.h doc/examples.h Vc/common/*|head -n1 > .makeApidox.stamp.new if ! diff ...
bash
d_bash_15159
--- +++ @@ -12,6 +12,7 @@ google-chrome google-web-designer intellij-idea + iterm2 mactex skype spotifree
bash
d_bash_15160
--- +++ @@ -9,6 +9,8 @@ declare -r OS="$(get_os)" + print_warning "This may take awhile, so please be patient!\n" + if [ "$OS" == "osx" ]; then ./os_x/installs/main.sh elif [ "$OS" == "ubuntu" ]; then
bash
d_bash_15161
--- +++ @@ -1,6 +1,12 @@ # /bin/bash if [ ! -f /etc/nginx/ssl/dhparam.pem ]; then + + if [ ! -d /etc/nginx/ssl ]; then + mkdir -p /etc/nginx/ssl + fi + echo "dhparam file /etc/nginx/ssl/dhparam.pem does not exist. Generating one with 4086 bit. This will take a while..." openssl dhparam -out /...
bash
d_bash_15162
--- +++ @@ -9,3 +9,4 @@ install_pip_pkg virtualenv install_pip_pkg flake8 +install_pip_pkg memory_profiler
bash
d_bash_15163
--- +++ @@ -5,6 +5,10 @@ # init git repo git init + +# tell repo to always pull from master +git config --add branch.master.remote origin +git config --add branch.master.merge refs/heads/master # add items for git to ignore echo '.DS_Store' >> .git/info/exclude
bash
d_bash_15164
--- +++ @@ -4,3 +4,6 @@ # run wiremock (cd $WIREMOCK_INSTALL_DIR; ./launch.sh &) + +# wait for wiremock to start +sleep 5
bash
d_bash_15165
--- +++ @@ -18,6 +18,7 @@ time_stamp=$(date +%Y-%m-%d-%T) current_backup_dir=${backup_path}/${time_stamp} archive_path=${backup_path}/backup_archive_${time_stamp}.tar.gz + mkdir -p "${current_backup_dir}" echo "Create storage files backup" @@ -32,7 +33,7 @@ cfg_section_DatabaseUser echo "Create database back...
bash
d_bash_15166
--- +++ @@ -1,3 +1,4 @@ #!/bin/bash -pandoc -f markdown --table-of-contents --self-contained -t html5 api_2_0_spec.md + ~/.cabal/bin/pandoc -f markdown --table-of-contents -c api_2_0_spec.css --self-contained -t html5 api_2_0_spec.md +
bash
d_bash_15167
--- +++ @@ -20,21 +20,21 @@ echo "==============================================================================" -echo "Applying schema.sql ..." +echo "Applying sql/schema.sql ..." echo psql $DATABASE_URL < sql/schema.sql echo "==========================================================================...
bash
d_bash_15168
--- +++ @@ -6,4 +6,5 @@ --include-extension=.rb \ --size-limit=5m \ --language=ruby \ + --working-dir=.\ "$CODEQL_EXTRACTOR_RUBY_WIP_DATABASE"
bash
d_bash_15169
--- +++ @@ -19,16 +19,16 @@ brew update brew install rbenv ruby-build brew install pyenv - brew install ndenv node-build ;; linux*) git clone https://github.com/sstephenson/rbenv.git ~/.rbenv git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build g...
bash
d_bash_15170
--- +++ @@ -27,4 +27,6 @@ PYTHON=python2.7 fi -$PYTHON tools/run_tests/run_microbenchmark.py --collect summary perf latency +BENCHMARKS_TO_RUN="bm_fullstack_unary_ping_pong bm_fullstack_streaming_ping_pong bm_fullstack_streaming_pump bm_closure bm_cq bm_call_create bm_error bm_chttp2_hpack bm_chttp2_transport b...
bash
d_bash_15171
--- +++ @@ -14,6 +14,12 @@ # Run debootstrap second stage if it hasn't already happened if [ -r /debootstrap ]; then + # Debootstrap doesn't like anything mounted under /sys when it runs + # We assume that the chroot will be unmounted after this script is over, so + # we don't need to explicitly remount ...
bash
d_bash_15172
--- +++ @@ -9,7 +9,7 @@ # --binaries "dvol dvol-docker-plugin" \ # --tag "golang" -set -e +set -xe # TODO Make this actually do proper argument parsing. PROJECT=$2 @@ -24,6 +24,7 @@ CGO_ENABLED=0 GOOS=linux godep go build -a -ldflags '-s' ${SOURCE_FILE} done +mkdir -p ${PROJECT}-build # Copy th...
bash
d_bash_15173
--- +++ @@ -1,8 +1,8 @@ #!/bin/sh -git submodule sync --recursive -git submodule update --init --recursive # --remote --merge -git submodule update --init --remote --merge -git commit bundle -m "Sync submodules." +git submodule sync --recursive && \ +git submodule update --init --remote --merge && \ +git submodule u...
bash
d_bash_15174
--- +++ @@ -32,7 +32,7 @@ # Register the function so it is called whenever the working # directory changes. autoload add-zsh-hook - add-zsh-hook chpwd update_terminal_cwd + add-zsh-hook precmd update_terminal_cwd # Tell the terminal about the initial directory. update_terminal_cwd
bash
d_bash_15175
--- +++ @@ -1,5 +1,5 @@ #!/bin/sh -e -gem update brakeman +gem update --no-document brakeman bundle-audit update rake -f /usr/quality/Rakefile quality
bash
d_bash_15176
--- +++ @@ -4,7 +4,7 @@ sudo apt-get remove unity-lens-shopping unity-scope-musicstores # Install packages -sudo apt-get install git tig python-dev build-essential libjpeg-dev libpng12-dev zsh gnome-shell synapse gparted gimp ubuntu-restricted-extras vlc ttf-mscorefonts-installer sqlite ruby quicksynergy postgres...
bash
d_bash_15177
--- +++ @@ -9,6 +9,9 @@ exit 1 fi +apt-get update +apt-get install -y git gnupg python3-pip python3-venv + # Install nodejs for running tests curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - sudo apt-get install -y nodejs @@ -18,9 +21,6 @@ MajavashakkiMongoConnectionString="mongodb://majavash...
bash
d_bash_15178
--- +++ @@ -1,18 +1,19 @@ #!/bin/bash -echo "Started time: " -echo $(date +%r) +echo "Started time: " $(date +%r) pid=$1 -stat_file="stat_for_"$pid +stat_file="stat_for_"$pid".txt" if [[ -f $stat_file ]]; then rm $stat_file fi touch $stat_file +echo "Time %CPU Size" >> $stat_file while true; do ...
bash
d_bash_15179
--- +++ @@ -5,3 +5,4 @@ fi alias ls="ls -GF" +PATH=$HOME/bin:$HOME/.bin:/usr/local/bin:$PATH
bash
d_bash_15180
--- +++ @@ -26,7 +26,7 @@ ;; *) if [ -f ./entrypoint-extras.sh ]; then - ./entrypoint-extras.sh "$@" + ./entrypoint-extras.sh ${args[@]} else exec "$@" fi
bash
d_bash_15181
--- +++ @@ -2,6 +2,14 @@ source .travis/common.sh set -e + +$SPACER + +start_section "conda.copy" "${GREEN}Copying package...${NC}" +mkdir -p /tmp/conda +cp -avR $PACKAGE /tmp/conda/ +cd /tmp/conda/ +end_section "conda.copy" $SPACER
bash
d_bash_15182
--- +++ @@ -6,7 +6,7 @@ echo "https://github.com/bell-sw/Liberica/releases/download/8u352+8/bellsoft-jdk8u352+8-linux-amd64.tar.gz" ;; java11) - echo "https://github.com/bell-sw/Liberica/releases/download/11.0.16.1+1/bellsoft-jdk11.0.16.1+1-linux-amd64.tar.gz" + echo "https://github.com/bell-sw/Liberica/r...
bash
d_bash_15183
--- +++ @@ -6,7 +6,12 @@ # Generate set -x aclocal -libtoolize --automake --force --copy +# TODO: detect glibtoolize +if [ "$OSTYPE" == "darwin10.0" ]; then + glibtoolize --automake --force --copy +else + libtoolize --automake --force --copy +fi autoconf autoheader automake --add-missing --force --copy --...
bash
d_bash_15184
--- +++ @@ -13,25 +13,29 @@ trap 'handle_error' ERR +echo "Tests are disabled, see https://github.com/vector-im/riot-web/issues/13226" +exit 0 -echo "--- Building Riot" -scripts/ci/layered-riot-web.sh -cd ../riot-web -riot_web_dir=`pwd` -CI_PACKAGE=true yarn build -cd ../matrix-react-sdk -# run end to end test...
bash
d_bash_15185
--- +++ @@ -22,7 +22,7 @@ fi trap "docker rmi -f '$imageTag' &> /dev/null" EXIT -docker run "$imageTag" sh -c "$command" > $tmpDir/output.txt +docker run --rm "$imageTag" sh -c "$command" > $tmpDir/output.txt result="failed" diff -wB expected-stdout.txt $tmpDir/output.txt &> /dev/null
bash
d_bash_15186
--- +++ @@ -1,3 +1,8 @@ #!/bin/bash + +# Older travis OS X images might not have pip +if ! hash pip 2> /dev/null; then + easy_install pip +fi pip install --user requests==2.10.0 python ./.ci/upload-release.py
bash
d_bash_15187
--- +++ @@ -8,7 +8,7 @@ case "\$1" in configure) adduser --system --quiet --group disco --disabled-password --shell /bin/bash --home ${RELSRV} --no-create-home - chown disco:disco -R ${RELSRV} + chown disco:disco ${RELSRV} ;; abort-upgrade|abort-remove|abort-deconfigure)
bash
d_bash_15188
--- +++ @@ -1,5 +1,7 @@ #! /bin/bash -echo "TEST: I will now sleep 60s to pretend I'm doing something useful!" -sleep 60 +time=10 + +echo "TEST: I will now sleep ${time}s to pretend I'm doing something useful!" +sleep ${time} echo "Done sleeping, resuming!"
bash
d_bash_15189
--- +++ @@ -18,7 +18,7 @@ RUNCMD="qemu-system-arm -m ${RAM} -M vexpress-a9 -kernel ${KERN} \ -drive file=${ROOTFS},if=sd,format=raw \ -append \"${K_CMDLINE}\" \ - -nographic" + -nographic -no-reboot" [ -f ${DTB} ] && RUNCMD="${RUNCMD} -dtb ${DTB}" echo echo "${RUNCMD}"
bash
d_bash_15190
--- +++ @@ -4,7 +4,7 @@ workdir=`pwd` sources=$workdir/sts4/vscode-extensions/$extension_id -version= `cat version/version` +version=`cat version/version` echo "extension_id=${extension_id}" echo "version=${version}"
bash
d_bash_15191
--- +++ @@ -1,25 +1,8 @@ # # Kubler phase 1 config, pick installed packages and/or customize the build # -_packages="dev-vcs/git" +_packages="dev-vcs/git dev-vcs/webhook" _webhook_version="2.6.8" - -configure_bob() -{ - export GOPATH=/go - export DISTRIBUTION_DIR="${GOPATH}/src/github.com/adnanh/webhook" - ...
bash
d_bash_15192
--- +++ @@ -14,5 +14,9 @@ yes|sh /mnt/VBoxLinuxAdditions.run umount /mnt +# Temporary fix for VirtualBox Additions version 4.3.10 +# issue #12879, see https://www.virtualbox.org/ticket/12879 +[ -e /usr/lib/VBoxGuestAdditions ] || ln -s /opt/VBoxGuestAdditions-$VBOX_VERSION/lib/VBoxGuestAdditions /usr/lib/VBoxGues...
bash
d_bash_15193
--- +++ @@ -14,4 +14,7 @@ -o ~/workspace/bosh-deployment/jumpbox-user.yml \ -o ~/workspace/1-click-bosh-lite-pipeline/operations/add-etc-hosts-entry.yml \ -o ~/workspace/1-click-bosh-lite-pipeline/operations/increase-max-speed.yml \ - -o ~/workspace/1-click-bosh-lite-pipeline/operations/disable-virt...
bash
d_bash_15194
--- +++ @@ -20,10 +20,21 @@ run_tests -if command -v inotifywait >/dev/null; then +function log_test_run { msg="Prepared to run tests on new changes..." echo -e "\033[1;37m> $msg\033[0m" +} + +if command -v inotifywait >/dev/null; then + log_test_run while inotifywait -q -r -e modify . ; do - run_...
bash
d_bash_15195
--- +++ @@ -1,6 +1,4 @@ #!/bin/sh - -set -u standard_setup () { @@ -12,7 +10,7 @@ install_django () { - curl http://mulletron.uwcs.co.uk/django.tar | tar xv + standard_setup http://media.djangoproject.com/releases/1.0/Django-1.0.tar.gz Django-1.0 } install_python ()
bash
d_bash_15196
--- +++ @@ -4,7 +4,7 @@ VERSION=1.1.0 zip -9 -r -n pyc -o ${NAME}-${VERSION}.oxt \ - META-INF/* *.xcu *.xcs *.py description.xml MRILib/* \ + META-INF/* *.xcu *.xcs *.py *.xml MRILib/* \ descriptions/* dialogs/* help/* icons/* \ notices/* web/* pythonpath/mytools_Mri/*.py \ pythonpath/mytools_Mri/generators...
bash
d_bash_15197
--- +++ @@ -5,7 +5,7 @@ MIN_LON=-77 MAX_LON=-75 -INPUTS="AirportArea SRTM-3 AirportObj Landmass InlandWater Water WaterExtra Roads Railways Places Landuse TreeCover CropCover GrassCover BuiltUpCover" +INPUTS="AirportArea SRTM-3 AirportObj landmass highway railway wetland water-area water-line quarry greenspace bu...
bash
d_bash_15198
--- +++ @@ -4,7 +4,7 @@ echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin echo "Building..." -docker build -t reactiflux/discord-irc:latest -f docker/Dockerfile . +docker build -t reactiflux/discord-irc:latest . echo "Pushing image to Docker Hub..." docker push reactiflux/discord-i...
bash
d_bash_15199
--- +++ @@ -1,4 +1,8 @@ Finder(){ + findAllFiles(){ + find * -type f + } + findByExt(){ ext=${1}
bash