document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_1700
--- +++ @@ -6,6 +6,7 @@ # Install Binaries brew install 'git' +brew install 'git-lfs' brew install 'hub' brew install 'tree' brew install 'mackup' @@ -13,6 +14,7 @@ brew install 'm-cli' brew install 'openssl' brew install 'python' +brew install 'java' brew install 'ruby' brew install 'sqlite' brew instal...
bash
d_bash_1701
--- +++ @@ -2,6 +2,7 @@ HEADERS=" \ channel.h \ + content.h \ stream.h" srcdir=../telepathy-farsight/
bash
d_bash_1702
--- +++ @@ -4,4 +4,4 @@ for i in $(ls lib/*|grep ".jar"); do libpath=$( echo "$i:$libpath"); done -exec java -server -Xms32M -cp "$(echo $libpath)build/jar/Snap2.jar" org.rostlab.gemudb.Startup +exec java -server -Xms32M -Djava.net.preferIPv4Stack=true -cp "$(echo $libpath)build/jar/Snap2.jar" org.rostlab.gemud...
bash
d_bash_1703
--- +++ @@ -2,6 +2,7 @@ if [ "$1" = "" ]; then echo "Must supply alert ID to acknowledge" + exit 1 else ALERTID=$1 fi
bash
d_bash_1704
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash + +export CPPFLAGS=-I$PREFIX/include ./configure --prefix=$PREFIX make -j${CPU_COUNT}
bash
d_bash_1705
--- +++ @@ -9,11 +9,10 @@ rm -f src/components/objects/_generated_exceptions.inc rm -f src/components/objects/_generated_interfaces.inc -rm -f include/compiler/lex.yy.h -rm -f include/vm/_generated_vm_opcodes.h -rm -f include/objects/_generated_exceptions.h -rm -f include/objects/_generated_interfaces.h -rm -f in...
bash
d_bash_1706
--- +++ @@ -9,13 +9,13 @@ # Run basic unit tests that don't require web100. LD_LIBRARY_PATH=/home/iupui_ndt/build/lib NDT_HOSTNAME=localhost \ -./iupui_ndt/ndt-3.7.0.1/src/web100_testoptions_unit_tests +./iupui_ndt/ndt/src/web100_testoptions_unit_tests LD_LIBRARY_PATH=/home/iupui_ndt/build/lib NDT_HOSTNAME=loc...
bash
d_bash_1707
--- +++ @@ -17,7 +17,19 @@ fi # Add bootstrap to bash profile. -echo -e "# .dotstar bootstrap\n[[ -r ~/.dot-star/bash/.bash_profile ]] && . ~/.dot-star/bash/.bash_profile" >> "$HOME/.bash_profile" +echo -e "# .dotstar bootstrap\n[[ -r ~/.bashrc ]] && source ~/.bashrc" >> "$HOME/.bash_profile" + +# Find existing b...
bash
d_bash_1708
--- +++ @@ -28,3 +28,9 @@ alias ae="ls -a" # [a]ll files visible to common [u]ser (e.g. in Finder) alias au="ls" + +### Scala +# Run sbt with Java 7 (useful for Coursera course) +alias sbt7="sbt -java-home `/usr/libexec/java_home -v 1.7`" + +
bash
d_bash_1709
--- +++ @@ -11,4 +11,6 @@ exit 0 # There is no crontab for root. fi +cp /usr/local/ub_tools/cpp/cifs_keepalive.sh /usr/local/bin + grep --quiet --fixed-strings ${CIFS_KEEP_ALIVE} ${root_crontab} || echo "0 * * * * \"${CIFS_KEEP_ALIVE}\"" >> ${root_crontab}
bash
d_bash_1710
--- +++ @@ -21,7 +21,7 @@ rm "$FAILED" # print info -if [ -n "$APPVEYOR" ] || [ -n "$PRINT_LOGS" ]; then +if [ -n "$CI" ] || [ -n "$PRINT_LOGS" ]; then find logs/ -name '*.log' -not -name 'summary.log' -print0 | while IFS= read -r -d '' file; do printf '%s\n' "$file" cat "$file"
bash
d_bash_1711
--- +++ @@ -16,7 +16,8 @@ FORMAT_OUT=${TMPDIR:-/tmp}/clang-format-diff.out # Run on all files. -find . -name "*.h" -o -name "*.cc" | xargs -P2 clang-format -i +find . -name "*.h" -o -name "*.cc" | grep -v third_party/|external_libs/ \ + | xargs -P2 clang-format -i # Check if we got any diff git diff > ${FORM...
bash
d_bash_1712
--- +++ @@ -17,9 +17,13 @@ cat ${filter} > ${output} +H2DEF= +[ -z "${H2DEF}" -a -f /usr/share/pygtk/2.0/codegen/h2def.py ] && H2DEF=/usr/share/pygtk/2.0/codegen/h2def.py +[ -z "${H2DEF}" -a -f /usr/lib/python2.5/site-packages/gtk-2.0/codegen/h2def.py ] && H2DEF=/usr/lib/python2.5/site-packages/gtk-2.0/codegen/h...
bash
d_bash_1713
--- +++ @@ -11,6 +11,8 @@ cd src composer install --no-interaction --optimize-autoloader --no-dev npm install --production + +npm run production php artisan cache:clear php artisan config:clear
bash
d_bash_1714
--- +++ @@ -35,6 +35,7 @@ let n=n+1 if [ $n -ge $count ] ;then + echo "skip $sport1" break; fi @@ -45,7 +46,7 @@ $DUALPORT /dev/$sport1 /dev/$sport2 -b $BAUDRATE -l $LOOP_COUNT if [ $? -ne 0 ];then result=1 - echo "ERROR on $sport1 and $sport2" + ech...
bash
d_bash_1715
--- +++ @@ -35,5 +35,5 @@ rm -f tmp-nuget/*.symbols.nupkg echo "Remaining task - push nuget files:" -echo "cd tmp-nupkg" +echo "cd tmp-nuget" echo "for pkg in *.nupkg; do dotnet nuget push -s https://api.nuget.org/v3/index.json -k API_KEY_HERE \$pkg; done"
bash
d_bash_1716
--- +++ @@ -4,7 +4,5 @@ $ROOT_DIR/cloudera-framework-initialise.sh -export CDH_HADOOP_HOME=$PARCELS_ROOT/$CDH_DIRNAME/lib/hadoop - -export HIVE_AUX_JARS_PATH=$ROOT_DIR/../lib - +export HIVE_AUX_JARS_PATH="$ROOT_DIR/../lib" +export HADOOP_CLASSPATH="$HADOOP_CLASSPATH":"$(echo -n $(ls -m $ROOT_DIR/lib/jar/*.jar)|s...
bash
d_bash_1717
--- +++ @@ -1,5 +1,6 @@ #!/bin/sh +$(type glibtoolize >/dev/null 2>&1) && LIBTOOLIZE=${LIBTOOLIZE:-glibtoolize} aclocal -I m4 && \ ${LIBTOOLIZE:-libtoolize} --automake --force && \ autoheader --force &&
bash
d_bash_1718
--- +++ @@ -4,16 +4,15 @@ set -e -function cd_workspace() { - cd $(dirname $(readlink -f $0)) > /dev/null -} +ROOT_WORKSPACE=$(cd `dirname $0` && pwd -P) function license_check() { # License information must be in every source file - cd_workspace + cd $ROOT_WORKSPACE - tmpfile=`mktemp` - find * -not...
bash
d_bash_1719
--- +++ @@ -15,6 +15,19 @@ machine="$1" port="$2" ssh $machine -N -L "${port}:localhost:${port}" +} + +function tunnel() { + machine="$1" + port_local="$2" + port_remote="$2" + + if [ ! -z "$3" ]; then + port_remote="$3" + fi; + + echo "ssh $machine -N -L \"${port_local}:localhost:${port_remote}\"" ...
bash
d_bash_1720
--- +++ @@ -6,7 +6,7 @@ _run_default() { # Commands - $DEBUG sudo apt-get install -y --allow redis-server + $DEBUG sudo apt-get install --allow redis-server } _run_() {
bash
d_bash_1721
--- +++ @@ -19,4 +19,4 @@ #******************************************************************************* MONGO_PATH="/usr/bin" -${MONGO_PATH}/mongod -dbpath ../data/mongodb --smallfiles > ./mongod_$(date +"%s").log 2>&1 +${MONGO_PATH}/mongod -dbpath ../data/mongodb --smallfiles > ../log/mongod_$(date +"%s").log...
bash
d_bash_1722
--- +++ @@ -20,7 +20,7 @@ conda install -y -c omnia mdtraj conda install -y scikit-learn conda install -y setuptools -conda install -y -c anaconda keras=1.1.1 +conda install -y keras=1.1.1 conda install -y -c conda-forge protobuf=3.1.0 yes | pip install $tensorflow==0.12.1 yes | pip install nose
bash
d_bash_1723
--- +++ @@ -8,4 +8,4 @@ database_uri="$DATEMO_DB_URI?aws_access_key_id=$aws_access_key&aws_secret_key=$aws_secret_access_key" echo "Starting datemo..." -java -DDATABASE.URI=$database_uri -jar /datemo-0.1.1-SNAPSHOT-standalone.jar +java -DDATABASE.URI=$database_uri -jar /datemo-0.1.1-standalone.jar
bash
d_bash_1724
--- +++ @@ -13,20 +13,21 @@ cd $TAGLIB_VERSION/ TAGLIB_TOOLCHAIN=" -SET(CMAKE_SYSTEM_NAME Windows) -SET(CMAKE_C_COMPILER $HOST-gcc) -SET(CMAKE_CXX_COMPILER $HOST-g++) -SET(CMAKE_RC_COMPILER $HOST-windres) +set(CMAKE_SYSTEM_NAME Windows) +set(CMAKE_C_COMPILER $HOST-gcc) +set(CMAKE_CXX_COMPILER $HOST-g++) +set(CMAK...
bash
d_bash_1725
--- +++ @@ -7,7 +7,7 @@ cd mapserver-7.0.0 mkdir build cd build -cmake -DWITH_KML=1 -DWITH_PHP=1 -DWITH_FCGI=0 -DWITH_SVGCAIRO=1 .. +cmake -DWITH_KML=1 -DWITH_PHP=1 -DWITH_FCGI=0 -DWITH_SVGCAIRO=0 -DWITH_HARFBUZZ=0 -DWITH_FRIBIDI=0 .. make sudo make install cd ../../
bash
d_bash_1726
--- +++ @@ -11,3 +11,10 @@ gnuman="$HOME/homebrew/opt/coreutils/libexec/gnuman:$HOME/homebrew/share/man" MANPATH="${MANPATH/$gnuman:/}" man "$@" } + +with-brew-env () { + PKG_CONFIG_PATH="$PKG_CONFIG_PATH $HOME/homebrew/opt/libxml2/lib/pkgconfig" \ + LDFLAGS="$LDFLAGS -L$HOME/homebrew/opt/libxml2/lib -L$HO...
bash
d_bash_1727
--- +++ @@ -15,7 +15,7 @@ CLASSPATH="\ ../../../../../../bin:\ -../../../../../../../app/bin:\ +../../../../../../../app/bin/classes:\ ../../../../../../libs/protobuf-java-2.3.0.jar\ "
bash
d_bash_1728
--- +++ @@ -22,7 +22,7 @@ ${RESOURCES_ARTIFACTS_MINIA_EXECUTABLE}/minia ${TEMPFILE} 25 3 3000000000 unused # copy minia output file to specified location - cp contigs.fa ${OUTPUT} + cp unused.contigs.fa ${OUTPUT} }
bash
d_bash_1729
--- +++ @@ -23,7 +23,5 @@ esac # Setup NVM -if [[ -n $brew_prefix && -f $brew_prefix/nvm.sh ]]; then - NVMSH=$brew_prefix/nvm.sh - export NVM_DIR=~/.nvm -fi +export NVM_DIR="~/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
bash
d_bash_1730
--- +++ @@ -3,7 +3,7 @@ TEST_DIR=$2 test_apk() { - RESULTS_DIR=$1_$BUILD_ID + RESULTS_DIR=$1_${BUILD_ID} gcloud firebase test android run \ --type instrumentation \ @@ -12,14 +12,18 @@ --device model=Nexus6P,version=27,locale=en_US,orientation=portrait \ --timeout 30m \ --results-b...
bash
d_bash_1731
--- +++ @@ -3,7 +3,7 @@ compiler_rt_revision=release_60 libcxx_revision=release_60 polly_revision=release_60 -ndk_version=android-ndk-r17 +ndk_version=android-ndk-r18 clang_repository=http://llvm.org/git/clang.git llvm_repository=http://llvm.org/git/llvm.git
bash
d_bash_1732
--- +++ @@ -15,4 +15,4 @@ # We assume that email to the current system user will somehow reach the right # human eyes -tail ${build}.log | sed 's/.*\r//' | mail -s "${subject}" $(cat ~/.forward) +tail -n 20 ${build}.log | sed 's/.*\r//' | mail -s "${subject}" $(cat ~/.forward)
bash
d_bash_1733
--- +++ @@ -17,4 +17,4 @@ # TODO: Support for appending to this list from outside PACKAGES=(vim curl wget man-db bash-completion python-software-properties ca-certificates sudo nfs-common) -utils.lxc.attach yum install install ${PACKAGES[*]} -y +utils.lxc.attach yum install ${PACKAGES[*]} -y
bash
d_bash_1734
--- +++ @@ -1,5 +1,5 @@ # From https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/robbyrussell.zsh-theme -local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)" +local ret_status="%(?:%{$fg_bold[green]%}❯ :%{$fg_bold[red]%}❯ %s)" PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$f...
bash
d_bash_1735
--- +++ @@ -1,3 +1,4 @@ #!/bin/bash -$SPLUNK_HOME/bin/splunk cmd node $(dirname $0)/app/app.js +current_dir=$(dirname "$0") +"$SPLUNK_HOME/bin/splunk" cmd node "$current_dir/app/app.js"
bash
d_bash_1736
--- +++ @@ -1,15 +1,20 @@ #!/bin/sh + +SIPVER="4.16.9" +PYQTVER="5.5.1" + cd .. -wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.14.6/sip-4.14.6.tar.gz -tar -xvf sip-4.14.6.tar.gz -cd sip-4.14.6 +wget "https://sourceforge.net/projects/pyqt/files/sip/sip-${SIPVER}/sip-${SIPVER}.tar.gz" +tar -xvf "sip-${SIP...
bash
d_bash_1737
--- +++ @@ -7,6 +7,7 @@ openssl rsa -in /etc/{{name}}/{{name}}.rsa -pubout > /etc/{{name}}/{{name}}.rsa.pub chown {{name}}:{{name}} /etc/{{name}}/{{name}}.rsa* + systemctl daemon-reload systemctl enable {{name}} systemctl enable {{name}}.socket systemctl -q try-reload-or-restart nginx @@ -18,12 +19,13 @@...
bash
d_bash_1738
--- +++ @@ -14,4 +14,6 @@ -statsPrefix="${CLOUD_APP}.${CLOUD_DEV_PHASE:-${CLOUD_ENVIRONMENT}}.${EC2_REGION}.${CLOUD_AUTO_SCALE_GROUP##*-}" \ -scoopURL="${SCOOP_URL}" \ -databaseURL="${INGESTER_DB_URL}" \ - -manifestBucketPrefix="rsingester-manifests" + -manifestBucketPrefix="rsingester-manifests" \ + -loa...
bash
d_bash_1739
--- +++ @@ -3,6 +3,8 @@ if [[ ! "$SSH_TTY" ]] && is_osx; then export EDITOR='mvim -v' export LESSEDIT='mvim -v ?lm+%ln -- %f' + alias vi='mvim -v' + alias vim='mvim -v' else export EDITOR='vim' fi
bash
d_bash_1740
--- +++ @@ -9,6 +9,8 @@ node_modules+=('bower@^1.6.4') node_modules+=('ember-cli@^1.13.12') +node_modules+=('grunt-cli@^0.1.13') +node_modules+=('gulp@^3.9.0') node_modules+=('standard@^5.3.1') npm install --global ${node_modules}
bash
d_bash_1741
--- +++ @@ -1 +1,6 @@ -export JAVA_HOME="/usr/java/latest" +# Use alternatives configuration if it's available, otherwise assume /usr/java/latest is correct +if [ -a /etc/alternatives/java_sdk ] ; then + export JAVA_HOME="/etc/alternatives/java_sdk" +else + export JAVA_HOME="/usr/java/latest" +fi
bash
d_bash_1742
--- +++ @@ -1,4 +1,6 @@ #!/usr/bin/env bash . functions.sh sh ../scripts/copy_files.sh +install_rvm +install_nvm setup.sh
bash
d_bash_1743
--- +++ @@ -7,6 +7,21 @@ vim +PluginInstall +qall # Command-T requires compiling against the system Ruby +# If there are issues with Vim and Ruby, make the asdf system ruby point to +# the latest brew-installed version of Ruby: +# $ brew link --overwrite ruby +# +# Install process when new versions of brew vim ar...
bash
d_bash_1744
--- +++ @@ -1,5 +1,5 @@ #!/bin/sh -e -# Format output of alias print dump into more readable format +# Format output of aliases for z shell awk -F= 'BEGIN { TABLE_FMT = "%-21s | %-59s";
bash
d_bash_1745
--- +++ @@ -3,7 +3,7 @@ set -e set -o pipefail -if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then +if [[ $(uname) == "Linux" ]]; then git clone --depth 1 https://github.com/kylef/swiftenv.git ~/.swiftenv export SWIFTENV_ROOT="$HOME/.swiftenv" export PATH="$SWIFTENV_ROOT/bin:$SWIFTENV_ROOT/shims:$PATH" @@...
bash
d_bash_1746
--- +++ @@ -8,11 +8,15 @@ mkdir -p var/cache var/log if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then - echo "Waiting for db to be ready..." - bin/console ilios:wait-for-database - echo "The db is now ready and reachable" - bin/console cache:warmup - bin/console doctrine:migrations:mi...
bash
d_bash_1747
--- +++ @@ -5,7 +5,7 @@ set -e export MANTA_KEY_ID=55:5e:9a:bc:42:59:df:cb:ad:00:54:f6:59:53:20:83 -export MANTA_USER=isaacs +export MANTA_USER=npm export MANTA_URL=https://us-east.manta.joyent.com export CDPATH= @@ -30,7 +30,7 @@ gzfile="${file}" fi d=$(date '+%Y-%m-%d-%s') - mput -f $gzf...
bash
d_bash_1748
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -# + cd "$(dirname "$0")" git pull @@ -9,7 +9,7 @@ rsync --exclude ".DS_Store" -av ./public/ ~ echo - for file in $(find private/ -type f -exec ls {} \; 2> /dev/null | sed 's/private\///'); do + for file in $(find private -type f -exec ls {} \; 2> /dev/null |...
bash
d_bash_1749
--- +++ @@ -10,7 +10,7 @@ # https://github.com/l0b0/tilde/issues # # COPYRIGHT -# Copyright (C) 2011 Victor Engmark +# Copyright (C) 2011-2012 Victor Engmark # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public...
bash
d_bash_1750
--- +++ @@ -11,22 +11,23 @@ # Best solution likely involves generating the *.d.ts typedefs when building /src/* and correctly # symlinking these built files to the test directory, before building the tests. echo 'Testing DataLab server backend...'; + # Copy node .ts files to test. cp -r "$server_root/src/node" "...
bash
d_bash_1751
--- +++ @@ -1,10 +1,7 @@ #!/bin/bash -x bundle install --path "/home/jenkins/bundles/${JOB_NAME}" --deployment -RAILS_ENV=test bundle exec rake db:force_close_open_connections -RAILS_ENV=test bundle exec rake db:reset - -RAILS_ENV=test bundle exec rake db:schema_load +RAILS_ENV=test bundle exec rake db:test:prepa...
bash
d_bash_1752
--- +++ @@ -7,7 +7,7 @@ #wget_retry -nv https://github.com/arq5x/bedtools2/archive/v2.25.0.tar.gz wget_retry -nv http://$NIC_MIRROR/pub/sci/molbio/chipster/dist/tools_extras/bedtools_v2.25.0.tar.gz - tar xf v2.25.0.tar.gz + tar xf bedtools_v2.25.0.tar.gz cd bedtools2-2.25.0 make clean make all
bash
d_bash_1753
--- +++ @@ -1,4 +1,12 @@ #!/usr/bin/env bash + +header() { + echo "--- $1 ---" +} + +run-suite() { + node_modules/.bin/mocha -b -t 10000 +} set -e @@ -7,6 +15,13 @@ false fi +header 'Linter' scripts/run-linter.sh -exec node_modules/.bin/mocha -b -t 10000 +header 'Node.js: (default)' +run-suite ...
bash
d_bash_1754
--- +++ @@ -1,4 +1,7 @@ #!/bin/sh +# Test 11 - test for DNSKEY RRset answer size. The full answer packet +# of the DNSKEY rrset should be below the IPv6 fragmentation payload +# limit (1232 byte) maxsize=1232 replysize=$(dig ${1} dnskey +dnssec | grep ";; MSG SIZE" | cut -d " " -f 6) if [ "${replysize}" -le "${ma...
bash
d_bash_1755
--- +++ @@ -3,3 +3,8 @@ # Ruby JRuby in 1.9 mode export JRUBY_OPTS='--1.9' + +# Use custom Java 7 install (http://goo.gl/P8gO1) +if [[ -d "/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home" ]]; then + export JAVA_HOME="/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home" +fi
bash
d_bash_1756
--- +++ @@ -4,13 +4,9 @@ total_words=${#words} if [[ $total_words -eq 2 ]]; then - completions=$'compile\nconfig\ndeps\ninit\nsetup\nupdate' - elif [[ $total_words -eq 3 ]]; then - if [[ $words[2] = 'config' ]]; then - completions='update' - elif [[ $words[2] = 'deps' ]]; then - completions='update' - f...
bash
d_bash_1757
--- +++ @@ -10,7 +10,7 @@ cd nihongoparserd mkdir build cd build -cmake .. +cmake .. && cmake .. make #Copy binary to system-wide location
bash
d_bash_1758
--- +++ @@ -8,4 +8,5 @@ ros-kinetic-ros-control\ ros-kinetic-ros-controllers\ ros-kinetic-teleop-twist-keyboard\ - ros-kinetic-velodyne-gazebo-plugins + ros-kinetic-velodyne-gazebo-plugins\ + ros-kinetic-pointcloud-to-laserscan
bash
d_bash_1759
--- +++ @@ -2,7 +2,7 @@ set -ex -o pipefail BCBIO_VERSION="1.0.7a" -BCBIO_REVISION="70cbf03" +BCBIO_REVISION="67db27a" NS="quay.io/bcbio" TAG="${BCBIO_VERSION}-${BCBIO_REVISION}"
bash
d_bash_1760
--- +++ @@ -2,7 +2,7 @@ set -eux -BOOST_VERSIONS=(1.58.0 1.59.0 1.60.0 1.61.0 1.62.0 1.63.0 1.64.0 1.65.1) +BOOST_VERSIONS=(1.58.0 1.59.0 1.60.0 1.61.0 1.62.0 1.63.0 1.64.0 1.65.1 1.66.0) BOOST_LIBRARIES="chrono,date_time,python,system,test,thread" BUILD_ROOT=/tmp/boosts
bash
d_bash_1761
--- +++ @@ -1,4 +1,4 @@ function mysql_reload() { - launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist - launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist + launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mysql55.plist + launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql...
bash
d_bash_1762
--- +++ @@ -4,7 +4,7 @@ { # local shopt_backup=$(shopt -p globstar) # shopt -s globstar - for bindir in ~/tools/*/bin;do + for bindir in ~/tools/*/bin ~/.local/bin;do if [[ -d $bindir ]] && [[ "$PATH" != *$bindir* ]];then export PATH=$bindir:$PATH fi
bash
d_bash_1763
--- +++ @@ -9,3 +9,4 @@ export OCL_API_TOKEN=$2 export OCL_ANON_API_TOKEN=$2 nohup grunt serve > nohup.out 2>&1 & +echo "from django.contrib.auth.models import User; user = User.objects.create_superuser('admin', 'paynejd@gmail.com', 'Root123') if (User.objects.filter(username='root').count() < 1) else None" | pyth...
bash
d_bash_1764
--- +++ @@ -3,7 +3,7 @@ cd /project/live/${ENV}/k8s/kube-system/helm-tls echo "[helm-tls] Pulling helm-tls TF state..." -state=$(terragrunt state pull 2> /dev/null | jq -r '.modules[].resources | select(length > 0)') +state=$(terragrunt state pull 2> /dev/null | jq -r ".modules[].resources | select(length > 0)") ...
bash
d_bash_1765
--- +++ @@ -8,10 +8,10 @@ echo "Installing deps for OSX" if [ $PYTHON_VERSION == "2.7" ]; then CONDA_VER='2' - elif [ $PYTHON_VERSION == "3.6" ]; then + elif [ $PYTHON_VERSION == "3.7" ]; then CONDA_VER='3' else - echo "Conda only supports 2.7 and 3.6" + echo "Miniconda only supports 2.7 an...
bash
d_bash_1766
--- +++ @@ -2,7 +2,7 @@ thirdparty_module_name='KWIML' -upstream_git_url='https://github.com/Kitware/KWIML.git' +upstream_git_url='https://gitlab.kitware.com/utils/kwiml.git' upstream_git_branch='master' snapshot_author_name='KWIML Upstream'
bash
d_bash_1767
--- +++ @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Find the camera listed on the command line, +# Find the Microphone listed on the command line, # based on output of 'pacmd' export PULSE_RUNTIME_PATH="/run/user/1000/pulse/" if [[ $# -eq 0 ]]; then
bash
d_bash_1768
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# install FUSE +sudo apt-get update +sudo apt-get install libfuse-dev + # Install conda wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh bash miniconda.sh -b -p $HOME/miniconda @@ -7,6 +11,7 @@ conda update conda # Install ...
bash
d_bash_1769
--- +++ @@ -23,6 +23,6 @@ print $4 | command }' done -initial_root_token=$(echo $vault_init | grep "Initial Root Token") +initial_root_token=$(echo $vault_init | grep "Initial Root Token" | awk '{print $4}' ) echo "export VAULT_TOKEN=$initial_root_token" >> ~/.bashrc
bash
d_bash_1770
--- +++ @@ -1,8 +1,5 @@ #!/bin/bash -curl -L -O http://mcranmer.com/data/bf_test_files.tar.gz -if [[ "$?" != "0" ]]; then - curl -L -O https://fornax.phys.unm.edu/lwa/data/bf_test_files.tar.gz -fi +curl -L -O https://fornax.phys.unm.edu/lwa/data/bf_test_files.tar.gz tar xzf bf_test_files.tar.gz mv for_test_suite d...
bash
d_bash_1771
--- +++ @@ -2,8 +2,7 @@ #Execute this script from local checkout of spring cloud stream -./mvnw versions:update-property -Dproperty=spring-cloud-stream.version -DnewVersion=[$2] -DallowSnapshots=true -DallowDowngrade=true -./mvnw versions:update-parent -DparentVersion=[0.0.1,$3] -Pspring -DgenerateBackupPoms=fal...
bash
d_bash_1772
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash cat >> /etc/apt/sources.list <<EOF -deb http://download.opensuse.org/repositories/home:/sionescu/Ubuntu_Trusty/ ./ +deb http://download.opensuse.org/repositories/home:/sionescu/Ubuntu_14.04/ ./ EOF cat >> /etc/apt/preferences <<EOF
bash
d_bash_1773
--- +++ @@ -5,10 +5,12 @@ environ filehook fira + fontaxes fontspec footmisc gentium-tug graphics + hyphen-english import listings luatexbase @@ -17,7 +19,6 @@ opensans pgf polyglossia - hyphen-english ragged2e tcolorbox tools @@...
bash
d_bash_1774
--- +++ @@ -10,6 +10,7 @@ py3status \ dmenu \ tmux \ + zsh \ python3 \ python3-dev \ # YouCompleteMe
bash
d_bash_1775
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash mkdir -p /config/logs/supervisor chown -R plex: /config
bash
d_bash_1776
--- +++ @@ -28,7 +28,7 @@ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim curl https://raw.githubusercontent.com/altercation/vim-colors-solarized/master/colors/solarized.vim -mkdir ~/vim/colors +mkdir ~/.vim/colors mv solarized.vim ~/.vim/colors/ echo "Configuring zsh as default...
bash
d_bash_1777
--- +++ @@ -16,8 +16,8 @@ DEV=`mount | grep $RPATH | cut -d ' ' -f 1` echo "Using existing RAM disk ${DEV}..." else - # Create a ~1GB RAM disk, formatted as HFS+ - DEV=`hdiutil attach -nomount ram://2100000` + # Create a ~4GB RAM disk, formatted as HFS+ + DEV=`hdiutil attach -nomount ram://8400...
bash
d_bash_1778
--- +++ @@ -7,7 +7,7 @@ set -e SWIFTLINT_PKG_PATH="/tmp/SwiftLint.pkg" -SWIFTLINT_PKG_URL="https://github.com/realm/SwiftLint/releases/download/0.18.1/SwiftLint.pkg" +SWIFTLINT_PKG_URL="https://github.com/realm/SwiftLint/releases/download/0.21.0/SwiftLint.pkg" wget --output-document=$SWIFTLINT_PKG_PATH $SWIFTL...
bash
d_bash_1779
--- +++ @@ -16,12 +16,13 @@ || { echo "AWS VPN connection required to push image." ; exit ; } boot2docker ssh <<EOF + set -v # Point docker at the registry. sudo /etc/init.d/docker stop sleep 2 # Give docker time to spin down. sudo sed -i '1s/$/\n\nEXTRA_ARGS="--insecure-registry registry.docker....
bash
d_bash_1780
--- +++ @@ -16,6 +16,7 @@ ./k8s-packages.sh # Initialise K8S Master +echo Running: kubeadm init $MASTER_IP_ARG $TOKEN_ARG sudo kubeadm init $MASTER_IP_ARG $TOKEN_ARG # Set up kube config
bash
d_bash_1781
--- +++ @@ -10,7 +10,7 @@ cd synaptiko-packages/synaptiko-desktop-status git pull - makepkg -sircC + makepkg --noconfirm -sircC cd $DIR
bash
d_bash_1782
--- +++ @@ -9,9 +9,20 @@ if [ -d ${HOME}/.composer/vendor/bin ]; then PATH="${HOME}/.composer/vendor/bin:${PATH}" fi -# add ./bin to path + +python --version 1>/dev/null 2>&1 && { + _python_version="$(python --version 2>&1 | cut -d ' ' -f 2 | cut -d '.' -f 1,2)"; + PATH="~/Library/Python/$_python_version/bin/:...
bash
d_bash_1783
--- +++ @@ -1,4 +1,4 @@ -sudo docker run --name elyoosDatabase -d --net="host" --volume /var/lib/neo4j/data:/data --env=NEO4J_AUTH=none --env=NEO4J_dbms_allowFormatMigration=true --env=NEO4J_dbms_memory_pagecache_size=200M --env=NEO4J_dbms_memory_heap_maxSize=400 neo4j:3.0 +sudo docker run --name elyoosDatabase -d --...
bash
d_bash_1784
--- +++ @@ -11,7 +11,7 @@ echo 'Uploading documentation to the gh-pages branch...' # Checkout and clean out the docs folder -git clone -b gh-pages "${REPO_PATH}" --single-branch +git clone -b gh-pages "${REPO_PATH}" --single-branch gh-pages cd "${DOCS_PATH}" git rm -rf . cd -
bash
d_bash_1785
--- +++ @@ -1,16 +1,15 @@ #!/bin/bash -# this script is compatible with macOS (the sed command) echo "Move _static" -grep -RiIl '_static' _build | xargs sed -i '' -e 's/_static/static/g' -cp -r _build/html/_static _build/html/static +grep -RiIl '_static' _build | xargs sed -i 's/_static/static/g' +mv _build/html/...
bash
d_bash_1786
--- +++ @@ -27,7 +27,12 @@ echo echo "Building the demo-instace for production" -npm run build +npm run build 2>&1 & +PID="$!" +while kill -0 $PID 2> /dev/null; do + echo "Webpack still running..." + sleep 60 +done echo echo "Moving the git-directory back and commiting"
bash
d_bash_1787
--- +++ @@ -15,16 +15,18 @@ fi # upload to itch.io -UPLOADER_VERSION=`curl https://dl.itch.ovh/butler/linux-amd64/LATEST` -mkdir -p tools/ -curl -sLo ./tools/butler "https://dl.itch.ovh/butler/linux-amd64/${UPLOADER_VERSION}/butler" -chmod +x ./tools/butler -export PATH=$PWD/tools:$PATH -butler -V +export TOOLS_D...
bash
d_bash_1788
--- +++ @@ -1,9 +1,10 @@ #!/bin/sh - FILENAME=$1 +FILENAME=$(echo ${FILENAME} | sed 's/.xml$//') TAG=$2 +TAG=${TAG:-${FILENAME}} XTAG=$3 XTAG=${XTAG:-"_wrapper"} -xml-to-json ${FILENAME} | jq -c ".${XTAG}.${TAG}[]" +xml-to-json ${FILENAME}.xml | jq -c ".${XTAG}.${TAG}[]"
bash
d_bash_1789
--- +++ @@ -26,6 +26,8 @@ sudo rm -rf /var/www/default/ sudo ln -sf /var/www/phpbb/phpBB /var/www/default +sudo service nginx reload + # Set to PHP 7 debug mode and restart php-fpm. # Adapt this line if you want to set a different deafult php version /vagrant/newphp 7 debug
bash
d_bash_1790
--- +++ @@ -15,19 +15,19 @@ return 0 ;; -i | --input) - exec <"$2" + export LOADPLAY_IN="$2" shift 2 ;; -i*) - exec <"${1#-i}" + export LOADPLAY_IN="${1#-i}" shift ;; -o | --output) - exec >"$2" + export LOADPLAY_OUT="$2" shift 2 ;; -o*) - exec >"${1#-o}" + export LOADPLAY_OUT="${1...
bash
d_bash_1791
--- +++ @@ -9,8 +9,14 @@ # and build configuration files. ## +echo "Fixing up file permissions for development..." +echo "You can run this via 'docker-compose exec www /var/www/bin/fix-perms.sh'" set -x +# Ensure the default files directory is created. +# This was not automatically done via drush-based site inst...
bash
d_bash_1792
--- +++ @@ -16,9 +16,10 @@ # Update to release version. git checkout master lein set-version $new_version -sed -i '' "s/$current_version/$new_version/g" README.md +sed -i.bak 's/$current_version/"$new_version"/g' README.md +git add README.md project.clj -git commit -am "Release version $new_version." +git commit...
bash
d_bash_1793
--- +++ @@ -3,8 +3,7 @@ # Create a .apphub credentials file echo "{\"appHubId\":\"Z6IwqK52JBXrKLI4kpvJ\",\"appHubSecret\":\"$APP_HUB_SECRET\"}" > .apphub -# while this PR is active: https://github.com/joshuapinter/apphubdeploy/pull/5 -npm install --global orta/apphubdeploy +npm install --global apphubdeploy # ...
bash
d_bash_1794
--- +++ @@ -1,3 +1,6 @@ #!/bin/sh -opennhrpctl purge nbma $REMOTE_ADDR local-nbma $LOCAL_ADDR +# Purge opennhrp entries only if this was the last ISAKMP phase1 +if [ -z "`racoonctl -ll show-sa isakmp | grep "$LOCAL_ADDR\.[0-9]* * $REMOTE_ADDR\.[0-9]* "`" ]; then + opennhrpctl purge nbma $REMOTE_ADDR local-nbma $LO...
bash
d_bash_1795
--- +++ @@ -10,7 +10,7 @@ wget https://openhatch.org/+api/v1/customs/tracker_model/\?format\=yaml\&limit\="$MAX_TRACKERS" -O "$BUG_TRACKER_LIST" pushd ../oh-bugimporters -env/bin/scrapy runspider bugimporters/main.py -a input_filename="$BUG_TRACKER_LIST" -s TELNETCONSOLE_ENABLED=False -s WEBSERVICE_ENABLED=False...
bash
d_bash_1796
--- +++ @@ -23,8 +23,6 @@ set -x -# Relative to the root of the repository. Kokoro will make sure we're in the -# ${KOKORO_ARTIFACTS_DIR}/github/iree directory (which is equivalent) before -# invoking this. - +# Kokoro checks out the repository here. +cd ${KOKORO_ARTIFACTS_DIR}/github/iree ./build_tools/bazel_b...
bash
d_bash_1797
--- +++ @@ -7,6 +7,10 @@ echo 'not on CI so not publishing tagged images' return fi + #if git log -1 --pretty=%B | grep --quiet '[test-only]'; then + # echo 'commit message contains [test-only] so stopping here' + # return + #fi echo 'on CI so publishing tagged images' local -r image="$(image...
bash
d_bash_1798
--- +++ @@ -11,3 +11,7 @@ eval "$(rbenv init -)" alias ctags="`brew --prefix`/bin/ctags" + +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
bash
d_bash_1799
--- +++ @@ -6,3 +6,5 @@ pip install -r ci-requirements.txt apt-get install -y curl tar curl https://raw.githubusercontent.com/apex/apex/master/install.sh | sh +cd code/buffer/functions/proxy +make install_deps
bash