document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_12700
--- +++ @@ -1,5 +1,25 @@ #!/bin/bash + +WAIT_SERVICE_READY=10 + +function check_service(){ + status=$($WORKDIR/control status) + echo $status | grep -q "stoped" + if [ $? -eq 0 ] ; then + return 1 + else + return 0 + fi +} + tar -zxf $PACKDIR/$PACKFILE -C $WORKDIR cp $CONFIGDIR/$CONFIGFILE $WORKDIR $WO...
bash
d_bash_12701
--- +++ @@ -25,7 +25,7 @@ # Get input files cp DIR/$input DIR/pdb*AF*pdb . -/diva1/home/modeller/mod9v6 - ${SGE_TASK_ID} < $input >& $output +/salilab/diva1/home/modeller/mod9v6 - ${SGE_TASK_ID} < $input >& $output # Copy back PDB cp *.B* DIR
bash
d_bash_12702
--- +++ @@ -8,10 +8,10 @@ local TGT_DIR=$1 - ln -s patch_for_p4.sh $TGT_DIR/p4-patch - ln -s p4_reconcile_files.sh $TGT_DIR/p4-recon - ln -s p4-desc.sh $TGT_DIR/p4-desc - ln -s update-last-green.sh $TGT_DIR/green-up + ln patch_for_p4.sh $TGT_DIR/p4-patch + ln p4_reconcile_files.sh $TGT_...
bash
d_bash_12703
--- +++ @@ -1,7 +1,7 @@ # # Update the system # -pkgin -y install scmgit +pkgin -y install scmgit python27 cp ../files/limits $HOME/.limits grep '. .limits' $HOME/.bashrc || echo '. .limits' >> $HOME/.bashrc
bash
d_bash_12704
--- +++ @@ -1,23 +1,22 @@ #!/bin/bash echo "Running apt-get update." -apt-get -qq update +sudo apt-get -qq update echo "Running apt-get dist-upgrade." DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none \ - apt \ + sudo apt \ -o Dpkg::Options::=--force-confold \ -o Dpkg::Options...
bash
d_bash_12705
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -eu -wget -O /opt/apache-maven-3.2.3-bin.tar.gz http://www.us.apache.org/dist/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz -tar -xzf /opt/apache-maven-3.2.3-bin.tar.gz -C /opt -rm /opt/apache-maven-3.2.3-bin.tar.gz -ln -s /opt/apache-maven-3.2.3 /opt/maven +wget -O...
bash
d_bash_12706
--- +++ @@ -4,8 +4,11 @@ export LDFLAGS="-L${PREFIX}/lib" export CPPFLAGS="-I${PREFIX}/include" +find . -type f -name "*.pl" | xargs sed -i.bak 's/usr\/bin\/perl/usr\/bin\/env perl/g' +find . -type f -name "*.pm" | xargs sed -i.bak 's/usr\/local\/bin\/perl/usr\/bin\/env perl/g' +find . -type f -name "*.sh" | xarg...
bash
d_bash_12707
--- +++ @@ -15,4 +15,3 @@ sudo apt-get update sudo apt-get install -y --no-install-recommends python3 -sudo apt-get install -y acl
bash
d_bash_12708
--- +++ @@ -7,3 +7,6 @@ alias ll='ls -la' # Show hidden files only. alias l.='ls -d .* --color=auto' + +alias du1='du --max-depth=1' +alias du2='du --max-depth=2'
bash
d_bash_12709
--- +++ @@ -1,6 +1,8 @@ if test ! $(which zsh); then echo "Installing zsh..." brew install zsh + command -v zsh | sudo tee -a /etc/shells + chsh -s $(which zsh) fi if test ! $(which zsh-syntax-highlighting); then
bash
d_bash_12710
--- +++ @@ -5,7 +5,7 @@ if [ -z "$OS_PASSWORD" ] || [ -z "$OS_TENANT_ID" ]; then if [ -s $HOME/.openrc ]; then printf "Loading OpenStack credentials from $HOME/.openrc...\n" - . $HOME/.openrc + source $HOME/.openrc fi fi
bash
d_bash_12711
--- +++ @@ -1,7 +1,11 @@ #!/bin/sh +realpath() { + [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" +} + PREVDIR=$(pwd) -SCRIPT=$(readlink -f $0) +SCRIPT=$(realpath $0) SCRIPTPATH=`dirname $SCRIPT` if [ $# -gt 0 ]; then
bash
d_bash_12712
--- +++ @@ -10,5 +10,10 @@ } load_config() { - source <(python3 -m hades.bin.export_options --format=bash) + local CONFIG + if ! CONFIG="$(python3 -m hades.bin.export_options --format=bash)"; then + error "error: could not load config" + return 2 + fi + source /dev/stdin <<<"$CONFIG" }
bash
d_bash_12713
--- +++ @@ -2,17 +2,34 @@ ###### ## install.sh - Desktop orchestration installer fun +## Easiest way to keep dotfiles in version control ## 2015-08 -## Install dotfiles -_folder=`pwd` -ln -s $_folder/bashrc ~/.bashrc -ln -s $_folder/bash_profile ~/.bash_profile -ln -s $_folder/vimrc ~/.vimrc +linkup() { + i...
bash
d_bash_12714
--- +++ @@ -6,6 +6,9 @@ } echo updating package information +export DEBIAN_FRONTEND=noninteractive +curl -sSL "https://ftp-master.debian.org/keys/archive-key-7.0.asc" | sudo -E apt-key add - +echo "deb http://ftp.us.debian.org/debian unstable main contrib non-free" | sudo tee -a /etc/apt/sources.list > /dev/null ...
bash
d_bash_12715
--- +++ @@ -8,8 +8,8 @@ export CXX=$PREFIX/bin/clang++ export LIBRARY_PREFIX=$PREFIX elif [[ $target_platform == "win-64" ]]; then - export CC=clang-cl.exe - export CXX=clang-cl.exe + export CC=$BUILD_PREFIX/Library/bin/clang-cl.exe + export CXX=$BUILD_PREFIX/Library/bin/clang-cl.exe export LIBRARY_PREF...
bash
d_bash_12716
--- +++ @@ -1,3 +1,5 @@ +docker network create -d bridge --subnet 172.25.0.0/16 --gateway 172.25.0.1 upsert_test + case "$DB" in postgresql) docker run --tmpfs /var/lib/postgresql/data:rw --rm --name db_server \ @@ -6,10 +8,12 @@ $DB_VERSION ;; mysql) - docker run --tmpfs /var/lib/my...
bash
d_bash_12717
--- +++ @@ -2,6 +2,12 @@ set -ex +if [[ "${mpi}" != "nompi" ]]; then + export CXX="$PREFIX/bin/mpicxx" + export CC="$PREFIX/bin/mpicc" + export FC="$PREFIX/bin/mpifort" +fi + export INSTALL_DIR=${PREFIX} ./build.sh install
bash
d_bash_12718
--- +++ @@ -28,6 +28,7 @@ python rename ripgrep + staticcheck streamlink trash tree
bash
d_bash_12719
--- +++ @@ -3,13 +3,13 @@ # Intentionally added to override entrypoint.sh to enable post processing of user names. # Set the user php processor runs with to preserver file rights. -sed --in-place "s/user = www-data/user = ${GIVEN_USER}/g" /etc/php/7.3/fpm/pool.d/www.conf -sed --in-place "s/group = www-data/group ...
bash
d_bash_12720
--- +++ @@ -37,6 +37,6 @@ exit 1 fi -find "$S3_CACHE_DEFAULT_DIR" -type f -mtime "+$MAX_AGE_DAYS" -exec rm {} \; +find "$S3_CACHE_DEFAULT_DIR" -name "*.dat" -type f -mtime "+$MAX_AGE_DAYS" -exec rm {} \; exit 0
bash
d_bash_12721
--- +++ @@ -16,7 +16,7 @@ fi if ! git --no-pager diff --exit-code master..origin/master > /dev/null; then - printf '\033[0;31m%s\033[0m\n' 'You have pending, local changes. Use dot-export.' + printf '\033[0;31m%s\033[0m\n' 'You have pending, local changes. Use dot-export or push them.' fi else pr...
bash
d_bash_12722
--- +++ @@ -19,6 +19,9 @@ source $SETUP_DIR/brew.sh # Git +# git pullall # pull and update submodules +git config --global alias.pullall '!f(){ git pull "$@" && git submodule update --init --recursive; }; f' +# git lg # prettier git log git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h...
bash
d_bash_12723
--- +++ @@ -1,6 +1,6 @@ opam pin add --no-action ocsigenserver 'https://github.com/ocsigen/ocsigenserver.git#master' opam pin add --no-action reactiveData 'https://github.com/ocsigen/reactiveData.git#master' -opam pin add --no-action eliom 'https://github.com/ocsigen/eliom.git' +opam pin add --no-action eliom 'http...
bash
d_bash_12724
--- +++ @@ -4,7 +4,8 @@ NGRAMS_DB=/etc/ngrams.db NGRAMS_DB_TMP=/etc/ngrams.db.new SENTENCES_DETAILED_CSV=/var/www-downloads/exports/sentences_detailed.csv +TAGS_CSV=/var/www-downloads/exports/tags.csv -nice -n 19 tatodetect-generate-ngrams.py "$SENTENCES_DETAILED_CSV" "$NGRAMS_DB_TMP" +nice -n 19 tatodetect-gene...
bash
d_bash_12725
--- +++ @@ -23,6 +23,6 @@ zip -r ../final/robogame-win32.zip robogame popd pushd distributions/mac -zip -r ../final/robogame.zip RoboGame.app +zip -r ../final/robogame-mac.zip RoboGame.app popd
bash
d_bash_12726
--- +++ @@ -20,6 +20,7 @@ ClangDiagnosticAST ClangDiagnosticDriver ClangDiagnosticAnalysis \ ClangDriverOptions ClangAttrParserStringSwitches ClangAttrParsedAttrList \ ClangAttrTemplateInstantiate ClangAttrSpellingListIndex \ - ClangAttrParsedAtt...
bash
d_bash_12727
--- +++ @@ -9,12 +9,7 @@ # Build into own virtualenv # We therefore control our own environment, avoid travis' numpy -# -# Some change in virtualenv 14.0.5 caused `test_f2py` to fail. So, we have -# pinned `virtualenv` to the last known working version to avoid this failure. -# Appears we had some issues with cer...
bash
d_bash_12728
--- +++ @@ -3,6 +3,6 @@ if [[ -n ${PYBOSSA_SOMAXCONN} ]]; then sudo sysctl -w net.core.somaxconn=${PYBOSSA_SOMAXCONN} else - export PYBOSSA_SOMAXCONN=128 # Amazon Linux default + export PYBOSSA_SOMAXCONN=$(sysctl -n net.core.somaxconn) fi exec /usr/local/bin/supervisord --nodaemon --configuration=/etc/superv...
bash
d_bash_12729
--- +++ @@ -19,7 +19,7 @@ diff -u $cmpfile $outfile fi fi - #rm -f $outfile + rm -f $outfile done for f in *.muv ; do @@ -35,6 +35,6 @@ diff -u $cmpfile $outfile fi fi - #rm -f $outfile + rm -f $outfile done
bash
d_bash_12730
--- +++ @@ -17,6 +17,11 @@ cp -r bower_components/font-awesome/* vendor cp -r bower_components/MathJax/unpacked vendor/MathJax +cp -r bower_components/MathJax/fonts/* vendor/fonts + cp -r bower_components/pygments/css vendor/pygments cp bower_components/jquery/dist/* vendor/js + +cp bower_components/anchor-js...
bash
d_bash_12731
--- +++ @@ -1,6 +1,7 @@ #!/bin/sh -curl -L http://bootstrap.saltstack.org | sudo sh -s -- git develop +apt-get -y install python-software-properties +curl -L http://bootstrap.saltstack.org | sudo sh -s -- git 5324d6 if [ -d /srv ]; then rm -rf /srv fi
bash
d_bash_12732
--- +++ @@ -1,19 +1,21 @@ #!/bin/bash -MAX_NETS=1200 -NETS_PER_RUN=5 +START_NETS=${START_NETS:-0} +MAX_NETS=${MAX_NETS:-1200} +NETS_PER_RUN=${NETS_PER_RUN:-5} +START=`echo "($START_NETS / $NETS_PER_RUN)" | bc` MAX_RUNS=`echo "($MAX_NETS / $NETS_PER_RUN) - 1" | bc` if [ "$1" == "create" ] ; then echo "Buil...
bash
d_bash_12733
--- +++ @@ -5,7 +5,8 @@ import sys assert sys.argv[1:] == ["a", "b c"] EOF - stbt-run -v test.py a "b c" + stbt-run -v test.py a "b c" && + stbt-run -v test.py -- a "b c" } test_script_accesses_its_path() {
bash
d_bash_12734
--- +++ @@ -19,6 +19,8 @@ git config --global alias.s 'status --short --branch' git config --global alias.d 'diff' git config --global alias.dc 'diff --cached' +git config --global alias.wd 'diff --word-diff' +git config --global alias.wdc 'diff --word-diff --cached' git config --global alias.lg "log --graph --ab...
bash
d_bash_12735
--- +++ @@ -19,3 +19,8 @@ cp functional-text-sandbox/deploy-result/* ./ rm -rf functional-text-sandbox + +if ! git diff-index --quiet HEAD --; then + git commit -m "Updating gh-pages branch." + git push +fi
bash
d_bash_12736
--- +++ @@ -9,12 +9,12 @@ echo " Verifying MD5s " echo "------------------" -./verify_md5_checksums +./verify_md5_checksums $1 echo echo "------------------------" echo " Verifying Signatures " echo "------------------------" -./verify_gpg_sigs +./verify_gpg_sigs $1
bash
d_bash_12737
--- +++ @@ -1,6 +1,25 @@ K8S_PREFIX="kubernetesonarm" -IMAGES=($(docker images | grep $K8S_PREFIX | grep latest | awk '{print $1}' | sed ':a;N;s/\n/ /;ta')) +# This list have to be kept in sync with the one in kube-config +IMAGES=( + "$K8S_PREFIX/etcd" + "$K8S_PREFIX/flannel" + "$K8S_PREFIX/hyperkube" + ...
bash
d_bash_12738
--- +++ @@ -15,7 +15,7 @@ PGSQL_PATH=`pg_config --bindir` ${PGSQL_PATH}/initdb ${PGSQL_DATA} mkfifo ${PGSQL_DATA}/out -${PGSQL_PATH}/postgres -F -k ${PGSQL_DATA} -D ${PGSQL_DATA} -p 9823 &> ${PGSQL_DATA}/out & +${PGSQL_PATH}/postgres -N 100 -F -k ${PGSQL_DATA} -D ${PGSQL_DATA} -p 9823 &> ${PGSQL_DATA}/out & # Wai...
bash
d_bash_12739
--- +++ @@ -5,16 +5,11 @@ # AppImages and their building process. echo "deb http://ppa.launchpad.net/djcj/libcurl-slim/ubuntu xenial main" >> /etc/apt/sources.list -echo "deb http://ppa.launchpad.net/djcj/gnutls-patched/ubuntu trusty main" >> /etc/apt/sources.list cat > /etc/apt/preferences.d/appimage-pin <<EO...
bash
d_bash_12740
--- +++ @@ -2,7 +2,7 @@ T="$1" -for h in *.html howto/*.txt howto/*.html +for h in *.html *.txt howto/*.txt howto/*.html do diff -u -I'Last updated [0-9][0-9]-[A-Z][a-z][a-z]-' "$T/$h" "$h" || { echo >&2 "# install $h $T/$h" @@ -12,7 +12,7 @@ } done strip_leading=`echo "$T/" | sed -e 's|.|.|g'` -for th...
bash
d_bash_12741
--- +++ @@ -13,7 +13,7 @@ # Fetch all packages (concurrently) using powerpill # ----------------------------------------------------------------------------- -powerpill -Syy --downloadonly base base-devel +powerpill -Syy --downloadonly --noconfirm base base-devel # Bootstrap # --------------------------------...
bash
d_bash_12742
--- +++ @@ -1,16 +1,77 @@ #!/bin/sh + +set -u echo Look at https://centic9.github.io/github-version-statistics/ for results cd `dirname $0` +echo +echo Checkout and rebase git co upgrades.csv && \ git fetch && \ -git rebase origin/master && \ +git rebase origin/master +if [ $? -ne 0 ] +then + echo "Failed...
bash
d_bash_12743
--- +++ @@ -3,8 +3,7 @@ # Install all the dotfiles on system (using symlinks) # -#INSTALL_DIR="$HOME" -INSTALL_DIR="/tmp/dotfiles" +INSTALL_DIR="$HOME" DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
bash
d_bash_12744
--- +++ @@ -5,7 +5,7 @@ read apiVersion rm -rf target/docs -git clone git@github.com:kuujo/copycat.git target/docs -b gh-pages +git clone git@github.com:atomix/copycat.git target/docs -b gh-pages mvn javadoc:javadoc -Pjavadoc -Djv=$apiVersion cd target/docs git add -A
bash
d_bash_12745
--- +++ @@ -12,6 +12,15 @@ ls cd .. ls htck + +# Create dist zip file +cd htck +cp -R dist htck-Bayeux +zip -r htck-Bayeux.zip htck-Bayeux/ +mv htck-Bayeux.zip dist/ +rm -rf htck-Bayeux +cd .. + git branch -D gh-pages # Save built app to tmp folder cp -R htck/dist/ /tmp/ @@ -24,7 +33,7 @@ mv /tmp/dist/* . ls...
bash
d_bash_12746
--- +++ @@ -2,15 +2,22 @@ # Collective Knowledge (program) # -# See CK LICENSE.txt for licensing details -# See CK COPYRIGHT.txt for copyright details +# See CK LICENSE.txt for licensing details. +# See CK COPYRIGHT.txt for copyright details. # -# Developer: Grigori Fursin, Grigori.Fursin@cTuning.org -# ...
bash
d_bash_12747
--- +++ @@ -1,9 +1,11 @@ addXMLCatalogs () { - if test -d $1/xml/dtd; then - for i in $(find $1/xml/dtd -name catalog.xml); do - export XML_CATALOG_FILES="$XML_CATALOG_FILES $i" - done - fi + for kind in dtd xsl; do + if test -d $1/xml/$kind; then + for i in $(find $1/xml...
bash
d_bash_12748
--- +++ @@ -9,7 +9,14 @@ # Install nsd, our DNS server software. -useradd nsd +# ...but first, we have to create the user because the +# current Ubuntu forgets to do so in the .deb +if id nsd > /dev/null 2>&1; then + echo "nsd user exists... good"; +else + useradd nsd; +if + apt-get -qq -y install nsd # Pr...
bash
d_bash_12749
--- +++ @@ -26,3 +26,6 @@ # kubectl set image deployment/${KUBE_DEPLOYMENT_NAME} ${KUBE_DEPLOYMENT_CONTAINER_NAME}=gcr.io/${PROJECT_NAME_PRD}/${DOCKER_IMAGE_NAME}:$TRAVIS_COMMIT echo "Deploying application with kedge" kedge apply -f ${TRAVIS_BUILD_DIR}/kedge.yaml + +echo "Performing rolling update of deployment" +...
bash
d_bash_12750
--- +++ @@ -22,6 +22,8 @@ echo "Copying the documentation for release v${release}" echo "- ${release}" >> ${RELEASES_YAML_FILE} + git checkout v${release} + cp ${ROOT_DIR}/docs/content/docs/* ${version_docs_dir}/ done
bash
d_bash_12751
--- +++ @@ -2,5 +2,8 @@ set -e -curl -X POST --data-urlencode 'payload={"channel": "#robocup-status", "username": "Cthulhu", "text": "The Build Failed!\n$CIRCLE_BUILD_URL", "icon_emoji": ":ghost:"}' $SLACK_WEBHOOK -false +if [ "$CIRCLE_BRANCH" = "master" ]; then + MESSAGE="<$CIRCLE_REPOSITORY_URL|$CIRCLE_PROJ...
bash
d_bash_12752
--- +++ @@ -4,17 +4,8 @@ # Fix permissions for libvirt # Do not remove unless CentOS has been validated if [[ -c /dev/kvm ]]; then - if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then - chmod 660 /dev/kvm - if [[ "$(uname -m)" == "aarch64" ]]; then - chown root:kvm /dev/kvm - ...
bash
d_bash_12753
--- +++ @@ -7,6 +7,7 @@ source $TOP/tests/unittest.sh +export LC_ALL=en_US.UTF-8 PKG_FILES=$(find $TOP/files/debs $TOP/files/rpms $TOP/files/rpms-suse -type f) TMPDIR=$(mktemp -d)
bash
d_bash_12754
--- +++ @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Credit to Jessie Frazelle: https://github.com/jessfraz/.vim/blob/master/update.sh
bash
d_bash_12755
--- +++ @@ -39,6 +39,6 @@ [[ -d root-$channel ]] && mv root-$channel root-${channel}.old mv root-${channel}.new root-$channel [[ -d root-${channel}.old ]] && rm -rf root-${channel}.old - arch-chroot root-$channel cargo install --root /usr --vers 0.3 rustfmt + arch-chroot root-$channel cargo install --root /usr ...
bash
d_bash_12756
--- +++ @@ -12,7 +12,7 @@ echo "https://github.com/AdoptOpenJDK/openjdk12-binaries/releases/download/jdk-12.0.2%2B10/OpenJDK12U-jdk_x64_linux_hotspot_12.0.2_10.tar.gz" ;; java13) - echo "https://github.com/AdoptOpenJDK/openjdk13-binaries/releases/download/jdk13u-2019-09-11-12-35/OpenJDK13U-jdk_x64_linux_hot...
bash
d_bash_12757
--- +++ @@ -7,6 +7,6 @@ TMP_IMAGE_NAME="_tmp_$IMAGE_NAME" SECURITY_GROUPS="default" TEST_INSTANCE_NAME="_test_$IMAGE_NAME-$(date +%F)" -TEST_FLAVOR="hpc.mini" +TEST_FLAVOR="standard.tiny" TEST_NET_ID="$OS_NETWORK_ID" PYTHONIOENCODING="utf-8"
bash
d_bash_12758
--- +++ @@ -8,7 +8,7 @@ source $ENV_PATH/$ENVIRONMENT/.env source $ENV_PATH/$ENVIRONMENT/$CLOUD_PROVIDER/$PROVISIONING_TOOL/.env -export STORAGE_PROVISION_CONFIG_FILE="$STORAGE_PROVISION_PATH/$STORAGE_PROVISIONING_TOOL/$ENVIRONMENT/$CLOUD_PROVIDER/config.yml" +export STORAGE_PROVISION_CONFIG_FILE="$STORAGE_PROVIS...
bash
d_bash_12759
--- +++ @@ -3,3 +3,7 @@ source "$HOME/.prompts/global.sh" export PS1="[$bold$red\u$reset@$bold$green\h$reset \w ]$ " + +promptreset +unset -f promptreset +
bash
d_bash_12760
--- +++ @@ -7,9 +7,16 @@ printf "[default]\naccess_key = $S3_ACCESS_KEY\n secret_key = $S3_SECRET_KEY" > ~/.s3cfg if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then - s3cmd put android/demo/build/outputs/apk/*.apk s3://android.mapzen.com/tangram/latest.apk - ...
bash
d_bash_12761
--- +++ @@ -9,8 +9,11 @@ mkdir -p deps [ -d deps/venv ] || virtualenv deps/venv -PS1=dummy + +set +u source deps/venv/bin/activate +set -u + [ -f deps/venv/bin/wayback ] || pip install pywb #
bash
d_bash_12762
--- +++ @@ -8,7 +8,7 @@ if [ ! -f "${CIRCLECI_CACHE_DIR}/packer" ] || [[ ! "$(packer version)" =~ "Packer v${PACKER_VERSION}" ]]; then wget -O /tmp/packer.zip "${PACKER_URL}" echo "${PACKER_SHA1SUM} /tmp/packer.zip" | sha1sum --check - - unzip -ofd "${CIRCLECI_CACHE_DIR}" /tmp/packer.zip + unzip -oud "${CIRC...
bash
d_bash_12763
--- +++ @@ -20,7 +20,11 @@ echo -e "$(date)\t(${COUNTER}) Waiting for connection to ${HOSTIP}" nc -z $HOSTIP 8022 2>/dev/null | true if [[ ${PIPESTATUS[0]} -eq 0 ]]; then - echo -e "\n\n$(date)\tDROPLET STATUS IS OKAY\n\n" + echo -e "\n\n$(date)\tDROPLET STATUS IS OKAY" + echo -e "...
bash
d_bash_12764
--- +++ @@ -1 +1,7 @@ eval "$(npm completion 2>/dev/null)" + +# Install and save to dependencies +alias npms="npm i -S " + +# Install and save to dev-dependencies +alias npmd="npm i -D "
bash
d_bash_12765
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash # This script will build the project. -SWITCHES="--info --stacktrace" +SWITCHES="--debug --stacktrace" if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
bash
d_bash_12766
--- +++ @@ -4,5 +4,5 @@ git checkout master touch fitz-was-here.md git add fitz-was-here.md -git commit -m "Fitz made this" +git commit -m "Fitz made this" --autor "R. Fitzgerald <rfitz@example.com>" git checkout HEAD~0
bash
d_bash_12767
--- +++ @@ -3,7 +3,7 @@ STATUS_FILE=${WORKDIR:-/dev/shm}/resolved_services.txt cmd_init() { - echo > "$STATUS_FILE" + echo -n > "$STATUS_FILE" } cmd_resolve() { @@ -13,6 +13,7 @@ cmd_wait() { [[ "$1" == "" ]] && return + [ -r "$STATUS_FILE" ] || exit 1 PID="$$" {
bash
d_bash_12768
--- +++ @@ -3,6 +3,10 @@ set -e DIR=$(pwd -P) mix deps.get && mix compile -cd "$DIR/apps/interface" + +(cd "$DIR/apps/domain" +mix ecto.reset) + +(cd "$DIR/apps/interface" npm install -node_modules/protractor/bin/webdriver-manager update +node_modules/protractor/bin/webdriver-manager update)
bash
d_bash_12769
--- +++ @@ -2,7 +2,7 @@ FEATURE=$1 -for i in `seq 1 25`; do +for i in `seq -w 1 25`; do if grep -q "$FEATURE" bi-$i.cypher; then echo x else
bash
d_bash_12770
--- +++ @@ -8,7 +8,7 @@ export CONTAINER_NAME=ci_native_nowallet export DOCKER_NAME_TAG=ubuntu:16.04 # Use xenial to have one config run the tests in python3.5, see doc/dependencies.md -export PACKAGES="python3-zmq" +export PACKAGES="python3-zmq clang-3.8 llvm-3.8" # Use clang-3.8 to test C++11 compatibility, s...
bash
d_bash_12771
--- +++ @@ -4,3 +4,6 @@ # Command line tool for launching multiple git commands in parallel go install github.com/jcgay/parallel-git-repo + +# Command line tool for using emojis in commits +npm i -g gitmoji-cli
bash
d_bash_12772
--- +++ @@ -2,5 +2,4 @@ source ~/.rvm/scripts/rvm rvm use default -bundle install bundle exec pod trunk push
bash
d_bash_12773
--- +++ @@ -4,7 +4,7 @@ script_dir=`dirname $0` cd ${script_dir}/.. -pip install pdoc3 +pip install -U pdoc3 rm -rf docs/api-docs pdoc slack_sdk --html -o docs/api-docs open docs/api-docs/slack_sdk/index.html
bash
d_bash_12774
--- +++ @@ -5,7 +5,7 @@ set -u # warn about unitialised variables set -x # echo each line -function retry(){ "$@" || "$@" || "$@"; } +function retry () { "$@" || "$@" || "$@"; } retry cabal update retry cabal install --only-dependencies --enable-tests
bash
d_bash_12775
--- +++ @@ -6,7 +6,7 @@ export GIT_WORK_TREE="$repo_path" export GIT_DIR="${GIT_WORK_TREE}/.git" -export COMPOSE_FILE="${GIT_WORK_TREE}/docker/docker-compose.yaml" +export COMPOSE_FILE=${COMPOSE_FILE:-"${GIT_WORK_TREE}/docker/docker-compose.yaml"} docker-compose pull docker-compose up -d
bash
d_bash_12776
--- +++ @@ -8,6 +8,7 @@ brew install leiningen brew install hub brew install node +brew install vim brew tap homebrew/dupes brew install apple-gcc42
bash
d_bash_12777
--- +++ @@ -1,5 +1,5 @@ set -e -export RDO_VERSION='centos-master' +export RDO_VERSION='centos-newton' export DELOREAN_HOST='trunk-primary.rdoproject.org' export DELOREAN_URL="http://$DELOREAN_HOST/centos7-master/consistent/delorean.repo" export LAST_PROMOTED_URL="http://$DELOREAN_HOST/centos7-master/current-pass...
bash
d_bash_12778
--- +++ @@ -1,5 +1,5 @@ if hash sgtk-grid 2>/dev/null; then - sgtk-grid -t 60 -b 28 -o 0.8 -f -d 0 + sgtk-grid -t 60 -b 28 -o 0.8 -f elif hash kitty 2>/dev/null; then TERMINAL_COMMAND="kitty" kitty --class app-menu -e ~/.config/sway/sway-launcher-desktop.sh elif hash termite 2>/dev/null; then
bash
d_bash_12779
--- +++ @@ -2,6 +2,7 @@ # Created by Andre Anjos <andre.dos.anjos@cern.ch> # Sex 08 Ago 2008 15:35:48 CEST -export PATH=`pwd`/sw:${PATH} -export PYTHONPATH=`pwd`:`pwd`/sw:${PYTHONPATH} +export PATH=`pwd`/sw:${HOME}/sw/bin:${PATH} +export PYTHONPATH=`pwd`:`pwd`/sw:`pwd`/sw/PIL/lib/python:${PYTHONPATH} export BASE...
bash
d_bash_12780
--- +++ @@ -21,3 +21,6 @@ cd doc/html/ tar cvzf doc.tar.gz * mv doc.tar.gz ../../ + +echo "Send the results to Sonar" +sonar-runner
bash
d_bash_12781
--- +++ @@ -12,9 +12,7 @@ kd () { local python_script=$(dirname $BASH_SOURCE)/kd.py - local destination=$(python $python_script $* 2>&1) - local first_word=$(echo "$destination" | head -n 1 | cut -d\ -f1) - if [[ "$first_word" == "Error" ]] + if ! destination=$(python $python_script $* 2>&1) then echo $de...
bash
d_bash_12782
--- +++ @@ -2,4 +2,4 @@ set -e -x -edb test -j8 --output-format=simple +edb test -j3 --output-format=simple
bash
d_bash_12783
--- +++ @@ -1,6 +1,13 @@ #!/bin/bash +FORWARDLOGS="${FORWARDLOGS:-1}" LOGS=(broker schema-registry rest-proxy connect-distributed zookeeper) + +if [[ "$FORWARDLOGS" == "0" ]]; then + echo "Skipping sinking logs to kafka due to \$FORWARDLOGS = 0." + exit 0 +fi + for (( i=0; i<=4; i++)); do cat <<EOF >/t...
bash
d_bash_12784
--- +++ @@ -17,7 +17,7 @@ gid='www-data' # staging apps -pip install -U django==1.9 django-cors-headers djangorestframework +#pip install -U django==1.9 django-cors-headers djangorestframework # wait for other services bash $app/scripts/wait.sh
bash
d_bash_12785
--- +++ @@ -13,19 +13,21 @@ pip install -r server/python/requirements/production.txt # make the directory -echo "Making directory 'stackexchange_travel'" -mkdir stackexchange_travel +DIRECTORY_NAME="stackexchange_travel" +echo "Making directory '${DIRECTORY_NAME}'" +mkdir $DIRECTORY_NAME echo "Directory created"...
bash
d_bash_12786
--- +++ @@ -9,7 +9,7 @@ echo "https://github.com/bell-sw/Liberica/releases/download/11.0.16+8/bellsoft-jdk11.0.16+8-linux-amd64.tar.gz" ;; java17) - echo "https://github.com/bell-sw/Liberica/releases/download/17.0.3.1+2/bellsoft-jdk17.0.3.1+2-linux-amd64.tar.gz" + echo "https://github.com/bell-sw/Liberica...
bash
d_bash_12787
--- +++ @@ -1,5 +1,6 @@ #!/bin/sh -SCRIPT_DIR=$(dirname "$0") +SCRIPT_DIR=$(dirname $(readlink -f $0)) -java -classpath "$SCRIPT_DIR/../lib/*" dk.statsbiblioteket.newspaper.metadatachecker.MetadataChecker -c $SCRIPT_DIR/../conf/config.properties +java -classpath "$SCRIPT_DIR/../conf:$SCRIPT_DIR/../lib/*" \ + d...
bash
d_bash_12788
--- +++ @@ -20,7 +20,7 @@ printf "travis_fold:end:make_js\n" printf "travis_fold:start:runtests\nRunning flow tests\n" -./runtests.sh bin/flow +FLOW_RUNTESTS_PARALLELISM=4 ./runtests.sh bin/flow printf "travis_fold:end:runtests\n" printf "travis_fold:start:run_tool_test\nRunning tool test\n"
bash
d_bash_12789
--- +++ @@ -15,7 +15,7 @@ function recipe_build { autoreconf -if wget -O autotools/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub - ./configure --prefix=/ --host=${HOST} --disable-sdltest --disable-gl --without-net --with-sdl-prefix="$PWD/../sysroot" + ./configure --prefix=/ ...
bash
d_bash_12790
--- +++ @@ -1,3 +1,10 @@ #!/bin/sh -e -~/.vim/bundle/YouCompleteMe/install.py --clang-completer +cmd="~/.vim/bundle/YouCompleteMe/install.py --clang-completer" + +if [ $( uname -s ) = Darwin ]; then + $cmd +else + # Allow ldconfig to find python library + PATH=/sbin:$PATH $cmd --system-libclang +fi
bash
d_bash_12791
--- +++ @@ -10,9 +10,9 @@ # run the tests cd "$SCRIPTPATH/CalDAVTester" PYTHONPATH="$SCRIPTPATH/pycalendar/src" python testcaldav.py --print-details-onfail --basedir "$SCRIPTPATH/../caldavtest/" -o cdt.txt \ + "CalDAV/current-user-principal.xml" \ "CalDAV/sync-report.xml" -# "CalDAV/current-user-principal.xml"...
bash
d_bash_12792
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -SHA=$(curl -s http://download.redis.io/releases/redis-${1}.tar.gz | shasum | cut -f 1 -d' ') -ENTRY="hash redis-${1}.tar.gz sha1 $SHA http://download.redis.io/releases/redis-${1}.tar.gz" +SHA=$(curl -s http://download.redis.io/releases/redis-${1}.tar.gz | shasum -a 256 | cut -f 1...
bash
d_bash_12793
--- +++ @@ -26,4 +26,4 @@ su - ubuntu -c "curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | PROFILE=~/.profile bash" # Run ansible -su - ubuntu -c "ansible-pull -i /home/ubuntu/alsl-infrastructure/aws/hosts.yml -d /home/ubuntu/alsl-infrastructure -U https://github.com/mshogren/alsl-in...
bash
d_bash_12794
--- +++ @@ -1,6 +1,7 @@ #!/usr/bin/env bash # Note: run from root +# Individual tests can be run by calling ./e2e/run_e2e_local.sh TestName set -e
bash
d_bash_12795
--- +++ @@ -2,7 +2,7 @@ set -e -IOSSDK_VER="7.0" +IOSSDK_VER="9.0" # xcodebuild -showsdks
bash
d_bash_12796
--- +++ @@ -2,11 +2,11 @@ set -e echo 'Running unit tests.' -phpunit --verbose --coverage-clover build/logs/clover.xml +./vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml echo '' echo '' echo '' echo 'Testing for Coding Styling Compliance.' echo 'All code should follow PSR standards.' -...
bash
d_bash_12797
--- +++ @@ -1,6 +1,6 @@ apt-get install -y php-pear php5-dbg gdb apt-get install -y libssl-dev libsasl2-dev libpcre3-dev pkg-config -ls -1 /phongo/mongodb*.tgz | sort -n -r | xargs sudo pecl install +ls -1 /phongo/mongodb*.tgz | sort -n -r | xargs sudo pecl install -f php -m | grep -q mongodb || echo "extension=...
bash
d_bash_12798
--- +++ @@ -10,12 +10,14 @@ projectPath=/var/www/html/$projectName if [ ! -f $projectPath/index.html ] || - [ ! -f $projectPath/login.html ] || - [ ! -f $projectPath/register.html ] || + [ ! -f $projectPath/modalStyle.css ] || + [ ! -f $projectPath/StyleSheet.css ] || [ ! -f $projectPath/check.php ] || + [ ! -f...
bash
d_bash_12799
--- +++ @@ -5,6 +5,8 @@ if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$COMPILER" == "clang++" ]; then cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_CXX_FLAGS="-Wall -stdlib=libc++ -std=c++14" .. +elif [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$COMPILER" == "g++-4.9" ]; then + cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMA...
bash