document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_18400
--- +++ @@ -15,12 +15,22 @@ test "$result" = "-11" } -it_performs_multiplication() { +it_performs_multiplication_with_integers() { result=$(bin/lishp "(* 2 3)") test "$result" = "6" } -it_performs_division() { - result=$(bin/lishp "(/ 1 2)") +it_performs_multiplication_with_floats() { + res...
bash
d_bash_18401
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash +#Patch basebox to remove "stdin is not a tty" errors by removing "mesg n" from this file +echo "" >/root/.profile echo "... Installing the correct librarian-puppet and facter versions" # Remove puppet 2.7.19 which is installed on this basebox gem uninstall puppet -v '2.7.19' >...
bash
d_bash_18402
--- +++ @@ -1,3 +1,16 @@ #!/usr/bin/env bash kubectl exec -i -t $(kubectl get pod -l "app=php-fpm" -o jsonpath='{.items[0].metadata.name}') -- bash + +# Dump the Json so that you can narrow it down using Json Path: +# kubectl get pod -l "app=php-fpm" -o=json + +# Example: the json path +# .items[0].spec.container...
bash
d_bash_18403
--- +++ @@ -6,7 +6,7 @@ if [ -n "$unhealthy_containers" ]; then echo -e "Found unhealthy containers:\n ID NAME -$unhealthy_containers" +$unhealthy_containers\n" exit 1 else echo "No unhealthy containers found"
bash
d_bash_18404
--- +++ @@ -6,9 +6,10 @@ # - Firebase queue server # - Cerebral react website +#'/opt/logstash/bin/logstash -f queue/utils/logstash_config_elastic.conf' \ +#'/usr/share/kibana/bin/kibana' \ + ./node_modules/.bin/concurrently -k -r \ -'/opt/logstash/bin/logstash -f queue/utils/logstash_config_elastic.conf' \ -'/u...
bash
d_bash_18405
--- +++ @@ -2,14 +2,12 @@ home="/home/$USER/.minishift" if [ -z ${MINISHIFT_HOME+x} ] then - echo "MINISHIFT_HOME is unset"; + echo "MINISHIFT_HOME is not set"; else echo "MINISHIFT_HOME is set to '$MINISHIFT_HOME'" home="${MINISHIFT_HOME}" fi -echo $home - file=$(find $home -name "oc" -type "f") s...
bash
d_bash_18406
--- +++ @@ -10,3 +10,4 @@ echo | add-apt-repository ppa:saltstack/salt apt-get update apt-get install -y salt-minion +service salt-minion start
bash
d_bash_18407
--- +++ @@ -6,12 +6,6 @@ export GOVUK_APP_DOMAIN=dev.gov.uk export GOVUK_ASSET_HOST=http://static.dev.gov.uk -# DELETE STATIC SYMLINKS AND RECONNECT... -for d in images javascripts templates stylesheets; do - rm public/$d - ln -s ../../Static/public/$d public/ -done - export DISPLAY=:99 bundle exec rake stats...
bash
d_bash_18408
--- +++ @@ -14,3 +14,8 @@ # ./upk --set-desired-state package-$i service-$i stop # sleep 1 done + +echo <<EOF +You'll now need to start a buddy-controller. +./upkeeper-init is a way to do so. +EOF
bash
d_bash_18409
--- +++ @@ -7,3 +7,5 @@ mkdir -p /var/www/html ln -sfn /vagrant/codebase/lidsys-web /var/www/html/lidsys-web + +mkdir -p /vagrant/codebase/lidsys-web
bash
d_bash_18410
--- +++ @@ -10,7 +10,7 @@ export LC_ALL="en_US.UTF-8" locale-gen en_US.UTF-8 -apt-get install -y -q git build-essential linux-headers-amd64 libpython-dev\ +apt-get install -y -q git build-essential linux-headers-amd64 libpython3-dev\ virtualenvwrapper postgresql libpq-dev libjpeg-dev libfreetype6-dev\ ...
bash
d_bash_18411
--- +++ @@ -5,12 +5,7 @@ zle -N zle-line-init zle -N zle-keymap-select -#changing mode clobbers the keybinds, so store the keybinds before and execute -#them after -binds=`bindkey -L` bindkey -v -for bind in ${(@f)binds}; do eval $bind; done -unset binds # if mode indicator wasn't setup by theme, define defa...
bash
d_bash_18412
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -javadoc -private -sourcepath src/main/java:src/test/java -use -version -author -d doc org.numenta.nupic org.numenta.nupic.util org.numenta.nupic.model org.numenta.nupic.research org.numenta.nupic.integration org.numenta.nupic.encoders org.numenta.nupic.algorithms +javadoc -priv...
bash
d_bash_18413
--- +++ @@ -10,9 +10,9 @@ shift || true if [[ "$cmd" = "jit" ]]; then -cargo "+${TOOLCHAIN}" rustc "$@" -- -Cllvm-args=mode=jit -Cprefer-dynamic +RUSTFLAGS="-Cprefer-dynamic" cargo "+${TOOLCHAIN}" rustc "$@" -- -Cllvm-args=mode=jit elif [[ "$cmd" = "lazy-jit" ]]; then -cargo "+${TOOLCHAIN}" rustc "$@" -- -Cllvm-...
bash
d_bash_18414
--- +++ @@ -2,12 +2,19 @@ set -e source ops/dev/vars.sh -echo "Starting devserver in tmux session..." +session=tba tmux start-server -tmux new-session -d -s tba -tmux new-window -t "tba:1" -n gae "paver devserver; read" -tmux new-window -t "tba:2" -n gulp "gulp; read" -tmux select-window -t "tba:0" + +if tmux ha...
bash
d_bash_18415
--- +++ @@ -8,9 +8,6 @@ pip install httplib2 su postgres -c 'createuser -dRS vagrant' su vagrant -c 'createdb' -su vagrant -c 'createdb forum' -su vagrant -c 'psql forum -f /vagrant/forum/forum.sql' -vagrantTip="The shared directory is located at /vagrant\nTo access your shared files: cd /vagrant(B"...
bash
d_bash_18416
--- +++ @@ -30,7 +30,7 @@ fi brew tap homebrew/dupes -brew tap phinze/homebrew-cask +brew tap Keithbsmiley/homebrew-cask brew update & wait
bash
d_bash_18417
--- +++ @@ -15,7 +15,7 @@ for LINE in $(find $OPTARG -name '*.CR2') ; do HASH=$(cut -d ' ' -f1 <(sha1sum ${LINE})) NEWFILE=${LIBRARY}/raw/${HASH}.CR2 - cp ${LINE} ${NEWFILE} + [ -f ${NEWFILE} ] || cp ${LINE} ${NEWFILE} dcraw...
bash
d_bash_18418
--- +++ @@ -7,10 +7,10 @@ # Kippo docker rm -f kippo docker pull andrewmichaelsmith/kippo -docker run --restart=always -d -p 22:2222 --name kippo andrewmichaelsmith/docker-kippo +docker run --restart=always -d -p 22:2222 --name kippo andrewmichaelsmith/kippo # Dionaea docker rm -f dionaea docker pull andrewmi...
bash
d_bash_18419
--- +++ @@ -18,6 +18,7 @@ else # If multiple log files, just use first found log_file=`find . -iname '*.log' -print -quit` + # TODO if no file found, exit with message fi if [[ $@ != *"-A"* ]]; then
bash
d_bash_18420
--- +++ @@ -37,6 +37,6 @@ _jenv_init \ && [[ "$(_jenv_available)" == "true" ]] \ - && JAVA_HOME=$($jenv_bin/jenv javahome) \ + && export JAVA_HOME=$($jenv_bin/jenv javahome) \ && source $ZSH_CUSTOM/plugins/jenv/jenv_functions.zsh
bash
d_bash_18421
--- +++ @@ -7,6 +7,4 @@ alias fff="fzf --preview 'bat --style=numbers --color=always {+} | head -100'" alias ffg="git log --color=always --oneline --decorate | fzf --ansi --multi --preview 'git show --pretty=short --show-signature {+1} --color=always'" -eval "$(opam env)" eval "$(fnm env)" -source $HOME/.cargo/e...
bash
d_bash_18422
--- +++ @@ -26,6 +26,7 @@ install_npm_pkg grunt-cli install_npm_pkg vsce install_npm_pkg typescript +install_npm_pkg ts-node install_npm_pkg jest install_node_version 12.16.3 --reinstall-packages-from=default
bash
d_bash_18423
--- +++ @@ -2,6 +2,12 @@ echo $cwd for input in $(ls /workspaces/tudien/dict/*.tab) do - output = BASE="${input%.*}.ilo" - pyglossary input output --read-format=Tabfile + echo $input + + base=$(basename -s .tab "$input") + outdir="./output/stardict/base/" + output="$outdir$base.ifo" + + echo $...
bash
d_bash_18424
--- +++ @@ -31,6 +31,7 @@ echo -e "------------------------------------------------------------------------------------" fi echo "" + trap - EXIT } if [[ ! -z $VVV_LOG ]]; then
bash
d_bash_18425
--- +++ @@ -5,7 +5,7 @@ cd /tmp rm -rf /tmp/$APP /tmp/$APP-*.zip 2>/dev/null -git clone git@github.com:fguillot/$APP.git +git clone https://github.com/fguillot/$APP.git rm -rf $APP/data/*.sqlite $APP/.git $APP/.gitignore $APP/scripts $APP/tests $APP/Vagrantfile $APP/.*.yml $APP/phpunit.xml $APP/README.markdown $...
bash
d_bash_18426
--- +++ @@ -18,12 +18,16 @@ APPREPOSITORYNAME='' APPSETTINGS='' APPSETTINGSDIR='' +APPSETTINGSDB='' +APPSETTINGSTYPE='' APPSHORTNAME='' APPSYSTEMD='' APPSYSTEMD2='' APPSYSTEMDLOC='' APPSYSTEMDLOC2='' APPTITLE='' +DBUSERNAME='' +DBPASSWORD'' NEWPASS='' NZBGET_BIN='' NZBGET_CONF=''
bash
d_bash_18427
--- +++ @@ -42,9 +42,8 @@ if $opt_build then hdr "Building" - rm -fr dist/bin mkdir -p dist/bin - stack --work-dir .stack-work-deploy --local-bin-path $install_path install --flag Snowdrift:-dev + stack --work-dir .stack-work-deploy --local-bin-path $install_path insta...
bash
d_bash_18428
--- +++ @@ -1,10 +1,10 @@ -source ~/.fresh/build/shell.sh - export DOTFILES=~/.dotfiles # Find the this folder # Source the dotfiles source $DOTFILES/shell/functions.sh # Misc functions source $DOTFILES/shell/exports.sh # Load exports + +source ~/.fresh/build/shell.sh if [ $SHELL = "/bin/zsh" ]; th...
bash
d_bash_18429
--- +++ @@ -13,7 +13,7 @@ BUILD_HOSTS="snares" parallel -j 2 --arg-sep ::: ssh -x {} graphviz-build/macosx/graphviz-snowleopard-bin-pkg.sh $DIR ::: $BUILD_HOSTS -BUILD_HOSTS="pome.client.research.att.com" +BUILD_HOSTS="pome" parallel -j 2 --arg-sep ::: ssh -x {} graphviz-build/macosx/graphviz-mountainlion-bin-pk...
bash
d_bash_18430
--- +++ @@ -6,3 +6,4 @@ make VERBOSE=1 cd .. ./cmake_build/src/garth +exit 0
bash
d_bash_18431
--- +++ @@ -18,6 +18,14 @@ fi echo -e "${time} [ $(LoggerUtil _formatLogLevel ${1}) ] ${message}" + } + + assertContains(){ + if [[ $(readvar ${1}) =~ $(readvar ${2}) ]]; then + echo PASS + else + echo FAIL + fi } assertEquals(){
bash
d_bash_18432
--- +++ @@ -1,3 +1,5 @@ +alias j="jobs" + alias ls="ls -G" alias ll="ls -la" alias la="ls -A"
bash
d_bash_18433
--- +++ @@ -3,7 +3,7 @@ for domain in $( list_ssh_hosts ); do echo "Propagating to $domain:" echo "Command: $@" - ssh "$domain" $@ + ssh -t "$domain" $@ echo done )}
bash
d_bash_18434
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash -# Fix for squeeze -export PATH=$PATH:/var/lib/gems/1.8/bin/ +# Fix for squeeze and el7 +export PATH=$PATH:/var/lib/gems/1.8/bin/:/usr/local/bin # Install latest version of facter gem install bundler --no-ri --no-rdoc
bash
d_bash_18435
--- +++ @@ -6,3 +6,6 @@ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/aalto_android.keystore platforms/android/build/outputs/apk/android-x86-release-unsigned.apk google_play jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/aalto_android.keystore platforms/android/build/outputs...
bash
d_bash_18436
--- +++ @@ -29,6 +29,6 @@ else # On a pull request, just build debug which is much faster and catches # obvious errors. - GRADLE_OPTS=$OPTS ./gradlew clean :app:assembleDebug + GRADLE_OPTS=$OPTS ./gradlew clean :mobile:assembleDebug fi
bash
d_bash_18437
--- +++ @@ -11,7 +11,7 @@ eval "$(ssh-agent -s)" #start the ssh agent ssh-add .travis/id_rsa - gulp cd:pushAndRun + gulp cd elif [ $TRAVIS_BRANCH = "staging" ]; then echo "Deploying to staging and testing"
bash
d_bash_18438
--- +++ @@ -16,7 +16,11 @@ ###################################################################### setLibsshTriggerVars() { - LIBSSH_BLDRVERSION_STD=${LIBSSH_BLDRVERSION:-"0.5.5"} + if test "$VISUALSTUDIO_VERSION" = 11; then + LIBSSH_BLDRVERSION_STD=${LIBSSH_BLDRVERSION:-"0.6.0"} + else + LIBSSH_BLDRVERSI...
bash
d_bash_18439
--- +++ @@ -19,7 +19,9 @@ htop ffmpeg gifsicle - cdiff + cdiff + tree + safe-rm ) for item in ${NONCASK[*]}; do
bash
d_bash_18440
--- +++ @@ -10,6 +10,6 @@ --silent \ --request GET \ -H "Content-Type: application/json" \ - $base_url/pacdots/score \ + $base_url/gamestate/score \ | python -m json.tool "
bash
d_bash_18441
--- +++ @@ -7,7 +7,7 @@ ( # temporarily disable shell debugging, docker hub password would leak otherwise set +x - docker login -e "$DOCKER_EMAIL" -u "$DOCKER_USER" -p "$DOCKER_PASS" + docker login -u "$DOCKER_USER" -p "$DOCKER_PASS" ) docker tag "meteogroup/sqs-to-kafka:$COMMIT" "meteogroup/sqs-to-kafka:...
bash
d_bash_18442
--- +++ @@ -1,6 +1,6 @@ # local bin -PATH=/usr/local/bin:$PATH +PATH=/usr/local/bin:/usr/local/sbin:$PATH # .dotfiles bin PATH=$DOT/bin:$PATH
bash
d_bash_18443
--- +++ @@ -7,6 +7,7 @@ cd /tmp && git clone https://github.com/severalgh/AppTemplate.git +sudo rm -r AppTemplate/.git cd - && mv /tmp/AppTemplate $1 && @@ -17,4 +18,3 @@ mv $1/src/AppTemplate.cpp $1/src/$1.cpp -sudo rm -r $1/.git
bash
d_bash_18444
--- +++ @@ -1,11 +1,12 @@ #/bin/sh - -if [ "xTEST_DOC" == "xYES"]; then +if [ "x$TEST_DOC" == "xYES" ]; then python ./doc/scripts/docgen.py --test else - (cd pylearn2/scripts/tutorial/grbm_smd && wget http://www.iro.umontreal.ca/~lisa/datasets/cifar10_preprocessed_train.pkl) + # We can't build the test...
bash
d_bash_18445
--- +++ @@ -38,7 +38,7 @@ chmod +x $buildFile # Cleanup - if test ! -d $tempFolder; then + if test -d $tempFolder; then rm -rf $tempFolder fi fi
bash
d_bash_18446
--- +++ @@ -1,9 +1,16 @@ ### This script uses the correct package.json file and publishes the entire package. + +clean_up () { + rm package.json + ln -s package.json.dev package.json +} + +trap clean_up 2 + +npm run generate_doc rm package.json cp package.json.publish package.json npm publish - -rm pack...
bash
d_bash_18447
--- +++ @@ -2,7 +2,7 @@ modulePath='~/puppet' -echo "Getting settings" +# Getting settings settingsPath=$1 . $settingsPath @@ -11,19 +11,31 @@ puppetColor="false" fi +# Packing puppet +packDirectory=$(mktemp --directory) +packFile=$(mktemp) +trap "rm --recursive --force $packDirectory" EXIT +trap "rm -...
bash
d_bash_18448
--- +++ @@ -16,3 +16,5 @@ git push origin HEAD git push origin --tags + +rm -rf staging
bash
d_bash_18449
--- +++ @@ -1,12 +1,15 @@ #!/bin/sh + +S3_BUCKET= +WEBHOOK_URL= aws cloudformation package \ --template-file sns2slack.yaml \ - --s3-bucket jheino-lambda \ + --s3-bucket ${S3_BUCKET} \ --output-template-file sns2slack-output.yaml aws cloudformation deploy \ --template-file sns2slack-output.yaml \ --sta...
bash
d_bash_18450
--- +++ @@ -10,7 +10,7 @@ case "$cmd" in feature) if [ "$line" = "$cmd $cur" ]; then - words="switch start finish stashes list pull status" + words="switch start finish stashes list merge pull status" else # get branch names minus hotfixes words="$(git branch ...
bash
d_bash_18451
--- +++ @@ -7,7 +7,9 @@ #git checkout v0.1.0 use --branch instead SAVE="$PIP_EXTRA_INDEX_URL" unset PIP_EXTRA_INDEX_URL +export PIP_INDEX_URL="https://isnot.org/pip/0.1.0/" ./letsencrypt-auto -v --debug --version +unset PIP_INDEX_URL export PIP_EXTRA_INDEX_URL="$SAVE"
bash
d_bash_18452
--- +++ @@ -20,7 +20,7 @@ #setopt no_beep setopt auto_cd setopt multios -setopt cdablevarS +# setopt cdablevars if [[ x$WINDOW != x ]] then
bash
d_bash_18453
--- +++ @@ -4,4 +4,4 @@ gunzip -c /usr/share/doc/nzbget/examples/nzbget.conf.gz | sed 's/^MainDir=.*$/MainDir=\/downloads/g' > /config/nzbget.conf fi -exec /usr/bin/nzbget -D -c /config/nzbget.conf +exec /usr/bin/nzbget -D -c /config/nzbget.conf -o outputmode=color
bash
d_bash_18454
--- +++ @@ -18,6 +18,7 @@ # Start MySQL process for tests MYSQL_DATA=`mktemp -d /tmp/AODH-MYSQL-XXXXX` trap "clean_exit ${MYSQL_DATA}" EXIT +mysqld --initialize-insecure --datadir=${MYSQL_DATA} || true mkfifo ${MYSQL_DATA}/out mysqld --datadir=${MYSQL_DATA} --pid-file=${MYSQL_DATA}/mysql.pid --socket=${MYSQL_DAT...
bash
d_bash_18455
--- +++ @@ -13,6 +13,4 @@ curl --silent --user "$GitHubUser:$GitHubToken" "https://api.github.com/orgs/$GitHubOrg/teams?per_page=100&page=$i" | ./jq -c '.[] | {id,name}' >> "$SCRIPT_DIR/github_teamIdNamePairs.txt" done -cat github_teamIdNamePairs.txt | ./jq -r '.name' | sort > "$SCRIPT_DIR/github_teamList.txt...
bash
d_bash_18456
--- +++ @@ -8,8 +8,9 @@ cake build -mkdir -p "$ROOT/$VERSION" +mkdir -p "$ROOT/$VERSION/node_modules" cp -R package.json bin lib "$ROOT/$VERSION" +cp -R node_modules/ndns "$ROOT/$VERSION/node_modules" cd "$ROOT/$VERSION" npm bundle 2> /dev/null cp `which node` bin
bash
d_bash_18457
--- +++ @@ -8,11 +8,11 @@ # export VERSION="0.6c11" - +python2.3 setup.py -q egg_info # force upload to be available python2.3 setup.py -q release source --target-version=2.3 upload && \ python2.4 setup.py -q release binary --target-version=2.4 upload && \ python2.5 setup.py -q release binary --target-version...
bash
d_bash_18458
--- +++ @@ -4,8 +4,8 @@ cd ./debian-7.2-amd64 packer build --only=virtualbox template.json -#CentOS 6.4 -cd ../centos-6.4-amd64 +#CentOS 6.5 +cd ../centos-6.5-amd64 packer build --only=virtualbox template.json #Ubuntu 12.04: this template is for an older version of Ubuntu, but 12.04 is the most recent LTS rel...
bash
d_bash_18459
--- +++ @@ -28,5 +28,5 @@ if [ -S $socket -a -r $socket -a -w $socket -a -f $file -a -r $file ]; then docker build --tag "$tag" --file "$file" -- . echo "Created container $tag" - echo "Usage: docker run -it --rm $tag [args]" + echo "Usage: docker run -it --rm $tag" fi
bash
d_bash_18460
--- +++ @@ -1,4 +1,10 @@ #!/bin/bash + +if [ "$1" == "" ] +then + echo "[Usage] ./build/update.sh <dir>" + exit +fi echo "- Update git" git submodule update --force @@ -8,3 +14,7 @@ cp -rf ref-cdnjs/ajax/libs cdnjs echo "- Build packages.json" node build/build.js +echo "- Copy packages.json to $1" +cp p...
bash
d_bash_18461
--- +++ @@ -3,4 +3,4 @@ source `dirname $0`/criu-lib.sh prep mount_tmpfs_to_dump -./test/zdtm.py run --all --report report --sibling --parallel 4 || fail +./test/zdtm.py run --all --report report --sibling --parallel 4 -x 'maps04' || fail
bash
d_bash_18462
--- +++ @@ -1,6 +1,7 @@ #!/usr/bin/expect -f -set timeout -1 + # 10 minutes +set timeout 600 spawn docker run homebridge-pc-volume-e2e expect { "ERROR LOADING PLUGIN" {exit 1}
bash
d_bash_18463
--- +++ @@ -6,7 +6,7 @@ set -x set -e -V23_PROFILE=arm v23 go install v.io/x/media_sharing/... +JIRI_PROFILE=arm v23 go install v.io/x/media_sharing/... mkdir -p $V23_ROOT/release/go/bin/linux_arm cp $V23_ROOT/release/projects/media-sharing/go/bin/linux_arm/* $V23_ROOT/release/go/bin/linux_arm vbecome --role=i...
bash
d_bash_18464
--- +++ @@ -6,7 +6,7 @@ ANDROID_ABI="${ANDROID_ABI:-armeabi-v7a}" cat "$(which android-wait-for-emulator)" -echo y | sdkmanager "system-images;${ANDROID_API};default;${ANDROID_ABI}" "platforms;${ANDROID_API}" +while true; do echo y; sleep 3; done | sdkmanager "system-images;${ANDROID_API};default;${ANDROID_ABI}" ...
bash
d_bash_18465
--- +++ @@ -8,4 +8,4 @@ defaults write com.fiplab.clipboard FirstRun -bool false # Invert menubar icon colors, for use with dark mode -# sudo find /Applications/CopyClip.app/Contents/Resources/ -name icon-statusbar* -exec convert -negate "{}" "{}" \; +# sudo find /Applications/CopyClip.app/Contents/Resources/ -na...
bash
d_bash_18466
--- +++ @@ -1,8 +1,11 @@ #!/usr/bin/env bash + # you need imagemagick or graphicsmagick, also sed and perl # this script will create LOTS of files in the cwd, but it should clean up after itself. If it doesn't, run `rm ./(gif-filename)-frame*` -convert $1 $1-frame-%06d.png # we wont ever have more than a millio...
bash
d_bash_18467
--- +++ @@ -6,6 +6,6 @@ pkg install -y ansible git-lite mkdir /git cd /git -git clone https://github.com/jdmulloy/aws-ansible-poudriere.git +/usr/local/bin/git clone https://github.com/jdmulloy/aws-ansible-poudriere.git cd aws-ansible/poudriere ./run_ansible.sh
bash
d_bash_18468
--- +++ @@ -26,7 +26,11 @@ echo "$vm_disk_size" } +diskSizeGB="$( checkDiskSize $VM_DISK_SIZE_GB )" + +echo "Setting disk size of vm $VM_IDENTIFIER to $diskSizeGB" + cliaas-linux replace-vm \ --config cliaas-config/config.yml \ --identifier "$VM_IDENTIFIER" \ - --disk-size-gb "$( checkDiskSize $VM_DISK_...
bash
d_bash_18469
--- +++ @@ -26,9 +26,9 @@ export BUILDKITE_AGENT_TOKEN="$token" export BUILDKITE_AGENT_NAME="$name" export BUILDKITE_AGENT_META_DATA="vmkite-vmdk=$vmdk,vmkite-guestid=darwin13_64Guest" -export BUILDKITE_BOOTSTRAP_SCRIPT_PATH="/Users/vmkite/buildkite-agent/bootstrap.sh" export BUILDKITE_BUILD_PATH="/Users/vmkite/b...
bash
d_bash_18470
--- +++ @@ -6,4 +6,4 @@ EXTRA_BUILD_EXT_FLAGS="" fi -MACOSX_DEPLOYMENT_TARGET=10.10 $PYTHON setup.py build_ext --inplace $EXTRA_BUILD_EXT_FLAGS build install --single-version-externally-managed --record=record.txt +MACOSX_DEPLOYMENT_TARGET=10.10 $PYTHON setup.py build_ext $EXTRA_BUILD_EXT_FLAGS build install ...
bash
d_bash_18471
--- +++ @@ -35,6 +35,16 @@ isNull ${str//[0-9]/} } + + isOption(){ + opt=${1} + + if [[ ${opt/-/} =~ [a-zA-Z0-9]+ ]]; then + echo true + else + return + fi + } $@ }
bash
d_bash_18472
--- +++ @@ -13,6 +13,9 @@ execute "defaults write com.apple.terminal SecureKeyboardEntry -bool true" \ "Enable 'Secure Keyboard Entry'" +execute "defaults write com.apple.Terminal ShowLineMarks -int 0" \ + "Hide line marks" + execute "defaults write com.apple.terminal StringEncodings -array 4" \ "Onl...
bash
d_bash_18473
--- +++ @@ -12,6 +12,7 @@ alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" alias gloga="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --...
bash
d_bash_18474
--- +++ @@ -13,14 +13,14 @@ "src/libs/ease/array.c" \ "src/libs/ease/keyname.c" \ "src/libs/utility/text.c" \ - "src/plugins/yanlr/"*.{c,cpp} \ "src/plugins/base64/"*.c \ + "src/plugins/camel/camel.c" \ "src/plugins/ccode/"*.cpp \ - "src/plugins/ca...
bash
d_bash_18475
--- +++ @@ -2,7 +2,7 @@ set -x SCRIPT_DIR=`dirname "$0"` -CODE_DIR=$(cd $PWD/$SCRIPT_DIR/../..; pwd) +CODE_DIR=$(cd $SCRIPT_DIR/../../sockshop; pwd) if [[ "$OSTYPE" == "darwin"* ]]; then VM_STATUS=$(docker-machine status $DOCKER_MACHINE_NAME)
bash
d_bash_18476
--- +++ @@ -12,7 +12,7 @@ while true; do read -p "Do release or test? " rt case $rt in - [Rr]* ) mkdir pynmrstar; cp bmrb.py pynmrstar/__init__.py; cp -rv reference_files pynmrstar; touch pynmrstar/.nocompile; pandoc -o README.rst README.md; python3 setup.py sdist upload --sign; rm -rfv pynmrstar py...
bash
d_bash_18477
--- +++ @@ -20,6 +20,7 @@ cd site echo "+ Npm install packages in package.json" +# npm install gulp # gulp_install gulp # gulp_install gulp-tsc # gulp_install gulp-less @@ -27,7 +28,7 @@ # gulp_install gulp-rename # gulp_install gulp-watch # gulp_install gulp-minify-css -npm install +npm install -no-bin-lin...
bash
d_bash_18478
--- +++ @@ -12,7 +12,7 @@ local oldStr=${2} local newStr=${3} - sed -i "s#${oldStr}#${newStr}#g" ${toFile} + sed -i "s;${oldStr};${newStr};g" ${toFile} } $@
bash
d_bash_18479
--- +++ @@ -3,11 +3,12 @@ LIB_FILE="$(dirname $(readlink --canonicalize "$0"))/../../lib.sh" . $LIB_FILE -# We use syslog as log driver because it's the easiest way to redirect output to a single known file +# We use journald as log driver because it's the easiest way to redirect output to a single known file # ...
bash
d_bash_18480
--- +++ @@ -12,4 +12,4 @@ echo 'cat /etc/motd_$USER' >> /etc/profile.d/message.sh fi -cat /home/vagrant/.bashrc | grep 'sudo su git' || echo 'sudo su git' >> /home/vagrant/.bashrc +cat /home/vagrant/.bashrc | grep 'sudo su - git' || echo 'sudo su - git' >> /home/vagrant/.bashrc
bash
d_bash_18481
--- +++ @@ -8,4 +8,5 @@ sudo make install sudo mysql -e 'create database test_gir;' +sudo mysql -e 'SET GLOBAL sql_mode="";' psql -c 'create database test_gir;' -U postgres
bash
d_bash_18482
--- +++ @@ -2,4 +2,4 @@ set -eo pipefail -xcodebuild "$ACTION" -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DEST" -configuration Release ENABLE_TESTABILITY=YES | xcpretty +xcodebuild "${{ matrix.ACTION }}" -project "${{ matrix.PROJECT }}" -scheme "${{ matrix.SCHEME }}" -sdk "${{ matrix.SDK }}...
bash
d_bash_18483
--- +++ @@ -31,6 +31,7 @@ # Copy web content to mounted disk sudo cp -r disk1/. mnt/ sync +sleep 1 # hopefully sync finished within this second # Remove stale object file rm -f memdisk.o
bash
d_bash_18484
--- +++ @@ -3,6 +3,7 @@ git add Makefile git add CHANGELOG.md git add Sources/Runner/main.swift +git add Documentation git commit -m "Version $NEW_VERSION" git tag "$NEW_VERSION" git push origin master --tags
bash
d_bash_18485
--- +++ @@ -13,6 +13,7 @@ brew cask install alfred brew cask install atom brew cask install cyberduck +brew cask install datagrip brew cask install discord brew cask install docker brew cask install firefox @@ -21,8 +22,10 @@ brew cask install istat-menus brew cask install iterm2 brew cask install lastpass +...
bash
d_bash_18486
--- +++ @@ -12,7 +12,7 @@ export PGHOST=${PGHOST:-localhost} # Initialize database -bash $APP_HOME/setup_database.sh $DBNAME +#bash $APP_HOME/setup_database.sh $DBNAME # Using ddlib export PYTHONPATH=$DEEPDIVE_HOME/ddlib:$PYTHONPATH @@ -25,5 +25,5 @@ deepdive -c $APP_HOME/application.conf # Generate autom...
bash
d_bash_18487
--- +++ @@ -1,3 +1,5 @@ +#!/bin/bash + tpkgbase="/home/t" if [ -f /etc/tpkg.conf ]
bash
d_bash_18488
--- +++ @@ -21,7 +21,7 @@ if [[ $VER == "17" ]] && [[ $WHOLE_VER == *OpenJDK* ]]; then wget http://roboconf.net/resources/build/settings.xml - mvn clean cobertura:cobertura org.eluder.coveralls:coveralls-maven-plugin:cobertura deploy -q --settings settings.xml -P jdoc-and-sources + mvn clean cobertura:cobertura ...
bash
d_bash_18489
--- +++ @@ -5,6 +5,8 @@ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build +rbenv install 1.9.3-p429 +rbenv rehash # Node with NVM curl https://raw.github.com/creationix/nvm/mast...
bash
d_bash_18490
--- +++ @@ -24,7 +24,7 @@ make CXX=$compiler MACHINE=$machine $target make CXX=$compiler MACHINE=$machine $target MACHINE_CLASS=generic DO_TESTS=1 #only run valgrind on debug builds or clang builds to avoid gcc generating instructions valgrind doesn't recognize - if [ "$target" == "debug" || "$compiler"...
bash
d_bash_18491
--- +++ @@ -1,15 +1,13 @@ #!/bin/bash -# Extract fastq reads from bam file and gzip them +# Extract fastq reads from bam file /download/bam2fastq/bam2fastq -o /workspace/${sampleID}#.fq -q /workspace/${inputBAM}.bam -gzip /workspace/${sampleID}_1.fq -gzip /workspace/${sampleID}_2.fq -#step 2 repair .fq.gz files a...
bash
d_bash_18492
--- +++ @@ -1,7 +1,7 @@ # get the latest xs tools available from xen.org -wget --no-check-certificate http://downloads.xen.org/XCP/debian/xs-tools-5.9.960.iso -o xs-tools.iso +wget --no-check-certificate http://downloads.xen.org/XCP/debian/xs-tools-5.9.960.iso -O xs-tools.iso sudo mount -o loop xs-tools.iso /mnt ...
bash
d_bash_18493
--- +++ @@ -10,7 +10,7 @@ THEMES="$BASH_IT/themes/*/*.theme.bash" for theme in $THEMES do - BASH_IT_THEME=$(echo $theme | sed "s/\//\n/g" | tail -1 | sed "s/.theme.bash//") + BASH_IT_THEME=$(basename -s '.theme.bash' $theme) echo " $BASH_IT_THEME" echo "" | bash --init-file $BASH_IT/bash...
bash
d_bash_18494
--- +++ @@ -30,5 +30,7 @@ # X - Don't send clear screen signal export LESS="ij.5KMRX" +export GREP_OPTIONS="--color" + # Disable ^-S in the terminal stty -ixon -ixoff
bash
d_bash_18495
--- +++ @@ -10,14 +10,14 @@ alias pre='sudo apt-get purge --auto-remove' elif [[ ($(getOS) == "Manjaro Linux") || ($(getOS) == "Arch Linux") || ($(getOS) == "Antergos Linux") ]] then - # pacaur - a wrapper around AUR - alias pin='pacaur -S --noedit' + # yay - a wrapper around AUR + alias pin='yay -S' pse-...
bash
d_bash_18496
--- +++ @@ -6,19 +6,19 @@ setopt PUSHDMINUS setopt PUSHD_IGNORE_DUPS -DIRSTACKSIZE=5 alias -g ...='../..' alias -g ....='../../..' alias -g .....='../../../..' alias -g ......='../../../../..' -alias -- -='cd -' -alias 1='cd -' -alias 2='cd -2' -alias 3='cd -3' -alias 4='cd -4' -alias 5='cd -5' +# Prevent...
bash
d_bash_18497
--- +++ @@ -5,4 +5,4 @@ make OS=MACOSX fi mkdir -p ${PREFIX}/bin -cp teensy_loader_cli ${PREFIX}bin/ +cp teensy_loader_cli ${PREFIX}/bin/.
bash
d_bash_18498
--- +++ @@ -4,12 +4,11 @@ set -o pipefail set -u -VMWARE_TOOLS=/etc/vmware-tools guestinfo() { local key="guestinfo.$1" local value - if value=$(${VMWARE_TOOLS}/vmware-tools-daemon --cmd "info-get $key") ; then + if value=$(/usr/bin/vmware-rpctool --cmd "info-get $key") ; then echo "$value" els...
bash
d_bash_18499
--- +++ @@ -6,7 +6,16 @@ PROJECT_ROOT_DIR=$1 -FILES=$(git diff --name-only origin/master | grep ".*\.\(cc\|h\)$") +# Since we are comparing to origin/master, CI builds on the master branch +# will not work, because the set of changed files is always {}. +# In this case we determine the changed files using $TRAVI...
bash