document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_12900
--- +++ @@ -6,11 +6,19 @@ specdir=${basedir}/openstack/ WORKSPACE=${WORKSPACE:-$basedir} +OUTPUTDIR=$WORKSPACE/logs/ +specstyles="suse fedora" + +mkdir -p $OUTPUTDIR + +# clean up output dir +for specstyle in $specstyles; do + rm -f $OUTPUTDIR/*.${specstyle} +done echo "run renderspec over specfiles from ${...
bash
d_bash_12901
--- +++ @@ -3,6 +3,8 @@ cd docs # Fix sphinx to ignore non-local image warnings +filename="$(find /home/travis/virtualenv/ -name environment.py)" +sed -e '/nonlocal\ image\ URI\ found/ s/^/#/' -i ${filename} grep -r "nonlocal image URI found" /home/travis/virtualenv/* # Test documentation
bash
d_bash_12902
--- +++ @@ -6,7 +6,7 @@ __fzfz() { local cmd="z -l | awk '{print \$2}'" eval "$cmd" | fzf -m | while read item; do - printf '%q ' "$item" + printf 'cd %q ' "$item" done echo }
bash
d_bash_12903
--- +++ @@ -1,10 +1,10 @@ #! /bin/sh -files=`find . -name '*.h' | cut -d / -f 2- | xargs` +files=`find . -name '*.h' | grep -v uinet | cut -d / -f 2- | xargs` for _file in ${files}; do _guard=`echo ${_file} | tr a-z/. A-Z__` - ( echo '#ifndef '${_guard} ; echo '#define '${_guard} ; ( cat ${_file} | tail -n +3...
bash
d_bash_12904
--- +++ @@ -6,10 +6,15 @@ NUM_PINS=$(cat hal-output | egrep $(cat PIN_NAME_REGEX) | wc -l) if [ $RESULT -ne $(cat RESULT) ]; then + echo "Test exited with status $RESULT; output:" + cat hal-output exit 1 fi if [ "$NUM_PINS" -ne $(cat NUM_PINS) ]; then + echo "Error: number of pins found != numb...
bash
d_bash_12905
--- +++ @@ -1,43 +1,9 @@ #! bin/bash -declare -a uploadhosts=($DOC_HOST1 $DOC_HOST2) +git clone https://$GH_TOKEN_FOR_HTTPS@github.com/KiiPlatform/thing-if-AndroidSDK.git +cd thing-if-AndroidSDK +git checkout gh-pages && git config user.email 'satoshi.kumano@kii.com' && git config user.name 'satoshi kumano' +git r...
bash
d_bash_12906
--- +++ @@ -11,7 +11,10 @@ cd build # Pass explicit paths to the prefix for each dependency. -cmake .. # -DCMAKE_BUILD_TYPE=RelWithDebInfo +cmake \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DCMAKE_INSTALL_LIBDIR=lib \ + .. make -j"${CPU_COUNT}"
bash
d_bash_12907
--- +++ @@ -4,15 +4,17 @@ source "$TOP_DIR/config/paths" source "$CONFIG_DIR/credentials" source "$LIB_DIR/functions.guest" -source "$CONFIG_DIR/demo-openstackrc.sh" exec_logfile indicate_current_auto #------------------------------------------------------------------------------ # Create tenant network -#...
bash
d_bash_12908
--- +++ @@ -16,6 +16,7 @@ -e SAKURACLOUD_ACCESS_TOKEN_SECRET \ -e SAKURACLOUD_ZONE \ -e SAKURACLOUD_TRACE_MODE \ + -e CURRENT_VERSION \ -e TF_LOG \ -e TESTARGS \ $DOCKER_IMAGE_NAME make "$@"
bash
d_bash_12909
--- +++ @@ -15,7 +15,7 @@ RUNNER=/home/pi/RoboticLightBallet/pi-setup/pi-run-code.sh chmod +x $RUNNER sed "/exit 0/i \ $RUNNER" \ - < $RCLOCAL > /home/pi/rc.local.new + < $RCLOCAL > /home/pi/rc.local.new & mv /home/pi/rc.local.new $RCLOCAL
bash
d_bash_12910
--- +++ @@ -16,6 +16,7 @@ changes=$(git diff HEAD..FETCH_HEAD) if [ "$changes" != "" ] ; then git pull --quiet + ~/.dotfiles/scripts/chmod-private-keys.sh echo 'Dotfiles updated' fi }
bash
d_bash_12911
--- +++ @@ -12,7 +12,7 @@ react-addons-create-fragment@$REACT \ @types/react -if (( $(echo "$REACT >= 15.5" | bc -l) )); then +if node_modules/.bin/semver -r '>= 15.5' "$REACT.0"; then npm install create-react-class@$REACT \ prop-types@15 \ react-test-renderer@15
bash
d_bash_12912
--- +++ @@ -12,4 +12,4 @@ cat $tmpdir/*.txt | tools/dns_report.pl $tmpdir/hosts.csv -grep $tmpdir/hosts.csv -e "^.*AKAMAI.*$" > $tmpdir/still_to_migrate.csv +grep $tmpdir/hosts.csv -e "^.*AKAMAI.*$" > $tmpdir/still_to_migrate_to_fastly_cdn.csv
bash
d_bash_12913
--- +++ @@ -8,8 +8,11 @@ exit 1 fi -# Create virtual environment -python3 -m venv venv +if [ ! -d venv ]; then + # Create virtual environment + echo "Creating python venv" + python3 -m venv venv +fi # Upgrade pip ./venv/bin/pip install pip --upgrade @@ -22,7 +25,7 @@ ./venv/bin/pip install f...
bash
d_bash_12914
--- +++ @@ -14,7 +14,7 @@ sudo su -c "echo $FQDN > /etc/hostname" # Update the irods user's environment - sed -i "s|\(.*irods_host.*\)$oldFQDN\(.*\)|\1$FQDN\2|g" ~irods/.irods/irods_environment.json + sudo -u irods bash -c 'sed -i "s|\(.*irods_host.*\)'$oldFQDN'\(.*\)|\1'$FQDN'\2|g" ~irods/.irods/irods_en...
bash
d_bash_12915
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash mkdir app/cache app/logs app/db -sudo setfacl -R -m u:www-data:rwx -m u:marian0:rwx app/cache app/logs -sudo setfacl -dR -m u:www-data:rwx -m u:marian0:rwx app/cache app/logs +sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs +sudo setfacl -dR -m u:www-data...
bash
d_bash_12916
--- +++ @@ -4,4 +4,6 @@ OMNI_MPI_CC="MPI_CC=cc" OMNI_MPI_FC="MPI_FC=ftn" -ADDITONAL_OPTIONS="-DOMNI_MPI_CC=$OMNI_MPI_CC -DOMNI_MPI_FC=$OMNI_MPI_FC" + +# Fix problem finding libxml2 +OMNI_CONF="--with-libxml2-lib=/usr/lib64/ --with-libxml2-include=/usr/include/"
bash
d_bash_12917
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash echo "Backupping the current theme ..." -BACKUP_THEME_PATH="~/.terminal-theme.bkp.xml"; -if [ -f = $BACKUP_THEME_PATH ] +BACKUP_THEME_PATH="/home/$USER/.terminal-theme.bkp.xml"; +if [ -f $BACKUP_THEME_PATH ] then echo "File $BACKUP_THEME_PATH exists. Please delete it before...
bash
d_bash_12918
--- +++ @@ -20,6 +20,7 @@ yum install -y createrepo yum install -y python-twisted python-characteristic python-eliot pytz python-ipaddr yum install -y python-cffi python-netifaces python-treq +yum install -y libffi-devel yum install -y python-nomenclature # Cleanup
bash
d_bash_12919
--- +++ @@ -21,5 +21,5 @@ /opt/vespa/bin/vespa-start-configserver /opt/vespa/bin/vespa-start-services -# Sleep until killed -tail -f /dev/null +# Outpu log until killed +/opt/vespa/bin/logfmt -f
bash
d_bash_12920
--- +++ @@ -5,7 +5,7 @@ FREETDS_VERSION=1.00.21 -wget https://fossies.org/linux/privat/freetds-FREETDS_VERSION.tar.gz +wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-$FREETDS_VERSION.tar.gz tar -xzf freetds-$FREETDS_VERSION.tar.gz cd freetds-$FREETDS_VERSION ./configure --prefix=/opt/local \
bash
d_bash_12921
--- +++ @@ -6,10 +6,22 @@ ############## setopt extended_glob +if [[ -f /usr/local/bin/gsed ]] +then + SED="gsed" +else + SED="sed" +fi for i in *~LICENSE~README do echo $i echo "---------------------" - cat $i | sed -n '5,/##############/{s/# //g;s/#//g;p}' | grep -v "XXX" + echo $i | egrep -q "\.c$" + i...
bash
d_bash_12922
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -mkdir -p ${PREFIX}/x86_64-conda_cos6-linux-gnu/sysroot -pushd ${PREFIX}/x86_64-conda_cos6-linux-gnu/sysroot > /dev/null 2>&1 +mkdir -p ${PREFIX}/x86_64-conda_cos6-linux-gnu/sysroot/usr +pushd ${PREFIX}/x86_64-conda_cos6-linux-gnu/sysroot/usr > /dev/null 2>&1 cp -Rf "${SRC_DIR}...
bash
d_bash_12923
--- +++ @@ -7,6 +7,6 @@ logadm -w '/var/log/clamav/clamd.log' -A 7d -p 1d -c -N -o clamav -g clamav -m 640 logadm -w '/var/log/spamd/spamd.log' -A 7d -p 1d -c -N -o spamd -g spamd -m 640 -logadm -w '/var/log/dovecot/main' -A 7d -p 1d -c -N -o dovecot -g dovecotnull -m 640 -logadm -w '/var/log/dovecot/info' ...
bash
d_bash_12924
--- +++ @@ -11,6 +11,7 @@ # Assume we are running in the chef-bcpc directory +sudo bash -c 'EDITOR=true knife client create $(hostname -f) > /etc/chef/client.pem' knife actor map knife group add actor admins $(hostname -f)
bash
d_bash_12925
--- +++ @@ -4,4 +4,7 @@ GRANT_TYPE="authorization_code" REDIRECT_URI="https://sakirtemel.github.io/MMM-alexa/" -curl -X POST --data "grant_type=${GRANT_TYPE}&code=${CODE}&client_id=${CLIENT_ID}&client_secret=${CLIENT_SECRET}&redirect_uri=${REDIRECT_URI}" https://api.amazon.com/auth/o2/token +curl \ + -X POST \ +...
bash
d_bash_12926
--- +++ @@ -1,3 +1,4 @@ # https://github.com/sindresorhus/pure -autoload -U promptinit && promptinit +autoload -U promptinit +promptinit prompt pure
bash
d_bash_12927
--- +++ @@ -4,5 +4,5 @@ zstyle ':autocomplete:*' magic off zstyle ':autocomplete:*' fuzzy-search off zstyle ':autocomplete:*' key-binding off -# zstyle ':autocomplete:*' config off +zstyle ':autocomplete:*' config off
bash
d_bash_12928
--- +++ @@ -9,19 +9,17 @@ case `uname -s` in Darwin) - LIBTOOLIZE=glibtoolize - ;; + LIBTOOLIZE=glibtoolize + ;; FreeBSD) - LIBTOOLIZE=libtoolize - if [ -d /usr/local/gnu-autotools/bin ] ; then - PATH=/usr/local/gnu-autotools/bin:${PATH} - export PATH - FIX_BROKEN_FREEBSD_PORTS="-I /usr/local/share/aclo...
bash
d_bash_12929
--- +++ @@ -8,6 +8,11 @@ if [ $# -ne 2 ]; then echo "usage: `basename $0` <dir> <part>" + echo "you should have following files:" + echo " <dir>/<part>-decoded.out" + echo " <dir>/<part>-decoded-text.out" + echo " <dir>/<part>-groundtruth-characters.txt" + echo " <dir>/<part>-groundtru...
bash
d_bash_12930
--- +++ @@ -32,7 +32,7 @@ brew cask install google-chrome brew cask install firefox brew cask install sublime-text -brew cask install github +brew cask install github-desktop brew cask install iterm2 brew cask install skype brew cask install slack
bash
d_bash_12931
--- +++ @@ -4,5 +4,5 @@ echo "NULL=" > $FILE echo "EXTRA_DIST = \\" >> $FILE -find . \( -name "*.png" -or -name "*.svg" \) -print | awk '{ print $$0, " \\" }' >> $FILE +find . \( -name "*.png" -or -name "*.svg" \) -print | awk '{ print $$0, " \\" }' | sort >> $FILE echo "\$(NULL)" >> $FILE
bash
d_bash_12932
--- +++ @@ -9,6 +9,9 @@ shift fi test "x$PYTHON" = x && PYTHON=python +echo "$(which $PYTHON) --version" +$PYTHON --version 2>&1 +echo # Setup environment DIR=`dirname "$0"`
bash
d_bash_12933
--- +++ @@ -1,3 +1,6 @@ +# Install Fira Mono as needed by pillar on travis +# Follow instructions on the following gist: https://gist.github.com/muammar/a5ffb635eb7f532346a8e777b847f8a7 + if [[ ${TRAVIS_OS_NAME} == "osx" ]]; then brew update; brew install basictex; @@ -9,6 +12,7 @@ wget "http://www.carroi...
bash
d_bash_12934
--- +++ @@ -5,3 +5,10 @@ # Loading Apache2 ENV variables source /etc/apache2/envvars fi + +# NOTE(pbourke): httpd will not clean up after itself in some cases which +# results in the container not being able to restart. Unconfirmed if this +# happens on Ubuntu. (bug #1489676) +if [[ "${KOLLA_BASE_DISTRO}" ...
bash
d_bash_12935
--- +++ @@ -9,10 +9,11 @@ git config user.name "Travis Bot" git add . - git commit -m "Deploying to GitHub Pages" + git commit -m "Deploy to GitHub Pages" git push --force --quiet "https://${GHTOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1 ) - git commit -m "Deployed to GitHub Pages...
bash
d_bash_12936
--- +++ @@ -21,7 +21,7 @@ "${SECURITY}" set-keychain-settings -t 1200 echo "Setting permissions for keychain..." -"${SECURITY}" set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "${NIGHTLY_KEYCHAIN_PASSPHRASE}" "${KEYCHAIN}" +"${SECURITY}" -q set-key-partition-list -S apple-tool:,apple:,codesign: -s -k...
bash
d_bash_12937
--- +++ @@ -2,4 +2,22 @@ source `rospack find ros_qml`/scripts/qml_env.sh -qtcreator $@ +## Following platform detection snipped adopted from ROS setup.sh +# detect if running on Darwin platform +_UNAME=`uname -s` +_IS_DARWIN=0 +if [ "$_UNAME" = "Darwin" ]; then + _IS_DARWIN=1 +fi +unset _UNAME + +if [ $_IS_D...
bash
d_bash_12938
--- +++ @@ -22,7 +22,7 @@ ${SH_DIR}/build_images.sh ${SH_DIR}/tag_image.sh -if [ "${1:-}" == '--build-only' ]; then +if [ "${1:-}" == '--build-only' ] || [ "${1:-}" == '-b' ] ; then exit 0 fi ${SH_DIR}/tear_down.sh
bash
d_bash_12939
--- +++ @@ -10,6 +10,7 @@ -Djetbrains.youtrack.licenseName="$YOUTRACK_LICENSE_USER_NAME" \ -Djetbrains.youtrack.licenseKey=$YOUTRACK_LICENSE_KEY \ -Djetbrains.youtrack.disableBrowser=true \ + -Djava.security.egd=/dev/zrandom \ -jar /opt/Youtrack/youtrack-6.5.16367.jar 8080 echo "YouTrack has...
bash
d_bash_12940
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash docker-machine create \ --driver=amazonec2 \ - --amazonec2-ami=ami-3f061b45 \ + --amazonec2-ami=ami-03ed1c12a1dd84320 \ --amazonec2-device-name=/dev/xvda \ --amazonec2-ssh-user=core \ bowser
bash
d_bash_12941
--- +++ @@ -33,10 +33,7 @@ else git clone https://github.com/CESNET/libyang.git fi -cd libyang ; -#remove remove #include <endian.h> on OS X -sed -i .bak 's/\#include <endian.h>//g' src/tree_schema.h -mkdir build ; cd build +cd libyang ; mkdir build ; cd build cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_BUILD_TES...
bash
d_bash_12942
--- +++ @@ -21,6 +21,9 @@ alias diff="diff --unified" which colordiff >/dev/null && alias diff="colordiff --unified" +# .. : 上位ディレクトリへ cd する +alias ..="cd .." + # rename : zmv ベースのリネームコマンド autoload -Uz zmv alias rename="noglob zmv -W"
bash
d_bash_12943
--- +++ @@ -39,6 +39,3 @@ # Generate self signed ssl certificate from csr via OpenSSL openssl x509 -in ${DESTINATION}/${FILENAME}.csr -out ${DESTINATION}/${FILENAME}.crt -req \ -signkey ${DESTINATION}/${FILENAME}.key -days 128 - -# Create one PEM file which contains certificate and key -cat ${DESTINAT...
bash
d_bash_12944
--- +++ @@ -8,4 +8,5 @@ # Build `router` and `draft-router` cd "$org_path/router" -make +GOPATH=/var/govuk/gopath make +GOPATH=/var/govuk/gopath BINARY=draft-router make
bash
d_bash_12945
--- +++ @@ -23,7 +23,7 @@ gcl "$p" cd "$p" fi - for v in py3 py2; done + for v in py3 py2; do pyenv global "$v" if [[ -r requirements.txt ]]; then pip install -r requirements.txt >& /dev/null
bash
d_bash_12946
--- +++ @@ -4,5 +4,5 @@ coverage run --omit textx/six.py --source textx -m py.test tests/functional || exit 1 coverage report --fail-under 90 || exit 1 # Run this to generate html report -# coverage html --omit textx/six.py --directory=coverage +# coverage html --directory=coverage flake8 || exit 1
bash
d_bash_12947
--- +++ @@ -29,3 +29,5 @@ docker commit "${CONTAINER_ID}" "${IMAGE_NAME}" # Push to ECR so we can download later docker push "${IMAGE_NAME}" +docker rmi "${IMAGE_NAME}" +docker rm "${CONTAINER_ID}"
bash
d_bash_12948
--- +++ @@ -4,5 +4,5 @@ jdk() { rm -f "$jdk_ln" - ln -s "$(/usr/libexec/java_home -v 1.$1)" "$jdk_ln" + ln -s "$(/usr/libexec/java_home -v $1)" "$jdk_ln" }
bash
d_bash_12949
--- +++ @@ -4,4 +4,4 @@ VENV_DIR=${VENV_NAME:-/../.venv} TOOLS=${TOOLS_PATH} VENV=${VENV:-${VENV_PATH}/${VENV_DIR}} -source ${VENV}/bin/activate && "$@" +. ${VENV}/bin/activate && "$@"
bash
d_bash_12950
--- +++ @@ -10,7 +10,7 @@ } function env_install_reqs { [[ -e python_env ]] || env_create - python_env/bin/wheel install --wheel-dir wheelhouse -r "$1" + python_env/bin/pip install --use-wheel --no-index --find-links=wheelhouse -r "$1" } function pythondeps { env_install_reqs requirements.txt
bash
d_bash_12951
--- +++ @@ -4,9 +4,9 @@ pkg_upstream_url=https://github.com/kubernetes/kubernetes pkg_license=('Apache-2.0') pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" -pkg_version=1.8.3 +pkg_version=1.9.6 pkg_source=https://github.com/kubernetes/kubernetes/archive/v${pkg_version}.tar.gz -pkg_shasum=8ab7e41126d...
bash
d_bash_12952
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash echo "Starging coverage analysis" if [[ $(npm run coverage-check) ]]
bash
d_bash_12953
--- +++ @@ -10,7 +10,7 @@ source ~/.bash_profile; command cd; printHeader "Update brew formula"; - brew update; brew upgrade --all; brew cleanup; brew doctor; + brew update; brew upgrade; brew cleanup; brew doctor; printHeader "Update npm packages"; npm updat...
bash
d_bash_12954
--- +++ @@ -17,6 +17,7 @@ cd .. git clone https://github.com/ryanralph/Piper.git mv -f Python-Thermal-Printer/Adafruit_Thermal.py Piper/ +sed -e "s/import Image/from PIL import Image/g" -i.backup Piper/Adafruit_Thermal.py git clone https://github.com/piperwallet/vanitygen.git cd vanitygen/ make
bash
d_bash_12955
--- +++ @@ -5,9 +5,15 @@ # When run on Travis CI, env var TRAVIS_PULL_REQUEST either contains PR number (for PR builds) or "false" (for push builds). # Locally this env var is not set. Test: if variable is not empty and is not equal "false" -if [ ! -z "$TRAVIS_PULL_REQUEST" ] && [ "${TRAVIS_PULL_REQUEST}" != "fal...
bash
d_bash_12956
--- +++ @@ -2,17 +2,25 @@ # Script to zip up just the wagtail content from the database, for use locally. -cd $HOME -dumpdir=marco_cms_dump-`date -I` -mkdir $dumpdir +source $HOME/env/marco_portal2/bin/activate + +dumpfile=marco_cms_dump-`date -I`.json + +# Apps are dumped in the order they appear here. +apps="a...
bash
d_bash_12957
--- +++ @@ -2,18 +2,16 @@ set -e -flags=() +if which xcrun &>/dev/null; then + flags=(xcrun -sdk macosx g++) + flags+=(-mmacosx-version-min=10.4) -sdk=/Developer/SDKs/MacOSX10.4u.sdk -if [[ -e $sdk ]]; then - flags+=(-mmacosx-version-min=10.4 -isysroot "$sdk") + for arch in i386 x86_64; do + ...
bash
d_bash_12958
--- +++ @@ -12,8 +12,11 @@ development) SETTINGS="config.DevelopmentConfig" ;; - test) - SETTINGS="config.TestConfig" + preview) + SETTINGS="config.PreviewConfig" + ;; + preproduction) + SETTINGS="config.PreProductionConfig" ;; production) SETTINGS="config.ProductionConfig"
bash
d_bash_12959
--- +++ @@ -6,7 +6,7 @@ puts "Creating run script for #{mainjar}." f = File.new('./run.sh', 'w+') f.chmod(0744) - f.puts "java -jar #{mainjar} $*" + f.puts "export LANG=en_US.utf8\njava -jar #{mainjar} $*" f.close puts "Creating log file" log = `git log -1 --pretty="%H"`
bash
d_bash_12960
--- +++ @@ -1,4 +1,15 @@ -#!/bin/bash -echo "Start placement at ""$(date)"" ..." >> /var/log/placement -java -jar /placement/target/placement-0.0.1-SNAPSHOT-jar-with-dependencies.jar >> /var/log/placement -echo "Stop placement at ""$(date)"" ..." >> /var/log/placement +#!/usr/bin/env bash +# http://stackoverflow.com/...
bash
d_bash_12961
--- +++ @@ -8,5 +8,6 @@ GRAILS_HOME="$HOME/.gvm/grails/current" GRIFFON_HOME="$HOME/.gvm/griffon/current" GRADLE_HOME="$HOME/.gvm/gradle/current" +VERTX_HOME="$HOME/.gvm/vert.x/current" -export PATH="$GROOVY_HOME/bin:$GRAILS_HOME/bin:$GRIFFON_HOME/bin:$GRADLE_HOME/bin:$PATH" +export PATH="$GROOVY_HOME/bin:$GRAIL...
bash
d_bash_12962
--- +++ @@ -20,7 +20,7 @@ echo "### Building nvim to get the complete runtime folder" rm -rf /tmp/nvim -make CMAKE_FLAGS="-DCUSTOM_UI=0 -DCMAKE_INSTALL_PREFIX=/tmp/nvim" install +make CFLAGS='-mmacosx-version-min=10.10' MACOSX_DEPLOYMENT_TARGET=10.10 CMAKE_FLAGS="-DCUSTOM_UI=0 -DCMAKE_INSTALL_PREFIX=/tmp/nvim" in...
bash
d_bash_12963
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -git clone https://github.com/cfpb/regulations-core.git +git clone https://github.com/18f/regulations-core.git cd regulations-core pip install -r requirements.txt
bash
d_bash_12964
--- +++ @@ -1,16 +1,13 @@ #!/bin/bash -# Start Xvfb if it is not running -if [ ! -f /tmp/.X0-lock ]; then - Xvfb :0 -screen 0 1366x768x24 2>/dev/null & -fi - -# Start Selenium server if it is not running -ps cax | grep httpd > /dev/null -if [ $? -ne 0 ]; then - nohup xvfb-run java -jar src/tests/features/selenium...
bash
d_bash_12965
--- +++ @@ -1,7 +1,8 @@ #!/usr/bin/env bash -echo "Inject Google Maps API Keys" -pwd - +echo "Replace $(SolutionDir) to .. in .csproj" perl -pi -e 's/\$\(SolutionDir\)/../g' ./XFGoogleMapSample.Droid.csproj perl -pi -e 's/\$\(SolutionDir\)/../g' ../XFGoogleMapSample/XFGoogleMapSample.csproj + +echo "Inject Googl...
bash
d_bash_12966
--- +++ @@ -21,4 +21,7 @@ mas install 412529613 # Cinch mas install 409203825 # Numbers mas install 549083868 # Display Menu +mas install 1549308269 # OctoLinker +mas install 1457450145 # Octotree +mas install 1289197285 # MindNode echo " ------------ END ------------"
bash
d_bash_12967
--- +++ @@ -6,7 +6,6 @@ } export BAT_PAGER=less export GIT_PAGER=delta - export BAT_THEME=base16 fi isinpath colordiff || return 0
bash
d_bash_12968
--- +++ @@ -24,7 +24,7 @@ echo "=====> Libcore version : $LIB_VERSION" echo "======= Pushing to S3 ==========" - cd jar + cd artifact ls -la aws s3 sync ./ s3://ledger-lib-ledger-core/$LIB_VERSION/ --acl public-read --exclude "*" --include "*.jar" && \ aws s3 ls s3://ledger-lib-ledger-core/$LIB_VER...
bash
d_bash_12969
--- +++ @@ -1,6 +1,3 @@ #!/bin/zsh PURE_CMD_MAX_EXEC_TIME=1 PURE_PROMPT_SYMBOL=λ - -antibody bundle mafredri/zsh-async -antibody bundle sindresorhus/pure
bash
d_bash_12970
--- +++ @@ -24,4 +24,4 @@ yum -y install apachetop atop dstat sysstat glances iotop smartmontools #Install ag -rpm -Uvhi http://swiftsignal.com/packages/centos/6/x86_64/the-silver-searcher-0.14-1.el6.x86_64.rpm +#rpm -Uvhi http://swiftsignal.com/packages/centos/6/x86_64/the-silver-searcher-0.14-1.el6.x86_64.rpm
bash
d_bash_12971
--- +++ @@ -1,17 +1,18 @@ CUR_DIR=`pwd` -INSTALL_DIR="$HOME/.dsted" -NAME_SOURCE="Source" #this is redundant -#UPDATE=true #if set to true it will attempt to grab the latest version and build the update. not going to work on it +NAME_SOURCE="Source" +NAME_BUILD="Build" -echo "This is the Linux install version." -e...
bash
d_bash_12972
--- +++ @@ -1,4 +1,7 @@ -#!/usr/bin/env bash +#!/usr/local/bin/bash + +# Not strictly, but my .bash_profile does require it +if ((BASH_VERSINFO[0] < 4)); then echo "Sorry, you need at least bash-4.0 to run this script." >&2; exit 1; fi . /Users/mnewman/.bash_profile > /dev/null
bash
d_bash_12973
--- +++ @@ -2,7 +2,7 @@ # Heh...havent written one of these in ages - and im not talking about single wrappers. echo "=> Self-setup" ME=$(dirname "$0") -URL="http://drag0ninstaller.tk/deskshell-bin.tgz" +URL="http://deskshell.org/?download=mac-dev" cd $ME if [ ! -f "deskshell-bin.tgz" ]; then echo "=> Download...
bash
d_bash_12974
--- +++ @@ -6,14 +6,6 @@ include string.validator.StringValidator MathUtil(){ - if [[ ! $(StringValidator isNum ${2}) ]]; then - MathException notANumberException ${2} - fi - - if [[ ! $(StringValidator isNum ${3}) ]]; then - MathException notANumberException ${3} - fi - decrement(){ difference ${1} 1 } ...
bash
d_bash_12975
--- +++ @@ -2,13 +2,13 @@ case $1 in '') if [ -f knapsack_rspec_report.json ]; then - DISABLE_SPRING=1 bundle exec rake knapsack:rspec + DISABLE_SPRING=1 bundle exec rake "knapsack:rspec[--fail-fast]" else - DISABLE_SPRING=1 bundle exec parallel_rspec spec + DISABLE_S...
bash
d_bash_12976
--- +++ @@ -1,3 +1,3 @@ #!/bin/sh -gcloud compute instances create homebase --image-family ubuntu-homebase --disk name=hc-sourcefiles-uc1b,mode=rw --machine-type=g1-small +gcloud compute instances create homebase --image-family ubuntu-homebase --disk name=hc-sourcefiles-uc1b,mode=rw --machine-type=f1-micro
bash
d_bash_12977
--- +++ @@ -2,6 +2,6 @@ set -e HOST_IP=$1 -docker run --name $HOSTNAME -p 9999:2375 -d swarm \ +docker run --name swarm -p 9999:2375 -d swarm \ manage \ - consul://${HOST_IP}:8500/demo01 + consul://${HOST_IP}:8500
bash
d_bash_12978
--- +++ @@ -5,7 +5,7 @@ cd ${SRCDIR}/docs # Run notebooks as tests -nosetests -v ../statsmodels/examples/tests +pytest ../statsmodels/examples/tests # Clean up echo '================================= Clean ================================='
bash
d_bash_12979
--- +++ @@ -6,4 +6,5 @@ export GOBIN=$GOBIN go get -v github.com/google/go-licenses -# cp $GOBIN/go-licenses $PREFIX/bin + +go-licenses save $SRC_DIR --save_path="$RECIPE_DIR/thirdparty_licenses/"
bash
d_bash_12980
--- +++ @@ -21,4 +21,4 @@ mypy . # run semgrep -semgrep --config ../.semgrep_rules.yml . +semgrep --timeout 60 --config ../.semgrep_rules.yml .
bash
d_bash_12981
--- +++ @@ -1,21 +1,32 @@ # Extract and rename tapas files -#declare -a arr=("HD202206-1" "HD202206-2" "HD202206-3" -# "HD162020-1" "HD162020-2" -# "HD167665-1a" "HD167665-1b" "HD167665-2" -# "HD168443-1" "HD168443-2" -# "HD211847-1" "HD211847-2" -# "HD4747-1") +declare -a arr=("HD202206-1" "HD202206-2" "HD20220...
bash
d_bash_12982
--- +++ @@ -11,6 +11,9 @@ <domain value="0install.net"/> <domain value="repo.roscidus.com"/> </key> + <key fingerprint="617794D7C3DFE0FFF572065C0529FDB71FB13910"> + <domain value="repo.roscidus.com"/> + </key> <key fingerprint="AC9B973549D819AE22BCD08D22EA111A7E4242A4"> <domain value="repo.r...
bash
d_bash_12983
--- +++ @@ -16,8 +16,7 @@ fi # MacTex BasicTex http://www.tug.org/mactex/morepackages.html -TEXLIVE_VERSION="2015basic" -TEXLIVE_PATH=$BREW_PREFIX/texlive/$TEXLIVE_VERSION/bin/x86_64-darwin +TEXLIVE_PATH=/Library/TeX/texbin if [[ -d $TEXLIVE_PATH && ":$PATH:" != ":$TEXLIVE_PATH:" ]]; then PATH=$TEXLIVE_PATH:$...
bash
d_bash_12984
--- +++ @@ -1 +1,2 @@ alias irb='echo "Good sir, I do believe you meant to type \`pry\`"; pry' +alias be='bundle exec'
bash
d_bash_12985
--- +++ @@ -14,11 +14,22 @@ # Install dependency modules; run the command twice because the first # attempt might fail -source ./script/set_java_home.sh -JAVA_HOME=$JAVA_HOME ./script/run_carton.sh install || { - echo "First attempt to install CPAN modules failed, trying again..." - JAVA_HOME=$JAVA_HOME ./s...
bash
d_bash_12986
--- +++ @@ -2,6 +2,8 @@ include string.util.StringUtil include string.validator.StringValidator + +include system.validator.SystemValidator @class FileNameUtil(){ @@ -35,7 +37,9 @@ getPath(){ if [[ $(BaseComparator isEqual $# 2) && - $(BaseComparator isEqual ${1} 1) ]]; then + $(BaseComparator isEq...
bash
d_bash_12987
--- +++ @@ -1,6 +1,11 @@ #!/usr/bin/env bash # Script which installs versions of MongoDB specified using an environment variable + +if [ ! "${MONGODB}" ]; then + echo "MONGODB environment variable not set" + exit 2 +fi # Note: MongoDB 2.4 and 2.6 don't work with ramdisk since they don't work with # smal...
bash
d_bash_12988
--- +++ @@ -12,6 +12,8 @@ } cmd_wait() { + [[ "$1" == "" ]] && return + PID="$$" { echo 'tick initial check'
bash
d_bash_12989
--- +++ @@ -15,6 +15,6 @@ chmod 600 .travis/id_rsa ssh-add .travis/id_rsa -git remote add deis ssh://git@deis.us-west.moz.works:2222/basket-$1.git -git checkout -b deploy -git push -f deis deploy:master +git remote add deis-$1 ssh://git@deis.us-west.moz.works:2222/basket-$1.git +git checkout -b travis-deploy-$1 ...
bash
d_bash_12990
--- +++ @@ -11,8 +11,8 @@ killall Dock # fast key repeat rate, requires reboot to take effect -defaults write /Users/pivotal/Library/Preferences/.GlobalPreferences KeyRepeat -int 1 -defaults write /Users/pivotal/Library/Preferences/.GlobalPreferences InitialKeyRepeat -int 15 +defaults write /Users/$(whoami)/Libra...
bash
d_bash_12991
--- +++ @@ -1,3 +1,5 @@ +alias git="nocorrect git" 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 gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun. alias grm="git status | grep delet...
bash
d_bash_12992
--- +++ @@ -12,5 +12,5 @@ npm i babel-cli && \ babel-node ./test/visual-regression.js else - babel-node $(pwd)/test/visual-regression.js + NODE_ENV=test babel-node $(pwd)/test/visual-regression.js fi
bash
d_bash_12993
--- +++ @@ -9,5 +9,5 @@ cd .. -svn up +git pull ./script/run_test_suite.sh
bash
d_bash_12994
--- +++ @@ -9,11 +9,11 @@ } SUDO=no_sudo - if which gksudo > /dev/null 2>&1; then SUDO=gksudo - elif which kdesu > /dev/null 2>&1; then SUDO=kdesu + if which gksudo > /dev/null 2>&1; then SUDO='exec gksudo' + elif which kdesu > /dev/null 2>&1; then SUDO='exec kdesu' ...
bash
d_bash_12995
--- +++ @@ -9,4 +9,4 @@ docker rm $1 docker build -t $1 -f rails-prod-Dockerfile . -docker run --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -p 80:80 -p 443:443 $1 +docker run --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -v /srv/docker/apache2/logs:/var/log/apache2 -p 80:80 -p...
bash
d_bash_12996
--- +++ @@ -15,6 +15,7 @@ pushd $TMP_DIR if [ -f "${VAGRANT_GEM_PATH}" ]; then + pacman -S --noconfirm ruby cp "${VAGRANT_GEM_PATH}" ./vagrant.gem gem unpack ./vagrant.gem VAGRANT_VERSION=$(cat vagrant/version.txt | sed -e 's/\.[^0-9]*$//')
bash
d_bash_12997
--- +++ @@ -7,7 +7,7 @@ pushd "$TEST_DIR"; # Code auditing section -python -m py_compile $(find . -name '*.py'); +find . -name '*.py' -print0 | xargs -0 python -m py_compile; if [ "$?" != "0" ] then echo "There is syntax error. This may endanger chaos. Pauses updates."
bash
d_bash_12998
--- +++ @@ -12,7 +12,7 @@ "Action": "UPSERT", "ResourceRecordSet": { "Name": "'${dnsname}'.", - "Type": "A", + "Type": "CNAME", "AliasTarget": { "HostedZoneId": "Z54BUX0B2EC7C", "DNSName": "'${ctrlDnsName}'.",
bash
d_bash_12999
--- +++ @@ -26,14 +26,15 @@ function install_npm_dependencies { for dependency in "${!NPM_DEPENDENCIES[@]}" do - npm_modules_is_installed dependency || { echo >&2 "$dependency not installed. Now installing..."; } + npm_modules_is_installed $dependency || { echo >&2 "$dependency not installed. Now install...
bash