document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_14100 | ---
+++
@@ -35,4 +35,4 @@
# Start Node HTTP server and open web browser
alias hso='http-server -c-1 -o'
# Open phpMyAdmin in web browser
-alias pma='open http://localhost:8888/phpMyAdmin/'
+alias pma='open http://localhost/phpMyAdmin/' | bash |
d_bash_14101 | ---
+++
@@ -53,7 +53,7 @@
shift
done
-git remote add remote git@github.com:${remote_repo}
+git remote add remote https://github.com/${remote_repo}
git fetch remote
git checkout -f ${commit_id}
make clean all | bash |
d_bash_14102 | ---
+++
@@ -29,9 +29,15 @@
fi
echo 'Creating the nuget package...'
-nuget pack FbxSharp.nuspec -Properties version=$VERSION
+if ! nuget pack FbxSharp.nuspec -Properties version=$VERSION ; then
+ echo 'Error creating the package. The package will not be uploaded.'
+ exit 1
+fi
echo 'Uploading the package ... | bash |
d_bash_14103 | ---
+++
@@ -20,8 +20,6 @@
exit 1
fi
-exit 0
-
# Validate bash project
try "validate bash source" bats -t core/src/test/bash
| bash |
d_bash_14104 | ---
+++
@@ -4,14 +4,14 @@
for file in test/fixtures/original/*.js; do
if [[ ! "${file}" =~ .bundle|sourcemap ]]; then
- node ./bin/spire-of-babel "${file}" > ./test/fixtures/transformed/"$(basename "$file")"
+ ./bin/spire-of-babel.js "${file}" > ./test/fixtures/transformed/"$(basename "$file")"
... | bash |
d_bash_14105 | ---
+++
@@ -7,4 +7,5 @@
# Check for specified flake8 warnings in python files.
# F401: module imported but unused
-flake8 --ignore=B,C,E,F,I,N,W --select=F401 .
+# F812 list comprehension redefines 'foo' from line N
+flake8 --ignore=B,C,E,F,I,N,W --select=F401,F812 . | bash |
d_bash_14106 | ---
+++
@@ -13,8 +13,9 @@
PYLINT=/usr/bin/pylint
#fi
+# Commented out pep8 until above bug is fixed.
# Ignore imports not at start and line-too-long)
-$PEP8 --ignore=E402,E501 clipster
+#$PEP8 --ignore=E402,E501 clipster
$PYLINT --errors-only clipster
python tests/tests.py | bash |
d_bash_14107 | ---
+++
@@ -14,4 +14,6 @@
done
### Might be useful
-cat csv_out/${COMMODITY}_*.csv > india_${COMMODITY}_2005-2014.csv
+OUTFILE="india_${COMMODITY}_2005-2014.csv"
+echo "Date,Period,Country,Town,Product,Subproduct,Price,Tonnes" > $OUTFILE
+cat csv_out/${COMMODITY}_*.csv >> $OUTFILE | bash |
d_bash_14108 | ---
+++
@@ -1,5 +1,21 @@
#!/bin/bash -e
-### summarize a particular user's contributions to a repository.
+
+#
+# Summary
+# gl.sh - summarize a particular user's contributions to a repository.
+#
+# Usage
+# ./gl.sh [user-name]
+#
+# Description
+# Skims the output of an abbreviated git log for contributions ... | bash |
d_bash_14109 | ---
+++
@@ -4,7 +4,7 @@
cd "$(dirname "${BASH_SOURCE[0]}")"
-. "$(dirname "$0")/config.sh"
+. ./config.sh
(cd ./tls && ./tls $HOSTS)
| bash |
d_bash_14110 | ---
+++
@@ -3,7 +3,7 @@
alias rmf='sudo rm -rf'
alias dfh='df -h'
alias duh='du -sch'
-alias psg='ps aux | grep'
+alias psg='ps aux | grep -i'
alias gi='grep -i'
alias gri='grep -rinI'
alias fr='free -h' | bash |
d_bash_14111 | ---
+++
@@ -19,6 +19,6 @@
source tensorflow/tools/ci_build/release/common.sh
# Copy and rename to tensorflow
-for f in $(ls py_test_dir/tensorflow-*cp3*-cp3*m-win_amd64.whl); do
+for f in $(ls py_test_dir/tensorflow-*cp3*-cp3*-win_amd64.whl); do
copy_to_new_project_name "${f}" tensorflow_gpu
done | bash |
d_bash_14112 | ---
+++
@@ -9,5 +9,5 @@
# Build and execute Monolithic fat jar
cd Monolithic/
-java -cp target/scala-2.11/monolithic.jar me.flygare.Monolithic &> monolithic.logs
+java -cp target/scala-2.11/monolithic.jar me.flygare.Monolithic 2> monolithic.logs
cd .. | bash |
d_bash_14113 | ---
+++
@@ -9,7 +9,7 @@
# You should have received a copy of the CC0 Public Domain Dedication along with this software.
# If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
-rm -fR nvm
-git clone https://github.com/creationix/nvm.git ./nvm && cd nvm && git checkout `git describe --abbrev=0 --tags` &... | bash |
d_bash_14114 | ---
+++
@@ -5,6 +5,10 @@
formatSpaceAfterTab(){
sed -i "s/\t /\t/g" $1
+ }
+
+ formatTrailingSpaces(){
+ sed -i "s/} \+$/}/g" $1
}
$@ | bash |
d_bash_14115 | ---
+++
@@ -1,8 +1,8 @@
#!/usr/bin/bash
-REGEX_PROC_PIPELINE='make\s+-j\s+[0-9]{1,3}\s+all\s+(run|experiment_id)=[^\s]+\s+(run|experiment_id)=.*'
+REGEX_PROC_PIPELINE='make\s+-j\s+[0-9]{1,3}\s+all\s+(run|experiment_id)=\w+\s+(run|experiment_id)=.*'
-if [[ $( pgrep -c -f "make\s+-j\s+[0-9]{1,3}\s+all\s+(run|exper... | bash |
d_bash_14116 | ---
+++
@@ -9,7 +9,7 @@
function cleanup {
rm -f $temp_file
- rm -f $temp_file
+ rm -f $temp_file2
}
trap cleanup EXIT | bash |
d_bash_14117 | ---
+++
@@ -22,7 +22,7 @@
echo "> SWITCH TO USER ${DWL_USER_NAME}";
su ${DWL_USER_NAME}
-if [ "${DWL_INIT}" = "app" ] || [ "${DWL_KEEP_RUNNING}" = "true" ]; then
+if [ "${DWL_INIT}" = "files" ] || [ "${DWL_KEEP_RUNNING}" = "true" ]; then
echo "> KEEP APP ACTIVE";
echo "";
tail -f /dev/null; | bash |
d_bash_14118 | ---
+++
@@ -6,7 +6,10 @@
PLIST_PATH="TextContour/Info.plist"
PLISTBUDDY="/usr/libexec/PlistBuddy"
+# Clean up
git checkout TextContour.xcodeproj/project.pbxproj TextContour/Info.plist
+rm "$FONTS_PATH"/*
+rm "$IMAGES_PATH"/*
# Copy phase
echo "Coping Fonts..." | bash |
d_bash_14119 | ---
+++
@@ -39,4 +39,4 @@
EOF
-java -jar /opt/logstash.jar agent -f /opt/logstash.conf
+java -jar /opt/logstash.jar agent -f /opt/logstash.conf -- web | bash |
d_bash_14120 | ---
+++
@@ -5,7 +5,7 @@
opam install --verbose js_of_ocaml
do_build_doc () {
- opam install ocp-indent.1.4.1 optcomp higlo base64
+ opam install ocp-indent optcomp higlo base64
make -C doc clean
make -C doc doc
make -C doc wikidoc | bash |
d_bash_14121 | ---
+++
@@ -9,7 +9,7 @@
TEST_PATH="$PATH"
TEST_RUBY_ENGINE="ruby"
TEST_RUBY_VERSION="1.9.3"
-TEST_RUBY_PATCHLEVEL="374"
+TEST_RUBY_PATCHLEVEL="392"
TEST_RUBY_API="1.9.1"
TEST_RUBY_ROOT="/opt/rubies/ruby-$TEST_RUBY_VERSION-p$TEST_RUBY_PATCHLEVEL"
| bash |
d_bash_14122 | ---
+++
@@ -8,6 +8,6 @@
echo 'Copy dotfiles'
for file in $(cd "$dotfiles_dir" && echo .[!.]*)
do
- cp -v "$dotfiles_dir/$file" "/home/$logname/$file"
+ cp -r -v "$dotfiles_dir/$file" "/home/$logname/$file"
chown "$logname":"$(id -g "$logname")" "/home/$logname/$file"
done | bash |
d_bash_14123 | ---
+++
@@ -31,3 +31,4 @@
exitcode 1 nonzero.out
exitcode 1 signalled.out
exitcode 0 seqexec-ok.out
+exitcode 1 largecode.out | bash |
d_bash_14124 | ---
+++
@@ -44,3 +44,4 @@
zle -N newtab
bindkey -v
+bindkey "^R" history-incremental-search-backward | bash |
d_bash_14125 | ---
+++
@@ -4,6 +4,8 @@
KEY='projects/cloud-kms-lab/locations/us-central1/keyRings/ring-01/cryptoKeys/key-01'
SOCKET='@kms-plugin-socket'
HEALTHZ_PORT=8081
+METRICS_PORT=8082
# Starting KMS via docker
-docker run -it -p ${HEALTHZ_PORT}:${HEALTHZ_PORT} ${IMAGE} /k8s-cloud-kms-plugin --logtostderr --path-to-unix-... | bash |
d_bash_14126 | ---
+++
@@ -20,7 +20,7 @@
export DISTRO=${DISTRO:-ubuntu}
export IMAGE_NAME=${IMAGE_NAME:-devstack-gate}
export NODEPOOL_SCRIPTDIR=${NODEPOOL_SCRIPTDIR:-nodepool/scripts}
-export CONFIG_SOURCE=${CONFIG_SOURCE:-https://git.openstack.org/openstack-infra/config}
+export CONFIG_SOURCE=${CONFIG_SOURCE:-https://git.open... | bash |
d_bash_14127 | ---
+++
@@ -2,9 +2,10 @@
# copy TAP driver into build-aux
automake_ver=$(automake --version | \grep -E -o '[0-9]\.[0-9]{2}')
+automake_dir=$(dirname $(which automake))/..
mkdir -p build-aux
-cp -f /usr/share/automake-$automake_ver/tap-driver.sh build-aux
+cp -f $automake_dir/share/automake-$automake_ver/tap-dr... | bash |
d_bash_14128 | ---
+++
@@ -7,7 +7,7 @@
apt-get update -qq
-apt-get install -y python3 curl python3-dev python-virtualenv qemu-kvm libvirt-bin virtinst jq file build-essential libpq-dev
+apt-get install -y python3 curl python3-dev python-virtualenv qemu-kvm libvirt-bin virtinst jq file build-essential libpq-dev systemd
# Go ... | bash |
d_bash_14129 | ---
+++
@@ -10,10 +10,10 @@
rm /var/lib/jenkins/jobs/Guides/workspace/public/templates
rm /var/lib/jenkins/jobs/Guides/workspace/public/stylesheets
-ln -s /var/lib/jenkins/jobs/Guides/workspace/public/images /var/lib/jenkins/jobs/Static/workspace/public/images
-ln -s /var/lib/jenkins/jobs/Guides/workspace/public/... | bash |
d_bash_14130 | ---
+++
@@ -3,6 +3,6 @@
git clone -b "$HEROKU_TEST_RUN_BRANCH" --single-branch https://github.com/SalesforceFoundation/CumulusCI
cd CumulusCI
-git checkout $HEROKU_TEST_RUN_COMMIT_VERSION
+git reset --hard $HEROKU_TEST_RUN_COMMIT_VERSION
nosetests --with-tap --tap-stream --with-coverage --cover-package=cumulusc... | bash |
d_bash_14131 | ---
+++
@@ -4,4 +4,4 @@
sudo apt-get install dh-buildinfo ninja-build libexif-dev chrpath yasm libopus-dev libspeex-dev libwebp-dev libsrtp-dev libjsoncpp-dev libevent-dev xdg-utils
bzr branch lp:~chromium-team/chromium-browser/trusty-working
cd trusty-working
-bzr builddeb --builder debuild -- --lintian-opts --no... | bash |
d_bash_14132 | ---
+++
@@ -15,7 +15,16 @@
USERNAME=""
VERBOSE=false
LOGFILE="$ME.log"
- export PGPASSFILE="/etc/ovirt-engine/.pgpass"
+
+ # When running in development environments the .pgpass file may not
+ # exist or might not be readable, so we should try to use the file
+ # stored in the home director... | bash |
d_bash_14133 | ---
+++
@@ -4,7 +4,7 @@
last_tagged_commit=`git describe --tags --abbrev=0 --first-parent` # --first-parent ensures we don't follow tags not published in master through an unlikely intermediary merge commit
-if git diff-index --shortstat $last_tagged_commit -- $VERSION_CHANGE_TRIGGERS ":(exclude)*.md"
+if git d... | bash |
d_bash_14134 | ---
+++
@@ -5,11 +5,11 @@
cd $DOTFILESDIRREL
DOTFILESDIR=$(pwd -P)
for DOTFILE in *; do
- rm -iv "$HOME/.$DOTFILE"
- if [[ $TERM != "cygwin" ]]
+ if [[ $(uname -s) != MINGW* ]]
then
+ rm -iv "$HOME/.$DOTFILE"
ln -sv "$DOTFILESDIR/$DOTFILE" "$HOME/.$DOTFILE"
else
- cp -v "$DOTFILESDIR/$DOTFILE" "$HOME/.$DO... | bash |
d_bash_14135 | ---
+++
@@ -1,8 +1,9 @@
#!/bin/sh
-test $# -eq 1 || { echo "Error: Tag required." >&2; exit 1; }
+test $# -eq 2 || { echo "Usage: $(basename $0) <archive format> <tag>" >&2; exit 1; }
-tag=${1}
+format=${1}
+tag=${2}
version=${tag#v}
-git archive --format=tar.gz --prefix=qbs-${version}/ -o qbs-${version}.src.... | bash |
d_bash_14136 | ---
+++
@@ -20,4 +20,4 @@
# password: <pypi_password>
#
-python setup.py sdist upload -r pypi
+python setup.py sdist bdist_wheel upload -r pypi | bash |
d_bash_14137 | ---
+++
@@ -5,6 +5,5 @@
export OS_ONLY_BUILD_PLATFORMS="linux/amd64"
OS_RELEASE=n hack/build-go.sh
-cp _output/local/bin/linux/amd64/openshift images/origin/bin/
-docker build -t openshift/origin images/origin
-docker build -t openshift/origin-haproxy-router images/router/haproxy/
+hack/build-local-images.py open... | bash |
d_bash_14138 | ---
+++
@@ -6,7 +6,7 @@
git push --tags # update the repository version
python setup.py bdist_wheel # build this package in the dist directory
twine upload dist/* --username $PYPI_USERNAME --password $PYPI_PASSWORD # publish
- ssh deploy-new-api@api-test.openfisca.fr
+ ssh deploy-new-api@fr.op... | bash |
d_bash_14139 | ---
+++
@@ -5,9 +5,9 @@
TERM=xterm rustc - -o ./out "$@"
printf '\377' # 255 in octal
if [ "${*#*--test}" != "$*" ] && [ "${*#*--color=always}" != "$*" ]; then
- # For /evaluate.json, we have {test: true, color: true}. Let's make the output coloured too.
- # This would be better in web.py, but we don't have an eas... | bash |
d_bash_14140 | ---
+++
@@ -5,10 +5,10 @@
. /etc/sysconfig/heat-params
-if [ "$(echo $CERT_MANAGER_API | tr '[:upper:]' '[:lower:]')" != "false" ]; then
+if [ "$(echo "${CERT_MANAGER_API}" | tr '[:upper:]' '[:lower:]')" = "true" ]; then
cert_dir=/etc/kubernetes/certs
- echo -e "$CA_KEY" > ${cert_dir}/ca.key
+ echo ... | bash |
d_bash_14141 | ---
+++
@@ -36,8 +36,9 @@
echo -n "Cross-compiling for $HOST using "
$HOST-g++ --version
- # Download and build the required dependencies ourselves.
- ${XMLWRAPP_SOURCE_DIR}/scripts/install_deps.sh
+ # Download the previously built required dependencies.
+ wget https://... | bash |
d_bash_14142 | ---
+++
@@ -11,7 +11,8 @@
alias xstart='sudo nginx'
alias xreload='sudo nginx -s reload'
alias xstop='sudo nginx -s stop'
-alias xps='ps aux | grep nginx'
+alias xstatus='ps aux | grep nginx'
+alias xps='xstatus'
alias xtraffic='goaccess -f /usr/local/var/log/nginx/access.log'
function firewall_allow_nginx { | bash |
d_bash_14143 | ---
+++
@@ -14,8 +14,9 @@
append_path "/usr/local/opt/go/libexec/bin"
append_path "/usr/local/opt/coreutils/libexec/gnubin"
-# TODO: Revisit this.
+# EDH path - Revisit this to get rid of /Users/ric
prepend_path "/Users/ric/Code/plain-utils/bin"
+prepend_path "/Users/ric/Code/plain-services-docker/bin"
unset ... | bash |
d_bash_14144 | ---
+++
@@ -10,4 +10,4 @@
esac
done
-stress-ng --vm 10 --timeout 10 --metrics-brief > $RESULT.txt
+stress-ng --vm $WORKER_COUNT --timeout 10 --metrics-brief > $RESULT.txt | bash |
d_bash_14145 | ---
+++
@@ -17,6 +17,9 @@
cd ..
fi
+# Update the _gh-pages target dir.
+cd $GH && git pull && cd ..
+
# Make a clean build.
make clean dirhtml
| bash |
d_bash_14146 | ---
+++
@@ -3,6 +3,8 @@
set -e
VERSION="1.0.$(date +%Y%m%d)"
+VERSION="${1:-$VERSION}"
+
if ! grep --quiet "$VERSION" CHANGELOG.rst
then
echo "$VERSION not found in CHANGELOG.rst" | bash |
d_bash_14147 | ---
+++
@@ -1 +1 @@
-/usr/bin/sudo /usr/bin/python3 /home/pi/metarmap/metarmap.py
+/usr/bin/sudo /usr/bin/python3 /home/pi/metarmap/test.py | bash |
d_bash_14148 | ---
+++
@@ -6,11 +6,11 @@
# Get running port
XMLRPC_PORT=$(docker port $2 8899 | awk -F "[:]" '{print $2}')
# Set running port
-sed -i "s/TEST_PORT = 8899/TEST_PORT = $XMLRPC_PORT/g" QuickTestIM.py
+sed -i "s/TEST_PORT = 8899/TEST_PORT = $XMLRPC_PORT/g" integration/QuickTestIM.py
# Get running port
REST_PORT=$... | bash |
d_bash_14149 | ---
+++
@@ -15,4 +15,6 @@
OPTIONS+=" --pkglicense=MIT"
OPTIONS+=" --maintainer=somebody@thinnect.com"
+OPTIONS+=" --exclude /usr/lib/python3" # running lsb_release in a fresh container will make a pyc file there otherwise
+
checkinstall $OPTIONS | bash |
d_bash_14150 | ---
+++
@@ -18,4 +18,4 @@
export PATH="$PATH:$BOUNDARY_PLUGIN_SDK_HOME"
-alias bsenv="env | grep BOUNDARY | sort"
+alias metric-env="env | grep BOUNDARY_PREMIUM | sort" | bash |
d_bash_14151 | ---
+++
@@ -8,4 +8,9 @@
# Fetch and build updated version of Doxygen from source.
wget http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.11.src.tar.gz
tar -xzvf doxygen-1.8.11.src.tar.gz
-cd doxygen-1.8.11 && ./configure --prefix=$HOME/doxygen && make && make install
+cd doxygen-1.8.11
+mkdir build
+cd build
+cmak... | bash |
d_bash_14152 | ---
+++
@@ -25,8 +25,20 @@
alias public="cd ~/Public"
alias pub="public"
alias tmp="cd /tmp"
-alias www="cd /Library/WebServer/Documents"
-alias ww="www"
+
+_www() {
+ array=("/Library/WebServer/Documents/" "/var/www/")
+ for path in "${array[@]}"; do
+ if [ -d "${path}" ]; then
+ cd "${pat... | bash |
d_bash_14153 | ---
+++
@@ -1,4 +1,3 @@
#!/bin/sh
-echo 'test'
-#export PATH=$(echo $PATH | sed 's/8/7/g')
-#mvn -s settings.xml clean install -Dsolutions.codechecking.phase=verify
+export PATH=$(echo $PATH | sed 's/8/7/g')
+mvn -s settings.xml clean install -Dsolutions.codechecking.phase=verify | bash |
d_bash_14154 | ---
+++
@@ -1,7 +1,5 @@
#!/bin/sh
-export DOCKER_HOST=tcp://localhost:2375
+docker build -t localhost:5000/www-cbd-int git@github.com:scbd/www.cbd.int.git
-docker build -t registry.infra.cbd.int:5000/www-cbd-int .
-
-docker push registry.infra.cbd.int:5000/www-cbd-int
+docker push localhost:5000/www-cbd-int | bash |
d_bash_14155 | ---
+++
@@ -1,6 +1,8 @@
#!/bin/bash
source ${0%/*}/utils/common.sh
+
+$UTILS_DIR/init-common.sh
export QTRPI_CURL_OPT="--user $CI_AUTH_USER:$CI_AUTH_PASSWORD"
export QTRPI_BASE_URL="$CI_BASE_URL/job/qtrpi/QT_VERSION=$QTRPI_QT_VERSION,TARGET_DEVICE=$QTRPI_TARGET_DEVICE/lastSuccessfulBuild/artifact/dist" | bash |
d_bash_14156 | ---
+++
@@ -1,7 +1,7 @@
-if test "$#" -ne 3; then
- echo "Usage: ./node-bootstrap.sh /path/to/working/folder /path/to/listener.js /path/to/local/folder/for/node"
+if test "$#" -ne 2; then
+ echo "Usage: ./node-bootstrap.sh /path/to/working/folder /path/to/listener.js "
echo "For example:"
- echo "./node-bootstrap.s... | bash |
d_bash_14157 | ---
+++
@@ -15,5 +15,5 @@
find REPO -name \*.asc.md5 | xargs rm
find REPO -name \*.asc.sha1 | xargs rm
-cp REPO/org/apache/jena/jena-sdb/*/jena-sdb-*-distribution.tar.gz* dist-sdb/binaries
+cp REPO/org/apache/jena/jena-sdb/*/jena-sdb-*-distribution.* dist-sdb/binaries
cp REPO/org/apache/jena/jena-sdb/*/jena-sdb-... | bash |
d_bash_14158 | ---
+++
@@ -28,6 +28,7 @@
}
}
EOF
+ echo -n "Creating admin user $email... "
STATUS_CODE=$(curl -sL -w "%{http_code}" -o /dev/null -X POST -H 'Content-type: application/json' -H "Authorization: Bearer ${DM_API_ACCESS_TOKEN}" -d "${USER_PAYLOAD}" "${DM_API_DOMAIN}/users")
if [ "$STATUS_CODE" == "409" ]; th... | bash |
d_bash_14159 | ---
+++
@@ -1,11 +1,12 @@
#!/bin/bash -l
-echo "Uploading bosh release..."
-set -ex -o pipefail
-
+set -xeuo pipefail
echo "Targeting bosh director..."
pushd "env-repo/$BOSH_ENV"
+ set +x
eval "$(bbl print-env)"
+ set -x
+ trap "pkill -f ssh" EXIT
popd
echo "Uploading any matching releases..." | bash |
d_bash_14160 | ---
+++
@@ -3,4 +3,8 @@
sudo apt-get update
sudo apt-get autoremove postgis*
sudo apt-get autoremove postgresql*
-sudo apt-get install postgresql-9.6-postgis-2.5
+
+if [[ "$TRAVIS_DIST" = "xenial" ]]
+then sudo apt-get install postgresql-9.6-postgis-2.5
+else sudo apt-get install postgresql-9.3-postgis-2.1
+fi | bash |
d_bash_14161 | ---
+++
@@ -12,7 +12,7 @@
echo "Current branch is $branch"
-if [ $branch=="master" ]; then
+if [ $branch != "gh-pages" ]; then
echo "Failed to swith to gh-pages"
exit
fi | bash |
d_bash_14162 | ---
+++
@@ -8,3 +8,5 @@
#FASD
alias v='fasd -e vim'
+
+alias bake='bundle exec rake' | bash |
d_bash_14163 | ---
+++
@@ -18,7 +18,7 @@
# it appears that the gem that triggers this script fires off this script before
# the gem is actually available via bundler on rubygems.org.
-sleep 120
+sleep 240
gem install rake
rake dependencies:update_gemfile_lock | bash |
d_bash_14164 | ---
+++
@@ -29,8 +29,8 @@
autoload -U down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
-[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-beginning-search
-[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-beginning-search
+bindkey "^[[... | bash |
d_bash_14165 | ---
+++
@@ -6,7 +6,7 @@
local cd_dir
local exit_code
# declare vars before setting them, otherwise the exit code is from `local`
- cd_dir=$(command moor cd-dir "${@:2}")
+ cd_dir=$(command moor cd-dir "${@:2}" </dev/null)
exit_code=$?
if [ ${exit_code} -eq 1 ]; then | bash |
d_bash_14166 | ---
+++
@@ -17,5 +17,8 @@
mv $file `echo $file | sed 's/\(Delta\)/Delta-en/'`
done
+echo "Removing inferred relationship files"
+rm "rel2_Relationship_*"
+
echo -n "Process Complete. Returning to "
cd - | bash |
d_bash_14167 | ---
+++
@@ -1,6 +1,10 @@
# env # # # # # # # # # # # # # # # # #
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
+
+# credentials # # # # # # # # # # # # #
+
+alias cred='EDITOR="code --wait" bin/rails credentials:edit --environment'
# lintin... | bash |
d_bash_14168 | ---
+++
@@ -7,7 +7,7 @@
exit 13
fi
-ARCHIVE_URL=$(curl -sL https://api.github.com/repos/thombashi/tcconfig/releases/latest | jq -r '.assets[].browser_download_url' | \grep deb)
+ARCHIVE_URL=$(curl -sSL https://api.github.com/repos/thombashi/tcconfig/releases/latest | jq -r '.assets[].browser_download_url' | \... | bash |
d_bash_14169 | ---
+++
@@ -4,9 +4,10 @@
mkdir $HOME/cache;
fi
+CTEST_EXEC="$HOME/cache/bin/ctest"
+
# check to see if CMake is cached
-if [ ! -f "$HOME/cache/bin/ctest" ]; then
-
+if [[ ! -f "$CTEST_EXEC" || ! "$($CTEST_EXEC --version)" =~ "3.2.3" ]]; then
wget --no-check-certificate https://cmake.org/files/v3.2/cmake-3.2... | bash |
d_bash_14170 | ---
+++
@@ -4,9 +4,7 @@
if [ ! -f bzwikipedia ] ; then
echo "bzwikipedia is not compiled. Compiling ..."
- cd gosrc
- gomake
- cd ..
+ gomake -C gosrc
fi
if [ ! -f gosrc/bzwikipedia ] ; then | bash |
d_bash_14171 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.1%2B7/OpenJDK14U-jdk_x64_linux_hotspot_14.0.1_7.tar.gz"
;;
java15)
- echo "https://download.java.net/java/early_access/jdk15/21/GPL/openjdk-15-ea+21_linux-x64_bin.tar.gz"
+ echo "https://download... | bash |
d_bash_14172 | ---
+++
@@ -11,4 +11,5 @@
make install
echo 'extension=suhosin.so' > /etc/php.d/suhosin.ini
echo 'suhosin.get.max_value_length = 2048' >> /etc/php.d/suhosin.ini
+echo 'suhosin.request.max_varname_length = 128' >> /etc/php.d/suhosin.ini
echo "Delete temp files /tmp/suhosin-0.9.38" | bash |
d_bash_14173 | ---
+++
@@ -20,13 +20,13 @@
if [ ! -d /var/log/pyrox ]; then
mkdir /var/log/pyrox
chown -R pyrox:adm /var/log/pyrox/
- chmod 0750 /var/log/pyrox/
+ chmod 0755 /var/log/pyrox/
fi
if [ ! -d /var/lib/pyrox ]; then
mkdir /var/lib/py... | bash |
d_bash_14174 | ---
+++
@@ -13,5 +13,5 @@
VERSION=${BASH_REMATCH[1]}
fi
-export PACKAGE_TARBALL=${PACKAGES_DIR:?}/epoch-${VERSION}-${PKG_SUFFIX}.tar.gz
+PACKAGE_TARBALL=${PACKAGES_DIR:?}/epoch-${VERSION}-${PKG_SUFFIX}.tar.gz
echo "export PACKAGE_TARBALL=${PACKAGE_TARBALL}" >> $BASH_ENV | bash |
d_bash_14175 | ---
+++
@@ -2,7 +2,7 @@
# The least terrible way to resolve a symlink to its real path.
function realpath() {
- /usr/bin/python -c "import os,sys; print(os.path.realpath(sys.argv[1]))" "$0";
+ /usr/bin/perl -e "use Cwd;print Cwd::abs_path(@ARGV[0])" "$0";
}
CONTENTS="$(dirname "$(dirname "$(dirname "$(dirna... | bash |
d_bash_14176 | ---
+++
@@ -7,7 +7,7 @@
echo "Installing CUDA"
CUDA_URL=http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run
CUDA_FILE=/tmp/cuda_install.run
-wget --show-progress $CUDA_URL -O $CUDA_FILE
+wget $CUDA_URL -O $CUDA_FILE
chmod a+x $CUDA_FILE
$CUDA_FILE --toolkit --toolkit... | bash |
d_bash_14177 | ---
+++
@@ -1,10 +1,8 @@
#!/bin/bash
cordova platform add ios android
-<<<<<<< HEAD
-cordova plugin add ../ --link --variable BRANCH_LIVE_KEY=key_live_fnmRM1FXtu11t6e4LU8WsldpvDcA0bzv --variable URI_SCHEME=testbed --variable ENCODED_ID=X9Ug
-cordova plugin add https://github.com/nordnet/cordova-universal-links-pl... | bash |
d_bash_14178 | ---
+++
@@ -1,10 +1,17 @@
#!/usr/bin/env bash
+PATH=$(npm bin):$PATH
export DIR=$(pwd)
for f in $( find . -name "test.sh" ); do
cd $(dirname $f)
chmod a+x ./test.sh
- bash ./test.sh
+ bash ./test.sh > output.json
+ output=$(json-diff output.json expected-output.json);
+ if [ "$output" != " undefined" ] ; t... | bash |
d_bash_14179 | ---
+++
@@ -3,7 +3,9 @@
if [[ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]]; then
return 1
fi
- npm version $1 && git push origin --tags && npm publish
+ npm version $1
+ git push origin --follow-tags
+ npm publish
}
module () { | bash |
d_bash_14180 | ---
+++
@@ -14,9 +14,6 @@
--upgrade \
--ignore-installed \
--user \
- --cache-dir /shared/pip-cache \
- --build /shared/pip-build \
- --no-clean \
setuptools \
wheel \
pycapnp==0.5.8 \ | bash |
d_bash_14181 | ---
+++
@@ -8,7 +8,7 @@
if [ `basename ${x} .py` == "__init__" ] ; then
continue
fi
- relative=nova.`echo ${x} | sed -e 's$^'${NOVA_DIR}'$$' -e 's/.py$//' -e 's$/$.$g'`
+ relative=nova`echo ${x} | sed -e 's$^'${NOVA_DIR}'$$' -e 's/.py$//' -e 's$/$.$g'`
modules="${modules} ${relative}"
d... | bash |
d_bash_14182 | ---
+++
@@ -1,2 +1,5 @@
-export MACOSX_DEPLOYMENT_TARGET=10.6
-rock -v -g -j3 +-headerpad_max_install_names +-mmacosx-version-min=10.6
+#!/bin/bash
+export MACOSX_DEPLOYMENT_TARGET="10.7"
+export CFLAGS="-mmacosx-version-min=10.7 -isysroot /Users/amos/Dev/MacOSX10.7.sdk"
+export LDFLAGS="-Wl,-syslibroot,/Users/amos/D... | bash |
d_bash_14183 | ---
+++
@@ -14,6 +14,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+
+set -e
sudo -E -H pip install --upgrade virtualenv
virtualenv --no-wheel --system-site-packages ${1}pup-... | bash |
d_bash_14184 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/sh
+
+set -euo pipefail
# Create a source distribution and platform-specific wheel distributions.
@@ -6,17 +8,9 @@
make_wheel()
{
- $PYTHON setup.py clean --all
PYTHON_SOUNDDEVICE_PLATFORM=$1 PYTHON_SOUNDDEVICE_ARCHITECTURE=$2 \
- $PYTHON setup.py bdist_wheel
+ $PYTH... | bash |
d_bash_14185 | ---
+++
@@ -13,8 +13,8 @@
eval "$(pyenv init -)"
fi
- pyenv install 2.7.10
- pyenv virtualenv 2.7.10 conan
+ pyenv install 3.7.1
+ pyenv virtualenv 3.7.1 conan
pyenv rehash
pyenv activate conan
fi | bash |
d_bash_14186 | ---
+++
@@ -1,7 +1,27 @@
#!/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/fram... | bash |
d_bash_14187 | ---
+++
@@ -29,7 +29,7 @@
exit 1
fi
-find ../ -name "*.class" | xargs rm
+find .. -type f -name "*.class" -exec rm {} \;
if [[ -e "${targetdir}" ]]; then
echo "clean target" | bash |
d_bash_14188 | ---
+++
@@ -3,6 +3,9 @@
service openvswitch-switch start
ovs-vsctl show || exit 1
+
+# enable fast reuse of ports.
+sysctl -w net.netfilter.nf_conntrack_tcp_timeout_time_wait=5
cd /faucet-src/tests
| bash |
d_bash_14189 | ---
+++
@@ -8,7 +8,7 @@
{
"Platform": {
"Linux": {
- "DevicePathResolutionType": "virtio"
+ "DevicePathResolutionType": "scsi"
}
},
"Infrastructure": { | bash |
d_bash_14190 | ---
+++
@@ -11,8 +11,8 @@
if [ -x /start-image-hook.sh ]
then
echo `date` "Running start-image-hook"
- /start-image-hook.sh
+ . /start-image-hook.sh
fi
echo `date` "Starting MEAN.IO Appserver"
-su - mean -c "cd appserver && grunt cssmin && grunt uglify && NODE_ENV=production forever -w server.js"
+su - mea... | bash |
d_bash_14191 | ---
+++
@@ -2,7 +2,7 @@
./00_download_modules.sh
./05_up.sh
./10_setup_master.sh
-./11_setup_havana.sh
+./11_setup_openstack.sh
./20_setup_nodes.sh
./30_deploy_control.sh
./40_deploy_nodes.sh | bash |
d_bash_14192 | ---
+++
@@ -5,10 +5,12 @@
echo "If not there yet, add the code to read the bash_awesome script"
+if grep -q "bash_awesome" ~/.bashrctest; then
cat >~/.bashrctest <<EOL
if [ -f ~/.bash_awesome ]; then
. ~/.bash_awesome
fi
EOL
+fi
echo "Installed the Awesome bash configuration successfully! Enjoy :-)" | bash |
d_bash_14193 | ---
+++
@@ -13,10 +13,5 @@
# Restart docker to ensure that it picks up the new tmpdir configuration.
systemctl restart docker
-docker pull clusterhq/elasticsearch
-docker pull clusterhq/logstash
-docker pull clusterhq/kibana
-docker pull mysql:5.6.17
-docker pull postgres
docker pull busybox
docker pull cluster... | bash |
d_bash_14194 | ---
+++
@@ -6,12 +6,13 @@
set -e
ROOT=`cd "$(dirname $0)/.." ; pwd`
-COMPONENTS=(core gui)
+COMPONENTS=(. core gui)
GRAPH_CMD="
neato
- -Goverlap=false
+ -Goverlap=scale
-Gsplines=true
+ -Gepsilon=0.0001
-Tsvg
-o dependency-graph.svg
dependency-graph.dot | bash |
d_bash_14195 | ---
+++
@@ -13,7 +13,7 @@
oc login -u system:admin
export REGISTRY_URL=$(oc get svc -n default docker-registry -o jsonpath='{.spec.clusterIP}:{.spec.ports[0].port}')
oc login -u developer -p developer
- docker pull radanalyticsio/openshift-spark:2.3-latest
+ docker pull radanalyticsio/openshift-spark:2.4-l... | bash |
d_bash_14196 | ---
+++
@@ -12,4 +12,4 @@
readonly BASEDIR=$(dirname $BASH_SOURCE)
$BASEDIR/oauthtoken.sh deploy
-appcfg.py update $BASEDIR/../
+appcfg.py update --oauth2 $BASEDIR/../ | bash |
d_bash_14197 | ---
+++
@@ -1,12 +1,9 @@
#!/bin/bash
config_args="--enable-shared"
-if [[ `uname` == 'Darwin' ]]; then
- # make check below fails on osx unless $PREFIX/lib is added to rpath
- LDFLAGS="$LDFLAGS -Wl,-rpath,${PREFIX}/lib" ./configure ${config_args}
-else
- ./configure ${config_args}
-fi
+export LDFLAGS="$L... | bash |
d_bash_14198 | ---
+++
@@ -24,6 +24,6 @@
for i in playbooks/deploy*.yml; do
logger "Started run of $i in ansible_run_all.sh"
- ansible-playbook -D $i $*
+ timeout 1h ansible-playbook -D $i $*
logger "Finished run of $i in ansible_run_all.sh"
done | bash |
d_bash_14199 | ---
+++
@@ -1,4 +1,27 @@
#!/bin/bash
-python3 -B main.py --logs logs/scarecrow.log
+print_help () {
+ echo -e "Usage :\n $0 [update]"
+}
+if [ $# -gt 1 ]
+then
+ print_help
+ exit 1
+fi
+
+if [ "$1" == 'update' ]
+then
+ echo Updating requirements...
+ git pull
+ python3 -m pip install --user -U git+htt... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.