document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_19500
--- +++ @@ -47,15 +47,26 @@ echoerr "$RED""$@""$NC" } +echosuccess() { + echo -e "$GREEN""$@""$NC" +} + function select_one(){ type=$1 - OUTPUT="$2" - if [[ $(echo "$OUTPUT" | grep -c '[^[:space:]]') != 1 ]] + OUTPUT=$(sort <<< "$2") + if [[ -z "$OUTPUT" ]] then - echoerrmsg "...
bash
d_bash_19501
--- +++ @@ -9,4 +9,6 @@ [ "$#" -eq 1 ] || die "Usage: $0 <SSH address of router>" -ssh "$1" '/ip firewall address-list export' | grep -F 'list=spamhaus-drop' | grep -oE 'address=((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(/([1-2]?[0-9]|3[0-2]))?' | cut -d '=' -f2 +#ssh "$1" '/ip...
bash
d_bash_19502
--- +++ @@ -5,7 +5,7 @@ rm -f charts/orbit/Chart.yaml.bak git add ./charts/orbit/Chart.yaml -sed -i.bak "s/ version: .*/ version: $version/" charts/orbit/values.yaml +sed -i.bak "s/tag: 2.*/tag: $version/" charts/orbit/values.yaml rm -f charts/orbit/values.yaml.bak git add ./charts/orbit/values.yaml
bash
d_bash_19503
--- +++ @@ -38,3 +38,11 @@ } run $1 $2 + +CODE=$? + +if [ $CODE -ne 0 ]; then + mv users.json users-$1-$2.json +fi + +exit $CODE
bash
d_bash_19504
--- +++ @@ -8,7 +8,7 @@ initializeVariables $1 optDirectory=$BASE/$fileName/opt confDirectory=$BASE/$fileName/etc/$productName - $tempDirectory=$tempDirectory/temp + tempDirectory=$tempDirectory/temp tarFile=apache-hive-0.13.1-bin.tar.gz # Create directories that are required for the debian package ...
bash
d_bash_19505
--- +++ @@ -6,3 +6,6 @@ alias dlogt='dlog -t' function dex { x="$(dl)"; if [ -z "$x" ]; then echo "Container not running."; else docker exec -it $x "$@"; fi ;} function dattach { x="$(dl)"; if [ -z "$x" ]; then echo "Container not running."; else docker attach --no-stdin --sig-proxy=false $x "$@"; fi ;} +alias di=...
bash
d_bash_19506
--- +++ @@ -2,4 +2,5 @@ binpath=$(dirname "$(readlink -f "$0")") appname=$(basename "$0" .sh) export LD_LIBRARY_PATH="$binpath/bin":"$binpath/bin/plugins":$LD_LIBRARY_PATH +export QT_PLUGIN_PATH="$binpath/bin":"$binpath/bin/plugins" "$binpath/bin/$appname" "$@"
bash
d_bash_19507
--- +++ @@ -3,7 +3,7 @@ case "$1" in java8) - echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u232-b09/OpenJDK8U-jdk_x64_linux_hotspot_8u232b09.tar.gz" + echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u242b...
bash
d_bash_19508
--- +++ @@ -8,7 +8,7 @@ cp gitconfig ~/.gitconfig cp gitignore_global ~/.gitignore_global -if [ ! -d ~/.ssh]; then +if [ ! -d ~/.ssh ]; then mkdir ~/.ssh; fi cp open-wide.pem ~/.ssh @@ -17,3 +17,5 @@ cp vimrc ~/.vimrc cp zshrc ~/.zshrc +chsh -s /usr/bin/zsh +
bash
d_bash_19509
--- +++ @@ -2,8 +2,8 @@ # # Symlinks files in this directory into $HOME directory -# Base dir -DIR="${0:a}" +# Base dir as path relative to $HOME directory +DIR=${0#~/} # Files to be symlinked to home directory dotfiles=(
bash
d_bash_19510
--- +++ @@ -1,7 +1,7 @@ # Load any user customizations prior to load # if [ -d $HOME/.zsh.before/ ]; then - if [ "$(ls -A $HOME/.zsh.before/)" ]; then + if [ -f "$(find $HOME/.zsh.before/ -name *.zsh)" ]; then for config_file ($HOME/.zsh.before/*.zsh) source $config_file fi fi
bash
d_bash_19511
--- +++ @@ -6,20 +6,25 @@ rm -rf /emqx_temp && mkdir /emqx_temp cp -rf /emqx_code/* /emqx_temp/ -cd /emqx_temp -pkg=emqx-${ostype}-${versionid}-${type}-${today}.zip + +cd /emqx_temp/emqx-rel +versionid=${version##*v} +export versionid=${versionid%-*} +export type=${version#*-} + +pkg=emqx-${ostype}-${version}-${...
bash
d_bash_19512
--- +++ @@ -2,6 +2,8 @@ # Install packages into CASA using casa-pip casa-pip install astropy +casa-pip install photoutils +casa-pip install scikit-image # casa-pip install numpy --upgrade # casa-pip install scipy --upgrade # casa-pip install matplotlib --upgrade
bash
d_bash_19513
--- +++ @@ -25,7 +25,10 @@ for package_index in $(fetch_non_obsoled_package_indices) do - echo -ne "y" | install_sdk "${package_index}" echo "=====================================================================" - echo. + echo "Start to install package: ${package_index}" + echo "========================...
bash
d_bash_19514
--- +++ @@ -1,9 +1,25 @@ -sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get upgrade -y -sudo apt-get install -y git nodejs nodejs-legacy npm -sudo npm install -g sails -sudo npm install -g grunt-cli -sudo npm install -g bower -git clone https://github.com/xcjs/courierchat.git -cd courierchat/www/ -npm in...
bash
d_bash_19515
--- +++ @@ -32,15 +32,18 @@ # run tests cd $here/.. +ret=0 py.test \ --cov pexpect \ --cov-config .coveragerc \ --junit-xml=results.${osrel}.py${pyversion}.xml \ --verbose \ - --verbose + --verbose \ + || ret=$? # combine all coverage to single file, publish as build # artifact in {pexpect_projdir}/b...
bash
d_bash_19516
--- +++ @@ -1,5 +1,5 @@ port=$(wget --no-check-certificate --user=$DOCKER_MACHINE_LOGIN --password=$DOCKER_MACHINE_PASS -qO- https://docker-knock-auth.hipay.org/KyP54YzX/?srvname=deploy.hipay-pos-platform.com) -echo "Deploy project for project $CIRCLE_PROJECT_REPONAME and branch: $CIRCLE_BRANCH" +echo "Deploy proj...
bash
d_bash_19517
--- +++ @@ -2,7 +2,9 @@ # Format output of alias print dump into more readable format awk -F= 'BEGIN { - print "ALIAS | COMMAND"; + TABLE_FMT = "%-21s | %-60s"; + row = sprintf(TABLE_FMT, "ALIAS", "COMMAND"); + print row; print "-------------------------------...
bash
d_bash_19518
--- +++ @@ -4,9 +4,14 @@ channel="${CHANNEL:-unstable}" product="${PRODUCT:-supermarket}" version="${VERSION:-latest}" +package_file=${PACKAGE_FILE:-""} echo "--- Installing $channel $product $version" -package_file="$(/opt/omnibus-toolchain/bin/install-omnibus-product -c "$channel" -P "$product" -v "$version" ...
bash
d_bash_19519
--- +++ @@ -18,6 +18,10 @@ echo "$spec should not use '%setup'. Please use '%autosetup' instead." failed=1 } + rpmspec -q --qf "%{VERSION}\n" $spec >/dev/null || { + echo "$spec does not parse properly. Please check your syntax." + failed=1 + } done exit $failed
bash
d_bash_19520
--- +++ @@ -5,16 +5,28 @@ # Number of times to run if [ "$2" = "" ] ; then - COUNT=4 + COUNT=4 else - COUNT=$2 + COUNT=$2 fi # Vertical pixels to swipe if [ "$3" = "" ] ; then - VERTICAL=$(expr $(adb shell wm density | grep -o '[0-9]\+') \* 3) + + # Try to get density with "wm" + DENSITY=$(adb s...
bash
d_bash_19521
--- +++ @@ -28,3 +28,5 @@ mkdir cage echo 'chmod 000 test/cage' > cage/lock.sh echo 'chmod 755 test/cage' > cage-unlock.sh +mkdir cage/lion +echo 'chmod 000 test/cage' > cage/lion/lock.sh
bash
d_bash_19522
--- +++ @@ -18,7 +18,7 @@ cd $DOWNLOAD_DIR #download saw binaries -curl https://saw.galois.com/builds/nightly/saw-0.2-2017-07-26-Ubuntu14.04-64.tar.gz > saw.tar.gz; +curl https://saw.galois.com/builds/nightly/saw-0.2-2017-07-27-Ubuntu14.04-64.tar.gz > saw.tar.gz; mkdir -p saw && tar -xzf saw.tar.gz --strip-com...
bash
d_bash_19523
--- +++ @@ -3,6 +3,9 @@ set -x NPROC=`sysctl -n hw.physicalcpu` + +export CXXFLAGS="-O3" +export CFLAGS=${CXXFLAGS} for i in $( dirname ${BASH_SOURCE[0]} )/build_targets/* do
bash
d_bash_19524
--- +++ @@ -1,3 +1,13 @@ # Override the glg alias to be more informative alias glg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" alias gc="git commit -e -v" + +function gcd { + if [[ ! -z $(git branch | grep deve...
bash
d_bash_19525
--- +++ @@ -5,42 +5,15 @@ exit 1 fi -DEFAULT_SLUG="sage" -DEFAULT_PUBLIC_PATH="/app/themes/sage" -DEFAULT_DEV_URL="example.dev" - SLUG=$1 REPLACE_TEXT_DOMAIN=${2-false} DEV_URL=${3-${SLUG}.wordpress.dev} -PUBLIC_PATH="/wp-content/themes/${SLUG}" +FILE="./resources/assets/config-local.json" -# portable in...
bash
d_bash_19526
--- +++ @@ -1,23 +1,19 @@ _boom_complete() { - local cur prev lists + local cur prev lists curr_list items COMPREPLY = () cur = "${COMP_WORDS[COMP_WORD]}" prev = "${COMP_WORDS[COMP_WORD - 1]}" + curr_list = `eval echo "$prev"` + local IFS=$'\n' lists = `boom | awk '{print $1}'` - case "${prev}" ...
bash
d_bash_19527
--- +++ @@ -30,6 +30,7 @@ echo Git config git config user.name "deletescape" git config user.email "deletescape@outlook.com" +git config --global push.default simple echo echo Delete old artifacts
bash
d_bash_19528
--- +++ @@ -26,10 +26,19 @@ absScriptDir="`cd $scriptDir; pwd`" main() { - for f in `find ${absScriptDir} -name module.modulemap`; do - cat ${f} | sed "s,${defaultXcodePath},${realXcodePath},g" > ${f}.new || fatal "Failed to update modulemap ${f}" - mv ${f}.new ${f} || fatal "Failed to replace mo...
bash
d_bash_19529
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -export PYTHONPATH=/code;$PYTHONPATH +export PYTHONPATH=/code:$PYTHONPATH sleep 10 # Hack; will help web service to wait for db service. python manage.py migrate
bash
d_bash_19530
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env bash -sudo pacman -S --noconfirm --needed cups cups-pdf bind-tools ntp -sudo systemctl enable ntpd.service -sudo systemctl start ntpd.service +sudo pacman -S --noconfirm --needed cups cups-pdf bind-tools +sudo systemctl enable systemd-timesyncd.service +sudo systemctl start sys...
bash
d_bash_19531
--- +++ @@ -1,9 +1,10 @@ #!/bin/bash # Runs tests for all test_py files in the directory -FILE="test_*.py" +FILE=`ls | grep "test_.*.py"` +COUNT=`echo ${FILE} | wc -w` # -clear -if [ ! -f ${FILE} ]; then +#clear +if [ $COUNT \= 0 ]; then echo "No test_*.py file found!" exit -1 fi
bash
d_bash_19532
--- +++ @@ -5,4 +5,6 @@ git pull origin master --ff-only +docker system prune -f + ./run.sh
bash
d_bash_19533
--- +++ @@ -1,10 +1,13 @@ #!/bin/bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +cd "$DIR" message="$(git log -1 --pretty=%B)" message="$(echo -e $message)" rm -rf _html - python main.py cd _html
bash
d_bash_19534
--- +++ @@ -1,10 +1,18 @@ #!/bin/sh + +# reads values from JSON +jsonValue() { + KEY=$1 + num=$2 + awk -F"[,:}]" '{for(i=1;i<=NF;i++){if($i~/'$KEY'\042/){print $(i+1)}}}' | tr -d '"' | sed -n ${num}p +} # go to root cd `dirname $0` cd .. DIR=release/cca +PROJNAME=`less dist/manifest.json | jsonValue name ...
bash
d_bash_19535
--- +++ @@ -8,4 +8,3 @@ puppet module install camptocamp-archive puppet module install puppetlabs-java puppet module install stahnma-epel -puppet module install puppetlabs-tomcat
bash
d_bash_19536
--- +++ @@ -4,5 +4,17 @@ . ../../config.sh export DYLD_FALLBACK_LIBRARY_PATH="$STEAM_SDK/redistributable_bin/osx32" -export DYLD_INSERT_LIBRARIES=/Applications/Steam.app/Contents/MacOS/gameoverlayrenderer.dylib + +# Ensure the overlay is added when running outside Steam +overlay_libs=( + "/Library/Application ...
bash
d_bash_19537
--- +++ @@ -1,4 +1,4 @@ -DOTFILES_SHELL="$(dirname "$(readlink "$0")")" +DOTFILES_SHELL="$(dirname "$(readlink -f -- "$0")")" DOTFILES="$(dirname $(dirname "$DOTFILES_SHELL"))" if [ "${SAVED_PATH:-==Unset==}" = "==Unset==" ]; then
bash
d_bash_19538
--- +++ @@ -1,12 +1,17 @@ #!/bin/bash # Thanks to: http://sfviapgh.com/blog/2016/2/18/how-to-deploy-rails-with-aws-codedeploy -export RAILS_ENV=production +. /home/ubuntu/outages.secret cd /var/www/autism-funding.com/html sudo chmod 750 bin/* +logs="log/production.log log/puma-production.stdout.log log/puma-pro...
bash
d_bash_19539
--- +++ @@ -36,6 +36,10 @@ } } EOF + +echo "Starting textblob-api-server in docker..." +service textblob-api-server start + echo "Restarting nginx..." service nginx restart
bash
d_bash_19540
--- +++ @@ -1,6 +1,6 @@ _phing () { if [ -f build.xml ]; then - compadd $(phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|awk '{print $1}') + compadd $(phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|grep -v "Warning:"|awk '{p...
bash
d_bash_19541
--- +++ @@ -1,3 +1,3 @@ wget --quiet -O - get.pharo.org/40+vm | bash REPO=http://smalltalkhub.com/mc/RMoD/Ecstatic/main -./pharo Pharo.image config $REPO ConfigurationOfEcstatic --install=0.8 --group='ALL' +./pharo Pharo.image config $REPO ConfigurationOfEcstatic --install=0.9 --group='ALL'
bash
d_bash_19542
--- +++ @@ -1,4 +1,3 @@ #!/bin/sh cd /home/ubuntu/cucumber jruby -S cucumber -exit 0 #hack - to see the error text, we must exit successfully(CLOUDIFY-915)
bash
d_bash_19543
--- +++ @@ -10,7 +10,7 @@ readonly SCRIPTSDIR="$(cd "$(dirname "${0}")"; echo "$(pwd)")" pushd "${SCRIPTSDIR}" && pushd .. -pytest . +py.test . flake8 . pylint JsPrettier.py markdownlint .
bash
d_bash_19544
--- +++ @@ -10,12 +10,14 @@ case $OS_ID in ol) sudo yum -y install make - if [[ -e /usr/bin/ol_yum_configure.sh ]]; then - sudo /usr/bin/ol_yum_configure.sh - if [[ "${OS_VERSION%%.*}" -eq 7 ]]; then - sudo yum -y install oracle-epel-release-el7.x86_64 - fi - fi + case ${OS_VER...
bash
d_bash_19545
--- +++ @@ -6,7 +6,5 @@ git clone java-test-applications java-test-applications-built -java -version - cd java-test-applications-built ./gradlew -Dorg.gradle.native=false build -x test
bash
d_bash_19546
--- +++ @@ -13,7 +13,7 @@ make all cd ../ mv bedtools2-2.25.0 ${TOOLS_PATH}/ - rm v2.25.0.tar.gz + rm bedtools_v2.25.0.tar.gz cd ${TOOLS_PATH} ln -s bedtools2-2.25.0 ${TOOLS_PATH}/bedtools
bash
d_bash_19547
--- +++ @@ -23,13 +23,25 @@ exit 1 } -# get a name for new project +if [ $# -eq 1 ] +then + # get a name for new project from command line arguments + name="$1" +fi + +# get a name for new project from input while [[ -z $name ]] do echo "To create a new html5-boilerplate project, enter a new direct...
bash
d_bash_19548
--- +++ @@ -3,3 +3,4 @@ alias creep="say -v whisper" alias blink1="blink1-tool" alias blink="blink1-tool" +alias docktest="docker-compose run web rspec"
bash
d_bash_19549
--- +++ @@ -11,6 +11,7 @@ brew install tmux brew install gnu-sed brew install findutils + brew install watch wget brew cask install rectangle else sudo apt-get install cmake python3-dev build-essential
bash
d_bash_19550
--- +++ @@ -1,26 +1,21 @@ -sudo apt-get -y remove mysql-server mysql-server-5.5 lighttpd php5-cgi php5-mysql -sudo apt-get -y remove bind9 bind9utils bind9-doc +#!/bin/bash + +PACKAGES="mysql-server-5.5 mysql-client lighttpd lighttpd-mod-mysql-vhost php5-cgi php5-mysql" + +sudo apt-get -y remove $PACKAGES sudo apt-g...
bash
d_bash_19551
--- +++ @@ -18,7 +18,7 @@ git checkout gh-pages || git checkout --orphan gh-pages git config user.name "CI auto deploy" -git config user.email $COMMIT_AUHOR_EMAIL +git config user.email $COMMIT_AUTHOR_EMAIL git add . git commit -m "Auto deploy to GitHub Pages: ${SHA}"
bash
d_bash_19552
--- +++ @@ -1,9 +1,8 @@ #!/usr/bin/env bash set -e -pip install flask # TravisCI on bionic dist uses old version of Docker Engine # which is incompatibile with newer docker-py # See https://github.com/docker/docker-py/issues/2639 pip install "docker>=2.5.1,<=4.2.2" -pip install /moto/dist/moto*.gz +pip install ...
bash
d_bash_19553
--- +++ @@ -16,4 +16,4 @@ ./jenkins/kill_old_listeners.sh -./run-tests.pl --bind-host ${BIND_HOST:localhost} -O tap --all "$@" > results.tap +./run-tests.pl --bind-host ${BIND_HOST:-localhost} -O tap --all "$@" > results.tap
bash
d_bash_19554
--- +++ @@ -20,6 +20,7 @@ echo "Adding individual packages" add_package autofs +add_package ccache add_package colordiff add_package conky add_package ninja-build
bash
d_bash_19555
--- +++ @@ -1,8 +1,6 @@ #!/bin/sh -git clone --recursive https://github.com/obgm/libcoap.git +git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git cd libcoap -git checkout dtls -git submodule update --init --recursive ./autogen.sh ./configure --disable-documentation --disable-shar...
bash
d_bash_19556
--- +++ @@ -7,7 +7,7 @@ echo "proxy=${HTTP_PROXY}" apt-get update -apt-get install -y tar wget bzip2 git cmake automake autoconf python-argparse build-essential apt-utils apt-transport-https debhelper libjemalloc-dev libssl-dev python python-lockfile +apt-get install -y tar wget bzip2 git cmake automake autoconf ...
bash
d_bash_19557
--- +++ @@ -3,7 +3,7 @@ pkg_version=4.02 pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" pkg_license=('gplv2') -pkg_source=http://ftp.kernel.org/pub/linux/docs/$pkg_name/${pkg_name}-${pkg_version}.tar.xz +pkg_source=https://www.kernel.org/pub/linux/docs/$pkg_name/${pkg_name}-${pkg_version}.tar.xz pkg...
bash
d_bash_19558
--- +++ @@ -2,6 +2,11 @@ set -eux set -o pipefail +# The sleep 30 in the example above is very important. +# Because Packer is able to detect and SSH into the instance as soon as SSH is +# available, Ubuntu actually doesn't get proper amounts of time to initialize. +# The sleep makes sure that the OS properly ini...
bash
d_bash_19559
--- +++ @@ -14,7 +14,7 @@ ## Fix some issues with APT packages. ## See https://github.com/dotcloud/docker/issues/1024 dpkg-divert --local --rename --add /sbin/initctl -ln -s /bin/true /sbin/initctl +ln -sf /bin/true /sbin/initctl ## Upgrade all packages. echo "initscripts hold" | dpkg --set-selections
bash
d_bash_19560
--- +++ @@ -2,5 +2,5 @@ cd . bundle install rake db:schema:load -SPEC_OPTS="--format html" rake rspec +rake spec CUCUMBER_FORMAT=html rake cucumber
bash
d_bash_19561
--- +++ @@ -1,4 +1,4 @@ -wget --output-file=/vagrant/install_chef_solo.log.txt -O chefdk_0.6.0-1.deb https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.6.0-1_amd64.deb - -cat /vagrant/install_chef_solo.log.txt +LOG_FILE=/vagrant/install_chef_solo.log.txt +wget --output-file=$LOG_FILE -O ch...
bash
d_bash_19562
--- +++ @@ -11,6 +11,7 @@ echo '%_topdir /usr/src/packages' > ~/.rpmmacros echo '%_tmppath %{_topdir}/tmp' >> ~/.rpmmacros rm -f salt-*.src.rpm +yum clean expire-cache yumdownloader --source salt rpm -ivh salt-*.src.rpm rm -f salt-*.src.rpm
bash
d_bash_19563
--- +++ @@ -8,7 +8,7 @@ VERSION=$(node -e 'console.log(require("./package.json").version)') # Build the browser version. -browserify -e lib/index.js -s decaffeinate -o decaffeinate.js +browserify -e dist/decaffeinate.cjs.js -s decaffeinate -o decaffeinate.js # Switch to gh-pages branch. git fetch origin
bash
d_bash_19564
--- +++ @@ -1,6 +1,8 @@ /home/rl/dotfiles/bin/earthwall/earthwall.sh& +pulseaudio --daemonize compton& slack& thunderbird& slstatus& +clipmenud& dwm
bash
d_bash_19565
--- +++ @@ -1,11 +1,12 @@ set -x USERNAME="langtech" +BUILD_TIME=$(date +%s) for IMAGE_NAME in language-resources festival merlin; do cd ${IMAGE_NAME} IMAGE_NAME="base-${IMAGE_NAME}" - docker build --cpuset-cpus=4 --no-cache -t ${USERNAME}/${IMAGE_NAME}:latest . + docker build --cpuset-cpus=4 --no-c...
bash
d_bash_19566
--- +++ @@ -13,7 +13,8 @@ cd Dependencies/build mkdir -p glfw cd glfw - cmake ../../glfw -DCMAKE_BUILD_TYPE=Release -GXcode + cmake ../../glfw -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CONFIGURATION_TYPES="Release" -GXcode else echo "Skip glfw" fi
bash
d_bash_19567
--- +++ @@ -42,7 +42,7 @@ } function package { - rm -f ltepi-${VERSION}.tgz + rm -f ltepi-setup-${VERSION}.tgz # http://unix.stackexchange.com/a/9865 COPYFILE_DISABLE=1 tar --exclude="./.*" -zcf ltepi-setup-${VERSION}.tgz * }
bash
d_bash_19568
--- +++ @@ -8,7 +8,7 @@ # Node version if (( $+commands[node] )); then - node_version=$(node -v 2>/dev/null) + node_version=$(node -e 'console.log(process.version.slice(1))' 2>/dev/null) [[ $node_version == "" ]] || iterm2_set_user_var node_version "$node_version" fi
bash
d_bash_19569
--- +++ @@ -5,7 +5,7 @@ MYDIR="$(cd "$(dirname "$0")"; pwd)" ROOTDIR="$MYDIR/.." ZIPFILE="$ROOTDIR/px.exe" -export ZIPOPT="-9" +export ZIPOPT="-9 -q" WORKDIR="$(mktemp -d)" trap 'rm -rf "$WORKDIR" "$ZIPFILE.tmp"' EXIT @@ -13,9 +13,15 @@ # Set up file structure in our temporary directory cp "$MYDIR/executable...
bash
d_bash_19570
--- +++ @@ -1,10 +1,8 @@ #!/bin/bash -# This script was originally written by maxiaohao in the aws-mock GitHub project. -# https://github.com/treelogic-swe/aws-mock/ if [ "$TRAVIS_REPO_SLUG" == "ReadyTalk/swt-bling" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk7" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRA...
bash
d_bash_19571
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -cd openfisca/france +cd `dirname $0`/../openfisca/france git fetch --all
bash
d_bash_19572
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env bash -echo mysql-apt-config mysql-apt-config/enable-repo select mysql-5.7-dmr | sudo debconf-set-selections +echo mysql-apt-config mysql-apt-config/enable-repo select mysql-5.7 | sudo debconf-set-selections wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1ubuntu12.04_al...
bash
d_bash_19573
--- +++ @@ -20,10 +20,10 @@ DOCKER=$(command -v docker || command -v podman) readonly DOCKER -CURRENT_IMAGE="$($DOCKER image ls -q "$IMAGE_NAME":latest)" +CURRENT_IMAGE="$($DOCKER image inspect -f "{{.Id}}" "$IMAGE_NAME":latest || :)" readonly CURRENT_IMAGE $DOCKER image build -f "$DOCKERFILE" -t "$IMAGE_NAME" ...
bash
d_bash_19574
--- +++ @@ -1,5 +1,4 @@ #!/bin/bash echo 'Sharing video files...' -mkdir -p /cygdrive/i/BitTorrenSync/Todd/video -rsync --verbose --checksum --recursive --times --delete --prune-empty-dirs --human-readable --progress --include='*/' --include='*.mp4' --exclude='*' '/cygdrive/g/Users/TLougee/Books/' '/cygdrive/i/B...
bash
d_bash_19575
--- +++ @@ -1,19 +1,54 @@ #!/bin/bash -echo "Running apt-get update." +# +# Functions +# + +# Functions to print messages +function info-message() { + echo "**** INFO: $*" +} + +function error-message() { + (>&2 echo "**** ERROR: $*") +} + +function error-exit-message() { + (>&2 echo "**** ERROR: $*") + exit...
bash
d_bash_19576
--- +++ @@ -4,7 +4,7 @@ rm -Rfv ~/.gradle/init.d mkdir -p ~/.gradle/init.d && cp -v $WORKSPACE/.ci/init.gradle ~/.gradle/init.d if [ "$(uname -m)" = "arm64" ] || [ "$(uname -m)" = "aarch64" ]; then - MAX_WORKERS=16 + MAX_WORKERS=8 elif [ -f /proc/cpuinfo ]; then MAX_WORKERS=`grep '^cpu\scores' /proc/cpuin...
bash
d_bash_19577
--- +++ @@ -1,2 +1,2 @@ #!/bin/bash -sudo apt-get --yes install subversion screen gcc g++ cmake ninja-build golang autoconf libtool apache2 python-dev pkg-config zlib1g-dev libgcrypt11-dev +sudo apt-get --yes install subversion screen gcc g++ cmake ninja-build golang autoconf libtool apache2 python-dev pkg-config zl...
bash
d_bash_19578
--- +++ @@ -1,5 +1,6 @@ export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" +export PYENV_VIRTUALENV_DISABLE_PROMPT=1 if hash pyenv 2>/dev/null 2>&1; then eval "$(pyenv init -)"
bash
d_bash_19579
--- +++ @@ -11,7 +11,7 @@ mkdir build cd build -cmake -DBOOST_ROOT=/opt/boost-1.46.0/ -DBoost_NO_SYSTEM_PATHS=ON -DPYTHON_EXECUTABLE=/usr/bin/python ../hoomd/ +cmake -DENABLE_DOXYGEN=OFF -DENABLE_APP_BUNDLE_INSTALL=ON -DBOOST_ROOT=/opt/boost-1.46.0/ -DBoost_NO_SYSTEM_PATHS=ON -DPYTHON_EXECUTABLE=/usr/bin/python ....
bash
d_bash_19580
--- +++ @@ -1,2 +1,4 @@ +rm ejson.js +rm base64.js wget https://raw.github.com/meteor/meteor/devel/packages/ejson/ejson.js wget https://raw.github.com/meteor/meteor/devel/packages/ejson/base64.js
bash
d_bash_19581
--- +++ @@ -2,8 +2,8 @@ # To fix up directory permissions after running ssh-copy-id to copy your keys to IBM i # Download and run this script, or copy/paste the following commands into an IBM i shell (preferrably SSH) mkdir -p $HOME/.ssh -chown `/QOpenSys/usr/bib/id -u -n` $HOME -chown -R `/QOpenSys/usr/bib/id -u ...
bash
d_bash_19582
--- +++ @@ -3,6 +3,6 @@ function import_sonarr () { originalPath="/mnt/main/Downloads/" replacementPath="/downloads/" - path=${1/$originalPath/$replacementPath} - curl https://hs.dangmai.net/sonarr/api/Command -X POST -H "X-API-KEY: ${SONARR_API_KEY}" --user ${SONARR_USERNAME}:${SONARR_PASSWORD} -d '...
bash
d_bash_19583
--- +++ @@ -4,7 +4,7 @@ set -u set -o pipefail -function main() { +main() { local scriptdir=$(dirname "$(readlink -f "$0")") pushd "$scriptdir" > /dev/null
bash
d_bash_19584
--- +++ @@ -8,12 +8,8 @@ mkdir -p "${HOME}/.oh-my-zsh/custom/plugins" git clone git://github.com/zsh-users/zsh-syntax-highlighting.git ${HOME}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting - # clone opp zsh - git clone https://github.com/hchbaw/opp.zsh ${HOME}/dotfiles/zsh-plugins/opp.zsh - # make de...
bash
d_bash_19585
--- +++ @@ -1 +1,5 @@ #!/bin/bash + +if [[ ! `command -v curl` ]]; then + wget -qO- http://boxcar.nicinabox.com/install_curl | sh - +fi
bash
d_bash_19586
--- +++ @@ -4,4 +4,6 @@ opam install mirage --yes opam source mirage-skeleton -cd mirage-skeleton.dev && make +cd mirage-skeleton.dev +MODE=unix make +MODE=xen make
bash
d_bash_19587
--- +++ @@ -23,6 +23,13 @@ ./node_modules/.bin/gulp test:node +nvm install 5 + +rm -rf node_modules +npm install + +./node_modules/.bin/gulp test:node + nvm install 0.12 rm -rf node_modules
bash
d_bash_19588
--- +++ @@ -17,5 +17,5 @@ for i in {0..4} do $THIS/workflow-stats.sh --percentile --token ${TOKENS[$i]} \ - experiments/RSIF/${DIRS[$i]} + experiments/${DIRS[$i]} done
bash
d_bash_19589
--- +++ @@ -4,7 +4,7 @@ # Continuous integration script for Travis echo "## Building and installing libs2..." -cmake -Ds2_build_testing=ON -Ds2_build_python=ON geometry +cmake -Ds2_build_testing=ON geometry make -j3 sudo make install ctest -V
bash
d_bash_19590
--- +++ @@ -1,8 +1,8 @@ #!/bin/bash cd tests/data for i in $@; do - if [[ $i == '2.7' ]]; then - # we only support 2.7 now + if [[ $i == '3.5' ]]; then + # we only support 3.5 now wget https://github.com/getnikola/invariant-builds/archive/v$i'.zip' unzip 'v'$i'.zip' r...
bash
d_bash_19591
--- +++ @@ -6,7 +6,7 @@ if [[ "$TEST_RELEASE" == true ]]; then py.test test_release.py else - if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then + if [[ $TRAVIS_PYTHON_VERSION == pypy* ]]; then py.test test/ else coverage run -m py.test test/
bash
d_bash_19592
--- +++ @@ -1,2 +1,2 @@ #/bin/sh -/root/spark/bin/spark-submit --class vc.inreach.ml.scoring.SQSOrganizationScoringStream --deploy-mode client --driver-memory 7g --driver-cores 2 /jar/inreach-ml-batch.jar -model_path s3n://inreach-ml-models/ -aws remote -scoring_model VsScoringModel -tag $CLUSTER_NAME:$CI_BRANCH +/r...
bash
d_bash_19593
--- +++ @@ -5,7 +5,11 @@ # Set the window title. function title() { - echo -n -e "\033]0;$1\007" + if [[ -n "$1" ]]; then + echo -n -e "\033]0;$1\007" + else + echo -n -e "\033]0;${USER}@${HOSTNAME}\007" + fi } # Python makes a nice command line calculator.
bash
d_bash_19594
--- +++ @@ -4,6 +4,7 @@ git checkout gh-pages && \ git rebase master && \ rm -rf docs && \ +rm -rf example && \ docco emails.coffee utils.coffee && \ git add . && \ git commit -a -m 'Generate documentation' && \
bash
d_bash_19595
--- +++ @@ -2,4 +2,4 @@ set -e -bash <(curl -s https://codecov.io/bash) ${other_options} +bash <(curl -s https://codecov.io/bash) -Z ${other_options}
bash
d_bash_19596
--- +++ @@ -11,6 +11,7 @@ /app-src/build/thinglang --version export PATH=$PATH:/app-src/build/ +export PYTHONPATH=/app-src cd /app-src pytest tests/integration
bash
d_bash_19597
--- +++ @@ -6,6 +6,7 @@ cp /hosts/*.cabal . cp -r /hosts/src . cp -r /hosts/app . +cp -r /hosts/templates . cp /hosts/LICENSE . cp /hosts/README.md . stack --no-terminal setup
bash
d_bash_19598
--- +++ @@ -22,6 +22,3 @@ # Publishing the defined tag to npm npm publish --access public --tag ${NPM_TAG} - -# Logs out of npm when publish is complete. -npm logout
bash
d_bash_19599
--- +++ @@ -13,10 +13,15 @@ source='' # Get the branch from git -githead="`dirname "$0"`/../.git/HEAD" -if [ -f "$githead" ]; then - source="`cut -d/ -f3 "$githead"`" - source="${source:+"~"}$source" +git="`dirname "$0"`/../.git" +if [ -f "$git/HEAD" ]; then + source="`cut -d/ -f3 "$git/HEAD"`" + if [...
bash