document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_10200
--- +++ @@ -41,6 +41,7 @@ spatialite tastypie-spatialite.db "SELECT InitSpatialMetaData();" fi - ./manage_$type.py test $test_name.tests --traceback + echo "./manage_$type.py test $test_name.tests --traceback -t $test_name" + ./manage_$type.py test $test_name.tests --traceback -t $test_na...
bash
d_bash_10201
--- +++ @@ -13,7 +13,7 @@ git clone https://github.com/6admin/6admin.git cd 6admin -composer install --no-plugins --no-scripts +composer install chmod +x six ln -s /opt/6admin/six /usr/local/bin/six
bash
d_bash_10202
--- +++ @@ -28,7 +28,7 @@ test -n "$func" -a -n "$doc" && { echo "--------------------------------------------------------------------------------" - echo "$func" + echo "$func()" echo echo "$doc" | sed -E 's/^# ?//'
bash
d_bash_10203
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -DATEVAL=`date +%b-%d-%Y` +DATEVAL=`date +%Y-%m-%d` VERSIONVAL=master # Use tag as version
bash
d_bash_10204
--- +++ @@ -4,7 +4,14 @@ symlink_old_postgres_directory() { postgres_dir="${DEST_DIR}/embedded/postgresql/9.6" + symlink_name="${DEST_DIR}/embedded/postgresql/9.6.8" if [ -d $postgres_dir ]; then - ln -sfn $postgres_dir ${DEST_DIR}/embedded/postgresql/9.6.8 + # Remove the existing directory if exists a...
bash
d_bash_10205
--- +++ @@ -15,5 +15,6 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # http://stackoverflow.com/questions/59895 cd $DIR +. ~/.harvester-env . ./bin/activate python harvester/queue_harvest.py "$1" "$2"
bash
d_bash_10206
--- +++ @@ -21,7 +21,7 @@ echo "[$CLUSTER_NODE_NAME] - stopping node..." ( - docker-machine stop "$CLUSTER_NODE_NAME" > /dev/null 2>&1 + docker-machine stop "$CLUSTER_NODE_NAME" > /dev/null echo "[$CLUSTER_NODE_NAME] - node stopped succesfully" ) &
bash
d_bash_10207
--- +++ @@ -10,4 +10,4 @@ echo $$ run_fcgi_with_plackup_and_carton.sh pid >&2 -exec ./run_plackup_with_carton.sh -s FCGI +exec ./run_plackup_with_carton.sh -s FCGI --manager MediaWords::MyFCgiManager
bash
d_bash_10208
--- +++ @@ -8,7 +8,7 @@ # # Set ROOT defaulting to `/opt/local` # -[ -d /opt/local ] && ROOT=/opt/local || ROOT=/usr/local +[[ $PATH == *"/opt/local/bin"* ]] && ROOT=/opt/local || ROOT=/usr/local # # Download the nodejs tarball
bash
d_bash_10209
--- +++ @@ -4,6 +4,7 @@ sudo apt-get install -y make sudo apt-get install -y swig sudo apt-get install -y git +sudo apt-get install -y openjfx # Python dependencies sudo apt-get install -y build-essential
bash
d_bash_10210
--- +++ @@ -21,15 +21,15 @@ installpkg $name mv $name /boot/extra fi +fi - # Install setuptools - if [[ ! `command -v easy_install` ]]; then - curl -skL https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | python - fi +# Install setuptools +if [[ ! `command -v easy_install` ]]; then ...
bash
d_bash_10211
--- +++ @@ -14,6 +14,8 @@ extra_args="" fi set -x +# Delete all files in $WORKSPACE, but no error if empty. +find $WORKSPACE -type f -delete $SCRIPTS/write_industrial_test_metadata.py $new_juju_dir/buildvars.json \ $environment metadata.json s3cmd -c $s3cfg put metadata.json $s3base-metadata.json
bash
d_bash_10212
--- +++ @@ -1,5 +1,5 @@ #!/usr/bin/env bash gem install bundler -v 1.16.0 --no-document --conservative -bundle install --jobs 3 --retry 3 +bundle install --jobs 3 --retry 3 --path vendor/bundle bundle exec rake clobber compile test sign_hooks overcommit
bash
d_bash_10213
--- +++ @@ -6,7 +6,7 @@ fi if [ -x /usr/local/bin/prompt ]; then export COLUMNS - PS1='$(/usr/local/bin/prompt -B -f'${ps1fg}' -b white \w\%\j)\n' + PS1='$(/usr/local/bin/prompt -B -f'${ps1fg}' -b white "\w"\%\j)\n' else PS1='\[\e[1;'${ps1fg}'m\]\w:\j \[\e[0m\]' fi
bash
d_bash_10214
--- +++ @@ -1,6 +1,5 @@ # Docker related functions if ! DOCKER=$(which docker) ;then - echo "Docker not installed" return fi
bash
d_bash_10215
--- +++ @@ -5,6 +5,7 @@ # debug info echo "TRAVIS_COMMIT=$TRAVIS_COMMIT" echo "TRAVIS_COMMIT_RANGE=$TRAVIS_COMMIT_RANGE" +echo "HEAD=$(git rev-parse HEAD)" PARENT_COMMIT=$(git log --pretty=%P -n 1 "$TRAVIS_COMMIT") echo "PARENT_COMMIT=$PARENT_COMMIT" @@ -16,5 +17,6 @@ # The TRAVIS_COMMIT env var is always a m...
bash
d_bash_10216
--- +++ @@ -24,3 +24,6 @@ # Set environment variable that points to conf file export REDIS_CONF_FILE=/usr/local/etc/redis.conf + +# Update Redis conf file to point to the correct directory for the database +sudo perl -pi -e "s/@@HOMEBREW_PREFIX@@/\\/usr\\/local/g" $REDIS_CONF_FILE
bash
d_bash_10217
--- +++ @@ -17,4 +17,5 @@ echo "Installing Platform.IO" pipx install platformio +pio settings set projects_dir $WORKSPACE_DIR
bash
d_bash_10218
--- +++ @@ -9,3 +9,4 @@ #SBATCH --mail-type=end # email me when the job finishes python Experiments/dummy/dummy.py --num-epochs 2 +# python Experiments/dummy/evaluate.py
bash
d_bash_10219
--- +++ @@ -6,28 +6,26 @@ run_daemon -# wait a while for the pid file to show up +# wait for the pid file to appear limit=20 -while [ ! -f "${pidfile}" -a 0 -ne "$limit" ] ; do - sleep 1 - limit=$(($limit - 1)) +while [ ! -s "${pidfile}" ] ; do + [ $((elapsed+=1)) -lt $limit ] || + fail "timed out waitin...
bash
d_bash_10220
--- +++ @@ -1,11 +1,32 @@ +function savepath() { + pwd > ~/.current_path~ +} + function tab() { - osascript 2>/dev/null <<EOF +savepath +osascript >/dev/null <<EOF +on do_submenu(app_name, menu_name, menu_item, submenu_item) + -- bring the target application to the front + tell application app_name + ac...
bash
d_bash_10221
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh -MAVEN_VERSION=3.2.2 -MAVEN_URL=http://www.us.apache.org/dist/maven/maven-3/3.2.2/binaries/apache-maven-3.2.2-bin.zip +MAVEN_VERSION=3.2.3 +MAVEN_URL=http://www.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.zip if [ -d tools ]; then #exe...
bash
d_bash_10222
--- +++ @@ -1,7 +1,7 @@ if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$COMPILER" = "CLANG" ]; then exit; fi mkdir build && cd build -cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DDART_TREAT_WARNINGS_AS_ERRORS=ON -DDART_COVERALLS=$COVERALLS .. +cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DDART_VERBOSE=ON -DDART_TREAT_WARNINGS_...
bash
d_bash_10223
--- +++ @@ -1,4 +1,13 @@ #!/bin/bash CONLLU_FILE="${1}" -python create_terminals.py "${CONLLU_FILE}" | cat ../ud/en_ud_bi.irtg ../ud/ud_dumb_preterms_bi - +TMP_PRETERM_FILE="/tmp/tmp_preterm" + +# Create temporary preterms file +grep -v "^#" "${CONLLU_FILE}" | grep -v "^$" | + cut -f4 | sort -u | python dumb_pre...
bash
d_bash_10224
--- +++ @@ -19,7 +19,7 @@ export MANPATH export NODE_PATH="/usr/local/lib/node_modules" -export GOPATH="$HOME/go" +export GOPATH="$HOME" export PATH=$PATH:$GOPATH/bin if [[ "$(boot2docker status)" -eq "running" ]]
bash
d_bash_10225
--- +++ @@ -13,6 +13,7 @@ jq openssl pv + ssh-copy-id sshfs tmux watch
bash
d_bash_10226
--- +++ @@ -1,9 +1,21 @@ +cd + echo "Bootstrap Ansible" curl -L https://raw.githubusercontent.com/andrewtchin/ansible-common/master/ubuntu-bootstrap.sh | sh + echo "Clone ansible-common" -git clone https://github.com/andrewtchin/ansible-common.git +ANSIBLE_COMMON_DIR="~/ansible-common" +if [ -d "$ANSIBLE_COMMON_DI...
bash
d_bash_10227
--- +++ @@ -8,7 +8,7 @@ if [ `basename ${x} .py` == "__init__" ] ; then continue fi - relative=nova.`echo ${x} | sed -e 's$^'${NOVA_DIR}'$$' -e 's/.py$//' -e 's$/$.$g'` + relative=nova`echo ${x} | sed -e 's$^'${NOVA_DIR}'$$' -e 's/.py$//' -e 's$/$.$g'` modules="${modules} ${relative}" d...
bash
d_bash_10228
--- +++ @@ -5,11 +5,11 @@ mkdir -m 777 /qemu cd /qemu -curl --retry 5 -LO https://cdimage.debian.org/cdimage/ports/9.0/sparc64/iso-cd/debian-9.0-sparc64-NETINST-1.iso -7z e debian-9.0-sparc64-NETINST-1.iso boot/initrd.gz -7z e debian-9.0-sparc64-NETINST-1.iso boot/sparc64 +curl --retry 5 -LO https://cdimage.debia...
bash
d_bash_10229
--- +++ @@ -13,4 +13,14 @@ size INTEGER, PRIMARY KEY (commit_date, commit_sha, platform, file, symbol, cflags) ); +CREATE TABLE IF NOT EXISTS benchmarks ( + commit_date INTEGER, -- UNIX epoch + commit_sha TEXT, + platform TEXT, + function TEXT, + cflags TEXT, + result REAL, + unit TEXT...
bash
d_bash_10230
--- +++ @@ -29,3 +29,4 @@ # Add symlink ln -s /usr/local/bin/python2.7 /usr/local/bin/python +ln -s /usr/local/bin/python2.7 /usr/local/bin/python2
bash
d_bash_10231
--- +++ @@ -3,4 +3,4 @@ BUILD_OPTS="-Dmaven.test.failure.ignore=true" -mvn -B ${BUILD_OPTS} clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar +mvn -B ${BUILD_OPTS} clean org.jacoco:jacoco-maven-plugin:0.7.4.201502262128:prepare-agent install sonar:sonar
bash
d_bash_10232
--- +++ @@ -30,3 +30,12 @@ echo_info " Configuring bundler jobs." number_of_cores=$(sysctl -n hw.ncpu) bundle config --global jobs $((number_of_cores - 1)) + +# === Projects directory + +projects_dir=~/Projects + +if [[ ! -e $projects_dir ]]; then + mkdir $projects_dir + echo_success " Created Projects directo...
bash
d_bash_10233
--- +++ @@ -4,7 +4,7 @@ apt-get update # build tools -apt-get install -y vim curl binfmt-support debootstrap qemu-user-static crossbuild-essential-armhf kpartx u-boot-tools dosfstools device-tree-compiler ncurses-dev zerofree bc swig libpython-dev apt-transport-https +apt-get install -y vim curl binfmt-support de...
bash
d_bash_10234
--- +++ @@ -6,4 +6,4 @@ # #------------------------------------------------------------------------------- -export JAVA_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m" +export JAVA_OPTS="-Xms256m -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m"
bash
d_bash_10235
--- +++ @@ -13,7 +13,13 @@ cd $SKULL_PROJ_ROOT make deploy DEPLOY_DIR_ROOT=$deploy_dir - echo "Deploy done, use \"skull start\" to launch the skull-engine" + retCode=$? + + if [ $retCode -eq 0 ]; then + echo "Deploy done, use \"skull start\" to launch the skull-engine" + else + e...
bash
d_bash_10236
--- +++ @@ -8,5 +8,5 @@ if [ -z "${SSH_USER}" ] || [ -z "${USER}" ] || [ "${USER}" == "jenkins" ] ; then exit 1 else - ansible-playbook --user ${SSH_USER} -i "$sandbox," -e "user=${USER} give_sudo=true" create_user.yml + ansible-playbook --user ${SSH_USER} -i "$sandbox," -e "user=${USER} give_sudo=true USER...
bash
d_bash_10237
--- +++ @@ -11,6 +11,7 @@ # Run build, basic tests and SauceLabs tests echo "Running complete test suite..." npm test + npm run lint npm run dist:ci npm run test:ci sleep 3 # Wait for threads to exit?
bash
d_bash_10238
--- +++ @@ -1,11 +1,25 @@ #!/bin/bash +base="git@git.xogrp.com:membership/" +repos=(membership_ruby_wrapper membership_api the_knot_membership_rails favorites_api xo_favorites) -repos=(membership_ruby_wrapper membership_api) +if ! git up ; then + gem install git-up +fi + +if [ ! -d "repos" ]; then + mkdir "repos" ...
bash
d_bash_10239
--- +++ @@ -3,7 +3,7 @@ if [ -d NuttX/nuttx ]; then STATUSRETVAL=$(git status --porcelain | grep -i "NuttX") - if [ -z $STATUSRETVAL ]; then + if [ -z "$STATUSRETVAL" ]; then echo "Checked NuttX submodule, correct version found" else echo "NuttX sub repo not at correct version. Try 'make updatesubmodules...
bash
d_bash_10240
--- +++ @@ -12,7 +12,7 @@ git clone https://github.com/CraneStation/wasi-libc cd wasi-libc -git reset --hard a94d2d04e7722b323573da2bd04e909a5763d35b +git reset --hard f645f498dfbbbc00a7a97874d33082d3605c3f21 make -j$(nproc) INSTALL_DIR=/wasm32-wasi install cd ..
bash
d_bash_10241
--- +++ @@ -11,4 +11,5 @@ zlib1g-dev \ gawk \ subversion \ -libssl-dev +libssl-dev \ +libxml-parser-perl
bash
d_bash_10242
--- +++ @@ -1,5 +1,16 @@ cdp() { - cd "${1:-..}" + if [[ $# == 0 ]]; then + cd .. + return + fi + + local query="$1" + local wd="$(pwd)" + local dir="$(echo "$wd" | sed "s#\\(/[^/]*$query[^/]*\\)/.*#\1#")" + if [[ $dir != $wd && -d $dir ]]; then + cd "$dir" + return + fi } _cdp() {
bash
d_bash_10243
--- +++ @@ -5,7 +5,7 @@ # skip Firebase Test Lab steps in this case. if [ -z "$IS_MAIN_PLAID_REPO" ]; then echo "Running build on a forked repository - skipping FTL tests." -# exit 0 + exit 0 fi # Check if service key environment variable is set; exit if not
bash
d_bash_10244
--- +++ @@ -1,13 +1,14 @@ +#!/bin/sh +# # Hypatia installation script for Ubuntu. # -# Not tested. This doesn't force Python 2.7, I don't think? +# Installs the following: # -# Performs the following tasks: -# 1. Installs the Ubuntu packages python-pygame and python-pip. -# 2. Installs Python package requireme...
bash
d_bash_10245
--- +++ @@ -6,3 +6,5 @@ -O /home/vagrant/.ssh/authorized_keys chown -R vagrant /home/vagrant/.ssh chmod -R go-rwsx /home/vagrant/.ssh + +cp -r /home/vagrant/.ssh /root
bash
d_bash_10246
--- +++ @@ -18,5 +18,5 @@ [[ -z "$BUILDKITE_TAG" ]] || docker push "$REPO:$PREFIX-$SANITIZED_TAG" echo '+++ :put_litter_in_its_place: Cleaning Up' docker rmi "$REPO:$PREFIX-$SANITIZED_BRANCH" -[[ -z "$BUILDKITE_TAG" ]] || docker rmi "$REPO:$PREFIX-$SANITIZED_TAG" +[[ -z "$BUILDKITE_TAG" || "$SANITIZED_BRANCH" == "...
bash
d_bash_10247
--- +++ @@ -23,11 +23,18 @@ if (("$STATUS" == "0")); then break + elif (("$STATUS" == "7")); then + # CCM says cluster creation failed + exit 7 fi sleep "$poll_period" let "seconds_until_timeout -= $poll_period" done + +if (("$seconds_until_timeout" <= "0")); then + ...
bash
d_bash_10248
--- +++ @@ -23,6 +23,6 @@ KAA_SDK_TAR=$(find . -name "kaa-*.tar.gz") tar -zxvf "$KAA_SDK_TAR" -C "$KAA_SDK_DIR" -cd "$KAA_SDK_DIR" +cd ./ pod setup pod install
bash
d_bash_10249
--- +++ @@ -2,6 +2,9 @@ set -euo pipefail if [ "x$BUILDKITE_PULL_REQUEST_BASE_BRANCH" != "x" ] ; then + git config --global user.email "buildkitepr@quicktype.io" || true + git config --global user.name "Buildkite PR builder" || true + git --no-pager branch -D pr || true git --no-pager fetch origin...
bash
d_bash_10250
--- +++ @@ -17,9 +17,8 @@ if [ -n "${GITHUB_CLONE_URL}" ]; then if [ -d "/tmp/pcdocker" ]; then rm -rf /tmp/pcdocker - fi - cd /tmp - git clone "${GITHUB_CLONE_URL}" pcdocker + fi + git clone "${GITHUB_CLONE_URL}" /tmp/pcdocker chmod -R +w /tmp/pcdocker/.git rm -rf /a...
bash
d_bash_10251
--- +++ @@ -4,8 +4,9 @@ # huge binary. export CXXFLAGS="-DNDEBUG" -# Statically link libgcc and libstdc++ -export LDFLAGS="-static-libgcc -static-libstdc++" +# Statically link libgcc and libstdc++. +# -s to produce stripped binary +export LDFLAGS="-static-libgcc -static-libstdc++ -s" # Under Cygwin we use MinG...
bash
d_bash_10252
--- +++ @@ -2,9 +2,7 @@ # jab.mini -brew install bumpversion brew install htop brew install ping -brew install python -brew install python - +brew install fd +brew install bat
bash
d_bash_10253
--- +++ @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e -pip install pip-tools +pip install pip-tools==3.6.1 make requirements git diff git update-index -q --refresh
bash
d_bash_10254
--- +++ @@ -10,12 +10,12 @@ wget --no-cookies \ --no-check-certificate \ --header "Cookie: oraclelicense=accept-securebackup-cookie" \ -"http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gz" \ +"http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jdk-8u101-linux-x64.tar.gz" \ -O /var...
bash
d_bash_10255
--- +++ @@ -1,6 +1,5 @@ # General export EDITOR=nano -export BROWSER=google-chrome-beta # Python if command -v pyenv 1>/dev/null 2>&1; then
bash
d_bash_10256
--- +++ @@ -10,6 +10,10 @@ for BRANCH in $BRANCHES; do git --git-dir=$WORKING_DIR/.git show $BRANCH:upper-constraints.txt \ 2>/dev/null > /tmp/upper-constraints.txt || true - python -m pip --verbose wheel -r /tmp/upper-constraints.txt -w $WHEELHOUSE_DIR || true - python3 -m pip --verbose wheel -...
bash
d_bash_10257
--- +++ @@ -1,8 +1,8 @@ #!/bin/bash set -e -o pipefail -CERT="/var/www/miq/vmdb/certs/server.cer" -KEY="$CERT.key" +CERT="${NEW_CERT_FILE:-/var/www/miq/vmdb/certs/server.cer}" +KEY="${NEW_KEY_FILE:-$CERT.key}" if [ ! -f "$CERT" -a ! -f "$KEY" ]; then (umask 077 ; openssl req -x509 -newkey rsa -days 1095 -keyo...
bash
d_bash_10258
--- +++ @@ -2,6 +2,9 @@ # Build nikola build + +# Exit if building on a pull request +if [[ $TRAVIS_PULL_REQUEST != 'false' ]] ; then exit 0; fi # Setup git for pushing from Travis ## Setup user details, so commits etc work.
bash
d_bash_10259
--- +++ @@ -1,17 +1,6 @@ #!/bin/sh -BUCKET=s3://diffa-packages - -sed s/DIFFA_BUILD_NUMBER/$1/ etc/packages.js.in > packages.js - -s3cmd rb --recursive $BUCKET - -s3cmd mb $BUCKET +BUCKET=s3://diffa-builds s3cmd put --acl-public --guess-mime-type dist/target/*.zip $BUCKET s3cmd put --acl-public --guess-mime-ty...
bash
d_bash_10260
--- +++ @@ -17,3 +17,10 @@ # Repeat installation of packages which fail the first time apt-get install -y --force-yes tex-tudfonts latex-tuddesign + +# Install latexmk +apt-get install -y latexmk + +# Install requirements for minted +apt-get install -y python-pip +pip install Pygments
bash
d_bash_10261
--- +++ @@ -3,3 +3,18 @@ export EDITOR="vim" sz() { source ~/.zshrc } + + +first() { awk '{print $1}' } +second() { awk '{print $2}' } +sum() { paste -sd+ - | bc } + +igrep() { grep -i $@ } + +restart-postgres() { + rm /usr/local/var/postgres/postmaster.pid && ( \ + cd ~/Library/LaunchAgents && \ + launc...
bash
d_bash_10262
--- +++ @@ -23,4 +23,4 @@ fi # Call actual script to deploy service. -"${SCRIPT}" "${PROJECT}" "${KEYFILE}" "${BASEDIR} ${YAML}" +"${SCRIPT}" "${PROJECT}" "${KEYFILE}" "${BASEDIR}" "${YAML}"
bash
d_bash_10263
--- +++ @@ -17,7 +17,7 @@ # "base": brew install brew-cask curl htop-osx lynx openssl rmtrash tree wget Caskroom/cask/xmind --with-cocoa --srgb emacs Caskroom/cask/gimp \ Caskroom/cask/alfred Caskroom/cask/caffeine Caskroom/cask/chromium Caskroom/cask/iterm2 Caskroom/cask/spectacle Caskroom/cask/teamviewer \ - Ca...
bash
d_bash_10264
--- +++ @@ -1,4 +1,6 @@ +. bin/config.inc + curl -s $1 | grep '"id":' | sed 's/.*"id":"//' | sed 's/".*//' | while read OBJ; do - OBJREV=$(curl -s http://localhost:5984/vinsdeloire/$OBJ | sed 's/{"_id":"//' | sed 's/","_rev":"/?rev=/' | sed 's/".*//') - curl -s -X DELETE http://localhost:5984/vinsdeloire/$OBJREV + O...
bash
d_bash_10265
--- +++ @@ -2,7 +2,7 @@ if [ -z $1 ]; then - echo "Please provide an interface name as the first and only parameter" + echo "Please provide an interface name (e.g. eth0) as the first and only parameter" exit 1 fi
bash
d_bash_10266
--- +++ @@ -1,3 +1,5 @@ +source Message/MessageBuilder.sh + Formatter(){ convertSpacesToTab(){ sed -i "s/ /\t/g" $1 @@ -23,8 +25,16 @@ curFile=${0/.\//} includedFiles=(${allFiles[@]/*$curFile/}) +MB(){ + MessageBuilder $@ +} + +MB printInfoMessage "Formatting bash files..." + for (( i=0; i<${#includedFiles...
bash
d_bash_10267
--- +++ @@ -10,15 +10,22 @@ # TODO: Figure out what they want from config DOCKER_CONTAINER=busybox +DESIRED_USER="nobody" +DESIRED_GROUP="nobody" +# FIXME - We should instead work out the target UID inside the destination container? +MYUID=$(id -u $DESIRED_USER) +MYGID=$(id -g $DESIRED_GROUP) + PID=$(docker insp...
bash
d_bash_10268
--- +++ @@ -6,4 +6,4 @@ . bin/activate pip install -r requirements.txt python fetch_links.py -cp index.html $TWEET_HTML_PATH +cp index.html styles.css $TWEET_HTML_PATH
bash
d_bash_10269
--- +++ @@ -1,18 +1,14 @@ #! /usr/bin/env bash +# TODO: This requires the `--no-deps` flag. Without it, when `rustdoc` attempts +# to embed the KaTeX header it will fail to resolve the path. # TODO: This script sets the `RUSTDOCFLAGS` environment variable to configure -# the KaTeX header for documenta...
bash
d_bash_10270
--- +++ @@ -10,10 +10,8 @@ apt-get update apt-get -y upgrade apt-get -y install git ruby ruby-dev build-essential -gem install fpm +gem install fpm --no-rdoc --no-ri export PATH=$PATH:/usr/local/bin -echo $PATH -which fpm git clone https://github.com/brutasse/graphite-api.git cd graphite-api/fpm ./build-deb.sh
bash
d_bash_10271
--- +++ @@ -8,5 +8,5 @@ if [ $LOCAL != $REMOTE ]; then git pull - PATH="/usr/local/bin:$PATH" make COQWEB=/srv/coq-www/www all + PATH="/usr/local/bin:$PATH" make COQWEB=/var/deploy/coq-www all fi
bash
d_bash_10272
--- +++ @@ -14,6 +14,7 @@ tar -I zstd -xvf "$1" pushd python/install/ rm -rf lib/python*/test +find -name '*.a' -delete #zip -r "${1%-*}.zip" bin include lib share tar -jcvf "${1%-*}.tbz" bin include lib share mv "${1%-*}.tbz" ../..
bash
d_bash_10273
--- +++ @@ -2,9 +2,9 @@ npm i -g npm yo bower grunt-cli gulp turn-it-off-and-on-again electron-prebuilt -npm i -g generator-p generator-c generator-index generator-license generator-rework generator-generator +npm i -g generator-p generator-c generator-index generator-rework -npm i -g cssstats scrutinize get-c...
bash
d_bash_10274
--- +++ @@ -16,7 +16,8 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )" # Copy into tmpdir -cp -R $DIR/website/ $DEPLOY/ +shopt -s dotglob +cp -r $DIR/website/* $DEPLOY/ # Change into that directory pushd $DEPLOY &>/dev/null @@ -25,6 +26,7 @@ touch .gitignore echo ".sass-cache" >> .gitignore echo "bu...
bash
d_bash_10275
--- +++ @@ -2,4 +2,4 @@ MEMORY=$1 shift -java -Xmx${MEMORY} -jar plugins/org.eclipse.equinox.launcher.jar $@ +java -Xmx${MEMORY} -Dosgi.classloader.singleThreadLoads=true -jar plugins/org.eclipse.equinox.launcher.jar $@
bash
d_bash_10276
--- +++ @@ -1 +1,5 @@ +# Use Python 3 by default. +export PATH=/usr/local/opt/python/libexec/bin:$PATH + +# Pipenv. export PATH=$(python3 -m site --user-base)/bin:$PATH
bash
d_bash_10277
--- +++ @@ -3,8 +3,8 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # -# Buildbot annotator script for the Webkit latest webkit tester on the -# webkit canary waterfall. +# Buildbot annotator script for the WebKit latest WebKit tester on the +# WebKit canar...
bash
d_bash_10278
--- +++ @@ -15,7 +15,17 @@ set -e BK_LICENSE=ACCEPTED PREFER_RSH=YES bk clone $TREE_HOST:/home/bk/$TREE $REPO cd $REPO/src -bk get build.sh || exit 1 +cat <<EOF | bk -R get -qS - +src/build.sh +src/Makefile +src/zlib/Makefile +src/gnu/Makefile +src/utils/Makefile +man/Makefile +man/man2help/Makefile +man/man2html/...
bash
d_bash_10279
--- +++ @@ -23,7 +23,9 @@ # Prints the first non-empty string in the arguments array. function coalesce { - print "${${(s: :)@}[1]}" + for arg in $argv; do + print "$arg" + return 0 + done + return 1 } - -
bash
d_bash_10280
--- +++ @@ -1,3 +1,3 @@ #!/usr/bin/env bash -MOUNT_FOLDER=/django-rest-knox +MOUNT_FOLDER=/app docker run --rm -it -v $(pwd):$MOUNT_FOLDER -w $MOUNT_FOLDER themattrix/tox
bash
d_bash_10281
--- +++ @@ -13,8 +13,8 @@ # Use AirDrop over every interface. srsly this should be a default. defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1 -# Always open everything in Finder's list view. This is important. -defaults write com.apple.Finder FXPreferredViewStyle Nlsv +# Always open everything in Fi...
bash
d_bash_10282
--- +++ @@ -1,4 +1,5 @@ #!/bin/sh #update jobs -for job in `ls -1 forensicator-fate/jenkins/jobs`; do echo Updating job $job; java -jar /run/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080 create-job $job <${job}.xml; done +cd forensicator-fate/jenkins/jobs +for job in `ls -1`; do echo Updating job $...
bash
d_bash_10283
--- +++ @@ -14,6 +14,7 @@ emmet fold-comments highlight-selected + hydrogen linter merge-conflicts sync-settings
bash
d_bash_10284
--- +++ @@ -7,4 +7,4 @@ mingw64-cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON sed -i 's/ -isystem / -I /g' Makefile src/CMakeFiles/mytest.dir/includes_CXX.rsp compile_commands.json make -wine src/mytest +TERM=dumb wine src/mytest
bash
d_bash_10285
--- +++ @@ -6,6 +6,8 @@ # LICENSE file in the root directory of this source tree. sledge=$PWD/cli/sledge_cli.exe + +export SLEDGE_CONFIG=$PWD/../../test/config line=$(\ $sledge help -recursive -expand \
bash
d_bash_10286
--- +++ @@ -5,3 +5,4 @@ php artisan key:generate php artisan doctrine:generate:proxies php artisan migrate +rm /tmp/parser.lock
bash
d_bash_10287
--- +++ @@ -17,7 +17,7 @@ if [ "$TRAVIS_BRANCH" = "$TRAVIS_TAG" ]; then compile_test \ && sbt ++$TRAVIS_SCALA_VERSION publishSigned \ - && sbt ++$TRAVIS_SCALA_VERSION sonatypeRelease + && sbt ++$TRAVIS_SCALA_VERSION sonatypeReleaseAll else compile_test fi
bash
d_bash_10288
--- +++ @@ -3,7 +3,22 @@ alias aa="a -A" alias aaa="aa -l -h" -alias up="cd ../;a" +function up() { + if [[ "$#" -ne 1 ]] ; then + cd ../ + a + return + fi + re='^[1-9][0-9]*$' + if ! [[ $1 =~ $re ]] ; then + >&2 echo "usage: ${FUNCNAME[0]} <number_of_directories_up>" + return 1; + fi + for i ...
bash
d_bash_10289
--- +++ @@ -8,7 +8,7 @@ xdg-open http://localhost:8084/test/index.html fg %1 else - mocha-phantomjs http://localhost:8084/test/index.html + mocha-phantomjs -t 40000 http://localhost:8084/test/index.html status=$? kill %1 exit $status
bash
d_bash_10290
--- +++ @@ -4,6 +4,14 @@ if [[ ! -d "$PKG_DIR/fbthrift" ]]; then git clone https://github.com/facebook/fbthrift + if [[ -f "$REPO_BASE_DIR/mcrouter/FBTHRIFT_COMMIT" ]]; then + cd "$PKG_DIR/fbthrift" || die "cd fail" + FBTHRIFT_COMMIT="$(head -n 1 "$REPO_BASE_DIR/mcrouter/FBTHRIFT_COMMIT")" + echo "FBT...
bash
d_bash_10291
--- +++ @@ -1,3 +1,3 @@ alias phpinfo='echo "<?php phpinfo() ?>" > ~/Sites/info.php && open http://localhost:8080/info.php' -alias tower='gittower -s' +alias tower='gittower .'
bash
d_bash_10292
--- +++ @@ -10,7 +10,7 @@ export CFLAGS="-m$phpint" fi -curl -L "http://php.net/get/php-$phpver.tar.xz/from/this/mirror" | tar xJ +curl -L "http://php.net/get/php-$phpver.tar.bz2/from/this/mirror" | tar xj pushd "php-$phpver" ./configure \ --disable-xml \
bash
d_bash_10293
--- +++ @@ -17,14 +17,14 @@ echo Wait for server # give the server time to start -sleep 30 -echo 30 -sleep 30 -echo 60 -sleep 30 -echo 90 -sleep 30 -echo 120 +sleep 180 +echo 180 +sleep 60 +echo 240 +sleep 60 +echo 300 +sleep 60 +echo 360 echo Start end2end test runner chimp --ddp=http://localhost:3100 --moch...
bash
d_bash_10294
--- +++ @@ -6,10 +6,6 @@ OC_PATH=../../../../ CORE_INT_TESTS_PATH=tests/integration/ - -cd "$OC_PATH""$CORE_INT_TESTS_PATH" -composer install -cd - OCC=${OC_PATH}occ
bash
d_bash_10295
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash # MAGICs -export WEPLAY_WEB_PORT=3000 +export WEPLAY_WEB_PORT=${WEPLAY_WEB_PORT:-3000} export WEPLAY_IO_URL="${IO_URL_PORT:-BAD}" export NODE_ENV='production'
bash
d_bash_10296
--- +++ @@ -4,27 +4,27 @@ echo "Installing dependent libraries" -# ## Install CMR common -# cd ../cmr-common-lib -# lein install +## Install CMR common +cd ../cmr-common-lib +lein install -# ## Install System trace lib -# cd ../cmr-system-trace-lib -# lein install +## Install System trace lib +cd ../cmr-system...
bash
d_bash_10297
--- +++ @@ -10,6 +10,6 @@ rm -rf $OPEN_PATH/ pick_open_reference_otus.py -i $FASTA -o $OPEN_PATH -m usearch61 -s 1 -p code/openref.params.txt --min_otu_size 1 --prefilter_percent_id 0.0 mothur "#set.dir(output=$OPEN_PATH); make.shared(biom=$OPEN_PATH/otu_table_mc1_w_tax_no_pynast_failures.biom)" -R -e "source('cod...
bash
d_bash_10298
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh -KERNEL="../alpine/kernel/vmlinuz64" +KERNEL="../alpine/kernel/x86_64/vmlinuz64" INITRD="../alpine/initrd.img.gz" CMDLINE="earlyprintk=serial console=ttyS0"
bash
d_bash_10299
--- +++ @@ -18,6 +18,9 @@ echo "# curl -s -XPUT http://${MASTER_IP}:4001/v2/keys/helix/arpa/in-addr/${MY_PTR}/PTR -d value=$(hostname)." curl -s -XPUT http://${MASTER_IP}:4001/v2/keys/helix/arpa/in-addr/${MY_PTR}/PTR -d value="$(hostname)." +## Set new date to trigger update of NodeRange +curl -s -XPUT http://${M...
bash