document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_7500
--- +++ @@ -4,12 +4,13 @@ set -o pipefail export GO15VENDOREXPERIMENT=1 +BASEPATH=${BASEPATH:-go} curl -L https://raw.githubusercontent.com/experimental-platform/misc/master/install-glide.sh | bash -s v0.11.1 mkdir -p binaries -for tooldir in go/*; do +for tooldir in ${BASEPATH}/*; do tool_name="$(base...
bash
d_bash_7501
--- +++ @@ -1,12 +1,14 @@ -HOMEBREW_PATH=$(brew --prefix) -if [[ -d "$HOMEBREW_PATH/Caskroom/google-cloud-sdk/latest/" ]] -then - if [[ -n $ZSH_NAME ]] +(which brew >/dev/null 2>&1) && { + HOMEBREW_PATH=$(brew --prefix) + if [[ -d "$HOMEBREW_PATH/Caskroom/google-cloud-sdk/latest/" ]] then - source "$HOMEBREW...
bash
d_bash_7502
--- +++ @@ -2,6 +2,19 @@ # Return an available random local port local_tcp_port() { + if which python3 >/dev/null 2>&1; then + ( + cat << EOF +import socket +s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +s.bind(('127.0.0.1', 0)) +print(s.getsockname()[1]) +s.close() +EOF + ) |...
bash
d_bash_7503
--- +++ @@ -3,8 +3,15 @@ # Fast fail the script on failures. set -e +# Verify Dart 2.0 strict mode compatibility. +if [ "${TRAVIS_DART_VERSION}" = "dev" ]; then + echo "Verifying Dart 2.0 strict mode ..." + dart --preview-dart-2 test/all_tests.dart +fi + # Verify the coverage of the tests. if [ "${COVERALLS_T...
bash
d_bash_7504
--- +++ @@ -25,5 +25,6 @@ # Aliases # +alias -- -='cd -' alias d='dirs -v' for index ({1..9}) alias "$index"="cd +${index}"; unset index
bash
d_bash_7505
--- +++ @@ -9,10 +9,17 @@ # Formatting variables BOLD=`tput bold` BLUE=`tput setaf 12` +RED=`tput setaf 9` RESET=`tput sgr0` # Include directories that start with a leading dot shopt -s dotglob + + +# Print a divider to STDOUT to break up feedback better +marker(){ + printf %s$'\n' "${BOLD}$1==>${RESET}${BOLD...
bash
d_bash_7506
--- +++ @@ -11,6 +11,9 @@ function test_theme_preview { # This does not really test the tool, just verify that it does not error. . ./tools/theme-preview.sh default + . ./tools/theme-preview.sh powerline ./themes/powerline/powerline.theme + . ./tools/theme-preview.sh powerline_full ./themes/powerline/powerli...
bash
d_bash_7507
--- +++ @@ -18,4 +18,4 @@ # Run rest of the script from there # cd "${BACKUP_WORKSPACE}"; -rm -f "${BACKUP_FILEPATH}"; +#rm -f "${BACKUP_FILEPATH}";
bash
d_bash_7508
--- +++ @@ -1,3 +1,3 @@ #!/bin/sh curpath=`dirname $0` -nohup ${curpath}/run_agent.sh $1 >> /${TMPDIR:=/tmp}/ngrinder.log & 2>&1 +nohup ${curpath}/run_agent.sh $1 >> ${TMPDIR:=/tmp}/ngrinder.log & 2>&1
bash
d_bash_7509
--- +++ @@ -3,12 +3,29 @@ IFS= alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ - 1234567890 - abcdefghijklmnopqrstuvwxyz"; reset=$(tput sgr0); +max=256 -for((i = 0; i <= 256; i++)); do + +# Show only the first 16 colours by default +count=15 + +# Parse any options we were given +while getopts alc: option; do + case $option...
bash
d_bash_7510
--- +++ @@ -19,7 +19,7 @@ # compile the website bundle exec jekyll build -d ~/out --config _uberspace_config.yml # upload site - rsync -rq --delete ~/out/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH + rsync -rq --delete --exclude=".*" ~/out/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH else echo "NOT ON MASTER BRANCH, ...
bash
d_bash_7511
--- +++ @@ -1,6 +1,8 @@ if [ $commands[autojump] ]; then # check if autojump is installed if [ -f $HOME/.autojump/etc/profile.d/autojump.zsh ]; then # manual user-local installation . $HOME/.autojump/etc/profile.d/autojump.zsh + elif [ -f $HOME/.nix-profile/etc/profile.d/autojump.zsh ]; then # nix installat...
bash
d_bash_7512
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -version=1.9.3-p327 +version=1.9.3-p362 yum -y install git gcc make libxslt-devel libxml2-devel \ gdbm-devel libffi-devel zlib-devel openssl-devel libyaml-devel \
bash
d_bash_7513
--- +++ @@ -26,7 +26,7 @@ make # This is failing for rtest. -# Doesn't do anythoing for the rest +# Doesn't do anything for the rest # make check make install
bash
d_bash_7514
--- +++ @@ -7,7 +7,7 @@ tar -xf $JVM_FILE -C /opt/lucee/jvm chown -R root:root /opt/lucee/jvm chmod -R 755 /opt/lucee/jvm - ln -s /opt/lucee/jvm/jre$JVM_VERSION /opt/lucee/jvm/current + ln -s /opt/lucee/jvm/jdk$JVM_VERSION /opt/lucee/jvm/current echo $'\nJAVA_HOME="/opt/lucee/jvm/current"' >> /etc/defau...
bash
d_bash_7515
--- +++ @@ -1,7 +1,6 @@ #!/bin/bash -VERSION=`cat composer.json | grep 'version' | awk '{print $2}' \ - | sed -e 's/"//g' | sed -e 's/,//'` +VERSION=`git tag | tail -n 1 | sed -e 's/v//'` BUILD="./build/wordpress-plugin-feed-$VERSION.tar.gz"
bash
d_bash_7516
--- +++ @@ -22,6 +22,7 @@ add_gitignore Eclipse add_gitignore JetBrains +add_gitignore VisualStudioCode enable_autocomplete_on_macos git config --global color.ui true
bash
d_bash_7517
--- +++ @@ -2,7 +2,7 @@ set -e # start docker daemon -bash dockerd-entrypoint.sh dockerd --iptables=false --bridge=docker1 & +bash dockerd-entrypoint.sh dockerd --bridge=docker1 & printf "> Started docker daemon \n" sleep 5
bash
d_bash_7518
--- +++ @@ -11,3 +11,7 @@ cp Swicli.Library.dll swicli-inst/pl/lib/x86_64-linux/ mv Swicli.Library.dll swicli-inst/pl/lib/i386-linux/ +cp d*.html swicli-inst/ +cp RE*.* swicli-inst/ +cp in*.* swicli-inst/ +
bash
d_bash_7519
--- +++ @@ -7,7 +7,7 @@ # Start cassandra service cassandra start &> cassandra.log & -# sleep 15 +sleep 15 # Build and execute Monolithic fat jar cd Monolithic/
bash
d_bash_7520
--- +++ @@ -16,4 +16,4 @@ cmake .. -DCMAKE_MODULE_PATH=/usr/local/opt/sfml/share/SFML/cmake/Modules make -./bin/WangscapeTest +./bin/WangscapeTest ../doc
bash
d_bash_7521
--- +++ @@ -24,9 +24,14 @@ # copy the doc directory from the workspace cp -R ../../$repo/doc/* . >/dev/null +# copy all source files from src/js to the cdn directory here +ln -s ../../$repo/src/js src +ls src | while read a; do uglify -s src/$a -o ${a%.js}.min.js; done +rm src + # send it up git add . >/dev/nul...
bash
d_bash_7522
--- +++ @@ -11,6 +11,7 @@ # https://github.com/jackfirth/racket-docker/blob/master/racket.Dockerfile export PATH="$PATH:$PREFIX/bin" raco setup +raco pkg config --set default-scope installation raco pkg config --set catalogs \ "https://download.racket-lang.org/releases...
bash
d_bash_7523
--- +++ @@ -16,8 +16,8 @@ # (c) 2015, Nolan Brubaker <nolan.brubaker@rackspace.com> set -eux pipefail -OSAD_DIR='/opt/rpc-openstack/os-ansible-deployment' -RPCD_DIR='/opt/rpc-openstack/rpcd' +BASE_DIR=$( cd "$( dirname ${0} )" && cd ../ && pwd ) +OSAD_DIR="$BASE_DIR/os-ansible-deployment" # Do the upgrade for ...
bash
d_bash_7524
--- +++ @@ -8,6 +8,9 @@ #Start the commands going in unison. for i in "${storageNodes[@]}" do + nonsense=$(timeout $sshTime ssh -o ConnectTimeout=$sshTimeout $hostsystem "echo wakeup") + nonsense=$(timeout $sshTime ssh -o ConnectTimeout=$sshTimeout $hostsystem "echo get ready") + sleep 5 echo "$(date...
bash
d_bash_7525
--- +++ @@ -28,6 +28,13 @@ yarn build-storybook mv storybook-static ../../netlify-build popd +elif [ "$BUILD_CONTEXT" = "ANGULAR" ]; then + echo "netlify-build Angular examples" + pushd examples/angular-cli + yarn + yarn build-storybook + mv storybook-static ../../netlify-build + popd else RED='\03...
bash
d_bash_7526
--- +++ @@ -2,6 +2,7 @@ if [ "$1" = "tomcat" ] ; then chown -R tomcat:tomcat /opt + export JAVA_OPTS="-Dxhost=$HOSTNAME -Dxtype=${XTYPE:-TOMCAT} $JAVA_OPTS" exec gosu tomcat:tomcat /opt/tomcat/bin/catalina.sh run fi
bash
d_bash_7527
--- +++ @@ -3,6 +3,8 @@ export GOVUK_WEBSITE_ROOT=https://www.gov.uk +rm -rf ./node_modules/ + npm install npm run test:unit
bash
d_bash_7528
--- +++ @@ -34,11 +34,11 @@ case $2 in cuda-included) - python build.py --enable_cuda --cudnn_path /usr/lib/x86_64-linux-gnu/ + python build.py --enable_cuda python include_cuda.py ;; cuda) - python build.py --enable_cuda --cudnn_path /usr/lib/x86_64-linux-gnu/ + python build.py --enabl...
bash
d_bash_7529
--- +++ @@ -27,3 +27,5 @@ trap - TERM INT wait $python_pid EXIT_STATUS=$? + +rm p_to_lb lb_to_p
bash
d_bash_7530
--- +++ @@ -11,7 +11,9 @@ # $0 takes the path to the binary inside the repo. # eg: $0 sql/sql.test sql/sql-foo.test # The file will be pushed to: s3://BUCKET_NAME/REPO_NAME/sql-foo.test.SHA -# The S3 basename will be stored in s3://BUCKET_NAME/REPO_NAME/sql-foo.test.LATEST +# The binary's sha will be stored in s3:...
bash
d_bash_7531
--- +++ @@ -1,13 +1,12 @@ -zsh_cache=$HOME/.zsh_cache -mkdir -p $zsh_cache - # reload zshrc function src() { autoload -U compinit zrecompile - compinit -d $zsh_cache/zcomp-$HOST - for f in $HOME/.zshrc $zsh_cache/zcomp-$HOST; do - zrecompile -p $f && rm -f $f.zwc.old + compinit -d "$ZSH/cache/zcomp-$HOST"...
bash
d_bash_7532
--- +++ @@ -18,3 +18,4 @@ echo "Fetched file ($URI) has unexpected SHA-1 checksum." false fi +echo "Successfully fetched CUDD; ready to build!"
bash
d_bash_7533
--- +++ @@ -19,8 +19,7 @@ /etc/pam.d/su # Configure the vagrant ssh key -mkdir /home/vagrant/.ssh -chmod 0700 /home/vagrant/.ssh +mkdir -m 0700 /home/vagrant/.ssh fetch -am --no-verify-peer -o /home/vagrant/.ssh/authorized_keys \ 'https://raw.githubusercontent.com/hashicorp/vagrant/master/keys/vagrant.pub' c...
bash
d_bash_7534
--- +++ @@ -6,9 +6,11 @@ # thanks ron999 in this tread http://ubuntuforums.org/showthread.php?t=1502537 -if [ $# -ne 3 ];then echo "Usage: ./$0 image.png sound.mp3 length_of_mp3_as_number"; echo "Exiting...";exit 1;fi +if [ $# -ne 2 ];then echo "Usage: ./$0 image.png sound.mp3"; echo "Exiting...";exit 1;fi -ff...
bash
d_bash_7535
--- +++ @@ -11,6 +11,7 @@ mkdir -p /data mount -t nfs 192.168.22.1:/data /data +echo "192.168.22.1:/data /data nfs rw,hard,intr,rsize=8192,wsize=8192,timeo=14 0 0" >> /etc/fstab mkdir -p /data/git cd /data/git
bash
d_bash_7536
--- +++ @@ -1,9 +1,9 @@ # Install Python3.6 and pip apt update && apt upgrade -apt-get install python-software-properties +apt-get install -y python-software-properties add-apt-repository ppa:fkrull/deadsnakes apt update && apt upgrade -apt-get install python3.6 +apt-get install -y python3.6 curl https://bootstr...
bash
d_bash_7537
--- +++ @@ -8,8 +8,15 @@ $CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.a -o $OUT/$fuzzer } +git clone https://github.com/tdewolff/parse +find $GOPATH/src/github.com/tdewolff/parse/tests/* -maxdepth 0 -type d | while read target +do + fuzz_target=`echo $target | rev | cut -d'/' -f 1 | rev` + compile_fuzzer gi...
bash
d_bash_7538
--- +++ @@ -12,4 +12,4 @@ if [ -n "$pkg_name" ]; then install_vscode_pkg "$pkg_name" fi -done < ~/dotfiles/vscode/packages.txt +done < ~/dotfiles/vscode/extensions.txt
bash
d_bash_7539
--- +++ @@ -20,6 +20,6 @@ export ANDROID_TOOLS_URL=https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip export ANDROID_HOME="${DEPENDS_DIR}/SDKs/android" export ANDROID_NDK_HOME="${ANDROID_HOME}/ndk/${ANDROID_NDK_VERSION}" -export DEP_OPTS="ANDROID_SDK=${ANDROID_HOME} ANDROID_NDK=${AN...
bash
d_bash_7540
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -find /srv/backup-data -not \( -path /srv/backup-data/lost+found prune \) -type f -mtime +30 -delete +find /srv/backup-data -not \( -path /srv/backup-data/lost+found -prune \) -type f -mtime +30 -delete
bash
d_bash_7541
--- +++ @@ -3,5 +3,13 @@ INSTANCES_FILE=$KARAF_HOME/instances/instance.properties PID=`cat $INSTANCES_FILE | grep "item.0.pid" | awk -F "=" '{print $2}'` kill $PID - wait $PID + for i in {1..5}; + do + if ps -p $PID > /dev/null; then + echo "Fabric has been successf...
bash
d_bash_7542
--- +++ @@ -8,6 +8,9 @@ #Start the commands going in unison. for i in "${storageNodes[@]}" do + nonsense=$(timeout $sshTime ssh -o ConnectTimeout=$sshTimeout $hostsystem "echo wakeup") + nonsense=$(timeout $sshTime ssh -o ConnectTimeout=$sshTimeout $hostsystem "echo get ready") + sleep 5 echo "$(date...
bash
d_bash_7543
--- +++ @@ -1 +1 @@ -source /cvmfs/oasis.opensciencegrid.org/osg-software/osg-wn-client/3.3/current/el6-x86_64/setup.sh +source /cvmfs/oasis.opensciencegrid.org/osg-software/osg-wn-client/3.4/current/el6-x86_64/setup.sh
bash
d_bash_7544
--- +++ @@ -4,17 +4,16 @@ function run_tests() { local version=$1 - ccm create test -v $version -n 3 -s --debug + ccm create test -v $version -n 3 -s -d --vnodes ccm status + local proto=2 if [[ $version == 1.2.* ]]; then - echo "running protocol 1 test suite" - go test -v ./... -proto 1 - else - echo...
bash
d_bash_7545
--- +++ @@ -16,7 +16,8 @@ pip3 install colour \ i3ipc \ i3pystatus \ - netifaces + netifaces \ + pytx if [ "$(uname)" == "Linux" ]; then pip3 install basiciw
bash
d_bash_7546
--- +++ @@ -1,9 +1,10 @@ #!/bin/sh + +php composer.phar update -o php vendor/propel/propel/bin/propel.php config:convert php vendor/propel/propel/bin/propel.php model:build php vendor/propel/propel/bin/propel.php diff php vendor/propel/propel/bin/propel.php migrate -php composer.phar update -o echo "Finishe...
bash
d_bash_7547
--- +++ @@ -6,18 +6,18 @@ ./gradlew --stacktrace --debug build elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']' - ./gradlew --stacktrace --info -Prelease.travisci=true snapshot + ./gradlew --stacktrace --debug -Prele...
bash
d_bash_7548
--- +++ @@ -13,7 +13,16 @@ pip install bigml pip install bigmler +# Install Bash Kernel for IPython / Jupyter +# (adapted from https://github.com/takluyver/bash_kernel) +pip install bash_kernel +python -m bash_kernel.install +service jupyter restart + # Install papiseval git clone https://github.com/louisdorard...
bash
d_bash_7549
--- +++ @@ -1,14 +1,20 @@ #!/bin/sh - PATCH_DIR=`pwd`/src/ozone/patches/ +HACKING_BRANCH=master-ozone echo "Ozone-Wayland: patching Chromium" cd src/ -# making sure these patches were not applied already. if so, purge them -git reset --hard origin/master +# we switch to $HACKING_BRANCH before anything +git ...
bash
d_bash_7550
--- +++ @@ -16,7 +16,7 @@ echo "---> Starting $(tput bold ; tput setaf 2)$imagick installation$(tput sgr0)" -printf "\n" | pecl install imagick +printf "\n" | pecl install imagick-beta #wget https://pecl.php.net/get/$imagick.tgz #tar -zxvf $imagick.tgz
bash
d_bash_7551
--- +++ @@ -5,9 +5,9 @@ cd .. # update to the latest rev -svn update +git pull origin master -new_rev=`svnversion .` +new_rev=`git describe` # up another level out of the source repository cd .. @@ -27,7 +27,7 @@ mkdir build cd build - cmake -DENABLE_DOXYGEN=OFF -DENABLE_APP_BUNDLE_INSTALL=ON...
bash
d_bash_7552
--- +++ @@ -11,4 +11,4 @@ alias itwire='cd ~/dev/bluemix/ITWire' # Blog main dir -alias rl='~/dev/www/reflog/www' +alias rl='cd ~/dev/www/reflog/www'
bash
d_bash_7553
--- +++ @@ -15,8 +15,8 @@ if [ -n "$outdated" ]; then if [ -e "$TERMINAL_NOTIFIER" ]; then lc=$(echo "$outdated" | wc -l) - outdated=$(echo "$outdated" | tail -"$lc") - message=$(echo "$outdated" | head -5) + outdated=$(echo "$outdated" | tail -n "$lc") + message=$(echo "$ou...
bash
d_bash_7554
--- +++ @@ -7,18 +7,18 @@ if [[ "$TF_VERSION" == "tf-nightly" ]] then - pip install tf-nightly; + pip install --user tf-nightly; else - pip install -q "tensorflow==$TF_VERSION" + pip install -q --user "tensorflow==$TF_VERSION" fi # Make sure we have the latest version of numpy - avoid problems we were ...
bash
d_bash_7555
--- +++ @@ -1,7 +1,7 @@ set -e # exit on error -sudo apt-get install pylint sudo apt-get install pychecker sudo apt-get install python-pip +sudo pip install pylint sudo pip install nose sudo pip install flake8 sudo pip install snakefood
bash
d_bash_7556
--- +++ @@ -1,4 +1,5 @@ alias reload!='. ~/.zshrc' alias ..='cd ..' alias g='git' +alias s='gs'
bash
d_bash_7557
--- +++ @@ -1,46 +1,25 @@ #!/bin/bash -# Runs pre-commit tests. -# -# Instead of failing on first error, complete all checks, then fail if need be. -# Echo go's version to verify against go's behavior below. -# Different versions do different things with respect to vendored code. -go version +rc=0 -# Assert stat...
bash
d_bash_7558
--- +++ @@ -1,6 +1,5 @@ #!/bin/sh -echo "$(~/bin/daysuntil 2019-03-25) days - mantid v3.14 release" > ~/.daysuntil.deadlines -echo "$(~/bin/daysuntil 2019-03-31) days - CHKM" >> ~/.daysuntil.deadlines +echo "$(~/bin/daysuntil 2019-03-31) days - CHKM" > ~/.daysuntil.deadlines echo "$(~/bin/daysuntil 2019-04-01) days...
bash
d_bash_7559
--- +++ @@ -10,6 +10,26 @@ return 1 fi +# Paths + +# Set the list of directories that info searches for manuals. +infopath=( + /opt/local/share/info + $infopath +) + +# Set the list of directories that man searches for manuals. +manpath=( + /opt/local/share/man + $manpath +) + +# Set the list of directories...
bash
d_bash_7560
--- +++ @@ -10,8 +10,7 @@ fi # Add the openc_bot to the Gemfile: echo "source 'https://rubygems.org'" >> Gemfile -#echo "gem 'openc_bot', :git => 'https://github.com/openc/openc_bot.git'" >> Gemfile -echo "gem 'openc_bot', :path => '/home/seb/Code/openc_bot'" >> Gemfile +echo "gem 'openc_bot', :git => 'https://git...
bash
d_bash_7561
--- +++ @@ -11,16 +11,17 @@ openssl aes-256-cbc -d -in gradle.properties.enc -out gradle.properties -k $KEY ./gradlew clean build $SWITCHES elif [ $CIRCLE_TAG ]; then - echo -e 'Build Branch for Release => Branch ['$CIRCLE_BRANCH'] Tag ['$CIRCLE_TAG']' - openssl aes-256-cbc -d -in gradle.properties.enc -out...
bash
d_bash_7562
--- +++ @@ -1,9 +1,25 @@ #!/bin/bash + +PROJECT=$1 + +die() { + echo $* + exit 1 +} + +set -e + +[[ -z "${PROJECT}" ]] && die "You must pass a project name in parameter. For example: $0 geocoder" + +docker-compose -p ${PROJECT} rm -sf redis-server +docker volume rm ${PROJECT}_data +docker-compose -p ${PROJECT}...
bash
d_bash_7563
--- +++ @@ -36,6 +36,6 @@ bosh target ${bosh_target} export DEPLOYMENT_NAME=${deployment_name} -./templates/make_manifest warden upstream templates/services-solo.yml templates/jobs-etcd.yml tmp/syslog.yml +./templates/make_manifest warden embedded templates/services-solo.yml templates/jobs-etcd.yml tmp/syslog.yml...
bash
d_bash_7564
--- +++ @@ -1,8 +1,13 @@ #!/bin/bash +set -xe # Update gravatar echo downloading gravatar img... ./gravatar.sh ssebbass@gmail.com # Build & Publish -jekyll build && ipfs name publish $(ipfs add -rq _site/ | tail -1 ) | tee publish +jekyll build +PUBHASH=$(ipfs add -rq _site/ | tail -1 ) +sed -i.bak 's/.*Valu...
bash
d_bash_7565
--- +++ @@ -12,6 +12,7 @@ fi } -for language in $_env_languages; do +for language in "${_env_languages[@]}"; do + echo $language _load_language_path $language done
bash
d_bash_7566
--- +++ @@ -7,7 +7,7 @@ git clone https://github.com/facebook/folly cd folly/folly git fetch -git checkout v0.32.0 +git checkout v0.37.0 autoreconf --install ./configure
bash
d_bash_7567
--- +++ @@ -7,6 +7,9 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & sudo apt-get update +sudo apt-get dist-update +sudo apt-get upgrade +sudo apt-get autoremove sudo apt-get install build-essential bash-completion wget curl vim \ git tree ctags npm sqlite redis-server tmux ...
bash
d_bash_7568
--- +++ @@ -11,3 +11,15 @@ # ruby bundler alias b="bundle " alias be="bundle exec " + +if [ -f $HOME/.pyenv-init.sh ]; then + source $HOME/.pyenv-init.sh +fi + +if [ -f $HOME/.rbenv-init.sh ]; then + source $HOME/.rbenv-init.sh +fi + +if [ -f $HOME/.nodenv-init.sh ]; then + source $HOME/.nodenv-init.sh +f...
bash
d_bash_7569
--- +++ @@ -12,7 +12,7 @@ git clone -b batch-build-fix https://github.com/kost/moloch.git $BUILDDIR echo "cd to dir and build" cd $BUILDDIR -USEPFRING=no ESMEM="512M" DONOTSTART=yes USERNAME=daemon GROUPNAME=daemon PASSWORD=0mgMolochDockerRules5 INTERFACE=eth0 BATCHRUN=yes ./easybutton-singlehost.sh +USEPFRING=no ...
bash
d_bash_7570
--- +++ @@ -1,7 +1,7 @@ #!/bin/sh rabbitmqctl add_vhost "travis.development" -rabbitmqctl add_user travis_worker travis_worker_password +rabbitmqctl add_user travisci_worker travisci_worker_password -rabbitmqctl set_permissions -p "travis.development" travis_worker ".*" ".*" ".*" -rabbitmqctl set_permissions -p...
bash
d_bash_7571
--- +++ @@ -11,6 +11,6 @@ git_path=`which git` pushd $HOME > /dev/null 2>&1 -$git_path fetch --quiet +$git_path pull --quiet popd > /dev/null 2>&1
bash
d_bash_7572
--- +++ @@ -4,25 +4,38 @@ rpm -q python-focus &>/dev/null } +SERVICES="focus nova-billing-heart nova-billing-os-amqp instance-notifier + nova-api nova-consoleauth nova-network nova-compute + nova-novncproxy nova-objectstore nova-scheduler" +PACKAGES="python-focus python-openstackclient-base ...
bash
d_bash_7573
--- +++ @@ -1,7 +1,8 @@ #!/bin/bash +# for Mac/Linux # Install mecab -cd /var/tmp +cd /tmp wget https://mecab.googlecode.com/files/mecab-0.996.tar.gz tar zxfv mecab-0.996.tar.gz cd mecab-0.996 @@ -14,10 +15,12 @@ sudo ldconfig # Install mecab-ipadic -cd /var/tmp +cd /tmp wget https://mecab.googlecode.com/...
bash
d_bash_7574
--- +++ @@ -7,3 +7,10 @@ make && make install +# Work around libpng/libtool/MinGW-w64/Code::Blocks problem on Windows + +cp $BUILD_DIR/include/libpng15/* $BUILD_DIR/include/ || exit 1 +rm -f $BUILD_DIR/lib/libpng.* || exit 1 +cp $BUILD_DIR/lib/libpng15.a $BUILD_DIR/lib/libpng.a || exit 1 +cp $BUILD_DIR/lib/libpn...
bash
d_bash_7575
--- +++ @@ -2,7 +2,7 @@ # Update the copy of dev_tools inside the RMF repository. -SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" +SCRIPT_DIR="$(dirname "$0")" source "${SCRIPT_DIR}/../dev_tools/git/subtree-utils.sh"
bash
d_bash_7576
--- +++ @@ -2,14 +2,21 @@ # stop on failure set -e BACKEND="${1}" -[ "${WEBOOB_WORKDIR}" != "" ] || WEBOOB_WORKDIR="${HOME}/.weboob" -[ "${TMPDIR}" != "" ] || TMPDIR="/tmp" +if [ -z "${WEBOOB_WORKDIR}" ]; then + # use the old workdir by default + WEBOOB_WORKDIR="${HOME}/.weboob" + # but if we can find a v...
bash
d_bash_7577
--- +++ @@ -20,7 +20,7 @@ cd "$BUILD_DIR" git rm -r '*' cd "$ROOT_DIR" -jsdoc -c "$SUPPORT_DIR/jsdoc.conf" -d "$BUILD_DIR" --verbose *.js README.md +jsdoc -c "$SUPPORT_DIR/jsdoc.conf" -t "../jsdoc-theme/catalyst/" -d "$BUILD_DIR" --verbose *.js README.md cd "$BUILD_DIR" git add -A git commit -a -m "Rebuild docu...
bash
d_bash_7578
--- +++ @@ -1,13 +1,14 @@ #!/bin/bash # This script downloads EvoSuite. +VERSION=1.0.3 CWD="$( cd "$(dirname "$(readlink "$0" || printf %s "$0")")" pwd -P )" rm -f "$CWD/evosuite.jar" -wget "http://evosuite.org/files/evosuite-0.2.0.jar" -O "$CWD/evosuite.jar" +wget "https://github.com/EvoSuite/evosuit...
bash
d_bash_7579
--- +++ @@ -5,10 +5,13 @@ git clone http://www.minizinc.org/repos/MiniZincIDE cd MiniZincIDE if [ "$1" == "rotd" ]; then git checkout develop; fi +if [ "$1" == "release" ]; then git checkout release/$2; fi TAG=`git describe --always` DATE=`date "+%Y-%m-%d"` if [ "$1" == "rotd" ] then VERSION=${DATE}-${TAG} +el...
bash
d_bash_7580
--- +++ @@ -11,7 +11,7 @@ } push_to_github() { - git remote add origin https://${GH_TOKEN}@github.com/rslifka/fate_of_all_fools.git > /dev/null 2>&1 + git remote add origin https://${GH_TOKEN}@github.com:rslifka/fate_of_all_fools.git > /dev/null 2>&1 git push --quiet --set-upstream origin master }
bash
d_bash_7581
--- +++ @@ -5,8 +5,7 @@ source $IROOT/lwan.installed return 0; } -#REV='49607addb31879e2aa2b701317773674662315aa' -REV='0a4af6feb3ba1a7a7d6aa122456dd78c4a29853b' +REV='f1cd15c1a1bd15791c9f321fdc8c3ddb8d0e3799' LWAN_HOME=$IROOT/lwan [ ! -e $IROOT/lwan.installed -a -d $LWAN_HOME ] && rm -rf $LWAN_HOME
bash
d_bash_7582
--- +++ @@ -9,15 +9,15 @@ eval "$cmd" actual_return="$?" - echo -n "\`$cmd\` returns $expected_return ... " + printf "\`%s\` returns %s ... " "$cmd" "$expected_return" if [ $expected_return -eq $actual_return ]; then - echo -e "\e[1;32mpassed\e[0m" + printf "\033[1;32mpassed\033[0m\n" else ...
bash
d_bash_7583
--- +++ @@ -9,7 +9,7 @@ for os in linux darwin windows do echo "Building for $os $arch" - env GOOS=$os GOARCH=$arch go build -ldflags "-X main.VERSION=$1" + env GOOS=$os GOARCH=$arch go build -ldflags "-X main.VERSION=${1:-1.0.0}" mkdir $NAME-$os-$arch EXECUTABLE="$NAME" if [ "$os" == "windows" ]; t...
bash
d_bash_7584
--- +++ @@ -1,4 +1,16 @@ #!/bin/bash + +if ! command -v git >/dev/null; then + echo "Git is not installed!!!" >&2 + exit 1 +fi + +if ! git rev-parse --abbrev-ref HEAD | grep -q comp; then + echo "YOUR BRANCH DOES NOT CONTAIN COMP. PLEASE RECONSIDER OR COMMENT ME OUT." 2>&1 + exit 1 +else + echo "Branc...
bash
d_bash_7585
--- +++ @@ -1,5 +1,7 @@ #!/bin/bash -set -e +set -eo pipefail + +dir="$(dirname "$(readlink -f "$BASH_SOURCE")")" image="$1"
bash
d_bash_7586
--- +++ @@ -2,4 +2,6 @@ cd src sh install.sh +cd ../helpers +sh makectags.sh echo "done"
bash
d_bash_7587
--- +++ @@ -5,7 +5,7 @@ export DEPLOY_ENV=$1 export DEPLOY_HOST=$2 -COMPOSE_OPTS="--compress --parallel" +COMPOSE_OPTS="--compress" if [[ "$3" == "--no-cache" ]]; then # Add --no-cache to build to disable cache and rebuild documentation. COMPOSE_OPTS="$COMPOSE_OPTS --no-cache" @@ -24,9 +24,8 @@ ex...
bash
d_bash_7588
--- +++ @@ -1,3 +1,22 @@ +# if you want to use a user besides postgres, +# run `DATABASE_NAME=yourusername source webapp_env.sh` +export DATABASE_NAME=policybrain_local_database +if [ -z ${DATABASE_USER+x} ] +then + echo using database username postgres + export DATABASE_USER=postgres +else + echo using data...
bash
d_bash_7589
--- +++ @@ -14,14 +14,14 @@ yarn test:react-dom:prepare -echo "Running tests on React 15 - Babel ES2015" -yarn test:es2015 -echo "\n\n" +# echo "Running tests on React 15 - Babel ES2015" +# yarn test:es2015 +# echo "\n\n" -echo "Running tests on React 15 - Babel Modern" -yarn test:modern -echo "\n\n" -echo "\n...
bash
d_bash_7590
--- +++ @@ -6,7 +6,7 @@ FROM=/cygdrive/d/BitTorrent\ Sync/Apps/ TO=/cygdrive/e/documents/transparent-language -CMD="rsync --verbose --recursive --checksum --delete --prune-empty-dirs --human-readable --progress --itemize-changes --include='*/' --include='[H-Zh-z]*.mobi' --exclude='*' '$FROM' '$TO'" +CMD="rsync --...
bash
d_bash_7591
--- +++ @@ -26,6 +26,7 @@ # Show we can import it with the new namespace python -c "\ +print('Test loading old model with pmdarima:') import pmdarima as pm from sklearn.externals import joblib modl = joblib.load('model.pkl')
bash
d_bash_7592
--- +++ @@ -11,6 +11,17 @@ tfenv use ${v} if ! check_version ${v}; then echo "Installing latest version ${v}" 1>&2 + exit 1 +fi + +echo "### Install latest version with Regex" +cleanup + +v=$(tfenv list-remote | grep 0.8 | head -n 1) +tfenv install latest:^0.8 +tfenv use latest:^0.8 +if ! check_version ${v}; th...
bash
d_bash_7593
--- +++ @@ -1,5 +1,5 @@ seqcluster cluster -a seqs_map.bam -m seqs_set.ma -g ann_reduced.gtf -o test_out_cluster --db example -ref ../../genomes/genome.fa -seqcluster report -j test_cluster/seqcluster.json -o test_out_report -r ../../genomes/genome.fa +seqcluster report -j test_out_cluster/seqcluster.json -o test_...
bash
d_bash_7594
--- +++ @@ -11,5 +11,4 @@ opam pin add -n --kind=git cervoise . opam install "llvm.$LLVM_VERSION" cervoise.dev -cervoise build-program --src-dir examples TailFact -./a.out +make tests
bash
d_bash_7595
--- +++ @@ -16,6 +16,7 @@ freeglut3-dev libxi-dev libxmu-dev +libbullet-dev libflann-dev libnlopt-dev coinor-libipopt-dev
bash
d_bash_7596
--- +++ @@ -3,7 +3,7 @@ weave_cidr=$1 shift 1 -c=$(docker run --dns=172.17.42.1 $@) +c=$(docker run -d --dns=172.17.42.1 $@) ## We need log ID or name, Swarm doesn't like short IDs whent it tries to match affinity expression c=$(docker inspect --format='{{.Id}}' ${c})
bash
d_bash_7597
--- +++ @@ -20,8 +20,11 @@ cd devel-docs || exit $? (bzip2 -dc "$UPDATES" | tar xf -) || exit $? rm "$UPDATES" || exit $? - Mail -s '[online doc updates]' fdrake@acm.org <<EOF -Development version of documentation updated: -http://python.sourceforge.net/devel-docs/ + Mail -s '[development doc upd...
bash
d_bash_7598
--- +++ @@ -29,7 +29,7 @@ echo "[I] Restoring application stack to most recent backup." cd backups -LATEST_BACKUP=$(ls -1tr *.tar.gz 2>/dev/null | head -n 1) +LATEST_BACKUP=$(ls -1tr *.tar.gz 2>/dev/null | tail -n 1) cd .. docker-compose exec backup app-restore $LATEST_BACKUP &>/dev/null
bash
d_bash_7599
--- +++ @@ -11,5 +11,5 @@ xset m 5 10 & xset b off & skippy-xd & -xflux -z 43201 & +redshift -l 40:-83 -t 6000:4800 & nitrogen --restore #Restores wallpaper
bash