document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_18800
--- +++ @@ -10,7 +10,7 @@ while ping $host -c 1 > /dev/null 2>&1; do >&2 echo "Bootstrap container is still running...sleeping" - sleep 30 + sleep 15 done >&2 echo "Bootstrap container is finished...Starting container"
bash
d_bash_18801
--- +++ @@ -1,4 +1,7 @@ #!/bin/bash +# fix the hostnames +for name in $(docker ps --format "{{.Names}}") ; do echo $name ; docker exec -u root $name /sbin/sysctl -w kernel.hostname=$name ; done +# fix /etc/hosts tempfile=/tmp/hosts$RANDOM for cid in $(docker ps -q) ; do name=$(docker inspect ${cid} | grep N...
bash
d_bash_18802
--- +++ @@ -20,7 +20,7 @@ BASEDIR=$(dirname "$BASH_SOURCE") ABSOLUTE_BASEDIR=$(realpath "$BASEDIR/..") -DOCKER_IMAGE_GOLANG=marcnuri/golang-1.15-java11 +DOCKER_IMAGE_GOLANG=marcnuri/golang-1.16-java11 docker run \ --rm ...
bash
d_bash_18803
--- +++ @@ -10,6 +10,7 @@ cd build find -name "*result*.xml" \ -o -name "*sponge_log.xml" \ + -o -name ".ninja_log" \ -o -name "pack.log" \ -o -name "place.log" \ -o -name "route.log" \
bash
d_bash_18804
--- +++ @@ -4,6 +4,7 @@ cp -R build/docs/javadoc $HOME/javadoc-latest cp -f README.md $HOME/index-latest.md + cp -f contributing.md $HOME/contributing-latest.md cd $HOME git config --global user.email "travis@travis-ci.org" @@ -14,6 +15,7 @@ git rm -rf ./javadoc ./index.md cp -Rf $HOME/javadoc-...
bash
d_bash_18805
--- +++ @@ -20,5 +20,6 @@ echo "- The branch must be named using following syntax, while the issue number is optional, in case there is no issue" echo " <branch-type>/[<issue-number>/]<branch-name>" echo " Example: feature/123/my-branch-name" +echo " Rename the current branch with: git branch -m <new-branch-nam...
bash
d_bash_18806
--- +++ @@ -14,11 +14,11 @@ # Set language and text formats # Note: if you’re in the US, you may replace `EUR` with `USD`, `Centimeters` # with `Inches`, `en_GB` with `en_US`, and `true` with `false`. - defaults write NSGlobalDomain AppleLanguages -array "es" - defaults write NSGlobalDomain AppleLocale -st...
bash
d_bash_18807
--- +++ @@ -8,7 +8,7 @@ apt-get update apt-get --no-install-recommends -y install build-essential ruby1.9.1-full libopenssl-ruby git-core -gem install --no-rdoc --no-ri chef --version=11.4.2 +gem install --no-rdoc --no-ri chef --version=11.6.0 gem install --no-rdoc --no-ri librarian-chef --version=0.0.1 echo ...
bash
d_bash_18808
--- +++ @@ -10,6 +10,6 @@ ARCH="arm" HOST="$ARCH-$OS-gnueabi" CFLAGS="-Os" -UDEV_SUPPORT="no" +UDEV_SUPPORT="yes" build
bash
d_bash_18809
--- +++ @@ -11,7 +11,7 @@ # Execute specific personal override settings -/vagrant/scripts/personal_env_setup.sh +#/vagrant/scripts/personal_env_setup.sh # Setup SSH /vagrant/scripts/ssh/ssh_setup.sh
bash
d_bash_18810
--- +++ @@ -7,7 +7,7 @@ sudo ed /etc/apache2/sites-available/default <<EOF /ErrorLog i -WSGIScriptAlias / /var/www/forensicator-fate +WSGIScriptAlias /ffate /var/www/forensicator-fate/ffate.py Alias /static /var/www/public_html <Directory /var/www/forensicator-fate> @@ -18,18 +18,17 @@ AddType text/html .py ...
bash
d_bash_18811
--- +++ @@ -1,12 +1,13 @@ # Find python file alias pyfind='find . -name "*.py"' -# Remove python compiled byte-code in either current directory or in a +# Remove python compiled byte-code and mypy cache in either current directory or in a # list of specified directories function pyclean() { ZSH_PYCLEAN_PLA...
bash
d_bash_18812
--- +++ @@ -1,7 +1,8 @@ # Description: usermod - Modify a user account # Notes -# None +# - The -G flag will add the user to all the Secondary groups listed after -G. This in effect can remove the user from +# all those existing secondary groups of which the user is a part of but not listed after -G flag. # ...
bash
d_bash_18813
--- +++ @@ -21,5 +21,6 @@ pip install -U pip pip install "$@" +set +x echo "Please run the following command to activate developer environment:" echo "source $VENV_NAME/bin/activate"
bash
d_bash_18814
--- +++ @@ -1,5 +1,5 @@ #!/usr/bin/env bash -docpad clean +node_modules/.bin/docpad clean ulimit -S -n 2048 -docpad run +node_modules/.bin/docpad run
bash
d_bash_18815
--- +++ @@ -1,6 +1,7 @@ set -e git clone https://github.com/ManageIQ/manageiq.git --depth 1 spec/manageiq +echo 'gem "manageiq-ui-classic", :path => "'$(/bin/pwd)'"' >> spec/manageiq/Gemfile.dev.rb cd spec/manageiq source tools/ci/setup_vmdb_configs.sh
bash
d_bash_18816
--- +++ @@ -5,28 +5,3 @@ # No commands for now echo "Banana Pro setup completed" } - -# This code will never be called. It's just kept for reference -get_uboot_bin_file(){ - TMPDIR=$(mktemp -d /tmp/bananapro-uboot.XXXXX) - - cat > $TMPDIR/Dockerfile <<EOF -FROM resin/rpi-raspbian:jessie - -# Run gpg ...
bash
d_bash_18817
--- +++ @@ -16,4 +16,4 @@ # --no-push - don't push committed and tagged changes. # --include-merged-tags - include tags from merged branches when detecting changed packages. # --yes - skip all confirmation prompts -yarn lerna version --force-publish --exact --no-git-tag-version --no-push --include-merged-tags -yes...
bash
d_bash_18818
--- +++ @@ -10,6 +10,8 @@ if [[ $distro == "redhat" ]];then sudo python3 -m pip install pynvim || true elif [[ $distro == "arch" ]];then + rm -rf /usr/lib/python*/site-packages + python -m ensurepip sudo pacman -S --noconfirm tar else sudo pip install pynvim
bash
d_bash_18819
--- +++ @@ -1,2 +1,26 @@ -VERSION=`git rev-list --count master` -sed -i -e "s/version=\"0\\.0\\.1\"/version=\"0.0.$VERSION\"/" config.xml +# Try to extract latest version tag from the current branch. +tag_and_revision=`git describe --tags --first-parent --candidates=1 --match=v* 2> /dev/null` + +if [ $? -eq 0 ]; then...
bash
d_bash_18820
--- +++ @@ -13,6 +13,9 @@ # Install all our dependencies with bundle (See Brewfile) brew tap homebrew/bundle brew bundle + +# Set default MySQL root password and auth type. +mysql -u root -e "ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY 'password'; FLUSH PRIVILEGES;" # Install PHP extensio...
bash
d_bash_18821
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -exou pipefail -rm -rf /usr/local/bin/*aptomi* /etc/aptomi /var/lib/aptomi ~/.aptomi +sudo rm -rf /usr/local/bin/*aptomi* /etc/aptomi /var/lib/aptomi ~/.aptomi hostname
bash
d_bash_18822
--- +++ @@ -21,6 +21,12 @@ # Install production dependencies npm install --production + # If data has not been initialized, do it + if [ ! -f "$APP_CONTENT/.initial_data_loaded" ]; then + gosu app node "$APP_CONTENT/load_initial_data.js" \ + && touch "$APP_CONTENT/.initial_data_loaded" + fi + # ...
bash
d_bash_18823
--- +++ @@ -12,7 +12,7 @@ cd ~/Lugdunum/samples mkdir build && cd build - (cmake .. -DBUILD_SHADERS=false && make all) || return 1 + (cmake .. -DBUILD_SHADERS=false) || return 1 (make all) || return 1 return 0
bash
d_bash_18824
--- +++ @@ -13,4 +13,4 @@ /home/user/fetch.sh echo "Starting web UI..." -python -m flatisfy serve --config /flatisfy/config.json +python -m flatisfy serve -v --config /flatisfy/config.json
bash
d_bash_18825
--- +++ @@ -18,8 +18,8 @@ xrandr --dpi 109 xrdb -merge ~/.Xresources.lodpi ;; - # Hopefully, Apple MacBook Pro 13" - "2560 x 1600") + # Hopefully, Apple MacBook Pro 13" or 15" + "2560 x 1600"|"2880 x 1800") ln -fs $fonts_avail_dir/hidpi-fonts.conf $fonts_dir/fonts.conf export UI_SCALE_FAC...
bash
d_bash_18826
--- +++ @@ -1,6 +1,7 @@ #!/bin/bash set -e +set -x if [[ -n "${HDO_DEPLOY_AUTH}" ]]; then echo "Checking bundle cache..."
bash
d_bash_18827
--- +++ @@ -14,7 +14,7 @@ mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc fi -entries="aarch64 alpha arm armeb hppa m68k mips mips64 mips64el mipsel mipsn32 mipsn32el ppc ppc64 ppc64le s390x sh4 sh4eb sparc sparc32plus sparc64" +entries="aarch64 aarch64_be alpha arm armeb hppa m68k microblaze microb...
bash
d_bash_18828
--- +++ @@ -17,7 +17,11 @@ # copy html assets cp $ORIGIN_ROOT/html/index.html $DIST_ROOT; # replace place holder KATAS_SERVICE_DOMAIN with env var, so it can be different in dev/prod mode -sed -i '' "s/\${KATAS_SERVICE_DOMAIN}/$KATAS_SERVICE_DOMAIN/g" $DIST_ROOT/index.html +if [[ $OSTYPE == darwin* ]]; then + sed...
bash
d_bash_18829
--- +++ @@ -17,3 +17,4 @@ # Installs the latest Mbed command-line toolchain. pip install mbed-cli +apt install -y gcc-arm-none-eabi
bash
d_bash_18830
--- +++ @@ -3,13 +3,15 @@ TIMELIMIT=5 fi echo -n . -( ulimit -t $TIMELIMIT; $1/bin/jstar -f $2.jimple ) 2> /dev/null +( $1/unit_tests/limit -w $TIMELIMIT -x "$1/bin/jstar -f $2.jimple" ) 2> /dev/null EC=$? case $EC in - 137) + 4) echo echo "Time limit (${TIMELIMIT}s) exceeded. Try" echo " TIM...
bash
d_bash_18831
--- +++ @@ -2,4 +2,11 @@ # called by Travis CI +if [[ "$TRAVIS_BRANCH" == "develop-v4" ]]; then + version=$(head -n 1 VERSION) + version="$(echo $version | xargs)" + version+="-nightly" + echo $version > VERSION +fi + php -dphar.readonly=0 ./utils/make-phar.php easyengine.phar --quite > /dev/null
bash
d_bash_18832
--- +++ @@ -1,4 +1,11 @@ #!/usr/bin/env bash + +# check if tag name was passed as argument +if [[ $# -eq 0 ]] +then + echo 'You have to pass a tag name as first argument!' + exit 1 +fi # extract the plugin name and the version from the given tag name tag_name=$1
bash
d_bash_18833
--- +++ @@ -3,9 +3,15 @@ apm list -ib > .atom/packages.list # copy all config files -find ~/.atom -type f -name "*.cson" -d 1 | xargs -I {} cp {} .atom/ -find ~/.atom -type f -name "*.coffee" -d 1 | xargs -I {} cp {} .atom/ -find ~/.atom -type f -name "*.less" -d 1 | xargs -I {} cp {} .atom/ +if [[ "$OSTYPE" == "...
bash
d_bash_18834
--- +++ @@ -16,8 +16,15 @@ function set_shutit_options() { local CNAME + local OPTS CNAME=shutit_test_container_$(dd if=/dev/urandom bs=256 count=1 2>/dev/null | md5sum | awk '{print $1}') - export SHUTIT_OPTIONS="-s container name $CNAME" + OPTS=${1:-none} + if [[ "$OPTS" = "none" ]] + then + export SHUTIT_O...
bash
d_bash_18835
--- +++ @@ -10,6 +10,9 @@ git init +# Copy examples/ and push into go-ovirt repository +cp -r ../examples ./ + git config --global user.email "travis@travis-ci.org" git config --global user.name "Travis CI"
bash
d_bash_18836
--- +++ @@ -8,6 +8,6 @@ OUT="outfile_$base" ssh $USR@$SERVER "(bin/hg_get_repo ${base})" > $OUT 2>&1 scp -r $USR@$SERVER:${base}.tgz . >> $OUT 2>&1 -tar xzf ${base}.tgz +tar xzf ${base}.tgz 2>> $OUT rm ${base}.tgz >> $OUT 2>&1
bash
d_bash_18837
--- +++ @@ -4,5 +4,4 @@ root_dir=`dirname $script_dir` $script_dir/build-all.sh -echo "Testing dax/math" -(cd $root_dir && go test math) +(cd $root_dir && go test ./...)
bash
d_bash_18838
--- +++ @@ -1,3 +1,4 @@ export PYENV_VIRTUALENV_DISABLE_PROMPT=1 eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" +eval "$(pyenv init --path)"
bash
d_bash_18839
--- +++ @@ -1,7 +1,7 @@ set -e -export RDO_VERSION='centos-master' -export DELOREAN_URL='http://trunk.rdoproject.org/centos7/consistent/delorean.repo' -export LAST_PROMOTED_URL='http://trunk.rdoproject.org/centos7/current-passed-ci/delorean.repo' +export RDO_VERSION='centos-mitaka' +export DELOREAN_URL='http://trunk...
bash
d_bash_18840
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -ex -VERSION=9.3.0 +VERSION=9.3.2 cd `dirname $0`
bash
d_bash_18841
--- +++ @@ -6,7 +6,7 @@ echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u302-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.tar.gz" ;; java11) - echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.11_9.tar.g...
bash
d_bash_18842
--- +++ @@ -25,5 +25,5 @@ echo "Deleting $stack_prefix AEM stacks..." delete_multi_stacks "apps/dns-records" delete_multi_stacks "apps/chaos-monkey apps/orchestrator apps/author-dispatcher apps/publish-dispatcher apps/publish apps/author" -delete_multi_stacks "apps/messaging apps/security-groups" +delete_multi_sta...
bash
d_bash_18843
--- +++ @@ -2,9 +2,19 @@ set -e -# Bootstrap the puppet module configuration # Source the profile to get the path . /etc/profile.d/puppet-agent.sh + +# FIXME: This should be moved into Puppet code +if [ "$( facter os.release.major )" -gt 7 ] ; then + # Without this, postgresql will not install. + yum -y ...
bash
d_bash_18844
--- +++ @@ -1,6 +1,6 @@ #! /bin/sh -ROOT=bin/root.exe +ROOT=bin/root dir=`pwd` cd tutorials
bash
d_bash_18845
--- +++ @@ -4,8 +4,8 @@ export WEPLAY_PORT=3001 export WEPLAY_SERVER_UID=1337 export WEPLAY_IP_THROTTLE=${CONTROLDELAY:-50} -export WEPLAY_INTERVAL="${COUNTERDELAY:-5000}" -export WEPLAY_IO_URL="http://${ENTRY:-BAD}:3001" +export WEPLAY_INTERVAL="${COUNTERDELAY:-12000}" +export WEPLAY_IO_URL="${THIS_URL_PORT:-BAD}...
bash
d_bash_18846
--- +++ @@ -4,6 +4,7 @@ add-apt-repository -y ppa:rethinkdb/ppa add-apt-repository -y ppa:chris-lea/node.js aptitude -y update +aptitude -y upgrade aptitude install -y rethinkdb nginx-light apache2-utils python-twisted \ rubygems python-pip npm nodejs ruby1.9.1 rubygems1.9.1 python-dev ruby1.9.1-dev \ b...
bash
d_bash_18847
--- +++ @@ -7,3 +7,4 @@ SPACESHIP_NODE_PREFIX='\n' SPACESHIP_PACKAGE_SHOW=true SPACESHIP_BATTERY_SHOW=false +SPACESHIP_KUBECONTEXT_SHOW=false
bash
d_bash_18848
--- +++ @@ -1,3 +1,7 @@ #!/bin/bash +if [[ -n $AUTO_BAMBOO_HOST ]]; then +sed -i "s/^.*Endpoint\": \"\(http:\/\/haproxy-ip-address:8000\)\".*$/ \"EndPoint\": \"$HOST\",/" \ + ${CONFIG_PATH:=config/production.example.json} +fi haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid /usr/bin/supervisord
bash
d_bash_18849
--- +++ @@ -16,4 +16,4 @@ git branch $name $base git checkout $name -git push origin origin:refs/heads/$name +git push
bash
d_bash_18850
--- +++ @@ -2,6 +2,11 @@ cd $APPCENTER_SOURCE_DIRECTORY source appcenter/slack.sh + +if [ "$AGENT_JOBSTATUS" != "Succeeded" ]; then + slack_notify_build_failed + exit 0 +fi ##################### ### Deploy to npm ###
bash
d_bash_18851
--- +++ @@ -10,7 +10,7 @@ export CYBER_DOJO_EXERCISES_START_POINTS_CLASS=ExercisesStartPointsService export CYBER_DOJO_LANGUAGES_CLASS=LanguagesService -export CYBER_DOJO_LANGUAGES__START_POINTS_CLASS=LanguagesStartPointsService +export CYBER_DOJO_LANGUAGES_START_POINTS_CLASS=LanguagesStartPointsService export...
bash
d_bash_18852
--- +++ @@ -1,4 +1,4 @@ -zstyle -s ':prezto:module:git:log:cherry' format '_git_log_cherry_format' \ +dcheck zstyle && zstyle -s ':prezto:module:git:log:cherry' format '_git_log_cherry_format' \ || _git_log_cherry_format="%m %C(green)%h%C(reset) %s%C(red)%d%C(reset)" # Log (l)
bash
d_bash_18853
--- +++ @@ -9,12 +9,16 @@ # remove all dots for the kernel id SCALA_MAJOR_VERSION_TRIMMED=$(echo ${SCALA_MAJOR_VERSION} | tr -d .) echo Installing almond ${ALMOND_VERSION} for Scala ${SCALA_FULL_VERSION} + EXTRA_ARGS=() + if [[ ${ALMOND_VERSION} == *-SNAPSHOT ]]; then + EXTRA_ARGS+=('--standalone') + f...
bash
d_bash_18854
--- +++ @@ -1,5 +1,6 @@ #!/bin/bash set -e -ROOT='/var/www-dev' -"$ROOT""/docs/update-translations.py" -o $ROOT >/dev/null +ROOT='/srv/tatoeba.org/www' +cd "$ROOT" +/tools/update-translations.sh -a
bash
d_bash_18855
--- +++ @@ -8,4 +8,4 @@ # #!/bin/bash -e - th train.lua --nGPU 1 --datasource gogod --num_forward_models 2048 --alpha 0.05 --epoch_size 128000 --data_augmentation +th train.lua --nGPU 1 --datasource kgs --num_forward_models 2048 --alpha 0.05 --epoch_size 128000 --data_augmentation
bash
d_bash_18856
--- +++ @@ -1,7 +1,7 @@ #!/bin/sh ### -# usage: replace-ember-config.sh /path/to/config.json /path/to/index.html +# usage: replace-ember-config.sh /path/to/urlencoded-config.json /path/to/index.html ### if [ ! -e $1 ]; then @@ -10,22 +10,25 @@ fi # https://gist.github.com/cdown/1163649 -urlencode() { - ...
bash
d_bash_18857
--- +++ @@ -1,4 +1,3 @@ GIT=https://gitlab.redox-os.org/redox-os/findutils.git -BRANCH=redox-unix GIT_UPSTREAM=https://github.com/uutils/findutils.git CARGOFLAGS="--bin find"
bash
d_bash_18858
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh -wget 'http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-11-15/2018-11-13-raspbian-stretch-lite.zip' -O raspbian.img.zip +wget 'http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-04-09/2019-04-08-raspbian-stretch-lite.zip' -O raspbian.i...
bash
d_bash_18859
--- +++ @@ -1,6 +1,10 @@ #!/usr/bin/env bash set -e + +# NOTE: Remove this once added to packer template +# and new box is available +apt-get install -yq libcairo2-dev /vagrant/package/appimage.sh
bash
d_bash_18860
--- +++ @@ -1,6 +1,7 @@ #!/bin/bash # Updates the database for the development system +mv ./infrastructure/cloud-sql-proxy/docker-compose.yml ./docker-compose.yml # Decrypt secret files archive that contain credentials. ./infrastructure/dev-deploy/decrypt-dev-secrets.sh @@ -10,7 +11,7 @@ export GOOGLE_AUTH_J...
bash
d_bash_18861
--- +++ @@ -1,2 +1 @@ -javapackager -deploy -native rpm -outdir package -outfile Nightcode -srcdir target -appclass nightcode.core -name "Nightcode" -title "Nightcode" -Bicon=package/linux/Nightcode.png -BappVersion=$1 -javapackager -deploy -native deb -outdir package -outfile Nightcode -srcdir target -appclass night...
bash
d_bash_18862
--- +++ @@ -19,6 +19,8 @@ ROOT_DIR=$(git rev-parse --show-toplevel) +cmake --version + cd ${ROOT_DIR?} rm -rf build/ mkdir build && cd build
bash
d_bash_18863
--- +++ @@ -3,7 +3,6 @@ node_modules/.bin/uglifyjs \ src/javascript/libs/imageblob-loader.js \ src/javascript/app.js \ - src/javascript/ui.js \ src/javascript/services/store.js \ src/javascript/services/share.js \ src/javascript/services/imageloader.js \
bash
d_bash_18864
--- +++ @@ -8,8 +8,8 @@ # TODO 2013-05-14 James Hughes - Removed this as we are operating under in standalone mode # move into build folder and clone current build repo -# git clone git@github.com:DFID/aid-platform-site.git build/ -# rm -rf build/* +git clone git@github.com:DFID/aid-platform-site.git build/ +rm -...
bash
d_bash_18865
--- +++ @@ -10,3 +10,4 @@ docker build -t praekelt/mama-ng-freeswitch $INSTALLDIR/$REPO/docker-vms/freeswitch docker build -t praekelt/mama-ng-smpp $INSTALLDIR/$REPO/docker-vms/smpp_transport docker build -t praekelt/mama-ng-static-reply $INSTALLDIR/$REPO/docker-vms/static_reply_app +docker build -t praekelt/mama-...
bash
d_bash_18866
--- +++ @@ -7,4 +7,4 @@ ./manage.py test --with-xunit --xunit-file=django_test_results.xml trial --reporter=subunit vumi | subunit2junitxml > test_results.xml trial --reporter=bwverbose-coverage vumi && coverage xml -pep8 --repeat vumi > pep8.txt +pep8 --repeat --exclude '0*.py' vumi > pep8.txt
bash
d_bash_18867
--- +++ @@ -3,4 +3,4 @@ IMAGE_NAME=$1 CONTAINER_NAME=$2 -docker run --name ${CONTAINER_NAME} -v ~/workspace/personfinder:/opt/personfinder -p 127.0.0.1:8000:8000 -it ${IMAGE_NAME} /bin/bash +docker run --name ${CONTAINER_NAME} -v ../:/opt/personfinder -p 127.0.0.1:8000:8000 -it ${IMAGE_NAME} /bin/bash
bash
d_bash_18868
--- +++ @@ -22,6 +22,6 @@ DEPLOYTOOLS_VERSION="==$1" fi +pip install -U pip setuptools awscli boto3 "nitor-deploy-tools$DEPLOYTOOLS_VERSION" source $(n-include common_tools.sh) ln -snf /usr/bin/lpass_$(system_type_and_version) /usr/bin/lpass -pip install -U pip setuptools awscli boto3 "nitor-deploy-tools$DEPL...
bash
d_bash_18869
--- +++ @@ -1,5 +1,8 @@ set -e mkdir /evidence -chown vagrant:vagrant /evidence +if grep 'vagrant' /etc/passwd + then + chown vagrant:vagrant /evidence +fi echo 'all set, rock on!'
bash
d_bash_18870
--- +++ @@ -21,6 +21,7 @@ echo "Adding nodejs buildpack..." heroku buildpacks:add --index 1 heroku/nodejs --app $HEROKU_APP_NAME +heroku buildpacks:add --index 2 heroku/ruby --app $HEROKU_APP_NAME echo "Pushing code to Heroku app..."
bash
d_bash_18871
--- +++ @@ -12,7 +12,7 @@ SMALLTALK_CI_VM=`find $SMALLTALK_CI_VMS -name pharo -type f -perm +0111 | head -n 1` # load the conf package -./pharo $SMALLTALK_CI_IMAGE eval --save "Gofer new url: '$REPO_URL' username: '$HUB_USER' password: '$HUB_PASS'; package: '$PACKAGE_NAME'; load." +$SMALLTALK_CI_VM $SMALLTALK_CI_...
bash
d_bash_18872
--- +++ @@ -9,11 +9,21 @@ export PAGER="less" export LESS="-R" -export LC_CTYPE=$LANG - ## super user alias alias _='sudo' alias please='sudo' ## more intelligent acking for ubuntu users alias afind='ack-grep -il' + +## how to interpret text characters +if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then # only ...
bash
d_bash_18873
--- +++ @@ -24,23 +24,3 @@ unset HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_{FOUND,NOT_FOUND} fi -# -# Key Bindings -# - -if [[ -n $key_info ]]; then - # Emacs - bindkey -M emacs "$key_info[Control]P" history-substring-search-up - bindkey -M emacs "$key_info[Control]N" history-substring-search-down - - # Vi - bind...
bash
d_bash_18874
--- +++ @@ -3,7 +3,7 @@ # # LAMP -open http://www.mamp.info/en/index.html +# open http://www.mamp.info/en/index.html (use the one provided in brew :)) open http://www.sequelpro.com/download # IDEs @@ -21,13 +21,8 @@ # Dev Browsers open https://www.google.com/intl/en/chrome/browser/ +open https://www.googl...
bash
d_bash_18875
--- +++ @@ -12,7 +12,7 @@ cd $(dirname $0) CURRENT_REF=$(git log -1 --format="%H") -CHANGELOG_MODIFIED=$(git diff origin/develop --name-only | grep $CHANGELOG -q >/dev/null)$? +CHANGELOG_MODIFIED=$(git diff origin/develop...HEAD --name-only | grep $CHANGELOG -q >/dev/null)$? if [ $CHANGELOG_MODIFIED -ne 0 ]; ...
bash
d_bash_18876
--- +++ @@ -16,7 +16,7 @@ alias history='fc -l 1' -alias ls='ls -GF' +alias ls='ls -F' alias ll='ls -al' alias sgem='sudo gem' @@ -34,3 +34,6 @@ alias ett='mate app config lib db public spec test Rakefile Capfile Todo &' alias etp='mate app config lib db public spec test vendor/plugins vendor/gems Rakefile...
bash
d_bash_18877
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -python -m SimpleHTTPServer 8000 +python -m SimpleHTTPServer 8000 & open http://localhost:8000
bash
d_bash_18878
--- +++ @@ -4,10 +4,10 @@ echo "Identifying platform: $PLATFORM" case $PLATFORM in - "i686") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20x86/lastSuccessfulBuild/artifact/MCServer.tar" ;; - "x86_64") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20x64/lastSuccessfulBuild/artifact...
bash
d_bash_18879
--- +++ @@ -1,25 +1,43 @@ #!/bin/sh -flags= -while :; do - pattern="$1" - case "$pattern" in - -i|-I|-a|-E|-H|-h|-l) - flags="$flags $pattern" - shift - ;; - -e) - pattern="$2" - shift - break - ;; - -*) - echo "unknown flag $pattern" >&2 - exit 1 - ;; - *) - break - ;; - e...
bash
d_bash_18880
--- +++ @@ -1,16 +1,16 @@ describe "Shoreman" it_displays_usage() { - usage=$(sh ./shoreman.sh --help | head -n1) + usage=$(bash ./shoreman.sh --help | head -n1) test "$usage" = "Usage: shoreman [<procfile>]" } it_runs_simple_processes() { - output=$(sh ./shoreman.sh 'test/fixtures/simple_procfile' | he...
bash
d_bash_18881
--- +++ @@ -11,7 +11,7 @@ go get github.com/aktau/github-release # Change the app version -sed -i -e "s/%app.version%/${VERSION}/g" src/main.go +sed -i -e "s/%app.version%/${VERSION}/g" main.go # Build the binary make bootstrap
bash
d_bash_18882
--- +++ @@ -1,5 +1,5 @@ #!/usr/bin/env bash -make px4fmu-v4_default -cp build/px4fmu-v4_default/parameters.xml ../qgroundcontrol/src/FirmwarePlugin/PX4/PX4ParameterFactMetaData.xml -cp build/px4fmu-v4_default/airframes.xml ../qgroundcontrol/src/AutoPilotPlugins/PX4/AirframeFactMetaData.xml +make posix_sitl_default...
bash
d_bash_18883
--- +++ @@ -5,6 +5,7 @@ 'http://localhost:7531/samples/sass/' \ 'http://localhost:7531/samples/hellolua/' \ 'http://localhost:7531/samples/greetings/' \ + 'http://localhost:7531/samples/pongo2/' \ ; do echo "$url"
bash
d_bash_18884
--- +++ @@ -2,17 +2,17 @@ set -e -TAG="registry.gitlab.gnome.org/gnome/glib-networking/master:v5" +TAG="registry.gitlab.gnome.org/gnome/glib-networking/master:v4" cd "$(dirname "$0")" -podman build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" . +sudo docker build --build-arg HOST_USER_ID="$UID" --tag "${T...
bash
d_bash_18885
--- +++ @@ -13,9 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -gce_config() { +google_hostname_config() { set_hostname } -gce_restore() { +google_hostname_restore() { : }
bash
d_bash_18886
--- +++ @@ -14,7 +14,7 @@ headHash=$(git rev-parse HEAD) find . ! -name '.' ! -name '..' ! -name 'bin' ! -name 'opt' -maxdepth 1 -print0 | xargs -0 rm -rf -- - heroku buildpacks:publish $1/$BP_NAME + heroku buildkits:publish $1/$BP_NAME if [ "$1" = "heroku" ]; then newTag=$(heroku buildpacks:revis...
bash
d_bash_18887
--- +++ @@ -5,6 +5,6 @@ mocha \ --retries 5 \ --require test.config.js \ - -t 30000 \ + -t 60000 \ $@ \ dotenv_config_path=.env.test
bash
d_bash_18888
--- +++ @@ -6,7 +6,7 @@ controlScript=$WORKSPACE/resources/continuous-integration/deploy/tomcat/control.sh lastStableWAR=$WORKSPACE/application/target/mifos-webapp.war -lastStableWAR=$WORKSPACE/../$WAR_JOB/application/target/mifos-webapp.war +lastStableWAR=$WORKSPACE/../../$WAR_JOB/workspace/application/target/mi...
bash
d_bash_18889
--- +++ @@ -10,7 +10,11 @@ # install Vundle git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim source ~/.bash_profile - vim +PluginInstall +qall + read -p "Would you to install vim plugins ? (y/n) " -n 1 + echo + if [[ $REPLY =~ ^[Yy]$ ]]; then + vim +PluginInstall +qall + fi } if [ ...
bash
d_bash_18890
--- +++ @@ -5,6 +5,10 @@ ./peering_filters all if [ "$(python -c "import yaml,sys;a = yaml.safe_load(sys.stdin); print a['rpki']['validation'];" < vars/generic.yml)" == "True" ]; then + if [ ! -d /opt/routefilters/rpki ] ; then + mkdir /opt/routefilters/rpki + fi + rtrsub --afi ipv4 < ./temp...
bash
d_bash_18891
--- +++ @@ -1,6 +1,9 @@ #!/bin/bash OUTDIR=../freshtml + +ln -s ../README.txt +ln -s ../NEWS.txt rm -rf $OUTDIR
bash
d_bash_18892
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash qmake -v -CXX="g++" + if [[ "$CXX" == "g++" ]] then qmake ./src/arangodb-driver.pro -r -spec linux-g++ CONFIG+=debug
bash
d_bash_18893
--- +++ @@ -3,10 +3,11 @@ env ansible="ansible first_in_tag_Name_${environment}-${deployment}-worker -i playbooks/ec2.py -u ubuntu -s -U www-data -a" -manage="/edx/bin/python.edxapp /edx/bin/manage.edxapp lms change_enrollment --settings aws" +manage="/edx/bin/python.edxapp /edx/bin/manage.edxapp lms change_enrol...
bash
d_bash_18894
--- +++ @@ -7,7 +7,17 @@ GIT_BRANCH=$WERCKER_GIT_BRANCH -if ! go get code.google.com/p/go.tools/cmd/cover; then +version=$(go version) +regex="(go[0-9].[0-9].[0-9])" +if [[ $version =~ $regex ]]; then + version=${BASH_REMATCH[1]} +else + fail 'Unable to determine Go version' +fi + +if [[ "$version" < "go1.4.0"...
bash
d_bash_18895
--- +++ @@ -3,3 +3,4 @@ chmod 0600 /mnt/source/docker/base/id_rsa cp /mnt/source/docker/base/ssh_config /home/core/.ssh/config chmod 0644 /mnt/source/docker/base/id_rsa.pub +chown -R core:core /home/core/.ssh
bash
d_bash_18896
--- +++ @@ -15,6 +15,7 @@ #define __LINUX__ 1 #define _GNU_SOURCE 1 #define USE_FREETYPE 1 +#define GPUVIS_IMPLEMENTATION END_HEREDOC ) echo "${DEFINES}" > ${PROJNAME}.config
bash
d_bash_18897
--- +++ @@ -10,6 +10,6 @@ ## pager export PAGER="less" -export LESS="-R" +export LESS="--quit-if-one-screen --hilite-search --ignore-case --LONG-PROMPT --RAW-CONTROL-CHARS --hilite-unread --no-init --window=-4" export LC_CTYPE=$LANG
bash
d_bash_18898
--- +++ @@ -5,6 +5,8 @@ if [ -d "/Applications/Vagrant/bin" ]; then export PATH="/Applications/Vagrant/bin:$PATH" fi + + alias dunnet="emacs -batch -l dunnet" if [ -d "/Applications/Postgres.app/Contents/MacOS/bin" ]; then export PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
bash
d_bash_18899
--- +++ @@ -22,6 +22,9 @@ sudo gem install rdoc sudo gem install jekyll +#Change folder name from Japanese to English. +LANG=c xdg-user-dirs-gtk-update + bit=$(uname -m) #Install Dropbox
bash