document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_2600
--- +++ @@ -4,14 +4,9 @@ $BASE/new/devstack-gate/devstack-vm-gate.sh -# Ideally devstack would only install dependencies -# rather than starting services, but for now unstack is -# a cheap way of accomplishing the same result. -$BASE/new/devstack/unstack.sh - # Add a rootwrap filter to support test-only # conf...
bash
d_bash_2601
--- +++ @@ -9,7 +9,6 @@ echo '<img class="footer" src="rootlogo_s.gif" alt="root"/></a>' # Doxygen unconditionally adds a space in front of $DOXYGEN_ROOT_VERSION echo 'ROOT'$DOXYGEN_ROOT_VERSION' - Reference Guide Generated on $datetime using Doxygen '`doxygen --version`'.' -echo '© Copyright CERN 2015. All right...
bash
d_bash_2602
--- +++ @@ -1,7 +1,8 @@ #!/bin/sh -echo "- running brunch build" -brunch build -e dist +echo "- running brunch build -e production" +rm -rf public +brunch build -e production echo "- cloning drawing-tool repo into temporary dir" git clone git@github.com:concord-consortium/drawing-tool.git --branch gh-pages __g...
bash
d_bash_2603
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -VELOCITY_TEST_PACKAGES=1 meteor test-packages --driver-package velocity:html-reporter ./ --port 7000 +velocity test-package ./ --port 7000
bash
d_bash_2604
--- +++ @@ -33,5 +33,5 @@ "$mysql" --host="$DB_HOSTNAME" -u"$DB_USER" $pw_option -e 'CREATE DATABASE '$DB_NAME';' check; -"$mysql" --host="$DB_HOSTNAME" -u"$DB_USER" $pw_option $DB_NAME < $DIR/../../schema/php_dev.sql +"$mysql" --host="$DB_HOSTNAME" -u"$DB_USER" $pw_option $DB_NAME < $DIR/../schema/php_dev.sql c...
bash
d_bash_2605
--- +++ @@ -20,9 +20,7 @@ istat-menus iterm2 little-snitch - macpilot namebench - opera private-internet-access silverlight skype
bash
d_bash_2606
--- +++ @@ -1,6 +1,7 @@ #!/bin/sh VERSION="latest" +lein doc (cd doc; make) rm -rf /tmp/futura-doc/
bash
d_bash_2607
--- +++ @@ -17,7 +17,8 @@ yum -y -e1 -d1 install epel-release yum -y -e1 -d1 install rabbitmq-server +rabbitmq-plugins enable rabbitmq_management + service rabbitmq-server start chkconfig rabbitmq-server on -rabbitmq-plugins enable rabbitmq_management
bash
d_bash_2608
--- +++ @@ -45,5 +45,8 @@ # Add the default system path back on at the end. PATH=$PATH:$SYSPATH +# Remove any duplicate entries. +PATH="$(echo $PATH | perl -e 'print join(":", grep { not $seen{$_}++ } split(/:/, scalar <>))')" + # Make it so. export PATH
bash
d_bash_2609
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh aclocal && \ - libtoolize --automake --force && \ + ${LIBTOOLIZE:-libtoolize} --automake --force && \ automake --foreign --add-missing --force && \ autoconf --force
bash
d_bash_2610
--- +++ @@ -36,17 +36,16 @@ do_git_update ntrapy pushd ntrapy -cat > config.js <<EOF -var config = {}; - -config.roush_url = "http://${2}:8080"; -config.db = "ntrapy"; -config.db_dir = "."; -config.secret = "???"; -config.timeout = {short: 2000, long: 30000}; -config.interval = 5000; - -module.exports = config; +...
bash
d_bash_2611
--- +++ @@ -7,6 +7,7 @@ releases=( "5.5.0" "5.5.1" +"5.5.2" ) for i in "${releases[@]}"
bash
d_bash_2612
--- +++ @@ -3,6 +3,7 @@ alias doc="docker" alias img="clear; docker images; echo; docker ps -a" alias pause="docker pause" +alias prune="docker image prune" alias psa="clear; docker ps --all --format \"table {{.Image}}\t{{.Names}}\t{{.Ports}}\t{{.Status}}\"; echo; docker images" alias rmi="clear; docker rmi" al...
bash
d_bash_2613
--- +++ @@ -1,8 +1,8 @@ #!/bin/bash -for in in ../core/masterfiles/lib/3.6/*.cf +for in in ../masterfiles/lib/3.6/*.cf do - out="${in/..\/core\/masterfiles/_json}" - out="${newname/%.cf/.json}" + out="${in/..\/masterfiles/_json}" + out="${out/%.cf/.json}" ../core/cf-promises/cf-promises --policy-output-forma...
bash
d_bash_2614
--- +++ @@ -5,6 +5,10 @@ FORMAT=txt WGET_OPTS="-N --no-check-certificate -nd" LOCALDIR=(~/etherpad-saver/) + +if [ ! -d $LOCALDIR ] ; then + mkdir -p $LOCALDIR +fi wget $WGET_OPTS -P $LOCALDIR $URL/$PAD/export/$FORMAT
bash
d_bash_2615
--- +++ @@ -1,4 +1,10 @@ #!/bin/bash #Prepare container for running the benchmarks -docker build -t benchmark/execution --rm=true . +ARCH=$(uname -p) + +if [[ "$ARCH" == "ppc64le" ]];then + docker build -t benchmark/execution --rm=true -f Dockerfile.ppc64le . +else + docker build -t benchmark/execution --rm=true ...
bash
d_bash_2616
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash -export VERSION=2.0 export CURDIR=$(cd "$(dirname "$0")"; pwd) -export GDAL_DATA=$CURDIR/../gdal_data +#export GDAL_DATA=$CURDIR/../gdal_data +export GDAL_DATA=/usr/share/gdal16 export GEOTIFF_CSV=$GDAL_DATA export PYTHONPATH=$CURDIR/lib:$PYTHONPATH
bash
d_bash_2617
--- +++ @@ -1,8 +1,9 @@ #!/bin/bash set -e -dest="s3://pkmn.help/" -# dest="s3://dev.mockbrian.com/" +cf_distro="E3U8PXS6FWX8U8" +prod="s3://pkmn.help/" +dev="s3://dev.mockbrian.com/" files=( "favicon.ico" @@ -16,5 +17,13 @@ rm -rf dist mkdir dist cp -v "${files[@]}" dist/ + cd dist -s3cmd sync -P ./ "$...
bash
d_bash_2618
--- +++ @@ -1,4 +1,6 @@ #!/bin/sh ./mkcert.sh ac +./mkcert.sh ac-cisco cisco + ./mkcert.sh wtp
bash
d_bash_2619
--- +++ @@ -1,6 +1,6 @@ OS=$(uname -s) if [ "$OS" == "Darwin" ]; then - wget -O mono.pkg http://download.mono-project.com/archive/4.2.1/macos-10-x86/MonoFramework-MDK-4.2.1.102.macos10.xamarin.x86.pkg + wget -O mono.pkg https://download.mono-project.com/archive/4.6.2/macos-10-universal/MonoFramework-MDK-4.6.2.16.ma...
bash
d_bash_2620
--- +++ @@ -10,7 +10,7 @@ purgetrash.sh -nm-applet & +pgrep nm-applet || nm-applet & devilspie & for i in $(seq 1 8)
bash
d_bash_2621
--- +++ @@ -1,7 +1,7 @@ #!/usr/bin/env bash # check to see if the last build was a build commit, don't build if so -if [[ $(git log -1 --pretty=%B) != ":rocket:" ]]; then +if [[ $(git log --oneline -n1) != *":rocket:"* ]]; then # build webpage git checkout master yarn build-prod
bash
d_bash_2622
--- +++ @@ -1,11 +1,11 @@ conda create -n testenv --yes python pip pytest nose source activate testenv -pip install -e '.[plots]' +python -m pip install -e '.[plots]' export SKOPT_HOME=$(pwd) conda install --yes jupyter -pip install pdoc==0.3.2 pygments sphinx sphinx_rtd_theme +pythonp -m pip install pdoc==0....
bash
d_bash_2623
--- +++ @@ -37,5 +37,5 @@ echo PostingCoverage opam install ocveralls -cd _driver +cd _test_build ocveralls --repo_token $COVERALLSTOKEN --git --send ../bisect0001.out
bash
d_bash_2624
--- +++ @@ -6,19 +6,18 @@ echo DS3_SECRET_KEY ${DS3_SECRET_KEY} echo DS3_ACCESS_KEY ${DS3_ACCESS_KEY} -echo "cd /opt" +set -x + cd /opt if [ ${GIT_BRANCH} != "master" ]; then - echo git clone ${GIT_REPO} --branch ${GIT_BRANCH} --single-branch git clone ${GIT_REPO} --branch ${GIT_BRANCH} --single-branch e...
bash
d_bash_2625
--- +++ @@ -1,4 +1,7 @@ -export PERL5LIB=/homes/chicago/kkeller/sdk/kb_sdk/contigcount/lib:$PERL5LIB +script_dir=$(dirname "$(readlink -f "$0")") + +export PERL5LIB=$script_dir/../lib:$PERL5LIB + export KB_TEST_USER_NAME=TEST_USER export TEST_PSWD=TEST_PASSWORD
bash
d_bash_2626
--- +++ @@ -2,6 +2,6 @@ rsync -r dist/* deploy@$server:/data/apps/publishing-api/shared/govuk-content-schemas/ done -for server in $(govuk_node_list -c content_store); do +for server in $(govuk_node_list -c "draft_content_store,content_store"); do rsync -r dist/* deploy@$server:/data/apps/content-store/share...
bash
d_bash_2627
--- +++ @@ -16,7 +16,7 @@ trap finish EXIT for i in {1...5}; - do ssh -Cfo ExitOnForwardFailure=yes bbb@wmd.no -L 12345:localhost:12345 -N + do ssh -Cfo ExitOnForwardFailure=yes -o StrictHostKeyChecking=no bbb@wmd.no -L 12345:localhost:12345 -N PID=$(pgrep -f '12345:localhost:12345') if [ "$PID" -gt 0 ]; ...
bash
d_bash_2628
--- +++ @@ -5,8 +5,6 @@ project_root=$($script_path/../../dev-env/builddir.sh measure-repo) build_dir=$($project_root/dev-env/builddir.sh stdlib-dictionary-perf) - -rm $build_dir/* # We just want the standard library for testing so compile an empty source file echo "" > $build_dir/empty-source.reuse
bash
d_bash_2629
--- +++ @@ -1,4 +1,5 @@ #!/usr/bin/env bash +set -e # stop on error # Adapted from http://stackoverflow.com/a/4774063 pushd `dirname $0` > /dev/null
bash
d_bash_2630
--- +++ @@ -1,10 +1,7 @@ #!/usr/bin/env bash usage() { - cat <<-EndUsage - Usage: tidyup <dir1> <dir2> ... <dirN> - Tidies ~/<dirN> to ~/Backups/<dirN> - EndUsage + echo 'usage: tidyup source_directory target_directory' exit 1 }
bash
d_bash_2631
--- +++ @@ -1,13 +1,4 @@ #!/bin/bash - -if [[ -z ${GITHUB_TOKEN+x} || -z ${DEPLOY_ENV+x} || -z ${APP+x} || -z ${RAILS_ENV+x} ]]; then - echo "GITHUB_TOKEN, DEPLOY_ENV, APP and RAILS_ENV must be in the environment. Exiting." - exit 1 -fi -if [ ! -d "configurator" ]; then git clone https://${GITHUB_TOKEN}:x-oauth-bas...
bash
d_bash_2632
--- +++ @@ -19,5 +19,5 @@ # Set browser -export BROWSER=google-chrome-stable +export BROWSER=firefox
bash
d_bash_2633
--- +++ @@ -11,7 +11,7 @@ if [ ! -f $HOME/.ssh/config ]; then echo "IdentityFile $identityFilePath" > $HOME/.ssh/config - chmod 0600 config + chmod 0600 $HOME/.ssh/config else sed -i -e "1i IdentityFile $identifyFilePath" $HOME/.ssh/config fi
bash
d_bash_2634
--- +++ @@ -5,8 +5,8 @@ image="$1" -# since we have curl in the liberty image, we'll use that -clientImage="$1" +# Use the alpine image since it is small and has wget in it that we can use +clientImage="alpine:latest" serverImage="$1"
bash
d_bash_2635
--- +++ @@ -20,4 +20,4 @@ sudo mv selenium-server-standalone-2.47.1.jar /usr/local/bin/selenium.jar echo "---> Launching Selenium-Server-Standalone..." -java -jar /usr/local/bin/selenium.jar -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver > /dev/null & +nohup java -jar /usr/local/bin/selenium.jar -Dwebdrive...
bash
d_bash_2636
--- +++ @@ -12,14 +12,15 @@ WRKDIR=$(mktemp -d) for emulator in "${versions[@]}"; do - if [ -f ${OWNPATH}/${emulator}/Dockerfile ]; then + if [ -f ${OWNPATH}/${emulator}/Dockerfile -a -f ${OWNPATH}/${emulator}/base ]; then arch=$(echo ${emulator} | cut -f2 -d-) + base=$(cat ${OWNPATH}/${emulator...
bash
d_bash_2637
--- +++ @@ -26,7 +26,7 @@ getExtension(){ local file=${1} - echo ${file/*[.]/} + StringUtil strip ${file} *[.] } getStatus(){
bash
d_bash_2638
--- +++ @@ -17,12 +17,13 @@ package="$1" tag="${2-"$package":latest}" ghc_options=${ghc_options:--O2 -threaded -static -optl-pthread -optl-static -optl-s} +ld_options=${ld_options:--static -pthread} socket=/var/run/docker.sock file=Dockerfile echo "Building $package" until cabal install --jobs --only-depende...
bash
d_bash_2639
--- +++ @@ -13,6 +13,7 @@ fi # Install homebrew packages -brew install grc coreutils vim tmux reattach-to-user-namespace the_silver_searcher tree +brew install grc coreutils tmux reattach-to-user-namespace the_silver_searcher tree +brew install vim --override-system-vim exit 0
bash
d_bash_2640
--- +++ @@ -7,8 +7,6 @@ } function fjql() { - set -e - ticket=$({for ((req=0;req<5;req++)); do jql $1 $req & done} | fzf --no-hscroll +m | cut -d ':' -f 1)
bash
d_bash_2641
--- +++ @@ -1,10 +1,12 @@ pkg_name=docker +pkg_description="The Docker Engine" pkg_origin=core -pkg_version=1.11.2 +pkg_version=1.12.3 pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" pkg_license=('Apache-2') pkg_source=https://get.docker.com/builds/Linux/x86_64/${pkg_name}-${pkg_version}.tgz -pkg_sh...
bash
d_bash_2642
--- +++ @@ -9,6 +9,8 @@ download=`echo $speedtestResult | grep -E "Download: " | sed 's/.*Download: \([0-9]\.[0-9][0-9]*\).*/\1/' ` upload=`echo $speedtestResult | grep -E "Upload: " | sed 's/.*Upload: \([0-9]\.[0-9][0-9]*\).*/\1/' ` ping=`echo $speedtestResult | grep -E "Hosted by " | sed 's/.*Hosted by \S* (\w*)...
bash
d_bash_2643
--- +++ @@ -4,24 +4,42 @@ ppa="ppa:colin-duquesnoy/experimental" name="qdarkstyle" version="1.16" -debian_version=1 # read pgp key from gpg_key file gpg_key=`cat gpg_key` # generate debian source package and .orig.tar.gz -python3 setup.py --command-packages=stdeb.command sdist_dsc --suite trusty --debian-ve...
bash
d_bash_2644
--- +++ @@ -9,10 +9,10 @@ npm i 'd3@^4' # Path of d3.js is different in d3v4 -sed -i -e 's#node_modules/d3/dist/d3\.js#node_modules/d3/build/d3.js#' Gruntfile.js +sed -i.orig -e 's#node_modules/d3/dist/d3\.js#node_modules/d3/build/d3.js#' Gruntfile.js # One of the test case varies for d3 lower than v5.1 -sed -...
bash
d_bash_2645
--- +++ @@ -30,7 +30,7 @@ for name in "$@" do file="/etc/yum.repos.d/${name}.repo" - [[ -d "$file" ]] || continue + [[ -f "$file" ]] || continue koopa::rm -S "$file" done return 0
bash
d_bash_2646
--- +++ @@ -5,7 +5,7 @@ sshagentstart() { echo "Initialising new SSH agent..." - /usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" + ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" echo SSH Agent started chmod 600 "${SSH_ENV}" . "${SSH_ENV}" > /dev/null
bash
d_bash_2647
--- +++ @@ -6,8 +6,7 @@ set -e # exit with nonzero exit code if anything fails # Only build docs on master branch -if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "master" && - $TRAVIS_PYTHON_VERSION == 3.4 ]] ; then +if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "master" ]] ; then e...
bash
d_bash_2648
--- +++ @@ -19,7 +19,7 @@ cd tensorflow_cc/tensorflow_cc/build # build and install -cmake -DLOCAL_RAM_RESOURCES=2048 -DLOCAL_CPU_RESOURCES=1 .. +cmake -DLOCAL_RAM_RESOURCES=2048 -DLOCAL_CPU_RESOURCES=2 .. make rm -rf /home/tensorflow_cc/.cache rm -rf /root/.cache
bash
d_bash_2649
--- +++ @@ -1,2 +1,2 @@ #!/bin/sh -java -cp $OMAR_HOME/lib/joms.jar org.ossim.oms.apps.ImageStagerTest $1 +java -cp $OMAR_HOME/../../plugins/omar-oms/lib/joms.jar org.ossim.oms.apps.ImageStagerTest $1
bash
d_bash_2650
--- +++ @@ -7,4 +7,5 @@ ansible-playbook -i localhost oh-my-laptop.yml --extra-vars="ansible_become_pass=" # run test +gem install minitest ruby tests/test-linux.rb
bash
d_bash_2651
--- +++ @@ -3,5 +3,6 @@ source dependencies.sh +mkdir -p ~/.byond/bin wget -O ~/.byond/bin/rust_g "https://github.com/tgstation/rust-g/releases/download/$RUST_G_VERSION/librust_g.so" chmod +x ~/.byond/bin/rust_g
bash
d_bash_2652
--- +++ @@ -16,11 +16,11 @@ # Hy is complicated, and uses Python's internal AST representation directly, and thus Hy releases usually lag behind a little on major Python releases (and we don't want that to gum up our tests) # see https://github.com/hylang/hy/issues/1111 for example breakage -if ! "$python" -c 'im...
bash
d_bash_2653
--- +++ @@ -1,9 +1,9 @@ #!/usr/bin/env bash -# On SQLite we run the tests in parallel. This speeds things up -# substantially, but is currently only safe for sqlite, since it -# uses an in memory (and therefore per-process) database. -# Temporarily disabled till we figure out how to solve https://github.com/CCI-M...
bash
d_bash_2654
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -java -jar basking-*-jar-with-dependencies.jar "$@" +java -Dfile.encoding=UTF-8 -jar basking-*-jar-with-dependencies.jar "$@"
bash
d_bash_2655
--- +++ @@ -1,4 +1,3 @@ -echo "nix/interactive.sh" if [ -z "$BASHRC_D_NO_NIX" ] \ && [ "$NIX_PATH" ] \ && [ -d "$HOME"/.nix-profile/share/man ]
bash
d_bash_2656
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash -x source "$HOME/.rvm/scripts/rvm" rvm use 1.9.2@unix_cli -jenkins/jenkins_run.sh +ci/jenkins_run.sh
bash
d_bash_2657
--- +++ @@ -23,6 +23,7 @@ fab -p $pwd target.$2 -R main,service,checker,admin app.service.start_elasticsearch fab -p $pwd target.$2 -R main,service,checker,admin app.service.deploy_sesame fab -p $pwd target.$2 -R main,service,checker,admin app.main.all app.checker.all app.admin.all app.service.all +fab -p $pwd tar...
bash
d_bash_2658
--- +++ @@ -9,3 +9,6 @@ # install sails.js npm install --global sails@0.10.5 + +rsync -av /vagrant/web /var/web +pushd /var/web && npm install && popd
bash
d_bash_2659
--- +++ @@ -28,7 +28,8 @@ [db-ci] name=db-ci baseurl=file://${repodir} -enabled=0 +enabled=1 +priority=1 gpgcheck=0 EOF
bash
d_bash_2660
--- +++ @@ -7,7 +7,7 @@ FULL_HOURS=$((${MINUTES} / 60)) HOURS_MINS="${FULL_HOURS}:$(printf "%02d" $((${MINUTES} - ${FULL_HOURS} * 60)))" - echo "$(date '+%Y-%m-%d %H:%M:%S')\tLOGOUT\t${HOURS_MINS}\t${MINUTES} minutes" >> ~/bin/workinghours/$(date '+%Y-%m').log + echo "$(date '+%a +%Y-%m-%d %H:%M:%S')\tLOGOU...
bash
d_bash_2661
--- +++ @@ -1,8 +1,10 @@ #!/bin/bash + +SOLVE_FIELD="${PANDIR}/astrometry/bin/solve-field" if [[ $# == 1 ]]; then echo "Using options: --guess-scale --no-plots --downsample 3 --overwrite" - solve-field --guess-scale --no-plots --downsample 3 --overwrite $1 + ${SOLVE_FIELD} --guess-scale --no-plots --do...
bash
d_bash_2662
--- +++ @@ -17,7 +17,7 @@ if test $TAG_NAME; then npm version $(echo $TAG_NAME | sed 's/^v\(.*\)$/\1/') - if [[ $TAG_NAME =~ $LATEST_TEST]]; then + if [[ $TAG_NAME =~ $LATEST_TEST ]]; then NPM_TAG=latest else NPM_TAG=next @@ -26,7 +26,7 @@ npm ...
bash
d_bash_2663
--- +++ @@ -11,5 +11,5 @@ cd pls-api/pls/web; mvn clean package docker:build; cd -; cd registration-api/registration; mvn clean package docker:build; cd -; cd try-policy-api/tryPolicy; mvn clean package docker:build; cd -; -cd iexhub/iexhub; ...
bash
d_bash_2664
--- +++ @@ -11,5 +11,7 @@ export PGDATABASE=${API_DATABASE_NAME:=api} export PGUSER=${API_DATABASE_USERNAME:=api} rm -rf app/cache/* +# remove behat cache as it's mounted in a persistent container +rm -rf /tmp/behat/* /sbin/setuser app bin/behat --config=tests/behat/behat.yml --suite=admin --profile=${PROFILE:=...
bash
d_bash_2665
--- +++ @@ -1,7 +1,7 @@ #!/usr/bin/env bash # # Zinc, the bare metal stack for rust. -# Copyright 2014 Vladimir "farcaller" Pouzanov <farcaller@gmail.com> +# Copyright 2014 Matt Coffin <mcoffin13@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in...
bash
d_bash_2666
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env sh -ELM_BOILERPLATE_DIR=~/trap/elm/boilerplate +ELM_BOILERPLATE_DIR=~/elm-boilerplate function error() { >&2 echo $*
bash
d_bash_2667
--- +++ @@ -1,5 +1,7 @@ #!/bin/sh set -e + +# NOTE: this script shouldn't actually run with --init, it's more for documentation if ! git --git-dir ../babel/.git rev-parse 2>/dev/null ; then (cd .. @@ -12,11 +14,14 @@ git pull git subtree split -P packages/babel-traverse master -b subtree_babel-traverse ...
bash
d_bash_2668
--- +++ @@ -1,16 +1,14 @@ #!/bin/bash -if [ "$TRAVIS_BRANCH" == "master" ]; then +# Parameters: +# TAG - The name of the tag to use for publishing in Dockerhub +# +function deploy_on_dockerhub { echo "=======================================" echo "Authelia will be deployed on Dockerhub." echo "===========...
bash
d_bash_2669
--- +++ @@ -13,6 +13,11 @@ cmd=$EDITOR else project=$* + fi + + if [[ -z "$project" ]]; then + echo "You have to specify a project name." + return fi for basedir ($PROJECT_PATHS); do
bash
d_bash_2670
--- +++ @@ -15,4 +15,3 @@ export LOG_4S="/tmp/4store.log" export PORT="8212" export RWW_LD="$HOME/.webbox/data/rww" -mkdir -p "$RWW_LD"
bash
d_bash_2671
--- +++ @@ -1,7 +1,12 @@ #!/bin/bash +env=$1 +if [ "x$env" != "x" ]; then + env="$env": +fi +namespace="nyhetis:db:"$env -echo "number of relevant news" -redis-cli KEYS "nyhetis:db:news:all" | xargs redis-cli SCARD +echo "number of relevant news:" $namespace"news:all" +redis-cli KEYS $namespace"news:all" | xargs...
bash
d_bash_2672
--- +++ @@ -8,7 +8,9 @@ alias zathura="zathura --fork" exifdiff() { - [ "$#" -eq 2 ] || { echo "usage: $0 OLD NEW" >&2 && return 2 } + [ "$#" -eq 2 ] || { + echo "usage: $0 OLD NEW" >&2 && return 2 + } diff <(exiftool "$1") <(exiftool "$2") }
bash
d_bash_2673
--- +++ @@ -1,8 +1,16 @@ +#Vagrant Bootstrap for Ubuntu Server + apt-get update #Build essentials for uwsgi -apt-get install build-essential python -apt-get install mongodb +sudo apt-get install build-essential python + +#Install MongoDB +sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 ...
bash
d_bash_2674
--- +++ @@ -4,10 +4,11 @@ # where backup.pdf should be the pdf created with paperbackup.py RESTOREPROG=$(dirname $0)/paperrestore.sh +PAPERB2SUMPROG="$(dirname $0)/paperbackup.py --b2sum" rPDF=$( $RESTOREPROG $1 ) -bPDF=$(echo "$rPDF" | b2sum | cut -d ' ' -f 1 ) +bPDF=$(echo "$rPDF" | $PAPERB2SUMPROG ) bE...
bash
d_bash_2675
--- +++ @@ -8,7 +8,7 @@ # default. export XWIN_ARGS="" if [ `uname` == Darwin ]; then - export XWIN_ARGS="--disable-xlib -disable-xcb --disable-glitz" + export XWIN_ARGS="--disable-xlib -disable-xcb --disable-glitz" fi ./configure \
bash
d_bash_2676
--- +++ @@ -8,7 +8,7 @@ sudo add-apt-repository -y "ppa:lukasaoz/openssl101-ppa" sudo apt-get -y update -sudo apt-get install -y --force-yes openssl libssl1.0.0 libcrypto1.0.0 +sudo apt-get install -y --force-yes openssl libssl libcrypto pip install . pip install -r test_requirements.txt
bash
d_bash_2677
--- +++ @@ -1,6 +1,7 @@ #!/bin/bash # Script for adding package to repository and signing it DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +KEYID="24045008" . ${DIR}/common_inc.sh cd ${GLB_BUILD}/deb_dist @@ -9,11 +10,14 @@ dput local globaleaks*changes mini-dinstall --batch -echo "[+] Copying GL...
bash
d_bash_2678
--- +++ @@ -18,7 +18,7 @@ make ) -for n in sch_fifo_qsize sch_pi2 sch_pie_qsize tcp_dctcp; do ( +for n in sch_fifo_latest_qsize sch_pi2 sch_pie_latest_qsize sch_fq_codel_latest_qsize tcp_dctcp; do ( echo echo "---- BUILDING AND LOADING: $n ----" echo
bash
d_bash_2679
--- +++ @@ -1,6 +1,6 @@ #! /bin/bash # Image and movie filetypes -filetypes=('*.jpg' '*.JPG' '*.webm') +filetypes=('*.jpg' '*.JPG' '.png' '.PNG' '*.webm') movietypes=('*.avi' '*.AVI' '*.MOV') echo "create right dirs" mkdir images
bash
d_bash_2680
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash if [ $PLATFORM == clj ]; then lein do clean, javac, test
bash
d_bash_2681
--- +++ @@ -15,22 +15,29 @@ $mirror if [ "$?" == "0" ]; then echo "Successfully made chroot." + cat << EOF > $target/etc/apt/sources.list deb $mirror $release main restricted universe multiverse deb $mirror $release-updates main restricted universe multiverse deb-src $mirror $release main restric...
bash
d_bash_2682
--- +++ @@ -1,3 +1,3 @@ #!/usr/bin/env bash set -e; -hfab $1 querygrid.install:local_path=$2,user_perm_space=1e13,user_spool_space=1e13,user_temp_space=1e13 +hfab $1 querygrid.install:local_path=$2,user_perm_space=1e13,user_spool_space=3e13,user_temp_space=1e13
bash
d_bash_2683
--- +++ @@ -12,9 +12,13 @@ git pull npm install make server -mv build-production build-production.obsolete +if [[ -e build-production ]] ; then + mv build-production build-production.obsolete +fi mv build build-production -rm -r build-production.obsolete +if [[ -e build-production.obsolete ]] ; then + rm -r bui...
bash
d_bash_2684
--- +++ @@ -15,7 +15,7 @@ mv -f "$JHIPSTER_SAMPLES"/uaa/.yo-rc.json "$UAA_APP_FOLDER"/ cd "$UAA_APP_FOLDER" yarn link generator-jhipster - yo jhipster --force --no-insight --with-entities --skip-checks + jhipster --force --no-insight --with-entities --skip-checks ls -al "$UAA_APP_FOLDER" fi...
bash
d_bash_2685
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env bash + +set -o errexit +set -o nounset +set -o pipefail docker login -u "$DOCKER_USER" -p "$DOCKER_PASS" docker buildx build --platform linux/amd64 -t $GITHUB_REPOSITORY:latest .
bash
d_bash_2686
--- +++ @@ -9,7 +9,7 @@ echo "https://github.com/bell-sw/Liberica/releases/download/11.0.15.1+2/bellsoft-jdk11.0.15.1+2-linux-amd64.tar.gz" ;; java17) - echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.3%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.3_7.tar.gz" + echo "https://g...
bash
d_bash_2687
--- +++ @@ -8,6 +8,7 @@ sed 's/java version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q') [ "$JAVA_VER" -gt 16 ] || die "Java version must be greater than 1.6." +mkdir -p ../data cd ../data stdbuf -i0 -o0 -e0 \
bash
d_bash_2688
--- +++ @@ -1,5 +1,10 @@ #!/bin/sh # This is useful because it prints out all of the source files. Useful for # greps. -find www include lib tools utils -name \*.\[cdhyl\]\* | grep -v Lexer.cpp | grep -v llvmAsmParser.cpp | grep -v llvmAsmParser.h | grep -v '~$' | grep -v '\.ll$' | grep -v .flc | grep -v Sparc.bu...
bash
d_bash_2689
--- +++ @@ -3,6 +3,7 @@ if [ ! -d "/var/www/$1/" ]; then cd /var/www/ git clone ${2} ${1} +git -c advice.detachedHead=false checkout ${3} exit fi cd /var/www/$1/
bash
d_bash_2690
--- +++ @@ -1,9 +1,62 @@ +docker_psa() { + clear + + ps_result=$(docker ps --all --format "table {{.Image}}\t{{.Names}}\t{{.Ports}}\t{{.Status}}") + ps_table_header=$(echo "${ps_result}" | head --lines=1) + ps_table_rows_up=$( + echo "${ps_result}" | + tail --lines=+2 | + \grep "Up" |...
bash
d_bash_2691
--- +++ @@ -1,5 +1,6 @@ #!/bin/bash +echo '\n\nPlease use yours Github credentials.' read -p "Username:" username read -s -p "Password:" password
bash
d_bash_2692
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -javadoc -private -sourcepath src/main/java:src/test/java:src/jmh/java -use -version -author -d doc org.numenta.nupic org.numenta.nupic.util org.numenta.nupic.model org.numenta.nupic.research org.numenta.nupic.integration org.numenta.nupic.encoders org.numenta.nupic.algorithms o...
bash
d_bash_2693
--- +++ @@ -2,9 +2,11 @@ # $1 is expected to be $TRAVIS_OS_NAME +./Configure dist if [ "$1" == osx ]; then - make -f Makefile.in \ - DISTTARVARS="NAME=_srcdist TAR_COMMAND='\$\$(TAR) \$\$(TARFLAGS) -s \"|^|\$\$(NAME)/|\" -T \$\$(TARFILE).list -cvf -' TARFLAGS='-n' TARFILE=_srcdist.tar" SHELL='sh -vx' dist +...
bash
d_bash_2694
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash export PHP_HOME=${IROOT}/php-5.5.17 -export PHP_FPM=${PHP_HOME}/bin/php-fpm +export PHP_FPM=${PHP_HOME}/bins/php-fpm export NGINX_HOME=${IROOT}/nginx sed -i 's|127.0.0.1|'"${DBHOST}"'|g' app/config/database.php
bash
d_bash_2695
--- +++ @@ -5,9 +5,15 @@ exit_code=0 +validate() { + case $1 in + *) "./src/0$index-"* "$commit_message_file" ;; + esac +} + for index in $(seq 6) do - "./src/0$index-"* "$commit_message_file" || exit_code=$(( exit_code + $? )) + validate "$index" || exit_code=$(( exit_code + $? )) done exit "$exit_...
bash
d_bash_2696
--- +++ @@ -22,3 +22,6 @@ # Set the timezone; see `sudo systemsetup -listtimezones` for other values sudo systemsetup -settimezone "Europe/Berlin" > /dev/null + +# Disable local Time Machine backups +hash tmutil &> /dev/null && sudo tmutil disablelocal
bash
d_bash_2697
--- +++ @@ -12,9 +12,6 @@ rm -rf $HOME/.vimrc fi -git clone git://github.com/jvc26/dotfiles.git - -cd $HOME/dotfiles git submodule init git submodule update
bash
d_bash_2698
--- +++ @@ -4,6 +4,6 @@ rgw_unit=$(systemctl list-unit-files | awk '/radosgw/ {print $1}') # Restart the rgw systemd unit -if [ -z "$rgw_unit" ]; then +if [ -n "$rgw_unit" ]; then systemctl restart "$rgw_unit" fi
bash
d_bash_2699
--- +++ @@ -10,6 +10,7 @@ echo $version | xargs mkdir cp -Rv * "$version" cd "$version" +rm -rf vendor/ curl -sS https://getcomposer.org/installer | php php composer.phar install --no-dev rm composer.phar
bash