document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_12100
--- +++ @@ -22,22 +22,22 @@ else build=release fi - + mkdir -p "$1/bin" - + for bin in "${BINS[@]}" do - cp -v "target/x86_64-unknown-redox/$build/$bin" "$1/bin" + cp -v "target/$TARGET/$build/$bin" "$1/bin" done - + cp -Rv "res" "$1/etc" - + ...
bash
d_bash_12101
--- +++ @@ -23,6 +23,12 @@ kubectl get pods --all-namespaces kubectl cluster-info dump +# For the none driver +journalctl -u localkube +${SUDO_PREFIX}cat $KUBECONFIG + +cat $HOME/.kube/config + docker ps MINIKUBE=${SUDO_PREFIX}out/minikube-${OS_ARCH}
bash
d_bash_12102
--- +++ @@ -21,6 +21,12 @@ cp target/$TARGET/release/rq $stage/ + revision=$(git describe --tags) + curl "https://img.shields.io/badge/${TARGET//-/--}-${revision//-/--}-blue.png" > "$stage/badge.png" + curl "https://img.shields.io/badge/${TARGET//-/--}-${revision//-/--}-blue.svg" > "$stage/badge.svg...
bash
d_bash_12103
--- +++ @@ -23,6 +23,8 @@ if [[ ! -d PeachPy ]]; then git clone https://github.com/Maratyszcza/PeachPy.git +fi +if ! pip list --format=legacy | grep -q PeachPy; then ( cd PeachPy pip install --upgrade -r requirements.txt
bash
d_bash_12104
--- +++ @@ -15,10 +15,6 @@ THIS_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) ROOT_DIR=$(cd "$THIS_DIR" && hg root) -# Buck by default uses clang-3.6 from /opt/local/bin. -# Override it to use system clang. -export PATH="/usr/bin:$PATH" - # Enter xplat cd "$ROOT_DIR"/xplat || exit 1
bash
d_bash_12105
--- +++ @@ -28,4 +28,4 @@ python manage.py loaddata /tmp/fake_agagd_data.json fi -uwsgi --http-socket 0.0.0.0:3031 --module agagd.wsgi --static-map /static=/tmp/static/ --static-map /media=/srv/media --touch-reload=/srv/agagd/wsgi.py +uwsgi --http-socket 0.0.0.0:3031 --module agagd.wsgi --static-map /static=/...
bash
d_bash_12106
--- +++ @@ -3,3 +3,5 @@ export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home" path=($JAVA_HOME/bin $path) fi + +export JAVA_OPTS='-d32'
bash
d_bash_12107
--- +++ @@ -19,4 +19,4 @@ # Enable nginx log "starting nginx" -svcadm enable svc:/pkgsrc/nginx:defaul +svcadm enable svc:/pkgsrc/nginx:default
bash
d_bash_12108
--- +++ @@ -29,6 +29,16 @@ fi } +vff() { + if (($# == 1)) ; then + # equivalent to vf ack -g "$1" + vim $(ack -g "$1") + else + printf '%s\n' 'Usage: vff filename' '' 'Find {filename} to edit' \ + 'Relies on ack(1)' + fi +} + vc() { if (($# > 0)); then ( cd "$1" && shift && vim "$@" )
bash
d_bash_12109
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -yuicompressor automator.js -o automator.min.js +uglifyjs automator.js -mo automator.min.js docco automator.js
bash
d_bash_12110
--- +++ @@ -25,7 +25,8 @@ # deploy # deploy your site via S3, Rsync, or to GitHub pages. # Jekyll -alias serve='export $(cat .env | xargs) && bundle exec jekyll serve' +# env $(cat .env | xargs) bundle exec jekyll serve --draft +alias serve='env $(cat .env | xargs) bundle exec jekyll serve' alias se...
bash
d_bash_12111
--- +++ @@ -10,4 +10,4 @@ fi protoc --proto_path="." --dart_out=lib/src/proto info.proto -dartfmt -w lib/src/proto +dart format lib/src/proto
bash
d_bash_12112
--- +++ @@ -3,7 +3,7 @@ ## https://github.com/auth0/react-native-lock/blob/master/bin/cocoapods.sh ios_dir=`pwd`/ios -if [ -d ios_dir ] +if [ ! -d $ios_dir ] then exit 0 fi
bash
d_bash_12113
--- +++ @@ -1,4 +1,10 @@ #!/bin/bash + +# RUNUSER_USERNAME +if [ ! -n "${RUNUSER_USERNAME-}" ] ; then + echo "RUNUSER_USERNAME is not set or empty" + exit 1 +fi # RUNUSER_UID if [ ! -n "${RUNUSER_UID-}" ] ; then @@ -12,10 +18,9 @@ fi +chown -R $RUNUSER_UID:$RUNUSER_GID /home/galaxy groupmod --gid $RUNUSE...
bash
d_bash_12114
--- +++ @@ -11,14 +11,35 @@ ########################### # Alias +# CAT, GREP + alias y='"$GREP" -i' alias n='"$GREP" -vi' +alias c='cat' +alias w='cat >' +alias a='cat >>' + +# XARGS + alias x='xargs' + alias xy='xargs "$GREP" -i' alias xn='xargs "$GREP" -iv' +alias xc='xargs cat' +alias xw='xargs cat >'...
bash
d_bash_12115
--- +++ @@ -3,3 +3,4 @@ set -ueo pipefail docker-php-ext-install pdo_mysql 2>&1 +php -r 'exit(extension_loaded("pdo_mysql") ? 0 : 1);'
bash
d_bash_12116
--- +++ @@ -11,4 +11,4 @@ echo "$REPO_VERSION" > "$VERSION_DIR/number" echo "$REPO_HASH" > "$VERSION_DIR/hash" -[ -n "$PRODUCT_NAME" ] && echo "$PRODUCT_NAME $REPO_VERSION" > "$VERSION_DIR/name" +[ -z "$PRODUCT_NAME" ] || echo "$PRODUCT_NAME $REPO_VERSION" > "$VERSION_DIR/name"
bash
d_bash_12117
--- +++ @@ -20,3 +20,4 @@ bindkey "^[[3~" delete-char bindkey "^[3;5~" delete-char bindkey "\e[3~" delete-char +bindkey '^W' backward-kill-word
bash
d_bash_12118
--- +++ @@ -9,7 +9,7 @@ echo "Changing $DEFAULT_USER UID to $HOST_UID" change-uid $HOST_UID $HOST_GID >/dev/null fi - sudo -i -E -u $DEFAULT_USER sh -c 'cd '$WORKDIR'; '$@ + su $DEFAULT_USER -c $@ exit fi fi
bash
d_bash_12119
--- +++ @@ -25,8 +25,6 @@ # completion for pip zplug "srijanshetty/zsh-pip-completion" -# completion for docker -zplug "felixr/docker-zsh-completion" ######## # Themes
bash
d_bash_12120
--- +++ @@ -7,7 +7,7 @@ JS_LIB_DIR=$LETTUCE_FIXTURES_DIR/jasmine/lib JSCOVER_DIR=$LETTUCE_FIXTURES_DIR/jscover -JSCOVER_URL=http://softlayer-dal.dl.sourceforge.net/project/jscover/JSCover-1.0.2.zip +JSCOVER_URL=http://softlayer-dal.dl.sourceforge.net/project/jscover/JSCover-1.0.14.zip JQUERY_URL=http://code.jque...
bash
d_bash_12121
--- +++ @@ -2,7 +2,6 @@ pj () { emulate -L zsh - setopt shwordsplit cmd="cd" project=$1 @@ -10,7 +9,7 @@ if [[ "open" == "$project" ]]; then shift project=$* - cmd=$EDITOR + cmd=${=EDITOR} else project=$* fi
bash
d_bash_12122
--- +++ @@ -13,17 +13,7 @@ # replace all multi-spaces with a single space gsub(/\s+/, " ", $0); - tablen = 20 - length($1); - - printf " " $1 " " - - for (i = 0; i < tablen; i++) - printf "-" - - # TODO check if command ends in \ - # and indent + pri...
bash
d_bash_12123
--- +++ @@ -8,8 +8,10 @@ # be included in the package (it is about 12MB). ./configure --disable-examples --prefix="$PREFIX" --datarootdir=`pwd`/tmpshare make -make update-exports -make check +# This is failing because the exported symbols by the Gstreamer .so library +# on Linux are different from the expected one...
bash
d_bash_12124
--- +++ @@ -3,9 +3,6 @@ source /usr/src/app/lib/ahn/.env export $(cut -d= -f1 /usr/src/app/lib/ahn/.env) printf "Done.\n" -printf "Installing gems...\n" -cd /usr/src/app && bundle install -printf "Done.\n" printf "Starting ahn...\n" ahn start /usr/src/app printf "Done.\n"
bash
d_bash_12125
--- +++ @@ -6,8 +6,8 @@ --author "Data Theorem" \ --author_url https://datatheorem.github.io \ --github_url https://github.com/datatheorem/TrustKit \ - --github-file-prefix https://github.com/datatheorem/TrustKit/tree/1.4.0 \ - --module-version 1.4.0 \ + --github-file-prefix https://github.com/datatheorem...
bash
d_bash_12126
--- +++ @@ -1,4 +1,4 @@ -SB_VERSION=0.8.8-SNAPSHOT +SB_VERSION=0.8.8 SB_JAR="$(eval echo ~$USERNAME)/.m2/repository/com/google/sitebricks/sitebricks-cloud/${SB_VERSION}/sitebricks-cloud-${SB_VERSION}.jar" # Download the latest SB cloud module from sonatype snapshots (if necessary)
bash
d_bash_12127
--- +++ @@ -11,6 +11,10 @@ RELEASE=$1 fi +if [[ ! -d jars ]]; then + mkdir jars +fi + cd bin JARFILE=avrora-$RELEASE.jar
bash
d_bash_12128
--- +++ @@ -1,2 +1,2 @@ -echo "Il est midi." | /usr/lib/jvm/java-8-openjdk-amd64/bin/java -mx300m -classpath stanford-postagger-full-2014-10-26/stanford-postagger.jar edu.stanford.nlp.tagger.maxent.MaxentTagger -model stanford-postagger-full-2014-10-26/models/french.tagger -textFile /dev/stdin -prop postagger.prop 2>...
bash
d_bash_12129
--- +++ @@ -5,7 +5,6 @@ set -e echo "" > coverage.txt -rm -f profile.out for d in $(go list ./... | grep -v vendor); do go test -race -coverprofile=profile.out -covermode=atomic $d if [ -f profile.out ]; then @@ -19,7 +18,7 @@ # TODO: Write a test for this specific case go install . goby test_fixtur...
bash
d_bash_12130
--- +++ @@ -3,4 +3,5 @@ {% if 'DB_PORT' in pillar['env'] %}export PGPORT="{{ pillar['env']['DB_PORT'] }}"{% endif %} export PGUSER="{{ pillar['project_name'] }}_{{ pillar['environment'] }}" export PGPASSWORD="{{ pillar['secrets']['DB_PASSWORD'] }}" +export PGDATABASE="{{ pillar['project_name'] }}_{{ pillar['enviro...
bash
d_bash_12131
--- +++ @@ -3,4 +3,4 @@ set -euo pipefail cd ${SRC_DIR} -IPOPT_DIR=${CONDA_PREFIX} ${PYTHON} -m pip install . -vv +IPOPT_DIR=${PREFIX} ${PYTHON} -m pip install . -vv
bash
d_bash_12132
--- +++ @@ -1,12 +1,7 @@ apt-get install -y apt-transport-https lsb-release ca-certificates -if [ ! -e /etc/apt/sources.list.d/sury.php.list ]; then - wget -O /etc/apt/trusted.gpg.d/sury.php.gpg https://packages.sury.org/php/apt.gpg - echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sou...
bash
d_bash_12133
--- +++ @@ -7,7 +7,7 @@ mv /tmp/terraform/* /usr/local/bin/ rm -f /tmp/terraform.zip apt-get update -apt-get install -y unzip python-pip python-dev python-virtualenv libffi-dev libssl-dev apt-transport-https ca-certificates libevent-dev libsasl2-modules netcat-openbsd +apt-get install -y unzip python-pip python-de...
bash
d_bash_12134
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash echo "Connecting to Cubietruck plus serial" -screen -t 'Sotolito Serial' /dev/ttyUSB0 115200 +screen -S serial -t 'Sotolito Serial' /dev/ttyUSB0 115200
bash
d_bash_12135
--- +++ @@ -1,8 +1,8 @@ #!/bin/bash # cleans up logs -cp /dev/null /home/freeciv/freeciv-web/resin/log/jvm-app-0.log -cp /dev/null /home/freeciv/freeciv-web/resin/log/access.log +cp /dev/null /home/freeciv/freeciv-web/freeciv-web/resin/log/jvm-app-0.log +cp /dev/null /home/freeciv/freeciv-web/freeciv-web/resin/lo...
bash
d_bash_12136
--- +++ @@ -11,7 +11,7 @@ rm -rf docs/ npm install https://github.com/TypeStrong/typedoc/archive/2e855cf8c62c7813ac62cb1ef911c9a0c5e034c2.tar.gz cd node_modules/typedoc/ - tsc + ../typescript/bin/tsc cd ../.. node_modules/.bin/typedoc --out docs saltyrtc/
bash
d_bash_12137
--- +++ @@ -1,6 +1,8 @@ #!/bin/bash set -euo pipefail IFS=$'\n\t' + +rm -r /home/drydock/go/src mkdir -p /home/drydock/go/src/github.com/etcinit ln -sf $(pwd) /home/drydock/go/src/github.com/etcinit/
bash
d_bash_12138
--- +++ @@ -1,4 +1,4 @@ #!/bin/bash [ -w /etc/ansible/roles ] || (echo "Cannot write /etc/ansible/roles, aborting"; exit 1) cd /etc/ansible -/usr/bin/ansible-galaxy install -f -r /etc/ansible/requirements.yml >/dev/null +/usr/bin/ansible-galaxy install -f -r /etc/ansible/requirements.yml -p /etc/ansible/roles >/de...
bash
d_bash_12139
--- +++ @@ -9,12 +9,8 @@ tlsargs=$(docker-machine ssh "weave-${i}" "${find_tls_args}") - ## We are going to use IPAM, hence estimated cluster size - ## (`-initpeercount`) needs to be supplied, - ## as we don't pass any peer addresses yet - ./weave launch -initpeercount 3 - ## Launch WeaveDNS on 10.53.1.0/...
bash
d_bash_12140
--- +++ @@ -15,4 +15,5 @@ mkdir -p FroshProfiler git archive ${commit} | tar -x -C FroshProfiler composer install --no-dev -n -o -d FroshProfiler +( find ./FroshProfiler -type d -name ".git" && find ./FroshProfiler -name ".gitignore" && find ./FroshProfiler -name ".gitmodules" ) | xargs rm -r zip -r FroshProfiler...
bash
d_bash_12141
--- +++ @@ -8,4 +8,4 @@ PYTHONPATH=$THIS_DIR export PYTHONPATH -tox +exec tox ${1+"${@}"}
bash
d_bash_12142
--- +++ @@ -15,7 +15,7 @@ chmod 755 /home/ubuntu/test_env/Sdkperf/*/*sh mkdir /home/ubuntu/test_env/MQTT_Example -ansible localhost -m git -a "repo=https://github.com/KenBarr/Solace_testing_in_AWS dest=/home/ubuntu/test_env/MQTT_Example" +ansible localhost -m git -a "repo=https://github.com/SolaceSamples/solace-s...
bash
d_bash_12143
--- +++ @@ -1,9 +1,48 @@ #!/bin/bash -e +export DEBIAN_FRONTEND=noninteractive +sudo locale-gen "en_US.UTF-8" "fr_FR.UTF-8" +sudo dpkg-reconfigure locales +sudo apt-get update -qq +sudo apt-get dist-upgrade -y -sudo apt-get update -qq sudo apt-get install -y -q git \ wget \ gdal-bin \ - ...
bash
d_bash_12144
--- +++ @@ -1,9 +1,13 @@ #!/bin/sh umount /mnt yes | mdadm --create /dev/md0 --raid-devices=2 --level=1 /dev/xvdb /dev/xvdc + blockdev --setra 4096 /dev/xvdb blockdev --setra 4096 /dev/xvdc blockdev --setra 4096 /dev/md0 +echo deadline > /sys/block/xvdb/queue/scheduler +echo deadline > /sys/block/xvdc/queue/sch...
bash
d_bash_12145
--- +++ @@ -19,3 +19,10 @@ cp -a /tls/*.pem /mnt/etc/pki/trust/anchors run_remote setupssh.sh + +echo Port 22 >> /etc/ssh/sshd_config +echo Port 2222 >> /etc/ssh/sshd_config +echo Match LocalPort 22 >> /etc/ssh/sshd_config +echo " ChrootDirectory /mnt" >> /etc/ssh/sshd_config +kill -HUP $(cat /run/sshd.pid) +
bash
d_bash_12146
--- +++ @@ -1,5 +1,3 @@ -include system.validator.SystemValidator - @class FileNameUtil(){ @@ -22,7 +20,7 @@ } getPath(){ - if [[ $(SystemValidator isWindows) ]]; then + if [[ $(uname) =~ NT ]]; then _getPathWin ${@} else _getPathUnix ${@}
bash
d_bash_12147
--- +++ @@ -3,7 +3,7 @@ SRCDIR=${srcdir-`pwd`} BUILDDIR=${top_builddir-`pwd`} -${BUILDDIR}/src/intel-gen4asm -o TEST.out $SRCDIR/TEST.g4a +${BUILDDIR}/assembler/intel-gen4asm -o TEST.out $SRCDIR/TEST.g4a if cmp TEST.out ${SRCDIR}/TEST.expected 2> /dev/null; then : ; else echo "Output comparison for TEST" d...
bash
d_bash_12148
--- +++ @@ -2,7 +2,7 @@ # hook function to send wakatime a tick send_wakatime_heartbeat() { - (wakatime --write --plugin "zsh-wakatime/0.0.1" --entitytype app --project Terminal --entity "$(waka_filename)"> /dev/null 2>&1 &) + (wakatime --write --plugin "zsh-wakatime/0.0.1" --entity-type app --project Termi...
bash
d_bash_12149
--- +++ @@ -1,4 +1,8 @@ #!/bin/bash + +apt-get install -y debconf +update-locale LC_CTYPE="en_US.UTF-8" LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8" +dpkg-reconfigure locales # Create otm user if [ -z "$(getent passwd otm)" ];
bash
d_bash_12150
--- +++ @@ -2,38 +2,43 @@ run_segment() { - local tmp_file="${TMUX_POWERLINE_DIR_TEMPORARY}/wan_ip.txt" - local wan_ip + local tmp_file="${TMUX_POWERLINE_DIR_TEMPORARY}/wan_ip.txt" + local wan_ip - if [ -f "$tmp_file" ]; then - if shell_is_osx || shell_is_bsd; then - last_update=$(stat -f "%m" ${...
bash
d_bash_12151
--- +++ @@ -12,6 +12,11 @@ # Ruby gems if dcheck ruby && dcheck gem; then PATH="$(ruby -e 'puts Gem.user_dir')/bin:$PATH" +fi + +# Rust cargo bin +if [[ -d "$HOME/.cargo/bin" ]]; then + PATH="$HOME/.cargo/bin:$PATH" fi if [[ -d "$HOME/.local/bin" ]]; then
bash
d_bash_12152
--- +++ @@ -7,3 +7,4 @@ gosu postgres pg_ctl stop +echo 'minerva.trigger_mark_modified = on' >> /var/lib/postgresql/data/postgresql.conf
bash
d_bash_12153
--- +++ @@ -6,7 +6,7 @@ python manage.py build git stash -git checkout staging +git checkout gh-pages ls -a | egrep -v '(\.\.?|output|\.git)' | xargs rm -r mv output/* .
bash
d_bash_12154
--- +++ @@ -4,6 +4,13 @@ kill $(cat zoomhub.pid) fi + +# # Find app binary: +# zoomhub=$(find .stack-work/dist -type f -name zoomhub | tr -d '\n') + +# # Self-sign app to avoid constant Mac OS X firewall warnings: +# codesign --force --sign zoomhub.net "$zoomhub" + BASE_URI='http://localhost:8000' \ HASHIDS_S...
bash
d_bash_12155
--- +++ @@ -1,4 +1,7 @@ #!/bin/sh + +# Clean the Xcode build folder to avoid caching issues that happens sometimes +rm -rf ~/Library/Developer/Xcode/DerivedData/* pod update xcodebuild -workspace MatrixKit.xcworkspace -scheme MatrixKitSample -configuration Release
bash
d_bash_12156
--- +++ @@ -19,7 +19,7 @@ backup_once "$mobydir"/initrd.img backup_once "$mobydir"/vmlinuz64 cp alpine/initrd.img "$mobydir"/initrd.img - cp alpine/kernel/x86_64/vmlinuz64 "$mobydir"/vmlinuz64 + cp kernel/x86_64/vmlinuz64 "$mobydir"/vmlinuz64 fi docker run --rm --privileged --pid=host justincormack/nsenter1...
bash
d_bash_12157
--- +++ @@ -23,22 +23,18 @@ # Testing Swift # ============= -# FIXME(chmou): when review https://review.openstack.org/#change,3712 -# is merged we would be able to use the common openstack options and -# remove the trailing slash to v2.0 auth url. -# # Check if we have to swift via keystone -swift --auth-version...
bash
d_bash_12158
--- +++ @@ -3,7 +3,7 @@ case "$1" in java8) - echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u332-b09/OpenJDK8U-jdk_x64_linux_hotspot_8u332b09.tar.gz" + echo "https://github.com/bell-sw/Liberica/releases/download/8u333+2/bellsoft-jdk8u333+2-linux-amd64.tar.gz" ;; java11) ec...
bash
d_bash_12159
--- +++ @@ -27,4 +27,7 @@ flake8 # Type hints -mypy **/*.py --ignore-missing-imports +# Must be separate commands to avoid duplicate module error +# See https://github.com/python/mypy/issues/4008#issuecomment-332032784 +mypy */*.py --ignore-missing-imports +mypy */*/*.py --ignore-missing-imports
bash
d_bash_12160
--- +++ @@ -1,3 +1,6 @@ -sudo easy_install pip -pip install appdirs -pip install requests --upgrade +sudo apt-get update +sudo apt-get install python3-setuptools +sudo easy_install3 pip +sudo mv /usr/local/bin/pip /usr/local/bin/pip3 +pip3 install appdirs +pip3 install requests --upgrade
bash
d_bash_12161
--- +++ @@ -7,5 +7,14 @@ mkdir ./tag_build # create and checksum the tarball -tar -czvf ./tag_build/${TRAVIS_TAG}.tar.gz --exclude='tag_build' --exclude='.git' --transform "s,^\.,python-gssapi-${TRAVIS_TAG}," . + +# no bashisms for portability +if [ x"${TRAVIS_TAG#v[0-9]}" = "x${TRAVIS_TAG}" ]; then + PYTHON_G...
bash
d_bash_12162
--- +++ @@ -7,11 +7,12 @@ fi # ODE has always been infatuated with its own renderer and demonstrations. -# I don't need these. I do need double precision though. +# I don't need these. I do need double precision and the libccd colliders. ./configure --with-drawstuff=None \ --disable-demos \ ...
bash
d_bash_12163
--- +++ @@ -14,7 +14,8 @@ nvm install 8.9.4 nvm install 10.16.3 nvm install 12.16.3 -nvm alias default 12.16.3 +nvm install 16.5.0 +nvm alias default 16.5.0 echo "Installing npm packages..." preload_npm_pkg_list
bash
d_bash_12164
--- +++ @@ -5,5 +5,5 @@ export MAVEN_OPTS="-Xmx2G" java -Xmx2G \ - -jar BuildTools.jar - # --rev 1.8.4 + -jar BuildTools.jar \ + --rev 1.8.5
bash
d_bash_12165
--- +++ @@ -25,7 +25,7 @@ fi for f in *; do - if [[ "$f" != "third_party" ]] && [[ "$f" != "CMakeCache.txt" ]]; then + if [[ "$f" != "third_party" ]]; then rm -rf $f fi done
bash
d_bash_12166
--- +++ @@ -26,3 +26,4 @@ ci XCTUITestRunner iphonesimulator build-tests ci XCTUITestRunner iphoneos build-tests fi +
bash
d_bash_12167
--- +++ @@ -1,5 +1,6 @@ alias .=pwd +alias -- -='cd -' alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..'
bash
d_bash_12168
--- +++ @@ -1,6 +1,6 @@ ORGANIZATION_NAME="example" USERNAME="admin4example" -EMAIL="admin@example.com" +EMAIL="admin@contoso.com" PASSWORD="pass1234" bundle exec rake cartodb:db:create_user EMAIL="${EMAIL}" PASSWORD="${PASSWORD}" SUBDOMAIN="${USERNAME}"
bash
d_bash_12169
--- +++ @@ -1,4 +1,4 @@ -source ~/venv/bin/activate +. ~/venv/bin/activate python3 ~/core/pwb.py touch -page:"صفحهٔ_اصلی" -purge python3 ~/core/pwb.py hujibot_20 python3 ~/core/pwb.py weekly-slow 14
bash
d_bash_12170
--- +++ @@ -1,13 +1,10 @@ -export COLORTERM=1 -export CLICOLOR=1 - alias ls='_ls_lazy' _ls_lazy() { if type -p colorls &> /dev/null; then - alias ls='colorls' - colorls $@ + alias ls='colorls -G' + colorls -G $@ elif type -p gls &> /dev/null; then alias ls='gls --co...
bash
d_bash_12171
--- +++ @@ -2,7 +2,7 @@ set -ex -o pipefail BCBIO_VERSION="1.0.9a" -BCBIO_REVISION="37b69ef" +BCBIO_REVISION="59dd08e" NS="quay.io/bcbio" TAG="${BCBIO_VERSION}-${BCBIO_REVISION}"
bash
d_bash_12172
--- +++ @@ -1,4 +1,9 @@ #!/bin/bash + +#Move to the folder where ep-lite is installed +FOLDER=$(dirname $(readlink -f $0)) +cd $FOLDER +echo $FOLDER if [[ $EUID -eq 0 ]]; then echo "You shouldn't start Etherpad-Lite as root!" 1>&2
bash
d_bash_12173
--- +++ @@ -9,6 +9,6 @@ done export DISPLAY=:99 -bundle exec rake ci:setup:testunit test +bundle exec rake test RESULT=$? exit $RESULT
bash
d_bash_12174
--- +++ @@ -1,7 +1,8 @@ #!/bin/bash -USER=rvernica -# API_KEY= +USERNAME=rvernica +# APIKEY= +# PASSPHRASE= names="\ scidb-15.7 \ @@ -18,14 +19,18 @@ echo 1. Create env NAME=$name envsubst < create.json.tmpl | \ - curl --data @- \ + curl --request POST --user $USERNAME:$APIKEY \ ...
bash
d_bash_12175
--- +++ @@ -3,7 +3,7 @@ # Jenkinsから呼び出されて、articlesの中にあるフォルダへ移動して`make`を実行します。 # `make`に成功した場合、PDFはpushされた日時とコミットIDに基づいて表示用のフォルダへコピーされます。 -set -e +set -ex # Checkout the branch git checkout "$branch"
bash
d_bash_12176
--- +++ @@ -10,4 +10,4 @@ cd $project_dir glide install -make docker push +make clean docker push
bash
d_bash_12177
--- +++ @@ -4,6 +4,20 @@ python -c 'import os;print(os.curdir)' . ./venv/bin/activate; +pushd `pwd`; cd fonts; -python -c 'import os;print(os.curdir)' -fontmake -m ../sources/RobotoSlab.designspace +fontmake -m ../sources/RobotoSlab.designspace; +popd; + +FILES=$(find fonts/master_ttf -type f -name "*.ttf") +for...
bash
d_bash_12178
--- +++ @@ -5,7 +5,7 @@ export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" -nvm use 6 || exit $? +nvm use 10 || exit $? npm install || exit $? RC=0
bash
d_bash_12179
--- +++ @@ -1,12 +1,14 @@ #!/bin/bash - # Link 'sinon' to local development dir SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -cd "$SCRIPT_DIR/.." +SINON_ROOT="$SCRIPT_DIR/../../../.." + +cd "$SINON_ROOT" npm link # Install examples project and link to local sinon folder cd "$SCRIPT_DIR" +rm ...
bash
d_bash_12180
--- +++ @@ -2,7 +2,7 @@ set -eux -BOOST_VERSIONS=(1.61.0 1.62.0 1.63.0 1.64.0 1.65.1 1.66.0) +BOOST_VERSIONS=(1.61.0 1.62.0 1.63.0 1.64.0 1.65.1 1.66.0 1.67.0) BOOST_LIBRARIES="chrono,date_time,python,system,test,thread" BUILD_ROOT=/tmp/boosts
bash
d_bash_12181
--- +++ @@ -1,7 +1,7 @@ set -v echo "gem: --no-ri --no-rdoc --no-document" > ~/.gemrc -travis_retry gem install bundler -v "~> 1.10.6" +travis_retry gem install bundler -v ">= 1.11.1" if [[ -n "${GEM}" ]] ; then cd gems/${GEM}
bash
d_bash_12182
--- +++ @@ -11,7 +11,7 @@ echo "Installing oh-my-zsh" rm -rf $HOME/.oh-my-zsh -git clone git://github.com/robbyrussell/oh-my-zsh.git $HOME/.oh-my-zsh +git clone https://github.com/robbyrussell/oh-my-zsh.git $HOME/.oh-my-zsh echo "Creating symlink to zsh theme" ln -s $PWD/ragnarok.zsh-theme $HOME/.oh-my-zsh/th...
bash
d_bash_12183
--- +++ @@ -4,9 +4,9 @@ src/lifetime/lifetime.rs ) -echo "Checking if any rust file has a line longer than 75 characters" +echo "Checking if any rust file has a line longer than 79 characters" -suspects=$(grep -Pl ".{76}" src/*/*.rs) +suspects=$(grep -Pl ".{80}" src/*/*.rs) status=$? any_offender=false @@...
bash
d_bash_12184
--- +++ @@ -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_12185
--- +++ @@ -6,6 +6,10 @@ if [ -d $i ]; then pushd $i ./buildAndTest.sh + if [ $? -ne 0 ]; then + echo "Compilation of $i failed, exiting" + exit 1 + fi popd else echo "Can't build $i"
bash
d_bash_12186
--- +++ @@ -1,2 +1,2 @@ #!/bin/bash -./youtube-dl -i -f bestvideo+bestaudio --merge-output-format mkv -o "SYNC/%(uploader)s/ID/%(id)s.mkv" $* +./youtube-dl -i -f bestvideo+bestaudio --merge-output-format mkv -o "SYNC/$1/ID/%(id)s.mkv" $2
bash
d_bash_12187
--- +++ @@ -1,19 +1,19 @@ #!/bin/sh if which apt-get >/dev/null; then - sudo apt-get install dialog git nano zsh coreutils wget autojump software-properties-common python-software-properties realpath + sudo apt-get --yes install dialog git nano zsh coreutils wget autojump software-properties-common python-s...
bash
d_bash_12188
--- +++ @@ -5,7 +5,7 @@ # Public certificate generated with: openssl req -nodes -new -x509 -key key.pem -out cert.pem -days 365 -# Signature generated with: +# Signature generated with (currently only sha1 is supported): openssl dgst -sign key.pem -sha1 server/main.js | xxd -p > server/main.js.sig # See local...
bash
d_bash_12189
--- +++ @@ -2,7 +2,7 @@ if [ $(ask "Should I mess with zsh?") == 'y' ]; then - curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh + sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # install zsh-syntax-highlighting mkdir -p "${H...
bash
d_bash_12190
--- +++ @@ -32,13 +32,13 @@ echo "> mkdir $PROJECT_DIR_BASE" mkdir $PROJECT_DIR -for name in lib scripts .gitignore index.scss package.json LICENSE.md; do +for name in lib .gitignore bs-config.js index.scss LICENSE.md package.json; do echo "> cp -r $PACKAGE_DIR_BASE/$name $PROJECT_DIR_BASE/$name" cp -r $PAC...
bash
d_bash_12191
--- +++ @@ -12,6 +12,10 @@ opts=$(wp --completions | grep ^$prev | cut -d ' ' -f 2- | tr '\n' ' ') fi - COMPREPLY=( $(compgen -W "$opts" -- $cur) ) + if [[ 'create' = $prev ]]; then + COMPREPLY=( $(compgen -f "$cur") ) + else + COMPREPLY=( $(compgen -W "$opts" -- $cur) ) + fi } complete -F _wp wp
bash
d_bash_12192
--- +++ @@ -22,8 +22,6 @@ for distribution in ${DISTRIBUTIONS}; do for dir in ${DESTINATION}${distribution}/*/*; do - # "--checksum sha" is for CentOS 5. If we drop CentOS 5 support, - # we can remove the option. - test -d $dir && run createrepo --checksum sha $dir + test -d $dir && run createrepo $dir d...
bash
d_bash_12193
--- +++ @@ -1,5 +1,5 @@ #!/usr/bin/env bash -echo 'Started. See import_all_country.log for progres...' +echo 'Started. See data/logs/import_all_country.log for progress...' truncate -s 0 data/logs/all.log -time find data/cache/country_data -type f -name '*_12.xlsm' ! -name '~$*' -print -exec date --iso-8601=secon...
bash
d_bash_12194
--- +++ @@ -1,6 +1,9 @@ # setup ssh key ssh-keygen -f ~/.ssh/id_rsa -t rsa -N '' cat ~/.ssh/id_rsa.pub | sudo tee -a ~root/.ssh/authorized_keys +ssh-keyscan -H 0.0.0.0 >> ~/.ssh/known_hosts +ssh-keyscan -H 127.0.0.1 >> ~/.ssh/known_hosts +ssh-keyscan -H localhost >> ~/.ssh/known_hosts # Project git clone https...
bash
d_bash_12195
--- +++ @@ -5,3 +5,9 @@ # Integrated components python -m unittest pyresttest.test_resttest pyresttest.test_tests pyresttest.test_benchmarks +# Command-line call tests (use github API) +python pyresttest/functionaltest.py + +# Extensions test +sh test_use_extension.sh +
bash
d_bash_12196
--- +++ @@ -4,7 +4,7 @@ exit 1 fi -cd examples/hello-world/ +pushd examples/hello-world/ npm install npm start @@ -12,5 +12,16 @@ if [ "$?" -gt 0 ]; then exit 1 fi +popd + +pushd examples/simple-crud + +npm install +npm run print + +if [ "$?" -gt 0 ]; then + exit 1 +fi +popd exit 0
bash
d_bash_12197
--- +++ @@ -36,7 +36,8 @@ esac done -file_list=$(curl "http://hg.mozilla.org/releases/mozilla-release/file/$CHANGESET/tools/update-packaging?style=raw" | awk '{print $3}') + +file_list=$(curl "http://hg.mozilla.org/integration/mozilla-inbound/file/$CHANGESET/tools/update-packaging?style=raw" | awk '{print $3}...
bash
d_bash_12198
--- +++ @@ -34,6 +34,6 @@ rm -f code.zip echo echo '>>> Zipping' -echo ">>> cd $root && zip -r ../deploy-$version.zip *" +echo ">>> cd $root && zip -r9 --symlink ../deploy-$version.zip *" echo -(cd $root && zip -9 -r ../deploy-$version.zip *) +(cd $root && zip -r9 --symlink ../deploy-$version.zip *)
bash
d_bash_12199
--- +++ @@ -13,13 +13,13 @@ if [ "$TRAVIS_BRANCH" == "develop" ]; then echo "Build develop arm" - docker build -t jc5x/firefly-iii:develop-arm -f Dockerfile-ARM . + docker build -t jc5x/firefly-iii:develop-arm -f Dockerfile-ARM --platform arm . docker push jc5x/firefly-iii:develop-arm fi if [ "...
bash