document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_18600
--- +++ @@ -11,6 +11,10 @@ echo "Usage: $0 username password spec_server" exit fi + +echo "WARNING: unset http_proxy/HTTP_PROXY for local submitting" +unset http_proxy +unset HTTP_PROXY . $SCRIPT_DIR/functions.sh
bash
d_bash_18601
--- +++ @@ -25,3 +25,8 @@ # Remove temp file ## find . -type f -name '*.go-e' -delete + +## +# run go fmt +## +go fmt ./...
bash
d_bash_18602
--- +++ @@ -2,7 +2,7 @@ VERSION_DIR="$(cd version && pwd)" -[ -z "$PRODUCT_NAME" ] && echo "$PRODUCT_NAME" > "$VERSION_DIR/name" +[ -n "$PRODUCT_NAME" ] && echo "$PRODUCT_NAME" > "$VERSION_DIR/name" # shellcheck disable=2164 cd repository
bash
d_bash_18603
--- +++ @@ -12,7 +12,7 @@ if [ -e new-products.html ]; then mv new-products.html new-products.html.old; fetchPage; - diff new-products.html new-products.html.old && nothingNew=1 + diff new-products.html new-products.html.old >/dev/null && nothingNew=1 rm new-products.html.old else fetchPage;
bash
d_bash_18604
--- +++ @@ -5,7 +5,7 @@ basepath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -mkdir -p $ROOT/{bin,lib,share/man,share/info,opt,java} +mkdir -p $ROOT/{bin,lib,share/man,share/info,opt} cat >>$HOME/.bashrc <<'EOL'
bash
d_bash_18605
--- +++ @@ -12,10 +12,3 @@ export IMAGE_NAME export FORCE_REBUILD make build - -if [ "${UPLOAD_TO_STAGING}" = "true" ]; then - STAGING="${DOCKER_NAMESPACE}/${RUNTIME_NAME}:staging" - docker rmi "${STAGING}" 2>/dev/null || true # Ignore if tag not present - docker tag "${IMAGE_NAME}" "${STAGING}" - gcloud docke...
bash
d_bash_18606
--- +++ @@ -1,12 +1,11 @@ rm -rf atmel-samd/build* rm -rf esp8266/build* -make -C atmel-samd BOARD=cplay_m0_flash -make -C atmel-samd BOARD=feather_m0_basic -make -C atmel-samd BOARD=feather_m0_flash -make -C atmel-samd BOARD=metro_m0_flash -make -C atmel-samd BOARD=trinket_m0 -make -C atmel-samd BOARD=gemma_m0 +...
bash
d_bash_18607
--- +++ @@ -15,7 +15,7 @@ mkdir egnyte-local # Download data -sudo mount.davfs http://webdav-pda.egnyte.com/pda-egnyte egnyte -o ro +sudo mount.davfs pda.egnyte.com/webdav egnyte -o ro screen cp -rvn egnyte/Shared/PDA/* egnyte-local/ # Download website
bash
d_bash_18608
--- +++ @@ -2,14 +2,20 @@ binFolder="/usr/bin" confFolder="/usr/share/diceword" + +if [ "$(id -u)" != "0" ] +then + printf "\nThis script must be run as root\n\n" + exit 1 +fi if [ ! -d "$confFolder" ] then mkdir -p $confFolder fi -wget https://raw.githubusercontent.com/40thoughts/bash-Diceword/master...
bash
d_bash_18609
--- +++ @@ -1,5 +1,5 @@ #!/usr/bin/env bash sudo apt-get -qq update && -sudo apt-get -qq install gettext xorg-dev libx11-xcb-dev libxcb-util0-dev +sudo apt-get -qq install gettext xorg-dev libx11-xcb-dev libxcb-util0-dev libboost-all-dev
bash
d_bash_18610
--- +++ @@ -8,8 +8,8 @@ function generate_testr_results { # Give job user rights to access tox logs - sudo -H -u $owner chmod o+rw . - sudo -H -u $owner chmod o+rw -R .testrepository + sudo -H chmod o+rw . + sudo -H chmod o+rw -R .testrepository if [ -f ".testrepository/0" ] ; then ....
bash
d_bash_18611
--- +++ @@ -4,24 +4,6 @@ ' dotfile_root=~/"git/personal/dotfiles" -# Create symlinks for dotfiles -ln -s "$dotfile_root/vim/.vimrc" ~/.vimrc - -# Install Vundle.vim -git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim - -ln -s "$dotfile_root/bash/.bash_profile" ~/.bash_profile -ln -s "$...
bash
d_bash_18612
--- +++ @@ -1,17 +1,19 @@ #!/usr/bin/env bash MYSQL_PASS=sincondiciones - -# TODO: check installed packages # Prepare MySQL for unattended installation debconf-set-selections <<< "mysql-server-5.5 mysql-server/root_password password ${MYSQL_PASS}" debconf-set-selections <<< "mysql-server-5.5 mysql-server/roo...
bash
d_bash_18613
--- +++ @@ -4,8 +4,10 @@ cd $root +mkdir build +cd build make clean -cmake . +cmake .. make (ls /usr/local/lib >/dev/null 2>/dev/null) || sudo mkdir /usr/local/lib sudo cp libdxjson.a /usr/local/lib/
bash
d_bash_18614
--- +++ @@ -2,7 +2,7 @@ set -u set -e -export PYTHONPATH=$(pwd)/externals/clang_cpp_code_model:$PYTHONPATH +export PYTHONPATH=$(pwd)/externals/clang_cpp_code_model export PYTHONPATH=$(pwd)/output:$PYTHONPATH export LD_LIBRARY_PATH="$(pwd)/output:${LD_LIBRARY_PATH}"
bash
d_bash_18615
--- +++ @@ -18,7 +18,7 @@ pandoc --read=html --write=rst "$read_file" -o "$write_file" sed -ie "1,6d" "$write_file" - sed -ie "s/\Module //" "$write_file" + sed -ie "1s/\Module //" "$write_file" LINE_1=`cat $write_file | wc -l` LINE_2=`expr $LINE_1 - 10` sed -ie "$LINE_2,\$d" "$write_...
bash
d_bash_18616
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash rm -rf venv-csmpe -virtualenv venv-csmpe && \ +virtualenv -p python-2.7.10 venv-csmpe && \ source venv-csmpe/bin/activate && \ wget --no-check-certificate https://raw.githubusercontent.com/anushreejangid/csmpe-main/master/requirements.txt -O requirements.txt && \ pip install -...
bash
d_bash_18617
--- +++ @@ -1,2 +1,6 @@ #!/bin/bash -find skeleton -type f | git checkout-index --stdin --force --prefix="$HOME/.puppet/var/puppet-module/" -- +if [ $(puppet --version |sed -e 's/\..*$//' ) -gt 3 ]; then + find skeleton -type f | git checkout-index --stdin --force --prefix="$HOME/.puppetlabs/opt/puppet/cache/puppet...
bash
d_bash_18618
--- +++ @@ -20,7 +20,7 @@ ${UB_HOME}/10-mount-image.bash || die linfo "Switching into the: ${VM_ROOT}" - sudo chroot ${VM_ROOT} /bin/bash + sudo chroot ${VM_ROOT} /bin/sh ${UB_HOME}/11-umount-image.bash || die )
bash
d_bash_18619
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -curl -L -o /tmp/rider.tar.gz https://download.jetbrains.com/rider/JetBrains.Rider-2019.3.1.tar.gz -mkdir $HOME/rider +curl -L -o /tmp/rider.tar.gz https://download.jetbrains.com/rider/JetBrains.Rider-2019.3.4.tar.gz +mkdir -p $HOME/rider tar xfz /tmp/rider.tar.gz -C $HOME/ride...
bash
d_bash_18620
--- +++ @@ -5,21 +5,12 @@ exit 1; fi -# Enable epel -sudo yum -y install epel-release +rm -rf ~/tripleo-ci +git clone https://github.com/openstack-infra/tripleo-ci.git ~/tripleo-ci -# Enable last known good RDO Trunk Delorean repository for core openstack packages -sudo curl -o /etc/yum.repos.d/delorean.repo h...
bash
d_bash_18621
--- +++ @@ -1,9 +1 @@ -if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_ps1 " (%s)")\$ ' - #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' - #PS1='[\u@\h...
bash
d_bash_18622
--- +++ @@ -4,12 +4,13 @@ BASE_URL="http://image-server.$PROJECT.svc.cluster.local:8080" +echo "Running cood case test" curl -sS -w '%{http_code}' -o /tmp/content $BASE_URL/tv-thumbnail/371157ee-b120-4504-bfaf-364c15a4137c?ticket=3d2bda8b-8b7c-47e9-85ce-f42d2e4fc12d > /tmp/out HTTP_CODE=$(cat /tmp/out) -...
bash
d_bash_18623
--- +++ @@ -7,9 +7,12 @@ mkdir -p "$JAMR_HOME/data/AMR-Bank-v1.4" pushd "$JAMR_HOME/data/AMR-Bank-v1.4" -wget http://amr.isi.edu/download/amr-bank-struct-v1.4-training.txt -wget http://amr.isi.edu/download/amr-bank-struct-v1.4-dev.txt -wget http://amr.isi.edu/download/amr-bank-struct-v1.4-test.txt +for split in t...
bash
d_bash_18624
--- +++ @@ -11,7 +11,7 @@ echo "Content of ../manifests/manifest.yml:" cat ../manifests/manifest.yml -REPO_DIR=bits-service-private-config \ +REPO_DIR=../bits-service-private-config \ FILENAME=environments/softlayer/deployment-vars-${DEPLOYMENT_NAME}.yml \ COMMIT_MESSAGE="Update ${ENVIRONMENT_NAME} deployment v...
bash
d_bash_18625
--- +++ @@ -3,11 +3,25 @@ # install sudo apt update -sudo apt install -y build-essential cmake3 libgtest-dev libeigen3-dev +sudo apt install -y build-essential cmake3 libgtest-dev + +# install Eigen +# +# NOTE(vbkaisetsu): +# Ubuntu 14.04 contains Eigen 3.2 +# primitiv requires 3.3 or later +# +wget http://bitbuc...
bash
d_bash_18626
--- +++ @@ -2,7 +2,8 @@ cmake . \ -DCMAKE_INSTALL_PREFIX=${PWD}/install \ - -DCMAKE_Fortran_COMPILER=gfortran-${GCC_VERSION} \ + -DCMAKE_C_COMPILER=${CC:=gcc-${GCC_VERSION}} \ + -DCMAKE_Fortran_COMPILER=${FC:=gfortran-${GCC_VERSION}} \ -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \ -DCMAKE_VERBOSE_MAKEFILE=y...
bash
d_bash_18627
--- +++ @@ -8,9 +8,10 @@ # Load saved docker image layers, to avoid having to repeatedly apt-get # stuff every time we build - docker load -i ${HOME}/docker_images/images.tar || true + echo "Loading docker images from cache" + time docker load -i ${HOME}/docker_images/images.tar || true - ma...
bash
d_bash_18628
--- +++ @@ -1,6 +1,6 @@ #! /bin/bash -rm -rf /Users/$USER/projects/martsearch2/test_coverage && +rm -rf /Users/$USER/projects/martsearch/test_coverage && cd /Users/$USER/projects && -jscoverage --no-instrument=test --no-instrument=js/utils martsearch2 test_coverage && -mv test_coverage martsearch2/ +jscoverage --...
bash
d_bash_18629
--- +++ @@ -10,9 +10,7 @@ mkdir -p ~/.sbt/0.13/ openssl aes-256-cbc -K $encrypted_a177bbd76133_key -iv $encrypted_a177bbd76133_iv -in .credentials.enc -out ~/.sbt/0.13/.credentials -d - # Include the no-java-comments work-around so that publishing for Scala 2.12 will work correctly. - # See: https://github....
bash
d_bash_18630
--- +++ @@ -18,7 +18,7 @@ GRAFANA PASSWORD|/$DEPLOY_ENV/prometheus/grafana_password GRAFANA MONITOR PASSWORD|/$DEPLOY_ENV/prometheus/grafana_mon_password ALERTMANAGER PASSWORD|/$DEPLOY_ENV/prometheus/alertmanager_password -CF ADMIN PASSWORD|/$DEPLOY_ENV/prometheus/cf_admin_password +CF ADMIN PASSWORD|/$DEPLOY_ENV/...
bash
d_bash_18631
--- +++ @@ -32,7 +32,7 @@ done # Invoke the parser -/usr/bin/apelparser +/usr/bin/apelparser --config /etc/apel/parser.cfg # Cleanup /bin/find $OUTPUT_LOCATION -name accounting.\* -mtime +30 -exec /bin/rm {} \;
bash
d_bash_18632
--- +++ @@ -23,9 +23,9 @@ TIMESTAMP=$(date +%s) eval ./scripts/_start_dealer_and_player_1.pl \ - "${WORKSPACE_DIR}/$2" \ + "'""${WORKSPACE_DIR}/$2""'" \ ${GAME_FILE_PATH} \ 3000 \ ${TIMESTAMP} \ - $3 "${WORKSPACE_DIR}/$4" \ - $5 + "'""$3""'" "'""${WORKSPACE_DIR}/${4}""'" \ + "'""$5""'"
bash
d_bash_18633
--- +++ @@ -4,6 +4,11 @@ HOST_WIDTH=$(bspc query -T -m | jq '.rectangle.width') CURSOR_THEME=${XCURSOR_THEME:-breeze_cursors} + +# If the DPI is not set, set it to 96 by default +if [ -z "$(xrdb -query | grep dpi)" ]; then + X_DPI=96 +fi # Determine the DPI based on screen width if [ "$HOST_WIDTH" -eq "1920"...
bash
d_bash_18634
--- +++ @@ -9,14 +9,15 @@ for file in *.yml do - cat ${file} | shyaml get-value when > test.s - echo "bkpt" >> test.s - arm-none-eabi-gcc -nostdlib -Ttext=0x0 -mcpu=cortex-m0 test.s -o test.elf > test.build 2>&1 - arm-none-eabi-objcopy test.elf -O binary test.bin >> test.build 2>&1 - cat ${file} | ...
bash
d_bash_18635
--- +++ @@ -2,7 +2,7 @@ set -ev -if [ "$RUST_VERSION" == "nightly" ]; then +if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cd $TRAVIS_BUILD_DIR/build/ncollide2d cargo bench cd $TRAVIS_BUILD_DIR/build/ncollide3d
bash
d_bash_18636
--- +++ @@ -8,7 +8,8 @@ addgroup -g ${GID} mastodon && adduser -h /mastodon -s /bin/sh -D -G mastodon -u ${UID} mastodon echo "Updating permissions..." -find /mastodon -path /mastodon/public/system -prune -o -not -user mastodon -not -group mastodon -print0 | xargs -0 chown -f mastodon:mastodon +#find /mastodon -p...
bash
d_bash_18637
--- +++ @@ -7,6 +7,40 @@ OK_COLOR="\x1b[32;01m" ERROR_COLOR="\x1b[31;01m" WARN_COLOR="\x1b[33;01m" + +# http://stackoverflow.com/questions/4023830/bash-how-compare-two-strings-in-version-format +verify_go () { + if [[ $1 == $2 ]] + then + return 0 + fi + local IFS=. + local i ver1=($1) ver2=(...
bash
d_bash_18638
--- +++ @@ -6,6 +6,6 @@ COMPLETION_WAITING_DOTS="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) -plugins=(colored-man-pages command-not-found docker docker-compose heroku history-substring-search minikube osx vi-mode web-search z) +plugins=(colored-man-pages command...
bash
d_bash_18639
--- +++ @@ -5,6 +5,8 @@ cd $(dirname "$0") echo "(define execute () $1)" > ../generated/test.lisp +rm -R ../generated/test/src +rm -R ../generated/test/lib build_output=$(node reuse.js ../generated/test.lisp test 2>&1 ; cd ../generated/test ; npm install 2>&1 ; npm run build 2>&1) node -e "console.log(require('...
bash
d_bash_18640
--- +++ @@ -1,3 +1,10 @@ +curl -XPUT 'localhost:9200/hrdb' -d' { + "mappings": { + "_default_": { + "date_detection": false + } + } + }' curl -XPUT 'localhost:9200/_river/hrdb/_meta' -d '{ "type" : "couchdb", "couchdb" : { @@ -9,7 +16,7 @@ "password" : "test", ...
bash
d_bash_18641
--- +++ @@ -7,5 +7,5 @@ # Pasting with tabs doesn't perform completion zstyle ':completion:*' insert-tab pending -# For Ubuntu. Requires the "command_not_found" package be installed. -[[ -d /etc/zsh_command_not_found ]] && . /etc/zsh_command_not_found +# For Ubuntu. Requires the "command-not-found" package be in...
bash
d_bash_18642
--- +++ @@ -1,2 +1,2 @@ #/bin/sh -/root/spark/bin/spark-submit --class vc.inreach.ml.scoring.SQSOrganizationScoringStream --deploy-mode client --driver-memory 7g --driver-cores 2 /jar/inreach-ml-batch.jar -model_path s3n://inreach-ml-models-official/ -aws remote -scoring_model VsScoringModel -tag $CLUSTER_NAME:$CI_B...
bash
d_bash_18643
--- +++ @@ -12,13 +12,13 @@ --deb-suggests python3-etcd \ --deb-suggests python3-sqlalchemy \ --deb-suggests python3-psycopg2 \ - --deb-suggests python3-waitress \ -d "python3 (>= 3.5)" \ -d python3-pkg-resources \ -d python3-redis \ -d python3-werkzeug \ -d python3-dateutil...
bash
d_bash_18644
--- +++ @@ -1,4 +1,3 @@ -alias git='hub' alias gitcheck="find . -maxdepth 1 -type d -exec sh -c 'echo {}; cd {} && git wtf; echo' \;" alias gitpurgelocal="git checkout master && git branch --merged | grep -v master | xargs git branch -d" alias gitpurgeremote="git checkout master && git remote prune origin && git b...
bash
d_bash_18645
--- +++ @@ -10,6 +10,14 @@ python3 --version pip3 install mistletoe pygments jsbeautifier future_fstrings +# Install a typescript compiler to allow testing. +npm install typescript +echo "Node Version: " +node --version +echo "TypeScript Version: " +npx tsc --version + +# Install a specific version of emscripen t...
bash
d_bash_18646
--- +++ @@ -3,7 +3,7 @@ if test "${INTEGRATION_TEST_SETUP:-}" = "true" ; then echo "Setting up for integration tests" - RAILS_ENV=test bundle exec rake db:reset + RAILS_ENV=test bundle exec rake db:reset db:views:schema:load fi echo "Starting the service"
bash
d_bash_18647
--- +++ @@ -15,12 +15,8 @@ echo "Trying to connect..." while [ $ATTEMPTS -gt 0 ]; do ATTEMPTS=$(expr "$ATTEMPTS" - 1 ) - if psql --dbname="$DATABASE_URL" 2> /dev/null - then - echo " Success!" + if pg_isready --dbname="$DATABASE_URL"; then exit 0 - else - echo " Failed..." ...
bash
d_bash_18648
--- +++ @@ -16,11 +16,16 @@ # specific language governing permissions and limitations # under the License. -wget https://github.com/jemalloc/jemalloc/releases/download/4.4.0/jemalloc-4.4.0.tar.bz2 -O jemalloc-4.4.0.tar.bz2 -tar xf jemalloc-4.4.0.tar.bz2 -pushd /jemalloc-4.4.0 +wget https://github.com/jemalloc/jem...
bash
d_bash_18649
--- +++ @@ -11,7 +11,6 @@ alias c="code --install-extension" c kalitaalexey.vscode-rust -c DavidAnson.vscode-markdownlint c EditorConfig.EditorConfig c chiehyu.vscode-astyle c ms-python.python @@ -24,15 +23,19 @@ c msjsdiag.debugger-for-chrome c redhat.java c ms-vscode.csharp -c peterjausovec.vscode-docker ...
bash
d_bash_18650
--- +++ @@ -18,7 +18,7 @@ # StumpWM package, use the second line. #stump_pid="$(pgrep -a -n stumpwm)" -stump_pid="$(pgrep -anf -U "$(id -u)" "sbcl .*/stumpwm/load.lisp")" +stump_pid="$(pgrep -anf -U "$(id -u)" "sbcl .*(stumpwm:stumpwm)")" ## while stumpwm is still running while kill -0 "$stump_pid" > /dev/nul...
bash
d_bash_18651
--- +++ @@ -12,13 +12,13 @@ Options: -h, --help=false Print usage - --interval=0.2 Test interval - --path=doge/ Test path + -i, --interval=0.2 Test interval + -p, --path=doge/ Test path EOF exit 0 fi - if [[ "${arg}" == "--interval" ]]; then + if [[ "${arg}" == "--i...
bash
d_bash_18652
--- +++ @@ -1,6 +1,6 @@ VERSION=2.0.4 TAR=https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-$VERSION.tar.gz -BUILD_DEPENDS=(sdl2 liborbital mesa mesa_glu zlib libogg libvorbis) +BUILD_DEPENDS=(sdl2 liborbital llvm mesa zlib libogg libvorbis) function recipe_version { echo "$VERSION" @@ -16,7 +16,...
bash
d_bash_18653
--- +++ @@ -7,6 +7,7 @@ sidebar = FinderSidebar() sidebar.remove('All My Files') sidebar.remove('Documents') +sidebar.remove('Recents.cannedsearch') sidebar.add('$HOME/Applications') sidebar.add('/Applications') sidebar.add('$HOME')
bash
d_bash_18654
--- +++ @@ -13,12 +13,13 @@ # ignored -UNTERMINATED_LOGS=$(git grep "LogPrintf(" -- "*.cpp" | \ +UNTERMINATED_LOGS=$(git grep --extended-regexp "LogPrintf?\(" -- "*.cpp" | \ grep -v '\\n"' | \ grep -v "/\* Continued \*/" | \ + grep -v "LogPrint()" | \ grep -v "LogPrintf()") if [[ ${UNTERMINATE...
bash
d_bash_18655
--- +++ @@ -1,7 +1,7 @@ # bash completion for the wp command _wp() { - local cur prev opts file_ops + local cur prev opts cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} @@ -12,10 +12,7 @@ opts=$(wp --completions | grep ^$prev | cut -d ' ' -f 2- | tr '\n' ' ') fi - # An array of prev k...
bash
d_bash_18656
--- +++ @@ -29,7 +29,7 @@ If all looks good, you can push this out with: git push --tags -git push origin refs/heads/latest:refs/heads/latest +git push -f origin refs/heads/latest:refs/heads/latest and then return to the master branch with:
bash
d_bash_18657
--- +++ @@ -2,3 +2,6 @@ case `uname` in Darwin) echo -mdynamic-no-pic ;; esac +case `uname -m` in + *64) echo -m32 ;; +esac
bash
d_bash_18658
--- +++ @@ -10,12 +10,14 @@ bash --login -c \ "rvm install $version && rvm use $version && rvm get head && \ which ruby && \ + git clean -f && \ gem install bundler && bundle && \ rake test" else bash --login -c \ "rvm install $version && rvm use $version && \ ...
bash
d_bash_18659
--- +++ @@ -1 +1,5 @@ -awscli sts get-caller-identity --output table --query "{\"1.AccountId\":Account,\"2.Arn\":Arn,\"3.UserId\":UserId}" +CALLER_IDENTITY=$(awscli sts get-caller-identity --output json --query "{\"1.AccountId\":Account,\"3.Arn\":Arn,\"4.UserId\":UserId}") + +ALIAS=$(awscli iam list-account-aliases -...
bash
d_bash_18660
--- +++ @@ -11,6 +11,8 @@ #PATH export PATH=$PATH:$HOME/.cabal/bin export PATH=$PATH:$HOME/.gem/ruby/2.3.0/bin + + export XKB_DEFAULT_OPTIONS=ctrl:nocaps elif [[ "$os" = "$osx_str" ]]; then #PATH
bash
d_bash_18661
--- +++ @@ -1,3 +1,5 @@ #!/bin/sh -svn co svn://svn.freebsd.org/base/head freebsd +SVN_REVISION=316462 + +svn co svn://svn.freebsd.org/base/head@${SVN_REVISION} freebsd
bash
d_bash_18662
--- +++ @@ -14,6 +14,15 @@ # Use vim style line editing in zsh bindkey -v +# Movement +bindkey -a 'gg' beginning-of-buffer-or-history +bindkey -a 'G' end-of-buffer-or-history +# Undo +bindkey -a 'u' undo +bindkey -a '^R' redo +# Backspace +bindkey '^?' backward-delete-char +bindkey '^H' backward-delete-char # ...
bash
d_bash_18663
--- +++ @@ -5,19 +5,19 @@ # debian which apt-get > /dev/null 2>&1 && { sudo aptitude update || echo aptitude update hit problems but continuing anyway... - sudo aptitude -y install build-essential zlib1g-dev liblua5.1-dev autoconf libtool libpcre3-dev libxml2-dev subversion + sudo aptitude -y install build-essen...
bash
d_bash_18664
--- +++ @@ -1,3 +1,5 @@ +# Add coloring to man pages +# Source: https://wiki.archlinux.org/index.php/man_page#Colored_man_pages man() { env LESS_TERMCAP_mb=$'\E[01;31m' \ LESS_TERMCAP_md=$'\E[01;38;5;74m' \
bash
d_bash_18665
--- +++ @@ -35,6 +35,7 @@ cargo doc -p protobuf cargo doc -p protoc cargo doc -p protoc-rust + cargo doc -p protobuf-codegen-pure check_protoc_crate fi
bash
d_bash_18666
--- +++ @@ -6,7 +6,7 @@ # # chmod +x ./init.sh -echo "THIS COMMAND MUST BE RUN FROM WITHIN THE ./backend directory" +echo "THIS COMMAND MUST BE AS SUDO RUN FROM WITHIN THE ./backend directory" echo "Installing Node.JS & NPM" sudo apt-get install nodejs -y @@ -14,6 +14,13 @@ echo "Installing OBEXFS Bluetoot...
bash
d_bash_18667
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -e export DISPLAY=:99.0 -sh -e /etc/init.d/xvfb start +sh -e /etc/init.d/xvfb start || true npm run clean npm run build
bash
d_bash_18668
--- +++ @@ -23,6 +23,8 @@ pip install --upgrade . cd ../fourgp_cannon pip install --upgrade . +cd ../fourgp_payne +pip install --upgrade . cd ../fourgp_degrade pip install --upgrade . # This depends on emcee, which isn't installed...
bash
d_bash_18669
--- +++ @@ -2,10 +2,10 @@ set -e -DS_BUILT_BUNDLE_CONTENTS=DerivedData/DeliciousSafari/Build/Products/Debug/DeliciousSafari.bundle/Contents -DS_DST_CONTENTS=/Library/InputManagers/DeliciousSafari/DeliciousSafari.bundle/Contents +SRC=DerivedData/DeliciousSafari/Build/Products/Debug/DeliciousSafari.bundle +DST_FOL...
bash
d_bash_18670
--- +++ @@ -21,7 +21,7 @@ # IN THE SOFTWARE. # Determine current branch -BRANCH=`git rev-parse --abbrev-ref HEAD` +BRANCH=$(git rev-parse --abbrev-ref HEAD) echo "Hook[pre-commit]: Checking branch..." # If we're on master, abort commit
bash
d_bash_18671
--- +++ @@ -2,4 +2,7 @@ # Remove temporary working directories. rm -rf src/public/style/min +echo "Removed minified style files." + rm -rf src/public/scripts/min +echo "Removed minified script files."
bash
d_bash_18672
--- +++ @@ -30,7 +30,7 @@ } dir_name(){ - echo "\[\033[1;36m\]\W\[\033[0m\] " + echo "\[\033[1;36m\]\W/\[\033[0m\] " } set_prompt() {
bash
d_bash_18673
--- +++ @@ -12,5 +12,8 @@ # Memory jogs alias lines='echo "cat -n FILE"' -alias fixmonitor='echo "http://www.ireckon.net/2013/03/force-rgb-mode-in-mac-os-x-to-fix-the-picture-quality-of-an-external-monitor"; echo "/System/Library/Displays/Overrides/DisplayVendorID-469/DisplayProductID-22fd"' -alias fixeclipse='rm...
bash
d_bash_18674
--- +++ @@ -10,6 +10,7 @@ alias g='git' alias ga='git add' alias gl='git pull --prune' +alias gmt='git mergetool' alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" alias gp='git push origin HEAD' gd() { git dif...
bash
d_bash_18675
--- +++ @@ -9,7 +9,7 @@ playcurrentdir() { mpvshuf --playlist <(find "$PWD" -type f -follow \ - -not -path '*/\.*' -exec realpath -s {} \;) + -not -path '*/\.*' -not -path '*.m3u' -exec realpath -s {} \;) } alias pcd='playcurrentdir'
bash
d_bash_18676
--- +++ @@ -19,7 +19,7 @@ fi echo "==> Extracting pristine copy: $PROJECTDIR.orig" -rm -rf "$PROJECTDIR" +rm -rf "$PROJECTDIR" "$PROJECTDIR.orig" tar xzf "$TARGETFILE" || exit 1 mv "$PROJECTDIR" "$PROJECTDIR.orig" || exit 1
bash
d_bash_18677
--- +++ @@ -9,6 +9,9 @@ exit $RESULT fi +# If we don't create it here, docker-compose will and it will be owned by root. +mkdir -p screenshots + docker-compose run tests RESULT=$?
bash
d_bash_18678
--- +++ @@ -7,7 +7,7 @@ tar xvzf elasticsearch.tar.gz nohup bash -c "cd elasticsearch-${es_version} && bin/elasticsearch &" - sleep 5 + sleep 10 } setup_kafka() { @@ -16,6 +16,6 @@ mkdir -p kafka && tar xzf kafka.tgz -C kafka --strip-components 1 nohup bash -c "cd kafka && bin/zookeepe...
bash
d_bash_18679
--- +++ @@ -5,9 +5,9 @@ # Set up go environment export GOROOT=/go -PATH=$PATH:$GOROOT/bin export GOPATH=/gocode -mkdir -p $GOPATH +PATH=$PATH:$GOROOT/bin:$GOPATH/bin +mkdir -p $GOPATH/bin # Pull cocoon source branch="master" @@ -23,7 +23,7 @@ cd cocoon rm -rf .glide/ && rm -rf vendor glide --debug install...
bash
d_bash_18680
--- +++ @@ -35,9 +35,8 @@ toolchain_flag=-DCMAKE_TOOLCHAIN_FILE=linux_64bit.toolchain.cmake ;; esac - rm -f $base/build/bin/protoc - rm -f $base/build/bin/grpc_node_plugin - rm -f CMakeCache.txt + git clean -xdf + git submodule foreach --recursive git clean -xdf; cmake $toolchain_flag . && cm...
bash
d_bash_18681
--- +++ @@ -7,12 +7,12 @@ XMLOUT="outputs/${FILE}.output" PARSEOUT="outputs/${FILE}.parse" ./test-xmpp-connection $x ${PARSEOUT} ${XMLOUT} - if [ ! $? ] ; then + if [ $? -ne 0 ] ; then echo "FAILED: $x - Test program had non-zero exit status" >&2 continue fi xmldiff $x $XMLOUT - if [ ! $?...
bash
d_bash_18682
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash # This is a smoke test to check the installer from Jenkins CI. rm -fr installer_test -./.tox/bin/py26/bin/funfactory --no-input --pkg installer_test +../.tox/bin/py26/bin/funfactory --no-input --pkg installer_test exit $?
bash
d_bash_18683
--- +++ @@ -14,6 +14,7 @@ echo 'browseable = yes' | sudo tee -a /etc/samba/smb.conf echo 'public = yes' | sudo tee -a /etc/samba/smb.conf echo 'writable = yes' | sudo tee -a /etc/samba/smb.conf +echo 'guest ok = no' | sudo tee -a /etc/samba/smb.conf sudo restart smbd testparm -s
bash
d_bash_18684
--- +++ @@ -3,7 +3,7 @@ cp src/build/travis-toolchains.xml ~/.m2/toolchains.xml -if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then +if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then openssl aes-256-cbc -K $secure_files_key -iv $secure_files_iv -in src/build/travis-settings.xml.enc -out ~/.m2/settings.xml -d o...
bash
d_bash_18685
--- +++ @@ -15,7 +15,9 @@ fi function docker_tag_exists() { - URI="https://hub.docker.com/v2/repositories/$1/tags" + ORG_LCASE=`echo "${ORG}" | tr '[:upper:]' '[:lower:]'` + URI="https://hub.docker.com/v2/repositories/${ORG_LCASE}/${IMAGE}/tags" + echo ${URI} curl --silent --fail -lSL ${URI} | grep \"$...
bash
d_bash_18686
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash . src/parse_yaml.sh -eval $(parse_yaml src/config.yml "") +eval $(parse_yaml src/misc/config.yml "") sh $galaxy_dir/run.sh --stop-daemon
bash
d_bash_18687
--- +++ @@ -2,7 +2,7 @@ set -ex -o pipefail BCBIO_VERSION="1.0.7a" -BCBIO_REVISION="42a0b45" +BCBIO_REVISION="58caffb" NS="quay.io/bcbio" TAG="${BCBIO_VERSION}-${BCBIO_REVISION}"
bash
d_bash_18688
--- +++ @@ -2,7 +2,7 @@ set -ex -o pipefail BCBIO_VERSION="1.0.4a" -BCBIO_REVISION="468168f" +BCBIO_REVISION="48c8c72" NS="quay.io/bcbio" TAG="${BCBIO_VERSION}-${BCBIO_REVISION}"
bash
d_bash_18689
--- +++ @@ -1,3 +1,3 @@ #!/bin/sh -e -~/.vim/bundle/YouCompleteMe/install.py --clang-completer --system-libclang +~/.vim/bundle/YouCompleteMe/install.py --clang-completer
bash
d_bash_18690
--- +++ @@ -20,7 +20,7 @@ virtualenv "$ICEKIT_VENV" fi -# Install ICEKit project. +# Install ICEKit. if [[ -z $("$ICEKIT_VENV/bin/pip" freeze | grep django-icekit) ]]; then "$ICEKIT_VENV/bin/pip" install -r requirements-icekit.txt fi
bash
d_bash_18691
--- +++ @@ -1,7 +1,9 @@ -#!/bin/bash -cd ~ -mkdir -p bin -PATH=$PATH:~/bin -export PATH +#!/bin/sh +#cd ~ +#mkdir -p bin +#PATH=$PATH:~/bin +#export PATH=$PATH:~/bin +ln -svf "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl git config --global core.editor "subl -n -w" -ln -s "/A...
bash
d_bash_18692
--- +++ @@ -14,4 +14,4 @@ cd $1; git describe --always --match "v[0-9].*" --dirty } -echo STABLE_BUILD_OWNERS_LABEL $(rev .) +echo STABLE_BUILD_OWNERS-AUTOASSIGN_LABEL $(rev .)
bash
d_bash_18693
--- +++ @@ -19,7 +19,6 @@ jq mongodb mtr - node perl prettyping python @@ -34,7 +33,6 @@ vim wget xz - yarn zsh )
bash
d_bash_18694
--- +++ @@ -4,9 +4,14 @@ dotfiles_encrypt() { local file="$1" + local target="$2/$(basename "$1")" + if [ -z "$2" ]; then + target="$1" + fi + mkdir -p $(dirname $target) local pass="$(openssl rand -base64 170)" - openssl aes-256-cbc -in $file -out $file.enc -pass pass:"$pass" - echo "$pass" | openssl rsautl ...
bash
d_bash_18695
--- +++ @@ -3,4 +3,4 @@ createdb helios python manage.py syncdb python manage.py migrate -echo "from helios_auth.models import User; User.objects.create(user_type='google',user_id='ben@adida.net', info={'name':'Ben Adida'})" | python manage.py shell +#echo "from helios_auth.models import User; User.objects.create(...
bash
d_bash_18696
--- +++ @@ -2,8 +2,33 @@ set -eu +function has_change() { + if git diff --no-ext-diff --quiet --exit-code; then + return 1 # not changed if the command successed + else + return 0 # changed if the command failed + fi +} + BASEDIR=$(dirname $0) cd "$BASEDIR" +if has_change; then + ec...
bash
d_bash_18697
--- +++ @@ -2,4 +2,4 @@ apt-add-repository ppa:ansible/ansible -y apt-get update -qq -apt-get install git ansible=2.0.2.0-1ppa~trusty software-properties-common -qq +apt-get install git ansible software-properties-common -qq
bash
d_bash_18698
--- +++ @@ -2,13 +2,12 @@ set -e -PKGS_ESSENTIAL="chk io utl mpi" +PKGS_ESSENTIAL="chk io utl mpi la/oblas la" PKGS_ALL=" \ fun/fftw fun \ gm/tri gm/msh gm \ hb \ -la/oblas la \ num/qpck num \ ode \ opt \
bash
d_bash_18699
--- +++ @@ -16,4 +16,5 @@ echo "Deploying tag ${tag}" git reset --hard $tag +npm install npm run build
bash