document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_2000
--- +++ @@ -9,7 +9,7 @@ redis-server ./conf/redis.conf --port $REDIS_PORT echo 'Making sure Elasticsearch is running...' -elasticsearch -d --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml +elasticsearch -d sudo sysctl -w kern.maxfiles=50000 sudo sysctl -w kern.maxfilesperproc=50000
bash
d_bash_2001
--- +++ @@ -13,3 +13,4 @@ echo "GVM is already installed, updating" gvm update fi +gvm listall | grep -E " go" | grep -vE "beta|rc" | tail -n 20 | fzf --header-first --tac --no-sort --header="Select a Go version to install" | xargs gvm install
bash
d_bash_2002
--- +++ @@ -9,6 +9,6 @@ echo $version > version/number pushd release-repo - bosh2 -n --parallel 10 sync-blobs + bosh2 -n sync-blobs --parallel 10 bosh2 -n create-release --force --name $RELEASE_NAME --tarball ../release-tarball/$RELEASE_NAME-$version.tgz --version $version popd
bash
d_bash_2003
--- +++ @@ -27,7 +27,7 @@ for collector in $COLLECTORS_TO_BENCHMARK ; do sync echo Testing collector $collector - java -Xmx1g \ + java -Xmx1g -XX:+AggressiveOpts \ -Djava.library.path=$NATIVE_SO_PATH \ -cp $(cat target/classpath.txt):target/classes \ org.cloudera.mrbenchm...
bash
d_bash_2004
--- +++ @@ -1,10 +1,19 @@ #!/bin/sh fn=$1 name=$2 + output=$(node atw.js $fn) expected=$(sed -n 's/^# -> \(.*\)/\1/p' $fn) -if [ "$output" = "$expected" ] ; then + +if [ "$expected" = "type error" ] ; then + [[ "$output" == type\ error:* ]] +else + [ "$output" = "$expected" ] +fi +success=$? + +if [ $succe...
bash
d_bash_2005
--- +++ @@ -15,7 +15,9 @@ # Changes directory to the last working directory. function lwd() { - [[ ! -r "$cache_file" ]] || cd "`cat "$cache_file"`" + if [[ `pwd` = "$HOME" ]]; then + [[ ! -r "$cache_file" ]] || cd "`cat "$cache_file"`" + fi } # Automatically jump to last working directory unless this isn't ...
bash
d_bash_2006
--- +++ @@ -4,13 +4,12 @@ cd ~ -if [ ! -d checker-278 ] +if [ ! -d ~/$CLANG_CHECKER_NAME ] then - curl http://clang-analyzer.llvm.org/downloads/checker-278.tar.bz2 -o ~/$CLANG_CHECKER_NAME.tar.bz2 + curl http://clang-analyzer.llvm.org/downloads/$CLANG_CHECKER_NAME.tar.bz2 -o ~/$CLANG_CHECKER_NAME.tar.bz2 t...
bash
d_bash_2007
--- +++ @@ -9,6 +9,12 @@ set -o pipefail # Update this from the linux-dev builder in etc/ci/buildbot_steps.yml + +export RUST_BACKTRACE=1 +export RUSTFLAGS="-Dwarnings" +export CARGO_INCREMENTAL=0 +export SCCACHE_IDLE_TIMEOUT=1200 + ./mach test-tidy --no-progress --all ./mach test-tidy --no-progress --self-test...
bash
d_bash_2008
--- +++ @@ -10,7 +10,7 @@ done } -DOCKER_IMAGE=vespaengine/vespa-dev:vespa7 +DOCKER_IMAGE=vespaengine/vespa-dev:vespa7-java11 bell & docker run --rm -v ${HOME}/.m2:/root/.m2 -v ${HOME}/.ccache:/root/.ccache -v $(pwd):/source \
bash
d_bash_2009
--- +++ @@ -13,3 +13,4 @@ npm run tsc -- --build ./server/tools/tsconfig.json cp -r "./server/tools/node_modules" "./dist/server/tools" +cp "./tsconfig.json" "./dist"
bash
d_bash_2010
--- +++ @@ -24,9 +24,9 @@ --mount ${URL_PREFIX:-/}=smbackend/wsgi.py \ --manage-script-name \ --die-on-term \ - --strict - --ignore-sigpipe - --ignore-write-errors - --disable-write-exception + --stri...
bash
d_bash_2011
--- +++ @@ -12,7 +12,7 @@ alias gp='git push $(has_tracking_branch || echo "-u origin $(git_branch)")' alias gpr='$(has_tracking_branch) || git push -u origin $(git_branch) && hub pull-request -o -l wip -p -a conf' alias gd='git diff' -alias go='git checkout' +alias goc='git checkout' alias gb='git branch' alias...
bash
d_bash_2012
--- +++ @@ -1,5 +1,6 @@ #!/bin/bash -l +set -x set -o errexit set -o nounset set -o pipefail
bash
d_bash_2013
--- +++ @@ -1,4 +1,9 @@ #!/bin/bash + +# apply wof schema first, as functions now depend on it. +echo "Creating WOF schema..." +psql $@ -f wof-schema.sql +echo "done." # subsequent sql depends on functions installed echo "Creating functions..." @@ -11,7 +16,6 @@ psql $@ -f apply-planet_osm_polygon.sql & psql $...
bash
d_bash_2014
--- +++ @@ -19,7 +19,7 @@ bosh2 -n -d cf deploy cf-deployment/cf-deployment.yml \ --vars-store /tmp/deployment-vars.yml \ --v system_domain=$SYSTEM_DOMAIN \ +-v system_domain="$SYSTEM_DOMAIN" \ -o cf-deployment/operations/windows-cell.yml \ -o buildpacks-ci/deployments/edge-shared/scale-down.yml echo -e "\n\n=...
bash
d_bash_2015
--- +++ @@ -12,12 +12,7 @@ source $BASE_DEVSTACK_DIR/stackrc # needed for status directory source $BASE_DEVSTACK_DIR/lib/apache source $BASE_DEVSTACK_DIR/lib/tls -# TODO(sdague): remove this conditional once we've branched -# grenade. Right now we need to support stable/mitaka, stable/newton, -# and master devstac...
bash
d_bash_2016
--- +++ @@ -7,8 +7,8 @@ echo "Setting up leiningen" if [ ! -f /usr/local/bin/lein ]; then - sudo wget -P /usr/local/lein https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein - sudo chmod +x /usr/local/lein + sudo wget -P /usr/local/bin https://raw.githubusercontent.com/technomancy/leiningen/stab...
bash
d_bash_2017
--- +++ @@ -11,6 +11,10 @@ ok() { echo "${green}[OK] $1${reset}" } + +step "Building the magneticio/vamp:katana-kubernetes container." +../build.sh -b -i=vamp-kubernetes +ok "Finished building the magneticio/vamp:katana-kubernetes container." # save the locally published katana-kubernetes image step "Savin...
bash
d_bash_2018
--- +++ @@ -32,6 +32,5 @@ echo "Linking latest" "$release_bin" latest --bucket-name="$bucket_name" -# Will enable when we have promoteable releases -#echo "Promoting releases" -#"$release_bin" promote-releases --bucket-name="$bucket_name" +echo "Promoting releases" +"$release_bin" promote-releases --bucket-name="...
bash
d_bash_2019
--- +++ @@ -5,4 +5,4 @@ #NETDEV=${NETDEV-tap,id=vmnet0,script=no,ifname=tap0,downscript=no} # New syntax required if using -machine q35 #CD="-drive file=$ISO,if=none,media=cdrom,id=cd1 -device ide-cd,drive=cd1" -${KVM-kvm} -smp 2 -m 32M $VGA "$@" -cdrom $ISO -netdev $NETDEV -device e1000,netdev=vmnet0 +${KVM-kvm} ...
bash
d_bash_2020
--- +++ @@ -7,14 +7,13 @@ sh bin/build-networkmodel.sh sh bin/build-simulations.sh -sh bin/run-simulations.sh -#sh bin/run-simulations-gridengine.sh +sh bin/run-simulations-gridengine.sh -sh bin/export-data.sh -sh bin/simulation-postprocess.sh +sh bin/export-data-gridengine.sh +sh bin/simulation-postprocess-gri...
bash
d_bash_2021
--- +++ @@ -1,7 +1,5 @@ #!/bin/sh -echo "$(~/bin/daysuntil 2019-10-13) days - TN Toughman" > ~/.daysuntil.deadlines -echo "$(~/bin/daysuntil 2019-10-14) days - ICANS conference" >> ~/.daysuntil.deadlines -echo "$(~/bin/daysuntil 2019-10-22) days - HFIR startup" >> ~/.daysuntil.deadlines +echo "$(~/bin/daysuntil 2019...
bash
d_bash_2022
--- +++ @@ -7,7 +7,7 @@ vim +PluginInstall +qall cd ~/.vim/bundle/YouCompleteMe -python3 install.py --clang-completer --tern-completer +python3 install.py --clang-completer --tern-completer --racer-completer git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf ~/.fzf/install
bash
d_bash_2023
--- +++ @@ -18,6 +18,7 @@ then return 0 fi + sleep $((RANDOM%111 + 10)) done echo ${@:$#} "exit code: $ret" >&2 exit $ret
bash
d_bash_2024
--- +++ @@ -14,6 +14,7 @@ bash-completion build-essential dialog + fio htop iperf iperf3
bash
d_bash_2025
--- +++ @@ -20,4 +20,4 @@ rust_install tokei tokei rust_install xsv xsv -python link-manpages.py +python $(dirname $0:A)/link-manpages.py
bash
d_bash_2026
--- +++ @@ -11,7 +11,7 @@ set -x rm -rf install/minimal mkdir -p install/minimal -cp -a install/HDE/*/lib install/minimal +cp -a lib/* install/minimal/lib mkdir -p install/minimal/include cp -a install/HDE/*/include install/minimal/include/opensplice mkdir -p install/minimal/etc
bash
d_bash_2027
--- +++ @@ -8,4 +8,4 @@ mkdir -p api/ -php7.4 phpDocumentor.phar -t "./api" -d "./lib/public" --title="Nextcloud PHP API (`git rev-parse --abbrev-ref HEAD`)" +php7.4 phpDocumentor.phar -t "./api" -d "./lib/public" --title="Nextcloud PHP API ($BRANCH)"
bash
d_bash_2028
--- +++ @@ -35,11 +35,11 @@ --agree-tos \ --quiet \ --text \ - --non-interactive + --non-interactive \ ${EMAIL} \ --domains ${CN} # Create cronjob to automatically check or renew the certificate two # times a day -CRON='0 0,12 * * * certbot renew --text --non-interactive --quiet' +CRON='0 0,12 * * * /op...
bash
d_bash_2029
--- +++ @@ -11,6 +11,6 @@ # Unzip the docx file, and grab just the text with sed # This also replaces opening <w:r> tags with newlines # The final `sed G` double spaces the output -unzip -p "$filename" | grep '<w:r' | sed 's/<w:p[^<\/]*>/ \ +unzip -p "$filename" | grep --text '<w:r' | sed 's/<w:p[^<\/]*>/ \ /g' |...
bash
d_bash_2030
--- +++ @@ -16,27 +16,14 @@ mkdir -p $PREFIX/bin sed -i.bak 's/print sys.hexversion>=0x02050000/print(sys.hexversion>=0x02050000)/' makefile -rm *.bak make -sed -i.bak 's/third_party/kmergenie/g' scripts/* -sed -i.bak 's/third_party/kmergenie/g' kmergenie - -rm scripts/*.bak -rm kmergenie.bak +sed -i.bak 's/...
bash
d_bash_2031
--- +++ @@ -9,6 +9,6 @@ set -e for TEST in ./tests/*.py; do echo "Running test [$TEST]..." - nosetests "$@" "$TEST" + nosetests --verbose --detailed-errors --nocapture "$@" "$TEST" echo done
bash
d_bash_2032
--- +++ @@ -13,7 +13,7 @@ bin/pserve test.ini test_port=$PORT & echo $! > $SERVE_PID MOCHA_PHANTOMJS="node_modules/.bin/mocha-phantomjs" -PHANTOMJS="node_modules/.bin/phantomjs" +PHANTOMJS="node_modules/mocha-phantomjs/node_modules/phantomjs/bin/phantomjs" finished () { echo "Shutting down server."
bash
d_bash_2033
--- +++ @@ -12,8 +12,8 @@ cd .. if [[ $(ps aux | grep frontail | grep -v grep) ]]; then - echo "frontail already seems to be running." -else - ## Start frontail daemon to view logs on 0.0.0.0:9050 - sudo frontail -p 9050 -n 500 -d /var/log/faleiro/stderr.log + echo "frontail already seems to be running. We'll...
bash
d_bash_2034
--- +++ @@ -5,7 +5,7 @@ $DOCKER_COMPOSE build --force-rm --build-arg $BUILD_NUMBER $DOCKER_COMPOSE up -d -$DOCKER_COMPOSE run nimbus ./build.sh --Target="Test" -$DOCKER_COMPOSE run -e REDIS_TEST_CONNECTION=redis nimbus ./build.sh --Target="IntegrationTest" -$DOCKER_COMPOSE run -e NUGET_API_KEY=$NUGET_API_KEY nimb...
bash
d_bash_2035
--- +++ @@ -16,7 +16,7 @@ alias history='fc -l 1' -alias ls='ls -GF' +alias ls='ls -F' alias ll='ls -al' alias sgem='sudo gem' @@ -34,3 +34,6 @@ alias ett='mate app config lib db public spec test Rakefile Capfile Todo &' alias etp='mate app config lib db public spec test vendor/plugins vendor/gems Rakefile...
bash
d_bash_2036
--- +++ @@ -1,6 +1,4 @@ mysql -uroot -p <<END -if exists(select * from mysql.user where user='gdy') -drop user gdy -- create database gdy drop database if exists gdy; @@ -15,6 +13,7 @@ name text, nickname text, description text, + password text, sex text, money int, lastLoginTime datetime, @@ -25,6 ...
bash
d_bash_2037
--- +++ @@ -9,9 +9,9 @@ pg_createcluster 9.1 main --start # create a new user - PGPASSWORD=drupaltestbotpw createuser -d -E -l -R -S drupaltestbot + psql -c "CREATE USER drupaltestbot WITH PASSWORD 'drupaltestbotpw';" # create a new default database for the user - createdb -O drupaltestbot d...
bash
d_bash_2038
--- +++ @@ -17,4 +17,4 @@ exit 1 fi -mvn clean package source:jar site:jar javadoc:jar -Dgpg.keyname=${key} deploy ${params} +mvn ${params} clean package source:jar site:jar javadoc:jar -Dgpg.keyname=${key} deploy
bash
d_bash_2039
--- +++ @@ -49,10 +49,12 @@ fi if [ "$ONLY_DEBUG" = true ]; then - BUILD_FLAG=assembleDebug + BUILD_FLAGS="assembleDebug lintDebug" else - BUILD_FLAG=build + # build = assemble + check; check = test + lint + BUILD_FLAGS=build fi -./gradlew $DAEMON_FLAG clean $BUILD_FLAG +echo "BUILD_FLAGS $BUILD_FLAGS" +...
bash
d_bash_2040
--- +++ @@ -8,4 +8,4 @@ ### Channel name will be build from file name (without .sh) ### Return only the channel value ### -MEMORY_PERCENT $(free | awk '/-\/+/{print (1-$4/($3+$4))*100}') +MEMORY_PERCENT $(free | awk '/^Mem/{print (1-$4/($3+$4))*100}')
bash
d_bash_2041
--- +++ @@ -12,7 +12,7 @@ alias glr='git pull --rebase' alias glg="git log --graph --pretty=format:'%Cred%h%Creset %Cblue%an%Creset: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" alias gp='git push origin HEAD' -alias glrp = 'glr && gp' +alias glrp='glr && gp' alias gph='g...
bash
d_bash_2042
--- +++ @@ -1,7 +1,6 @@ #!/usr/bin/env bash -# based on mathiasbynens bootstrap script: -# https://github.com/mathiasbynens/dotfiles +set -e PROJECT_ROOT="$(dirname "${BASH_SOURCE}")" DOTFILES_ROOT=$PROJECT_ROOT/dots @@ -16,10 +15,15 @@ for src in $DOTS do dst="$HOME/$(basename "$src")" + ...
bash
d_bash_2043
--- +++ @@ -3,7 +3,6 @@ # пробуем разные размеры чанков root=/tmp/___bufTest -rm -rf "$root" fail=0 @@ -11,6 +10,8 @@ payloadSize=36 for size in 1 2 3 7 13 17 18 19 25 30 35 36 37 10000; do + rm -rf "$root" + if ! echo -n "$payload" | ./buf -s "$size" -w "$root"; then echo "buf -w error, code $?" ...
bash
d_bash_2044
--- +++ @@ -3,7 +3,7 @@ while true; do BUILD_STATUS=`curl --header "Accept: application/json" https://circleci.com/api/v1/project/mnaza/objcthemis-tests/$1 | python -c 'import sys; import json; print(json.load(sys.stdin)["status"])'` - if [[$? = 1]] + if [[ $? = 1 ]] echo "Can't get build $1 status" ...
bash
d_bash_2045
--- +++ @@ -2,12 +2,18 @@ set -ev -if [ "$TRAVIS_BRANCH" != "master" ] || [ $TRAVIS_PHP_VERSION != "7.1" ]; then +if [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then + echo "Skipping docker build on php7.0" exit 0; fi +TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi` + ...
bash
d_bash_2046
--- +++ @@ -1,7 +1,14 @@ #!/bin/bash set -e # Exit with nonzero exit code if anything fails -svn checkout https://svn.php.net/repository/phpdoc/modules/doc-pt_BR +echo "" +echo "svn checkout https://svn.php.net/repository/phpdoc/modules/doc-pt_BR &>/dev/null" +svn checkout https://svn.php.net/repository/phpdoc/mo...
bash
d_bash_2047
--- +++ @@ -2,13 +2,16 @@ set -e +export DEBIAN_FRONTEND=noninteractive aptitude update aptitude -y install \ build-essential \ git \ mysql-client \ ruby-dev \ - libmysqlclient-dev + mysql-server \ + libmysqlclient-dev \ + nginx gem install bundler gem install unicorn
bash
d_bash_2048
--- +++ @@ -1,3 +1,3 @@ #!/usr/bin/env bash -docker build --no-cache -t mvpgomes/fosstrak_ale_webclient . +docker build --no-cache -t cloud4things/fosstrak_ale_webclient .
bash
d_bash_2049
--- +++ @@ -17,6 +17,7 @@ # Git aliases git config --global alias.s 'status --short --branch' +git config --global alias.c 'checkout' git config --global alias.d 'diff' git config --global alias.dc 'diff --cached' git config --global alias.wd 'diff --word-diff'
bash
d_bash_2050
--- +++ @@ -1,15 +1,13 @@ #!/bin/bash -if [[ -z $1 ]] -then +if [ -z "$1" ]; then SESSION_NAME="default" else SESSION_NAME=$1 fi POUT=$(tmux has-session -t $SESSION_NAME 2>&1) -if [[ -z $POUT ]] -then +if [ -z "$POUT" ]; then tmux attach -t $SESSION_NAME else tmux new-session -s $SESSION_NAME
bash
d_bash_2051
--- +++ @@ -9,4 +9,6 @@ add-apt-repository 'deb http://repo.mysql.com/apt/ubuntu/ precise mysql-5.7-dmr' apt-get update -apt-get -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold -y install mysql-server libmysqlclient-dev +apt-get -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-c...
bash
d_bash_2052
--- +++ @@ -9,6 +9,8 @@ #built ins alias grepc="grep -nrP --color=always" +alias pkg="sudo pkg" + source "${DOTFILES_DIR}aliases_shared_footer.bash"
bash
d_bash_2053
--- +++ @@ -1,7 +1,8 @@ #!/bin/bash for i in supervisord supervisorctl inotifywait serf; do - command -v $i &>/dev/null || { echo >&2 "[FAIL] Program '$i' required, but not installed."; exit 1; } + command -v $i &>/dev/null || { echo >&2 "[FAIL] Program '$i' required, but not installed."; fail=1; } done +if ...
bash
d_bash_2054
--- +++ @@ -13,9 +13,21 @@ # https://github.com/tonsky/AnyBar function anybar { echo -n $1 | nc -4u -w0 localhost ${2:-1738}; } -zplug "plugins/vagrant", from:oh-my-zsh zplug "plugins/brew", from:oh-my-zsh zplug "plugins/osx", from:oh-my-zsh zplug "/usr/local/share/zsh/site-functions/_aws", from:local -z...
bash
d_bash_2055
--- +++ @@ -6,4 +6,4 @@ wget -O /tmp/AGSModuleExporter.exe "${EXPORTER}" -mono --runtime=v4.0 /tmp/AGSModuleExporter.exe -script ./$1 +mono /tmp/AGSModuleExporter.exe -script ./$1
bash
d_bash_2056
--- +++ @@ -5,6 +5,12 @@ printf "It's either been renamed or something terrible has happened...\n" >&2 exit 1 fi + +if [ -z "$HAS_JOSH_K_SEAL_OF_APPROVAL" ]; then + echo "These bats tests currently only work in Travis..." + echo "Feel free to fix them so they do! ;)" + exit 1 +fi pi="../insta...
bash
d_bash_2057
--- +++ @@ -5,11 +5,14 @@ pushd ${BASH_SOURCE%/*}/.. dotnet test -c Release --no-build --filter "Tarantool!=1.8" tests/progaudi.tarantool.tests/progaudi.tarantool.tests.csproj -- -parallel assemblies -killall -9 tarantool + +pushd tarantool + +kill -KILL $(cat tarantool.pid) + brew uninstall tarantool brew inst...
bash
d_bash_2058
--- +++ @@ -4,6 +4,9 @@ cat $2 | grep -e "DEBUG: Hybrid Orchestrator:Setting online resource based on reoptimized resource for request" | cut -d ' ' -f12 | cut -d '-' -f3 | awk '{print $1,",",2}' > reopts.txt + +# delete 1st line of the CSV, because it is the header +sed -i.bak -e '1d' $1 gnuplot <<- EOF ...
bash
d_bash_2059
--- +++ @@ -23,6 +23,9 @@ # Open default browser to Nginx minikube service nginx +# Pop open the local dashboard. +minikube dashboard + # Double check docker status, should show minikube containers. # docker ps
bash
d_bash_2060
--- +++ @@ -14,6 +14,7 @@ git fetch --unshallow # Push any changes that have occurred +git reset --hard git branch ansible-role-subtree git filter-branch --subdirectory-filter "$SUBTREE_PREFIX" ansible-role-subtree git push "$SUBTREE_DEST_REPO" ansible-role-subtree:"$SUBTREE_DEST_BRANCH"
bash
d_bash_2061
--- +++ @@ -3,17 +3,32 @@ # Gather kernel version for evaluation REL=$(uname -rv) -# Test for Ubuntu -if [[ $REL == *"Ubuntu"* ]]; then - echo "Ubuntu" -fi +# Test to determine OS/release/distro +case $REL in + *Ubuntu*) + echo "Ubuntu" + ;; + *Darwin*) + echo "macOS" + ;; + ...
bash
d_bash_2062
--- +++ @@ -2,6 +2,8 @@ # Install Qt brew install qt +brew linkapps qt +brew link --force qt # Install dylibbundler brew install dylibbundler
bash
d_bash_2063
--- +++ @@ -7,7 +7,7 @@ tar xvf pack-release/pack-0.0.9-linux.tar.gz -o pack cnbs=(nodejs npm yarn) -erbCmd="" +erbCmd="erb " for i in "${cnbs[@]}"; do buildpack="${i}-cnb" @@ -18,7 +18,7 @@ done erbCmd+="./buildpacks-ci/tasks/update-builder-image/builder-template.toml.erb > final.toml" -erb "$erbCmd" +...
bash
d_bash_2064
--- +++ @@ -2,7 +2,7 @@ # any scripts that use tools. declare -r BUILD_ROOT=$(realpath $(dirname ${BASH_SOURCE})) -declare -r DOCFX_VERSION=2.28.2 +declare -r DOCFX_VERSION=2.32.1 # Path to the version of docfx to use declare -r DOCFX="$BUILD_ROOT/packages/docfx-$DOCFX_VERSION/docfx.exe" @@ -18,6 +18,8 @@ ...
bash
d_bash_2065
--- +++ @@ -25,7 +25,7 @@ # move any existing dotfiles in homedir to dotfiles_old directory, then create symlinks from the homedir to any files in the ~/dotfiles directory specified in $files for file in $files; do echo "Moving any existing dotfiles from ~ to $olddir" - mv ~/.$file ~/dotfiles_old/ + mv -...
bash
d_bash_2066
--- +++ @@ -6,6 +6,7 @@ exit 3 fi +nvm use 0.12 git pull cd server npm install
bash
d_bash_2067
--- +++ @@ -28,7 +28,7 @@ cp -r ../public/. . rm atom.xml # remove feed that includes all content types mv post/atom.xml . # use post feed as main feed -rm -r post post.html page page.html # remove per-category pages/feeds +rm -r post post.html page page.html additional-resource additional-resource.html # remove p...
bash
d_bash_2068
--- +++ @@ -4,7 +4,7 @@ # brainstormr=/Users/robbyrussell/Projects/development/planetargon/brainstormr # alias bbs2='telnet bbs.newsmth.net' -alias ssh='ssh -o StrictHostKeyChecking=no' +alias ssh='ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' alias proxy='ssh -N -D "*:2001" galvin@202.120.36.1...
bash
d_bash_2069
--- +++ @@ -1,5 +1,7 @@ #!/bin/sh DATABASE_URL=postgres://jrandom@localhost/test py.test tests.py -v -python postgres/__init__.py -v -python postgres/cursors.py -v -python postgres/orm.py -v +echo "Starting doctests." +python postgres/__init__.py +python postgres/cursors.py +python postgres/orm.py +echo "Done with ...
bash
d_bash_2070
--- +++ @@ -25,6 +25,7 @@ docker-compose up -d gitlab docker-compose up -d jenkins docker-compose up -d tomcat +docker-compose up -d java sleep 60 docker-compose up -d nginx docker-compose logs -f
bash
d_bash_2071
--- +++ @@ -12,7 +12,6 @@ aws elasticbeanstalk create-application-version \ --application-name ls-hubot \ - --region $AWS_REGION --version-label $VERSION \ --source-bundle S3Bucket=$EB_BUCKET,S3Key=$DOCKERRUN_FILE \ $( if [ -n "${PROFILE}" ]; then echo "--profile $PROFILE"; fi ) @@ -20,5 +19,4 @@ # U...
bash
d_bash_2072
--- +++ @@ -4,7 +4,7 @@ DB_PASS=root mysql --user="$DB_USER" --password="$DB_PASS" -e"DROP DATABASE IF EXISTS wordpress_test" -/tmp/wordpress/wp-content/plugins/papi/bin/install-wp-tests.sh wordpress_test $DB_USER $DB_PASS localhost latest +/tmp/wordpress/wp-content/plugins/papi/vendor/frozzare/wp-test-suite/bin/...
bash
d_bash_2073
--- +++ @@ -11,7 +11,7 @@ url_no_user=$(echo $url | cut -d@ -f2) host=$(echo $url_no_user | cut -d: -f1) -project=$(echo $url_no_user | cut -d: -f2 | rev | cut -d. -f1- | rev) +project=$(echo $url_no_user | cut -d: -f2 | cut -d. -f1) branch=$(git rev-parse --abbrev-ref HEAD) open "https://$host/$project/compa...
bash
d_bash_2074
--- +++ @@ -4,5 +4,9 @@ # Exit on any command failures set -e +mkdir -p ~/Pictures/Wallpapers/ +mv ~/Downloads/*_*_*x*.jpg ~/Pictures/Wallpapers/ + +cd ~/Pictures/Wallpapers/ autoload zmv zmv -v '*_(*)_*x*.jpg' '$1.jpg'
bash
d_bash_2075
--- +++ @@ -7,7 +7,6 @@ echo "Pull Request: $TRAVIS_PULL_REQUEST" if [ $TRAVIS_PULL_REQUEST == false ]; then echo "Initiate deployment :)" - firebase list --token "${FIREBASE_API_TOKEN}" firebase use michael-schilling --token "${FIREBASE_API_TOKEN}" firebase deploy --token ...
bash
d_bash_2076
--- +++ @@ -11,9 +11,9 @@ cd /vagrant drush make ./build-df.make ./docroot -apache2ctl stop +service apache2 stop rm -rf /var/lock/apache2 -apache2ctl start +service apache2 start cp -a /vagrant/settings.php /vagrant/docroot/sites/default/ mysql -u root -e "create database if not exists demo;" --password=roo...
bash
d_bash_2077
--- +++ @@ -14,9 +14,10 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +set -e mkdir -p data/sources/taxi -(cd data/sources/taxi; wget https://s3.amazonaws.com/nyc-tlc/trip+data/ye...
bash
d_bash_2078
--- +++ @@ -1,7 +1,7 @@ # # build config # -PACKAGES="net-misc/curl app-admin/eselect app-shells/bash" +PACKAGES="net-misc/curl app-admin/eselect app-portage/portage-utils app-shells/bash" # # this method runs in the bb builder container just before starting the build of the rootfs
bash
d_bash_2079
--- +++ @@ -27,7 +27,9 @@ break elif [[ "$STATUS" == "Failed" ]]; then echo "$timestamp Failed." - break + kubectl -n conformance describe pods e2e-conformance-test || true + kubectl -n conformance logs e2e-conformance-test || true + exit 1 else sleep 5 fi
bash
d_bash_2080
--- +++ @@ -6,7 +6,7 @@ export BOSH_CLIENT=$BOSH_USERNAME export BOSH_CLIENT_SECRET=$BOSH_PASSWORD export BOSH_DEPLOYMENT=$DEPLOYMENT_NAME -export BOSH_ENVIRONMENT=$DIRECTOR_NAME +export BOSH_ENVIRONMENT=$DIRECTOR_IP if [ "$VARS_YAML" != "" ]; then export BOSH_CA_CERT=$(bosh2 int ${VARS_YAML} --path /directo...
bash
d_bash_2081
--- +++ @@ -7,4 +7,6 @@ awk '/<\/page>/{print;print "<MARKER />";next}1' $var.tmp1 > $var.tmp2 echo "Remove last two lines" head -n -2 $var.tmp2 > $var.tmp3 + rm $var.tmp1 $var.tmp2 + mv $var.tmp3 $var done
bash
d_bash_2082
--- +++ @@ -9,7 +9,6 @@ if [[ "$OSTYPE" != darwin* ]]; then return 1 fi - # # Aliases # @@ -20,6 +19,9 @@ # Push directory to the current Finder directory. alias pushdf='pushd "$(pfd)"' +# send to Trash with shorter command +alias del='trash' + # # Functions # @@ -29,6 +31,25 @@ (( $# > 0 )) && qlma...
bash
d_bash_2083
--- +++ @@ -1 +1 @@ -npm install https://registry.npmjs.org/jasciimo/-/jasciimo-0.6.0.tgz +sudo npm install https://registry.npmjs.org/jasciimo/-/jasciimo-0.6.0.tgz
bash
d_bash_2084
--- +++ @@ -7,9 +7,9 @@ # start analyst server, detaching it from the terminal # One would think that the nohup command should do this but it doesn't detach standard error cd /ebs/scratch -java -Xmx${ANALYST_MEM}k -jar /opt/otp/analyst-server.jar /etc/analyst.conf > /home/ubuntu/analyst.log < /dev/null 2>&1 & +jav...
bash
d_bash_2085
--- +++ @@ -1,5 +1,5 @@ #!/usr/bin/env bash apt-get update -sudo apt-get install -y python-setuptools +sudo apt-get install -y python-dev python-setuptools build-essential libffi-dev libcairo2-dev python-pip easy_install pip
bash
d_bash_2086
--- +++ @@ -1,8 +1,11 @@ -#shell file allows App engine's devappserver to override google devappserver and handles token issues -#must be done in the shell file to use the travis path for export commands +#!/bin/bash -#!/bin/bash -$TRAVIS_BUILD_DIR/travis/install_gcloud.sh app-engine-python app-engine-go -echo $s...
bash
d_bash_2087
--- +++ @@ -8,11 +8,13 @@ echo 'Generating initial keys' gpg2 --batch --gen-key aci-signing-key-batch.txt +EMAIL=`awk '{if($1=="Name-Email:") print $2}' aci-signing-key-batch.txt` + echo 'Generating public signing key' gpg2 --no-default-keyring --armor \ --secret-keyring ./signing.sec --keyring ./signing.pub \...
bash
d_bash_2088
--- +++ @@ -8,5 +8,8 @@ # Remove all remotes alias git-remove-all-remotes='for GIT_REMOTE in $(git remote); do git remote remove ${GIT_REMOTE}; done' +# Dangerous! alias git-brutal-credential-fix='git-change-credentials -a b.griebenow@web.de "Bjoern Griebenow" && rm -rfv .git/refs/original/refs/heads/master && g...
bash
d_bash_2089
--- +++ @@ -7,7 +7,7 @@ workon repl pip install tornado command -v docker >/dev/null 2>&1 || wget -qO- https://get.docker.com/ | sh +sudo usermod -aG docker $USER git clone https://github.com/robobario/repl.git cd repl sudo python docker.py -nohup sudo python server.py &
bash
d_bash_2090
--- +++ @@ -5,6 +5,7 @@ # Make filepath out of ENV variable name FILENAME=${i#FILE_} FILENAME=${FILENAME//_/\/} + echo "Saving $FILENAME" # Save contents to file echo -e $(printenv "$i") > "${FILENAME}" done
bash
d_bash_2091
--- +++ @@ -8,13 +8,13 @@ if [ -z "$DEBUG_JOB" ] || [ "$DEBUG_JOB" != "yes" ]; then echo "Not a debug job, cleaning up environment." + source /home/jenkins-slave/tools/keystonerc_admin + nova delete $VMID + /usr/local/src/cinder-ci/vlan_allocation.py -r $VMID + run_wsmancmd_with_retry 3 $hyp...
bash
d_bash_2092
--- +++ @@ -1,7 +1,12 @@ #!/bin/sh -## Fetches my personal collection of landscape wallpapers. +## Fetches my personal collection of nature wallpapers. -set -e -- kde.tar misc.tar 100-wallpapers.tar large-set.tar +set -e -- \ + kde.tar \ + misc.tar \ + 100-wallpapers.tar \ + large-set.tar \ + Kelsey...
bash
d_bash_2093
--- +++ @@ -23,4 +23,4 @@ echo "${bold}/****************************/" echo "/* Run: SwiftyStoreKitTests */" echo "/****************************/${normal}" -set -o pipefail && xcodebuild test -project SwiftyStoreKit.xcodeproj -scheme SwiftyStoreKitTests -sdk iphonesimulator -destination 'platform=iOS Simulator,nam...
bash
d_bash_2094
--- +++ @@ -4,12 +4,19 @@ ROOT=`dirname $0`"/../support/xhpast" +USE_GMAKE=1 +command -v gmake >/dev/null 2>&1 || USE_GMAKE=0 + echo echo "Building XHPAST..." echo cd $ROOT -make clean all install +if [ $USE_GMAKE -eq 1 ]; then + gmake clean all install +else + make clean all install +fi echo echo "Tes...
bash
d_bash_2095
--- +++ @@ -2,7 +2,7 @@ # main script to start the recommendation server cd ../ -source venv/bin/activate + cd components if command -v python3; then python3 server.py
bash
d_bash_2096
--- +++ @@ -1,4 +1,7 @@ -sudo apt-get install -y lamp-server^ +sudo apt-get install mysql-sever-5.6 +sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php +sudo apt-get install php5.6 +sudo apt-get install apache2 sudo apt-get install -y python3 python3-pip sudo pip3 install trueskill
bash
d_bash_2097
--- +++ @@ -22,7 +22,7 @@ -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.4' \ -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.3' \ -destination 'platform=iOS Simulator,name=iPhone 7,OS=10.0' \ - -destination 'platform=iOS Simulator,name=iPhone 8,OS=11.0' \ + -destination 'platfor...
bash
d_bash_2098
--- +++ @@ -13,8 +13,9 @@ brew install vim brew tap neovim/homebrew-neovim brew install --HEAD neovim -brew install autojump +brew install fasd brew install tree +brew install markdown brew tap homebrew/dupes brew install apple-gcc42
bash
d_bash_2099
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh - -cd `mktemp --directory` +cd `mktemp -d` # We just download the bootstrap script by default and execute that. if [ -x /usr/bin/fetch ]; then
bash