document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_13500
--- +++ @@ -27,7 +27,7 @@ fetch_dataset() { if [ ! -d $shared_data_dir ] then - curl -SL https://raw.githubusercontent.com/raviqqe/tensorflow/patch-1/tensorflow/examples/how_tos/reading_data/convert_to_records.py | + curl -SL https://github.com/tensorflow/tensorflow/raw/master/tensorflow/examples/how_tos...
bash
d_bash_13501
--- +++ @@ -6,4 +6,5 @@ echo "Attempting to fetch Cisco Spark SDK" mkdir -p Project/ git clone -b $TRAVIS_PULL_REQUEST_BRANCH --recursive https://github.com/RichLogan/CiscoSpark-UnitySDK.git Project -echo "SDK Ready" +cd Project +echo "SDK Ready on branch:" $(git rev-parse --abbrev-ref HEAD)
bash
d_bash_13502
--- +++ @@ -5,5 +5,5 @@ parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) cd "$parent_path" -docker build -f Dockerfile . -t cram +docker build -f Dockerfile . -t ergs/cram docker run -v "$parent_path/../../logs":/root/transmutagen/logs -v "$parent_path/../../plots":/root/transmutagen/plots -v "$pare...
bash
d_bash_13503
--- +++ @@ -16,7 +16,7 @@ cmake ../ -DCMAKE_INSTALL_PREFIX=$PREFIX make install +cp "$PREFIX"/share/pkgconfig/eigen3.pc "$PREFIX"/lib/pkgconfig/ cd ../../.. -cp share/pkgconfig/eigen3.pc lib/pkgconfig/ rm -rf tmp
bash
d_bash_13504
--- +++ @@ -6,11 +6,12 @@ then echo "$(cat /tmp/satis | grep -A 2 'InvalidRepositoryException')" > /tmp/satisException export exceptionSize="$(wc -c < '/tmp/satisException')"; - if [ $exceptionSize > 1 ]; + if [ $exceptionSize -gt 1 ]; then mail -s "Something went wrong exposing your pa...
bash
d_bash_13505
--- +++ @@ -1,4 +1,18 @@ #!/bin/bash +set -e +set -x + +#Assure FUSE is checked out git submodule init deps/fuse git submodule update deps/fuse + +#Assure TSK is built +if [ ! -r "deps/sleuthkit/build/include/libtsk.h" ]; then + echo "Note: Building TSK..." >&2 + git submodule init deps/sleuthkit + git submod...
bash
d_bash_13506
--- +++ @@ -3,19 +3,27 @@ # Create users. # Needs user interaction +function user_exists { + id -u $1 >/dev/null 2>&1 + echo $? +} -user_exists=$(id -u 'fac' >/dev/null 2>&1; echo $?) - -if [ $user_exists -eq 0 ]; then +if [ $(user_exists fac) -eq 0 ]; then echo 'fac user already exists' else + # echo 'fac u...
bash
d_bash_13507
--- +++ @@ -28,6 +28,10 @@ else ver="no_version" fi +echo "#ifdef SHIFT_CODE_FOR_TEST" +echo "#define VERSION \"${ver}_shift\"" +echo "#else" echo "#define VERSION \"${ver}\"" +echo "#endif" echo "#define DATE \"`date '+%F %T'`\"" echo "#define BUILDER \"${USER}@`hostname`\""
bash
d_bash_13508
--- +++ @@ -1,11 +1,4 @@ -#!/bin/bash -# -# Usage: -# ./demo.sh <function name> - -set -o nounset -set -o pipefail -set -o errexit +#!/bin/sh LEFT='[' RIGHT=']'
bash
d_bash_13509
--- +++ @@ -4,7 +4,7 @@ # generate configuration, cert, and password if this is the first run # if [ ! -f /var/tmp/zipline_init ] ; then - jupyter notebook --generate-config + jupyter notebook --allow-root --generate-config if [ ! -f ${SSL_CERT_PEM} ] ; then openssl req -x509 -nodes -days 365 -...
bash
d_bash_13510
--- +++ @@ -5,8 +5,8 @@ /usr/bin/perl -e "use Cwd;print Cwd::abs_path(@ARGV[0])" "$0"; } -CONTENTS="$(command dirname "$(command dirname "$(command dirname "$(command dirname "$(command realpath "$0")")")")")" -BINARY_NAME="$(LSCOLORS= CLICOLOR= command ls "$CONTENTS/MacOS/")" +CONTENTS="$(command dirname "$(co...
bash
d_bash_13511
--- +++ @@ -1,12 +1,17 @@ test::func_getchildpids() { local pids=() func::getchildpids pids - EXPECT_EQ 0 "${#pids[*]}" + EXPECT_TRUE [ "${#pids[*]}" -le 1 ] - sleep 10 & - local child_pid="$!" + local child_pids=() + for i in {1..10}; do + sleep 10 & + child_pids+=("$!") + done func::getchil...
bash
d_bash_13512
--- +++ @@ -23,10 +23,22 @@ virtualenv -p /usr/local/bin/python env source env/bin/activate +# install cython separately (doesn't work in requirements.txt for me) +pip install- --upgrade cython + # install the required modules #pip install --ignore-installed --upgrade -r requirements.txt pip install --ignore-i...
bash
d_bash_13513
--- +++ @@ -4,6 +4,10 @@ CONCOURSE_ROOT="$(pwd)" chown -R bosh "${CONCOURSE_ROOT}" +# Concourse explicitly changes ownership of the home directory to root, which prevents +# creating go cache directories under there. +chown bosh /home/bosh + cd "${CONCOURSE_ROOT}/bosh-agent" -su bosh -c "env PATH=~bosh/go/bin:...
bash
d_bash_13514
--- +++ @@ -6,6 +6,7 @@ # Homebrew recipes recipes=( + Caskroom/cask/karabiner-elements Caskroom/cask/unetbootin arduino-cli bison
bash
d_bash_13515
--- +++ @@ -2,4 +2,4 @@ WORKSPACE=$1 cd $WORKSPACE -nosetests3 test/unit/connectors/*.py test/unit/*.py test/functional/*.py -v --stop --with-xunit --with-timer --timer-no-color --with-coverage --cover-erase --cover-xml --cover-package=IM +nosetests3 test/unit/connectors/*.py test/unit/*.py test/functional/*.py -...
bash
d_bash_13516
--- +++ @@ -22,3 +22,5 @@ function aw() { awk "{print \$${1:-1}}" $2; } + +alias venv='source ~/src/venvs/main/bin/activate'
bash
d_bash_13517
--- +++ @@ -5,10 +5,10 @@ | grep version \ | head -1 \ | awk -F: '{ print $2 }' \ - | sed 's/[",]//g') + | sed 's/[", ]//g') if [ -e $CONFIG ]; then - sed to replace version in config.xml + echo "sed to replace version in config.xml" sed -i '' "s/\(widget.*version=\"\)\([0-9,.]*\)\"/\1$NEW_VE...
bash
d_bash_13518
--- +++ @@ -11,7 +11,7 @@ -DjmeterCsv=src/test/resources/csv/jmeter/10_transactions.csv \ > $ACTUAL_RESULT -sed 's/^\[INFO] //g' $ACTUAL_RESULT | sed '1,29d' | sed '5,$d' | grep -v '\-\-\-\-\-\-\-\-\-\-\-\-\-' > $ACTUAL_RESULT_PARSED +sed 's/^\[INFO] //g' $ACTUAL_RESULT | sed '1,29d' | sed '5,$d' > $ACTUA...
bash
d_bash_13519
--- +++ @@ -32,17 +32,6 @@ FAIL=1 fi -for i in `find . -name "*.yml" | sed '/ansible/d'` - do - python -c "import sys,yaml; yaml.load(open('$i'))" $i > /dev/null - if [[ $? -ne 0 ]]; then - echo "ERROR parsing $i" - FAIL=1 - else - echo "YAML syntax verified" - fi - done - if [ "$F...
bash
d_bash_13520
--- +++ @@ -12,7 +12,7 @@ $SUDO docker run -d --name postgres -v ${POSTGRES_DIR}:/var/lib/postgresql/data postgres # Postgres needs some time to startup -sleep 5 +sleep 10 # Initialise the database $SUDO docker exec postgres sh -c "su postgres --command 'createuser -d -r -s taiga'"
bash
d_bash_13521
--- +++ @@ -6,6 +6,13 @@ echo -n "Encrypted file password: " read -s ENCRYPTED_FILE_PASSWORD echo +echo -n "Repeat Encrypted file password: " +read -s ENCRYPTED_FILE_PASSWORD2 +echo +if [ "${ENCRYPTED_FILE_PASSWORD}" != "${ENCRYPTED_FILE_PASSWORD2}" ]; then + echo "Passwords don't match! Exiting" + exit 1 +fi r...
bash
d_bash_13522
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env bash -set -eu +set -e pushd ${BOSH_DEPLOYMENT_PATH} > /dev/null node_number=$1
bash
d_bash_13523
--- +++ @@ -35,5 +35,6 @@ rm $TMP grep default_ web2py/routes.py -# Kludge in case OPENTREE_DEFAULT_APPLICATION is set to 'welcome' +# Kludge in case OPENTREE_DEFAULT_APPLICATION is set to 'welcome' or (more likely) 'phylesystem' cp -p repo/opentree/webapp/static/robots.txt web2py/applications/welcome/static/ +c...
bash
d_bash_13524
--- +++ @@ -4,12 +4,12 @@ echo "session.lastvalidation=session.lastvalidation" > ${LDAP_HOME}/crowd.properties \ && echo "session.tokenkey=session.tokenkey" >> ${LDAP_HOME}/crowd.properties \ && echo "crowd.server.url=${CROWD_URL}/services/" >> ${LDAP_HOME}/crowd.properties \ - && echo "application.name...
bash
d_bash_13525
--- +++ @@ -1,7 +1,9 @@ #!/usr/bin/env bash -# only run pycodestyle on sqlite env -if [ $DB = sqlite ]; then +# If we're running in CI, only run pycodestyle in the sqlite env. +# If the DB variable is undefined we assume a developer has invoked +# this script directly. +if [ -z "$DB" ] || [ "$DB" = sqlite ]; then ...
bash
d_bash_13526
--- +++ @@ -1,27 +1,9 @@ #!/bin/bash -# Peripheral devices must be paired or on the favourites list and their name must end with "Keyboard" or "Trackpad" - -KEYBOARD_ADDRESS=$(blueutil --paired --format json | jq -r '.[] | select(.name | endswith("Keyboard")) | .address') -[ -n "${KEYBOARD_ADDRESS}" ] || KEYBOARD_...
bash
d_bash_13527
--- +++ @@ -17,7 +17,7 @@ setCppcheckTriggerVars() { CPPCHECK_BLDRVERSION_STD=${CPPCHECK_BLDRVERSION_STD:-"1.68"} - CPPCHECK_BLDRVERSION_EXP=${CPPCHECK_BLDRVERSION_EXP:-"1.69"} + CPPCHECK_BLDRVERSION_EXP=${CPPCHECK_BLDRVERSION_EXP:-"1.71"} if ! test "$CPPCHECK_BUILDS" = NONE; then if ! [[ `uname` =~ C...
bash
d_bash_13528
--- +++ @@ -7,7 +7,7 @@ $COMMAND "$1" elif [ -f ".gitignore" ] then - find . -name "*.js" | grep -v -f .gitignore | xargs $COMMAND + git ls-files -- "*.js" | xargs $COMMAND else $COMMAND "**/*.js" fi
bash
d_bash_13529
--- +++ @@ -8,7 +8,7 @@ setopt shwordsplit fi -_hsenv_test_tmp_dir="$_hsenv_private_root_dir/tmp" +_hsenv_test_tmp_dir="$_hsenv_private_root_dir/tmp/test" _hsenv_test_data_dir="$_hsenv_private_root_dir/test/data" if [ -z "$HSENV_TEST_LEVEL" ]; then
bash
d_bash_13530
--- +++ @@ -1,3 +1,6 @@ +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +cd "${SCRIPT_DIR}" + # Let tests know we should skip slow tests. export PHP_CURL_CLASS_SKIP_SLOW_TESTS="1"
bash
d_bash_13531
--- +++ @@ -1,9 +1,6 @@ #!/usr/bin/env bash supervisorctl -s http://localhost:9003 stop contrail-control +supervisorctl -s http://localhost:9003 stop contrail-dns +supervisorctl -s http://localhost:9003 stop contrail-named chkconfig supervisor-control off service supervisor-control stop - -supervisorctl -s http:...
bash
d_bash_13532
--- +++ @@ -5,9 +5,10 @@ conan user conan profile new default --detect -sudo apt install libgtk2.0-dev libgl-dev +sudo apt install -y --no-install-recommends libgtk2.0-dev libgl-dev libx11-xcb-dev libxcb-dri3-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-render-util0-dev lib...
bash
d_bash_13533
--- +++ @@ -13,7 +13,7 @@ eval `opam config env` opam install -y bisect_ppx oasis ocveralls ounit -sed -i '/BuildDepends:/ s/$/, bisect_ppx/' _oasis +sed -i 's/BuildDepends:/BuildDepends: bisect_ppx,/g' _oasis oasis setup rm -f setup.data
bash
d_bash_13534
--- +++ @@ -7,20 +7,21 @@ exit 1 fi -DIST="restheart-platform-$VERSION" +TARGET="restheart-platform-$VERSION" +DIST="dist/$TARGET" echo "###### Packaging RESTHeart Platform $VERSION" -echo "###### Cleaning up $DIST" -rm -rf "$DIST" "$DIST.zip" -echo "######...Done." - echo "###### Copying files to $DIST...
bash
d_bash_13535
--- +++ @@ -28,7 +28,7 @@ display_result $? 1 "Unit tests" python -m coverage.__main__ xml --include=backdrop* -behave --tags=-wip +behave --tags=-wip --stop display_result $? 2 "Feature tests" $(dirname $0)/pep-it.sh > pep8.out
bash
d_bash_13536
--- +++ @@ -1,6 +1,6 @@ #! /usr/bin/env bash -IGNORE_DIFF_ON="*.md Makefile .gitignore .circleci/* .github/*" +IGNORE_DIFF_ON="README.md CONTRIBUTING.md Makefile .gitignore .circleci/* .github/*" last_tagged_commit=`git describe --tags --abbrev=0 --first-parent` # --first-parent ensures we don't follow tags no...
bash
d_bash_13537
--- +++ @@ -11,12 +11,9 @@ export PATH=$GOBIN:$PATH popd > /dev/null -if [[ -e "${PWD}/buildpack/scripts/.util/tools.sh" ]]; then - # shellcheck disable=SC1091 - source "${PWD}/buildpack/scripts/.util/tools.sh" - util::tools::cf::install --directory "${PWD}/buildpack/.bin" -fi - +# shellcheck disable=SC1091 ...
bash
d_bash_13538
--- +++ @@ -5,9 +5,7 @@ OUTDIR=$(dirname $0)/../out -if [ ! -d out ]; then - mkdir out -fi +mkdir -p out GOARCH=amd64 GOOS=linux go build -o rtr && mv rtr $OUTDIR/rtr-linux-amd64 GOARCH=amd64 GOOS=darwin go build -o rtr && mv rtr $OUTDIR/rtr-darwin-amd64
bash
d_bash_13539
--- +++ @@ -1,7 +1,7 @@ -echo 'drop keyspace "org_wikipedia_en_T_test101_wikitext"; -drop keyspace "org_wikipedia_en_T_test101_dataJtC1RwvsYg2JPEOmY"; -drop keyspace "local_restbase_T_tables"; -drop keyspace "local_restbase_T_domains"; -drop keyspace "org_wikipedia_en_T_test101_datai9WsnfvT2BYdX0tr0"; -drop keyspace ...
bash
d_bash_13540
--- +++ @@ -1,5 +1,4 @@ #!/bin/sh -umount /mnt LOCALDISK=/dev/nvme0n1 @@ -15,7 +14,3 @@ # TODO use systemctl instead of pg_ctlcluster on CentOS pg_ctlcluster 9.5 main start - -# Disable /mnt line for /dev/xvdb -umount /mnt -sed -i 's|^/dev/xvdb|#/dev/xvdb|' /etc/fstab
bash
d_bash_13541
--- +++ @@ -3,7 +3,7 @@ set -e CRON_SCHEDULE=${CRON_SCHEDULE:-0 1 * * *} -PREFIX=${PREFIX:-backup} +export PREFIX=${PREFIX:-backup} if [[ "$1" == 'no-cron' ]]; then exec /archive.sh
bash
d_bash_13542
--- +++ @@ -25,16 +25,17 @@ all_formulas='' while read formula; do all_formulas=$all_formulas$(echo $formula | tr '\n' ' ') -done < formulas - +done < $(dirname "${BASH_SOURCE[0]}")/formulas brew install $all_formulas # Install homebrew casks all_casks='' while read cask; do - all_casks=$all_casks$(echo $...
bash
d_bash_13543
--- +++ @@ -7,7 +7,7 @@ if [[ $(uname -s) == 'Darwin' ]]; then echo "Upgrading Homebrew" brew update - brew bundle --file ${DOTFILES_HOME}/bundles/macos/Brewfile + brew bundle -v --file ${DOTFILES_HOME}/bundles/macos/Brewfile brew upgrade && brew cleanup fi
bash
d_bash_13544
--- +++ @@ -6,6 +6,8 @@ # # This script runs migrations for Socorro. Run this in a crontabber docker # container. + +set -e # If RAVEN_DSN is defined, then define SENTRY_DSN and evoke the sentry-cli bash # hook which will send errors to sentry.
bash
d_bash_13545
--- +++ @@ -1,4 +1,4 @@ -# Behavior used by all our scripts +# Behavior used by all our scripts - trap errors and report to user if any command fails abort() { errcode=$?
bash
d_bash_13546
--- +++ @@ -1,6 +1,12 @@ #!/bin/bash -xue cd /opt/stack/tempest + +echo "*** Hack: Apply https://review.openstack.org/#/c/252837/" +curl "https://review.openstack.org/gitweb?p=openstack/tempest.git;a=patch;h=660b440f12c607d720e59e1c6ab297c2c28b1ea3" | git am + +git log -n2 + set +e tox -e all -- tempest.api.ima...
bash
d_bash_13547
--- +++ @@ -14,7 +14,11 @@ fi npm run clean -npm run build$dev +# riot-web is at `workspace`. +# matrix-react-sdk is at `workspace/node_modules/matrix-react-sdk`, but this is +# symlinked to a repo at `workspace/matrix-react-sdk`. +# To get from `workspace/matrix-react-sdk/lib` up to the lang file, we use: +RIOT_...
bash
d_bash_13548
--- +++ @@ -29,6 +29,8 @@ # Ask for sudo permission ask_for_sudo() { + [[ "$TRAVIS_SUDO" == "false" ]] & return 0 + sudo -v &> /dev/null while true; do sudo -n true
bash
d_bash_13549
--- +++ @@ -1,7 +1,6 @@ # Download and install required files git clone https://github.com/wwwg/retrocord-light.git cd retrocord-light -sudo npm -i -g i # install npm run install-nix echo -n "Installed Retrocord light."
bash
d_bash_13550
--- +++ @@ -4,7 +4,7 @@ last_tagged_commit=$(git describe --tags --abbrev=0 --first-parent) # --first-parent ensures we don't follow tags not published in master through an unlikely intermediary merge commit -if git diff-index --name-only --exit-code "$last_tagged_commit" -- . $()echo " $IGNORE_DIFF_ON" | sed '...
bash
d_bash_13551
--- +++ @@ -9,7 +9,7 @@ echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.15_10.tar.gz" ;; java17) - echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.2%2B8/OpenJDK17U-jdk_x64_linux_hotspot_17.0.2_8.tar...
bash
d_bash_13552
--- +++ @@ -1,7 +1,8 @@ +git fetch --unshallow # needed to get enough commits for tag, see travis-ci/travis-ci#3412 export PATH="$HOME/miniconda/bin:$PATH" export GIT_DESCRIBE=$(git describe --always --tags --long) export GIT_TAG=$(git describe --always --tags --abbrev=0) -export TAG_AND_TRAVIS_BUILD=${GIT_TAG}_b...
bash
d_bash_13553
--- +++ @@ -10,5 +10,14 @@ for j in $LAST_5_EVENTS; do - jq -r '"Welcome \"" + .title + "\" with " + (.moderators | join(", ")) + " in " + .location.city + ", " + .location.country + " to #gdcr18! See the link for more information " + .url' $j; + jq -r ' + "🌐 Welcome " + + .location.city + ", "...
bash
d_bash_13554
--- +++ @@ -2,12 +2,11 @@ set -euo pipefail +readonly repo="apple/llvm-project" + # This changes only a few times a year. readonly stable_branch="apple/stable/20200714" readonly stable_mnemonic="bastille" - -# Remote for my fork. -readonly remote="jonas" # Make sure we have upstream llvm as a remote. git ...
bash
d_bash_13555
--- +++ @@ -3,6 +3,7 @@ # Set the JMMPATH and current the directory. cd "$(dirname "$0")" export JMMPATH=$(dirname $(pwd))/examples +export PATH=$PATH:$JMMPATH/bin source ../jmm.sh echo
bash
d_bash_13556
--- +++ @@ -1,6 +1,9 @@ # Enable Ubuntu Universe and Multiverse. sed -i 's/^#\s*\(deb.*universe\)$/\1/g' /etc/apt/sources.list sed -i 's/^#\s*\(deb.*multiverse\)$/\1/g' /etc/apt/sources.list + +# For the latest version of git +add-apt-repository ppa:git-core/ppa # Update apt-get update
bash
d_bash_13557
--- +++ @@ -4,9 +4,9 @@ if [ ! "$(ls -A $HOME/gnatsd)" ]; then mkdir -p $HOME/gnatsd cd $HOME/gnatsd - wget https://github.com/nats-io/gnatsd/releases/download/v0.9.4/gnatsd-v0.9.4-linux-amd64.zip -O gnatsd.zip + wget https://github.com/nats-io/gnatsd/releases/download/v0.9.6/gnatsd-v0.9.6-linux-amd64.zip -O...
bash
d_bash_13558
--- +++ @@ -23,7 +23,7 @@ # This should only be done on the stack forge system if [ "${BUILD_COMMON}" = "true" ]; then - git clone -b ${BRANCH} https://git.openstack.org/openstack/monasca-common + git clone -b ${BRANCH} https://opendev.org/openstack/monasca-common cd monasca-common ${MVN} clean ${...
bash
d_bash_13559
--- +++ @@ -1,10 +1,8 @@ -# Use the client JVM (http://j.mp/NHv51E) -export JAVA_OPTS='-d32' - # Ruby JRuby in 1.9 mode export JRUBY_OPTS='--1.9' -# Use custom Java 7 install (http://goo.gl/P8gO1) -if [[ -d "/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home" ]]; then - export JAVA_HOME="/Library/Java/Jav...
bash
d_bash_13560
--- +++ @@ -2,7 +2,7 @@ #required packages pip install catkin_pkg -pip install em +pip install empy #ros install git clone https://github.com/ryuichiueda/ros_setup_scripts_Ubuntu14.04_server.git
bash
d_bash_13561
--- +++ @@ -34,7 +34,7 @@ screen -X chdir $PWD } -if [[ "$TERM" == 'screen.rxvt' ]]; then +if [[ -n $STY ]]; then alias cd=scr_cd fi
bash
d_bash_13562
--- +++ @@ -6,6 +6,7 @@ [ -d /app/include/ ] && for i in /app/include/*.sh ; do . $i ; done && \ mongod --shutdown +while pidof mongod; do sleep 1; done AUTH="" if [ "_$PASSWD" != "_" ] ; @@ -21,4 +22,6 @@ AUTH="--auth" fi +while pidof mongod; do sleep 1; done + exec mongod --storageEngine $E...
bash
d_bash_13563
--- +++ @@ -1,5 +1,6 @@ #!/bin/bash +STAGE3=20161020 tarball=stage3-amd64-$STAGE3.tar.bz2 mount /dev/sda4 /mnt/gentoo
bash
d_bash_13564
--- +++ @@ -8,7 +8,7 @@ # Destination directory for built code ASSETSDIR="$BASEDIR/assets" -# run the build script +# install npm and run gulp ./npm install ./gulp
bash
d_bash_13565
--- +++ @@ -1,4 +1,4 @@ #!/bin/sh -wget --quiet 'http://bigfoot-m2.eurecom.fr/grafana/render/dashboard-solo/db/platform-overview?refresh=1m&orgId=1&panelId=4&width=500&height=300' -O /var/www/html/data/media/platform-overview.png +wget --no-check-certificate --quiet 'https://cloud-platform.eurecom.fr/grafana/rende...
bash
d_bash_13566
--- +++ @@ -3,12 +3,13 @@ mkdir -p man export PYTHONPATH=".:$PYTHONPATH" -version="$(build/*/euca-version 2>&1 | sed -e 's/^euca2ools *\([^(]*\).*/\1/' -e 's/ *$//')" +py_version=$(python -c 'import sys; print ".".join(map(str, sys.version_info[:2]))') +script_dir="build/scripts-$py_version" +version="$($script_d...
bash
d_bash_13567
--- +++ @@ -11,7 +11,7 @@ fi hc=`curl -m5 -sS $SITE` -if [ "`echo \"$hc\" | grep -m1 '<body '`" == "" ]; then +if [ "`echo \"$hc\" | grep -m1 '<body '`" == "" ] && [ "`echo \"$hc\" | grep -m1 '<body>'`" == "" ]; then echo "failed to find snippet on homepage: '<body '" exit 1 fi
bash
d_bash_13568
--- +++ @@ -6,5 +6,13 @@ # available Gems. This allows me to stop having to type `be rake` everywhere and just type `rake`. # -# mkdir .git/safe in the root of repositories you trust -export PATH=".git/safe/../../bin:$PATH" +# mark-repo-binsafe in the root of repositories you trust +export PATH=".git/bin-safe/../...
bash
d_bash_13569
--- +++ @@ -9,7 +9,7 @@ cd ${project}; project=${project%/}; - project=${project/\./-} + project=${project//\./-} tmux new -d -s ${project};
bash
d_bash_13570
--- +++ @@ -23,7 +23,7 @@ echo "Under Preferences at the bottom," echo "check 'Load Preferences from a custom folder or URL:" echo "Click Browse and select:" -echo "${HOME}/.dotfiles/refence/iterm2_profile" +echo "${HOME}/.dotfiles/reference/iterm2_profile" echo "" echo "-----------------------------------------...
bash
d_bash_13571
--- +++ @@ -6,3 +6,11 @@ docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" docker tag khan:latest tfgco/khan:$VERSION.$TRAVIS_BUILD_NUMBER docker push tfgco/khan:$VERSION.$TRAVIS_BUILD_NUMBER + +DOCKERHUB_LATEST=$(python get_latest_tag.py) + +if [ "$DOCKERHUB_LATEST" != "$VERSION.$TRAVIS_...
bash
d_bash_13572
--- +++ @@ -2,4 +2,4 @@ echo "Install dependencies" -composer install --no-interaction --no-scripts --prefer-dist -o || exit $? +composer install --no-interaction --prefer-dist -o || exit $?
bash
d_bash_13573
--- +++ @@ -9,12 +9,12 @@ IMAGE="default-image.tar" -cat | pv | > $IMAGE +cat > $IMAGE -for node in $(cat $HOME/address_nodes): +for node in $(cat $HOME/address_nodes) do echo "FuzzVM: $node" - cat $IMAGE | bzip2 | pv | ssh $node "bunzip2 | docker load;"; + cat $IMAGE | bzip2 | ssh $node "bunzip2...
bash
d_bash_13574
--- +++ @@ -16,6 +16,9 @@ mkdir -p $ROOT/etc/kubernetes/addons cp -r $PROJROOT/addons/k8s/* $ROOT/etc/kubernetes/addons/ + # Remember the time we built this SD Card + echo -e "\nBUILD_DATE=\"$(date +%d%m%y_%H%M)\"" >> $ROOT/etc/kubernetes/sdcard_build_date.conf + # Parallella patch. Disable overlay, because...
bash
d_bash_13575
--- +++ @@ -2,7 +2,8 @@ set -e -GOLANG_VERSION="1.13-alpine" +GOLANG_VERSION="1.12.5" +#GOLANG_VERSION="1.13-alpine" while [ $# -gt 0 ]; do case "$1" in @@ -24,7 +25,7 @@ name=$(basename "$path") project=$(echo "$path" | sed -e "s;^$GOPATH/;;") -echo "running $name > $project > $path on container" +ech...
bash
d_bash_13576
--- +++ @@ -18,4 +18,5 @@ # Changes color of directories in output of 'ls' from blue to green color. That # way it's more readable with f.lux on. Seems to not work on macs, but works # fine with Linux machines -LS_COLORS=$LS_COLORS:'di=0;35:' ; export LS_COLORS +# Source: https://askubuntu.com/a/466203/76941 +LS_C...
bash
d_bash_13577
--- +++ @@ -1,9 +1,13 @@ #!/bin/bash +HOST="127.0.0.1" +PORT="3013" +SERVER="0" + if [ "$script_type" == "client-connect" ]; then JSON="{\"pub\":\"$trusted_ip\",\"cn\":\"$common_name\",\"vpn\":\"$ifconfig_pool_remote_ip\"}" - curl -H "Content-Type: application/json" -X POST -d "$JSON" http://127.0.0.1:3013/serv...
bash
d_bash_13578
--- +++ @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh # demo-rais-entry.sh is the RAIS entrypoint script, which sets up the # configuration and runs the rais server @@ -6,7 +6,7 @@ # Copy the config and edit it in-place; this allows customizing most pieces of # configuration for demoing url=${URL:-} ...
bash
d_bash_13579
--- +++ @@ -15,7 +15,7 @@ pushd grootfs-release-develop git add src/code.cloudfoundry.org/grootfs grootfs_changes=$(git diff --cached --submodule src/code.cloudfoundry.org/grootfs | tail -n +2) - git commit -m "Bump grootfs\n\n${grootfs_changes}" + git commit -m $(printf "Bump grootfs\n\n${grootfs_changes}")...
bash
d_bash_13580
--- +++ @@ -12,4 +12,6 @@ rpm --import http://centos.hyperdex.org/hyperdex.gpg.key yum install -y epel-release +yum clean all +yum check-update yum install -y hyperdex
bash
d_bash_13581
--- +++ @@ -22,6 +22,7 @@ ln -s /var/log/tomcat8/application.log application.log ln -s /var/log/tomcat8/catalina.out catalina.out ln -s /var/log/tomcat8/localhost_access_log.txt + cd .. chown -R ec2-user logs fi fi
bash
d_bash_13582
--- +++ @@ -9,3 +9,10 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" fi + +# Load any alias files. +if [ -d $HOME/.dotfiles/zsh/aliases/ ]; then + if [ "$(ls -A $HOME/.dotfiles/zsh/aliases/)" ]; then + for config_file ($HOME/.dotfiles/zsh/aliases/*.zsh...
bash
d_bash_13583
--- +++ @@ -1,9 +1,9 @@ alias cvs="cvs" alias cvsst="cvs -q status | grep '^File'" -alias cvsun='cvsst | grep -v "Status: Up-to-date"' +alias cvsun="cvsst | grep -v 'Status: Up-to-date'" alias cvsmod="cvs -q status | grep odified" -alias update='cvs -q update -d' -alias cvsstat='cvs -nfq update -ICVS -Iobj.* -I*.p...
bash
d_bash_13584
--- +++ @@ -26,5 +26,10 @@ configure_host_for_func_testing elif [ "$VENV" == "api" ] then + if [[ -z "$DEVSTACK_LOCAL_CONFIG" ]]; then + export DEVSTACK_LOCAL_CONFIG="enable_plugin neutron-vpnaas git://git.openstack.org/openstack/neutron-vpnaas" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"...
bash
d_bash_13585
--- +++ @@ -3,7 +3,7 @@ sudo brew update sudo brew tap homebrew/versions -sudo brew install llvm --with-clang +sudo brew -v install llvm --with-clang clang --version
bash
d_bash_13586
--- +++ @@ -9,7 +9,7 @@ apt-get install --no-install-recommends -y ca-certificates net-tools libxml2-utils git curl libudev1 libxml2-utils iptables iproute2 jq fontconfig rm -rf /var/lib/apt/lists/* -curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.2/concourse-java.sh > /opt/concourse-...
bash
d_bash_13587
--- +++ @@ -1,6 +1,10 @@ #!/usr/bin/env bash set -o errexit + +#enable ipv6 +echo '{"ipv6":true, "fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json +sudo service docker restart apt-get update apt-get install -y liblxc1 lxc-dev lxc shellcheck
bash
d_bash_13588
--- +++ @@ -1,4 +1,4 @@ -packages=( "autokey-qt" "codeblocks" "eclipse" "gitg" "guake" "idle" "mplayer" "netbeans" "vlc" "xclip" "xdotool" ) +packages=( "autokey-qt" "codeblocks" "eclipse" "gitg" "guake" "idle" "mplayer" "netbeans" "vlc" "xclip" "xdotool" "zsh") for i in "${packages[@]}" do
bash
d_bash_13589
--- +++ @@ -13,7 +13,7 @@ elif [[ $distro == "arch" ]];then sudo pacman -S --noconfirm --needed noto-fonts-cjk chromium lightdm sudo pacman -S --noconfirm --needed sysstat alsa-utils - sudo pacman -S --noconfirm --needed fcitx-mozc fcitx-configtool + sudo pacman -S --noconfirm --needed fcitx-mozc f...
bash
d_bash_13590
--- +++ @@ -7,7 +7,8 @@ # arguments: # $1: Makefile to attach dependencies to -# $2...: Files to generate dependencies from +# $2...: gcc arguments until -- +# $...: Files to generate dependencies from set -e if test "x$1" = "x" ; then exit 1 ; fi @@ -17,5 +18,8 @@ sed <"$f" >"${f}.mkdep" -e '/^# DO NOT DEL...
bash
d_bash_13591
--- +++ @@ -10,6 +10,8 @@ elif [ "$1" = "worker" ]; then export C_FORCE_ROOT="true" /srv/venv/bin/celery -A lop_farm worker +elif [ "$1" = "test" ]; then + /srv/venv/bin/python /srv/app/manage.py test else echo "Invalid command" exit 1
bash
d_bash_13592
--- +++ @@ -33,5 +33,11 @@ echo "Removed utility container: ${RM_CONTAINER}" time docker build --tag=local/asterisk:${DATESTAMP} -f asterisk.Dockerfile . -docker tag -f local/asterisk:${DATESTAMP} local/asterisk:latest + +# Moving latest tag if it exists" +set +e +docker rmi local/asterisk:latest 2>&1 > /dev/null...
bash
d_bash_13593
--- +++ @@ -1,22 +1,32 @@ #!/bin/bash +if [ $# -eq 0 ]; then + echo "Usage: deploy.sh [action] [start] [end] [operating systen] " + echo "Example: deploy.sh create 0 10 centos - creates 11 instances of centos environment (i.e. stundent0 - student10)" + echo "Example: deploy.sh destroy 0 10 - destroys environments...
bash
d_bash_13594
--- +++ @@ -1,6 +1,6 @@ PropsUtil(){ getProperty(){ - grep -o "${2}=.*" "${1}" + cat ${1} | grep ${2}=.* } $@
bash
d_bash_13595
--- +++ @@ -8,3 +8,6 @@ # Setting Up MongoDB # https://github.com/zakhttp/Mongostead7 sudo curl -sS https://raw.githubusercontent.com/zakhttp/Mongostead7/master/mongoHomestead7.sh | sudo sh + +echo "Remove IP restriction for MongoDB" +sudo sed -i '/127.0.0.1/s/^/#/g' /etc/mongod.conf
bash
d_bash_13596
--- +++ @@ -1,2 +1,10 @@ -JAVA_PATH=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java CORENLP_OPTIONS="-parse.flags \" -makeCopulaHead\"" CORENLP=stanford-corenlp-full-* python3 -m corenlp --memory 1g -p 8999 & +export JAVA_PATH=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java + +if [ ! -f $JAVA_PATH ] +then + export J...
bash
d_bash_13597
--- +++ @@ -15,6 +15,10 @@ export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" +# Rust +export PATH="$HOME/.cargo/bin:$PATH" + + # Python (pyenv) #export PYENV_VIRTUALENV_DISABLE_PROMPT=1 #eval "$(pyenv init -)"
bash
d_bash_13598
--- +++ @@ -1,4 +1,5 @@ #!/bin/bash +source ~/.bash_profile; cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/php/" for version in *; do
bash
d_bash_13599
--- +++ @@ -15,16 +15,17 @@ # Make sure that iptables is actually installed. check_iptables -# Now we can actually change the iptables rules. -arr=('nat' 'mangle' 'raw' 'security') +# Now we can actually change the iptables rules. We don't need "filter" here +# because that's the default table and is taken care o...
bash