document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_17400
--- +++ @@ -4,3 +4,6 @@ cd ~/.vim/bundle/YouCompleteMe ./install.sh --clang-completer cd - + +# brew install cmake +# sudo apt-get isntall build-essential cmake python-dev
bash
d_bash_17401
--- +++ @@ -6,7 +6,7 @@ # which port port=8080 # a random name for the container and the image -randName=$(cat /dev/random | LC_CTYPE=C tr -dc "[:lower:]" | head -c 8) +randName=$(LC_CTYPE=C tr -dc "[:lower:]" < /dev/random | head -c 8) # build the image docker build -t "$randName" .
bash
d_bash_17402
--- +++ @@ -4,10 +4,13 @@ IMG_REWRITE="$TEST_ROOT/webp_rewriting/rewrite_images.html" REWRITE_URL="$IMG_REWRITE?PageSpeedFilters=rewrite_images" URL="$REWRITE_URL,convert_jpeg_to_webp&$IMAGES_QUALITY=75&$WEBP_QUALITY=65" -check run_wget_with_args \ - --header 'X-PSA-Blocking-Rewrite: psatest' --user-agent=webp $U...
bash
d_bash_17403
--- +++ @@ -4,7 +4,9 @@ if [ "x$AUTOTOOLS" == "xyes" ]; then autoreconf - ./configure + ./configure --enable-tests \ + --with-sassc-dir=$SASS_SASSC_PATH \ + --with-sass-spec-dir=$SASS_SPEC_PATH make fi
bash
d_bash_17404
--- +++ @@ -1,4 +1,5 @@ post_install() { + systemctl daemon-reload systemctl enable {{name}} systemctl enable {{name}}.socket systemctl start {{name}} @@ -10,6 +11,7 @@ } post_upgrade() { + systemctl daemon-reload systemctl start {{name}} } @@ -21,4 +23,5 @@ } post_remove() { + systemctl daemon-re...
bash
d_bash_17405
--- +++ @@ -3,7 +3,15 @@ git pull origin master HTML_CONTENT=$(./nhl html) +STASHED=false + git checkout gh-pages +if [[ "$?" != 0 ]]; then + git stash + git checkout gh-pages + STASHED=true +fi + git pull origin gh-pages echo "$HTML_CONTENT" > index.html @@ -12,3 +20,7 @@ git push origin gh-pages git ch...
bash
d_bash_17406
--- +++ @@ -5,6 +5,8 @@ IMAGES_PATH="TextContour/Images" PLIST_PATH="TextContour/Info.plist" PLISTBUDDY="/usr/libexec/PlistBuddy" + +git checkout TextContour.xcodeproj/project.pbxproj TextContour/Info.plist # Copy phase echo "Coping Fonts..." @@ -24,8 +26,9 @@ [[ "$?" = 0 ]] && ${PLISTBUDDY} -c "Delete UIAppF...
bash
d_bash_17407
--- +++ @@ -7,6 +7,7 @@ pkg_license=("Apache-2.0") pkg_source="https://github.com/mholt/caddy/caddy" pkg_bin_dirs=(bin) +pkg_deps=(core/glibc) pkg_scaffolding=core/scaffolding-go scaffolding_go_base_path=github.com/mholt/caddy/caddy scaffolding_go_build_deps=()
bash
d_bash_17408
--- +++ @@ -18,7 +18,7 @@ *) echo "Imagestream testing not supported for $OS environment." ; return 0 ;; esac - ct_os_test_image_stream_quickstart "${THISDIR}/imagestreams/python-${OS}.json" \ + ct_os_test_image_stream_quickstart "${THISDIR}/imagestreams/python-${OS%[0-9]*}.json" \ ...
bash
d_bash_17409
--- +++ @@ -4,6 +4,7 @@ # Casks to install casks=( 1password + android atom clion djview @@ -17,6 +18,7 @@ inkscape insync intellij-idea + intel-haxm istumbler iterm2 java
bash
d_bash_17410
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash (cd ../../ && npm run build) -../../build/bin/sync --manifest ./package-lock.json --root ./.download --localUrl https://localhost:8443 --binaryAbi 57,64 --binaryArch x64 --binaryPlatform darwin +../../build/bin/sync --manifest ./package-lock.json --root ./.download --localUrl h...
bash
d_bash_17411
--- +++ @@ -1,10 +1,5 @@ #Setup for GAZEBO environement variables for SONIA -#export GAZEBO_MASTER_URI=http://localhost:11345 -#export GAZEBO_MODEL_DATABASE_URI=http://gazebosim.org/models -export GAZEBO_RESOURCE_PATH=${GAZEBO_RESOURCE_PATH}:$SONIA_WORKSPACE_ROOT/gui_nessie/ressources/ -export GAZEBO_PLUGIN_PATH=$...
bash
d_bash_17412
--- +++ @@ -11,4 +11,4 @@ git commit -m "Travis Build - Deploying to build folder" echo pushing... -git push --force "https://${GH_TOKEN}@${GH_REF}" master +git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master
bash
d_bash_17413
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash pkill vim -vim ~/.vimos/welcome.txt -c "vs | :ConqueTerm screen -f" +vim ~/.vimos/welcome.txt -c "below 10sp | :ConqueTerm screen -f"
bash
d_bash_17414
--- +++ @@ -37,9 +37,6 @@ # Manual install needed conda install --yes snakemake -conda build conda.recipe --output +BUILDFILE=`conda build conda.recipe --output` -echo `pwd` - -snakemake -s /home/travis/build/percyfal/snakemake-rules/snakemake_rules/tests/Snakefile -F data/test.sort.bam - +conda install --yes $...
bash
d_bash_17415
--- +++ @@ -22,7 +22,29 @@ asadmin start-domain asadmin start-database --jvmoptions="-Dderby.storage.useDefaultFilePermissions=true" +### configure log levels for debugging here, if required +# asadmin set-log-levels io.joynr.messaging=FINEST +### hide periodic RoutingTable.purge logs +# asadmin set-log-levels io...
bash
d_bash_17416
--- +++ @@ -8,4 +8,5 @@ # Pull typings from the cache and attempt to get latest cp -r $HOME/typings . -tsd reinstall -so; true +# make three attempts to get the typings +tsd reinstall -so || tsd reinstall -so || tsd reinstall -so || true
bash
d_bash_17417
--- +++ @@ -12,20 +12,12 @@ elif [[ "$(uname)" == "Linux"* ]]; then export PATH=/home/spin/.nix-profile/bin:$PATH - n=1 - while [[ $n -le 6 ]] && ! command -v nix-env -f &> /dev/null - do - echo "--> Cannot find nix-env, sleep 5s" - sleep 10 - n=$(( n+1 )) # increments $n - done - if ! command ...
bash
d_bash_17418
--- +++ @@ -7,12 +7,16 @@ "analyzer": { "kuromoji_analyzer": { "type": "custom", - "tokenizer": "kuromoji_tokenizer" + "tokenizer": "kuromoji_tokenizer", + "filter": [ + "cjk_width", + "lowercase" + ] } } } } ...
bash
d_bash_17419
--- +++ @@ -19,6 +19,8 @@ . ./bootstrap.sh run_test test_initial_setup +run_test test_help +run_test test_version run_test test_generate_default_count run_test test_password_count_config run_test test_password_count_cmdline
bash
d_bash_17420
--- +++ @@ -17,6 +17,8 @@ pip freeze +ln -s /usr/local/bin/gunicorn /usr/bin/gunicorn + ${ENJOLIVER}/validate.py bootcfg --version
bash
d_bash_17421
--- +++ @@ -1,16 +1,39 @@ -#!/bin/sh +#!/usr/bin/env bash # Configure homebrew permissions to allow multiple users on MAC OSX. # Any user from the admin group will be able to manage the homebrew and cask installation on the machine. -# allow admins to manage homebrew's local install directory -chgrp -R admin /usr...
bash
d_bash_17422
--- +++ @@ -26,6 +26,10 @@ wip = 0; print("===") }{ + # Skip this script + if ($1 ~ /todo\.sh/) { + next + } if ($3 ~ /TODO/) { todo++ print $1 ":" $3
bash
d_bash_17423
--- +++ @@ -8,6 +8,7 @@ test_run "xccdf:complex-check -- single negation" ./test_xccdf_shall_pass $srcdir/test_xccdf_complex_check_single_negate.xccdf.xml test_run "Certain id's of xccdf_items may overlap" ./test_xccdf_shall_pass $srcdir/test_xccdf_overlaping_IDs.xccdf.xml +test_run "Assert for environment" [ ! -...
bash
d_bash_17424
--- +++ @@ -5,10 +5,15 @@ echo "Updating GeoIP database." tmpfile=$(mktemp) +tmpdir=$(mktemp -d) curl -o $tmpfile http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz -gzcat $tmpfile > $(dirname $0)/MMDB/GeoLite2-Country.mmdb +tar -xzf $tmpfile -C $tmpdir + +find $tmpdir -type f -exec m...
bash
d_bash_17425
--- +++ @@ -9,8 +9,11 @@ { URL=$1 FILE=$2 + set +e type wget >/dev/null 2>&1 - if [ "$?" = "0" ]; then + RET=$? + set -e + if [ "$RET" = "0" ]; then wget "$URL" -O "$FILE" else curl -o "$FILE" -L "$URL"
bash
d_bash_17426
--- +++ @@ -1,5 +1,6 @@ #! /bin/bash +# Only push the Docker image for a true Production build. if [[ "${TRAVIS_BRANCH}" = "master" && "${TRAVIS_PULL_REQUEST}" = "false" ]]; then echo "DEPLOY";
bash
d_bash_17427
--- +++ @@ -1,11 +1,32 @@ +#!/bin/bash + if [[ -f build_docker_images.sh ]]; then cd .. fi -for image in `ls -d dockerfiles/*`; do +echo '**********************************************' +echo "Updating base Ubuntu image..." +echo '**********************************************' +docker pull ubuntu + +base_im...
bash
d_bash_17428
--- +++ @@ -17,3 +17,9 @@ pwd | perl -ne"s#^$(echo ~/.dotfiles)## && exit 1" && cd ~/.dotfiles q ~/.dotfiles } + +# Open shortcut +alias o="open" + +# Open the current dir in finder +alias o.="open ."
bash
d_bash_17429
--- +++ @@ -9,11 +9,16 @@ if [ -d $project/.git ]; then echo "git $project" cd $project - git fetch --all - git reset --hard - git clean -df - git merge --ff-only - git submodule update --init --recursive + if [[ $project == *base16-shell* ]]; then + git pull --all + else + ...
bash
d_bash_17430
--- +++ @@ -13,6 +13,13 @@ sleep 5 tail -f apache/logs/error_log & +# Deploy all war files +WEBAPPDIR=/app/tomcat/webapps +for WAR in *.war; do + echo "Deploying $WAR" + cp "$WAR" "$WEBAPPDIR" +done + while pgrep -f /app/apache/bin/httpd >/dev/null; do echo "Apache running..." sleep 60
bash
d_bash_17431
--- +++ @@ -5,6 +5,8 @@ for f in $FILES; do rm -f ~/.$f.orig - cp -f -R ~/.$f{,.orig} + if [ -f ~/.$f ]; then + cp -f -R ~/.$f{,.orig} + fi ln -v -s -f $CWD/$f ~/.$f done
bash
d_bash_17432
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -e if [ "$1" == "install" ]; then if [ -d /host ]; then mkdir -p /host/cfg/
bash
d_bash_17433
--- +++ @@ -1,7 +1,7 @@ #!/bin/sh # Shell configuration | core commands -if ! command -v realpath >/dev/null 2>&1; then +if ! which realpath >/dev/null 2>&1; then realpath() { printf %s "$1" | command grep -q '^/' && printf %s "$1" || printf %s "$PWD/${1#./}" }
bash
d_bash_17434
--- +++ @@ -5,4 +5,4 @@ test "${PRESET}" == "exunit" || exit 0 docker run -d -p 2197:2197 mobify/apns-http2-mock-server -docker run -d -p 443:443 roxeon/fcm-http2-mock-server +docker run -d -p 443:443 rslota/fcm-http2-mock-server
bash
d_bash_17435
--- +++ @@ -4,7 +4,7 @@ ./grailsw test-app --non-interactive ./grailsw package-plugin --non-interactive ./grailsw doc --pdf --non-interactive -if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_REPO_SLUG == 'candrews/grails-jasper' && TRAVIS_PULL_REQUEST == 'false' ]]; then +if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_RE...
bash
d_bash_17436
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" -docker build--build-arg BUILD_ENV=travis -t slidewiki/deckservice:latest-dev ./ +docker build --build-arg BUILD_ENV=travis -t slidewiki/deckservice:latest-dev . docker push slidewiki/deckservice:latest-dev
bash
d_bash_17437
--- +++ @@ -3,6 +3,7 @@ # See https://www.consul.io/docs/agent/options.html for config file options +mkdir -p /var/lib/consul/config configFile="/var/lib/consul/config/100-default-server-config.generated.json" rm -f $configFile
bash
d_bash_17438
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash #go to git root cd `git rev-parse --show-toplevel` -ENCODED=$(cat | base64 -w0) +ENCODED=$(cat | sed -e '/^export/!s/^/export /g' | base64 -w0) sed -e "s#{{secret_data}}#${ENCODED}#g" ./cluster/setup/secret-template.yaml
bash
d_bash_17439
--- +++ @@ -47,13 +47,13 @@ # Send SIGTERM if [[ $(ms) -lt $ms_end ]] then - bin/wsh pkill -TERM -v -u 0 || true + bin/wsh pkill -TERM -v -P 0 || true fi # Wait for processes to quit while [[ $(ms) -lt $ms_end ]] do - if ! bin/wsh pgrep -c -v -u 0 > /dev/null + if ! bin/wsh pgrep -c -v -P 0 > /dev/null ...
bash
d_bash_17440
--- +++ @@ -13,5 +13,5 @@ filename=`basename "$1"` -cat $filename | sed "s/{{version_and_date}}/${version_and_date}§$(printf '=%.0s' `seq 1 ${#version_and_date}`)/" | tr '§' '\n' > ${filename}.tmp && mv ${filename}.tmp ${filename} +cat $filename | sed "s/{{version_and_date}}/${version_and_date}\n$(printf '=%.0s'...
bash
d_bash_17441
--- +++ @@ -22,3 +22,8 @@ bashvm use 3.2 --install >/dev/null 2>&1 assert_match 'bash-3.2' "$(which bash)" } + +testcase_use_system_version() { + bashvm use system --default >/dev/null + assert_match "/bin/bash" "$(which bash)" +}
bash
d_bash_17442
--- +++ @@ -7,5 +7,7 @@ example_name=adaptivity_ex4 run_example "$example_name" approx_type=HERMITE + +# CLOUGH elements don't currently support threads run_example_no_extra_options "$example_name" approx_type=CLOUGH $LIBMESH_OPTIONS --n_threads=1 #run_example "$example_name" approx_type=SECOND # Broken?
bash
d_bash_17443
--- +++ @@ -7,7 +7,7 @@ cd $RAILS_NAME for gem in sdoc coffee-rails uglifier sass-rails jquery-rails jbuilder turbolinks do - sed -i.bak -e "s/^gem '$gem'/\# gem '$gem'/g" Gemfile + sed -i.bak -e "s/^[\s]*gem '$gem'/\# gem '$gem'/g" Gemfile done echo 'gem "rpush", path: "/rpush"' >> Gemfile bundle
bash
d_bash_17444
--- +++ @@ -1,6 +1,15 @@ #!/bin/bash # Create fresh db, load fixtures in an order that works + +read -p "About to blow away DB - answer Y to go ahead, ^C to cancel> " +case $REPLY in + Y*) ;; + *) + echo "Cancelling (try capital Y if you meant to go ahead)" + exit 1 + ;; +esac dropdb pycon2014 createdb...
bash
d_bash_17445
--- +++ @@ -11,7 +11,15 @@ # http://www.nherson.com/blog/2014/01/13/stubbing-system-executables-with-bats stub() { + exit_code=$3 + [[ -z $exit_code ]] && exit_code=0 + mkdir -p "$BATS_TEST_DIRNAME/tmp/stub" - echo "echo '$2'" > "$BATS_TEST_DIRNAME/tmp/stub/$1" + cat <<STUB > "$BATS_TEST_DIRNAME/tmp/stub/$...
bash
d_bash_17446
--- +++ @@ -13,9 +13,10 @@ git pull cd .. +rm -rf vulndb/db/ mkdir -p vulndb/db/ -cp -rf data/db/*.json vulndb/db/ -git add vulndb/db/ +cp -rf data/db/* vulndb/db/ +git add vulndb/db/* # Bump the version numbers tools/semver.sh bump patch
bash
d_bash_17447
--- +++ @@ -1,10 +1,10 @@ #!/bin/bash -# stage TalkyTalky editions for tiddlywiki.com/talkytalky by copying them into the jermolene.github.com repo +# stage TalkyTalky editions for tiddlywiki.com/talkytalky by copying them into the jermolene.github.io repo -mkdir -p ../jermolene.github.com/talkytalky/lnug -mkdir...
bash
d_bash_17448
--- +++ @@ -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' > $ACTUAL_RESULT_PARSED +sed 's/^\[INFO] //g' $ACTUAL_RESULT | sed '1,29d' | sed '5,$d' | grep -v '\-\-\-\-\-\-\-\-\-\-\-\-\-' > $ACTUA...
bash
d_bash_17449
--- +++ @@ -5,23 +5,8 @@ # ./createReleases.sh ~/Downloads/5-release/ releases=( -"5.0.0" -"5.0.1" -"5.0.1" -"5.0.2" -"5.1.1" -"5.1.2" -"5.2.0" -"5.2.1" -"5.2.2" -"5.3.0" -"5.3.1" -"5.3.2" -"5.3.3" -"5.4.0" -"5.4.1" -"5.4.2" "5.5.0" +"5.5.1" ) for i in "${releases[@]}"
bash
d_bash_17450
--- +++ @@ -1,9 +1,9 @@ -#!/bin/zsh +#!/bin/bash if [[ $(uname) == "Linux" ]]; then export PATH="$PATH:$HOME/npm/bin" else - export NVM_DIR="~/.nvm" + export NVM_DIR="$HOME/.nvm" export PATH="$PATH:/usr/local/lib/node_modules" source "$(brew --prefix nvm)/nvm.sh" fi
bash
d_bash_17451
--- +++ @@ -1,18 +1,25 @@ #!/usr/bin/env bash -git clone https://github.com/libuv/libuv; +mkdir libuv +wget https://github.com/libuv/libuv/archive/v1.x.tar.gz -O /tmp/libuv.tar.gz +tar -xvf /tmp/libuv.tar.gz -C libuv --strip-components=1 + pushd libuv; -git checkout $(git describe --tags); -./autogen.sh; -./confi...
bash
d_bash_17452
--- +++ @@ -4,5 +4,5 @@ for file in $(find $1 -name "*.fec"); do - curl -s "http://docquery.fec.gov/dcdev/posted/$(basename $file)" | gzip -9 > $2"$(basename $file).gz" + curl -s "https://docquery.fec.gov/dcdev/posted/$(basename $file)" | gzip -9 > $2"$(basename $file).gz" done
bash
d_bash_17453
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash -lv # Create cloud image, push it to OpenStack and create test instance -echo "=== "$(date):u +echo "=== "$(date) # Expiting the file location to be: # /SOME/PATH/diskimage-builder-scripts.${openstack_environment}/image_${openstack_environment}_constants.sh
bash
d_bash_17454
--- +++ @@ -1,12 +1,12 @@ #!/usr/bin/env bash -if [ -n ${PHP_VERSION} ]; then +if [ -n "${PHP_VERSION}" ]; then cp env-example .env docker-compose build docker images fi -if [ -n ${HUGO_VERSION} ]; then +if [ -n "${HUGO_VERSION}" ]; then HUGO_PACKAGE=hugo_${HUGO_VERSION}_Linux-64bit HUG...
bash
d_bash_17455
--- +++ @@ -1,3 +1,3 @@ -grep export $HOME/.bash_profile | while IFS=' =' read ignoreexport envvar ignorevalue; do +grep "^export" $HOME/.bash_profile | while IFS=' =' read ignoreexport envvar ignorevalue; do launchctl setenv ${envvar} ${!envvar} done
bash
d_bash_17456
--- +++ @@ -23,7 +23,7 @@ exit 1 fi -game_file="${pool_file}_games.txt" +game_file="${pool_file}_games.pgn" opening_file="${game_file}_opening_list.txt" octave analysis/gene_plots.m "$pool_file" "$notes_file" & octave analysis/win_lose_draw_plotting.m "$game_file" "$notes_file" &
bash
d_bash_17457
--- +++ @@ -5,4 +5,10 @@ export SSH_AUTH_USER="api" export API_URL="http://localhost:3000/graphql" -cd "$(dirname "${BASH_SOURCE[0]}")/cli" && yarn run execute "$@" +# Set the identity option to the local private key for the `login` and `logout` +# commands unless the option is already set. +if [[ $@ =~ login|log...
bash
d_bash_17458
--- +++ @@ -10,7 +10,7 @@ apt-get update apt-get install -y lsb-release -deb=`ls "/debs/matrix-synapse-py3_*+$(lsb_release -cs)*.deb" | sort | tail -n1` +deb=`find /debs -name "matrix-synapse-py3_*+$(lsb_release -cs)*.deb" | sort | tail -n1` debconf-set-selections <<EOF matrix-synapse matrix-synapse/report-st...
bash
d_bash_17459
--- +++ @@ -18,4 +18,7 @@ echo "Unzipping the downloaded data." tar -xvf $year/gsod_$year.tar -C $year/ rm $year/gsod_$year.tar + for filename in `ls $year/*.gz`; do + gunzip $year/$filename + done fi
bash
d_bash_17460
--- +++ @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Loads configurations into their proper places -if [ ! -d "./configs" ]; then +if [ ! -d "./configs" ] ; then echo "Could not find configs. This script must be run in the root sneaky-scripts directory." exit 1 fi @@ -11,3 +11,9 @@ cat ./configs/profile >> ~...
bash
d_bash_17461
--- +++ @@ -1,2 +1,2 @@ +#!/bin/bash DYLD_LIBRARY_PATH=~/Downloads/instantclient_11_2-2 ../xcodebuild/ReleaseIA32/dart oracledart_sync_extension_test.dart -
bash
d_bash_17462
--- +++ @@ -21,7 +21,7 @@ echo "You shouldn't start Etherpad as root!" echo "Please type 'Etherpad rocks my socks' or supply the '--root' argument if you still want to start it as root" read rocks - if [ ! "$rocks" == "Etherpad rocks my socks" ] + if [ ! "$rocks" = "Etherpad rocks my socks" ] then ...
bash
d_bash_17463
--- +++ @@ -1,31 +1,33 @@ #!/bin/bash -while [[ "$(pg_isready -h ${DB_HOST} -U ${DB_USER})" =~ "no response" ]]; do - echo "Waiting for postgres to start..." - sleep 0.1 -done +if [[ ${RACK_ENV} = "development" ]]; then + while [[ "$(pg_isready -h ${DB_HOST} -U ${DB_USER})" =~ "no response" ]]; do + echo "Wa...
bash
d_bash_17464
--- +++ @@ -19,7 +19,12 @@ mkdir build cd build ../llvm/configure --enable-targets=x86_64,arm --build=x86_64-apple-darwin10 --disable-optimized --disable-assertions --enable-libcpp - make -j8 DEBUG_SYMBOLS=1 + make -j8 clang-only DEBUG_SYMBOLS=1 + rm -rf lib projects runtime unittests utils + ...
bash
d_bash_17465
--- +++ @@ -1,4 +1,15 @@ #!/bin/bash -e + +if ! whoami &> /dev/null; then + if [ -w /etc/passwd ]; then + sed "s/^edge:x:1000:1000:/edge:x:$(id -u):1000:/" /etc/passwd > /tmp/passwd + cat /tmp/passwd > /etc/passwd + rm /tmp/passwd + sudo chown -R edge /home/edge /var/www + fi +fi + +echo "PS1='\[\0...
bash
d_bash_17466
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -git describe --tags --dirty | sed -e 's/-.*//' -e 's/^v//g' > __conda_version__.txt +git describe --tags --dirty | sed -e 's/-\(.*\)-g.*/+\1/' -e 's/^v//g' > __conda_version__.txt cd python
bash
d_bash_17467
--- +++ @@ -1,6 +1,10 @@ #!/bin/sh -gst-launch-1.0 \ - tcpclientsrc host=localhost port=11000 !\ + + +dest_dir=$1/$(date +%Y-%m-%d) + +mkdir -p $dest_dir + matroskademux name=demux \ \ demux. !\ @@ -18,4 +22,5 @@ mux. \ \ mpegtsmux name=mux !\ - filesink location=foo.ts + filesink location="$dest_dir/...
bash
d_bash_17468
--- +++ @@ -26,7 +26,6 @@ bundle exec rake assets:clean RAILS_ENV=production bundle exec rake assets:precompile RAILS_ENV=production -bundle exec rake cache:clear RAILS_ENV=production # return stashed changes (if necessary) # git stash pop
bash
d_bash_17469
--- +++ @@ -10,7 +10,7 @@ DOCKER=$(command -v docker || command -v podman) readonly DOCKER -LATEST_IMAGE="$($DOCKER image ls -q "$IMAGE_NAME":latest)" +LATEST_IMAGE="$($DOCKER image inspect -f "{{.Id}}" "$IMAGE_NAME":latest || :)" readonly LATEST_IMAGE if [[ -n "$LATEST_IMAGE" ]]; then $DOCKER image rm -f "$...
bash
d_bash_17470
--- +++ @@ -6,6 +6,8 @@ set -e set -x +lsb_release -a + 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
bash
d_bash_17471
--- +++ @@ -6,7 +6,8 @@ } # converts a date into the HTTP date format function httpdate () { - date --date=$1 +'%a, %e %b %Y %T GMT' + local human_readable_date=`echo "$*"` + date --date="${human_readable_date}" +'%a, %e %b %Y %T GMT' } # downloads a resource if the resource is newer than the local file...
bash
d_bash_17472
--- +++ @@ -1,3 +1,4 @@ . ../common.sh -cabal freeze --enable-benchmarks +# TODO: solver should find solution without extra flags too +cabal freeze --enable-benchmarks --reorder-goals --max-backjumps=-1 grep " criterion ==" cabal.config || die "should have frozen criterion"
bash
d_bash_17473
--- +++ @@ -10,7 +10,6 @@ /system/app/Vending/Vending.apk /system/app/BrowserProviderProxy/BrowserProviderProxy.apk /system/app/PartnerBookmarksProver/PartnerBookmarksProvider.apk -/system/app/Calendar/Calendar.apk EOF }
bash
d_bash_17474
--- +++ @@ -8,14 +8,14 @@ # Clone or pull the resources repository if [[ ! -d ${DIR}/.git ]]; then echo -e "\nDownloading ${NAME} resources, see ${REPO}" - git clone ${REPO} ${DIR} + git clone ${REPO} ${DIR} -q cd ${DIR} - git checkout master + git checkout master -q else echo -e "...
bash
d_bash_17475
--- +++ @@ -9,3 +9,6 @@ su - gpadmin ${CURRENT_DIR}/gpdb_src/concourse/scripts/deb_init_cluster.bash su - gpadmin ${CURRENT_DIR}/gpdb_src/concourse/scripts/deb_test_cluster.bash +su - gpadmin -c "source /opt/gpdb/greenplum_path.sh && psql -t -U gpadmin template1 -c 'select version()' | grep '\-oss'" +# gpssh repl...
bash
d_bash_17476
--- +++ @@ -25,4 +25,5 @@ --admin_port=8000 \ --api_host=$WPTD_CONTAINER_HOST \ --api_port=9999 \ + -A=wptdashboard \ webapp
bash
d_bash_17477
--- +++ @@ -3,6 +3,11 @@ : ${GENTOO_MIRROR:=http://mirror.csclub.uwaterloo.ca/gentoo-distfiles} : ${PORTDIR:=/portage} : ${BASEIMG:=gentoo/stage3-amd64} + +docker version >/dev/null 2>&1 || { + echo "Docker version cannot be determined" + exit 1 +} [[ -e ${PORTDIR} ]] || { curl -sL ${GENTOO_MIRROR}/s...
bash
d_bash_17478
--- +++ @@ -13,5 +13,5 @@ ripgrep \ silversearcher-ag -curl -L https://git.io/v5XSs | sh -ZPLUG_PROTOCOL=HTTPS zsh +# curl -L https://git.io/v5XSs | sh +# ZPLUG_PROTOCOL=HTTPS zsh
bash
d_bash_17479
--- +++ @@ -1,5 +1,7 @@ #!/bin/bash set -e + +GITHUB_RELEASE_IMAGE="buildkite/github-release@sha256:e5ae9753a8246ace67f3669baa63103429367c999bfda0a227c91a4ebf34c23f" if [[ "$GITHUB_RELEASE_ACCESS_TOKEN" == "" ]]; then echo "Error: Missing \$GITHUB_RELEASE_ACCESS_TOKEN" @@ -15,7 +17,7 @@ buildkite-agent artif...
bash
d_bash_17480
--- +++ @@ -3,5 +3,9 @@ # Clear The Old Environment Variables sed -i '/# Set Homestead Environment Variable/,+1d' /home/vagrant/.profile +sed -i '/env\[.*/,+1d' /etc/php/5.6/fpm/pool.d/www.conf +sed -i '/env\[.*/,+1d' /etc/php/7.0/fpm/pool.d/www.conf sed -i '/env\[.*/,+1d' /etc/php/7.1/fpm/pool.d/www.conf sed -...
bash
d_bash_17481
--- +++ @@ -17,4 +17,4 @@ GIT_LOCATION=$3 JAVA_OPTS="-Dfile.encoding=UTF8 -Dgithub.Owner=\"$OWNER\" -Dgithub.Repository=\"$REPOSITORY\" -Djgit.Directory=\"$GIT_LOCATION\"" -sbt run +sbt run $JAVA_OPTS
bash
d_bash_17482
--- +++ @@ -12,7 +12,7 @@ # Convert md/.md to md_html/*.html (test) # Convert html/complete.html to pdf/gritbook.pdf -python convert_web.py +python2 convert_web.py mkdir -p md_html
bash
d_bash_17483
--- +++ @@ -6,5 +6,5 @@ echo "=== Downloading and decompressing avatar package" curl -Lo defaultavatars.tgz https://github.com/MCLD/gra-avatars/archive/v4.2.0.tar.gz mkdir -p src/GRA.Web/assets/defaultavatars -tar -xvzf defaultavatars.tgz --strip-components=1 -C src/GRA.Web/assets/defaultavatars +tar -xzf defaulta...
bash
d_bash_17484
--- +++ @@ -14,4 +14,5 @@ yarn install --no-progress ./node_modules/.bin/webpack --config ./backend-webpack.config.babel.js --progress -p ./node_modules/.bin/webpack --config ./frontend-webpack.config.babel.js --progress -p +rm yarn.lock cf push
bash
d_bash_17485
--- +++ @@ -19,5 +19,6 @@ alias gb='git branch' alias gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun. alias ga='git add' +alias gsf='git show --pretty="" --name-only ' gas() { git rebase -i --autosquash HEAD~"$1"; }
bash
d_bash_17486
--- +++ @@ -8,7 +8,7 @@ exit 1 fi -sudo easy_install pip==1.2.1 +sudo easy_install pip==1.5.1 if [[ "$?" != "0" ]]; then echo "failed to install easy install" exit 1
bash
d_bash_17487
--- +++ @@ -13,10 +13,10 @@ then echo "Backing up your ~/.bash_profile file into ~/.bash_profile_original" cp ~/.bash_profile ~/.bash_profile_original +fi - echo "Changing .bash_profile..." - cat ~/.dotfiles/bash_init >> ~/.bash_profile -fi +echo "Changing .bash_profile..." +cat ~/.dotfiles/bash_init >> ~/.bas...
bash
d_bash_17488
--- +++ @@ -16,4 +16,6 @@ fi fi +set +x + java $JAVA_PARAMS $JAVA_PARAMS_OVERRIDE -jar $APP
bash
d_bash_17489
--- +++ @@ -1,17 +1,27 @@ #!/bin/bash + +echo "Running local.sh" set -o xtrace -echo "Running local.sh" +openrc=/home/stack/devstack/openrc +authorized_keys_file=/home/stack/.ssh/authorized_keys -openrc=/home/stack/devstack/openrc -source $openrc +source "$openrc" if is_service_enabled n-api; then + # E...
bash
d_bash_17490
--- +++ @@ -2,7 +2,7 @@ app_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff downtime_id=4336 -# Create a downtime to delete +# Create a downtime to update currenttime=$(date +%s) downtime_id=$(curl -X POST -H "Content-type: application/json" \ -d "{
bash
d_bash_17491
--- +++ @@ -15,5 +15,5 @@ # Mint/Ubuntu software that is not open source. sudo apt-get -y install linux-firmware-nonfree -# Apache2 http server. -sudo apt-get -y install apache2 +# Servers +sudo apt-get -y install apache2 tomcat8
bash
d_bash_17492
--- +++ @@ -3,6 +3,7 @@ set -e ROOT=$( cd $( dirname "${BASH_SOURCE[0]}" ) && cd .. && pwd ) +RET_CODE=1 cd $ROOT @@ -20,6 +21,8 @@ ./scripts/masctl -c stop --configFile test/mas-test.conf kill $REDIS_PID wait $REDIS_PID + echo "Exit code: $RET_CODE" + exit $RET_CODE } trap finish EX...
bash
d_bash_17493
--- +++ @@ -3,6 +3,11 @@ set -ex domain=local.nanocf.io + +resolvconf=$(cat /etc/resolv.conf) +rm -f /etc/resolv.conf +echo "$resolvconf" > /etc/resolv.conf + DOCKER_RUN_BLOCKS=false /var/micropcf/docker-run "$domain" cf api "api.$domain" --skip-ssl-validation
bash
d_bash_17494
--- +++ @@ -19,7 +19,6 @@ if [ "$MODE" = "build" ]; then echo "Building Localize-Swift." - pod install xctool \ -project Localize.xcodeproj \ -scheme Localize \
bash
d_bash_17495
--- +++ @@ -6,6 +6,6 @@ echo "Updating ~/.bashrc..." sudo -u vagrant echo "cd /vagrant/OIPA" >> /home/vagrant/.bashrc sudo -u vagrant echo "echo 'Starting supervisor...'" - sudo -u vagrant echo "python ./manage.py supervisor --daemonize --logfile static/supervisor.log" + sudo -u vagrant echo "pyt...
bash
d_bash_17496
--- +++ @@ -10,5 +10,12 @@ fi fi -# Ensure tmux works with 256 colors -TERM=screen-256color +case $(tty) in +/dev/tty[0-9]*) + TERM=linux + ;; +*) + # Ensure tmux works with 256 colors + TERM=screen-256color + ;; +esac
bash
d_bash_17497
--- +++ @@ -1,6 +1,7 @@ rm -rf $HUDSON_HOME/plugins/analysis-collector* -mvn install +mvn install || { echo "Build failed"; exit 1; } + cp -f target/*.hpi $HUDSON_HOME/plugins/ cd $HUDSON_HOME java -jar jenkins.war
bash
d_bash_17498
--- +++ @@ -18,11 +18,9 @@ set -o pipefail set -o xtrace - for output in gs://k8s-testgrid-canary/config gs://k8s-testgrid/config; do bazel run //testgrid/cmd/config -- \ - --yaml="$(dirname "${BASH_SOURCE}")"/config.yaml \ + --yaml="$(realpath "$(dirname "${BASH_SOURCE}")"/config.yaml)" \ --output...
bash
d_bash_17499
--- +++ @@ -1,15 +1,20 @@ #!/bin/bash -eux -echo "==> Turning off hibernation" +OSX_VERS=$(sw_vers -productVersion | awk -F "." '{print $2}') + +echo "==> Turn off hibernation" pmset hibernatemode 0 -echo "==> Getting rid of the sleepimage" +echo "==> Get rid of the sleepimage" rm -f /var/vm/sleepimage -echo...
bash