document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_9700 | ---
+++
@@ -49,6 +49,8 @@
brew cask install karabiner
brew install nmap
brew install zsh
+brew cask install functionflip
+brew cask install shades
# Other stuff | bash |
d_bash_9701 | ---
+++
@@ -26,5 +26,5 @@
}
} END {
printf("TODO:%d, XXX:%d, WIP:%d\n", todo, xxx, wip);
- }' \
- | less -R --quit-if-one-screen
+ }'
+ | bash |
d_bash_9702 | ---
+++
@@ -26,5 +26,14 @@
fi
export PATH="$NODE_DIR/bin:$PATH"
+
+export GEM_HOME=../gems
+
+if [ ! -f ../gems/bin/sass ]; then
+ gem install sass --version=3.2.14 --no-rdoc --no-ri
+fi
+
+export PATH="$GEM_HOME/bin:$PATH"
+
# Fetch NPM modules, compile CSS
make all public-production | bash |
d_bash_9703 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Setup ApiAxle with dev key/secret
-curl -X POST -H 'Content-type: application/json' 'http://api/v1/api/apiaxle' -d '{"endPoint":"api"}'
+curl -X POST -H 'Content-type: application/json' 'http://api/v1/api/apiaxle' -d '{"endPoint":"api", "endPointTimeout": 5}'
curl -X... | bash |
d_bash_9704 | ---
+++
@@ -1,5 +1,12 @@
#!/bin/sh
-git clone --depth 1 --single-branch --branch master https://github.com/nhsuk/ci-deployment.git scripts/ci-deployment
+git clone https://github.com/nhsuk/ci-deployment.git scripts/ci-deployment
+
+if [ -n "${CI_SCRIPT_BRANCH}" ]; then
+ (
+ cd scripts/ci-deployment &&
+ gi... | bash |
d_bash_9705 | ---
+++
@@ -3,15 +3,22 @@
set -o errexit
set -o nounset
+SOURCE="${BASH_SOURCE[0]}"
+while [ -h "$SOURCE" ]; do
+ DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
+ SOURCE="$(readlink "$SOURCE")"
+ [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
+done
+readonly OWN_DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
+
func... | bash |
d_bash_9706 | ---
+++
@@ -1 +1 @@
-nohup ruby broker.rb -o 0.0.0.0 >> /var/log/broker 2>&1 &
+nohup ruby broker.rb -o 0.0.0.0 >> broker.log 2>&1 & | bash |
d_bash_9707 | ---
+++
@@ -9,5 +9,5 @@
sudo update-alternatives --quiet --set gcc /usr/bin/gcc-4.8
if ! [ -z "${BUILD_CAPNP}" ]; then
- wget https://capnproto.org/capnproto-c++-0.5.1.tar.gz && tar xzvf capnproto-c++-0.5.1.tar.gz && cd capnproto-c++-0.5.1 && ./configure && make -j6 check && sudo make install && sudo ldconfig &&... | bash |
d_bash_9708 | ---
+++
@@ -44,5 +44,10 @@
wget \
zip \
zlib1g-dev
+
+# Install ca-certificates, and update the certificate store.
+apt-get install ca-certificates-java
+update-ca-certificates -f
+
apt-get clean
rm -rf /var/lib/apt/lists/* | bash |
d_bash_9709 | ---
+++
@@ -33,6 +33,9 @@
# Install xml2json tool
npm install -g xml2json-command
+# Install pa11y tool for web accessibility checks
+npm install -g pa11y
+
# Perl Packages
###############################################################################
| bash |
d_bash_9710 | ---
+++
@@ -2,13 +2,25 @@
# cat > /dev/null
# And press it
-bindkey "^K" kill-whole-line # ctrl-k
+## Emacs keybindings
+#bindkey "^K" kill-whole-line # ctrl-k
bindkey "^R" history-incremental-search-backward # ctrl-r
-bindkey "^E" beginning-of-line ... | bash |
d_bash_9711 | ---
+++
@@ -1,5 +1,5 @@
# detect homebrew
-if [[ $(command -v brew 2>/dev/null) ]]; then
+if [[ $(hash brew 2>/dev/null) ]]; then
brew_prefix=$(brew --prefix)
fi
| bash |
d_bash_9712 | ---
+++
@@ -43,3 +43,6 @@
}
fi
+
+# Add MacTeX install directory to PATH
+export PATH=$PATH:/usr/local/texlive/2017/bin/x86_64-darwin | bash |
d_bash_9713 | ---
+++
@@ -4,12 +4,16 @@
BRANCH_NAME='latest'
+set +e
+git branch -D ${BRANCH_NAME}
+set -e
+
rm -rf lib
rm -rf node_modules
npm version patch
+git branch ${BRANCH_NAME}
git checkout ${BRANCH_NAME}
-git merge master
npm install
grunt build
@@ -18,7 +22,7 @@
git add -f lib/
git add -f node_modules/
... | bash |
d_bash_9714 | ---
+++
@@ -8,7 +8,9 @@
# Compile wheels
for PYBIN in /opt/python/*${PYVER/./}*/bin; do
"$PYBIN/pip" install -U numpy pypandoc twine cython
- if [[ "$BUILD_ARCH" != i686 ]]; then
+ if [[ "$BUILD_ARCH" == i686 ]]; then
+ yum install -y openssl-devel
+ else
yum install -y gmp-devel
"$PYBIN/python" ... | bash |
d_bash_9715 | ---
+++
@@ -1,11 +1,12 @@
#!/usr/bin/env bash
hookName=$(basename $0)
-hookPathStart=$GL_ADMIN_BASE/hooks/common/.generated/$hookName
-commonScope=$hookPathStart.common.*
-repositoryScope=$hookPathStart.repository.$(echo $GL_REPO | sed "s/\//-/g").*
+hooksRoot=$GL_ADMIN_BASE/hooks/common/.generated
+repositoryNam... | bash |
d_bash_9716 | ---
+++
@@ -16,4 +16,7 @@
source osx/set-defaults.sh
fi
+echo "Configuring zsh as default shell"
+chsh -s $(which zsh)
+
echo "Completed" | bash |
d_bash_9717 | ---
+++
@@ -18,7 +18,7 @@
echo "Downloading Caffe model info to $MODEL_DIR ..."
mkdir -p $MODEL_DIR
-wget https://gist.github.com/$GIST/download -O $MODEL_DIR/gist.tar.gz
-tar xzf $MODEL_DIR/gist.tar.gz --directory=$MODEL_DIR --strip-components=1
-rm $MODEL_DIR/gist.tar.gz
+wget https://gist.github.com/$GIST/down... | bash |
d_bash_9718 | ---
+++
@@ -9,19 +9,13 @@
# https://github.com/dbb
-# These are taken directly from the instructions you see after you create a new
-# repo. As the names imply, new_gh() assumes you're starting from scratch in a
-# directory named after the repo (this name is the only argument it takes), and
-# exist_gh() assum... | bash |
d_bash_9719 | ---
+++
@@ -22,4 +22,4 @@
#
cd /etc/ansible
-ansible-playbook /etc/ansible/playbooks/deploy.yml
+ansible-playbook /etc/ansible/playbooks/deploy.yml $* | bash |
d_bash_9720 | ---
+++
@@ -18,7 +18,8 @@
# first backup!
BACKUP_DIR="$BACKUPS_DIR/1"
fi
-rm -fR "$BACKUP_DIR.partial"
-mkdir "$BACKUP_DIR.partial"
-rsync -avz --delete ${MOST_RECENT_BACKUP_DIR:+--link-dest="$MOST_RECENT_BACKUP_DIR"} "$SOURCE_DIR" "$BACKUP_DIR.partial"
-mv "$BACKUP_DIR.partial" "$BACKUP_DIR"
+PARTIAL_DIR="$BACK... | bash |
d_bash_9721 | ---
+++
@@ -8,6 +8,6 @@
service redis-server start 1>&2
service celeryd start 1>&2
-/load-whyis-data.sh 1&>2
+/load-whyis-data.sh 1>&2
exec "$@" | bash |
d_bash_9722 | ---
+++
@@ -14,7 +14,7 @@
GOOS=linux GOARCH=amd64 go build -o ../dist/findaphotoserver
cd content
-ng build
+ng build --prod
cp -R dist ../../dist/content
cd ../.. | bash |
d_bash_9723 | ---
+++
@@ -14,12 +14,8 @@
END_FOLD
fi
-if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
- extended="--extended --exclude feature_pruning"
-fi
-
if [ "$RUN_FUNCTIONAL_TESTS" = "true" ]; then
BEGIN_FOLD functional-tests
- DOCKER_EXEC test/functional/test_runner.py --ci --combinedlogslen=4000 --coverage --quiet -... | bash |
d_bash_9724 | ---
+++
@@ -10,7 +10,7 @@
command sudo -u moc-tools cat "$SCRIPT_DIR/helpdesk/help.txt" | more
elif [[ $@ =~ ^reset-password ]]; then
shift 1
- command sudo -u moc-tools python "$SCRIPT_DIR/helpdesk/reset-password.py" $@
+ command sudo -u moc-tools python "$SCR... | bash |
d_bash_9725 | ---
+++
@@ -8,7 +8,7 @@
if [[ "$COVERAGE" == "true" ]]; then
export NUMBA_DISABLE_JIT=1
- nosetests -s --with-coverage --cover-package=$MODULE $MODULE
+ travis_wait 30 nosetests -s --with-coverage --cover-package=$MODULE $MODULE
else
nosetests -s $MODULE
fi | bash |
d_bash_9726 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-set -eux
+set -eu
set -o pipefail
SECURITY="/usr/bin/security"
@@ -13,7 +13,7 @@
"${SECURITY}" unlock-keychain -p "${NIGHTLY_KEYCHAIN_PASSPHRASE}" "${KEYCHAIN}"
"${SECURITY}" import "${P12}" -k "${KEYCHAIN}" -P "${NIGHTLY_KEYCHAIN_PASSPHRASE}" -T /usr/bin/codesign
-"${... | bash |
d_bash_9727 | ---
+++
@@ -8,7 +8,7 @@
#
## Configuration
-DOMAIN_NAME=`hostname -d`
+DOMAIN_NAME=$1
KEY_SIZE='2048'
## Constants
@@ -19,6 +19,12 @@
echo "### Beginning Install ###"
( # Start log capture
+
+# If not set
+if [ -z ${DOMAIN_NAME} ]; then
+ echo "Domain name not set. Usage: ./ssl-cert.sh <domain>"
+ e... | bash |
d_bash_9728 | ---
+++
@@ -2,30 +2,32 @@
local _sublime_darwin_paths > /dev/null 2>&1
_sublime_darwin_paths=(
- "/usr/local/bin/subl"
- "$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
- "$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
- "/Applications/Sublime Text 2.app/Contents/Shar... | bash |
d_bash_9729 | ---
+++
@@ -2,47 +2,22 @@
#
# Set up wrappers around gcc/g++/gfortran
-VER=gcc-4.9.3
+VER=5.2.0
source ./helper.sh
set_stage
-# Write a wrapper around a driver (adds rpath entries)
-function write_wrapper() {
-cat > $PREFIX/$VER/bin/$1 <<EOF
-#!/bin/sh
-GCC_WRAPPER_DIRS="$PREFIX/$VER/lib64 $PREFIX/lib64 $PREF... | bash |
d_bash_9730 | ---
+++
@@ -8,12 +8,12 @@
echo "Script failed" 1>&2
exit 1
fi
- if ! sqlite3 <script.sql >script.out ; then
+ if ! sqlite3 <script.sql >script.out 2>&1 ; then
echo "Sqlite execution failed" 1>&2
exit 1
fi
if egrep -v -e '^ok [0-9]' -e '^[0-9]+\.\.[0-9]+.?$' script.out ; then
- echo "... | bash |
d_bash_9731 | ---
+++
@@ -36,7 +36,7 @@
./install.sh
# install static webserver to server symlinked local copy of riot
./riot/install-webserver.sh
-mkdir logs
+mkdir logs || rm -r logs/*
echo "+++ Running end-to-end tests"
TESTS_STARTED=1
./run.sh --no-sandbox --log-directory logs/ | bash |
d_bash_9732 | ---
+++
@@ -5,3 +5,7 @@
mv dist/pack-o-bot-win32-ia32 dist/pack-o-bot
cd dist && zip -qr pack-o-bot-win.zip pack-o-bot && cd -
rm -fr dist/pack-o-bot
+electron-packager . --overwrite --asar=true --platform=linux --arch=ia32 --out=dist
+mv dist/pack-o-bot-linux-ia32 dist/pack-o-bot
+cd dist && tar czvf pack-o-bot-l... | bash |
d_bash_9733 | ---
+++
@@ -1,8 +1,17 @@
-log "generating a new pair of SSH keys"
+# Old style SSH host keys were stored under /etc/ssh and needed to be
+# recreated using /lib/svc/method/sshd -c.
+#
+# New (SmartOS) style SSH host keys are stored under /var/ssh and are
+# automatically recreated by the SMF method if missing.
+#
+# ... | bash |
d_bash_9734 | ---
+++
@@ -16,7 +16,7 @@
docker run --detach --restart always -p 127.0.0.1:$INTERNAL_PORT:$INTERNAL_PORT --name $PROJECT_NAME $PROJECT_NAME:production
# Cleanup docker
-docker image prune -f --filter "until=14d"
+docker image prune -f --filter "until=336h"
# Update nginx
sudo service nginx reload | bash |
d_bash_9735 | ---
+++
@@ -12,4 +12,4 @@
cd $HOME
rm .vimrc* .zshrc* .tmux.conf .gitconfig*
-rm -rf applications
+rm -rf $HOME/$BIN | bash |
d_bash_9736 | ---
+++
@@ -13,7 +13,7 @@
make all
cd ../
mv bedtools2-2.25.0 ${TOOLS_PATH}/
- rm v2.25.0.tar.gz
+ rm bedtools_v2.25.0.tar.gz
cd ${TOOLS_PATH}
ln -s bedtools2-2.25.0 ${TOOLS_PATH}/bedtools
| bash |
d_bash_9737 | ---
+++
@@ -20,6 +20,11 @@
exit 1
fi
+if [ ! "${GIT_SSH_KEY}x" == "x" ]
+then
+ ssh-add ${GIT_SSH_KEY}
+fi
+
echo "Preparing to clone project: ${KURENTO_GIT_REPOSITORY}/${PROJECT_NAME} (${BRANCH})"
git clone ${KURENTO_GIT_REPOSITORY}/${PROJECT_NAME} || exit 1 | bash |
d_bash_9738 | ---
+++
@@ -22,6 +22,13 @@
echo "$cmd"
eval "$cmd"
-echo 'All done, import into the database'
-upsertfields="name,start,studio,style,postcode,timezone"
-mongoimport -c courses -d aggregate --file "$coursefile" --upsertFields "$upsertfields"
+if [[ $? -eq 0 ]]
+then
+ echo 'All done, removing previous later value... | bash |
d_bash_9739 | ---
+++
@@ -22,6 +22,5 @@
echo "---------------------------"
(cd $CONTENT_HOME;
git add *
- git status
- git commit -m "Nightly dump for `date `"
+ git commit -m "Nightly dump for `date '+%Y-%m-%d %H:%M'`"
) | bash |
d_bash_9740 | ---
+++
@@ -8,4 +8,4 @@
mkdir -p $PREFIX/bin
for i in $binaries; do cp $SRC_DIR/$i $PREFIX/bin; done
-cp -rf db_v20 $PREFIX/bin/db_v20
+#cp -rf db_v20 $PREFIX/bin/db_v20 | bash |
d_bash_9741 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
# PPA for latest go
-sudo add-apt-repository ppa:longsleep/golang-backports
+sudo add-apt-repository -y ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install -y $(grep -vE "^\s*#" apt-requirements.txt | tr "\n" " ") | bash |
d_bash_9742 | ---
+++
@@ -24,10 +24,26 @@
_gibo()
{
- local cur opts
- opts=$( find ${GIBO_BOILERPLATES:-"$HOME/.gitignore-boilerplates"} -name "*.gitignore" -exec basename \{\} .gitignore \; )
+ local cur prev opts
cur="${COMP_WORDS[COMP_CWORD]}"
- COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ case $... | bash |
d_bash_9743 | ---
+++
@@ -39,7 +39,7 @@
sleep 30
done &
-(sleep 60 && ~/grasp/server/grasp_server.py --path "~/notes/browser-inbox.org")
+(sleep 60 && ~/grasp/server/grasp_server.py --path "~/notes/grasp-inbox.org")
# Open the screen unlock dialogs
(sleep 60 && ~/dotfiles/utils/screen-unlock) & | bash |
d_bash_9744 | ---
+++
@@ -21,5 +21,6 @@
status=0
sudo pg_createcluster --start $PGVERSION test -p 55435 -- -A trust
-make test PG_CONFIG=/usr/lib/postgresql/$PGVERSION/bin/pg_config || status=$?
-exit $status
+make test PG_CONFIG=/usr/lib/postgresql/$PGVERSION/bin/pg_config
+
+[ ! -e test/regression.diffs ] | bash |
d_bash_9745 | ---
+++
@@ -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_9746 | ---
+++
@@ -3,3 +3,27 @@
alias ser="quilt series"
alias series="quilt series"
alias to="quilt top"
+
+_quilt_new() {
+ # Usage:
+ # $ new changes.diff
+ # quilt new changes.diff
+ #
+ # $ new changes
+ # quilt new changes.diff
+ #
+ # $ new my changes
+ # quilt new my-changes... | bash |
d_bash_9747 | ---
+++
@@ -1,21 +1 @@
-
-if [ ! -f /etc/default/docker.backup ]; then
- cp /etc/default/docker /etc/default/docker.backup
-fi
-
-echo '# Docker Upstart and SysVinit configuration file
-
-# Customize location of Docker binary (especially for development testing).
-#DOCKER="/usr/local/bin/docker"
-
-# Use DOCKER_OP... | bash |
d_bash_9748 | ---
+++
@@ -7,9 +7,9 @@
docker-compose up --no-color --force-recreate --remove-orphans -d
tmux -CC \
- new-session "docker-compose logs -f client | cut -f2 -d\\|" \; \
- split-window -h "docker-compose logs -f valve | cut -f2 -d\\|" \; \
- split-window -h "docker-compose logs -f server | cut ... | bash |
d_bash_9749 | ---
+++
@@ -16,4 +16,6 @@
";
+echo 'juttle poller unexpectedly exited';
+
tail -f /dev/null | bash |
d_bash_9750 | ---
+++
@@ -1 +1 @@
-PGPASS=rospilot_password osm2pgsql --slim --cache 500 --database gis --username rospilot --number-processes 4 --host localhost --style `catkin_find --share rospilot share/mapnik-style/openstreetmap-carto.style` --hstore $@
+PGPASSWORD=rospilot_password osm2pgsql --slim --cache 500 --database gis ... | bash |
d_bash_9751 | ---
+++
@@ -1,8 +1,7 @@
#!/bin/bash -x
-mysql -e 'create database dime;' && \
cp app/config/parameters.yml.travis app/config/parameters.yml.dist && \
composer install -n && \
-php app/console doctrine:schema:create && \
+php app/console doctrine:database:create && \
php app/console --no-interaction doctrine:migra... | bash |
d_bash_9752 | ---
+++
@@ -3,6 +3,6 @@
export DISPLAY=":99"
bundle install --path "/home/jenkins/bundles/${JOB_NAME}" --deployment
-bundle exec rake db:drop db:create db:schema:load
+bundle exec rake db:drop db:create db:structure:load
bundle exec rake assets:clean assets:precompile
bundle exec rake | bash |
d_bash_9753 | ---
+++
@@ -19,5 +19,6 @@
$1
else
exec uwsgi --plugin http,python3 --master --http :8000 --need-app --wsgi-file deploy/wsgi.py \
- --static-map /static=/srv/smbackend/static --processes 4 --threads 1
+ --static-map /static=/srv/smbackend/static --processes 4 --threads 1 \
+ ... | bash |
d_bash_9754 | ---
+++
@@ -1,4 +1,4 @@
-!/bin/bash
+#!/bin/bash
echo 'Starting tests...'
| bash |
d_bash_9755 | ---
+++
@@ -20,4 +20,17 @@
exit_if_fail time go install ./pkg/cmd/grafana-server
echo "running go test"
-go test ./pkg/...
+
+set -e
+echo "" > coverage.txt
+
+time for d in $(go list ./pkg/...); do
+ exit_if_fail go test -coverprofile=profile.out -covermode=atomic $d
+ if [ -f profile.out ]; then
+ cat prof... | bash |
d_bash_9756 | ---
+++
@@ -19,6 +19,7 @@
-c Release \
--include-symbols //p:SymbolPackageFormat=snupkg \
-o .nupkg/ \
+ //p:Version="$version" \
//p:PackageVersion="$version+$metadata" \
//p:PackageReleaseNotes="tag: $tag" \
&& git tag "$tag" -m "Create nuget tag $tag" | bash |
d_bash_9757 | ---
+++
@@ -10,8 +10,9 @@
vim --version | head -1
echo "=== Installing vim configuration (vimrc and vim folder from $parentdir)"
-ln -sf $parentdir/vimrc ~/.vimrc
-ln -sf $parentdir/vim ~/.vim
+mv ~/.vimrc ~/.vim /tmp/
+ln -s $parentdir/vimrc ~/.vimrc
+ln -s $parentdir/vim ~/.vim
echo "=== Installing vim plugi... | bash |
d_bash_9758 | ---
+++
@@ -11,4 +11,4 @@
mv apmplanner2-installer-win32.exe ${TARGET_DIR}/${TARGET_SUBDIR}/apm_planner2_${COMMIT_SHA:0:8}_win.exe
#This will eventually contain my rsync line...
-rsync -avh --password-file=${RSYNC_PASSFILE} ${TARGET_DIR}/${TARGET_SUBDIR}/ ${WEBSITE_USER}@firmware.diydrones.com::APMPlanner/daily/
... | bash |
d_bash_9759 | ---
+++
@@ -9,7 +9,7 @@
if _ant_does_target_list_need_generating; then
ant -p | awk -F " " 'NR > 5 { print lastTarget }{lastTarget = $1}' > .ant_targets
fi
- compadd `cat .ant_targets`
+ compadd -- `cat .ant_targets`
fi
}
| bash |
d_bash_9760 | ---
+++
@@ -41,3 +41,5 @@
echo ssh-chmod failed: $RET
exit 1
fi
+
+echo Setup finished, now try to run ssh -i $FILENAME $USER/$HOST | bash |
d_bash_9761 | ---
+++
@@ -9,9 +9,10 @@
CASSANDRA=':atlasdb-cassandra-tests:check'
SHARED=':atlasdb-tests-shared:check'
+ETE=':atlasdb-ete-tests:check'
case $CIRCLE_NODE_INDEX in
- 0) ./gradlew --continue check -x $CASSANDRA -x $SHARED ;;
+ 0) ./gradlew --continue check -x $CASSANDRA -x $SHARED -x $ETE;;
1) ./grad... | bash |
d_bash_9762 | ---
+++
@@ -1,3 +1,4 @@
+#!/bin/sh
# Copyright 2014 The Rust Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution and at
# http://rust-lang.org/COPYRIGHT. | bash |
d_bash_9763 | ---
+++
@@ -31,7 +31,7 @@
# The prometheus test expects to have only one metrics-server pod, but we use two
# We scale down to meet test expectation
-kubectl scale -n kube-system deploy --replicas=1
+kubectl scale -n kube-system --replicas=1 deployment/metrics-server
# shellcheck disable=SC2164
go test -v ./t... | bash |
d_bash_9764 | ---
+++
@@ -1,9 +1,5 @@
#!/bin/sh
+set -ex
-set -e
-
-echo "----Running flake8----"
flake8 ai_graph_color tests
-
-echo "----Running nosetests----"
nosetests tests | bash |
d_bash_9765 | ---
+++
@@ -1,8 +1,11 @@
#!/bin/bash
+
+# From https://www.youtube.com/watch?v=fBlsmbhMPok
export SC=/Library/OpenSC/lib/opensc-pkcs11.so
#YPT=yubico-piv-tool
YPT=./tool/bin/yubico-piv-tool
+YPT=../../bin/yubico-piv-tool
echo "Resetting CHUID..."
$YPT -s 9a -a set-chuid | bash |
d_bash_9766 | ---
+++
@@ -19,6 +19,14 @@
fi
}
+ getHybridPath(){
+ if [[ $(uname) =~ NT && $TERM =~ xterm ]]; then
+ local path=$(_getPathWin ${@})
+
+ echo ${path//\\/\/}
+ fi
+ }
+
getPath(){
if [[ $(uname) =~ NT ]]; then
_getPathWin ${@} | bash |
d_bash_9767 | ---
+++
@@ -18,6 +18,12 @@
else
xcrun cp -R "${BUILT_PRODUCTS_DIR}/../Release-iphonesimulator/include/Realm" "${SF_FRAMEWORK_PATH}/Headers"
fi
+
+# Step 3 - copy resources
+/bin/mkdir -p "${SF_FRAMEWORK_PATH}/Resources"
+xcrun cp "${SRCROOT}/CHANGELOG.md" "${SF_FRAMEWORK_PATH}/Resources"
+xcrun cp "${SRCROOT}/Rea... | bash |
d_bash_9768 | ---
+++
@@ -3,4 +3,4 @@
SCRIPT=$(readlink -f $0)
BASE_DIR=`dirname ${SCRIPT}`
-kubectl delete -f "$BASE_DIR/rolling.yml"
+kubectl delete -f "$BASE_DIR/definitions/rolling.yml" | bash |
d_bash_9769 | ---
+++
@@ -3,32 +3,42 @@
# no Python 3 on CentOS 5
[ $1 -eq 5 ] && exit 0
-# install Python 3.9 ------------------------------------------------------------------------------
-yum install -y \
- readline-devel.x86_64
+case "$1" in
+ 8) # install distro python3 package
+ yum install ... | bash |
d_bash_9770 | ---
+++
@@ -11,9 +11,13 @@
./gradlew clean test "${SERVICE_NAME}:jar"
-ansible all -i "${DEPLOY_HOST}," -u "${SERVICE_USER}" -m command -a "mkdir -p ${DEST_PATH}"
-ansible all -i "${DEPLOY_HOST}," -u "${SERVICE_USER}" -m copy -a "src=${JAR_PATH} dest=${DEST_PATH}"
-ansible all -i "${DEPLOY_HOST}," -u "${SERVICE_... | bash |
d_bash_9771 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-INPUT=$(xinput | grep -i "synps" )
+INPUT=$(xinput | grep -i "synaptics" )
echo $INPUT
| bash |
d_bash_9772 | ---
+++
@@ -1,4 +1,18 @@
#!/bin/bash -e
+
+#
+# Summary
+# ipinfo.sh - simple query to API for info on an IP address.
+#
+# Usage
+# ./ipinfo.sh [address]
+#
+# Description
+# Returns info on hostname, city, region, country, lat-long coordinates,
+# organization, and mail code, all in JSON format. If an IP ... | bash |
d_bash_9773 | ---
+++
@@ -16,7 +16,8 @@
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Copy into tmpdir
-cp -R $DIR/website/ $DEPLOY/
+shopt -s dotglob
+cp -r $DIR/website/* $DEPLOY/
# Change into that directory
pushd $DEPLOY &>/dev/null
@@ -25,6 +26,7 @@
touch .gitignore
echo ".sass-cache" >> .gitignore
echo "bu... | bash |
d_bash_9774 | ---
+++
@@ -16,6 +16,13 @@
then
echo "...<Field> in the schema have not been replaced."
exit 1
+elif grep -E "\]\([^/.]*\.html" ./build/vega-lite-schema.json
+then
+ echo "Schema description contains relative URL."
+ exit 1
else
exit 0
fi
+
+
+ | bash |
d_bash_9775 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
sudo apt-get update
-sudo apt-get -y install docker.io openssl libssl-dev ncat
+sudo apt-get -y install docker.io openssl libssl-dev nmap
bundle install | bash |
d_bash_9776 | ---
+++
@@ -9,8 +9,7 @@
cd "$DIR/.."
# Set up python
-curl https://bootstrap.pypa.io/get-pip.py | python3.9
-pip3 install --no-cache-dir -r requirements.txt
+pip install --no-cache-dir -r requirements.txt
# Set up node
npm ci | bash |
d_bash_9777 | ---
+++
@@ -1,2 +1,7 @@
source venv/bin/activate
-gunicorn server:app
+
+# Workers might stall for a while on slower API requests
+WORKER_TIMEOUT=60
+
+gunicorn --timeout=$WORKER_TIMEOUT server:app
+ | bash |
d_bash_9778 | ---
+++
@@ -9,7 +9,7 @@
# TODO: `grep bits-service` again, once bits-service is not co-located on api anymore
export BITS_SERVICE_PRIVATE_ENDPOINT_IP=$(
bosh vms ${DEPLOYMENT_NAME} \
- | grep api \
+ | grep ' api' \
| grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+'
)
| bash |
d_bash_9779 | ---
+++
@@ -1,11 +1,13 @@
-alias be='bundle exec'
-alias bower='noglob bower'
-alias c='clear'
-alias cr='clear && rspec'
-alias lsl='ls -al'
-alias migrate='bundle exec rake db:migrate db:test:prepare'
-alias zmigrate='zeus rake db:migrate db:test:prepare'
-alias zrss='zeus rspec spec/'
+alias be="bundle exec"
+alia... | bash |
d_bash_9780 | ---
+++
@@ -1,6 +1,6 @@
-export DOCKER_TAG=latest
+export DOCKER_TAG=Release_2020_03
export GIT_REPO=https://github.com/rdkit/rdkit.git
-export GIT_BRANCH=master
+export GIT_BRANCH=Release_2020_03
unset GIT_TAG
export BASE=artran | bash |
d_bash_9781 | ---
+++
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
-../tools/xsd-validator/xsdv.sh iso-19139-20070417/gmx/gmx.xsd antenna-receiver-codelists.xml
-exit 0
+../tools/xml-schemer/bin/schemer.sh schema --xml antenna-receiver-codelists.xml --xsd ../schemas/third-party/iso-19139-20070417/gmx/gmx.xsd | bash |
d_bash_9782 | ---
+++
@@ -3,4 +3,4 @@
set -xeu
cd "$(dirname "$0")/.."
-cargo build --features "$BINDGEN_FEATURES testing_only_docs"
+cargo check --features "$BINDGEN_FEATURES testing_only_docs" | bash |
d_bash_9783 | ---
+++
@@ -1,4 +1,5 @@
GIT=https://github.com/redox-os/freedoom.git
+DEPENDS=(ion prboom)
function recipe_version {
echo "0.11.3"
@@ -26,8 +27,18 @@
}
function recipe_stage {
- mkdir -pv "$1/share/games/doom"
- cp -Rv ./*.wad "$1/share/games/doom"
+ mkdir -pv "$1/games" "$1/share/games/doom"
+ ... | bash |
d_bash_9784 | ---
+++
@@ -12,6 +12,6 @@
cd ${DIR} &&
cp resources/config/local.ci.php resources/config/local.php
composer -q -n install &&
- phpunit -d display_errors=1 tests/
+ phpunit -d display_errors=1
"
ssh ${USER}@${HOST} "rm -rf ${DIR}" | bash |
d_bash_9785 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
TRAVIS_PROTO=http
-TRAVIS_MIRROR=auto.voidlinux.org
+TRAVIS_MIRROR=vm1.a-mci-us.m.voidlinux.org
for _i in etc/repos-remote.conf etc/defaults.conf etc/repos-remote-x86_64.conf ; do
printf '\x1b[32mUpdating %s...\x1b[0m\n' $_i | bash |
d_bash_9786 | ---
+++
@@ -24,5 +24,5 @@
done
pushd pkg >/dev/null 2>&1
-shasum -a256 *.zip > aero_SHA256SUMS
+shasum -a256 *.zip > aero_${VERSION}_SHA256SUMS
popd >/dev/null 2>&1 | bash |
d_bash_9787 | ---
+++
@@ -3,10 +3,8 @@
COMMIT_SOURCE=$2
SHA1=$3
-# --amend case
-if [ "$SHA1" == "HEAD" ]; then
- exit 0
+# When empty we are in simple commit case (no --amend nor non fast-forward merge)
+if [[ -z "$SHA1" && -z "$COMMIT_SOURCE" ]]; then
+ # Add branch name at the beginning of the commit message
+ echo... | bash |
d_bash_9788 | ---
+++
@@ -1,6 +1,6 @@
export VISUAL="$EDITOR"
export HOMEBREW_EDITOR="$EDITOR"
-export GIT_EDITOR="$(which mvim || which vim) -f" # http://is.gd/hGrsF
+export GIT_EDITOR="$EDITOR -f" # http://is.gd/hGrsF
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;32' | bash |
d_bash_9789 | ---
+++
@@ -1,19 +1,20 @@
#!/bin/bash
set -e
+at=-at
dir="/Volumes/Macintosh HD/Users/ricardog/tmp/katia"
islands=KS_layers/Islands_fromIgor_edited.shp
mainland=KS_layers/Mainland_fromIgor_edited.shp
-gdal_rasterize -tap -init 0 -burn 1 -a FID_1 \
+gdal_rasterize -tap -init 0 -burn 1 -a FID_1 ${at} \
... | bash |
d_bash_9790 | ---
+++
@@ -17,6 +17,8 @@
# like: git comm-[tab]
setopt complete_aliases
+setopt extendedglob
+
# automatically report time taken for commands that ran longer than $REPORTTIME
# seconds
REPORTTIME=5 | bash |
d_bash_9791 | ---
+++
@@ -6,7 +6,7 @@
revision_build=$4
RELEASE_TOOLS=$(readlink -f $(dirname $0))
jujud=$(find -path ./juju-build-$SERIES-amd64/juju-core-*/bin/jujud -type f)
-version=$(echo $jujud|sed -r "s/.\/juju-build-$SERIES-amd64\/juju-core-\
+version=$(echo $jujud|sed -r "s/.\/juju-build-$SERIES-$ARCH\/juju-core-\
(.*)... | bash |
d_bash_9792 | ---
+++
@@ -23,6 +23,9 @@
alias tmpsbt='cd /tmp/sbt_$USER`pwd`'
alias tmpsbtclean='mv /tmp/sbt_$USER`pwd` /tmp/sbt_$USER`pwd`/../$RANDOM'
+# cd to top of git repo
+alias cdgt='cd $(git rev-parse --show-toplevel)'
+
# Create a new alias from the last command
# https://medium.com/the-lazy-developer/an-alias-for-n... | bash |
d_bash_9793 | ---
+++
@@ -13,7 +13,8 @@
pub get
# Build the archive.
-if test x$DRONE_REPO_SLUG = xgithub.com/dart-lang/spark -o x$FORCE_NIGHTLY = xyes ; then
+if test \( x$DRONE_REPO_SLUG = xgithub.com/dart-lang/spark -a x$DRONE_BRANCH = xmaster \) \
+ -o x$FORCE_NIGHTLY = xyes ; then
./grind release-nightly
else
./... | bash |
d_bash_9794 | ---
+++
@@ -8,5 +8,5 @@
jirac_get_git_current_remote_branch() {
local branch=$(git rev-parse --symbolic --abbrev-ref $(git symbolic-ref HEAD))
- echo $(git for-each-ref --format='%(refname:short):%(upstream:short)' refs/heads | grep $branch | cut -d: -f2)
+ echo $(git for-each-ref --format='%(refname:sho... | bash |
d_bash_9795 | ---
+++
@@ -4,4 +4,4 @@
version=$(cat $VERSION_FILE)
bosh create release --force --name $RELEASE_NAME --with-tarball --version $version
-mv dev_releases/bits-service/bits-service-*.tgz ../release/
+mv dev_releases/$RELEASE_NAME/$RELEASE_NAME-*.tgz ../release/ | bash |
d_bash_9796 | ---
+++
@@ -24,5 +24,5 @@
done
pushd ${__DIR}/src/
-thin -a ${__IP} -p ${__PORT} -R ./config.ru --tag ${__TAG} start
+thin -d -a ${__IP} -p ${__PORT} -R ./config.ru --tag ${__TAG} start
popd | bash |
d_bash_9797 | ---
+++
@@ -1,4 +1,8 @@
#!/usr/bin/env bash
+
+if ! which -s brew; then
+ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
+fi
if [ -d $HOME/Projects/dotfiles ] && ! [ -L $HOME/.dotfiles ]; then
ln -s $HOME/Projects/dotfiles $HOME/.dotfiles | bash |
d_bash_9798 | ---
+++
@@ -27,7 +27,7 @@
rm -rf /${testDir}
}
- testAppend(){
+ testAppendExistingFile(){
FileWriter append ${testFile} "this is a string"
local content="this is a string" | bash |
d_bash_9799 | ---
+++
@@ -14,9 +14,25 @@
source=~/$var
# Ignore directories that don't exist.
if [ -d "$source" ] ; then
+
destination=$backupdir$var/$today
mkdir -p $destination
rsync -arq $source/ $destination
+
+ # The following rm command removes:
+ # - all subdirectories (and the... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.