document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_23100
--- +++ @@ -54,6 +54,14 @@ test) COMPREPLY=( $( compgen -W "$backends all" -- "$cur") ) ;; + local) + versions="$(rakudobrew versions | cut -c3-)" + COMPREPLY=( $( compgen -W "$versions" -- "$cur") ) + ;; + global) + versions="$(rakudobr...
bash
d_bash_23101
--- +++ @@ -14,7 +14,6 @@ tmuxinator \ urlview \ vimrc \ - xvimrc \ zshrc) cd $dir
bash
d_bash_23102
--- +++ @@ -9,6 +9,9 @@ # accept Xcode license /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -license accept +# avoid any conflit with previous command line tools installed +xcode-select -r + # install embedded packages for PKG in /Applications/Xcode.app/Contents/Resources/Packages/*.pkg; do ...
bash
d_bash_23103
--- +++ @@ -2,7 +2,7 @@ . scripts/common/main.sh PYTHON_SUFFIX="${PYTHON_IMPLEMENTATION}-${PYTHON_VERSION}" if test -d deps/wheels/$PYTHON_SUFFIX ; then - git rm -r deps/wheels/$PYTHON_SUFFIX + (cd deps && git rm -r wheels/$PYTHON_SUFFIX) fi mkdir -p deps/wheels/$PYTHON_SUFFIX cd deps/wheels/$PYTHON_SUFFIX
bash
d_bash_23104
--- +++ @@ -23,13 +23,25 @@ exit 1 } -# get a name for new project +if [ $# -eq 1 ] +then + # get a name for new project from command line arguments + name="$1" +fi + +# get a name for new project from input while [[ -z $name ]] do echo "To create a new html5-boilerplate project, enter a new direct...
bash
d_bash_23105
--- +++ @@ -6,7 +6,7 @@ # * GO_VERSION # # Include in your builds via -# \curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/languages/go.sh | bash -s +# \curl -sSL https://raw.githubusercontent.com/codeship/scripts/languages/go/languages/go.sh > ${HOME}/go.sh && source ${HOME}/go.sh GO_VERSION=$...
bash
d_bash_23106
--- +++ @@ -1,3 +1,3 @@ #!/bin/sh -gcloud compute instances create homebase --image dev-ubuntu16-04-1-xerus --disk name=hc-sourcefiles-uc1b,mode=rw --machine-type=g1-small +gcloud compute instances create homebase --image-family ubuntu-homebase --disk name=hc-sourcefiles-uc1b,mode=rw --machine-type=g1-small
bash
d_bash_23107
--- +++ @@ -1,2 +1,2 @@ #!/usr/bin/env bash -xctool.sh -workspace logger.xcworkspace -scheme logger -sdk iphonesimulator build test +xctool.sh -workspace logger.xcworkspace -scheme logger -sdk iphonesimulator clean build test
bash
d_bash_23108
--- +++ @@ -6,7 +6,7 @@ export REPO=jaegertracing/example-hotrod export CID=$(docker run -d -p 8080:8080 $REPO:latest) i=0 -while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8080)" != "200" && ${i} < 5 ]]; do +while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8080)" != "200" && ${i} < 30 ...
bash
d_bash_23109
--- +++ @@ -7,7 +7,7 @@ BUCKET="s3://please-releases/performance" echo "Generating test file tree" -/tmp/workspace/gen_parse_tree.pex --plz "$PLZ" --noprogress --size 500000 +/tmp/workspace/gen_parse_tree.pex --plz "$PLZ" --noprogress --size 300000 echo "Running parse performance test" /tmp/workspace/parse_perf...
bash
d_bash_23110
--- +++ @@ -1,11 +1,11 @@ #! /bin/sh echo "Standard compilation (64-bit?)" -g++ -std=c++98 tmp.cpp -o tmp +g++ -std=c++98 vector-array.cpp -o tmp ./tmp echo "" echo "" echo "32-bit" -g++ -m32 -std=c++98 tmp.cpp -o tmp +g++ -m32 -std=c++98 vector-array.cpp -o tmp ./tmp
bash
d_bash_23111
--- +++ @@ -15,4 +15,4 @@ cd ../../ fpm -s dir -t deb -n libturbojpeg-jni -v 1.5.1 --prefix /usr/lib libturbojpeg-jni.so rm -rf libturbojpeg-jni.so libjpeg-turbo/build - +chmod a+rw *.deb
bash
d_bash_23112
--- +++ @@ -5,6 +5,7 @@ PATH="~/bin:$PATH" +PATH="/usr/local/heroku/bin:$PATH" PATH="/usr/local/share/npm/bin:$PATH" PATH="/usr/local/bin:/usr/local/sbin:$PATH"
bash
d_bash_23113
--- +++ @@ -12,6 +12,10 @@ bundle install --deployment chown -R deploy:deploy /var/www/shadowcraft-ui +cp /var/www/shadowcraft-ui/backend/shadowcraft-engine.conf /etc/init + +service shadowcraft-engine restart + # Now that we have the actual site loaded, restart nginx to get it to regenerate # some of the stati...
bash
d_bash_23114
--- +++ @@ -9,7 +9,18 @@ # libintl must be listed in load flags on non-Glibc # it doesn't hurt to have it in Glibc either though gettextLdflags() { - export NIX_LDFLAGS="$NIX_LDFLAGS -lintl" + # The `depHostOffset` describes how the host platform of the dependencies + # are slid relative to the depending ...
bash
d_bash_23115
--- +++ @@ -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_23116
--- +++ @@ -8,9 +8,9 @@ PROVISIONING_PROFILE_PATH="${WORK_DIR}/build-scripts/Qmunicate_AdHoc.mobileprovision" SIGNING_IDENTITY="iPhone Distribution: Injoit LTD (8885H5G2YX)" -PRODUCT_NAME="Q-municate" -APP="${WORK_DIR}/build/Q-municate.app" -IPA="${WORK_DIR}/build/Q-municate.ipa" +PRODUCT_NAME="Qmunicate" +APP="$...
bash
d_bash_23117
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh -cd media/src +cd ../media/src cp DataTables.js DataTables.js.build
bash
d_bash_23118
--- +++ @@ -1,11 +1,12 @@ # Set it up. ORIGINAL_DIR=`pwd` - BASE_DIR=workenv/ - cd ~ + BASE_DIR=workenv # Link and copy files. + + cd $HOME ln -nfsv $BASE_DIR/bin/ bin
bash
d_bash_23119
--- +++ @@ -15,11 +15,6 @@ gem update --system gem install bundler - - # Install bundler v1 for older projects - # https://bundler.io/guides/bundler_2_upgrade.html#version-autoswitch - gem install bundler -v 1.17.3 - bundle install bundle exec rake install
bash
d_bash_23120
--- +++ @@ -12,6 +12,11 @@ mkdir -p ${target} && cd ${target} echo "${green}building: ${yellow}zk-web${reset}" + +if [[ -d ${target}/zk-web ]] ; then + rm -rf ${target}/zk-web +fi + git clone --depth=1 https://github.com/qiuxiafei/zk-web.git cd ${target}/zk-web
bash
d_bash_23121
--- +++ @@ -9,8 +9,8 @@ # Work around libpng/libtool/MinGW-w64/Code::Blocks problem on Windows -cp $BUILD_DIR/include/libpng15/* $BUILD_DIR/include/ || exit 1 -rm -f $BUILD_DIR/lib/libpng.* || exit 1 -cp $BUILD_DIR/lib/libpng15.a $BUILD_DIR/lib/libpng.a || exit 1 -cp $BUILD_DIR/lib/libpng15.dll.a $BUILD_DIR/lib/...
bash
d_bash_23122
--- +++ @@ -4,7 +4,7 @@ HERE=`pwd` ZOO_BASE_DIR="$HERE/zookeeper" -ZOOKEEPER_VERSION=${ZOOKEEPER_VERSION:-3.4.6} +ZOOKEEPER_VERSION=${ZOOKEEPER_VERSION:-3.4.7} ZOOKEEPER_PATH="$ZOO_BASE_DIR/$ZOOKEEPER_VERSION" ZOO_MIRROR_URL="http://apache.osuosl.org/"
bash
d_bash_23123
--- +++ @@ -14,12 +14,16 @@ echo "Please specify docker run --workdir /var/lib/go-agent" exit 1 fi +if [ "${GO_SERVER}" == "" ]; then + export GO_SERVER=go.genivi.org + echo "GO_SERVER was not defined - setting to ${GO_SERVER}" +fi git config --global user.name "easy-build" git config --global us...
bash
d_bash_23124
--- +++ @@ -1,6 +1,20 @@ #!/bin/sh +make doc rm -rf doc/rst && mkdir doc/rst -make doc -pandoc --read=html --write=rst doc/leo_mq_api.html -o doc/rst/leo_mq_api.rst -pandoc --read=html --write=rst doc/leo_mq_server.html -o doc/rst/leo_mq_server.rst + +for Mod in leo_mq_api \ + leo_mq_server +do + rea...
bash
d_bash_23125
--- +++ @@ -7,7 +7,7 @@ --volume "$PWD":/usr/src/openregister-java \ --workdir /usr/src/openregister-java \ openjdk:8 \ - bash -c "./gradlew stage" + bash -c "./gradlew assemble" fi docker-compose up
bash
d_bash_23126
--- +++ @@ -19,6 +19,9 @@ pushd $agent_dir sudo sv stop agent + # bosh-provisioner sends an apply spec that is no longer compatible with the agent + sudo rm -f /var/vcap/bosh/spec.json + # build agent bin/build
bash
d_bash_23127
--- +++ @@ -11,8 +11,9 @@ # Try to get BSSID from profile first config_load profile_$community config_get bssid bssidscheme $channel +config_get bssid_all bssidscheme "all" -if [ -z "$bssid" ]; then +if [ -z "$bssid" ] && [ -z "$bssid_all" ]; then case $channel in [1-9]) bssid="$(printf "%X\n" $channel)2:...
bash
d_bash_23128
--- +++ @@ -2,4 +2,4 @@ DIR=$(cd $(dirname $0)/..; pwd) -docker run -it -v $DIR:/app/buildpack:ro heroku/testrunner +docker run -it -e DOMAIN=devcctrl.com -e PAAS_VENDOR=cloudControl -v $DIR:/app/buildpack:ro heroku/testrunner
bash
d_bash_23129
--- +++ @@ -14,8 +14,7 @@ set -u playbook=$(basename $SYS_ANSIBLE_PLAYBOOK) -timestamp=$(date +%Y%m%d%H%M%S) -logfile="/var/www/html/cron-logs/ansible_${playbook}_${timestamp}.log" +logfile="/var/www/html/cron-logs/ansible_${playbook}_$(date +%Y%m%d%H%M%S).log" cd $SYS_ANSIBLE_ROOT git pull
bash
d_bash_23130
--- +++ @@ -8,6 +8,8 @@ /usr/bin/ischroot=/bin/true /usr/bin/ldd=@bindir@/ldd.fakechroot /usr/bin/mkfifo=/bin/true + /var/lib/dpkg/info/freebsd-utils.postinst=/bin/true + /var/lib/dpkg/info/kbdcontrol.postinst=/bin/true " FAKECHROOT_EXCLUDE_PATH="${FAKECHROOT_EXCLUDE_PATH:+$FAKECHROOT_EXCLUDE...
bash
d_bash_23131
--- +++ @@ -22,6 +22,10 @@ # leave only 2 base backups before creating a new one envdir "${WALE_ENV_DIR}" wal-e --aws-instance-profile delete --confirm retain 2 +# Ensure we don't have more workes than CPU's +POOL_SIZE=4 +[ $(nproc) -lt $POOL_SIZE ] && POOL_SIZE=$(nproc) + # push a new base backup log "producin...
bash
d_bash_23132
--- +++ @@ -11,4 +11,5 @@ iso_file_url="$(jq --raw-output '.variables.remote_mirror_url' ${template_filename})" iso_file_name="$(jq --raw-output '.variables.iso_name' ${template_filename})" new_iso_checksum=$(curl -sq ${iso_file_url}/$(echo ${iso_checksum_type} | awk '{print toupper($0)}')SUMS | grep ${iso_file_n...
bash
d_bash_23133
--- +++ @@ -5,11 +5,12 @@ # mv smc_6_1_0 foreign/smc_6_1_0 -# set up git and vim apt-get update -apt-get install -y git -apt-get install -y vim +# set up git and vim -- not necessary, code editing & git takes place outside the vm +# apt-get install -y git +# apt-get install -y vim +# +# git config --global c...
bash
d_bash_23134
--- +++ @@ -1,6 +1,6 @@ RT_JAR=/usr/lib/jvm/java-8-openjdk/jre/lib/rt.jar INCLUDES_DIR=../ -BUKKIT_TARGET=bukkit-1.7.9B1938.jar +BUKKIT_TARGET=bukkit-1.8.8B1.jar DST_DIR=. javac -Xlint:all -bootclasspath "$RT_JAR:$INCLUDES_DIR/$BUKKIT_TARGET" -d ./ src/*
bash
d_bash_23135
--- +++ @@ -5,7 +5,7 @@ } if [ "X$1" == "Xget" -o "X$1" == "Xplan" -o "X$1" == "Xapply" -o "X$1" == "Xdestroy" ]; then - terraform $1 -var-file '~/.aws/childcap.tfvars' -var-file='values.tfvar' -var 'app_server_ami=ami-0b235e31' ${@:2} + terraform $1 -var-file='values.tfvar' -var 'app_server_ami=ami-0b235e3...
bash
d_bash_23136
--- +++ @@ -13,9 +13,9 @@ # applying colors so ANSI color values will match # FIXME: not everyone will have these set, so we need to test for that. -git config color.diff.meta "yellow bold" -git config color.diff.commit "green bold" +git config color.diff.meta "227" git config color.diff.frag "magenta bold" +git...
bash
d_bash_23137
--- +++ @@ -21,7 +21,7 @@ apt-get install apt-utils -y export DEBIAN_FRONTEND=noninteractive - wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb + wget http://apt.puppetlabs.com/puppetlabs-release-trusty.deb apt-get install puppet -y fi
bash
d_bash_23138
--- +++ @@ -1,4 +1,5 @@ #!/bin/bash +coverage erase ./run_tests.py --with-coverage if [[ $? -ne 0 ]]; then exit 1; fi flake8 --exclude=".tox" .
bash
d_bash_23139
--- +++ @@ -1,3 +1,5 @@ #!/bin/sh -export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH -./BlackPearlDS3BrowserApp +pwd=`pwd` +export LD_LIBRARY_PATH=$pwd/lib:$LD_LIBRARY_PATH +export QT_QPA_PLATFORM_PLUGIN_PATH=$pwd/lib/plugins +./app/BlackPearl\ DS3\ Browser
bash
d_bash_23140
--- +++ @@ -2,14 +2,18 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +# ====== Symlink all dotfiles and dotfolders into root directory ====== # + for I in $(ls -A | grep -v -e "^\.git\(ignore\|attributes\)\?$" | grep ^\\.) do - if [ -f ~/$I ]; then + if [ -f ~/$I ] || [ -h ~/$I ]; then ...
bash
d_bash_23141
--- +++ @@ -4,7 +4,7 @@ composer install --no-dev --optimize-autoloader -mkdir build +mkdir -p build if [ ! -f box.phar ]; then wget https://github.com/box-project/box2/releases/download/2.6.0/box-2.6.0.phar -O box.phar
bash
d_bash_23142
--- +++ @@ -2,8 +2,7 @@ set -e JSON_DIR=$1 CWL_PATH=`pwd`/cwl/bin # Must be absolute - +OUTDIR=$2 for f in $JSON_DIR/*.json; do - PATH=$PATH:$CWL_PATH cwltool cwl/bigbed-workflow.cwl $f - exit + PATH=$PATH:$CWL_PATH cwltool --outdir $OUTDIR cwl/bigbed-workflow.cwl $f done
bash
d_bash_23143
--- +++ @@ -26,7 +26,7 @@ # Setup Java Options -JAVA_OPTS="-Dlogfile.path=target/log -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -server" +JAVA_OPTS="${JAVA_OPTS} -Dlogfile.path=target/log -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -server" if [ ! -z "$JAVA_TIMEZONE" ]; then JAVA_OPTS=...
bash
d_bash_23144
--- +++ @@ -3,4 +3,4 @@ export PATH="$PATH:$BOUNDARY_API_SHELL_HOME/bin" export PATH="$PATH:$BOUNDARY_API_SHELL_HOME/src/main/scripts/meter" export PATH="$PATH:$BOUNDARY_API_SHELL_HOME/src/main/scripts/metrics" - +export PATH="$PATH:$BOUNDARY_API_SHELL_HOME/src/main/scripts/events"
bash
d_bash_23145
--- +++ @@ -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_23146
--- +++ @@ -1,4 +1,24 @@ #!/bin/bash + +echo '' +echo ' ## . ' +echo ' ## ## ## == ' +echo ' ## ## ## ## === ' +echo ' /"""""""""""""""""\___/ === ' +echo ' ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~ ' +echo ' \______ o ...
bash
d_bash_23147
--- +++ @@ -1,8 +1,8 @@ #!/usr/bin/env bash YEAR=`date +%Y` -. ./config/* -. ./licenses/* +source ./config/* +source ./licenses/* # Displays the given input
bash
d_bash_23148
--- +++ @@ -5,6 +5,9 @@ OPTIONS="-config=test-integration/dbconfig.yml -env mysql_noflag" +output=$(mktemp $TMPDIR/mysql-flag.XXXXXX) + set -ex -sql-migrate status $OPTIONS | grep -q "Make sure that the parseTime option is supplied" +sql-migrate status $OPTIONS | tee $output +cat $output | grep -q "Make sure ...
bash
d_bash_23149
--- +++ @@ -11,7 +11,9 @@ RCLOCAL=/etc/rc.local PRESERVE $RCLOCAL -sed '/exit 0/i \/home/pi/RoboticLightBallet/pi-code/robotControl.py' \ +RUNNER=/home/pi/RoboticLightBallet/pi-setup/pi-run-code.sh +chmod +x $RUNNER +sed "/exit 0/i \ $RUNNER' \ < $RCLOCAL > /home/pi/rc.local.new mv /home/pi/rc.local.new $...
bash
d_bash_23150
--- +++ @@ -1,6 +1,14 @@ alias reload!='. ~/.zshrc' -[[ `uname` == "Linux" ]] && alias ls="ls -sh --color=auto" || alias ls="ls -GF" +uname="$(uname)" + +if [[ $uname == "Linux" ]]; then + alias ls="ls -sh --color=auto" +elif [[ $uname == "OpenBSD" ]]; then + alias ls="ls -F" +else # FreeBSD, OSX, etc + alias l...
bash
d_bash_23151
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -python motion_docgen.py '/Users/wlewis/data/work/beamlines/srx/commissioning/PS-R-XFD-SRX-RPT-002.xlsx' +python motion_docgen.py --file-path '/Users/wlewis/data/work/beamlines/srx/commissioning/PS-R-XFD-SRX-RPT-002.xlsx' --output-file = 'srx_motion_doc'
bash
d_bash_23152
--- +++ @@ -1,19 +1,21 @@ #! /bin/bash -dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -parent_dir="$(dirname "$dir")" +script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +root_dir="$(dirname "$script_dir")" # Package root dir +package_name=${parent_dir##*/} # Package name = package root di...
bash
d_bash_23153
--- +++ @@ -1,5 +1,4 @@ -export JAVA7_HOME=`/usr/libexec/java_home -v 1.7` export JAVA8_HOME=`/usr/libexec/java_home -v 1.8` -export JAVA_HOME=$JAVA7_HOME +export JAVA_HOME=$JAVA8_HOME export ANT_HOME=/Users/pmcdaniel/Toolchains/ant/1.9.3
bash
d_bash_23154
--- +++ @@ -3,7 +3,7 @@ # start osc2mqtt.py OSC to MQTT bridge with proper hosts and ports # -MQTT_HOST="dockstar3" +MQTT_HOST="localhost" MQTT_PORT="1883" OSC_PORT="9001"
bash
d_bash_23155
--- +++ @@ -1,7 +1,7 @@ #!/bin/sh set -e -REPODIR="src.galois.com:/srv/git" +REPODIR=${REPODIR:="src.galois.com:/srv/git"} REPOS="abcBridge jvm-parser llvm-pretty" PKGS="Java LLVM SAWCore Verinf"
bash
d_bash_23156
--- +++ @@ -34,3 +34,4 @@ make -j$NUM_PROCS kudu-ts-cli 2>&1 | tee -a build.log make -j$NUM_PROCS log-dump 2>&1 | tee -a build.log make -j$NUM_PROCS kudu-fs_dump 2>&1 | tee -a build.log +make -j$NUM_PROCS kudu-ksck 2>&1 | tee -a build.log
bash
d_bash_23157
--- +++ @@ -1,14 +1,34 @@ #!/bin/bash - -set -e - - run-parts -v /etc/rc.d -# for tests when container does not have a link to fastcgi -fgrep -q fastcgi /etc/hosts || echo '127.0.0.1 fastcgi' >> /etc/hosts +# Clenup children +trap 'kill $apache_pid $monitor_pid;' EXIT +# For tests when container does not have a...
bash
d_bash_23158
--- +++ @@ -2,7 +2,7 @@ set -ev brew install check -brew install valgrind +brew install --HEAD valgrind brew install graphviz brew install python brew install mbedtls
bash
d_bash_23159
--- +++ @@ -1,2 +1,2 @@ -curl https://raw.github.com/jprichardson/string.js/master/lib/string.js > ./vendor/assets/javascripts/string.js -curl https://raw.github.com/jprichardson/string.js/master/lib/string.min.js > ./vendor/assets/javascripts/string.min.js +curl https://raw.githubusercontent.com/jprichardson/string....
bash
d_bash_23160
--- +++ @@ -18,7 +18,7 @@ TESTS_DIR="${ROOT}/tests" . ${TESTS_DIR}/commonUtils.sh || { echo "Cannot load common utilities"; exit 1; } -ISTIOCLI="${ROOT}/demos/istioctl-linux" +ISTIOCLI="${ROOT}/demos/istioctl-linux -c ${HOME}/.kube/config" function create_rule() { $ISTIOCLI -n $NAMESPACE create -f $1 \
bash
d_bash_23161
--- +++ @@ -5,8 +5,15 @@ export MANPAGER="less -X" # Don’t clear the screen after quitting a manual page export EDITOR="vim" export TERM="screen-256color" +export VIM_COLOUR_SCHEME="solarized" export CLICOLOR=1 export JAVA_HOME=$(/usr/libexec/java_home) export PATH="/usr/local/heroku/bin:$PATH" export PATH=/op...
bash
d_bash_23162
--- +++ @@ -1,3 +1,14 @@ #/bin/bash -docker inspect --format '{{ .NetworkSettings.IPAddress }}' tomcat7 +if [[ -z $1 ]]; then + echo -e "\n*** Image Name missing.\nUsage: $0 <image-name>\n" + exit 1 +fi + +echo "-- Container Ip address --" +docker inspect --format '{{ .NetworkSettings.IPAddress }}' $1 + +echo -e "...
bash
d_bash_23163
--- +++ @@ -21,3 +21,21 @@ echo "Running cpplint..." tools/cpplint.py --root=src ${ALL_SOURCE_FILES} +# Run clang-tidy static analysis, if we have it. +if command -v clang-tidy >/dev/null 2>&1; then + echo "" + echo "Running clang-tidy..." + + # Generate a compile command database for our project. + TMP_BUILD...
bash
d_bash_23164
--- +++ @@ -2,3 +2,7 @@ alias gf='git flow' alias gap='git add -p' alias gst='git status' +alias goback='git checkout HEAD~' +gofwd() { + git checkout $(git rev-list --topo-order HEAD.."$*" | tail -1) +}
bash
d_bash_23165
--- +++ @@ -1 +1 @@ -cat /etc/*release | grep VERSION= && java -version && gradle -v && kotlinc -version && cat $ANDROID_SDK_ROOT/cmdline-tools/source.properties && sdkmanager --list --sdk_root=$ANDROID_SDK_ROOT && apt list --installed | grep openssh-server +cat /etc/*release | grep VERSION= && java -version && gradl...
bash
d_bash_23166
--- +++ @@ -6,33 +6,41 @@ prompt_gentoo_user=${2:-'green'} prompt_gentoo_root=${3:-'red'} - if [ "$USER" = 'root' ]; then + if [ "$USER" = 'root' ] + then base_prompt="%B%F{$prompt_gentoo_root}%m%k " + else + base_prompt="%B%F{$prompt_gentoo_user}%n@%m%k " + ...
bash
d_bash_23167
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -if [ -b "~/.aws/credentials" ] +if [ -b "$HOME/.aws/credentials" ] then exit fi
bash
d_bash_23168
--- +++ @@ -5,6 +5,9 @@ # Use C local to avoid local dates in headers export LANG=C + +# disable termcolor +export ANSI_COLORS_DISABLED=1 [ -z "${TMPDIR}" ] && TMPDIR="/tmp"
bash
d_bash_23169
--- +++ @@ -22,7 +22,7 @@ mv composer.phar /usr/local/bin/composer # Install global Composer packages -/usr/local/bin/composer global require laravel/installer laravel/lumen-installer laravel/valet tightenco/jigsaw spatie/http-status-check +/usr/local/bin/composer global require laravel/installer laravel/lumen-in...
bash
d_bash_23170
--- +++ @@ -2,6 +2,7 @@ mkdir -p docs/demos/assets mkdir -p build +rm -r build/* cd examples
bash
d_bash_23171
--- +++ @@ -14,5 +14,6 @@ # in the future these could parallelize export CC=clang export CFLAGS='-Werror=unused-variable' - build + # We disable introspection because it fails with clang: https://bugzilla.redhat.com/show_bug.cgi?id=1543295 + build --disable-introspection fi
bash
d_bash_23172
--- +++ @@ -11,10 +11,12 @@ echo "root=noReply@${DEFAULT_MAILSERVER}" > /etc/ssmtp/ssmtp.conf -if [[ "x"ROUTER_VIRTUAL_HOST != "x" ]]; then - echo "root=noReply@${ROUTER_VIRTUAL_HOST}" > /etc/ssmtp/ssmtp.conf - sed -i -e"s:server_name localhost:server_name ${ROUTER_VIRTUAL_HOST}:g" /etc/nginx/sites-available/d...
bash
d_bash_23173
--- +++ @@ -27,7 +27,7 @@ mkdir -p $PACKAGE_DIR fi - cp -r /vagrant/install_files/securedrop-grsec/DEBIAN $PACKAGE_DIR + cp -r /vagrant/install_files/securedrop-grsec/DEBIAN $PACKAGE_DIR/DEBIAN # Create the deb package dpkg-deb --build $PACKAGE_DIR
bash
d_bash_23174
--- +++ @@ -1,9 +1,9 @@ #!/bin/sh if ! [ -f "lib/gl3w/src/gl3w.c" ]; then - pushd lib/gl3w + cd lib/gl3w ./gl3w_gen.py - popd + cd ../.. fi if ! [ -d "build/linux" ]; then
bash
d_bash_23175
--- +++ @@ -7,7 +7,7 @@ DOCKER_USERNAME="${DOCKER_USERNAME:-mozjenkins}" -docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD -e $DOCKER_USERNAME@example.com +docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD # Push to docker hub docker push $DOCKER_IMAGE_TAG
bash
d_bash_23176
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh # Install the W3C HTML validator -#cd ~/travis-tmp +cd ~/travis-tmp #wget http://switch.dl.sourceforge.net/project/openjade/opensp/1.5.2/OpenSP-1.5.2.tar.gz #tar -xzf OpenSP-1.5.2.tar.gz #cd ~/travis-tmp/OpenSP-* @@ -8,6 +8,13 @@ #make --silent #make --silent install -#pri...
bash
d_bash_23177
--- +++ @@ -2,6 +2,10 @@ # Exit on the first failed line. set -e + +echo '----------------------------' +echo ' /var/aegir ' +ls -la /var/aegir # Prepare hostmaster bash docker-entrypoint.sh
bash
d_bash_23178
--- +++ @@ -8,4 +8,4 @@ cp -Rn /opt/default_config/. /opt/magic_mirror/config fi -$1 +exec $1
bash
d_bash_23179
--- +++ @@ -1,2 +1,2 @@ #!/bin/bash -curl -d "DEPLOY_SECRET_KEY=${DEPLOY_SECRET_KEY}&COMMIT=${TRAVIS_COMMIT}&BRANCH=${TRAVIS_BRANCH}" dotateamfinder.com:8000/deploy/ +curl -d "DEPLOY_SECRET_KEY=${DEPLOY_SECRET_KEY}&COMMIT=${TRAVIS_COMMIT}&BRANCH=${TRAVIS_BRANCH}" https://dotateamfinder.com:8000/deploy/
bash
d_bash_23180
--- +++ @@ -1,6 +1,3 @@ -CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -source "$CURRENT_DIR/plugin_functions.sh" - reload_tmux_environment() { tmux source-file $(_get_user_tmux_conf) >/dev/null 2>&1 }
bash
d_bash_23181
--- +++ @@ -2,9 +2,11 @@ set -e -x if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; + # wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; + wget https://repo.continuum.io/mini...
bash
d_bash_23182
--- +++ @@ -17,10 +17,10 @@ # If the environment variable $JAVA_TOOL_OPTIONS is set (even if empty), we just # launch the java command we are given. If it is not set, and we have a hint # from the environment of what the memory size is, then we set JAVA_TOOL_OPTIONS -# to a value that should cause the JVM to use t...
bash
d_bash_23183
--- +++ @@ -26,7 +26,7 @@ ln -s ~/.files/.zlogin ~/.zlogin ln -s ~/.files/.tmux.conf ~/.tmux.conf -vim +BundleInstall +vim +BundleInstall +qall mkdir ~/.vim/syntax
bash
d_bash_23184
--- +++ @@ -5,5 +5,4 @@ then PIE_FLAG="-pie" fi -$PIE_FLAG arm-linux-androideabi-g++ $@ $LDFLAGS $PIE_FLAG -lGLESv2 -L$GONKDIR/backup-flame/system/lib/
bash
d_bash_23185
--- +++ @@ -27,7 +27,6 @@ "$project_dir/command.js" \ --template-path $template_dir \ --include $assets_dir/basic.css,$assets_dir/custom-margin.css \ - --margin-type 2 \ --render-delay 500 \ $assets_dir/basic.html -o $output_file || exit 1
bash
d_bash_23186
--- +++ @@ -5,13 +5,15 @@ /persistent/selfupdate_server.py 8000& dpkg-deb -I /persistent/aktualizr.deb && dpkg -i /persistent/aktualizr.deb -aktualizr --version | grep "$(cat /persistent/aktualizr-version)" +akt_version=$(aktualizr --version) +(grep "$(cat /persistent/aktualizr-version)" <<< "$akt_version") || (e...
bash
d_bash_23187
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash source ./config.sh -java -jar -server -Xms8g -Xmx16g -Xmn2G forge-$FORGEVERSION-universal.jar nogui +java -jar -server -Xms8g -Xmx16g -Xmn2G -Dfml.queryResult=confirm forge-$FORGEVERSION-universal.jar nogui unset FORGEVERSION
bash
d_bash_23188
--- +++ @@ -11,7 +11,7 @@ xmodmap -e "pointer = 1 2 3" 2> /dev/null echo "-> Laptop mode" else - xrandr --output $IN --auto --output $EXT --primary --auto --above $IN + xrandr --output $IN --auto --output $EXT --primary --auto --right-of $IN xmodmap -e "pointer = 3 2 1" 2> /dev/null echo "-> Desktop mo...
bash
d_bash_23189
--- +++ @@ -5,8 +5,11 @@ $scriptDir/get_deps.sh -heap="-Xmx200m" +heap="-Xmx2g" # start with meteor heap size for arg in "$@"; do + if [[ "$arg" == "--metrics" ]]; then + heap="-Xmx200m" + fi # TODO: Check if this follows --metric if [[ "$arg" == "meteor" ]]; then heap="-Xmx2g"
bash
d_bash_23190
--- +++ @@ -1,7 +1,9 @@ #!/bin/sh +groupadd -g $DOCKER_GID docker +useradd -M -s $(which nologin) -u $DOCKER_UID -g $DOCKER_GID docker + groupadd -g $GID $USER -groupadd -g $DOCKER_GID docker useradd -s /usr/bin/zsh -u $UID -g $GID -G $DOCKER_GID $USER echo "$USER ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers.d/$USER...
bash
d_bash_23191
--- +++ @@ -10,4 +10,4 @@ cd $WORKSPACE/tubular pip install -r requirements.txt -python scripts/message_prs_in_range.py --org "edx" --repo "app-permissions" --base_sha ${GIT_PREVIOUS_COMMIT_1} --head_sha ${GIT_COMMIT_1} --release "jenkins" --extra_text " on ${ENVIRONMENT}-${DEPLOYMENT}-${JOB_TYPE}." +python scrip...
bash
d_bash_23192
--- +++ @@ -1,9 +1,9 @@ #!/bin/bash # create extension timescaledb in initial databases -psql -U postgres postgres -c "CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;" -psql -U postgres template1 -c "CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;" +psql -U "${POSTGRES_USER}" postgres -c "CREATE EXTENSION...
bash
d_bash_23193
--- +++ @@ -19,11 +19,11 @@ cp $TEMPDIR/copy_values_from_previous_event.php $HOOK_FUNCTION_DIR cp $TEMPDIR/force_data_entry_constraints.php $HOOK_FUNCTION_DIR cp $TEMPDIR/default_from_field.php $HOOK_FUNCTION_DIR +cp $TEMPDIR/rfio_data_entry.php $HOOK_FUNCTION_DIR HOOK_FUNCTION_DIR=$MYTARGETDIR/redcap_every_pag...
bash
d_bash_23194
--- +++ @@ -16,6 +16,8 @@ PFX=${PFX:-==>} REPO_DIR=${REPO_DIR:?} HOME=${HOME:?} +VSCODE_DOTFILES_DIR=$REPO_DIR/vscode +VSCODE_USER_SETTINGS_DIR="$HOME/Library/Application\ Support/Code/User" # # Main @@ -24,9 +26,9 @@ function configureVscode() { echo "$PFX Configuring vscode user settings" - ln -sf $...
bash
d_bash_23195
--- +++ @@ -5,6 +5,7 @@ pkg_file="$1" pkg_ident="$(gpg --decrypt $pkg_file 2>/dev/null \ | tar xOf - --wildcards --no-anchored 'IDENT')" +pkg_sha="$(openssl dgst -sha256 $pkg_file | awk '{ print $2 }')" set -x -${WGET:-wget} --post-file=$pkg_file -O- $BLDR_REPO/pkgs/$pkg_ident +${WGET:-wget} --post-file=$pkg_...
bash
d_bash_23196
--- +++ @@ -1,4 +1,6 @@ #!/usr/bin/env bash + +ARTIFACT_DIR=$CIRCLE_BUILD_NUM/$CIRCLE_NODE_INDEX/$BR"_"$1 grep -v _test log_artifact/$ARTIFACT_DIR/stderrout.log | grep onyx | grep Reflection
bash
d_bash_23197
--- +++ @@ -4,6 +4,9 @@ echo "I need one argument: the root folder of the MQWeb GitHub pages" exit fi + +pygmentize -o $1/api/samples/authinfo_inq.php.html ./authinfo_inq.php +pygmentize -o $1/api/samples/authrec_inq.pl.html ./authrec_inq.pl pygmentize -o $1/api/samples/queue_inq.pl.html ./queue_inq.pl p...
bash
d_bash_23198
--- +++ @@ -27,4 +27,4 @@ echo Previous signatures are now removed from the APK #TODO is this needed? #Delete previous signatures -zip -d $7 "META-INF/" +zipalign -v 4 $7 $7
bash
d_bash_23199
--- +++ @@ -37,6 +37,6 @@ exit 1 fi -find "$S3_CACHE_DEFAULT_DIR" -name "*.dat" -type f -mtime "+$MAX_AGE_DAYS" -exec rm {} \; +find "$S3_CACHE_DEFAULT_DIR" -name "*.dat" -type f -mtime "+$MAX_AGE_DAYS" | xargs rm exit 0
bash