document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_13100
--- +++ @@ -16,7 +16,7 @@ #======================================== -zparseopts -D -K i:=o_image +zparseopts -D -K x=o_xtrace i:=o_image if (($#o_image)); then imageName=${${o_image[2]}#=} @@ -40,4 +40,6 @@ sudo=(sudo) fi -$sudo docker run -it $imageName $opts $target +((!$#o_xtrace)) || set -x +...
bash
d_bash_13101
--- +++ @@ -1,18 +1,35 @@ #!/bin/sh set -e +# ruby 2.2.2+: rack activesupport +# ruby 2.0+: mime-types +# (jruby 1.7 is ruby 1.9) +extras="$(ruby -e ' + rubyVersion = Gem::Version.new(RUBY_VERSION) + puts ( + ( + rubyVersion >= Gem::Version.new("2.2.2") ? [ + "rack", + "activesupport", + ] : [] + ) + ...
bash
d_bash_13102
--- +++ @@ -3,5 +3,5 @@ source /etc/profile -python manage.py test +pytest npm run test
bash
d_bash_13103
--- +++ @@ -1,4 +1,10 @@ #!/bin/bash -e + +function clean_up { + rm -f update-modules.lock + exit +} + if [ "$(id -u)" != "52" ]; then echo "This script must be run as user Puppet" 1>&2 exit 1 @@ -10,6 +16,7 @@ cd <%= @root_directory %>/puppet/environments lockfile -r0 update-modules.lock +trap clean...
bash
d_bash_13104
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash # Thanks to: http://sfviapgh.com/blog/2016/2/18/how-to-deploy-rails-with-aws-codedeploy -export RAILS_ENV=production +. /home/ubuntu/outages.secret cd /var/www/outages.weenhanceit.com/html sudo chmod 750 bin/* logs="log/production.log log/puma-production.stdout.log log/puma-...
bash
d_bash_13105
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash # generate the site -./hugoThemeSiteScript/generateThemeSite.sh +./hugoThemeSiteScript/generateThemeSite.sh https://davidyorr.github.io/hugo-orchid-theme/ hugo -s hugoThemeSite/themeSite # clone master into a temp directory
bash
d_bash_13106
--- +++ @@ -1,3 +1,5 @@ +#!/bin/zsh + set -e if [ ! -n "$SANDBIN_HOME" ]; then
bash
d_bash_13107
--- +++ @@ -42,7 +42,7 @@ # Make sure we are in a valid repository of a vintage we understand. GIT_DIR="$GIT_DIR" git repo-config --get core.nosuch >/dev/null - if test $? == 128 + if test $? = 128 then exit fi
bash
d_bash_13108
--- +++ @@ -5,7 +5,7 @@ fi mkdir -p cloudcity.io/tsomi cd cloudcity.io/tsomi -cp ../../index.html . +cat ../../index.html | sed 's/static\/tsomi.css/\/tsomi\/static\/tsomi.css/' | sed 's/js\/bundle.js/\/tsomi\/js\/bundle.js/' > index.html cp -r ../../static . cp -r ../../dist/js . # git add *
bash
d_bash_13109
--- +++ @@ -9,9 +9,9 @@ # About Python, JDK, texlive and the Haskell platform: I choose to install them by the official installers. brew install git tmux chicken clisp rlwrap smlnj ocaml opam cask leiningen pkg-config \ - bash-completion gcc freetype vim wget bash + bash-completion gcc freetype vim wget bash cmak...
bash
d_bash_13110
--- +++ @@ -12,10 +12,10 @@ cd $(dirname $(readlink -f $0))/../ -rm -rf build/ +rm -rf _build/ make html -cd build/html/ +cd _build/html/ git init git config user.email "ceholden@gmail.com"
bash
d_bash_13111
--- +++ @@ -12,6 +12,7 @@ conda install -y matplotlib yes | pip install nglview conda install -y ipywidgets +yes | pip install gym[atari] cd examples/notebooks nosetests --with-timer tests.py --with-xunit --xunit-file=notebook_tests.xml|| true
bash
d_bash_13112
--- +++ @@ -22,9 +22,9 @@ mkdir -p $M2REPO_DIR # Copy internal and the output to prebuilts/tools/common/androidx-integration cp -R $ANDROIDX_INTERNAL_DIR/* $M2REPO_DIR -unzip -quo $OUT_DIR/dist/top-of-tree-m2repository-all-dist.zip -d $M2REPO_DIR/.. +unzip -quo $OUT_DIR/dist/top-of-tree-m2repository-all-*.zip -d $...
bash
d_bash_13113
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash -x export DISPLAY=:99 bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment -bundle exec rake db:create db:migrate db:test:prepare && RAILS_ENV=test bundle exec rake test test:cleanup --trace && RAILS_ENV=production PRECOMPILING_ASSETS=true bundle exec rake assets:pre...
bash
d_bash_13114
--- +++ @@ -5,6 +5,10 @@ # Run with sudo -HE sudo apt-get install -y python3-pip swig + +export EPICS_BASE=/opt/epics/base +export EPICS_HOST_ARCH=linux-x86_64 + sudo -HE pip3 install pyepics==3.3.3 sudo -HE pip3 install pcaspy==0.7.2 exit 0
bash
d_bash_13115
--- +++ @@ -1,6 +1,8 @@ #!/bin/bash -pip list | awk '{ print $1 }' | egrep -i "(pip)|(livestreamer)|(youtube-dl)|(thefuck)|(tldr)|(zenmap)|(paramiko)|(clf)|(Fabric)|(speedtest-cli)" > /tmp/pip_list.txt +pip list | awk '{ print $1 }' | egrep -i "(pip)|(livestreamer)|(youtube-dl)|\ + (thefuck)|(tldr)|(zenmap)|(pa...
bash
d_bash_13116
--- +++ @@ -1,2 +1,3 @@ alias d='docker' alias dc='docker-compose' +alias drm='docker ps -aq | xargs -r docker stop; docker container ls -aq | xargs -r docker rm'
bash
d_bash_13117
--- +++ @@ -4,7 +4,7 @@ [ { "metric_name": "test_metric", - "schedule": "0 */10 * * * ?", + "schedule": "*/30 * * * * ?", "start_relative": { "value": 5, "unit": "minutes"
bash
d_bash_13118
--- +++ @@ -20,6 +20,13 @@ sudo mv kubectl /usr/local/bin/ kubectl version --client +# conntrack is required for minikube 1.19 and higher for none driver +if ! conntrack --version &>/dev/null; then + echo "WARNING: No contrack is not installed" + sudo apt-get update -qq + sudo apt-get -qq -y install conntrack ...
bash
d_bash_13119
--- +++ @@ -4,9 +4,9 @@ # the output files for comparison with `pyhector`. scriptdir=$(dirname -- "$(readlink -e -- "$BASH_SOURCE")") -cd $scriptdir/../hector +cd $scriptdir/../hector/inst for RF in 26 45 60 85; do - ./source/hector input/hector_rcp$RF.ini + ../src/hector input/hector_rcp$RF.ini cp output...
bash
d_bash_13120
--- +++ @@ -27,3 +27,8 @@ # Install test ones conda install -q -y -c spyder-ide --file requirements/tests.txt + +# Install plugin itself +# (necessary because plugin starts python in different directories and expects +# to import the plugin; specifically, in test_run_tests_and_display_results) +pip install --no-d...
bash
d_bash_13121
--- +++ @@ -1,6 +1,4 @@ #!/usr/bin/env bash - -set -e -o pipefail PG_DB=$1 PG_USER=$2
bash
d_bash_13122
--- +++ @@ -1,2 +1,2 @@ #!/bin/bash -l -[ -z "`squeue -u rthomas -o '\%30j' | grep $1`" ] && sbatch $1.sh +[ -z "`squeue -u rthomas -o '\%35j' | grep $1`" ] && sbatch $1.sh
bash
d_bash_13123
--- +++ @@ -12,30 +12,30 @@ # # with [tag]: generate from the named tag -VERSION=1.5 +RELEASE=1.5.1 TEMPDIR=tmp.$$ MYDIR=`pwd` TAG="$1" -mkdirhier $TEMPDIR/Python-$VERSION/Doc || exit $? +mkdirhier $TEMPDIR/Python-$RELEASE/Doc || exit $? if [ "$TAG" ] ; then - cvs export -r $TAG -d $TEMPDIR/Python-...
bash
d_bash_13124
--- +++ @@ -6,6 +6,7 @@ vim -E -c PlugInstall -c qall # Download Tmux Plugin Manager +rm -rf ~/.tmux/plugins/tpm git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm # Download and install Tmux plugins
bash
d_bash_13125
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -gosu postgres psql > /dev/null <<- EOSQL +sudo -u postgres psql > /dev/null <<- EOSQL CREATE USER MIMIC WITH PASSWORD '$MIMIC_PASSWORD'; CREATE DATABASE MIMIC OWNER MIMIC; EOSQL
bash
d_bash_13126
--- +++ @@ -29,6 +29,10 @@ file_env 'POSTGRES_PASSWORD' file_env 'MENTOR_GOOGLE_CALENDAR' file_env 'GOOGLE_API_KEY' +file_env 'MAILGUN_DOMAIN_DEV' +file_env 'MAILGUN_SECRET_DEV' +file_env 'MAILGUN_DOMAIN' +file_env 'MAILGUN_SECRET' # Start node api npm run bootstrap;
bash
d_bash_13127
--- +++ @@ -11,7 +11,8 @@ git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/* git remote rm origin git remote add origin https://watson-developer-cloud:${GH_TOKEN}@github.com/watson-developer-cloud/swift-sdk.git -git pull +git fetch +git checkout master latestVersion=$(git describe --...
bash
d_bash_13128
--- +++ @@ -17,14 +17,32 @@ # TODO: configure GPG keys if type git >/dev/null 2>&1 then + echo "Setting up git ..." + git config --global user.name "Ian Lai" git config --global user.email "ian@fyianlai.com" + + git config --global core.excludesfile ~/.gitignore_global + git config --global reba...
bash
d_bash_13129
--- +++ @@ -2,7 +2,7 @@ echo "" echo "It will transcode videos to a more usual TV friendly format and also overlay subtitles." -echo "The format will be a mp4 container with H.264 for video and acc for sound" +echo "The format will be a webm container with VP8 for video and Vorbis for sound" echo "" echo "usa...
bash
d_bash_13130
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash docker build -t datahub-ui:latest . -docker run --rm -d -p 8080:80 -e PROXY_PASS_WEBAPI=http://localhost:3006/api -e PROXY_PASS_APICC=http://localhost:3003/apicc datahub-ui:latest +docker run --rm -d -p 8080:80 -e PROXY_PASS_WEBAPI="proxy_pass http://localhost:3006" -e PROXY_PASS...
bash
d_bash_13131
--- +++ @@ -4,3 +4,11 @@ alias ap='/usr/bin/appliance_console' alias vmdb='cd /var/www/miq/vmdb' alias appliance='[[ -n ${APPLIANCE_SOURCE_DIRECTORY} ]] && cd ${APPLIANCE_SOURCE_DIRECTORY}' +# Tail miq logs +alias tailauto='tail -f /var/www/miq/vmdb/log/automation.log' +alias tailevm='tail -f /var/www/miq/vmdb/log...
bash
d_bash_13132
--- +++ @@ -2,9 +2,17 @@ cd $(dirname $0) cd .. +FLAKE8="" if which flake8 >/dev/null 2>&1; then + FLAKE8=flake8 +fi +if which flake8-python2 >/dev/null 2>&1; then + FLAKE8=flake8-python2 +fi + +if [ -n "${FLAKE8}" ]; then set -e - flake8 --ignore=E,W *.py weboob modules contrib scripts/* + ${FL...
bash
d_bash_13133
--- +++ @@ -22,10 +22,12 @@ mkdir package mkdir package/include cd include -cp -r ByteBuffer.hpp Client.h ClientConfig.h Column.hpp ConnectionPool.h Decimal.hpp Exception.hpp InvocationResponse.hpp Parameter.hpp ParameterSet.hpp Procedure.hpp ProcedureCallback.hpp Row.hpp RowBuilder.h StatusListener.h Table.h Tabl...
bash
d_bash_13134
--- +++ @@ -1,4 +1,8 @@ #!/bin/bash + +set -e + +cd "$( dirname "${BASH_SOURCE[0]}" )" exec fly -t production set-pipeline \ -p bosh:docker-images \
bash
d_bash_13135
--- +++ @@ -1,7 +1,7 @@ bundle install yarn install -sudo chown -R vscode:vscode /usr/local/bundle/bundler +sudo chown -R vscode:vscode /usr/local/bundle sudo service postgresql start sudo service mariadb start
bash
d_bash_13136
--- +++ @@ -4,8 +4,10 @@ case `uname` in Linux) find jdk-1.4 -name .classpath -exec sed -i -e "s/org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.launching.JRE_CONTAINER\/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType\/J2SE-1.4/g" {} \; + find jdk-1.5 -name .classpath -exec sed -i -e "s/org.ecli...
bash
d_bash_13137
--- +++ @@ -17,8 +17,6 @@ /bin/sed -i "s#REPLACEBYSUBFOLDER#$ARGV3#" $ARGV5/config/plugins/$ARGV3/smartmeter.cfg /bin/sed -i "s#REPLACEBYNAME#$ARGV2#" $ARGV5/config/plugins/$ARGV3/smartmeter.cfg -/bin/sed -i "s#REPLACEBYSUBFOLDER#$ARGV3#" $ARGV5/system/daemons/plugins/$ARGV2 -/bin/sed -i "s#REPLACEBYBASEFOLDER#$A...
bash
d_bash_13138
--- +++ @@ -15,7 +15,7 @@ fi [ ! -f ${_cake_task_cache_file} ] && return 0; - [ ${_cake_task_cache_file} -nt Cakefile ] && return 0; + [ Cakefile -nt ${_cake_task_cache_file} ] && return 0; return 1; }
bash
d_bash_13139
--- +++ @@ -20,6 +20,8 @@ export MOCHA_ARGS="--reporter=mocha-junit-reporter" echo "Building EnMasse with tag $TAG, commit $COMMIT, version $VERSION from $BRANCH. PR: $PULL_REQUEST" +make clean + make echo "Tagging Docker Images"
bash
d_bash_13140
--- +++ @@ -3,6 +3,10 @@ APPDIR="/Users/fayimora/Code/brutehack-frontend" PATCHDIR="/tmp/eakpatch" EAKDIR="/tmp/ember-app-kit-master" + +cd ${EAKDIR} +git pull origin master +cd ${APPDIR} # first generate patches of important files FILES="bower.json package.json Gruntfile.js karma.conf.js .jshintrc .bowerrc" #...
bash
d_bash_13141
--- +++ @@ -1,14 +1,37 @@ #!/bin/bash - +############################################################################### +# +# Generate the topic stats report with a query to the database and send +# the results out to a pre-configured CSV file for the current date. +# +# This script must be run with app as current ...
bash
d_bash_13142
--- +++ @@ -3,5 +3,5 @@ # Run this script from repository root directory (where README.md lives) pushd extension -zip -r ../web-page-media-keys.zip ./* +zip -r ../keysocket.zip ./* popd
bash
d_bash_13143
--- +++ @@ -21,5 +21,5 @@ set -o pipefail docker rm -f guestbook-build 2> /dev/null || true -docker rmi -f kubernetes/guestbook-build || true +docker rmi -f kubernetes/guestbook-builder || true docker rmi -f kubernetes/guestbook || true
bash
d_bash_13144
--- +++ @@ -1 +1,7 @@ split -l 10000 large_file.log split_ + +# Split binary file +split -b 1000m original-file-name.mov + +# Concatenate binary file +cat x* >original-file-name.mov
bash
d_bash_13145
--- +++ @@ -1,6 +1,10 @@ #!/bin/sh -THEME=stackoverflow +set -e + +theme=stackoverflow +script_dir="$(cd "$(dirname "${0}")" && pwd)" +export PATH="${PATH}:${PWD}/node_modules/.bin" command_exists() { @@ -9,11 +13,11 @@ if ! command_exists resume; then echo "Error: 'resume' command not found" >&2 - ...
bash
d_bash_13146
--- +++ @@ -5,7 +5,8 @@ sudo apt-get install apt-transport-https ca-certificates sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D -sudo echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" >> /etc/apt/sources.list.d/docker.list +# s...
bash
d_bash_13147
--- +++ @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e DB_FILE_PATH='./db.yml' -LIBSEP=" functions:" # name of the yaml block we want to check +LIBSEP=" \(functions\|variables\):" # name of the yaml block we want to check IFS=@ # iterate over each block and `sort --check` they content for lib in $(gre...
bash
d_bash_13148
--- +++ @@ -2,4 +2,6 @@ sudo rm -f /dev/ttyUSB3dp socat -d -d pty,raw,echo=0,link=./tty3dpm pty,raw,echo=0,link=./tty3dps & sudo ln -s $(pwd)/tty3dpm /dev/ttyUSB3dp +#Octoprint needs to be able to read from its tty: +sudo chmod +r ./tty3dpm ./tty3dps ./build/kossel-firmware ./tty3dps
bash
d_bash_13149
--- +++ @@ -1,5 +1,3 @@ #!/bin/bash -x -source '/usr/local/lib/rvm' -export GEM_HOME="/home/jenkins/bundles/${JOB_NAME}" -mkdir -p "${GEM_HOME}" -bundle install && bundle exec rake db:create db:migrate db:test:prepare && RAILS_ENV=test bundle exec rake test cucumber --trace +bundle install --path "${HOME}/bundles/${...
bash
d_bash_13150
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash # Install dependencies -sudo yum -y install git python-setuptools +sudo yum -y install git python-devel python-setuptools libffi libffi-devel sudo easy_install pip sudo pip install ansible
bash
d_bash_13151
--- +++ @@ -21,3 +21,8 @@ # Create a group and assign the user to it dseditgroup -o create "$SSH_USERNAME" dseditgroup -o edit -a "$SSH_USERNAME" "$SSH_USERNAME" + +if [ "$OSX_VERS" = "11" ]; then + nvram boot-args=rootless=0 + reboot +fi
bash
d_bash_13152
--- +++ @@ -26,8 +26,8 @@ pyenv global 3.3.6 ;; py34) - pyenv install 3.4.2 - pyenv global 3.4.2 + pyenv install 3.4.3 + pyenv global 3.4.3 ;; py35) pyenv install 3.5.0
bash
d_bash_13153
--- +++ @@ -2,4 +2,5 @@ brew --version 2>&1 | \ head -n 1 | \ - cut -d ' ' -f 2 + cut -d ' ' -f 2 | \ + cut -d '-' -f 1
bash
d_bash_13154
--- +++ @@ -17,9 +17,9 @@ # Collect docker daemon logs sudo ls -altr /var/log/docker* sudo ls -altr /var/log/upstart/docker* -if [ -d /var/log/docker ]; then - sudo cp /var/log/docker $BASE/logs/docker.log +if [ -f /var/log/docker ]; then + sudo cp /var/log/docker /opt/stack/logs/docker.log fi -if [ -d /var/log...
bash
d_bash_13155
--- +++ @@ -1,5 +1,7 @@ mkdir build cd build + +export GCC_ARCH=core2 if [ "$(uname)" == "Darwin" ]; then
bash
d_bash_13156
--- +++ @@ -10,7 +10,8 @@ sudo dscl . append /Groups/wheel GroupMembership $USER #Install Ansible -brew install ansible +brew tap homebrew/versions +brew install ansible19 #Run Ansible PYTHONIOENCODING='utf-8' ansible-playbook desktop.yml
bash
d_bash_13157
--- +++ @@ -4,24 +4,27 @@ sudo apt-get update && sudo apt-get dist-upgrade # General tools -sudo apt-get install vim git +sudo apt-get install vim git ctags vim-doc vim-scripts # Tools for Cuckoo sudo apt-get install python python-sqlalchemy python-bson python-dpkt \ python-jinja2 python-magic python-pym...
bash
d_bash_13158
--- +++ @@ -32,5 +32,8 @@ find "${path}"/.. -type d -iname "test*" -print0 | xargs -0 rm -rf find "${path}"/.. -type f -iname "test*.js" -print0 | xargs -0 rm -rf +echo "Removing *.min.js browser files recursively" +find "${path}"/.. -type f -iname "*.min.js" -print0 | xargs -0 rm -rf + echo "Removing empty file...
bash
d_bash_13159
--- +++ @@ -12,10 +12,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash -e +#!/bin/bash + +set -e # Install gflags development files if not already present. -[ -d /usr/include/gflags/ ] || apt install libgflags-dev +[ -d /usr/include/gflag...
bash
d_bash_13160
--- +++ @@ -11,5 +11,8 @@ ## pager export PAGER="less" export LESS="-R" +export EDITOR=vim export LC_CTYPE=$LANG + +hr() { printf '-%.0s' $(seq $COLUMNS) }
bash
d_bash_13161
--- +++ @@ -7,6 +7,7 @@ fi; /opt/vagrant/bin/vagrant up +sleep 2 # Dodge "SSH connection was refused" errors. /opt/vagrant/bin/vagrant ssh -c 'cd /home/vagrant/dxr && source /home/vagrant/venv/bin/activate && make clean && make test' RESULT=$? /opt/vagrant/bin/vagrant destroy --force || exit $?
bash
d_bash_13162
--- +++ @@ -6,10 +6,11 @@ export LC_ALL=C.UTF-8 -export PACKAGES="clang llvm python3 libssl1.0-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev" +export PACKAGES="clang-8 llvm-8 python3 libssl1.0-dev libevent-dev bsdmainutils libb...
bash
d_bash_13163
--- +++ @@ -2,9 +2,25 @@ ## # This is a helper script for development, do not use for CI or anything ## +QDB_API_VERSION="2.8.0-SNAPSHOT" echo "Rebuilding JNI..." -cd ../qdb-api-jni/build/ && rm -rf ./* && cmake .. && make -j4 && cp ./jni* ../../qdb-api-java/qdb && cp ./libqdb_api_jni.so ../../qdb-api-java/qdb ...
bash
d_bash_13164
--- +++ @@ -3,12 +3,18 @@ # NB: Run "mvn assembly:assembly" first to build the complete Jar2Lib JAR file. JAR2LIB_DIR=`cd "$(dirname $0)/.."; pwd` -ARTIFACT_DIR=~/code/LOCI/java/artifacts -java -jar "$JAR2LIB_DIR/target/jar2lib-1.0-SNAPSHOT-deps.jar" \ +REPOSITORY_DIR=~/.m2/repository + +java -cp \ +"$JAR2LIB_DIR...
bash
d_bash_13165
--- +++ @@ -2,8 +2,8 @@ local cur prev cmds gopts cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" - cmds="followers friends home mentions search update user" - gopts="--colors --help --http-proxy --num --no-colors --no-http-proxy --no-url-shorten --page --version" + cmds="fo...
bash
d_bash_13166
--- +++ @@ -2,23 +2,19 @@ # Do nothing on Darwin-based systems if [[ "$(uname)" == "Linux" ]]; then - SWIFT_URL=https://swift.org/builds/swift-3.0-preview-1/ubuntu1404/swift-3.0-preview-1/swift-3.0-preview-1-ubuntu14.04.tar.gz - BASE_DIR=$(pwd) - # Install Swift - cd ${HOME} - wget $SWIFT_URL -O ...
bash
d_bash_13167
--- +++ @@ -1,6 +1,11 @@ -export GOROOT="$HOME/go" -[ -d "$GOROOT" ] || mkdir -p "$GOROOT" -[ -d "$GOROOT"/bin ] && export PATH="$GOROOT"/bin:"$PATH" -export GOPATH="$GOROOT/work" -[ -d "$GOPATH" ] || mkdir -p "$GOPATH" -export PATH="$GOPATH"/bin:"$PATH" +GOROOT="$HOME"/go +GOPATH="$HOME"/dev/go + +[ -d "$GOROOT"/bi...
bash
d_bash_13168
--- +++ @@ -4,7 +4,7 @@ set -e -default_ver="3.6.6" +default_ver="3.7.6" pyenv_url="https://github.com/yyuu/pyenv.git" pyenv_d="${HOME}/.pyenv"
bash
d_bash_13169
--- +++ @@ -1,5 +1,6 @@ alias dotcd='cd $ZSH' alias reload='. ~/.zshrc' +alias xclip='xclip -sel clip' alias markdown2pdf='/usr/bin/markdown2pdf --template ~/Dropbox/reference/markdown.tex'
bash
d_bash_13170
--- +++ @@ -1,5 +1,5 @@ readvar(){ - if [[ ${1} == \W ]]; then + if [[ ${1} != *[a-zA-Z0-9_]* || ${1} == *[-.]* ]]; then echo "${@}" elif [[ ${!1} && ${1} != [0-9]* ]]; then local var=${1}[@]
bash
d_bash_13171
--- +++ @@ -1,3 +1,9 @@ -#!/bin/bash +#!/bin/bash -v + +if ! [ -x "$( command -v clang-format )" ] +then + mkdir -p $HOME/.local + wget -O- http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz | tar --xz -xf - -C $HOME/.local --strip 1 +fi find ./src \( -path ./src/3rd_party -...
bash
d_bash_13172
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash /opt/envsubst < /envsubst_template.json > /conf/runtime.json -exec java -XX:+UseContainerSupport -XX:MaxRAMPercentage=50.0 -jar /git-bridge.jar /conf/runtime.json +exec java -XX:+UseContainerSupport -XX:MaxRAMPercentage=50.0 -Xlog:gc* -jar /git-bridge.jar /conf/runtime.json
bash
d_bash_13173
--- +++ @@ -26,6 +26,3 @@ ulimit -n 1024 2> /dev/null # Increase available processes limit ulimit -u 1024 2> /dev/null - -# Active NVM (Node Version Manager) -source /usr/local/opt/nvm/nvm.sh 2> /dev/null
bash
d_bash_13174
--- +++ @@ -1,12 +1,13 @@ #!/bin/bash -ex -# Available Xcode Apps (Aug 26 2014) +# Available Xcode Apps (Sept 9 2014) # XCODE_5_0_2_APP # XCODE_5_1_1_APP # XCODE_6_BETA_4_APP # XCODE_6_BETA_5_APP (doesn't appear to work for headless tests - times out) # XCODE_6_BETA_6_APP (same caveat for headless tests) # X...
bash
d_bash_13175
--- +++ @@ -1,6 +1,6 @@ # set -e -DIR="$(dirname $(readlink -f $0))" +DIR=$(dirname "$0") TMUX=$1 NAME=$2 CMD=$3
bash
d_bash_13176
--- +++ @@ -39,5 +39,5 @@ chown -R ghost:ghost /data /ghost /ghost-override su ghost << EOF cd "$GHOST" -NODE_ENV=production npm start +NODE_ENV=${NODE_ENV:-production} npm start EOF
bash
d_bash_13177
--- +++ @@ -13,6 +13,9 @@ # Install our PyZ3950, because the PyPI one is broken pip install git+http://github.com/oucs/PyZ3950.git + + # Install a fork of Django-compress to correctly handle SSL compressed media + pip install git+git://github.com/mikelim/django-compress.git#egg=django-compre...
bash
d_bash_13178
--- +++ @@ -1,4 +1,5 @@ #!/bin/bash +set -e # Find all teh headers headers=`find src -name "*.h" -a -not -name queso.h -type f | grep -v 'ANN' | grep -v 'interface'` @@ -6,9 +7,13 @@ # Find the thing we want to conduct wizardry on quesoh=`find src -name "queso.h.in"` +# Create temporary file to hold output o...
bash
d_bash_13179
--- +++ @@ -1,4 +1,11 @@ #!/usr/bin/env bash -set -Eeuxo pipefail +set -Eeuo pipefail -hostname -I | awk '{print $1}' +if [[ "$MACOS" -eq 1 ]] +then + echo "en0: $(ipconfig getifaddr en0)" + echo "en1: $(ipconfig getifaddr en1)" + echo "en2: $(ipconfig getifaddr en2)" +else + hostname -I | awk '{print ...
bash
d_bash_13180
--- +++ @@ -5,7 +5,11 @@ if [ "$GTK" = latest -o "$GTK" = "3.18" ]; then BUNDLE="gtk-3.18.1-2" - FEATURES=gtk_3_18,futures-stable + if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then + FEATURES=gtk_3_18,futures-nightly + else + FEATURES=gtk_3_18,futures-stable + fi fi if [ -n "$BUNDLE" ]; then
bash
d_bash_13181
--- +++ @@ -1,17 +1,9 @@ set -o errexit set -o nounset -cat << EOF > /etc/conf.d/net -config_enp1s0=("dhcp") -config_enp2s0="10.0.0.2/24" -EOF echo 'hostname="keykeeper"' > /etc/conf.d/hostname cat /dev/null > /etc/issue cp /usr/share/zoneinfo/Europe/Stockholm /etc/localtime -[ -d /root/.ssh ] || mkdir /root/....
bash
d_bash_13182
--- +++ @@ -20,7 +20,7 @@ $run begin # Add users IP to firewall group -$run firewall group address-group $AUTH_GROUP address $3 +$run set firewall group address-group $AUTH_GROUP address $3 echo "Added $3 to $AUTH_GROUP" # Commit
bash
d_bash_13183
--- +++ @@ -18,8 +18,8 @@ W=$(echo "$Q" | sed -e 's/.*\/quotes\///g' -e 's/<.*//g' -e 's/.*">//g') if [ "$W" -a "$TXT" ]; then echo "${WHO_COLOR}${W}${COLON_COLOR}: ${TEXT_COLOR}“${TXT}”${END_COLOR}" - else - quote + # else + # quote fi } ...
bash
d_bash_13184
--- +++ @@ -11,5 +11,5 @@ source ./support/android/fakeld/fake-ld.sh export _GCC_PARAMS="${@}" -call_gcc "arch-arm" "arm-linux-androideabi" "android-18" "armeabi-v7a" \ +call_gcc "arch-arm" "arm-linux-androideabi" "android-21" "armeabi-v7a" \ "arm-linux-androideabi"
bash
d_bash_13185
--- +++ @@ -7,11 +7,8 @@ atom_package=$workdir/package_sources url=`cat fatjar/url` -fatjar_version=`cat fatjar/version` -package_version=${fatjar_version%-*} cd $atom_commons -npm --no-git-tag-version version $package_version npm install cd $atom_package
bash
d_bash_13186
--- +++ @@ -1,3 +1,8 @@ #!/usr/bin/env sh +command -v Rscript >/dev/null 2>&1 || { + echo >&2 "R is not installed." + exit 1 +} + Rscript --vanilla "${KOOPA_DIR}/system/check.R"
bash
d_bash_13187
--- +++ @@ -14,6 +14,6 @@ fi } -write_job "0 * * * *" "${PARENT_DIR}/scripts/cycle-mount.sh" +write_job "45 * * * *" "${PARENT_DIR}/scripts/cycle-mount.sh" set +e
bash
d_bash_13188
--- +++ @@ -23,7 +23,4 @@ $linkcmd $PWD/vimrc ~/.vimrc # zsh -$linkcmd $PWD/zcompdump ~/.zcompdump -$linkcmd $PWD/zprofile ~/.zprofile -$linkcmd $PWD/zshenv ~/.zshenv $linkcmd $PWD/zshrc ~/.zshrc
bash
d_bash_13189
--- +++ @@ -1,4 +1,4 @@ -#!/bin/bash -x +#!/bin/bash -ex go get -u github.com/mitchellh/gox mkdir -p /root/go/src/github.com/mitchellh/ git clone https://github.com/mitchellh/packer.git /root/go/src/github.com/mitchellh/packer
bash
d_bash_13190
--- +++ @@ -11,5 +11,5 @@ cd $REPO_DIR bundle config --local PATH vendor/bundle bundle config --local DISABLE_SHARED_GEMS true -bundle exec --keep-file-descriptors ./repxe_host.rb $* +bundle exec --keep-file-descriptors $PWD/repxe_host.rb $*
bash
d_bash_13191
--- +++ @@ -6,6 +6,9 @@ for key_title in ${key_titles[@]}; do key_file="${key_directory}/${key_title}" if [ ! -f ${key_file} ]; then + echo "Creating ${key_file}" ssh-keygen -t rsa -b 4096 -f ${key_file} -N "" -q + else + echo "Skipping ${key_file}, already exists" fi done
bash
d_bash_13192
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh apt-get update -# install packages needed by libsndfile +# install packages needed by libsndfile, matplotlib and lmdb apt-get install -y \ g++ \ autoconf \ @@ -13,8 +13,12 @@ libvorbis0a \ libvorbis-dev \ libsamplerate0 \ - libsamplerate0-dev - + libsamplerate0-dev \ + l...
bash
d_bash_13193
--- +++ @@ -29,7 +29,6 @@ gh release create $releaseTag \ --draft \ --title "v${RELEASE_VERSION}" \ - "${distributionArchivePath}#Install package" -# "${distributionArchivePath}#Install package" \ -# "tools/download-install.sh#Download & Install script" \ -# "${sourceCodeArchivePath}#Source code" + "${dis...
bash
d_bash_13194
--- +++ @@ -5,7 +5,6 @@ export XDG_DATA_HOME=$tmpdir export XDG_CACHE_HOME=$tmpdir export XDG_CONFIG_HOME=$tmpdir -export XDG_CACHE_HOME=$tmpdir tracker-control -rs #2>&1 >/dev/null /usr/lib/tracker/tracker-store&
bash
d_bash_13195
--- +++ @@ -1,7 +1,7 @@ #!/bin/sh set -e - +mv _gitignore .gitignore git init sh scripts/bootstrap git add -A .
bash
d_bash_13196
--- +++ @@ -2,7 +2,10 @@ # Install software for web development. apt-get -y update -apt-get -y install jekyll apt-get -y install npm ln -s /usr/bin/nodejs /usr/bin/node npm install -g grunt-cli + +#Use gem to install jekyll, because the debian package is outdated. +apt-get install ruby1.9.1-dev +gem install j...
bash
d_bash_13197
--- +++ @@ -2,6 +2,10 @@ set -o pipefail if [[ $NODE_ENV == 'production' ]]; then + # Remove node-gyp cache + rm -rf ~/.node-gyp/ + # Remove cached git deps + rm -rf /tmp/* # Remove the c files we no longer need (the sqlite3 node module has a massive ~5M c file) find . -name '*.c' -delete # And the tar file...
bash
d_bash_13198
--- +++ @@ -8,6 +8,10 @@ mkdir -p "$@" && cd "$@" } +txt() { + fmt $1 | less +} + c() { echo $(( $* )) }
bash
d_bash_13199
--- +++ @@ -11,14 +11,20 @@ shift fi +NAME=$1 +DOMAIN=$2 +PW=$3 + # Create a password hash from the given password -PWSTRING=$(doveadm pw -s SHA512-CRYPT -p "$2") +PWHASH=$(doveadm pw -s SHA512-CRYPT -p "$PW") -echo "PWSTRING=$PWSTRING" +echo "PWHASH=$PWHASH" -VAL1="'""$1""'" -VAL2="'""$2""'" -VAL3="'""$PW...
bash