document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_23500
--- +++ @@ -8,6 +8,10 @@ # clean up redhat interface persistence rm -f /etc/udev/rules.d/70-persistent-net.rules if [ -r /etc/sysconfig/network-scripts/ifcfg-eth0 ]; then - sed -i 's/^HWADDR.*$//' /etc/sysconfig/network-scripts/ifcfg-eth0 - sed -i 's/^UUID.*$//' /etc/sysconfig/network-scripts/ifcfg-eth0 + sed -...
bash
d_bash_23501
--- +++ @@ -7,8 +7,8 @@ } DIR=$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)") -. "$DIR/base.sh" -. "$DIR/ansi" +. "$DIR/scripts/base.sh" +. "$DIR/scripts/ansi" if [[ "$OSTYPE" == "darwin"* ]]; then isavailable brew ||
bash
d_bash_23502
--- +++ @@ -24,6 +24,9 @@ # git current branch alias gcb="git rev-parse --abbrev-ref HEAD" +# update current branch from main branch +alias gupd="main_branch=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p'); echo \"rebasing origin/\$main_branch\"...; git fetch origin && git rebase origin/\$main_branch"...
bash
d_bash_23503
--- +++ @@ -29,3 +29,4 @@ alias gm='smart-merge' alias eg='code .git/config' 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 ghv="gh repo view --web"
bash
d_bash_23504
--- +++ @@ -4,5 +4,5 @@ ${CATALINA_HOME}/scripts/create_admin_user.sh fi -export JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active=vagrant" +export JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active=production" exec catalina.sh run
bash
d_bash_23505
--- +++ @@ -22,4 +22,7 @@ lcov -r coverage.info '*/Tests/*' -o coverage.info lcov -r coverage.info '*/Tools/*' -o coverage.info lcov -l coverage.info -bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports" + +curl -s https://codecov.io/bash > .codecov +chmod +x .codecov +./.code...
bash
d_bash_23506
--- +++ @@ -13,6 +13,4 @@ db_user=${DB_USERNAME:-root} db_password=$DB_ROOT_PASSWORD -docker images - -docker run -ti -e PGSQL_USER=$db_user -e PGSQL_PASS=$db_password -e PGSQL_HOST=$db_host -e PGSQL_DB=$db_name psql-builder:latest +docker run -ti -e PGSQL_USER=$db_user -e PGSQL_PASS=$db_password -e PGSQL_HOST=$d...
bash
d_bash_23507
--- +++ @@ -15,5 +15,5 @@ sudo rm -rf /tmp/ombidownload sudo wget -P /tmp/ombidownload "${OUTPUT}" echo -e $YELLOW'--->Extracting files...'$ENDCOLOR -unzip /tmp/ombidownload/*.zip -d /tmp/ombidownload/extract +sudo unzip -q /tmp/ombidownload/*.zip -d /tmp/ombidownload/extract sudo mv /tmp/ombidownload/extract/Rel...
bash
d_bash_23508
--- +++ @@ -2,7 +2,7 @@ sgdisk \ -n 1:0:+128M -t 1:8300 -c 1:"linux-boot" \ - -n 2:0:+32M -t 2:ef02 -c 2:"bios-boot" \ + -n 2:0:+32M -t 2:ef00 -c 2:"bios-boot" \ -n 3:0:+1G -t 3:8200 -c 3:"swap" \ -n 4:0:0 -t 4:8300 -c 4:"linux-root" \ -p /dev/sda @@ -10,7 +10,7 @@ sync mkfs.ext2 ...
bash
d_bash_23509
--- +++ @@ -11,7 +11,7 @@ git checkout upstream/master mv composer.lock composer.lock.pr composer install --quiet -vendor/bin/phpbench run --progress=none --tag=master --retry-threshold=2 --tag=master +vendor/bin/phpbench run --report=aggregate_compact --progress=none --tag=master --retry-threshold=2 --tag=master ...
bash
d_bash_23510
--- +++ @@ -4,7 +4,7 @@ ApplyPatch () { local patchFile="$1" - local toBePatchedFiles=$(sed 's%^--- \([^ ]*\) .*$%\1%gp' <$patchFile) + local toBePatchedFiles=$(sed -n 's%^--- \([^ ]*\)[ ]*.*$%\1%gp' <$patchFile) local toBePatchedFile="" for toBePatchedFile in $toBePatchedFiles do
bash
d_bash_23511
--- +++ @@ -10,7 +10,7 @@ EXTRACONF=--host=$SYS_ARCH fi -package_configure $EXTRACONF --disable-ldap --disable-shared --enable-static +package_configure $EXTRACONF --disable-ldap --disable-shared --enable-static --without-librtmp --without-libidn package_make asserterror $? "compilation failed"
bash
d_bash_23512
--- +++ @@ -6,7 +6,7 @@ echo "Running aclocal..."; aclocal $ACLOCAL_FLAGS -I m4 \ && echo "Running autoheader..."; autoheader \ && echo "Running autoconf..."; autoconf \ -&& echo "Running libtoolize..."; libtoolize --automake \ +&& echo "Running libtoolize..."; ( libtoolize --automake || glibtoolize --automake ) \...
bash
d_bash_23513
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash -python manage.py build_solr_schema --settings=dev_settings > /etc/solr/conf/schema.xml +python manage.py build_solr_schema --settings=dev_settings > /etc/solr/conf/vagrant/conf/schema.xml -/etc/init.d/tomcat6 restart +service tomcat6 restart python manage.py rebuild_index ...
bash
d_bash_23514
--- +++ @@ -1,9 +1,15 @@ +echo "Hiding linux binaries..." +mv dist dist-linux +echo "Removing old node modules..." +rm -rf node_modules +echo "Starting docker build..." docker run --rm -ti \ --env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS_TAG|TRAVIS|TRAVIS_REPO_|TRAVIS_BUILD_|TRAVIS_...
bash
d_bash_23515
--- +++ @@ -3,7 +3,7 @@ # get list of available X windows. x=`emacsclient --alternate-editor '' --eval '(x-display-list)' 2>/dev/null` -if [ -z "$x" ] ;then +if [ -z "$x" ] || [ "$x" = "nil" ] ;then # Create one if there is no X window yet. emacsclient --alternate-editor "" --create-frame "$@" else
bash
d_bash_23516
--- +++ @@ -22,6 +22,11 @@ url="http://epguides.com/$show/" episodesList=$(curl "$url" 2> /dev/null | grep -E "$EPISODE_REGEX +$DATE_REGEX.*") +if [ -z "$episodesList" ]; then + echo "$caller: Could not find episode guide for '$2'" + exit 0 +fi + lastEpisode=$(echo "$episodesList" | tail -n 1) epNum="S"...
bash
d_bash_23517
--- +++ @@ -18,7 +18,7 @@ ########################################################### # JAVA ########################################################### -JDK_URL=https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u265-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u265b01.tar.gz +JDK_URL=https://github....
bash
d_bash_23518
--- +++ @@ -26,3 +26,7 @@ export GOPATH="$HOME/workspace/golang" #export PYTHONPATH="$PYTHONPATH:$HOME/.local/lib/python$(python --version)/site-packages" +if which ruby >/dev/null && which gem >/dev/null; then + PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin:$PATH" +fi +
bash
d_bash_23519
--- +++ @@ -3,7 +3,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]" - ./gradlew --stacktrace --info build + ./gradlew --stacktrace --debug build elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then echo...
bash
d_bash_23520
--- +++ @@ -3,16 +3,16 @@ case "$1" in java8) - echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u265-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u265b01.tar.gz" + echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u275-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u27...
bash
d_bash_23521
--- +++ @@ -9,17 +9,14 @@ exit 1 fi -if [ ! -d posts/. ] +rm -f posts +if [ -e posts ] then - rm -f posts - if [ -e posts ] - then - echo "Couldn't remove the posts link" - exit 1 - fi + echo "Couldn't remove the posts link" + exit 1 +fi - ln -s /dropbox/Docs/Public/hblog_posts posts -fi +ln -s ...
bash
d_bash_23522
--- +++ @@ -1,3 +1,4 @@ +rm -rf docs bash gradlew dokkaHtml bash gradlew dokkaJavadoc
bash
d_bash_23523
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env bash sudo apt-get update -sudo apt-get -y install docker.io +sudo apt-get -y install docker.io openssl libssl-dev bundle install
bash
d_bash_23524
--- +++ @@ -8,7 +8,7 @@ # function install_optional_deps() { - if [[ "$PACKAGE_MANAGER" == "apt" ]]; then + if [[ $(type -t apt-get) ]]; then # attempt to install llvm-3.0-dev (sudo apt-get install -y llvm-3.0-dev && sudo update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-3.0...
bash
d_bash_23525
--- +++ @@ -11,17 +11,35 @@ #fi +get_repo_name() { + if [ "openfaas-incubator/faas-idler" = $1 ]; then + echo "openfaas/faas-idler" + elif [ "openfaas/faas" = $1 ]; then + echo "openfaas/gateway" + elif [ "openfaas/nats-queue-worker" = $1 ]; then + echo "openfaas/queue-worker" + ...
bash
d_bash_23526
--- +++ @@ -6,7 +6,7 @@ if [[ "$YUM_CMD" != "" ]]; then sudo yum install -y libvirt libvirt-devel libvirt-daemon-kvm syslinux-tftpboot device-mapper-libs qemu-kvm net-tools; sudo yum upgrade -y "device-mapper-libs"; -rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc; +sudo rpm --import https://...
bash
d_bash_23527
--- +++ @@ -1,10 +1,28 @@ #!/usr/bin/env bash # # Return last logged in user +# +# Usage: check_last.sh +# -h, --help Display this screen # # (c) 2014, Benjamin Dos Santos <benjamin.dossantos@gmail.com> # https://github.com/bdossantos/nagios-plugins # +while [[ -n "$1" ]]; do + case $1 in + ...
bash
d_bash_23528
--- +++ @@ -1,12 +1,12 @@ #!/usr/bin/env bash set -e -echo "" > coverage.out +echo "mode: atomic" > coverage.out for d in $(glide novendor); do go test -v -coverprofile=profile.txt -covermode=atomic $d if [ -f profile.txt ]; then - cat profile.txt >> coverage.out + cat profile.txt | tai...
bash
d_bash_23529
--- +++ @@ -2,5 +2,7 @@ touch .npmignore mkdir build cd build -cmake .. -DCMAKE_C_FLAGS="$1" -DCMAKE_BUILD_TYPE=Release -DTHREADSAFE=1 -DBUILD_CLAR=0 -DBUILD_SHARED_LIBS=0 -DZLIB_LIBRARY=1 +cmake .. -DCMAKE_C_FLAGS="$1" -DCMAKE_BUILD_TYPE=Release -DTHREADSAFE=1 \ + -DBUILD_CLAR=0 -DBUILD_SHARED_LIBS=0 -DZL...
bash
d_bash_23530
--- +++ @@ -1,11 +1,11 @@ # exampe of usage: > ./build_for_android.sh /home/user/programs/android/ndk/android-ndk-r16b armeabi-v7a # ABI are: armeabi, armeabi-v7a, arm64-v8a, x86, x86_64 export ANDROID_NDK_HOME=$1 -export PATH=$PATH:$ANDROID_NDK_HOME -cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/andr...
bash
d_bash_23531
--- +++ @@ -6,9 +6,9 @@ ln -s /usr/local/lib64/node-v4.3.x/bin/npm /usr/local/bin/npm ln -s /usr/local/lib64/node-v4.3.x/bin/node /usr/local/bin/node -/usr/local/lib64/node-v4.3.x/bin/npm run nsp -/usr/local/lib64/node-v4.3.x/bin/npm run lint -/usr/local/lib64/node-v4.3.x/bin/npm run test +npm run nsp +npm run li...
bash
d_bash_23532
--- +++ @@ -6,7 +6,7 @@ echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.2%2B8/OpenJDK17U-jdk_x64_linux_hotspot_17.0.2_8.tar.gz" ;; java18) - echo "https://github.com/adoptium/temurin18-binaries/releases/download/jdk18-2022-03-10-06-10-beta/OpenJDK18-jdk_x64_linux_hotspot_2022...
bash
d_bash_23533
--- +++ @@ -1,6 +1,11 @@ #!/bin/sh set -u + +# to force this script to run: +# \rm ~/.bash_aliases +# ./setup_dotfiles.sh +# . ~/.bash_aliases BASH_ALIASES=~/.bash_aliases if [ ! -f $BASH_ALIASES ]; then @@ -11,6 +16,9 @@ alias la='ls -A' alias l='ls -CF' alias rt='ls -lsrta' + +alias gstat='for dir ...
bash
d_bash_23534
--- +++ @@ -3,18 +3,15 @@ ROOT_DIR=`pwd` -echo "Building config images... " -( - cd nginx - docker build --tag registry.ng.bluemix.net/jjdojo/nginx:latest . -) -( - cd php-fpm - docker build --tag registry.ng.bluemix.net/jjdojo/php-fpm:latest . -) -( - cd config-php-cli - docker build --tag registry.ng.blu...
bash
d_bash_23535
--- +++ @@ -7,4 +7,9 @@ brew update brew install mono python3 +# Work around apparent rvm bug that is in Travis's Xcode image. +# https://github.com/direnv/direnv/issues/210 +# https://github.com/travis-ci/travis-ci/issues/6307 +shell_session_update() { :; } + "$thisdir/before_install-common.sh"
bash
d_bash_23536
--- +++ @@ -9,8 +9,8 @@ fi ### readline config -INPUTRC=${BASH_ROOT}/readline.inputrc +INPUTRC="${BASH_ROOT}/readline.inputrc" ### Bash options -source ${BASH_ROOT}/bash.sh +source "${BASH_ROOT}/bash.sh"
bash
d_bash_23537
--- +++ @@ -8,4 +8,6 @@ example_dir=examples/adjoints/$example_name -run_example "$example_name" +options="-pc_type jacobi" + +run_example "$example_name" $options
bash
d_bash_23538
--- +++ @@ -37,9 +37,11 @@ ) # Check for Homebrew -if test ! $(which brew) && uname === "Darwin" ; then - echo " Installing Homebrew for you." - ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +if uname | grep -q "Darwin" ; then + if test ! $(which brew) ; then + e...
bash
d_bash_23539
--- +++ @@ -4,16 +4,35 @@ BASE_IMAGE=$1 COMPONENT=$2 -docker login -u ${DOCKER_USER} -p "${DOCKER_PASS}" ${REGISTRY} +if [[ "${CI_BUILD_TAG}x" == "x" ]] +then + docker login -u ${DOCKER_DEV_USER} -p "${DOCKER_DEV_PASS}" ${REGISTRY} -IMAGE_URL=${REGISTRY}/${DOCKER_ORG}/${IMAGE_PREFIX}-${COMPONENT} -docker pul...
bash
d_bash_23540
--- +++ @@ -1,2 +1,7 @@ #!/bin/bash +isExistApp=`ps -eaf |grep cp-users-service |grep -v grep| awk '{ print $2; }'` +if [[ -n $isExistApp ]]; then + service cp-users-service stop +fi + service cp-users-service start
bash
d_bash_23541
--- +++ @@ -12,7 +12,7 @@ echo "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.1%2B7/OpenJDK14U-jdk_x64_linux_hotspot_14.0.1_7.tar.gz" ;; java15) - echo "https://download.java.net/java/early_access/jdk15/26/GPL/openjdk-15-ea+26_linux-x64_bin.tar.gz" + echo "https://download...
bash
d_bash_23542
--- +++ @@ -2,7 +2,7 @@ exec 4<data2.i -function f() { +f() { exec 3<data1.i cat <&3 | while read F; do echo $H $F
bash
d_bash_23543
--- +++ @@ -26,7 +26,7 @@ git checkout gh-pages git merge master --commit -m "Merge master into gh-pages" - ./configure --enable-tests + ./configure make doc git add -f doc/
bash
d_bash_23544
--- +++ @@ -8,4 +8,4 @@ filename="odin-$platform-nightly+$now.zip" 7z a "output/$filename" -r "$artifact" -b2 upload-file "$bucket" "$filename" "$filename" +b2 upload-file --noProgress "$bucket" "output/$filename" "$filename"
bash
d_bash_23545
--- +++ @@ -6,4 +6,12 @@ touch .interactive (pecl install -f ssh2 < .interactive) +if grep -Fxq "ssh2" ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini +then + echo "SSH2 extension was already installed. "; +else + echo "SSH2 was not enabled during installation. Enabling it manually"; + echo "extens...
bash
d_bash_23546
--- +++ @@ -34,3 +34,7 @@ pwd fi done + +echo "===============" +pwd +ls -l
bash
d_bash_23547
--- +++ @@ -15,7 +15,7 @@ tmpfile=$(mktemp) # Extended regexs are purposely avoided for Mac OS and Free BSD compatbility. - sed "s/version[[:blank:]]*=[[:blank:]]*[\",'][0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*[\"'][[:blank:]]*,/version=\"${version_new}\",/" < "${git_root}/setup.py" > "${tmpfile}" + sed...
bash
d_bash_23548
--- +++ @@ -3,7 +3,7 @@ set -e manual_stamp_file=target/ci_manual_stamp -manual_stamp=2 # Change this to force a clean build on CI +manual_stamp=3 # Change this to force a clean build on CI if [ -f $manual_stamp_file ]; then if echo "$manual_stamp" | cmp -s $manual_stamp_file -; then
bash
d_bash_23549
--- +++ @@ -8,7 +8,8 @@ rm opendct_0.5.8-1_amd64.deb echo "OpenDCT Install Complete" - echo consumer.dynamic.default=opendct.consumer.MediaServerConsumerImpl >> /etc/opendct/etc/opendct.properties + # Set to use media server consumer, so we don't have to have access to recording location. + echo "consumer.dynam...
bash
d_bash_23550
--- +++ @@ -3,5 +3,6 @@ MINCOVERAGE=93 coverage erase || exit 1 -for i in unit/test_*py ; do PYTHONPATH=.. coverage run -a --source ../faucet $i || exit 1 ; done + +for i in unit/test_*py integration/experimental_api_test_app.py; do PYTHONPATH=.. coverage run -a --source ../faucet $i || exit 1 ; done coverage r...
bash
d_bash_23551
--- +++ @@ -8,7 +8,7 @@ echo "Making the docs for master" mkdir out/master/ cp util/gh-pages/index.html out/master -python ./util/export.py out/master/lints.json +python3 ./util/export.py out/master/lints.json if [[ -n $TAG_NAME ]]; then echo "Save the doc for the current tag ($TAG_NAME) and point current/ t...
bash
d_bash_23552
--- +++ @@ -1,6 +1,6 @@ -case $(uname -s) in - Darwin) alias colorls='ls -G' ;; - *) alias colorls='ls --color=auto' ;; +case $(ls --version 2> /dev/null) in + *GNU*) alias colorls='ls --color=auto' ;; + *) alias colorls='ls -G' ;; esac alias l='colorls -a' alias ll='colorls -la'
bash
d_bash_23553
--- +++ @@ -17,11 +17,25 @@ SOURCE_DIR=`pwd` cd /tmp/bisect_test_build_dir cmake -DCMAKE_INSTALL_PREFIX=/tmp/bisect_test_install \ --DDEFAULT_NO_BINDINGS=ON -DENABLE_tcl=ON -DENABLE_tk=ON \ --DDEFAULT_NO_DEVICES=ON -DPLD_tk=ON -DPLD_xwin=ON \ +-DDEFAULT_NO_BINDINGS=ON \ +-DDEFAULT_NO_DEVICES=ON -DBUILD_TEST=ON -DP...
bash
d_bash_23554
--- +++ @@ -1,12 +1,17 @@ #!/bin/sh # Install a custom ElasticSearch version - https://www.elastic.co/products/elasticsearch # -# You can either add this here, or configure them on the environment tab of your -# project settings. -ELASTICSEARCH_VERSION="1.5.1" -ELASTICSEARCH_PORT="9333" -ELASTICSEARCH_DIR="${HOME}...
bash
d_bash_23555
--- +++ @@ -12,6 +12,7 @@ openssl tmux watch + wget ) brew_install_recipes
bash
d_bash_23556
--- +++ @@ -1,11 +1,20 @@ #!/bin/bash -# Get the current stable version of moose -svn co --quiet https://hpcsc/svn/herd/branches/stable/moose stable-moose +hostname=`hostname -s` -# Merge trunk into the stable version -svn merge https://hpcsc/svn/herd/trunk/moose stable-moose +if [ $hostname == 'helios' ] +then ...
bash
d_bash_23557
--- +++ @@ -4,9 +4,9 @@ sudo python setup.py install echo "[+] Configuring pynessys ..." -echo -n "Nessus server hostname: " +echo -n "Nessus server hostname (scanner.hacme.org): " read NESSUS_SERVER -echo -n "Nessus server port: " +echo -n "Nessus server port (8080): " read NESSUS_PORT echo -n "Username: " r...
bash
d_bash_23558
--- +++ @@ -42,7 +42,7 @@ SOURCE=${SOURCE_DIR}/${SSH_CONFIG} TARGET=${HOME}/.ssh/config - if [ ! -e ${HOME}/.ssh ]; then + if [ ! -d ${HOME}/.ssh ]; then mkdir -p ${HOME}/.ssh chmod 0700 ${HOME}/.ssh fi
bash
d_bash_23559
--- +++ @@ -20,7 +20,7 @@ (git checkout -b ${TEMP_DEPLOY_BRANCH} && cd ../.. && - git filter-branch --subdirectory-filter services/QuillLMS --force HEAD^..HEAD - && git push -f ${DEPLOY_GIT_REMOTE} ${TEMP_DEPLOY_BRANCH}:master) + git filter-branch --subdirectory-filter services/QuillLMS --force HEAD^..HEAD && + ...
bash
d_bash_23560
--- +++ @@ -2,8 +2,8 @@ # External filter binaries to install for testing. -sudo gem install sass -sudo gem install compass +sudo gem install sass --version 3.2.19 +sudo gem install compass --version 0.12.6 sudo gem install less --version 1.2.21 sudo npm install -g less
bash
d_bash_23561
--- +++ @@ -1 +1 @@ -scp target/universal/demschooltools-1.1.zip evan@demschooltools.com:/home/evan/ +rsync -v target/universal/demschooltools-1.1.zip evan@demschooltools.com:/home/evan/
bash
d_bash_23562
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash -echo '[setup] Installing Emacs packages.' +echo '[setup] Installing Emacs packages, if necessary.' emacs -nw install_emacs_packages_notice.txt
bash
d_bash_23563
--- +++ @@ -12,3 +12,4 @@ echo "source $VIRTUAL_ENV/bin/bash-prompt.sh" >> activate echo "export JUPYTER_CONFIG_DIR=$VIRTUAL_ENV/jupyter_profile" >> activate +# TODO(tpaine) setup pre-commit hooks with yapf and isort.
bash
d_bash_23564
--- +++ @@ -5,9 +5,9 @@ # This is partially a workaround for pre Docker 1.11 handling of build args # and partially a better encapsulation of our build process. -if [ "$1" = "freeze" ]; then +if [ "$1" = "FREEZE" ]; then # during releases, freeze requirements - pip install --upgrade --find-links /dist -r ...
bash
d_bash_23565
--- +++ @@ -1,4 +1,6 @@ -# Install boyter/scc, "a very fast accurate code counter with complexity calculations" +# Install boyter/scc, "a very fast accurate code counter with complexity calculations" go install github.com/boyter/scc mv $GOPATH/bin/scc /usr/local/bin/ +# Install cespare/reflex to "Run a command w...
bash
d_bash_23566
--- +++ @@ -14,6 +14,8 @@ alias cddd='cd ../..' alias cdddd='cd ../../..' alias cddddd='cd ../../../..' +alias cds='cd ~/src' +alias cdn='cd ~/notes' function pingbg() { ping -i 60 $1 >/dev/null 2>&1 & }
bash
d_bash_23567
--- +++ @@ -11,8 +11,13 @@ script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" root_dir="$(realpath "$script_dir"/..)" +expected_clang_format_version=6.0 -clang_format=clang-format +if which clang-format-${expected_clang_format_version} > /dev/null ; then + clang_format=clang-format-${expected_cla...
bash
d_bash_23568
--- +++ @@ -26,15 +26,18 @@ mkdir -p "localhost-$(($PORT_BASE + 1))" mkdir -p "localhost-$(($PORT_BASE + 2))" +: PGUSER=${PGUSER:=$USER} + # We leave user, password, host blank to use the defaults (unix socket and # local auth) cat > localhost-$(($PORT_BASE + 1))/database.yaml << EOF name: psycopg2 args: ...
bash
d_bash_23569
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash ## Add HP Management Component Pack Mirror -echo "deb http://downloads.linux.hpe.com/SDR/downloads/MCP/ubuntu trusty/current non-free" | sudo tee /etc/apt/sources.list.d/hpmcp.sources.list +echo "deb http://downloads.linux.hpe.com/SDR/downloads/MCP/ubuntu xenial non-free" | sud...
bash
d_bash_23570
--- +++ @@ -1,6 +1,12 @@ #!/bin/bash DIR=$1 + +if [[ ! -d $DIR ]]; then + echo "Usage: make_paper.sh source_dir" + exit -1 +fi + AUTHOR=`basename $DIR` OUTDIR="output/$AUTHOR"
bash
d_bash_23571
--- +++ @@ -7,7 +7,7 @@ . /etc/profile.d/puppet-agent.sh puppet module install puppet/r10k puppet apply /vagrant/bootstrap.pp -puppet apply -e "include 'profile::puppetserver::install' -> include 'profile::puppetserver::config' ~> service { 'puppetserver': ensure => running, enable => true, }" +puppet apply -e "cl...
bash
d_bash_23572
--- +++ @@ -1,3 +1,4 @@ #!/bin/bash -docker ps -a --no-trunc | grep ${1} | awk '{print $1}' | xargs docker stop +docker ps -a --no-trunc | grep ${1} | awk '{print $1}' | xargs docker stop +docker ps -a --no-trunc | grep ${1} | awk '{print $1}' | xargs docker rm
bash
d_bash_23573
--- +++ @@ -6,6 +6,7 @@ echo "./launcher generate" echo "./launcher build" echo "./launcher run" + echo "./launcher logs" echo "./launcher run [port]" else if [ ${1} = "generate" ] @@ -19,22 +20,28 @@ echo "Docker build in progress" docker build . -t nuitinfo ...
bash
d_bash_23574
--- +++ @@ -21,14 +21,20 @@ PATH="$PATH":"$(pwd)"/pack fixtures="$(realpath cnb-builder/fixtures)" fs3fixtures="$(realpath cnb-builder/fs3-fixtures)" +tinyfixtures="$(realpath cnb-builder/tiny-fixtures)" export PATH export GOMAXPROCS=4 pushd buildpacks-ci/tasks/test-builder - go test -args "$fixtures" + ...
bash
d_bash_23575
--- +++ @@ -1,8 +1,16 @@ #!/bin/bash -BASEDIR=$(dirname $0)/.. +BASEDIR=$(dirname "$0")/.. CONFIG=${SODA_CONFIG:-$BASEDIR/../docs/onramp/services/soda2.conf} -JARFILE=$BASEDIR/store-pg/target/scala-2.10/store-pg-assembly-*.jar -if [ ! -e $JARFILE ]; then - cd $BASEDIR && sbt assembly + +JARS=( $BASEDIR/store-pg/ta...
bash
d_bash_23576
--- +++ @@ -2,9 +2,9 @@ set -eux set -o pipefail -# this repo expects bosh2 to be bosh -ln -s /usr/local/bin/bosh2 /usr/local/bin/bosh source cf-deployment-concourse-tasks/shared-functions setup_bosh_env_vars +trap "pkill -f ssh" EXIT + bosh_update_dns_runtime_config
bash
d_bash_23577
--- +++ @@ -4,7 +4,7 @@ ("homebrew") brew install qt qwt ;; ("macports") - echo "WARNING: install_prereqs macports not implemented for this module" ;; + port install qt4-mac qwt ;; ("ubuntu") apt-get install python-dev libqt4-dev libqwt-dev ;; ("cygwin")
bash
d_bash_23578
--- +++ @@ -7,6 +7,6 @@ DM_MANDRILL_API_KEY=somekey \ DM_PASSWORD_SECRET_KEY=verySecretKey \ DM_S3_DOCUMENT_BUCKET=admin-frontend-dev-documents \ -DM_SEARCH_API_AUTH_TOKEN=CHbDLQtMvKoAuAtT8GM6vrdGGC \ -DM_SEARCH_API_URL=https://preview-search-api.development.digitalmarketplace.service.gov.uk +DM_SEARCH_API_AUTH_TO...
bash
d_bash_23579
--- +++ @@ -3,7 +3,7 @@ set -e # test -./node_modules/.bin/karma start --single-run --browsers PhantomJS --reporters dots +./node_modules/karma/bin/karma start --single-run --browsers PhantomJS --reporters dots # hint grunt jshint
bash
d_bash_23580
--- +++ @@ -6,9 +6,9 @@ export FLOW_TOKEN=${OVERRIDE_FLOW_TOKEN:-$FLOW_TOKEN} echo "NODE_ENV is $NODE_ENV" -echo "AWS_ACCESS_KEY_ID is ${AWS_ACCESS_KEY_ID:(-4)}" -echo "AWS_SECRET_ACCESS_KEY is ${AWS_SECRET_ACCESS_KEY:(-4)}" -echo "FLOW_TOKEN is ${FLOW_TOKEN:(-4)}" +echo "AWS_ACCESS_KEY_ID ends ${AWS_ACCESS_KEY_I...
bash
d_bash_23581
--- +++ @@ -24,3 +24,6 @@ # ############################ hindsight_cli $BASE_DIR/hindsight/etc/hindsight.cfg + +cd $BASE_DIR/report +lua report.lua
bash
d_bash_23582
--- +++ @@ -26,6 +26,10 @@ pandoc tmux unity-tweak-tool + redshift + redshift-gtk + silversearcher-ag + xsel # Languages/Frameworks nginx
bash
d_bash_23583
--- +++ @@ -19,7 +19,7 @@ if [ "$REMOTE_NAME" == '' ] then echo "Creating remote 'upstream-kresus'" - git remote add upstream-kresus $TARGET_REPO -f + git remote add upstream-kresus $TARGET_REPO REMOTE_NAME='upstream-kresus' fi
bash
d_bash_23584
--- +++ @@ -16,4 +16,4 @@ export CHPL_QTHREAD_MORE_CFG_OPTIONS=--enable-valgrind fi -nightly_args="-valgrind -no-futures -suppress Suppressions/valgrind.suppress -parnodefile $CWD/../../test/Nodes/CHAP07" +nightly_args="-valgrind -no-futures -suppress Suppressions/valgrind.suppress -parnodefile $CWD/../../tes...
bash
d_bash_23585
--- +++ @@ -23,8 +23,17 @@ # disable the builtin prompt since it's managed by ZSH export VIRTUAL_ENV_DISABLE_PROMPT=1 +# NOTE: for convenience since prezto sets the pyenv PATH +export PYENV_ROOT="$HOME/.pyenv" + # NOTE: prezto provides 'pyenv init' already eval "$(pyenv virtualenv-init -)" +# virtualenv alias...
bash
d_bash_23586
--- +++ @@ -10,6 +10,6 @@ --silent \ --request GET \ -H "Content-Type: application/json" \ - $base_url/admin/gamestate \ + $base_url/gamestate \ | python -m json.tool "
bash
d_bash_23587
--- +++ @@ -2,31 +2,52 @@ set -e +VERSION=$(cat package.json | jq --raw-output .version) +PKG_NAME=$(cat package.json | jq --raw-output .name) BRANCH_NAME='production' + +echo "About to release ${PKG_NAME} - v${VERSION} to ${BRANCH_NAME} branch!" + +cleanup() { + set +e + echo "Cleaning up" + rm -rf package ...
bash
d_bash_23588
--- +++ @@ -2,11 +2,11 @@ if [ "$TRAVIS_REPO_SLUG" == "testinfected/molecule" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then if [[ $(gradle -q version) != *SNAPSHOT* ]]; then - echo 'Travis will only publish snapshots. instance.' + echo 'Travis will only publish snaps...
bash
d_bash_23589
--- +++ @@ -1 +1,2 @@ -javapackager -deploy -native -outdir package -outfile Nightcode -srcdir . -srcfiles target/project.jar -appclass nightcode.core -name "Nightcode" -title "Nightcode" -BappVersion=$1 +javapackager -deploy -native rpm -outdir package -outfile Nightcode -srcdir target -appclass nightcode.core -name...
bash
d_bash_23590
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash TEMPLATES="./docker-templates" -PAYMENTS="./payments" +PAYMENTS="./psp" MERCHANT="./merchant" # Create the Dockerfile from node dockerfile base template for payments @@ -9,12 +9,7 @@ echo "Generated Dockerfile for payments API." # Copies the node shared configuration for ...
bash
d_bash_23591
--- +++ @@ -12,23 +12,23 @@ # Count the number of lines before the output text starts # commandLineCount FILE commandLineCount() { - local n state - n=0 - state="init" - while IFS="" read -r p || [ -n "$p" ]; do - case $state in - init) - if [[ $p =~ ^//.*\\$ ]]; then state="comment" - elif [[ $p =~ ^//.*...
bash
d_bash_23592
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash # Move and Upload -COMMIT_SHA=$(git rev-parse HEAD) +COMMIT_SHA=$(git describe --dirty) TARGET_DIR=/var/www/wordpress/APMPlanner2/daily TARGET_SUBDIR=${BUILD_ID:0:10} @@ -8,7 +8,7 @@ mkdir ${TARGET_DIR}/${TARGET_SUBDIR}/ fi -mv apmplanner2-installer-win32.exe ${TARGET_D...
bash
d_bash_23593
--- +++ @@ -1,15 +1,29 @@ #!/bin/sh + +#----------------------------- +# +# General Update of Packages +# +#------------------------------ yum update -yum install libicu -yum install libicu-devel -yum install git -yum install gcc -yum install gcc-c++ -yum install make -yum install expect -yum install xinetd -yum i...
bash
d_bash_23594
--- +++ @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh # Re-creates the banner.h file for each compilation run
bash
d_bash_23595
--- +++ @@ -13,7 +13,7 @@ elif [[ "$target_platform" == osx-* ]]; then echo "************ DEBUG **************" echo "******* conda list ********" - conda list + conda list -p $PREFIX echo "******* nm lapack ********" nm $PREFIX/lib/liblapack.dylib | grep clagge
bash
d_bash_23596
--- +++ @@ -27,6 +27,9 @@ echo "####### installing git" brew install git +echo "####### homebrewing the world" +bash ~/.brew + echo "####### python" pip install -U pip pip install -r ~/.requirements.txt
bash
d_bash_23597
--- +++ @@ -32,7 +32,7 @@ fi fi -$PWD/scripts/waitForkafka.js +$PWD/scripts/waitForKafka.js echo eval "${testCommand} ${extraArgs}"
bash
d_bash_23598
--- +++ @@ -9,7 +9,7 @@ # Extraction of similarity search report extract_similarity_search_report_dir=$tool_dir/extract/extract_similarity_search_report -sudo docker build -t asaim/extract-similarity-search-report $extract_similarity_search_report_dir +docker build -t asaim/extract-similarity-search-report $extra...
bash
d_bash_23599
--- +++ @@ -2,4 +2,4 @@ API_URL="https://$TSI_API_HOST/api/v1/meta" -curl -1 -s -X GET -H "X-API-KEY: $TSI_API_KEY" "$API_URL" | jq . +curl -1 -k -s -X GET -H "X-API-KEY: $TSI_API_KEY" "$API_URL" | jq .
bash