document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_18000
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # this is a hack to work around how django-mozilla-product-details # takes too long and always kills the vagrant VM on startup @@ -11,5 +11,8 @@ fi svn export --force http://svn.mozilla.org/libs/product-details/json/ $dest if [ $? -eq 0 ]; then - date "+%a, %d...
bash
d_bash_18001
--- +++ @@ -40,11 +40,6 @@ extract_source () { git_archive - pushd "${extractdir}/${name}-reduced" - fromdos \ - Utilities/gdcmcharls/encoderstrategy.h \ - Utilities/gdcmutfcpp/utf8.h - popd } . "${BASH_SOURCE%/*}/../../../Utilities/Maintenance/update-third-party.bash"
bash
d_bash_18002
--- +++ @@ -2,11 +2,11 @@ if [ -z "$(git status --porcelain)" ]; then # Working directory clean - git subtree split --prefix docs -b gh-pages + git subtree split --prefix dist -b gh-pages git push -f origin gh-pages:gh-pages git branch -D gh-pages else # Uncommitted changes echo 'ERROR! Uncommitt...
bash
d_bash_18003
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -# download phpservermon-3.1.1, untar it. Files resting place is www/phpservermon +# download phpservermon-3.1.1, untar it. Files resting place is src/public/phpservermon curl -L -o phpservermon-3.1.1.tar.gz https://sourceforge.net/projects/phpservermon/files/phpservermon/PHP%2...
bash
d_bash_18004
--- +++ @@ -1,7 +1,10 @@ #!/usr/bin/env bash echo "Setting up repeate speed.." -xset r rate 270 55 +if [ -n "$DISPLAY" ] +then + xset r rate 270 55 +fi if systemctl is-failed udevmon.service&>/dev/null then
bash
d_bash_18005
--- +++ @@ -8,18 +8,16 @@ if test ! $(which aws) then echo " Installing AWS cli for you." - sudo -H pip install awscli --ignore-installed six + sudo -H pip3 install awscli --ignore-installed six else - sudo -H pip install --upgrade awscli --ignore-installed six + sudo -H pip3 install --upgrade awscli --ign...
bash
d_bash_18006
--- +++ @@ -14,4 +14,9 @@ docker push $1/cilium/operator:$2 cilium_git_version="$(cat GIT_VERSION)" -docker image prune -f --all --filter "label=cilium-sha=${cilium_git_version%% *}" + +counter=0 +until [ $counter -eq 10 ] || docker image prune -f --all --filter "label=cilium-sha=${cilium_git_version%% *}"; do + ...
bash
d_bash_18007
--- +++ @@ -2,5 +2,5 @@ # All this does is set what node version all of my stuff uses. # Since the merge and update to 4.0, I have found a need to stick to a specific relaese to keep # things stable -export node_version=6.9.2 +export node_version=6.10.3
bash
d_bash_18008
--- +++ @@ -10,7 +10,7 @@ MNT_POINT=/var/lib/mysql # fdisk the disk if it's not a block device already: -[ -b $DEVICE ] || echo 0,,8e | sfdisk $DISK_DEV +[ -b $DEVICE ] || echo ,,8e | sfdisk $DISK_DEV echo "fdisk returned: $?" # Create the filesytem if it doesn't already exist
bash
d_bash_18009
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash set -e -version="20.10.7" +version="20.10.8" echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz";
bash
d_bash_18010
--- +++ @@ -1,7 +1,6 @@ #!/bin/bash cd ~ - echo user: `whoami` echo path: `pwd` @@ -33,7 +32,7 @@ echo "Start deploy" -sudo -u appuser git clone https://github.com/Artemmkin/reddit.git +git clone https://github.com/Artemmkin/reddit.git cd reddit/ bundle install puma -d
bash
d_bash_18011
--- +++ @@ -1,5 +1,5 @@ alias rust-repl='rustup run nightly-2016-08-01 ~/.cargo/bin/rusti' alias rusti=rust-repl -alias clippy='cargo clean && rustup run nightly cargo clippy' +alias clippy='rustup run nightly cargo clippy' alias rust-lint=clippy
bash
d_bash_18012
--- +++ @@ -6,12 +6,13 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -# Explanation of GNU parallel options: -# --halt now,fail=1: if any job fails, kill the remaining ones immediately and report failure -# --pipe: input is read from STDIN and split by chunks -# -j 20: number of conc...
bash
d_bash_18013
--- +++ @@ -12,7 +12,7 @@ cd $ZLIB_VERSION/ -CPPFLAGS=-fPIC ./configure \ +CFLAGS=-fPIC ./configure \ --prefix=$PREFIX \ --static make
bash
d_bash_18014
--- +++ @@ -14,23 +14,32 @@ PACKAGE_PATH=$(find-package $INPUT_DIR) if [[ $PACKAGE_PATH ]]; then - printf "package found: $PACKAGE_PATH" + printf "package found: $PACKAGE_PATH\n" # `get-version` parses input for known versions and picks # based on semver compared to package.json (if present) # output...
bash
d_bash_18015
--- +++ @@ -1,6 +1,6 @@ TARGET=${1:-$HOME} cd $TARGET -curl https://api.github.com/users/boppreh/repos | jq '.[] | .ssh_url' | xargs -I{} git clone {} +curl https://api.github.com/users/boppreh/repos?per_page=200 | jq '.[] | .ssh_url' | xargs -I{} git clone {} echo 'To clone private repos, enter your access token ...
bash
d_bash_18016
--- +++ @@ -18,7 +18,7 @@ source tensorflow/tools/ci_build/release/common.sh -sudo pip install --upgrade twine +python -m pip install --upgrade twine # Copy and rename to tf_nightly for f in $(ls "${KOKORO_GFILE_DIR}"/tf_nightly_gpu*dev*cp3*-cp3*-win_amd64.whl); do
bash
d_bash_18017
--- +++ @@ -1,2 +1,2 @@ #!/bin/bash -huskybot kappeli 8090 pong11-`whoami` +huskybot kappeli 8091 pong11-`whoami`
bash
d_bash_18018
--- +++ @@ -11,37 +11,13 @@ exit 1 fi -panes_current_window() { - tmux list-panes -F '#{pane_active} #P' | - while read active pane; do - [[ "$active" -eq 0 ]] && echo "$pane" - done -} - -panes_current_session() { - tmux list-panes -s -F '#{window_active} #I.#P' | - while read active pa...
bash
d_bash_18019
--- +++ @@ -2,3 +2,4 @@ SeqFindR Antibiotic_markers.fa assemblies/ -m consensus/ -o run2 -l SeqFindR Antibiotic_markers.fa assemblies/ -m consensus/ -o run3 -l -r SeqFindR Antibiotic_markers.fa assemblies/ -m consensus/ -o run4 -l -r --index_file dummy.order +SeqFindR Antibiotic_markers.fa assemblies/ -o run5 -l -...
bash
d_bash_18020
--- +++ @@ -6,8 +6,8 @@ cd /qemu curl --retry 5 -LO https://github.com/qemu/qemu/raw/master/pc-bios/s390-ccw.img -curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20170828/images/generic/kernel.debian -curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s...
bash
d_bash_18021
--- +++ @@ -1,6 +1,7 @@ #!/bin/bash pyrus channel-discover pear.survivethedeepend.com -pyrus install deepend/Mockery +pyrus channel-discover hamcrest.googlecode.com/svn/pear +pyrus install deepend/Mockery --alldeps phpenv rehash
bash
d_bash_18022
--- +++ @@ -15,6 +15,7 @@ apt-get install -y postgresql apt-get install -y postgresql-client apt-get install -y nginx +apt-get install -y dos2unix cat /rgserver/vagrant/pg_hba.conf > /etc/postgresql/9.4/main/pg_hba.conf /etc/init.d/postgresql restart @@ -29,4 +30,5 @@ ln -s /etc/nginx/sites-available/rgserver...
bash
d_bash_18023
--- +++ @@ -5,6 +5,9 @@ # See /README.md for detailed information. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" + +echo "Note that variant extraction and deduplication will take up to an hour," >&2 +echo "and during this time no output will be produced." >&2 # If you're running on VC...
bash
d_bash_18024
--- +++ @@ -33,3 +33,13 @@ } EOD fi + +# bash completion +# +_rbfu() { + cur="${COMP_WORDS[COMP_CWORD]}" + opts=$(ls $HOME/.rbfu/rubies) + COMPREPLY=( $(compgen -W "${opts} system" -- ${cur}) ) +} +complete -o nospace -F _rbfu rbfu +
bash
d_bash_18025
--- +++ @@ -28,7 +28,7 @@ # - https://github.com/boostorg/coroutine2/issues/12 # - https://github.com/google/sanitizers/issues/189#issuecomment-312914329 -for cp in "" "-DSANITIZE_THREAD=ON -DSANITIZE_UNDEFINED=ON" +for cp in "" "-DSANITIZE_UNDEFINED=ON" do build_test "$cp" done
bash
d_bash_18026
--- +++ @@ -15,9 +15,7 @@ url: https://status.julialang.org/download/linux-i686 # [linux32] build: - rpaths: - - lib/julia - - lib + binary_relocation: False test: files:
bash
d_bash_18027
--- +++ @@ -21,14 +21,20 @@ cd `dirname $BASH_SOURCE` && cd .. +# Note we only extract the English language strings so they can be +# sent to Transifex. All other language strings will be pulled +# down from Transifex and so don't need to be generated. + echo "Extracting i18n strings..." -python manage.py makem...
bash
d_bash_18028
--- +++ @@ -13,8 +13,8 @@ exit 1 fi -TIME=$(date '+%F %T %z') - +DESC="" +LAST_COMMIT_DATE="" if [ -e "$(which git)" -a -d ".git" ]; then # clean 'dirty' status of touched files that haven't been modified git diff >/dev/null 2>/dev/null @@ -23,7 +23,7 @@ DESC="$(git describe --dirty 2>/dev/nu...
bash
d_bash_18029
--- +++ @@ -7,6 +7,8 @@ ( set -e set -x + + GH_REPO=$(git config --get remote.origin.url) mkdir deploy_to_gh_pages @@ -20,9 +22,6 @@ git add . git commit -m "Deployed to Github Pages" - - echo '==================================' - git config --get remote.origin.url - echo '=================...
bash
d_bash_18030
--- +++ @@ -31,4 +31,4 @@ } find_scripts -perm -u+x | xargs -0 shellcheck --external-sources --exclude=SC2016,SC1090 -find_scripts -not -perm -u+x | xargs -0 shellcheck --external-sources --exclude=SC2016,SC2148 +find_scripts -not -perm -u+x | xargs -0 shellcheck --external-sources --shell=bash --exclude=SC2...
bash
d_bash_18031
--- +++ @@ -5,18 +5,8 @@ echo "Installing TensorPy for Python 3:" pip3 install -r requirements.txt --upgrade python3 setup.py install -value="$(uname)" -if [ $value == "Linux" ] -then - echo "Initializing TensorFlow setup on a Linux machine..." - pip3 install --upgrade tensorflow -elif [ $value == "Darwin" ] -th...
bash
d_bash_18032
--- +++ @@ -24,9 +24,9 @@ # List directory contents alias lsa='ls -lah' -alias l='ls -la' -alias ll='ls -l' -alias la='ls -lA' +alias l='ls -lah' +alias ll='ls -lh' +alias la='ls -lAh' # Push and pop directories on directory stack alias pu='pushd'
bash
d_bash_18033
--- +++ @@ -38,6 +38,6 @@ else - nyc lerna run --scope truffle-* && cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js + nyc lerna run --scope truffle-* && cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage ./.nyc_output fi
bash
d_bash_18034
--- +++ @@ -1,5 +1,5 @@ #!/usr/bin/env bash DIRECTION=$1 -SINK=$(pacmd list-sinks | grep index | head -n 1 | cut -f 2 -d :) +SINK=$(pacmd list-sinks | grep "\* index" | head -n 1 | cut -f 2 -d :) pactl set-sink-volume $SINK -- $DIRECTION"5%"
bash
d_bash_18035
--- +++ @@ -1,6 +1,8 @@ +#!/bin/bash + cd $WORKSPACE/configuration/util/jenkins/ -pip install -r requirements-missingalerts.txt +pip install -r check_celery_progress/requirements.txt . util/jenkins/assume-role.sh # Assume the role
bash
d_bash_18036
--- +++ @@ -7,7 +7,7 @@ sleep 4 echo "Downloading Selenium" -curl -L http://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar > selenium.jar +curl -L http://selenium-release.storage.googleapis.com/2.51/selenium-server-standalone-2.51.0.jar > selenium.jar echo "Running Selenium"...
bash
d_bash_18037
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -java -Dpersistence.unit=hsqldb-schema \ - -cp "/opt/slipstream/server/webapps/slipstream.war/WEB-INF/lib/*": \ +/usr/lib/jvm/jre-1.8.0/bin/java -Dpersistence.unit=hsqldb-schema \ + -cp "/opt/slipstream/server/webapps/slipstream.war/WEB-INF/lib/*":"/opt/slipstream/server...
bash
d_bash_18038
--- +++ @@ -1,13 +1,15 @@ #/bin/bash yum -y install ca-certificates openssl && yum clean all -update-ca-trust force-enable . /etc/os-release if [ "$ID" = "centos" ]; then CADIR="/etcpki/ca-trus-source/anchors" + update-ca-trust force-enable + UPDATE_CA_COMMAND="update-ca-trust extract" elif [ "$ID" = "ub...
bash
d_bash_18039
--- +++ @@ -1,28 +1,32 @@ #!/bin/sh -I=0 -while true; do - echo - if ! v4l-info /dev/video$I > /dev/null 2>&1; then - echo "No /dev/video$I" - break - else - echo "/dev/video$I - exists!" - fi +if [ ! -d /dev/hdmi2usb ]; then + I=0 + while true; do + echo + if ! v4l-info /dev/video$I > /dev/null 2>&1; then + ...
bash
d_bash_18040
--- +++ @@ -2,5 +2,5 @@ docker login "$DOCKER_BASE_URL" -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" -docker build -t "${DOCKER_REPO}/orbit:${ORBIT_VERSION}" -f docker/server/Dockerfile . +docker build -t "${DOCKER_REPO}/orbit:${ORBIT_VERSION}" -f deploy/docker/server/Dockerfile . docker push "${DOCKER_REPO}/orb...
bash
d_bash_18041
--- +++ @@ -23,7 +23,8 @@ fi # Step 2 -make -j 8 +CPU_NUM=`grep -c ^processor /proc/cpuinfo` +make -j $CPU_NUM if [ "$?" -gt 0 ] then echo 'Failed to build librealsense'
bash
d_bash_18042
--- +++ @@ -8,5 +8,6 @@ for PATTERN in .cvs .git .hg .svn; do GREP_OPTIONS+="--exclude-dir=$PATTERN " done -export GREP_OPTIONS+='--color=auto ' +GREP_OPTIONS+="--color=auto" +export GREP_OPTIONS="$GREP_OPTIONS" export GREP_COLOR='1;32'
bash
d_bash_18043
--- +++ @@ -1,3 +1,5 @@ #!/bin/sh -STEVE_CONFIG=test-steve.conf ../steve.sh > steve-output 2>&1 +. ./test-support.sh + +STEVE_CONFIG=test-steve.conf ../steve.sh > $STEVE_OUTPUT 2>&1
bash
d_bash_18044
--- +++ @@ -2,7 +2,7 @@ # Grab the MOCK build git checkout deploy-to-mock -git pull +git pull --rebase # Push the MOCK build to STAGE git push --force origin HEAD:deploy-to-stage
bash
d_bash_18045
--- +++ @@ -12,4 +12,4 @@ sbt centaur/it:compile CP=$(sbt "export centaur/it:dependencyClasspath" --error) -java -cp $CP org.scalatest.tools.Runner -R target/scala-2.12/it-classes -oD -PS${THREADS} +java -cp $CP org.scalatest.tools.Runner -R centaur/target/scala-2.12/it-classes -oD -PS${THREADS}
bash
d_bash_18046
--- +++ @@ -1,2 +1,5 @@ +kubectl delete -f https://raw.githubusercontent.com/openebs/openebs/v0.5/k8s/openebs-operator.yaml +kubectl delete -f https://raw.githubusercontent.com/openebs/openebs/v0.5/k8s/openebs-storageclasses.yaml +sleep 10 kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/v0.6/k8s/o...
bash
d_bash_18047
--- +++ @@ -6,7 +6,7 @@ } find_scripts () { - find . -perm -u=x -type f | grep --invert-match '\.git' + find . -type f \( -name '*.sh' -o -perm -u=x \) | grep --invert-match '\.git' } if ! have shellcheck && have brew
bash
d_bash_18048
--- +++ @@ -1,4 +1,5 @@ #!/bin/bash +mkdir -p ~/.vim/{backups,swaps,undo} cd "$(dirname "$0")" git pull read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1
bash
d_bash_18049
--- +++ @@ -16,8 +16,8 @@ find ../.. -name "*.o" -exec ar rcs fuzz_lib.a {} \; $CXX $CXXFLAGS -DVALIJSON_USE_EXCEPTIONS=1 \ - -I/src/valijson/thirdparty/rapidjson-1.1.0/include \ - -I/src/valijson/thirdparty/rapidjson-1.1.0/include/rapidjson \ + -I/src/valijson/thirdparty/rapidjson-48fbd8c/include \ + -I/src/vali...
bash
d_bash_18050
--- +++ @@ -2,4 +2,5 @@ git add --force _site git commit -m "Release `date '+%Y-%m-%d %H:%M'`" -git subtree push --squash --prefix _site/ origin gh-pages +git subtree split --prefix _site -b gh-pages +git push -f origin gh-pages:gh-pages
bash
d_bash_18051
--- +++ @@ -10,7 +10,7 @@ fi echo -e "Run acceptance test using PhantomJs on Travis server\n" - mvn -DseleniumBrowser=chrome "-DseleniumJsonCapabilities={'args':['headless', 'disable-gpu']}" test + mvn -DseleniumBrowser=chrome "-DseleniumJsonProfile={'args':['headless', 'disable-gpu']}" test ./travis_p...
bash
d_bash_18052
--- +++ @@ -3,6 +3,10 @@ # NOTE: Remove all rrds which might be around from an earlier run rm -rf /var/lib/ganglia/rrds/* rm -rf /mnt/ganglia/rrds/* + +# Symlink /var/lib/ganglia/rrds to /mnt/ganglia/rrds +rmdir /var/lib/ganglia/rrds +ln -s /mnt/ganglia/rrds /var/lib/ganglia/rrds # Make sure rrd storage directo...
bash
d_bash_18053
--- +++ @@ -10,7 +10,6 @@ gem uninstall -aIx spring -bundle update bundle install --without=development rake spec
bash
d_bash_18054
--- +++ @@ -1,15 +1,13 @@ #!/bin/bash -mono .nuget/NuGet.exe install Paket3 -OutputDirectory packages -Prerelease -ExcludeVersion -exit_code=$? -if [ $exit_code -ne 0 ]; then - exit $exit_code +mono .nuget/NuGet.exe install Paket -OutputDirectory packages -Prerelease -ExcludeVersion +if [ $? -ne 0 ]; then + exit 1...
bash
d_bash_18055
--- +++ @@ -3,10 +3,10 @@ local tdl_command=$(which hali) local tdl_db=${HOME}/Dropbox/todo.bin -local tdl_personal_db=${HOME}/Dropbox/personal.bin -local tdl_work_db=${HOME}/Dropbox/work.bin -local tdl_generic_db=${HOME}/Dropbox/todo.bin -local tdl_todo_list_db=${HOME}/Dropbox/todo-list.bin +local tdl_personal_d...
bash
d_bash_18056
--- +++ @@ -4,5 +4,5 @@ cat "$f" | tr -d '\n' > "$TMPFILE" mv "$TMPFILE" "$f" done -rm "$TMPFILE" +[ -e "$TMPFILE" ] && rm "$TMPFILE"
bash
d_bash_18057
--- +++ @@ -35,6 +35,8 @@ brew cask install firefox brew cask install skype brew cask install gpgtools +brew cask install flash +brew cask install radiant-player # Veracrypt must be installed manually brew cask install osxfuse brew cask install sshfs
bash
d_bash_18058
--- +++ @@ -13,7 +13,7 @@ read -p "Do release or test? " rt case $rt in [Rr]* ) python3 -m twine upload dist/*.tar.gz --sign; rm -rfv pynmrstar pynmrstar.egg-info; break;; - [Tt]* ) mkdir pynmrstar; cp bmrb.py pynmrstar/__init__.py; cp -rv reference_files pynmrstar; touch pynmrstar/.nocompil...
bash
d_bash_18059
--- +++ @@ -3,3 +3,8 @@ # Install a global node.js nave usemain stable + +# Install global deps +npm install -g jshint +npm install -g grunt +npm install -g gulp
bash
d_bash_18060
--- +++ @@ -4,13 +4,13 @@ # mess has been left in the directory thanks to autoconf, automake, and their # friends. -if test -f Makefile; then - make distclean - rm -f Makefile -fi - if test -f Makefile.plain; then + if test -f Makefile; then + make distclean + fi mv Makefile.plain Makefile +else + make clean ...
bash
d_bash_18061
--- +++ @@ -1,5 +1,5 @@ #/bin/bash -ttmp32gmeStorage=~/.ttmp32gme +ttmp32gmeStorage=/var/lib/ttmp32gme mkdir -p ${ttmp32gmeStorage} docker run -d \
bash
d_bash_18062
--- +++ @@ -17,6 +17,7 @@ cat build/ss.min.js > mods/js/ss.min.js cat build/ss.min.js > chrome/js/ss.min.js +mkdir -p chrome/css # in case the dir doesn't exist. yuicompressor -o mods/css/style.min.css mods/css/style.css cat mods/css/style.min.css > chrome/css/style.min.css
bash
d_bash_18063
--- +++ @@ -1,11 +1,13 @@ _asdf_tool kubectl 1.18.2 -_asdf_tool minikube 1.10.0 +_asdf_tool minikube 1.10.1 _asdf_tool skaffold 1.9.1 _asdf_tool fluxctl 1.19.0 _asdf_tool eksctl 0.18.0 +_asdf_tool helm 3.2.1 _omz_plugin kubectl _omz_plugin minikube +_omz_plugin helm source <(skaffold completion zsh) sourc...
bash
d_bash_18064
--- +++ @@ -12,5 +12,5 @@ rm -f $SSH_USER_HOME/.prlctl_version echo "==> Removing packages needed for building guest tools" - yum -y remove gcc cpp libmpc mpfr kernel-devel kernel-headers perl + yum -y remove gcc cpp libmpc mpfr kernel-devel kernel-headers perl || echo "yum exit code $? is suppresse...
bash
d_bash_18065
--- +++ @@ -53,4 +53,4 @@ shfmt -i 4 -bn -ci -d . # Checking minimum python version -vermin -t=3.6 --violations ./pwndbg/ +vermin -q -t=3.6 --violations ./pwndbg/
bash
d_bash_18066
--- +++ @@ -4,4 +4,5 @@ USER= PASSWORD= mysql --local-infile -D $DATABASE -u $USER -p$PASSWORD -h 127.0.0.1 --execute="LOAD DATA LOCAL INFILE '$TABLE.csv' INTO TABLE $TABLE FIELDS TERMINATED BY ',' ENCLOSED BY '\"' LINES TERMINATED BY '\n' IGNORE 1 LINES; SHOW WARNINGS" > $TABLE.output +dos2unix $TABLE.csv cat $T...
bash
d_bash_18067
--- +++ @@ -2,10 +2,7 @@ # elasticsearch integration test for Socorro -if [ -z "$ES_HOST" ] -then - ES_HOST="localhost" -fi +elasticsearch_urls=${elasticsearch_urls:-"http://localhost:9200"} echo -n "INFO: setting up environment..." . socorro-virtualenv/bin/activate >> setup.log 2>&1 @@ -17,4 +14,4 @@ echo...
bash
d_bash_18068
--- +++ @@ -3,4 +3,6 @@ alias creep="say -v whisper" alias blink1="blink1-tool" alias blink="blink1-tool" +alias dcr="docker-compose run" +alias dcrw="docker-compose run web" alias docktest="docker-compose run web rspec"
bash
d_bash_18069
--- +++ @@ -5,9 +5,10 @@ name="$(jq -r .source.name source/data.json)" version="$(jq -r .version.ref source/data.json)" metadata_file_path="builds/binary-builds-new/$name/$version-cflinuxfs3.json" -filename="binary-builds-new/$name/$version-$STACK_ID.json" -cp "${metadata_file_path}" "${filename}" +git_filename="b...
bash
d_bash_18070
--- +++ @@ -13,3 +13,4 @@ test -s "${HOME}/.yadr/bin/aws_zsh_completer.sh" && source "$HOME/.yadr/bin/aws_zsh_completer.sh" export JAVA_HOME=$(/usr/libexec/java_home -v1.8) +export PATH=$PATH:$JAVA_HOME/bin
bash
d_bash_18071
--- +++ @@ -34,7 +34,7 @@ rm "$out" > /dev/null 2>&1 || true mkdir -p "$(dirname $out)" touch "$out" -for file in ${output}/*; do +for file in $(find "${output}" -type f | sort); do cat "$file" >> "$out" echo "---" >> "$out" done
bash
d_bash_18072
--- +++ @@ -10,7 +10,7 @@ fi # Get the directory of this script, for paths to python files -DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) +DIR="$(dirname "$(readlink -f "$0")")" # Specify exact python location - uses 2.7 and doesn't rely on path PYTHON_BIN="/usr/local/bin/python"
bash
d_bash_18073
--- +++ @@ -8,7 +8,12 @@ if ! grep -q agent_private_key_path "$HOME_DIR/cfy_config_aws.yml"; then echo "Use manager key for aws" echo "agent_keypair_name: '$KEYPAIR_NAME'" >> "$HOME_DIR/cfy_config_aws.yml" - echo "agent_private_key_path: '$HOME_DIR/cfy_keys/$SSH_KEY_FILENAME'" >> "$HOME_DIR/cfy_config_aws.yml...
bash
d_bash_18074
--- +++ @@ -5,3 +5,4 @@ alias fix_drupal_perms='find . -type d -name files -exec chmod 777 {} \;' alias updatedb='/usr/libexec/locate.updatedb' alias dr='drush' +alias vim='/usr/local/bin/vim'
bash
d_bash_18075
--- +++ @@ -1,12 +1,8 @@ sudo apt-get update -sudo apt-get install -y python-pip git +sudo apt-get install -y python-pip -sudo pip install Jinja2 - -# sudo pip install azure -git clone https://github.com/Azure/azure-sdk-for-python -cd azure-sdk-for-python; git checkout v1.0.3; cd .. -python ./azure-sdk-for-python/...
bash
d_bash_18076
--- +++ @@ -1,4 +1,5 @@ #!/usr/bin/env bash set -e +bash $PWD/scripts/util-local-npm-install.sh bash $PWD/scripts/001-docker-compose.sh
bash
d_bash_18077
--- +++ @@ -2,9 +2,9 @@ /usr/local/bin/stolonboot -sentinels 1 -rpc 1 -if [ $(kubectl get nodes -l stolon-keeper=yes -o name | wc -l) -ge 3 ] +if [ $(/opt/bin/kubectl get nodes -l stolon-keeper=yes -o name | wc -l) -ge 3 ] then - kubectl scale --replicas=3 deployment stolon-sentinel + /opt/bin/kubectl sca...
bash
d_bash_18078
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -eux if [ -z "$(which etcd)" ]; then - ETCD_VERSION=3.0.6 + ETCD_VERSION=3.1.3 case `uname -s` in Darwin) OS=darwin
bash
d_bash_18079
--- +++ @@ -18,11 +18,16 @@ } wait_for_line () { + exit_code=1 while read line do - echo "$line" | grep -q "$1" && break + echo "$line" | grep -q "$1" && exit_code=0 && break done < "$2" # Read the fifo for ever otherwise process would block cat "$2" >/dev/null & + if ...
bash
d_bash_18080
--- +++ @@ -16,3 +16,9 @@ perl -pi -e 's/^AllowTcpForwarding no//' /etc/ssh/sshd_config perl -pi -e 's/^PermitTunnel no//' /etc/ssh/sshd_config perl -pi -e 's/^MaxSessions \d+//' /etc/ssh/sshd_config + +# disable password expiration +for uid in root vagrant +do + chage -I -1 -E -1 -m 0 -M -1 $uid +done
bash
d_bash_18081
--- +++ @@ -19,3 +19,11 @@ mkdir $out || exit 1 mv $dirname/* $out/ || exit 1 + +# remove crap in the root directory +for file in $out/* +do + if test -f $file ; then + rm $file + fi +done
bash
d_bash_18082
--- +++ @@ -20,5 +20,6 @@ rm -rf docs/* cp -r docs-source/book/_book/* docs/ rm docs/dependencies.md # Useless file getting copied +git add docs echo "Success!"
bash
d_bash_18083
--- +++ @@ -1,3 +1,6 @@ +# Get the lastest quest +quest update + # Stop all PE processes to free up memory for s in `find /etc/init.d/ -name pe* -type f -printf "%f\n"` do @@ -9,3 +12,12 @@ rm -y /root/puppet-enterprise rm -rf /usr/src/installer +# Remove packages PE will regenerate agent installer +rm -rf /op...
bash
d_bash_18084
--- +++ @@ -11,17 +11,12 @@ echo SKIP fi -echo -n "Wait until database is ready..." +# Wait to avoid "panic: Failed to open sql connection pq: the database system is starting up" +echo "Wait until database is ready..." until nc -z $PG_PORT_5432_TCP_ADDR $PG_PORT_5432_TCP_PORT do - echo -n . sleep 1 ...
bash
d_bash_18085
--- +++ @@ -2,6 +2,6 @@ sudo curl -O https://downloads.dcos.io/dcos/stable/dcos_generate_config.sh -sudo bash dcos_generate_config.sh --web +sudo bash dcos_generate_config.sh --web -v exit 0
bash
d_bash_18086
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -GO_WORKSPACE="$GOPATH/src/github.com/anthonynsimon/parrot" +GO_WORKSPACE="$GOPATH/src/github.com/parrot-translate/parrot" OUTPUT_DIR="$(pwd)/dist" mkdir -p $OUTPUT_DIR && \
bash
d_bash_18087
--- +++ @@ -5,7 +5,7 @@ #!/bin/bash function add_to_jail { - first_path=$(which $1) + first_path=$1 deps=$(ldd $first_path | grep -oh '/.* ') cloned="$first_path $deps" @@ -19,16 +19,18 @@ OPTIND=1 output_dir="./jail" -while getopts "o:v:" opt; do ...
bash
d_bash_18088
--- +++ @@ -1,2 +1,4 @@ #!/usr/bin/env bash -erb $(dirname $0)/test/stream_expectations.c.erb > $(dirname $0)/test/stream_expectations.c +erb $(dirname $0)/test/stream_expectations.c.erb > \ + $(dirname $0)/test/stream_expectations.c +clang-format -style=file -i $(dirname $0)/test/stream_expectations.c
bash
d_bash_18089
--- +++ @@ -18,6 +18,7 @@ # git alias ghm='[ ! -z `git rev-parse --show-cdup` ] && cd `git rev-parse --show-cdup || pwd`' +alias vm='vim `git diff --name-only`' # Bundler alias b="bundle"
bash
d_bash_18090
--- +++ @@ -30,6 +30,6 @@ -DUSE_SYSTEM_ZLIB=ON \ .. make -j2 - ./avogadrolibs/bin/AvogadroTests - ./avogadrolibs/bin/AvogadroIOTests + cd avogadrolibs + xvfb-run ctest --output-on-failure fi
bash
d_bash_18091
--- +++ @@ -21,16 +21,18 @@ fi . ${venv_wrapper} -rmvirtualenv ${venv} || true -mkvirtualenv -p `which python${pyversion}` ${venv} || true +workon ${venv} || mkvirtualenv -p `which python${pyversion}` ${venv} || true # install ptyprocess cd $here/../../ptyprocess python setup.py install +# install all test...
bash
d_bash_18092
--- +++ @@ -14,7 +14,9 @@ git fetch --unshallow # Push any changes that have occurred -git subtree push --prefix="$SUBTREE_PREFIX" "$SUBTREE_DEST_REPO" "$SUBTREE_DEST_BRANCH" +git branch ansible-role-subtree +git filter-branch --subdirectory-filter "$SUBTREE_PREFIX" ansible-role-subtree +git push "$SUBTREE_DEST_R...
bash
d_bash_18093
--- +++ @@ -18,3 +18,6 @@ envdir /etc/nyc-trees.d/env /opt/app/manage.py migrate # Load block face data envdir /etc/nyc-trees.d/env /opt/app/manage.py loaddata $DIR/../src/nyc_trees/apps/survey/fixtures/blockface.json + +# Create training flatpages +envdir /etc/nyc-trees.d/env /opt/app/manage.py make_training_flat...
bash
d_bash_18094
--- +++ @@ -8,6 +8,8 @@ CMAKE_G_A_FLAGS=('-G' 'Visual Studio 14 2015' '-A' 'x64') ;; *) + # Work around a bug in older versions of bash. :/ + set +u CMAKE_G_A_FLAGS=() ;; esac
bash
d_bash_18095
--- +++ @@ -4,6 +4,8 @@ cd / git clone https://$BITBUCKET_OAUTH_TOKEN:x-oauth-basic@bitbucket.org/tocmessenger/toc-staging + +cd /toc-staging/ if [ "$DRONE_BRANCH" == "master" ]; then
bash
d_bash_18096
--- +++ @@ -2,6 +2,11 @@ set -euo pipefail brew update -v + +# These two commands are only needed on 10.12: +rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask +brew uninstall --force postgis cgal sfcgal + brew install boost || brew upgrade boost brew install perl || brew upgrade perl brew...
bash
d_bash_18097
--- +++ @@ -5,6 +5,8 @@ # Load OMZ first so that we can overwrite. source $zshrc_dir/ohmy.zsh +# See https://github.com/zsh-users for more handy utilities. + source $rc_dir/sh/loader.sh # Load everything else.
bash
d_bash_18098
--- +++ @@ -15,7 +15,7 @@ echo "Setting up travis to run on boot" if grep travis-worker /etc/rc.local > /dev/null; then - sed -ie 's/^.*travis-worker.*$/( sudo -u travis sh -c ". \/etc\/default\/travis-worker \&\& travis-worker" \& ) \&/' /etc/rc.local + sed -ie 's/^.*travis-worker.*$/( sudo -u travis sh -c "umas...
bash
d_bash_18099
--- +++ @@ -20,7 +20,7 @@ mkdir /var/repository/repos/deb/indy-sdk mkdir /var/repository/repos/deb/indy-sdk/$version-$number cd /var/repository/repos/deb/indy-sdk/$version-$number -put -r /var/lib/jenkins/workspace/indy-sdk-dev_"$version"_amd64.deb -put -r /var/lib/jenkins/workspace/indy-sdk_"$version"_amd64.deb +...
bash