document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_11900
--- +++ @@ -1,4 +1,4 @@ -# SBT_CMD="/path/to/sbt-x.x.x/bin/mvn" +# SBT_CMD="/path/to/sbt-x.x.x/bin/sbt" SBT_CMD="sbt" _exec_sbt(){
bash
d_bash_11901
--- +++ @@ -1,6 +1,10 @@ include logger.Logger GitException(){ + branchDoesNotExistException(){ + Logger logError "cannot_${1}_${2}_because_${2}_does_not_exist" + } + curBranchException(){ Logger logErrorMsg "cannot_${1}_${2}_because_${2}_is_the_current_branch" }
bash
d_bash_11902
--- +++ @@ -2,9 +2,9 @@ if [[ $(echotc Co) == 256 ]]; then # primary prompt (256 color) -PROMPT='[%{$FG[015]%}%D{%I:%M%p}%{$reset_color%}] %w \ -[%{$FG[117]$BG[004]%}%~%{$reset_color%}]:\ -%(!.%{$FG[001]%}.%{$FG[252]%})%{$BG[004]%}%n@%m%{$reset_color%} +PROMPT='[%{%F{015}%}%D{%I:%M%p}%{$reset_color%}] %w \ +[%{%F...
bash
d_bash_11903
--- +++ @@ -2,7 +2,7 @@ ROOT=$TRAVIS_BUILD_DIR/.. # jsr308-langtools -(cd $ROOT && hg clone https://bitbucket.org/typetools/jsr308-langtools +(cd $ROOT && hg clone https://bitbucket.org/typetools/jsr308-langtools) (cd $ROOT/jsr308-langtools/ && ./.travis-build-without-test.sh) ant compile
bash
d_bash_11904
--- +++ @@ -19,7 +19,11 @@ pidstack=$(jobs -pr) [ -n "$pidstack" ] && kill -9 "$pidstack" -if git grep -l -e 'github.com/labstack/gommon/log' -e 'github.com/dgrijalva/jwt-go' -- '*.go'; then +if git grep -l \ + -e 'github.com/labstack/gommon/log' \ + -e 'github.com/dgrijalva/jwt-go' \ + -e 'github.com/cozy/ech...
bash
d_bash_11905
--- +++ @@ -7,5 +7,5 @@ mkdir -p $DashboardsDir cd $DashboardsDir git clone git://github.com/OSEHRA/OSEHRA-Automated-Testing.git -ln -s $DashboardsDir/OSEHRA-Automated-Testing/DashboardsScripts/vista_common.cmake $HOME/OSEHRA/VistA-installation-scripts/Scripts +ln -s $DashboardsDir/OSEHRA-Automated-Testing/Dashboa...
bash
d_bash_11906
--- +++ @@ -1,2 +1,2 @@ #/bin/sh -/root/spark/bin/spark-submit --class vc.inreach.ml.classifiers.ClassifierTrainingTask --deploy-mode client --driver-memory 7g --driver-cores 2 /jar/inreach-ml-batch.jar -data_path s3n://inreach-prod-dynamo-data/dynamoDbData_20161231/ -model_path s3n://inreach-ml-models-official/ -aw...
bash
d_bash_11907
--- +++ @@ -22,7 +22,7 @@ cat <<EOF #ifdef __cplusplus -}; +} #endif #endif /* JEMALLOC_H_ */ EOF
bash
d_bash_11908
--- +++ @@ -2,4 +2,18 @@ cp ./.bash_rc ./.gitconfig ~/ ## Install homebrew -#/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + +## Install latest Gcp +wget https:...
bash
d_bash_11909
--- +++ @@ -1,2 +1,2 @@ # This fixes a known bug in Bats (https://github.com/sstephenson/bats/issues/140#issuecomment-206756745) -sudo sed -i "20s/.*/ _count=\$(bats-exec-test -c \"\$filename\"); : \"\$(( count+=_count ))\"/" /usr/local/libexec/bats/bats-exec-suite +sudo sed -i "20s/.*/ _count=\$(bats-exec-test -c...
bash
d_bash_11910
--- +++ @@ -14,3 +14,5 @@ export LDFLAGS=-L/opt/local/lib export CFLAGS=-I/opt/local/include + +if [[ -s /Users/bodo/.rvm/scripts/rvm ]] ; then source /Users/bodo/.rvm/scripts/rvm ; fi
bash
d_bash_11911
--- +++ @@ -6,6 +6,8 @@ # # https://github.com/conda/conda-build/issues/910 source activate "${CONDA_DEFAULT_ENV}" + +bash --version mkdir build cd build
bash
d_bash_11912
--- +++ @@ -7,9 +7,9 @@ git fetch && \ git rebase origin/master && \ rm -rf build && \ -./gradlew clean && \ -./gradlew check installDist && \ +./gradlew --no-daemon clean && \ +./gradlew --no-daemon check installDist && \ build/install/github-version-statistics/bin/github-version-statistics && \ -./gradlew proce...
bash
d_bash_11913
--- +++ @@ -1,4 +1,4 @@ # sup yarn # https://yarnpkg.com -export PATH="$HOME/.yarn/bin:$PATH" +export PATH="$PATH:`yarn global bin`"
bash
d_bash_11914
--- +++ @@ -7,6 +7,6 @@ from=${1:-HEAD} to=${2:-openfisca/master} -git log $from..$to | egrep '(Rename|Introduce|Deprecate)' | egrep -v '(\(again\)|fixup!)' | sort | uniq +git log $from..$to | egrep '(Rename|Introduce|Deprecate) ' | egrep -v '(\(again\)|fixup!)' | sort | uniq echo "(Listed API changes between ...
bash
d_bash_11915
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -if [ -z "`which xmbld`" ]; then +if [ -z "`which mbld`" ]; then ../myrbuild/myrbuild -I. -C$MYR_MC -M$MYR_MUSE $@ else mbld $@
bash
d_bash_11916
--- +++ @@ -15,5 +15,9 @@ # write the release version into "version" file echo $CIRCLE_TAG > dist/version +# create a downloadable archive too +(cd dist && tar czf ../archive.tar.gz *) + +# send it all to the host rsync -avz --delete dist/ deploy@$HOST:foodsaving-frontend/$DIR/
bash
d_bash_11917
--- +++ @@ -10,6 +10,7 @@ sudo apt-get -y update sudo apt-get -y install make curl gettext sudo apt-get -y install g++ # Needed to install python + sudo apt-get -y install libbz2-dev # For bzip2 support in Python sudo apt-get -y install libsqlite3-dev # For pysqlite sudo apt-get -y install libjpeg-...
bash
d_bash_11918
--- +++ @@ -40,11 +40,4 @@ composer self-update &>> $log_file echo -echo "==> RubyGems" -echo " Updating gems" -gem update &>> $log_file -echo " Cleaning up" -gem cleanup &>> $log_file -echo - exit 0
bash
d_bash_11919
--- +++ @@ -8,9 +8,9 @@ FOLDER="docs" # Only publish when running tests for PHP 5.5, when committing to master and when not building a pull request -if [ "$TRAVIS_BRANCH" == "master" ] \ -&& [ "$TRAVIS_PHP_VERSION" == "5.5" ] \ -&& [ "$TRAVIS_PULL_REQUEST" == "false" ] +if [ "$TRAVIS_BRANCH" != "master" ] \ +|| [...
bash
d_bash_11920
--- +++ @@ -1,5 +1,5 @@ -LATEST_VERSION=20140724/stage3-amd64-20140724.tar.bz2 +LATEST_VERSION= if [ -z "$LATEST_VERSION" ]; then LATEST_VERSION=$LATEST_VERSION`curl 'http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3-amd64.txt' | tail -n 1`
bash
d_bash_11921
--- +++ @@ -25,7 +25,7 @@ # Fill in version sed "s/^\\( *version *= *'\\)[^']*'/\\1$1'/" setup.py >$dir/setup.py -sed "s/^# *__version__ *=.*$/__version__ = \"$1\"/" $dir/ufal/morphodita.py -i +sed "s/^# *__version__ *=.*$/__version__ = \"$1\"/" $dir/ufal/morphodita/__init__.py -i # README file ./README.sh >$...
bash
d_bash_11922
--- +++ @@ -7,6 +7,5 @@ root=`pwd` virtualenv python2.7_virtual_environment -python2.7_virtual_environment/bin/pip install enum34==1.0.4 futures==2.2.0 -python2.7_virtual_environment/bin/pip install third_party/protobuf/python +python2.7_virtual_environment/bin/pip install enum34==1.0.4 futures==2.2.0 protobuf==2...
bash
d_bash_11923
--- +++ @@ -37,6 +37,8 @@ if (( RUN_AUTOTOOLS )); then ./autogen.sh +elif [ ! -f configure ]; then + ./autogen.sh fi if (( CONFIGURE )); then
bash
d_bash_11924
--- +++ @@ -4,6 +4,8 @@ VERSION=$1 ENTERPRISE=$2 SHORT_VERSION=`echo ${VERSION} | cut -d "." -f1-2` + +sudo yum clean all if [ ${SHORT_VERSION} = "2.10" ] && [ ${ENTERPRISE} -eq 0 ]; then echo "Upgrading Node.js repositories"
bash
d_bash_11925
--- +++ @@ -12,8 +12,7 @@ fi cd $WORKSPACE/local/lava-ci/ -defconfig_full=$(echo $2 | sed 's:linaro/configs/::g') -python lava-kernel-ci-job-creator.py http://storage.kernelci.org/$TREE_NAME/$GIT_DESCRIBE/$ARCH-$defconfig_full/ --plans $3 --targets $4 +python lava-kernel-ci-job-creator.py http://storage.kernelci....
bash
d_bash_11926
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash if [ "$TRAVIS_SECURE_ENV_VARS" = true \ -a "$TRAVIS_PULL_REQUEST" = false \
bash
d_bash_11927
--- +++ @@ -7,7 +7,7 @@ "${SH_DIR}/containers_down.sh" "${SH_DIR}/build_images.sh" "${SH_DIR}/tag_image.sh" -if [ "${1:-}" == '--no-test' ]; then +if [ "${1:-}" == '--build-only' ]; then exit 0 fi "${SH_DIR}/containers_up.sh"
bash
d_bash_11928
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash set -x -timeout 30s bundle exec htmlproof _site --only-4xx --external_only --disable-external --check-html --check-favicon --href-ignore 'https?:\/\/kjaermaxi\.me' +timeout 30s bundle exec htmlproofer ./_site --check-html --check-favicon --allow-hash-href --external_only --only...
bash
d_bash_11929
--- +++ @@ -1,9 +1,17 @@ autoload -U promptinit promptinit +parse_git_branch () { + git branch --no-color 2>/dev/null | + sed -e '/^[^*]/d' \ + -e "s/(detached from //" \ + -e "s/)//" \ + -e "s/* \(.*\)/${BOLD_WHITE}(${YELLOW}\1${BOLD_WHITE}) ${RESET}/" +} + # Set the p...
bash
d_bash_11930
--- +++ @@ -13,14 +13,6 @@ fi echo "" -echo "Installing awscli" -sudo pip install --upgrade awscli - -echo "" -echo "Installing node-lambda" -npm install -g node-lambda - -echo "" echo "Preparing config.json" cp _config.json config.json sed -i "s/DESTINATION_BUCKET/$DESTINATION_BUCKET/g" config.json @@ -28,13 ...
bash
d_bash_11931
--- +++ @@ -15,7 +15,7 @@ exit 1 fi - exit 0 + return 0 } function OutputContains { @@ -33,7 +33,7 @@ exit 1 fi - exit 0 + return 0 } function TestFailure {
bash
d_bash_11932
--- +++ @@ -18,4 +18,4 @@ fi POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs) -POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status background_jobs time ssh) +POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status background_jobs ssh)
bash
d_bash_11933
--- +++ @@ -6,7 +6,7 @@ export JENKINS_WORKER_AMI=$(aws ec2 describe-images \ --region us-east-1 \ --owners 099720109477 \ - --filters 'Name=name,Values=ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64*' \ + --filters 'Name=name,Values=ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64*' \ --query 's...
bash
d_bash_11934
--- +++ @@ -3,5 +3,7 @@ cd /data/off-fr/html mongodump --collection products --db off-fr tar cvfz data/openfoodfacts-mongodbdump.tar.gz dump -sha256sum data/openfoodfacts-mongodbdump.tar.gz > data/sha256sum -md5sum data/openfoodfacts-mongodbdump.tar.gz > data/md5sum +pushd data/ > /dev/null +sha256sum openfoodfact...
bash
d_bash_11935
--- +++ @@ -4,3 +4,4 @@ go get -t -v ./... go test -v ./... +go build
bash
d_bash_11936
--- +++ @@ -3,7 +3,7 @@ case "$1" in java8) - echo "https://github.com/bell-sw/Liberica/releases/download/8u332+9/bellsoft-jdk8u332+9-linux-amd64.tar.gz" + echo "https://github.com/bell-sw/Liberica/releases/download/8u333+2/bellsoft-jdk8u333+2-linux-amd64.tar.gz" ;; java11) echo "https://github.com/b...
bash
d_bash_11937
--- +++ @@ -1,13 +1,13 @@ #!/bin/bash -JARS=".:./db.jar:./google-collect-1.0.jar:./log4j-1.2.15.jar" +JARS=".:./google-collect-1.0.jar:./log4j-1.2.15.jar" JARS="$JARS:./lucene-core-3.0.0.jar:./netty-3.1.5.GA.jar" JARS="$JARS:./protobuf-java-2.3.1-pre.jar:./clhm-release-1.0-lru.jar:./raptor.jar" +JARS="$JARS:./je...
bash
d_bash_11938
--- +++ @@ -19,6 +19,7 @@ echo "Generating basline zero coverage..." cd "$ScriptDirectory" rm -f *.info +lcov --zerocounters --no-external --directory /home/ian/Projects/ionEngine/ --quiet lcov --capture --no-external --directory /home/ian/Projects/ionEngine/ --initial --output-file baseline.info --quiet # Run
bash
d_bash_11939
--- +++ @@ -12,13 +12,13 @@ basename $BATS_TEST_FILENAME-$STACKPOSTFIX | tr '.' '-' } deploy_stack() { - export FORMICA_STACK=$(stack_name) + FORMICA_STACK=$(stack_name) echo "Creating Stack $FORMICA_STACK" - cd $BATS_TEST_DIRNAME && formica new && formica deploy + cd $BATS_TEST_DIRNAME && for...
bash
d_bash_11940
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then + if [[ "$TOXENV" == "27" ]]; then curl -o miniconda.sh https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh; else curl -o miniconda.sh ht...
bash
d_bash_11941
--- +++ @@ -11,10 +11,23 @@ core/gcc core/make core/pkg-config + core/patchelf ) pkg_deps=( core/glibc + core/gcc-libs ) pkg_bin_dirs=(bin) pkg_include_dirs=(include) pkg_lib_dirs=(lib) + + +do_install() { + do_default_install + + build_line "Patching ELF binaries:" + find "${pkg_prefix}/lib" -...
bash
d_bash_11942
--- +++ @@ -3,6 +3,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $DIR/.. + +sudo -u www-data -s <<DEPLOY # DOWNLOAD LATEST CHANGES git pull @@ -21,10 +23,8 @@ chmod -R 777 log/ temp/ # RUN BACKGROUND WORKERS -php -f www/index.php Background:Experiments:Watch --folder=data >log/experiment...
bash
d_bash_11943
--- +++ @@ -1,4 +1,4 @@ -if [[ $OS = "Darwin" ]]; then +if [ $OS = "Darwin" ]; then android_path="$HOME/android-sdk-macosx" fi
bash
d_bash_11944
--- +++ @@ -27,6 +27,7 @@ applications=( adobe-creative-cloud + airfoil alfred amazon-cloud-drive amazon-music @@ -82,3 +83,4 @@ printf "\n$INFO%s$RESET\n" "Cleaning up Homebrew Casks..." brew cask cleanup +
bash
d_bash_11945
--- +++ @@ -4,7 +4,7 @@ echo 'eval "$(pyenv virtualenv-init -)"' >> /home/vagrant/.bash_profile # Add aliases for students. -echo "alias dragonwarrior='cd /vagrant/training'" >> /home/vagrant/.bash_profile +echo "alias dragon-warrior='cd /vagrant/training'" >> /home/vagrant/.bash_profile echo "alias level-1='cd ...
bash
d_bash_11946
--- +++ @@ -18,3 +18,6 @@ then exit $EXITCODE fi + +export PATH=$PATH:$HOME/gopath/bin/ +goveralls -v -coverprofile=profile.cov -service=travis-ci -repotoken=sFrR9ZmLP5FLc34lOaqir67RPzYOvFPUB
bash
d_bash_11947
--- +++ @@ -10,7 +10,7 @@ ENO_CORE_GROUP_ID="fr.insee.eno" ENO_CORE_URL="https://github.com/InseeFr/Eno.git" ENO_CORE_ARTIFACT_ID="eno-core" -ENO_CORE_VERSION="1.0.2" +ENO_CORE_VERSION="1.1.0" function install_pogues_model(){ bash scripts/gh2mvn.sh "$POGUES_MODEL_URL" "$GROUP_ID" "$POGUES_MODEL_ARTIFACT_I...
bash
d_bash_11948
--- +++ @@ -10,5 +10,7 @@ generate_repo "$PACKAGE" +yum remove -y ${INSTALL_PKGS} + yum install -y ${INSTALL_PKGS} exit $?
bash
d_bash_11949
--- +++ @@ -4,7 +4,7 @@ if test "z$1" = "z--clean"; then echo "Cleaning" - rm -Rf autom4te.cache bonobo/autom4te.cache + rm -Rf autom4te.cache rm -f missing install-sh mkinstalldirs libtool ltmain.sh exit 1; fi @@ -27,7 +27,11 @@ #intltoolize --copy --force --automake autoconf || exit 1; i...
bash
d_bash_11950
--- +++ @@ -1,3 +1,15 @@ +# This script needs some work. The issue is the "DISPLAY" flag below. +# Technically, DISPLAY is usually set as an env variable on Linux, but not on a Mac +# and is related to X-Win. What this script needs is: +# 1. Get the value of $DIPLAY +# 2. If it's blank - you probably have some work t...
bash
d_bash_11951
--- +++ @@ -1,5 +1,6 @@ # ssh-agent config SSH_ENV="$HOME/.ssh-local/environment" +WEASEL_BIN="/mnt/c/Program\ Files/PuTTY/weasel-pageant" function start_agent { echo "Initialising new SSH agent..." @@ -16,6 +17,9 @@ fi export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock; echo "Using forwarded SSH agen...
bash
d_bash_11952
--- +++ @@ -1,10 +1,67 @@ #!/bin/sh set -e -if [ $# -ne 2 ] ; then - echo "Need <OLD> and <NEW> as arguments" >&2 + +## +# +# script to replace hashes in config files +# see usage() for usage and functionality +# + +function usage() { + cat >&2 <<EOF +$0 --<mode> <how-to-find> <new-hash> + +Available modes: -...
bash
d_bash_11953
--- +++ @@ -9,7 +9,7 @@ echo >&2 'Error: at least one repo README.md has changed' echo >&2 'These files are autogenerated, so it is unnecessary to modify them' echo >&2 'Please update content.md and docker-library-bot will take care of README.md' - echo >&2 'See: https://github.com/docker-library/docs/#image-na...
bash
d_bash_11954
--- +++ @@ -7,6 +7,11 @@ # Make ssh faster by not waiting on DNS echo "UseDNS no" >> /etc/ssh/sshd_config +# We might use virtio interfaces, undeclare Ethernet +for card in eth0 eth1; do + sed -i 's/^TYPE="Ethernet"/# &/' /etc/sysconfig/network-scripts/ifcfg-$card +done + # Install the EPEL repo in order to ins...
bash
d_bash_11955
--- +++ @@ -1,4 +1,5 @@ #!/bin/bash +mkdir -p ~/.vim/{backups,swaps,undo} cd "$(dirname "$0")" git pull read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1
bash
d_bash_11956
--- +++ @@ -12,3 +12,7 @@ apt-get -qq -y autoremove apt-get -qq -y autoclean apt-get -qq -y clean + +# Install packer +wget https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_linux_amd64.zip -O /tmp/packer_0.8.6_linux_amd64.zip +unzip /tmp/packer_0.8.6_linux_amd64.zip -d /usr/local/bin/
bash
d_bash_11957
--- +++ @@ -5,7 +5,7 @@ #basic shell setup to mimic ubuntu export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ " -LS_COLORS=$LS_COLORS:'di=0;34:' ; export LS_COLORS +LSCOLORS='d'; export LSCOLORS export PAGER=less export EDITOR=vim alias grepc="grep -nr --color=always"
bash
d_bash_11958
--- +++ @@ -17,7 +17,7 @@ Pin-Priority: 1001 EOF -apt-key adv --recv-key https://download.opensuse.org/repositories/home:/sionescu/Ubuntu/Release.key +curl https://download.opensuse.org/repositories/home:/sionescu/Ubuntu/Release.key | apt-key add - apt-get update -qq
bash
d_bash_11959
--- +++ @@ -16,8 +16,9 @@ #using token clone gh-pages branch git clone --quiet --branch=gh-pages $FULL_REPO gh-pages > /dev/null - #go into diractory and copy data we're interested in to that directory + #go into directory and copy data we're interested in to that directory cd gh-pages + rm -rf dist ...
bash
d_bash_11960
--- +++ @@ -3,3 +3,5 @@ HISTCONTROL=ignoredups:erasedups:ignorespace HISTIGNORE="*personal*:*secret*:cd*" +# After every command, save history +export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
bash
d_bash_11961
--- +++ @@ -17,6 +17,6 @@ # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) -plugins=(cp gitfast git-extras git-remote-branch jsontools osx pod rbenv r...
bash
d_bash_11962
--- +++ @@ -13,9 +13,17 @@ chkconfig denyhosts on sed -i -e 's/^PURGE_DENY.*/PURGE_DENY = 5d/' /etc/denyhosts.conf -# No timeout for grub menu -sed -i -e 's/^GRUB_TIMEOUT.*/GRUB_TIMEOUT=0/' /etc/default/grub -# No fancy boot screen -grep -q rhgb /etc/default/grub && sed -e 's/rhgb //' /etc/default/grub -# Write o...
bash
d_bash_11963
--- +++ @@ -25,9 +25,9 @@ for BUILD_TYPE in ${BUILD_TYPES}; do rm -rf cmake-build/* || true ( - cd cmake-build || echo 'cannot cd to cmake-build/' - cmake -DCMAKE_INSTALL_PREFIX:PATH="${HOME}/OpenCoarrays" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" .. || echo "running cmake failed" - make -j 4 || echo "running mak...
bash
d_bash_11964
--- +++ @@ -1,5 +1,7 @@ #!/bin/bash + +source ./bootstrap_utils.sh ruby-install ruby 2.1.7 --no-reinstall chruby ruby-2.1.7
bash
d_bash_11965
--- +++ @@ -27,6 +27,7 @@ python2.7 -m ensurepip python2.7 -m pip install --upgrade pip python2.7 -m pip install numpy +python2.7 -m pip install sphinx breathe # Add symlink ln -s /usr/local/bin/python2.7 /usr/local/bin/python
bash
d_bash_11966
--- +++ @@ -21,7 +21,6 @@ python \ python-devel \ python-virtualenv \ - python-devel \ gcc \ dialog \ augeas-libs \
bash
d_bash_11967
--- +++ @@ -7,10 +7,7 @@ # install some python modules that we need sudo pip install blist cql decorator enum34 flaky futures nose-test-select psutil pycassa # install/upgrade the latest cassandra-driver in pypi, including pre-releases -#sudo pip install --pre --upgrade cassandra-driver -# install python-driver fr...
bash
d_bash_11968
--- +++ @@ -36,7 +36,7 @@ echo "$dst exists" else #create new project - mkdir -- "$dst" || exit 1 + mkdir -p -- "$dst" || exit 1 #success message echo "Created Directory: $dst"
bash
d_bash_11969
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh aclocal && \ - libtoolize --automake --copy --force && \ - automake --foreign --add-missing && \ - autoconf + libtoolize --automake --force && \ + automake --foreign --add-missing --force && \ + autoconf --forc...
bash
d_bash_11970
--- +++ @@ -11,7 +11,7 @@ echo making ROOT... -make +make -j2 echo source ROOT environment...
bash
d_bash_11971
--- +++ @@ -9,7 +9,7 @@ exit 0 fi -SUPPORTED_KUBE_VERSIONS="0.11.0" +SUPPORTED_KUBE_VERSIONS="0.12.0" TEST_NAMESPACE="default" cd integration
bash
d_bash_11972
--- +++ @@ -2,5 +2,5 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $DIR/.. -uglifyjs woc.w/comptree.js woc.w/contexts.js woc.w/loader.js woc.w/loader-w.js woc.w/main.js woc.w/serv-ajax.js woc.w/serv-log.js woc.w/serv-router.js woc.w/utils.js -o woc.min.js +uglifyjs woc.w/comptree.js woc.w/cont...
bash
d_bash_11973
--- +++ @@ -9,3 +9,8 @@ brew cask install iterm2 brew cask install macvim brew cask install spectacle + +# Install rbenv and some ~ruby versions +brew install rbenv +rbenv install 2.2.4 +rbenv install 2.3.1
bash
d_bash_11974
--- +++ @@ -19,6 +19,7 @@ git config --global alias.logs 'log -n 20' git config --global alias.lp 'log -p' git config --global alias.ls 'log --stat' +git config --global alias.mf 'merge --ff-only' git config --global alias.pr 'pull --rebase' git config --global alias.rc 'rebase --continue' git config --global a...
bash
d_bash_11975
--- +++ @@ -11,7 +11,7 @@ mod="`echo "${Pkg}" | tr '[:upper:]' '[:lower:]'`" BUILD_DIR=`pwd`/.build export PATH="${BUILD_DIR}/gir2swift/.build/release:${BUILD_DIR}/gir2swift/.build/debug:${PATH}" -LINKFLAGS="`pkg-config --libs $module gio-unix-${VER} glib-${VER} | tr ' ' '\n' | sed 's/^/-Xlinker /' | tr '\n' ' '`"...
bash
d_bash_11976
--- +++ @@ -7,5 +7,8 @@ consul-cli acl-update --token=${MASTER_TOKEN} --name=agent_policy \ --rule='key::write' \ + --rule='key:marathon:deny' \ + --rule='key:vault:deny' \ + --rule='key:secure:deny' \ --rule='service::write' \ ${AGENT_TOKEN}
bash
d_bash_11977
--- +++ @@ -29,6 +29,8 @@ # Test phases: run_test_phase "${REPOROOT}/qa/zcash/ensure-no-dot-so-in-depends.py" +run_test_phase "${REPOROOT}/src/zerocash/merkleTest" +run_test_phase "${REPOROOT}/src/zerocash/utilTest" # If make check fails, show test-suite.log as part of our run_test_phase # output (and fail th...
bash
d_bash_11978
--- +++ @@ -3,3 +3,4 @@ echo "Installing Ansible roles..." # Install required roles ansible-galaxy install geerlingguy.java +ansible-galaxy install ferrarimarco.docker
bash
d_bash_11979
--- +++ @@ -6,7 +6,7 @@ cd "$PORTAL_SOURCE_DIR"/core/src/main/scripts/importer python3 ./metaImport.py \ --study_directory="$PORTAL_SOURCE_DIR"/core/src/test/scripts/test_data/study_oncokb_import \ - --portal_info_dir="$PORTAL_SOURCE_DIR"/core/src/test/scripts/test_data/api_json_system_tests \ + --url_server="...
bash
d_bash_11980
--- +++ @@ -10,7 +10,7 @@ echo "> Create a Docker image for this specific build. This allows us to go back to a particular build at any time, and makes it possible to deploy without rebuilding by just re-tagging the image."; -echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin +echo "$D...
bash
d_bash_11981
--- +++ @@ -17,6 +17,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 gp='git push origin HEAD' alias gd='git diff' +alias gdc='git diff --cached' alias gc='git commit' alias gca='git commit -a' ali...
bash
d_bash_11982
--- +++ @@ -4,7 +4,6 @@ # Distributed under the terms of the Modified BSD License. set -x -npm install npm update wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; bash miniconda.sh -b -p $HOME/miniconda
bash
d_bash_11983
--- +++ @@ -8,8 +8,12 @@ brew tap caskroom/cask -brew update #; brew doctor; brew update +echo "brew update ..." +brew update > /dev/null # There is no need for all of this output to be seen -brew install ant brew-cask && brew cask install java +brew install ant + +brew tap caskroom/cask +brew cask install jav...
bash
d_bash_11984
--- +++ @@ -20,5 +20,16 @@ umount /tmp/parallels; rm -rf /tmp/parallels; rm -f $HOME_DIR/*.iso; + + # Parallels Tools for Linux includes native auto-mount script, + # which causes losing some of Vagrant-relative shared folders. + # So, we should disable this behavior. + # https://github.com...
bash
d_bash_11985
--- +++ @@ -5,6 +5,7 @@ start_suite "Check scope exits cleanly within 10 seconds" scope_on $HOST1 launch +sleep 10 scope_on $HOST1 stop sleep 10
bash
d_bash_11986
--- +++ @@ -13,6 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -process_count=$(ps -e | wc -l | tr -d ' ') +process_count=$(ps -e | egrep '^.*\d+' | grep -v nprocs.sh | wc -l | tr -d ' ') echo "BOUNDARY_PROCESS_COUNT $process_count $(hostname)"
bash
d_bash_11987
--- +++ @@ -7,7 +7,10 @@ DOTFILES_BOOTSTRAP=false . ./bootstrap.sh -install_packages_if_necessary openssl +package=gnupg +if ! command_is_executable gpg; then + install_packages $package || die "Installing $package failed" +fi -openssl aes-256-cbc -salt -a -d -in "${1}" -out "${2}" +gpg --output="${2}" --de...
bash
d_bash_11988
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -pandoc --from=markdown --to=rst --output=README README.md +pandoc --from=markdown --to=rst --output=README.rst README.md python setup.py sdist upload
bash
d_bash_11989
--- +++ @@ -1,3 +1,9 @@ +#!/usr/bin/env bash +# bash script inspared from bcbio-nextgen: https://github.com/chapmanb/bcbio-nextgen/blob/master/tests/run_tests.sh +# It allows to run specific test using the name like +# ./run_test.sh test_align +set -e + readlinkf(){ perl -MCwd -e 'print Cwd::abs_path shift' $1; } S...
bash
d_bash_11990
--- +++ @@ -8,7 +8,7 @@ pip install -q ghtools -REPO="alphagov/publishing-api" +REPO="alphagov/entity-extractor" gh-status "$REPO" "$GIT_COMMIT" pending -d "\"Build #${BUILD_NUMBER} is running on Jenkins\"" -u "$BUILD_URL" >/dev/null if ./jenkins.sh; then
bash
d_bash_11991
--- +++ @@ -8,6 +8,15 @@ BLUE="\e[34m" L_MAGENTA="\e[95m" RED="\e[31m" +DARK_GREY="\e[90m" + +# Git function helpers +function parse_git_dirty { + [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" +} +function parse_git_branch { + git branch --no-color 2> /d...
bash
d_bash_11992
--- +++ @@ -4,6 +4,6 @@ HYDRA="${HYDRA_DIR}/bin/hydra" MPIPROG="mpiexec" -${MPIPROG} -n {{ number_of_slots-1 }} ${HYDRA} -i input/dhbox.exo -c input/dhbox.cntl +${MPIPROG} -n {{ number_of_slots }} ${HYDRA} -i input/dhbox.exo -c input/dhbox.cntl rm -rf input
bash
d_bash_11993
--- +++ @@ -3,7 +3,7 @@ then source /cvmfs/oasis.opensciencegrid.org/osg/modules/lmod/5.6.2/init/bash module load python/2.7 - ./testnetwork.sh + ./testnetwork.py else - ./testnetwork.sh + ./testnetwork.py fi
bash
d_bash_11994
--- +++ @@ -19,5 +19,5 @@ echo "Current IP Address of the server: $IP_ADDRESS_SERVER" # start the vlc restream on the server -ssh $USER@$SERVER "cvlc http://$IP_ADDRESS:8080 --no-audio --sout '#transcode{vcodec=MJPG,venc=ffmpeg{strict=1}}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51...
bash
d_bash_11995
--- +++ @@ -9,6 +9,8 @@ if [ ! -f /export/.pubmed2go_save ]; then python PubMedParser.py -i /export/import_data/ -d pubmed -p 4 + cd full_text_index + python RunXapian.py --xapian_database_path /export/ --index --db_psql pubmed --no_search fi touch /export/.pubmed2go_save
bash
d_bash_11996
--- +++ @@ -1,5 +1,5 @@ +#!/bin/bash -e source hack/config.sh -pushd tests +cd tests go test -master=http://$master_ip:$master_port "$@" -popd
bash
d_bash_11997
--- +++ @@ -34,6 +34,7 @@ # Add login items loginitems -a "Bartender 2" loginitems -a Flux +loginitems -a Magnet loginitems -a SlimBatteryMonitor # Set macOS preferences
bash
d_bash_11998
--- +++ @@ -14,4 +14,4 @@ git checkout --force "${REF}" -git submodule update --init --recursive --depth 1 +git submodule update --init --recursive
bash
d_bash_11999
--- +++ @@ -4,7 +4,7 @@ LOGSTASH_CONFIG_URL=${LOGSTASH_CONFIG_URL:-} if [ -z "${LOGSTASH_CONFIG_URL}" ]; then - LOGSTASH_CONFIG_URL="https://gist.github.com/pblittle/8778567/raw/b6ea950e17fbd2b657c850b11f34d1d754c327d2/logstash.conf" + LOGSTASH_CONFIG_URL="https://gist.github.com/pblittle/8778567/raw/logsta...
bash