document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_19600
--- +++ @@ -1,5 +1,27 @@ #!/bin/bash set -e + +prefix='DEF_' +file='/etc/kamailio/kamailio-local.cfg' +cat > $file +printenv | grep "^$prefix" | while read -r env; do + k=${env%=*} + v=${env#*=} + + case ${v,,} in + true|yes|on) v=1 ;; + false|no|off) v=0 ;; + esac + + def="#!define ${k#$prefix}" + cas...
bash
d_bash_19601
--- +++ @@ -6,14 +6,9 @@ yarn build mv dist dist_pub -git status -git branch -r - # Clean up for release git checkout gh-pages git rm -r --ignore-unmatch beta - -echo $COMMIT_MSG # Move files to root mv dist_pub beta @@ -21,7 +16,7 @@ # publish -git commit -m "$COMMIT_MSG" +git commit --allow-empty -m...
bash
d_bash_19602
--- +++ @@ -15,5 +15,5 @@ # run sudo -E -u nats /gnatsd -m 8222 $NATS_EXTRA --user $NATS_USER --pass $NATS_PASS \ - --cluster=nats://0.0.0.0:6222 \ - --routes=nats-route://$NATS_USER:$NATS_PASS@$NATS_K8S_SVC:6222 + -cluster nats://0.0.0.0:6222 \ + -routes nats://$NATS_USER:$NATS_PASS@$NATS_K8S_SVC:622...
bash
d_bash_19603
--- +++ @@ -27,3 +27,14 @@ LOG ERROR 'string comparation is bad: [ "a" < "aa" ]' fi } + +# CAVEATS: +# BASH 3 has a bug: $'\x01' in array is treated as $'\x01\x01'. +test::soh_in_array() { + local values=($'\x01') + local expected='01' + if [ "${expected}" != "$(php::bin2hex "$(php::implode '' values)...
bash
d_bash_19604
--- +++ @@ -16,13 +16,13 @@ cat <<EOF > message.json { "Subject": { - "Data": "Certificates not valid or about to expire in ${DEPLOY_ENV}" + "Data": "Alert: Certificates not valid or about to expire in ${DEPLOY_ENV}" }, "Body": { "Html": { - "Data": "There are certificates <b>${DEPLOY_ENV...
bash
d_bash_19605
--- +++ @@ -1 +1,9 @@ -ln -fs ~/Projects/dotfiles/git/gitconfig ~/.gitconfig +#!/bin/bash + +# Set the current path into SCRIPT_PATH +pushd `dirname $0` > /dev/null +SCRIPT_PATH=`pwd` +popd > /dev/null + +# Create symbolic link for gitconfig. +ln -fs $SCRIPT_PATH/git/gitconfig ~/.gitconfig
bash
d_bash_19606
--- +++ @@ -1,8 +1,10 @@ #!/usr/bin/env bash -rm -rf docbuild && - git clone https://github.com/prest/doc-template docbuild && - rm -rf docbuild/content && - cp -rf docs docbuild/content && - mv docbuild/content/assets docbuild/static/content && - cd docbuild && - hugo $@ + +rm -rf docbuild && \ + ...
bash
d_bash_19607
--- +++ @@ -20,5 +20,9 @@ fi done +# Exclude gtkdnd-quartz.c. Function descriptions in gtkdnd-quartz.c can +# replace better descriptions in gtkdnd.c, if gtkdnd-quartz.c is processed. +PARAMS="$PARAMS -x $PREFIX/gtk+/gtk/gtkdnd-quartz.c" + DOCEXTRACT_TO_XML_PY="$JHBUILD_SOURCES/glibmm/tools/defs_gen/docextract...
bash
d_bash_19608
--- +++ @@ -5,9 +5,9 @@ echo 'Installing mp4_automator.' # Install sickbeard_mp4_automator prerequesites. -opkg remove python-light --force-removal-of-dependent-packages -opkg remove python-base --force-removal-of-dependent-packages -opkg install python-dev python-pip +# opkg remove python-light --force-remove --...
bash
d_bash_19609
--- +++ @@ -14,6 +14,6 @@ deploy/build-test.sh \ && influx-grafana/grafana/build-test.sh \ && influx-grafana/influxdb/build-test.sh \ -&& pushd integration \ -&& godep go test -a -v --vmodule=*=1 --timeout=30m --namespace=$TEST_NAMESPACE --kube_versions=$SUPPORTED_KUBE_VERSIONS github.com/GoogleCloudPlatform/heaps...
bash
d_bash_19610
--- +++ @@ -8,8 +8,8 @@ if [ ! -e $DEPS_FILE ]; then - for I in android-26 \ - build-tools-26.0.2 \ + for I in android-28 \ + build-tools-28.0.3 \ tool \ extra-android-m2repository \ extra-android-support \
bash
d_bash_19611
--- +++ @@ -13,7 +13,7 @@ SCRIPT_PATH="$(dirname $0)" -RUN_PARAMS="--url https://client.testnet.libra.org/v1 --waypoint_url https://developers.libra.org/testnet_waypoint.txt --chain-id TESTNET" +RUN_PARAMS="--url https://testnet.libra.org/v1 --faucet-url https://testnet.libra.org/mint --waypoint_url https://test...
bash
d_bash_19612
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh -if ! grep -qs 'deb http' /etc/apt/sources.list.d/ansible-ubuntu-ansible-xenial.list; then +if ! grep -qs 'deb http' /etc/apt/sources.list.d/ansible-ubuntu-ansible-*.list; then sudo apt-add-repository -y ppa:ansible/ansible fi
bash
d_bash_19613
--- +++ @@ -40,7 +40,7 @@ # Enable video playback in Opera sudo ln -sf /usr/lib64/chromium-browser /usr/lib -v - sudo ln -sf /etc/alternatives/libffmpeg.so /usr/lib64/libffmpeg.so + sudo ln -sf /etc/alternatives/libffmpeg.so /usr/lib64/opera/libffmpeg.so if ask "Enable Graphic Mode?"; t...
bash
d_bash_19614
--- +++ @@ -12,7 +12,7 @@ [[ "$(type -P lesspipe.sh)" ]] && eval "$(lesspipe.sh)" # Make using todo.sh a little easier -alias t="todo.sh -@" +alias todo="todo.sh -@" alias ta="t a" alias td="t do" alias tq="q ~/Dropbox/todo/todo.txt"
bash
d_bash_19615
--- +++ @@ -18,6 +18,7 @@ if [ "${MATRIX_TYPE}" = "python" ]; then coverage run manage.py test --noinput --failfast --traceback --verbosity=2 --testrunner=$TESTRUNNER elif [ "${MATRIX_TYPE}" = "javascript" ]; then + psql -c 'create database commcarehq' -U postgres python manage.py migrate --noinput ...
bash
d_bash_19616
--- +++ @@ -11,7 +11,7 @@ file_suffix="$(eval echo \$$#|sed s?/?_?g)" pylint_output="$(pylint \ - --msg-template='{msg_id}:{line:3d},{column}: {obj}: {msg}' \ + --msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}' \ -r n --disable=C,R --rcfile=/dev/null \ --dummy-variables-rgx=_ \ ...
bash
d_bash_19617
--- +++ @@ -11,10 +11,7 @@ # If the tag matches the source version then we can assume this is build is # for a release. function is_travis_release_env() { - version="$(make version)" - echo "TRAVIS_TAG=$TRAVIS_TAG" - echo "VERSION=$version" - if [ "$TRAVIS_TAG" = $version ]; then + if [ "$TRAVIS_TAG" = "v$(ma...
bash
d_bash_19618
--- +++ @@ -2,6 +2,6 @@ set -eu -export MEMOBCDIR=/Volumes/dml/hrzucker/memoBC/ +export MEMOBCDIR=/Volumes/dml/hrzucker/memobc/ set +eu
bash
d_bash_19619
--- +++ @@ -4,14 +4,20 @@ # This source code is licensed under the MIT license found in the LICENSE file # in the root directory of this source tree. -set -xeuo pipefail +set -euo pipefail if [ `adb devices | wc -l` -lt "3" ] then - echo "No devices are connected. Make sure emulator is booted with flipper ...
bash
d_bash_19620
--- +++ @@ -14,8 +14,9 @@ done | grep "is a member" | cut -d " " -f 1 } +# Cleaner form of: +# http://superuser.com/questions/51838/recursive-chmod-rw-for-files-rwx-for-directories function fixperms { find "$1" -type f -print -exec chmod 644 {} \; find "$1" -type d -print -exec chmod 755 {} \; } -
bash
d_bash_19621
--- +++ @@ -14,6 +14,7 @@ nibtool -d $langdir/$nibname.strings $primarydir/$nibfile -W $translated cp $translated/*.nib $langdir/$nibfile rm -rf $translated $langdir/*~.nib + touch $langdir/$nibfile echo Updated $langdir/$nibfile else cp $primarydir/$nibfile/*.nib $langdir/$nibfile
bash
d_bash_19622
--- +++ @@ -2,6 +2,7 @@ ## Setup GPG echo Installing .gnupg +chmod go-rwx gnupg ln -sf $(pwd)/gnupg ~/.gnupg ## Install each _-prefixed file
bash
d_bash_19623
--- +++ @@ -1,6 +1,6 @@ ## Load smart urls if available for d in $fpath; do - if [[ -e "$d/url-quote-magic"]]; then + if [[ -e "$d/url-quote-magic" ]]; then autoload -U url-quote-magic zle -N self-insert url-quote-magic fi
bash
d_bash_19624
--- +++ @@ -6,3 +6,13 @@ brew install cmake brew install eigen brew install libccd + +# Octomap +git clone https://github.com/OctoMap/octomap +cd octomap +git checkout tags/v1.8.0 +mkdir build +cd build +cmake .. +make +sudo make install
bash
d_bash_19625
--- +++ @@ -7,7 +7,7 @@ trap cleanup EXIT # Assume bitcoind built elsewhere and coied by Jenkins Copy Artifact plugin -BTCD=../copied-artifacts/src/bitcoind +BTCD=./copied-artifacts/src/bitcoind DATADIR=$HOME/.bitcoin chmod +x $BTCD
bash
d_bash_19626
--- +++ @@ -9,3 +9,4 @@ alias bx='be' alias show="ps auxww | grep -v grep | grep " alias vim=nvim +alias fixow='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;echo "Open With has been ...
bash
d_bash_19627
--- +++ @@ -3,7 +3,7 @@ mkdir build # Use an array to preserve order, pretty darn important FILES=("javascripts/InputHandler.js" "javascripts/Engine.js" "javascripts/LaserShot.js" "javascripts/Sprite.js" "javascripts/Player.js" "javascripts/Enemy.js" "javascripts/Collision.js" "javascripts/SquareInvaders.js" "java...
bash
d_bash_19628
--- +++ @@ -10,10 +10,12 @@ set -o pipefail # Create Salt Links for States and Pillar +# and link for Ansible # mkdir -p /srv ln -sf "$(pwd)/salt/roots" /srv/salt ln -sf "$(pwd)/salt/pillar" /srv/pillar +ln -sf "$(pwd)/ansible" /srv/ansible # Apply States #
bash
d_bash_19629
--- +++ @@ -2,3 +2,8 @@ # Install missing packages zypper install -y kernel-default-devel gcc + +# this is needed for the vmware tools install to complete +if [[ "$PACKER_BUILDER_TYPE" == vmware-iso ]]; then + zypper install -y insserv-compat +fi
bash
d_bash_19630
--- +++ @@ -14,7 +14,8 @@ alias git_part="sensible-browser \"http://stackoverflow.com/questions/1085162/commit-only-part-of-a-file-in-git\";" #APT -alias apt="sudo apt-get" +alias apt-get="sudo apt-get" +alias aptg="sudo apt-get install" #alias to open current directory in file browser alias op="nautilus .;"
bash
d_bash_19631
--- +++ @@ -4,7 +4,7 @@ apt-get update apt-get install -f -y apt-get upgrade -y -apt-get install -y buendia-server buendia-site-test buendia-dashboard +apt-get install -y buendia-server buendia-site-test-integration # Set hostname sed -i -e "s/$(hostname)/buendia-testing/g" /etc/hosts /etc/hostname
bash
d_bash_19632
--- +++ @@ -18,3 +18,15 @@ --service-account ${K_SERVICE}@${GOOGLE_CLOUD_PROJECT}.iam.gserviceaccount.com echo "Post-create configuration complete ✨" + +echo "" +echo "" +echo "Unicodex is now deployed to ${SERVICE_URL}" +echo "" +echo "To login into the Django admin: " +echo " * go to ${SERVICE_URL}/admin" ...
bash
d_bash_19633
--- +++ @@ -4,6 +4,7 @@ chmod +x configure install-sh ./configure --prefix="$PREFIX" \ + --enable-rpath \ --disable-samples \ --disable-extras \ --disable-layout \
bash
d_bash_19634
--- +++ @@ -4,3 +4,6 @@ # Remove traces of mac address from network configuration sed -i /HWADDR/d /etc/sysconfig/network-scripts/ifcfg-eth0 rm -f /etc/udev/rules.d/70-persistent-net.rules + +# Since there is no MAC address anymore, we need to identify the card +echo 'DEVICE="eth0"' >> /etc/sysconfig/network-scrip...
bash
d_bash_19635
--- +++ @@ -2,10 +2,5 @@ zstyle ':autocomplete:*' groups always zstyle ':autocomplete:tab:*' completion cycle zstyle ':autocomplete:*' magic off +zstyle ':autocomplete:*' fuzzy-search off -function precmd_remove_up_down_bindkey() { - bindkey '^[OA' up-line-or-history - bindkey '^[OB' down-line-or-history -} - ...
bash
d_bash_19636
--- +++ @@ -6,6 +6,8 @@ set -eou pipefail source utils.sh + +base_snapshot_name="base-install" # Download MSI file if it doesn't exist in the current directory. msi_file="puppet-agent-$PUPPET_AGENT_VERSION-x64.msi" @@ -23,5 +25,8 @@ wget $msi_download fi +echo "Restoring base-install snapshot..." +vag...
bash
d_bash_19637
--- +++ @@ -1,2 +1,2 @@ fswatch -o less | xargs -n1 -I{} ./buildless.sh & -browser-sync start --proxy "10.100.10.10" --files "ckanext/apicatalog_ui/fanstatic/main.css" & +browser-sync start --https --proxy "https://10.100.10.10" --files "ckanext/apicatalog_ui/fanstatic/main.css" &
bash
d_bash_19638
--- +++ @@ -6,8 +6,19 @@ if which xmodmap > /dev/null 2>&1; then xmodmap -e 'keycode 108 = Hangul' xmodmap -e 'keycode 105 = Hangul_Hanja' - xmodmap -e 'remove mod1 = Hangul' - xmodmap -e 'remove control = Hangul_Hanja' + xmodmap -pm | while read mod_key rest; do + case "$mod_key" in + ...
bash
d_bash_19639
--- +++ @@ -3,7 +3,7 @@ ########################### # Path of the OpenCog repository -opencog_repo_path=/home/$USER/OpenCog/opencog +opencog_repo_path="$(readlink -f .)/../../../.." build_dir_name=build #################################
bash
d_bash_19640
--- +++ @@ -5,6 +5,10 @@ # file COPYING or http://www.opensource.org/licenses/mit-license.php. export LC_ALL=C + +travis_retry sudo apt update && sudo apt install -y clang-format-9 +sudo update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-9 ) 100 +sudo update-altern...
bash
d_bash_19641
--- +++ @@ -5,6 +5,7 @@ npm install semver if node -e "process.exit(require('semver').lt(process.argv[1], '1.3.7') ? 0 : 1)" $(npm -v); then - npm install -g npm@'>= 1.3.7' + npm install -g npm@2 + npm install -g npm fi npm uninstall semver
bash
d_bash_19642
--- +++ @@ -1,11 +1,11 @@ #!/bin/bash # Deploy to via pushing to a remote git repository. # -# Add the following environment variables to your project configuration and add -# the public SSH key from your projects General settings page to -# https://dashboard.aptible.com/settings/ssh -# * REMOTE_REPOSITORY -# * RE...
bash
d_bash_19643
--- +++ @@ -7,7 +7,7 @@ cmake .. -G"Unix Makefiles" \ -DCMAKE_INSTALL_PREFIX=$PREFIX \ -DCMAKE_TOOLCHAIN_FILE=mingw64-toolchain.cmake \ - -DCMAKE_CACHEFILE_DIR=$BASE_DIR/$MODULE/pbuild \ + -DCMAKE_CACHEFILE_DIR=$BASE_DIR/source/$MODULE/pbuild \ || exit 1; make && \ cp libportmidi.dll libpo...
bash
d_bash_19644
--- +++ @@ -19,7 +19,7 @@ } # configure docker creds -retry 3 docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" +retry 3 docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" # docker tag and push git branch to dockerhub if [ -n "$1" ]; then
bash
d_bash_19645
--- +++ @@ -16,7 +16,7 @@ # Function to STOP # stop_service() { - sudo su -c "/usr/bin/mongod -f --shutdown"; + sudo su -c "/usr/bin/mongod -f /etc/mongod.conf --shutdown"; sudo su -c "rm -rf /var/lib/mongodb/*"; }
bash
d_bash_19646
--- +++ @@ -4,7 +4,7 @@ code --install-extension christian-kohler.path-intellisense code --install-extension dbaeumer.vscode-eslint code --install-extension donjayamanne.githistory -code --install-extension gerane.Theme-FlatlandMonokai +code --install-extension ms-vscode.Theme-TomorrowKit code --install-extension...
bash
d_bash_19647
--- +++ @@ -1,15 +1,13 @@ -# Install .NET Core (see https://www.microsoft.com/net/core#ubuntu) +# Install .NET Core # https://www.microsoft.com/net/download/linux-package-manager/ubuntu14-04/sdk-current -# Add the dotnet apt-get feed (for .NET Core) -sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager....
bash
d_bash_19648
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e
bash
d_bash_19649
--- +++ @@ -1,5 +1,6 @@ # TERM export TERM='xterm-256color' +export MANPAGER="sh -c 'col -bx | bat -l man -p'" # Bin export PATH="/usr/bin:/usr/sbin:/sbin:/bin":$PATH
bash
d_bash_19650
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -${PYTHON} setup.py install; +${PYTHON} -m pip install -vv .; ${PYTHON} setup.py test;
bash
d_bash_19651
--- +++ @@ -15,4 +15,4 @@ for _ in $(seq 1 10); do test -S ${SOCKET} || sleep 1 done -./fe_test.exe 16 +echo "" | ./fe_test.exe 16
bash
d_bash_19652
--- +++ @@ -13,6 +13,7 @@ " 'client_authentication_must_be_secure' => false, " \ " 'co.auth_ns' => '$CO_AUTH_NS', " \ " 'co.auth_secret' => '$CO_AUTH_SECRET', " \ + " 'agws.data_cache' => 'file', " \ " ); " > /var/www/app/config.php # Make cache folder
bash
d_bash_19653
--- +++ @@ -34,7 +34,7 @@ fi # Validate that .bashrc sources common file -common_str="source \".bash/common.sh\"" +common_str="source ~/.bash/common.sh" if ! grep -Fxq "$common_str" $HOME/.bashrc; then echo "Adding sourcing to a common file to bashrc..." echo "$common_str" >> $HOME/.bashrc
bash
d_bash_19654
--- +++ @@ -10,7 +10,7 @@ # Standard go tooling behavior is to ignore dirs with leading underscors for dir in $(find . -maxdepth 10 -not -path './cmd/*' -not -path './.git*' -not -path '*/_*' -type d); do if ls $dir/*.go &> /dev/null; then - go test -v -coverprofile=profile.out $dir -check.v || fail=1 + go...
bash
d_bash_19655
--- +++ @@ -18,7 +18,7 @@ # Create barebox Linux image rm -rf "${BEAM}.gz" gzip -k -9 "${BEAM}" -mkimage -A arm -O linux -T kernel -a 0x80200000 -e 0x80200000 -n RTEMS -d "${BEAM}.gz" "${BEAM}.zImage" +mkimage.py -A arm -O linux -T kernel -a 0x80200000 -e 0x80200000 -n RTEMS -d "${BEAM}.gz" "${BEAM}.zImage" # R...
bash
d_bash_19656
--- +++ @@ -4,4 +4,5 @@ echo Yes. else echo No. + exit 1 fi
bash
d_bash_19657
--- +++ @@ -1,11 +1,21 @@ #! /bin/bash -GROUP_NAME="nlsq5" +GROUP_NAME="power_analytic" ALL_EXPERIMENTS=" \ - power_model \ - power_model_nl2sol \ + power_model_cobyla \ + power_model_global \ + power_model_local \ " +# power_model_nl2sol_numerical_grads \ +# power_model_numerical_grads \ +# power_mode...
bash
d_bash_19658
--- +++ @@ -2,5 +2,4 @@ set -euo pipefail echo "--- :mac: Preparing installer for macOS Sierra" -sudo SUDO_UID="$UID" SUDO_GID="$GID" \ - prepare_iso/prepare_iso.sh "/Applications/Install macOS Sierra.app" installers +sudo prepare_iso/prepare_iso.sh "/Applications/Install macOS Sierra.app" installers
bash
d_bash_19659
--- +++ @@ -13,8 +13,7 @@ done } -container=`docker ps | awk '/cobbler/ {print $1}'` -docker restart $container +dockerctl restart cobbler sleep 10 copy ./pmanager.py cobbler:/usr/lib/python2.6/site-packages/cobbler/pmanager.py copy ./ubuntu_partition cobbler:/var/lib/cobbler/snippets/ubuntu_partition
bash
d_bash_19660
--- +++ @@ -17,7 +17,7 @@ set -o nounset set -o pipefail -gometalinter --deadline=180s --vendor \ +gometalinter --deadline="${GOMETALINTER_DEADLINE:-180s}" --vendor \ --cyclo-over=50 --dupl-threshold=100 \ --exclude=".*should not use dot imports \(golint\)$" \ --disable-all \
bash
d_bash_19661
--- +++ @@ -8,3 +8,8 @@ # Binding ^[[A/^[[B manually mean up/down works with history-substring-search both before and after zle-line-init bindkey '^[[A' history-substring-search-up bindkey '^[[B' history-substring-search-down + +# Bind up and down keys +zmodload -F zsh/terminfo +p:terminfo +bindkey "${terminfo[kcu...
bash
d_bash_19662
--- +++ @@ -19,7 +19,7 @@ done for v in $DEPLOY_PYTHONS; do - if [ "$TRAVIS_PYTHON_VERSION" = "$v" ]; then + if [ "$PYTHON_VERSION" = "$v" ]; then DEPLOY_VERSION=1 break fi
bash
d_bash_19663
--- +++ @@ -1,4 +1,4 @@ git clone https://github.com/bzamecnik/chord-labels cd chord-labels ./gradlew distZip -unzip build/distribuitions/*.zip +unzip build/distributions/*.zip
bash
d_bash_19664
--- +++ @@ -1,3 +1,3 @@ echo "const char * sketchVersion = \"$(git describe --tags --always)\";" > gitTagVersion.h -~/arduino-1.8.5/arduino --upload test.ino --pref custom_DebugLevel=esp32_info --port /dev/ttyUSB0 +~/arduino-1.8.5/arduino --upload test.ino --pref custom_DebugLevel=esp32_none --port /dev/ttyUSB0 rm ...
bash
d_bash_19665
--- +++ @@ -21,6 +21,9 @@ curl -L https://www.opscode.com/chef/install.sh | bash fi +# Install git +sudo apt-get install -y git + cd $USER_HOME if ! test -d impala-setup; then sudo -u $USER git clone http://github.mtv.cloudera.com/dtsirogiannis/impala-setup.git @@ -30,5 +33,6 @@ sudo -u $USER git pull ...
bash
d_bash_19666
--- +++ @@ -1,5 +1,5 @@ #! /bin/bash -source deploy.vars + IP=`curl -s inet-ip.info` end() {
bash
d_bash_19667
--- +++ @@ -13,7 +13,7 @@ header 'Running script.sh...' run bundle exec rake test:coverage -run bundle exec rake coveralls:push +run bundle exec rake coveralls:push || true # in case of networking errors run bundle exec rake rubocop if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
bash
d_bash_19668
--- +++ @@ -23,9 +23,8 @@ exit 0 fi -curl -s 'http://127.0.0.1:5704/statistics/incoming-calls' \ - | jq -r '"incoming.value \(.count)"' -curl -s 'http://127.0.0.1:5704/statistics/call-attempts' \ - | jq -r '"attempts.value \(.count)"' -curl -s 'http://127.0.0.1:5704/statistics/%5B"cause","SUCCESS"%5D' \ - | ...
bash
d_bash_19669
--- +++ @@ -7,3 +7,4 @@ esac export GIT_AUTHOR_EMAIL="kristian.glass@canonical.com" +export GIT_COMMITTER_EMAIL="kristian.glass@canonical.com"
bash
d_bash_19670
--- +++ @@ -11,7 +11,7 @@ git rm -rf sample cd .. mvn clean verify -cp -R sample/tests/target/spoon-output website/sample +cp -R spoon-sample/tests/target/spoon-output website/sample cd - git add sample
bash
d_bash_19671
--- +++ @@ -1,7 +1,9 @@ @class PropsUtil(){ getProperty(){ - cat ${1} | grep ${2}=.* + if [[ -e ${1} ]]; then + cat ${1} | grep ${2}=.* + fi } $@
bash
d_bash_19672
--- +++ @@ -22,8 +22,8 @@ run: tests - wait - - label: check secrets are exposed correctly - command: env + - label: check keys have been added to ssh-agent + command: ssh-add -l plugins: ${BUILDKITE_REPO}#${commit}: s3_bucket: lox-buildkite-secrets
bash
d_bash_19673
--- +++ @@ -20,3 +20,4 @@ alias p="pod install" alias bp="bundle exec pod install" alias nuke="rm -rf ~/Library/Developer/Xcode/DerivedData" +alias sl="git diff --name-only master | xargs swiftlint lint --path"
bash
d_bash_19674
--- +++ @@ -14,7 +14,7 @@ exit 1 fi -OUT=signature-win.tar.gz +OUT=signature-win.tar.xz SRCDIR=unsigned WORKDIR=./.tmp OUTDIR="${WORKDIR}/out" @@ -30,6 +30,6 @@ done rm -f "${OUT}" -tar -C "${OUTDIR}" -czf "${OUT}" . +tar -C "${OUTDIR}" -cJf "${OUT}" . rm -rf "${WORKDIR}" echo "Created ${OUT}"
bash
d_bash_19675
--- +++ @@ -2,4 +2,4 @@ # Uses nohup to keep the process running even after the ssh session is closed #!/bin/sh npm install -nohup node src/index.js 1> logs/cronbot-stdout.txt 2> logs/cronbot-stderr.txt & +nohup node src/index.js 1> logs/server-stdout.txt 2> logs/server-stderr.txt &
bash
d_bash_19676
--- +++ @@ -9,6 +9,7 @@ --eval '(let ((debug-on-error t) (url-show-status nil) (user-emacs-directory default-directory) + (package-user-dir (expand-file-name (concat "elpa-" emacs-version))) ...
bash
d_bash_19677
--- +++ @@ -20,6 +20,13 @@ do cp -r $f ~/.$(basename $f) done + + links=`find dotfiles -maxdepth 1 -mindepth 1 -type l` + for l in $links + do + dest=`readlink -f $l` + ln -sf .$(basename $dest) ~/.$(basename $l) + done } function sourceIt() {
bash
d_bash_19678
--- +++ @@ -38,7 +38,7 @@ chmod +x $buildFile # Cleanup - if test ! -d $tempFolder; then + if test -d $tempFolder; then rm -rf $tempFolder fi fi
bash
d_bash_19679
--- +++ @@ -11,6 +11,5 @@ echo "preprovisioning stage" ./aws_provision_dysec.rb --start-cluster echo "Provisioning now, passing it on to ansible" -ansible-playbook -i tmp/inventory -u ubuntu site.yaml -f 4 --skip-tags=oozie,yarn,hive -ansible-playbook -i tmp/inventory -u ubuntu site.yaml -f 4 -t oozie,yarn,hive...
bash
d_bash_19680
--- +++ @@ -37,7 +37,10 @@ fi } -# Upgrade all pip packages +# Upgrade any and all outdated pip packages pip-upgrade-all() { - pip install --upgrade $(pip list --outdated | awk '{print $1}') + local pkgs="$(pip list --outdated | awk '{print $1}')" + if [ ! -z $pkgs ]; then + pip install --upgrade $pkgs + fi }
bash
d_bash_19681
--- +++ @@ -14,10 +14,10 @@ echo $pending_version > /etc/running_version } -pending_version=$(etcdctl get current_version) while true do + pending_version=$(etcdctl get current_version) if [ ! -e /etc/running_version ] then do_upgrade $pending_version
bash
d_bash_19682
--- +++ @@ -13,5 +13,9 @@ fi mv package package-last -mv package-tmp/package ./package -rmdir package-tmp +mkdir -p ./package/static +cp ./package-last/static/* ./package/static/ +mv package-tmp/package/static/* ./package/static/ +rmdir package-tmp/package/static/ +mv package-tmp/package/* ./package/ +rm -r packa...
bash
d_bash_19683
--- +++ @@ -6,5 +6,7 @@ ################################################# git checkout master +git pull --rebase main master +git push origin master git branch -D dev git push origin :dev
bash
d_bash_19684
--- +++ @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -if [[ "$OS" = "linux" ]] && [[ "$FORCE_BREW" != "true" ]]; then +if [[ "$OS" = "linux" ]] && [[ "$FORCE_BREW:-" != "true" ]]; then echo_do "apt: Installing AWS utils..." apt_install awscli echo_done
bash
d_bash_19685
--- +++ @@ -17,4 +17,4 @@ EOF # deploy code changes (and implicitly restart the app and any running workers) -git push heroku master +git push --force git@heroku.com:$HEROKU_APP_NAME.git HEAD:refs/heads/master
bash
d_bash_19686
--- +++ @@ -7,4 +7,4 @@ chown -R ubuntu:ubuntu fbctf cd fbctf export HOME=/root -./extra/provision.sh -m dev -s $PWD +./extra/provision.sh -m prod -c self -s $PWD
bash
d_bash_19687
--- +++ @@ -10,7 +10,7 @@ git diff origin/develop | flake8 --diff --ignore=E121,E123,E126,E133,E226,E241,E242,E402,E704 . ;; tox) - docker run -it --rm --name qpanel-tox -v $(pwd):/code n42org/tox bash -c 'cd /code ; tox' + docker run -it --rm --name qpanel-tox -v $(pwd):/...
bash
d_bash_19688
--- +++ @@ -14,6 +14,7 @@ export PYTHON_EGG_CACHE="$XDG_CACHE_HOME"/python-eggs export CCACHE_DIR=$XDG_CACHE_HOME/ccache export NOTMUCH_CONFIG=$XDG_CONFIG_HOME/notmuch/notmuch-config +export LESSHISTFILE=$XDG_DATA_DIR/less/history # System sepcific variables export EDITOR="/usr/bin/vim"
bash
d_bash_19689
--- +++ @@ -12,4 +12,4 @@ echo "" } -export APPS_TO_BUILD="sk-config twixtykit mpeg-munger sk-node sk-schema sk-static sk-time sk-client pipeland bellamie gort shoko broadcast-scheduler vertex-scheduler overlay autosync" +export APPS_TO_BUILD="sk-config sk-schema sk-client twixtykit mpeg-munger sk-node sk-stati...
bash
d_bash_19690
--- +++ @@ -25,13 +25,16 @@ FILE="20150104" fi -CSVFILE=$FILE.csv +ZIPFILE=${FILE}.zip +CSVFILE=UHDP-${FILE}.csv echo "downloading ${URL}${FILE}" -wget -q ${URL}${CSVFILE} -O $CSVFILE +wget -q ${URL}${ZIPFILE} -O $ZIPFILE + +unzip $ZIPFILE if [[ $? != 0 ]]; then - rm -f $CSVFILE + rm -f $ZIPFILE ...
bash
d_bash_19691
--- +++ @@ -9,6 +9,7 @@ if [[ -x $(which lsb_release 2>/dev/null) ]]; then os_VENDOR=$(lsb_release -i -s) + os_VERSION=$(lsb_release -c -s) if [[ "Debian" =~ $os_VENDOR ]]; then apt-get update apt-get install python-pip python-dev git build-essential -y @@ -18,9 +19,14 @@ make install mk...
bash
d_bash_19692
--- +++ @@ -52,3 +52,13 @@ fi } builtin '<>' not_equals + +zero_not_equals() { # 0<> + pop n + if "$expr" 0 '!=' "$n" >/dev/null; then + push -1 + else + push 0 + fi +} +builtin '0<>' zero_not_equals
bash
d_bash_19693
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env bash -set -e -o pipefail +set -eu -o pipefail MYDIR="$(cd "$(dirname "$0")"; pwd)" ROOTDIR="$MYDIR/.." @@ -14,7 +14,7 @@ trap 'rm -rf "$ENVDIR" "$WORKDIR" "$ZIPFILE.tmp"' EXIT # Create a virtualenv in a temporary location -virtualenv -p python "$ENVDIR" +virtualenv -p...
bash
d_bash_19694
--- +++ @@ -8,7 +8,7 @@ apt-get update > /dev/null 2>&1 -apt-get install -y software-properties-common > /dev/null 2>&1 +apt-get install -y software-properties-common vim > /dev/null 2>&1 # dotDeb add-apt-repository -y "deb http://packages.dotdeb.org jessie all"
bash
d_bash_19695
--- +++ @@ -4,5 +4,6 @@ libguestfs-tools python-lxml polkit-pkla-compat git dnf -y install libyaml libselinux-python libffi-devel \ openssl-devel redhat-rpm-config rsync yum -dnf -y install docker docker-compose python-docker ansible-python3 \ - python3-libvirt python3-lxml python3-virtualenv +dnf -y install ...
bash
d_bash_19696
--- +++ @@ -18,7 +18,7 @@ export TOOLS_DIR=$PWD/tools/ mkdir -p ${TOOLS_DIR} pushd ${TOOLS_DIR} -curl -sLo butler.zip "https://broth.itch.ovh/butler/linux-amd64-head/LATEST/.zip" +curl -sLo butler.zip "https://broth.itch.ovh/butler/linux-amd64-head/65bf13509d214308111a7b9c0f227099034536c7/.zip" unzip butler.zip ...
bash
d_bash_19697
--- +++ @@ -17,7 +17,7 @@ set -x -git clone --depth=50 --branch=test-.travis.yml https://github.com/ijacquez/libyaul.git ijacquez/libyaul +git clone --depth=100 --branch=${TRAVIS_BRANCH} https://github.com/ijacquez/libyaul.git ijacquez/libyaul cd ijacquez/libyaul git submodule init git submodule update -f
bash
d_bash_19698
--- +++ @@ -12,5 +12,5 @@ # let's rename the release file because it has a 1:1 mapping with what it is called on # github releases, and therefore the name for each platform needs to be unique so that # they don't overwrite each other. Set a variable that can be used in .travis.yml -export RELEASE_FILE="${TRAVIS_BU...
bash
d_bash_19699
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh -mongoimport -d 02f7abaa9764db2fa3c1ad852247cd4ff06b2c0a -c application --drop application.json +mongoimport -d sli -c application --drop application.json mongoimport -d 02f7abaa9764db2fa3c1ad852247cd4ff06b2c0a -c applicationAuthorization --drop applicationAuthorization.json mon...
bash