document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_10500
--- +++ @@ -7,7 +7,9 @@ ARTIFACT_URL="https://github.com/dmweis/DynamixelServo/releases/download/$LATEST_VERSION/$FILE_NAME" echo Downloading... wget $ARTIFACT_URL -q --show-progress +echo unpacking... tar -xzf $FILE_NAME +echo removing archive rm $FILE_NAME chmod +x run_linux.sh echo script run_linux.sh will ...
bash
d_bash_10501
--- +++ @@ -1,5 +1,6 @@ #!/bin/bash set -e gulp +gulp examples gulp tests ./node_modules/.bin/karma start --browsers=Firefox tests/karma.conf.js
bash
d_bash_10502
--- +++ @@ -4,7 +4,11 @@ C_STUB=architecture.${arch}.stdlib.cpp LL_STUB=architecture.${arch}.stdlib.ll RESULT=architecture.${arch}.initmod.c - + + if [[ $arch == "ptx" ]]; then + LL_STUB="$LL_STUB architecture.x86.stdlib.ll" + fi + clang -emit-llvm -S $C_STUB -o - \ ...
bash
d_bash_10503
--- +++ @@ -3,5 +3,6 @@ # TODO: Incorporate this into the pom.xml rm -r ../fluent/src/main/java/io +mvn clean mvn compile mv target/generated-sources/annotations/io ../fluent/src/main/java/io
bash
d_bash_10504
--- +++ @@ -2,7 +2,7 @@ set -e sudo apt-get update -sudo apt-get install -y software-properties-common +sudo apt-get install -y python-software-properties sudo add-apt-repository -y ppa:rubiojr/lstack sudo add-apt-repository -y ppa:ubuntu-lxc/stable sudo apt-get update
bash
d_bash_10505
--- +++ @@ -8,7 +8,7 @@ # This script is intended to be run from cron. UPLOAD_SCRIPT=~/buildbot/build/scripts/master/upload_logs_to_storage.py -LIMIT=2 +LIMIT=20 function msg_exit() { echo 'Upload script already running, exiting.'
bash
d_bash_10506
--- +++ @@ -7,6 +7,9 @@ exit fi +# @todo: Make sure id_rsa and id_rsa exist *and* have the right permissions +# (600 for both) + prompt_quit_if_no "Do you have SSH keys linked that have access to everything important?" prompt_quit_if_no "Have you signed into the Mac App Store manually?" echo ''
bash
d_bash_10507
--- +++ @@ -4,7 +4,7 @@ # Install nlopt from source since Ubuntu 12.04 does not provide debian package for nlopt curl -o nlopt-2.4.1.tar.gz http://ab-initio.mit.edu/nlopt/nlopt-2.4.1.tar.gz tar -xf nlopt-2.4.1.tar.gz - (cd nlopt-2.4.1/; sh autogen.sh; make CPPFLAGS='{$CPPFLAGS} -fPIC' && sudo make install) ...
bash
d_bash_10508
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
bash
d_bash_10509
--- +++ @@ -7,12 +7,13 @@ else echo "phantomjs already running. Skipping." fi -echo "Removing dev app container..." -(set -x; docker rm -f app) +echo "Stopping app container..." +(set -x; docker stop app) echo "Spinning up test app container..." echo "*** Run unit tests with 'sh /datahub/provisions/docker/ru...
bash
d_bash_10510
--- +++ @@ -5,6 +5,5 @@ ### Find package.json files and replace main path from lib.compiled to lib### perl -pi -w -e 's/lib.compiled/lib/g' ${__ROOT_PATH}src/*/package.json - ### Find .npmignore files and replace /lib to empty string### perl -pi -w -e 's/\/lib//g' ${__ROOT_PATH}src/*/.npmignore
bash
d_bash_10511
--- +++ @@ -5,7 +5,7 @@ fi PKGHOME=/tmp -PKGFILE=$PHGHOME/lxde-cfg.tgz +PKGFILE=$PKGHOME/lxde-cfg.tgz CFGURL="http://www.buttonos.org/load/themes/lxde-cfg.tgz" INSTFILE=/usr/share/lxde/defcfg.tgz @@ -15,6 +15,7 @@ cd / ; tar -xzf $PKGFILE.tmp ) & ;; down) + ( cd / ; tar -xzf $INSTFILE ) & ;; vpn...
bash
d_bash_10512
--- +++ @@ -5,14 +5,21 @@ cd images/ mkdir for_shows_process/ - cp for_shows_uncompressed/* for_shows_process/ +# Lowercase ONLY +find for_shows_process/ -depth -exec rename 's/(.*)\/([^\/]*)/$1\/\L$2/' {} \; + +# Convert PNG to JPEG and remove PNGs find for_shows_process/ -name "*.png" -exec mogrify -format ...
bash
d_bash_10513
--- +++ @@ -6,7 +6,7 @@ minor ) TYPE="minor"; break;; major ) TYPE="major"; break;; premajor ) TYPE="premajor --preid=next"; break;; - prelelease ) TYPE="prerelease --preid=next --tag next"; break;; + prerelease ) TYPE="prerelease --preid=next --tag next"; break;; esac d...
bash
d_bash_10514
--- +++ @@ -1,5 +1,6 @@ # General export EDITOR=nano +export BROWSER=google-chrome-beta # Python if command -v pyenv 1>/dev/null 2>&1; then
bash
d_bash_10515
--- +++ @@ -5,8 +5,6 @@ mdiscript="./helios/scripts/goes_extreme_events.sc" while [ "$yeartest" -lt "$limit" ]; do -exec ./target/universal/stage/bin/plasmaml $mdiscript $yeartest +./target/universal/stage/bin/plasmaml $mdiscript $yeartest let yeartest+=1 done - -!#
bash
d_bash_10516
--- +++ @@ -24,15 +24,20 @@ snapshot_name=$(echo ${snapshot_name}|sed 's/.xz//') fi -echo "Truncating tables" -psql "${db_name}" <<EOF +# The environment logger database requires special steps before a backup +# can be restored +if [ ${db_name} = "env_logger" ]; then + echo "Truncating tables" + psql "$...
bash
d_bash_10517
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash CORES=$(grep 'model name' /proc/cpuinfo | wc -l) -LOAD=$(uptime | grep "load average" | awk '{print $12}' | sed 's/[\.,].*//g') +LOAD=$(uptime | grep "load average" | awk '{print $NF}' | sed 's/[\.,].*//g') if [ $LOAD -ge $CORES ]; then NEWCORES=$((CORES+1)); /usr/...
bash
d_bash_10518
--- +++ @@ -4,6 +4,7 @@ cat > $out_file <<'EOT' [ {riak_kv, [ + {allow_strfun, true}, {delete_mode, immediate}, {test, true} ]},
bash
d_bash_10519
--- +++ @@ -3,5 +3,5 @@ rm -rf /root/stratux-update mkdir -p /root/stratux-update cd /root/stratux-update -mv -f /var/log/stratux.sqlite /var/log/stratux.sqlite.`date +%s` -rm -f /var/log/stratux.sqlite-wal /var/log/stratux.sqlite-shm +rm -f /var/log/stratux.sqlite /var/log/stratux.sqlite-wal /var/log/stratux.sqli...
bash
d_bash_10520
--- +++ @@ -1,2 +1,4 @@ source scripts/vagrant/environment_variables.sh +source $HOME/.nvm/nvm.sh +nvm use 5 python manage.py runtests --failfast
bash
d_bash_10521
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -e -REPO_URI="https://git.v6jv.flynnhub.com/ourcities-rebu-client-develop.git" +REPO_URI="https://ubuntu:$FLYNN_KEY@git.v6jv.flynnhub.com/ourcities-rebu-client-develop.git" if [[ "$CIRCLE_BRANCH" == "master" ]]; then REPO_URI="dokku@reboo.org:0-client" fi
bash
d_bash_10522
--- +++ @@ -2,6 +2,9 @@ wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.5.tar.gz tar -xzf elasticsearch-0.18.5.tar.gz +sed -i '' 's/# index.number_of_shards: 1/index.number_of_shards: 1/' elasticsearch-0.18.5/config/elasticsearch.yml +sed -i '' 's/# index.number_of_replicas: 0/ind...
bash
d_bash_10523
--- +++ @@ -9,9 +9,14 @@ cargo-watch # Watch for file changes and run cargo commands hexyl # A command-line hex viewer hyperfine # A command-line benchmarking tool - racer # Code completion for rust tokei # A fast cloc alternative ) -$CARGO add component rust-src +components=( + r...
bash
d_bash_10524
--- +++ @@ -2,28 +2,29 @@ # # Install all the client hooks -BASE_DIR=$(dirname $0) +BASE_DIR="$(cd $(dirname $0); pwd -P)" HOOK_NAMES="applypatch-msg pre-applypatch post-applypatch pre-commit prepare-commit-msg commit-msg post-commit pre-rebase post-checkout post-merge pre-receive update post-receive post-update...
bash
d_bash_10525
--- +++ @@ -6,7 +6,7 @@ echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u302-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.tar.gz" ;; java11) - echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.11_9.tar.g...
bash
d_bash_10526
--- +++ @@ -4,7 +4,8 @@ echo "Hold onto your butts" composer install --no-dev --verbose --prefer-dist --optimize-autoloader --no-progress php artisan cache:clear -#php artisan migrate --no-interaction +php artisan migrate --no-interaction +php artisan db:seed --no-interaction npm install bower install --allow-...
bash
d_bash_10527
--- +++ @@ -22,7 +22,9 @@ for f in $files do - f="$f-*" + # Changed because of name format seems was changed. + # And now there is no db files named as ".db-*" + f="$f*" echo "About to delete $f" rm -f $f echo "Deletion exit code is" $?
bash
d_bash_10528
--- +++ @@ -26,7 +26,7 @@ sudo $HOME/letsencrypt/letsencrypt-auto certonly -q --webroot -w /usr/share/nginx/html -d $hostname - sudo $venv_bin_dir/python write_nginx_conf.py $hostname $source $part2 + sudo $venv_bin_dir/python $scripts_dir/write_nginx_conf.py $hostname $source $part2 ...
bash
d_bash_10529
--- +++ @@ -27,10 +27,10 @@ wget -c http://repo.scala-sbt.org/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.13.0/sbt.deb dpkg -i sbt.deb -#configure user -su vagrant #download emacs config wget -c https://raw.github.com/josephrkramer/emacs-config/master/.emacs +chown -R vagrant:vagrant .emacs #initialize ...
bash
d_bash_10530
--- +++ @@ -8,6 +8,4 @@ opam install -j ${NJOBS} -y menhir git_checkout ${CompCert_CI_BRANCH} ${CompCert_CI_GITURL} ${CompCert_CI_DIR} -# Patch to avoid the upper version limit -( cd ${CompCert_CI_DIR} && ./configure -ignore-coq-version x86_32-linux && make ) - +( cd ${CompCert_CI_DIR} && ./configure -ignore-coq-...
bash
d_bash_10531
--- +++ @@ -1,7 +1,11 @@ #! /usr/bin/env bash -BENCHMARK_DIR=../../../../../Benchmarks/Pilot2/P2B1 -COMMON_DIR=../../../common/python -export PYTHONPATH="$PWD/..:$BENCHMARK_DIR:$COMMON_DIR" +THIS=$( cd $( dirname $0 ) ; /bin/pwd ) -KERAS_BACKEND="theano" python test.py +BENCHMARK_DIR=$( cd $THIS/../../../../../B...
bash
d_bash_10532
--- +++ @@ -17,3 +17,12 @@ exit 1 fi +system_version="$(pachctl version --client-only)" +built_version="$(${GOPATH}/bin/pachctl version --client-only)" +if [[ "${system_version}" != "${built_version}" ]]; then + echo "'pachctl version' disagrees with '\${GOPATH}/bin/pachctl version'" + echo "pachctl version: ...
bash
d_bash_10533
--- +++ @@ -2,7 +2,7 @@ if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo -E apt-get update -qq - sudo -E apt-get install -y qt5-default + sudo -E apt-get install -y qt5-default libboost-all-dev elif [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update brew install qt
bash
d_bash_10534
--- +++ @@ -1,4 +1,4 @@ #!/bin/sh -mkdir .ssh +mkdir ~/.ssh openssl req -nodes -newkey rsa:2048 -keyout ~/.ssh/id_rsa -out ~/.ssh/id_rsa.csr -subj "/C=/ST=/L=/O=hasas/OU=/CN=hasas.zza.no" openssl rsa -in .ssh/id_rsa -pubout 2>/dev/null > ~/.ssh/id_rsa.pub
bash
d_bash_10535
--- +++ @@ -1,4 +1,4 @@ alias be='bundle exec' alias brake='bundle exec rake' -alias server='ruby -run -ehttpd .' +alias server='ruby -run -ehttpd' alias spec='SKIP_EMBER=true SELENIUM=true bundle exec rspec'
bash
d_bash_10536
--- +++ @@ -1,3 +1,5 @@ +#!/bin/sh + set -ex if [ -z "$RUSTC_WRAPPER" ]; @@ -5,8 +7,7 @@ echo "No build caching setup!" else SCCACHE_VERSION='sccache-0.2.7-x86_64-unknown-linux-musl' - wget "https://github.com/mozilla/sccache/releases/download/0.2.7/$SCCACHE_VERSION.tar.gz" - tar -xvzf "$SCCACHE...
bash
d_bash_10537
--- +++ @@ -1,16 +1,23 @@ #!/bin/bash PIN="123321" +NAME="Some-bluetooth" hciconfig hci0 reset +hciconfig hci0 name $NAME hciconfig hci0 sspmode 0 expect -c ' spawn bluetoothctl + send "power on\r" + expect "ower" + send "discoverable on\r" + expect "iscoverable" send "agent on\r" - ...
bash
d_bash_10538
--- +++ @@ -19,7 +19,6 @@ # Set up python curl https://bootstrap.pypa.io/get-pip.py | python3.8 -pip3 install virtualenvwrapper pip3 install -r requirements.txt # Set up node
bash
d_bash_10539
--- +++ @@ -4,7 +4,7 @@ python3 -m virtualenv .venv source .venv/bin/activate -pip install -U bioblend pytest pytest-cov pytest-mock requests requests-oauthlib subprocess32 selenium +pip install -U bioblend pytest pytest-cov pytest-mock requests==2.6 requests-oauthlib==1.2.0 subprocess32 selenium # Install chr...
bash
d_bash_10540
--- +++ @@ -1,14 +1,14 @@ #! /bin/sh # -# Configure the stereo USB cameras +# Configure the USB camera # -# Camera device -CAMERA = video0 - # Disable autofocus -uvcdynctrl -v -d $CAMERA --set='Focus, Auto' 0 +uvcdynctrl -v -d video0 --set='Focus, Auto' 0 # Fix the focus -uvcdynctrl -v -d $CAMERA --set='Fo...
bash
d_bash_10541
--- +++ @@ -27,6 +27,18 @@ function prepareSandbox() { mkdir -p $sandboxCookbooksDir + sandboxDataBags +} + +function sandboxDataBags() { + local targetDatabagDir=$(extractTargetDatabag) + if [[ -d $targetDatabagDir ]] ; then + cp -r $targetDatabagDir $sandbagDir/ + fi +} + +function extractTarget...
bash
d_bash_10542
--- +++ @@ -5,7 +5,7 @@ # respective tasks with ruby -S which causes the following error to # appear: ruby: no Ruby script found in input (LoadError). if [ ! -f .ruby-version ]; then - export PATH=$(echo $PATH | awk 'BEGIN { RS=":"; ORS=":" } !/rbenv/' | sed 's/:$//') + export PATH=$(printf $PATH | awk 'BEGIN { ...
bash
d_bash_10543
--- +++ @@ -12,7 +12,7 @@ mkdir -p "$cache_dir/Album Artwork" # Get paths to configuration file -installed_config="$installed_config_dir/resources/config.applescript" +installed_config="$installed_config_dir/config.applescript" compiled_config="$cache_dir/config.scpt" cached_config_md5file="$cache_dir/config.ap...
bash
d_bash_10544
--- +++ @@ -16,5 +16,5 @@ --renew-by-default --agree-tos done -echo "sending SIGUSR1 to nginx" -killall -SIGUSR1 nginx +echo "reloading nginx" +docker exec nginx /etc/init.d/nginx reload
bash
d_bash_10545
--- +++ @@ -29,12 +29,5 @@ src/riak.proto src/riak_kv.proto src/riak_search.proto src/riakextra.proto > src/Protocol.proto (cd src && hprotoc -p Network.Riak Protocol.proto) -for i in $(find src/Network/Riak/Protocol -name '*.hs'; - echo src/Network/Riak/Protocol.hs); do - cp /dev/null $i.$$ - ...
bash
d_bash_10546
--- +++ @@ -11,7 +11,7 @@ git commit -am "Release version $version and update docs" --author="orbit-tools <orbit@ea.com>" echo Create release notes from previous commit messages -releaseNotes=curl -sH "$AUTH" "$GH_REPO/orbit/orbit/commits\?since\=$(curl -sH ""$AUTH" "$GH_REPO/orbit/orbit/releases | jq '.[0].crea...
bash
d_bash_10547
--- +++ @@ -2,4 +2,4 @@ cd electrum-dash pyrcc4 icons.qrc -o gui/qt/icons_rc.py python setup.py sdist --format=zip,gztar -pyinstaller -y --clean osx.spec +pyinstaller -y --clean contrib/osx.spec
bash
d_bash_10548
--- +++ @@ -2,6 +2,10 @@ include string.validator.StringValidator StringUtil(){ + append(){ + echo ${1}${2} + } + capitalize(){ local str=${@}
bash
d_bash_10549
--- +++ @@ -11,4 +11,8 @@ cd $dir -/opt/logstash/bin/logstash rspec -fd --tag our_filters --tag socket spec/*_spec.rb +if [ -z $@ ]; then + /opt/logstash/bin/logstash rspec -fd --tag our_filters --tag socket spec/*_spec.rb +else + /opt/logstash/bin/logstash rspec -fd --tag our_filters --tag socket $@ +fi
bash
d_bash_10550
--- +++ @@ -3,3 +3,43 @@ # https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HdfsQuotaAdminGuide.html alias hquota='hadoop fs -count -q -h -v ' + +hdirsize() { + # MIN NUM OF ARG + if [[ "$#" < "1" ]]; then + echo "Usage : hdirsize HDFS_FOLDER [HDFS_MORE_ARG]. Run 'hdfs dfs -count -q' o...
bash
d_bash_10551
--- +++ @@ -1,4 +1,4 @@ -set -e +set -ex cd dp version=$(cat .version) @@ -6,3 +6,9 @@ echo -e "v$version" > release_tag git log `git describe --tags --abbrev=0`..HEAD --oneline > release_body +cat $release_body + +mkdir -p build/ +GOOS=linux GOARCH=amd64 go build -o build/dp_linux_amd64 +GOOS=darwin GOARCH=a...
bash
d_bash_10552
--- +++ @@ -3,10 +3,9 @@ COLOR_SUCCESS='\033[0;32m' NC='\033[0m' -ls -/scripts/ci.sh +/docker/scripts/ci.sh -/scripts/setup.sh +/docker/scripts/setup.sh chmod 777 -Rf /var/www/html/var
bash
d_bash_10553
--- +++ @@ -3,7 +3,7 @@ if [ -z "$1" ] then echo "$0 <outpath>" -elif which -s svn +elif which svn >/dev/null then if [ -d .svn ] then
bash
d_bash_10554
--- +++ @@ -7,7 +7,7 @@ exit 1 fi # Start web server for Twilio -ngrok -authtoken E_-s84Q-fW2O1B_kU1Fl -subdomain=52c014b4 -log=stdout 8001 & -/opt/ros/indigo/bin/roslaunch metatron_id metatron_id.launch --screen & +nohup ngrok -authtoken E_-s84Q-fW2O1B_kU1Fl -subdomain=52c014b4 -log=stdout 8001 & +nohup /opt/...
bash
d_bash_10555
--- +++ @@ -1,6 +1,6 @@ # Golang export GOPATH=$HOME/workspace/golang -export PATH=$PATH:$GOPATH/bin:~/bin:~/.yarn/bin +export PATH=$PATH:$GOPATH/bin:~/bin:~/.yarn/bin:/opt/google-cloud-sdk/bin/ # PHP (Composer) export PATH=$PATH:~/.composer/vendor/bin
bash
d_bash_10556
--- +++ @@ -1,5 +1,10 @@ #!/bin/sh +MONTH=`date +%-m` + +if [[ $(( $MONTH % 2 )) -eq 0 ]]; then + exit; +fi LINK=$(readlink -f "$0");
bash
d_bash_10557
--- +++ @@ -20,11 +20,11 @@ # Run xUnit tests pushd test/csharp ## Build -dotnet build +dotnet build -c Linux ## Work-around dotnet/cli#753 -cp -r ../../src/Microsoft.PowerShell.Linux.Host/{Modules,*ps1xml} bin/Debug/netstandardapp1.5/ubuntu.14.04-x64 +cp -r ../../src/Microsoft.PowerShell.Linux.Host/{Modules,*ps1...
bash
d_bash_10558
--- +++ @@ -8,5 +8,12 @@ . $HOME/.dotfiles/cron/cron.env . $HOME/.dotfiles/shell/rsync.sh # Defines sync function +this_host=$(hostname) + +# Only run this on iMac +if [[ $this_host != "imac.local" ]]; then + exit +fi + # Sync user dir from iMac -> ThunderBay time sync $phatblat_imac $phatblat_external "g...
bash
d_bash_10559
--- +++ @@ -1,3 +1,5 @@ #!/bin/sh RUST_LOG=rls cargo run --manifest-path=/opt/rls/Cargo.toml 2>>/tmp/client.log + +# tee -a /tmp/client.log | RUST_LOG=rls cargo run --manifest-path=/opt/rls/Cargo.toml 2>>/tmp/client.log | tee -a /tmp/client.log
bash
d_bash_10560
--- +++ @@ -13,7 +13,7 @@ ( cd /data/src/java - mvn install -DskipTests -o + mvn install -DskipTests DISCOVERY_DIRECTORY_WAR_FILE=$(find /data/src/java/backend-services/discovery-directory-jee/target -iregex ".*discovery-directory-jee-.*war")
bash
d_bash_10561
--- +++ @@ -20,7 +20,7 @@ echo "Installing Yeoman & generator..." -sudo npm install -g yo generator-meanjs mean-cli +sudo npm install -g yo generator-meanjs generator-meancrud gulp echo "=========================" echo "Provisioning finished"
bash
d_bash_10562
--- +++ @@ -3,5 +3,5 @@ set -e basedir=$(dirname $0) -pep8 --ignore=E201,E202,E241,E251 --exclude=tests,config,features "$basedir" +pep8 --ignore=E201,E202,E241,E251 --exclude=tests,config,features,build,src,venv "$basedir" pep8 --ignore=E201,E202,E241,E251,E501 "$basedir/tests" "$basedir/features"
bash
d_bash_10563
--- +++ @@ -18,7 +18,7 @@ cd $SRC_DIR/c++ ./configure --prefix=$PREFIX --with-mt --without-debug - make -j4 + make cp $SRC_DIR/c++/GCC*-ReleaseMT*/bin/rmblastn $PREFIX/bin fi
bash
d_bash_10564
--- +++ @@ -1,6 +1,10 @@ #!/usr/bin/env bash # # Setup rebenv and install some nice gems globally + +set -e + +RUBY_VERSION="2.2.2" GEMS=( "bundler" @@ -22,7 +26,10 @@ fi # Check for rbenv before attempting to install gems -if $(command -v rbenv) ; then +if $(command -v rbenv >/dev/null 2>&1) ; then + e...
bash
d_bash_10565
--- +++ @@ -3,8 +3,15 @@ if [[ -n "$JENKINS_RESTORE_FROM" ]] then - echo "Restoring from ${JENKINS_RESTORE_FROM}..." - curl $JENKINS_RESTORE_FROM | tar zxvf - -C $JENKINS_HOME + if [[ -f "${JENKINS_HOME}/.restored" ]] + then + echo "Skipping restore due to ${JENKINS_HOME}/.restored" + else + echo "Rest...
bash
d_bash_10566
--- +++ @@ -2,10 +2,7 @@ # make sure we have the network tools in place for various network specs if [ -f /etc/debian_version ]; then - apt-get update -y && apt-get install -y net-tools iproute2 touch /etc/network/interfaces -elif [ -f /etc/redhat-release ]; then - yum install -y net-tools fi # make sure...
bash
d_bash_10567
--- +++ @@ -3,8 +3,8 @@ set -u # checksums -sashimi_md5="e087c484de2ed2498fabe5c3f0b7e836" -sashimi_anno_md5="b6f82cfd3c7935c1113338730a2cffa2" +sashimi_md5="ff7d755c26673831db3fd0dd224b8bc0" +sashimi_anno_md5="e817cbf59608d090cf8292290dadc1cb" fail() { echo ${1-""} >&2 && exit 1
bash
d_bash_10568
--- +++ @@ -4,5 +4,6 @@ # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. -# PHP scripts used -cp "$LIV_DIR_SCRIPT_CUR/resources/http.liviubalan.com/php/apc_add.php" /var/www/http.liviubalan.com/ +# PHP scripts used. +# For more info see h...
bash
d_bash_10569
--- +++ @@ -5,3 +5,8 @@ alias dcd='dc down' alias dcb='dc build' alias db='dc up -d db' + +# Produce a .env file from the Docker Compose environment config of the dev service +dc-env() { + ruby -r yaml -e 'puts YAML.load_file(Dir.glob("docker-compose.y*ml")[0]).fetch("services").fetch("dev").fetch("environment")....
bash
d_bash_10570
--- +++ @@ -9,7 +9,7 @@ # Do not deploy SNAPSHOT artifacts for PRs if [[ "$TRAVIS_PULL_REQUEST" = "false" ]]; then - mvn -B deploy --settings maven_deploy_settings.xml -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dsource.skip=true -Dfindbugs.skip=true + mvn -B deploy --settings maven_deploy_settings.xm...
bash
d_bash_10571
--- +++ @@ -1,12 +1,38 @@ #!/bin/bash + +# Set the tmpdir +if [ -z "$TMPDIR" ]; then + TMPDIR="/tmp" +fi + +# Create a temporary build dir and make sure we clean it up. For +# debugging, comment out the trap line. +DEPLOY=`mktemp -d $TMPDIR/otto-www-XXXXXX` +trap "rm -rf $DEPLOY" INT TERM EXIT # Get the parent d...
bash
d_bash_10572
--- +++ @@ -21,7 +21,7 @@ conda info -a # for debugging conda remove --name test --all || true -conda create -n test -c notebook pytest python=$PYTHON +conda create -n test -c conda-forge notebook pytest python=$PYTHON source activate test # create jupyter base dir (needed for config retrieval)
bash
d_bash_10573
--- +++ @@ -1,7 +1,7 @@ ###################################################################### # creates both tar files (source and documentation). call this script # in an otherwise empty directory as follows: -# +# # bash make_tarfile.sh 6 0 0 # # to generate the tar files for release 6.0.0 @@ -21,16 +21,7...
bash
d_bash_10574
--- +++ @@ -2,6 +2,6 @@ mkdir -p $DOTFILES/caches/vim # Download Vim plugins. -if [[ "$(type -P vim)" ]]; then - vim +PackUpdate +qall -fi +# if [[ "$(type -P vim)" ]]; then +# vim +PackUpdate +qall +# fi
bash
d_bash_10575
--- +++ @@ -13,8 +13,12 @@ fi done -# add default zkNode +# add default zkNodes /opt/zookeeper/bin/zkCli.sh -server 127.0.0.1:2181 create /${KILDA_ZKNODE} "" +# TODO remove common_component node when zero downtime feature will be implemented +/opt/zookeeper/bin/zkCli.sh -server 127.0.0.1:2181 create /${KILDA_Z...
bash
d_bash_10576
--- +++ @@ -25,6 +25,7 @@ openssl pre-commit pv + rectangle rename smartmontools ssh-copy-id
bash
d_bash_10577
--- +++ @@ -8,6 +8,7 @@ alias edit="vi" alias ..="cd .." alias ...="cd ../.." +alias empty="cat /dev/null >" alias back="cd -" alias be="bundle exec" alias gs="git s"
bash
d_bash_10578
--- +++ @@ -2,6 +2,7 @@ LOGGING="../../../node_modules/opentok-solutions-logging/opentok-solutions-logging.js" npm i +npm update cd public/js/components cp -v $LOGGING opentok-solutions-logging.js
bash
d_bash_10579
--- +++ @@ -13,11 +13,11 @@ #echo "Comparando $V_LOCAL_FILE com o SVN" echo '--diff '"$V_COPIED_FILE"' '"$V_LOCAL_FILE" else - #if [[ "${OSTYPE//[0-9.]/}" == 'darwin' ]]; then - # diff $1 $2 | less - #else - meld $V_TEMP_FILE $V_LOCAL_FILE # > /dev/null 2>&1 - #fi + if [[ "${OSTYPE//[0...
bash
d_bash_10580
--- +++ @@ -13,4 +13,4 @@ sed -i -e "s,\(\tversion \+= \)\".*\"$,\1\"$version\"," config.go sed -i -e "s/version=.*$/version=$version/" install-cow.sh sed -i -e "s/当前版本:[^ ]\+ \(.*\)\$/当前版本:$version \1/" README.md - +sed -i -e "s/Current version: [^ ]\+ \(.*\)\$/Current version: $version \1/" README-en.md
bash
d_bash_10581
--- +++ @@ -1,10 +1,22 @@ #!/bin/bash # Checkt of alle bestanden die eindigen op .php correcte php syntax hebben. +error_count=0 + function parse_file { - if [[ $(php -l $1) != "No syntax errors detected in $file" ]]; then - echo "syntax error" - exit 1 + parse_output=$(php -l $1) + if [[ $parse_output != "No ...
bash
d_bash_10582
--- +++ @@ -3,7 +3,7 @@ docker-compose exec -T cassandra ./wait-for-it docker-compose exec -T dynamodb ./wait-for-it for keyspace in auditors global_lookups page_views; do - docker-compose exec -T cassandra cqlsh -e "CREATE KEYSPACE ${keyspace} WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor'...
bash
d_bash_10583
--- +++ @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # I will always have to look these up, so why not just do it here? # Ref: http://diveintopython3.org/packaging.html
bash
d_bash_10584
--- +++ @@ -7,6 +7,15 @@ # Get latest tag name latestTag=$(git describe --tags `git rev-list --tags --max-count=1` | sed -e 's/-rc[0-9][0-9]*//') + +# Exclude files without the Apache license header +for i in $(git ls-files); do + case "$i" in + (LICENSE|NOTICE|message/common.pb.go|message/requests.pb.go|mess...
bash
d_bash_10585
--- +++ @@ -31,7 +31,7 @@ cd $DOWNLOAD_DIR #download z3 -curl http://saw.galois.com/builds/z3/z3 > z3 +curl https://s3-us-west-2.amazonaws.com/s2n-public-test-dependencies/z3-2017-04-04-Ubuntu14.04-64 > z3 sudo chmod +x z3 mkdir -p $INSTALL_DIR/bin && mv z3 $INSTALL_DIR/bin
bash
d_bash_10586
--- +++ @@ -1,3 +1,2 @@ #!/bin/bash -# jazzy -a IBM -m WatsonSDK -g https://github.com/IBM-MIL/Watson-iOS-SDK -jazzy -m WatsonSDK -g https://github.com/IBM-MIL/Watson-iOS-SDKl +jazzy -m WatsonDeveloperCloud -g https://github.com/watson-developer-cloud/ios-sdk --skip-undocumented --hide-documentation-coverage --excl...
bash
d_bash_10587
--- +++ @@ -3,7 +3,7 @@ case "$1" in java8) - echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u332-b09/OpenJDK8U-jdk_x64_linux_hotspot_8u332b09.tar.gz" + echo "https://github.com/bell-sw/Liberica/releases/download/8u333+2/bellsoft-jdk8u333+2-linux-amd64.tar.gz" ;; java11) ec...
bash
d_bash_10588
--- +++ @@ -15,5 +15,5 @@ flowfile="$flowdir"/index.flow #echo $jsflowfile $flowdir $flowfile mkdir -p "$flowdir" - curl -H "Content-Type: text/plain" -d @"$jsflowfile" "http://vmuthusfileserver.ng.bluemix.net/translate?name=$jsflowname" > "$flowfile" + curl -H "Content-Type: text/plain" -d @"$jsflowfile" "http...
bash
d_bash_10589
--- +++ @@ -42,8 +42,3 @@ ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info rm -rf ./coverage fi - -if [ -z "${TRAVIS_PULL_REQUEST}" ] || [ "${TRAVIS_PULL_REQUEST}" = "false" ] -then - ./bin/run-e2e.sh -fi
bash
d_bash_10590
--- +++ @@ -1,4 +1,4 @@ -FILTER=$(auto_filter "User.UserName" "User.UserId" "User.Path||''" -- $@) +FILTER=$(auto_filter "User.UserName||''" "User.UserId||''" "User.Path||''" -- $@) awscli iam list-virtual-mfa-devices --output table --query "VirtualMFADevices[$FILTER].{ \"1.SerialNumber\":SerialNumber,
bash
d_bash_10591
--- +++ @@ -1,3 +1 @@ -if [ -n "$S3_BUCKET" ]; then - /usr/local/bin/aws s3 sync /var/jenkins_home s3://$S3_BUCKET --sse AES256 --debug -fi +/usr/local/bin/aws s3 sync /var/jenkins_home s3://$S3_BUCKET --sse AES256 --debug
bash
d_bash_10592
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash set -e -version="19.03.14" +version="20.10.6" echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz";
bash
d_bash_10593
--- +++ @@ -8,3 +8,5 @@ alias ll="gls -l --color" alias la='gls -A --color' fi + +alias storm="open -a /Applications/PhpStorm.app ./"
bash
d_bash_10594
--- +++ @@ -15,7 +15,7 @@ fi cd ${sources} -./mvnw clean install -DargLine="-Dlsp.completions.indentation.enable=true -Dlsp.yaml.completions.errors.disable=true" +xvfb-run ./mvnw clean install -DargLine="-Dlsp.completions.indentation.enable=true -Dlsp.yaml.completions.errors.disable=true" # Copy fatjars to `ou...
bash
d_bash_10595
--- +++ @@ -5,7 +5,7 @@ # Add the openc_bot to the Gemfile: if [ ! -f Gemfile ]; then echo "source 'https://rubygems.org'" >> Gemfile - echo "gem 'openc_bot', :git => 'https://github.com/openc/openc_bot.git'" >> Gemfile + echo "gem 'openc_bot', :git => 'https://github.com/openc/openc_bot.git', :branch => 'comp...
bash
d_bash_10596
--- +++ @@ -4,4 +4,5 @@ pushd /var/www/telemetry/telemetryui/ flask db upgrade -uwsgi --http 0.0.0.0:5000 --chdir /var/www/telemetry/telemetryui/ -w telemetryui:app --spooler /var/www/telemetry/telemetryui/uwsgi-spool +uwsgi --http 0.0.0.0:5000 --chdir /var/www/telemetry/telemetryui/ -w telemetryui:app \ + -...
bash
d_bash_10597
--- +++ @@ -34,7 +34,15 @@ git_clone $DEVSTACK_START_REPO $DEVSTACK_START_DIR $DEVSTACK_START_BRANCH # Set up localrc -cp -p devstack.start.localrc $DEVSTACK_START_DIR/localrc +cp -p $TOP_DIR/devstack.start.localrc $DEVSTACK_START_DIR/localrc + +# clean up apache config +# essex devstack uses 000-default +# fols...
bash
d_bash_10598
--- +++ @@ -8,12 +8,12 @@ # Output isn't verified, this is just a quick test to ensure they can run # First hydrate some IDs into tweets -twarc.py --hydrate test/ids.txt > tweets.json +python twarc.py --hydrate test/ids.txt > tweets.json # Now test utils utils/wall.py tweets.json > tweets.html utils/wordclou...
bash
d_bash_10599
--- +++ @@ -3,10 +3,29 @@ galaxy_dir=$1 current_dir=$PWD +# Prepare galaxy tool sections +function create_tool_section_dir { + if [ ! -d $1 ]; then + mkdir -p $1 + fi +} + +create_tool_section_dir $galaxy_dir/tools/extract +create_tool_section_dir $galaxy_dir/tools/concatenate +create_tool_section_di...
bash