document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_22400 | ---
+++
@@ -7,7 +7,7 @@
if [ $? -eq 0 ]
then
- echo "[uscan-wrapper] uscan reports updates upstream"
+ echo "[uscan-wrapper] [uscan-wrapper-warning] uscan reports updates upstream"
else
echo "[uscan-wrapper] uscan reports local package is up-to-date"
fi | bash |
d_bash_22401 | ---
+++
@@ -13,7 +13,7 @@
# session, regardless of status.
#
-if [ ! -n $SSH_TTY ]; then
+if [ -n $SSH_TTY ]; then
echo "This script is only useful if you're connected via a Secure SHell"
fi
| bash |
d_bash_22402 | ---
+++
@@ -2,4 +2,4 @@
IFS=$'\n'
CURRENT_SONG=($(dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | egrep -A2 "artist|title"|grep -oP '(?<=string \")(?!xesam).*(?=\")'))
-echo "${CURR... | bash |
d_bash_22403 | ---
+++
@@ -1,9 +1,10 @@
#!/bin/bash
echo "Assembling JAR and preparing WAR resources."
-sbt assembly package-war
+sbt resources:compile-sass resources:copy-scripts assembly package-war
echo "Adding webapp resources to JAR."
cd target
+cp -r javascripts/* webapp/javascripts/
zip -r anchortab.jar webapp -x weba... | bash |
d_bash_22404 | ---
+++
@@ -22,6 +22,7 @@
# sudo apt-key add /tmp/my-signing-key.gpg
sudo apt-get update --yes
+ sudo apt-get remove --auto-remove --yes r-base
sudo apt-get install --yes r-base
# Verify that a new version of R was installed | bash |
d_bash_22405 | ---
+++
@@ -3,6 +3,11 @@
# set up the conda paths
CURRDIR=$(pwd)
CONDA_ENV_PATH="${CURRDIR}"/../parserdev
+
+# set up ZPar and NLTK environment variables
+NLPTOOLS="/home/nlp-text/dynamic/NLPTools"
+ZPAR_MODEL_DIR="${NLPTOOLS}/zpar/models/english"
+NLTK_DATA="${NLPTOOLS}/nltk_data"
# remove the conda environmen... | bash |
d_bash_22406 | ---
+++
@@ -1,11 +1,16 @@
#!/bin/sh
TEST_DIR=`pwd`
+LOG=$TEST_DIR/test.log
cd ../../rel/riak
for x in $TEST_DIR/*_test;
do
- echo $x
- bin/search-cmd test $x 2>&1 | grep -e FAIL -e ERROR
+ echo RUN: $x
+ if ! bin/search-cmd test $x > $LOG 2>&1
+ then
+ printf "\nFAIL: %s\nCheck $LOG\n... | bash |
d_bash_22407 | ---
+++
@@ -2,11 +2,8 @@
backupTime=`date +%Y%m%d-%H:%M`
S3Bucket=aact2
-RDSHostname=aact2-main.cbj0v72pdrrv.us-east-1.rds.amazonaws.com
-RDSUsername=garrettqmartin
-RDSDatabaseName=aact2
-pg_dump -Fc ${RDSDatabaseName} -h ${RDSHostname} -U ${RDSUsername} --no-password | gzip -9 | \
- s3cmd put - s3://${S3Buck... | bash |
d_bash_22408 | ---
+++
@@ -22,6 +22,9 @@
sudo gem install rdoc
sudo gem install jekyll
+#Change folder name from Japanese to English.
+LANG=c xdg-user-dirs-gtk-update
+
bit=$(uname -m)
#Install Dropbox | bash |
d_bash_22409 | ---
+++
@@ -10,9 +10,25 @@
echo $((${1}-1))
}
+ difference(){
+ if [[ ! $(StringValidator isNum ${2}) ]]; then
+ MathException notANumberException ${2}
+ fi
+
+ echo $((${1}-${2}))
+ }
+
increment(){
echo $((${1}+1))
}
+ sum(){
+ if [[ ! $(StringValidator isNum ${2}) ]]; then
+ MathException n... | bash |
d_bash_22410 | ---
+++
@@ -4,5 +4,6 @@
#brew update
#brew install xctool
-sudo pip install cpp-coveralls --use-mirrors
+#sudo pip install cpp-coveralls --use-mirrors
+easy_install cpp-coveralls
| bash |
d_bash_22411 | ---
+++
@@ -4,6 +4,10 @@
declare -r -a NPM_PACKAGES=(
"jshint"
+ "node-inspector"
+ "gulp"
+ "karma-cli"
+ "bower"
)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | bash |
d_bash_22412 | ---
+++
@@ -23,8 +23,8 @@
local time=$(BaseUtil timestamp log)
if [[ $(BaseComparator isEqualIgnoreCase ${1} error) ]]; then
- message="\033[0;31m$(StringUtil replace $(StringUtil
- capitalize ${2}) _ space)\033[0m"
+ message=$(colorme red $(StringUtil replace $(StringUtil
+ capitalize ${2}) _ space... | bash |
d_bash_22413 | ---
+++
@@ -3,6 +3,8 @@
if type "mkisofs" > /dev/null; then
mkdir test_iso
echo "hello, world!" > test_iso/hello.txt
+ echo "old file" > test_iso/old.txt
+ touch -t 197001010001 test_iso/old.txt
mkisofs -o test.iso -R test_iso
else
curl http://www.recoil.org/~jon/ocaml-iso9660-test.iso -o test.iso | bash |
d_bash_22414 | ---
+++
@@ -1,2 +1,5 @@
#!/bin/zsh
-alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to pasteboard.'"
+# pubkey() {
+# more ~/.ssh/id_rsa.pub | pbcopy
+# echo '=> Public key copied to pasteboard.'
+# } | bash |
d_bash_22415 | ---
+++
@@ -1,7 +1,11 @@
#!/usr/bin/env bash
# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
+# The backend unit tests currently do not work when HEAPCHECK is enabled.
+export HEAPCHECK=
+set -e
+set -u
+
cd ${IMPALA_BE_DIR}
-. ${IMPALA_HOME}/bin/set-classpath.sh
+. ${IMPALA_HOME}/bin/set-classpath.sh... | bash |
d_bash_22416 | ---
+++
@@ -20,7 +20,7 @@
sudo apt-get install libopencv-dev python-opencv -y
sudo apt-get install libxmu-dev libxi-dev -y
-sudo apt install libassimp-dev
+sudo apt-get install libassimp-dev -y
#
# Tools | bash |
d_bash_22417 | ---
+++
@@ -17,9 +17,9 @@
for version in "${versions[@]}"; do
versionAliases=( $version ${aliases[$version]} )
- echo
for variant in micro; do
- commit="$(git log -1 --format='format:%H' "$version/$variant")"
+ commit="$(git log -1 --format='format:%H' -- "$version/$variant")"
+ echo
for va in "${versio... | bash |
d_bash_22418 | ---
+++
@@ -19,4 +19,10 @@
echo >> $OUT/Hashes.txt
echo ======================MD5 HASHES===================== >> $OUT/Hashes.txt
echo >> $OUT/Hashes.txt
-find $HASH_DIRS -type f \( ! -name Hashes.txt \)-exec md5sum {} >> $OUT/Hashes.txt \;
+
+for f in $HASH_DIRS; do
+ echo $f
+ find $f -type f | xargs -d '\n' ... | bash |
d_bash_22419 | ---
+++
@@ -15,7 +15,7 @@
echo
echo "----------------------------------------------------"
-pip install -r requirements.txt
+pip install --upgrade -r requirements.txt
mv ${REPO_PATH} ${SHARED_PATH}
cd ${SHARED_PATH}/mltsp
@@ -23,11 +23,11 @@
python setup.py build_ext -i
pip install -e .
-cp mltsp.yaml.exa... | bash |
d_bash_22420 | ---
+++
@@ -11,6 +11,7 @@
tar -xzf cr.tar.gz
rm -f cr.tar.gz
+mkdir .cr-release-packages
helm package "$chartDir" --destination .cr-release-packages --dependency-update
./cr upload -o "$owner" -r "$repo" -t $token | bash |
d_bash_22421 | ---
+++
@@ -3,9 +3,9 @@
apt-get update
apt-get install bridge-utils
brctl addbr databr
-ifconfig databr 192.168.0.254/24 up
+ifconfig databr 10.168.0.1/24 up
ip link add address 02:42:0a:a8:00:01 type veth
ifconfig veth0 up
ifconfig veth1 up
brctl addif databr veth0
-iptables -t nat -A POSTROUTING -s 192.168.0... | bash |
d_bash_22422 | ---
+++
@@ -1,10 +1,10 @@
#!/bin/sh
+
+echo -n "Please input a keyword.>>>"
+read KEY
+echo $KEY >.key
cd .repository
git init
git add .
git commit -m init
-
-echo -n "Please input a keyword.>>>"
-read KEY
-echo $KEY >.key | bash |
d_bash_22423 | ---
+++
@@ -9,7 +9,7 @@
popd
pushd tripleo-quickstart-extras
-git fetch https://git.openstack.org/openstack/tripleo-quickstart-extras refs/changes/36/414336/23 && git checkout FETCH_HEAD
+git fetch https://git.openstack.org/openstack/tripleo-quickstart-extras refs/changes/36/414336/20 && git checkout FETCH_HEAD
... | bash |
d_bash_22424 | ---
+++
@@ -7,12 +7,15 @@
readonly name="nlohmann_json"
readonly ownership="JSON For Modern C++ Upstream <robot@adios2>"
readonly subtree="thirdparty/NLohmannJson/json"
-#readonly repo="https://github.com/nlohmann/json.git"
-#readonly tag="v3.1.2"
-readonly repo="https://github.com/chuckatkins/json.git"
-readonly ... | bash |
d_bash_22425 | ---
+++
@@ -33,6 +33,11 @@
cd ~
ln -s $dir/git/.gitconfig ~/.gitconfig
+
+ echo "Creating symlink for my theme in oh-my-zsh directory"
+ cd ~/.dotfiles/.oh-my-zsh/custom/themes/
+ ln -s ~/.dotfiles/zshrc/ruhtra.zsh-theme ruhtra.zsh-theme
+
}
################################ | bash |
d_bash_22426 | ---
+++
@@ -5,7 +5,11 @@
# load variables if running on simula testbed
if [ "$(hostname)" == "ford" ]; then
- . "$(dirname $(readlink -f $BASH_SOURCE))/simula-testbed.env"
+ . "$(dirname $(readlink -f $BASH_SOURCE))/simula_testbed.env"
+fi
+
+if ! [[ "$PATH" = *iproute2-l4s* ]] && [ -f "$(dirname $(readlink... | bash |
d_bash_22427 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/sh
cd ${CURR_DIR}/issue346-redundant-flags
-${DUB} build --bare --force --compiler=${DC} -a x86 main | grep -e "-m32 -m32" 2>&1 && exit 1 || exit 0
+${DUB} build --bare --force --compiler=${DC} -a x86_64 -v main 2>&1 | grep -e "-m64 -m64" -c && exit 1 || exit 0 | bash |
d_bash_22428 | ---
+++
@@ -17,3 +17,4 @@
alias gcb='git copy-branch-name'
alias gb='git branch'
alias gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun.
+alias gbr="git for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'" | bash |
d_bash_22429 | ---
+++
@@ -15,9 +15,10 @@
git checkout master
lein set-version $new_version
lein update-dependency org.onyxplatform/onyx $new_version
-sed -i '' 's/$current_version/"$new_version"/g' README.md
+sed -i.bak 's/$current_version/"$new_version"/g' README.md
+git add README.md project.clj
-git commit -am "Release ver... | bash |
d_bash_22430 | ---
+++
@@ -11,6 +11,9 @@
cargo "$@" test --bench json --bench http -- --test
cargo "$@" check --bench mp4 --features mp4
+
+ cargo "$@" build --no-default-features --features alloc
+ cargo "$@" test --no-default-features --features alloc --examples
cargo "$@" build --no-default-features
... | bash |
d_bash_22431 | ---
+++
@@ -1,7 +1,4 @@
#!/bin/bash
-
-# Show the output of the following commands (useful for debugging)
-set -x
fab production build
fab production push | bash |
d_bash_22432 | ---
+++
@@ -10,5 +10,6 @@
else
echo "NOTICE: node_modules already exists in repo; refusing to use the node_modules provided by the docker image"
fi
+mkdir logs
cd openprescribing/media/js
npm install -s | bash |
d_bash_22433 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
-version="19.03.14"
+version="20.10.6"
echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz"; | bash |
d_bash_22434 | ---
+++
@@ -2,5 +2,5 @@
# Prepare the module for distribution.
python setup.py bdist_rpm --packager="Noah Petherbridge <root@kirsle.net>" \
- bdist_wininst \
+ bdist_wininst --plat-name=win32 \
bdist_dumb | bash |
d_bash_22435 | ---
+++
@@ -11,14 +11,15 @@
else
EXTRA_BUILD_EXT_FLAGS=""
fi
+
+# Don't build with tbb support unless tbb testing was requested. Loading the
+# threading layers with an unsupported tbb raises a warning that conflicts with
+# tests counting warnings.
+if [ "$TEST_THREADING" != "tbb" ]; then export NUMBA_DISABLE... | bash |
d_bash_22436 | ---
+++
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
-dockerize -wait tcp://greenplum:5432 -timeout 1m
+sleep 30
bundle exec rake | bash |
d_bash_22437 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-echo "$(echo '* */2 * * * ./clear_invocations.sh >> clear_invocations.log' ; crontab -l)" | crontab -
+echo "$(echo '0 */2 * * * ./clear_invocations.sh >> clear_invocations.log' ; crontab -l)" | crontab -
echo "scheduled task that clears invocations to run every 2 hours"
| bash |
d_bash_22438 | ---
+++
@@ -8,7 +8,7 @@
DISTRO=debian
fi
-if [[ -z "$DISTRO" ]]; then
+if [ -z "$DISTRO" ]; then
echo "This script requires a Debian based Linux distribution."
exit 1
fi | bash |
d_bash_22439 | ---
+++
@@ -1,3 +1,3 @@
#! /bin/sh
-java -jar -Dconfig.file=conf/spaceturtle.conf build/SpaceTurtleCli.jar
+java -jar -Dconfig.file=conf/spaceturtle.conf -Djava.security.auth.login.config=conf/jaas.conf -Djava.security.krb5.conf=conf/krb5.conf build/SpaceTurtleCli.jar | bash |
d_bash_22440 | ---
+++
@@ -5,6 +5,7 @@
export NUM_JOBS=1
brew update;
+brew install bash;
brew install lcov;
mkdir build
@@ -15,7 +16,7 @@
bin/UnitTests
lcov -c -d Tests/UnitTests -o test.info
lcov -a base.info -a test.info -o coverage.info
-lcov -r coverage.info '/usr/*' -o coverage.info
+lcov -r coverage.info '*/Toolch... | bash |
d_bash_22441 | ---
+++
@@ -1,3 +1,4 @@
#!/bin/sh
-java -jar "$(dirname "$0")/SuperTMXMerge.jar" "$@"
+SCRIPT_DIR=$(dirname "$(readlink -f $0)")
+java -jar "$SCRIPT_DIR/SuperTMXMerge.jar" "$@" | bash |
d_bash_22442 | ---
+++
@@ -19,7 +19,8 @@
metadata="{ \"name\": \"$name\",
\"width\": \"$(exiftool $image | grep Width | head -1 | cut -d ':' -f2 | tr -d ' ')\",
- \"height\": \"$(exiftool $image | grep Height | head -1 | cut -d ':' -f2 | tr -d ' ')\"
+ \"height\": \"$(exiftool $image | grep Height | head -1 | cut -d ':' -f2... | bash |
d_bash_22443 | ---
+++
@@ -30,7 +30,7 @@
elif [[ "${TEST_SLOW}" == "true" ]]; then
cat << EOF | python
import sympy
-if not sympy.test(slow=True, timeout=240):
+if not sympy.test(slow=True, timeout=180):
# Travis times out if no activity is seen for 10 minutes. It also times
# out if the whole tests run for... | bash |
d_bash_22444 | ---
+++
@@ -22,9 +22,9 @@
exit 1
fi
-sudo updatedb
-locate FileCheck
-ls -laR /usr/lib/llvm-5.0/
+#sudo updatedb
+#locate FileCheck
+#ls -laR /usr/lib/llvm-5.0/
make test
RETURN="$?" | bash |
d_bash_22445 | ---
+++
@@ -16,7 +16,7 @@
#
################################################################################
#
-# Forwards a port from the local host to a remote host via `gcutil'.
+# Forwards a port from the local host to a remote host via `gcloud'.
declare -r SETTINGS="${SETTINGS:-$(dirname $0)/../../src/sett... | bash |
d_bash_22446 | ---
+++
@@ -13,7 +13,7 @@
SCRIPTPATH=$( cd $(dirname $0) ; pwd -P )
-java -Dlogback.configurationFile=$SCRIPTPATH/logback-redirect_current.xml \
+java -Dlogback.configurationFile=$SCRIPTPATH/logback-rewrite_current.xml \
-cp $TOOLKIT_ROOT/WEB-INF/lib/*:$TOOLKIT_ROOT/WEB-INF/classes \
au.org.ands.voca... | bash |
d_bash_22447 | ---
+++
@@ -2,7 +2,7 @@
set -ex -o pipefail
BCBIO_VERSION="1.0.7a"
-BCBIO_REVISION="0a423fe"
+BCBIO_REVISION="42a0b45"
NS="quay.io/bcbio"
TAG="${BCBIO_VERSION}-${BCBIO_REVISION}"
| bash |
d_bash_22448 | ---
+++
@@ -14,8 +14,11 @@
# limitations under the License.
set -ex
-
cd /src/workspace
ls -A | xargs -r rm -fr
-git clone --recursive $CLONE_REPO .
-git checkout $CLONE_GIT_REF
+git init
+git remote add origin $CLONE_REPO
+git fetch
+git reset --hard $CLONE_GIT_REF
+git submodule update --init --recursive
+chm... | bash |
d_bash_22449 | ---
+++
@@ -26,6 +26,13 @@
}
builtin 'bye' bye
+nip() {
+ pop x2
+ pop x1
+ push "$x2"
+}
+builtin 'nip' nip
+
tuck() {
pop x2
pop x1 | bash |
d_bash_22450 | ---
+++
@@ -12,7 +12,7 @@
for recipe in $recipes
do
- if [ -d "recipes/$recipe/build" ]
+ if [ -d "recipes/$recipe/source" ]
then
./cook.sh "$recipe" update
fi | bash |
d_bash_22451 | ---
+++
@@ -8,7 +8,11 @@
# be included in the package (it is about 12MB).
./configure --disable-examples --prefix="$PREFIX" --datarootdir=`pwd`/tmpshare
make
-make check || { cat tests/check/test-suite.log; exit 1;}
+# Some tests fail because not all plugins are built and it seems
+# tests expect all plugins
+# Se... | bash |
d_bash_22452 | ---
+++
@@ -16,19 +16,21 @@
local ruby_engine
local ruby_version
local gem_root
+ local gem_home
eval `ruby - <<EOF
require 'rubygems'
puts "ruby_engine=#{defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'}"
puts "ruby_version=#{RUBY_VERSION}"
puts "gem_root=\"#{Gem.default_dir}\""
+puts "gem_home=\"#{Gem.use... | bash |
d_bash_22453 | ---
+++
@@ -1,3 +1,3 @@
make html COQDOCFLAGS="--no-index"
cd html
-ln -s Bitset.bitset.html index.html
+cp Bitset.bitset.html index.html | bash |
d_bash_22454 | ---
+++
@@ -4,7 +4,11 @@
if [ -e "script/server" ]; then
ruby script/$@
else
- ruby script/rails $@
+ if [ -e "bin/rails" ]; then
+ bin/rails $@
+ else
+ rails $@
+ fi
fi
}
| bash |
d_bash_22455 | ---
+++
@@ -19,4 +19,6 @@
apt-get update -qq
-apt-get -y --force-yes install libfixposix3 libfixposix-dev
+apt-get -y install libfixposix3 libfixposix-dev
+
+dpkg -L libfixposix3 libfixposix-dev | bash |
d_bash_22456 | ---
+++
@@ -11,5 +11,8 @@
cd /data && ln -s /tmp/strider/ .strider
fi
+# Allow strider user to run docker commands
+sudo chmod o+rw /var/run/docker.sock
+
echo "Exec'ing /entry.sh $@"
exec /usr/bin/env bash /entry.sh "$@" | bash |
d_bash_22457 | ---
+++
@@ -4,7 +4,6 @@
./configure \
--prefix=$PREFIX \
--with-readline=gnu \
- --without-ncurses \
--with-pcre \
--with-onig \
--with-png \ | bash |
d_bash_22458 | ---
+++
@@ -24,6 +24,7 @@
-Dpng=enabled \
-Djpeg=enabled \
-Dtiff=enabled \
+ -Dman=false \
_build
meson compile -C _build | bash |
d_bash_22459 | ---
+++
@@ -27,6 +27,8 @@
if [[ $(AppServerValidator isTomcat ${appServer}) ]]; then
_overrideTomcatVersion ${branch}
+ elif [[ $(AppServerValidator is tcServer ${appServer}) ]]; then
+ AppServerVersionConstants tcserverVersion
else
AppServerVersionConstants ${appServer}Version
fi | bash |
d_bash_22460 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+export DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+cd "$DIR"
osascript setup_4store.osa > /dev/null 2>&1
| bash |
d_bash_22461 | ---
+++
@@ -6,16 +6,23 @@
echo "instead of running it the standard way; it wants to affect parent env."
echo ""
-if [ -d ${HOME}/projects/subversion ]; then
- WC=${HOME}/projects/subversion
-elif [ -d ${HOME}/src/subversion ]; then
- WC=${HOME}/src/subversion
+if [ "X${SVN_WC}" = "X" ]; then
+ if [ -d ${HOME... | bash |
d_bash_22462 | ---
+++
@@ -12,8 +12,8 @@
# We need this installed, but we don't want it to live in the main requirements
# We will need to periodically review this pinning
-pip install -U pip==22.1
-pip install pip-tools==6.6.1
+pip install -U pip==22.1.1
+pip install pip-tools==6.6.2
pip-compile --generate-hashes -r require... | bash |
d_bash_22463 | ---
+++
@@ -1,17 +1,10 @@
#!/usr/bin/env bash
# Install dotfiles
-# Redirect stdout to /dev/null because vim vundler runs some semi-interactive
-# installer, which screws with terminal buffer.
-# There are bizarre /dev/null permission errors when redirecting to it with su -c
echo -e "\nInstalling dotfiles from htt... | bash |
d_bash_22464 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
curl -L http://www.cmake.org/files/v3.2/cmake-3.2.2-Linux-x86_64.sh > cmake_installer.sh
-diff <(md5sum cmake_install.sh) sum
+diff <(md5sum cmake_installer.sh) sum
/bin/bash cmake_installer.sh --prefix /opt --exclude-subdir | bash |
d_bash_22465 | ---
+++
@@ -1,10 +1,12 @@
-#!/bin/bash
+#!/bin/bash -e
cd $(dirname $0)/..
find vumi/ -name '*.pyc' -delete
-./manage.py test --with-xunit --xunit-file=django_test_results.xml
+coverage erase
trial --reporter=subunit vumi | subunit2junitxml > test_results.xml
-trial --reporter=bwverbose-coverage vumi && cove... | bash |
d_bash_22466 | ---
+++
@@ -9,3 +9,10 @@
mkdir -p $CVMFS_SPOOL_IMPOSTER
[ ! -d $CVMFS_SPOOL_DIR ] || rm -fR $CVMFS_SPOOL_DIR
[ -L $CVMFS_SPOOL_DIR ] || ln -s $CVMFS_SPOOL_IMPOSTER $CVMFS_SPOOL_DIR
+
+# enable httpd on boot
+if ! /sbin/chkconfig httpd > /dev/null 2>&1; then
+ /sbin/chkconfig --add httpd
+ /sbin/chkconfig httpd... | bash |
d_bash_22467 | ---
+++
@@ -1,5 +1,7 @@
#!/bin/sh
set -uex
+
+root=$(pwd)
cd /tmp
curl -L10 -O https://github.com/plt/racket/archive/master.tar.gz
@@ -8,3 +10,5 @@
./configure --prefix=/app/vendor
make -sj30
make -sj30 install
+
+mv /app/vendor $root/ | bash |
d_bash_22468 | ---
+++
@@ -29,4 +29,4 @@
cd ../os
7z a ../os-0-4.7z 0 1 2 3 4
7z a ../os-5.7z 5
-7z a ../os-6.7z 6 single_color_tiles/
+7z a -v40m ../os-6.7z 6 single_color_tiles/ | bash |
d_bash_22469 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/sh
-curl http://svn.bmrb.wisc.edu/svn/nmr-star-dictionary/bmrb_only_files/adit_input/xlschem_ann.csv > reference_files/schema
-mac2unix reference_files/schema
+curl http://svn.bmrb.wisc.edu/svn/nmr-star-dictionary/bmrb_only_files/adit_input/xlschem_ann.csv > reference_files/schema.cs... | bash |
d_bash_22470 | ---
+++
@@ -25,3 +25,5 @@
curl -Lo vault.zip https://releases.hashicorp.com/vault/0.9.5/vault_0.9.5_linux_amd64.zip && \
unzip vault.zip && \
sudo mv ./vault /usr/local/bin/vault
+
+which vault | bash |
d_bash_22471 | ---
+++
@@ -7,6 +7,6 @@
DESTDIR=$1
mkdir -p $DESTDIR
-rsync -ra pentai* setup.py main.py $DESTDIR
+rsync -ra pentai* setup.py main.py --exclude build $DESTDIR
| bash |
d_bash_22472 | ---
+++
@@ -18,9 +18,17 @@
elif is_executable port; then
port install nodejs git
elif is_executable apt-get; then
+ if ! is_executable wget; then
+ errcho "wget not available. Please install wget first, then run this script again."
+ exit 1
+ fi
wget -qO- https://deb.nodesource.com/set... | bash |
d_bash_22473 | ---
+++
@@ -21,7 +21,7 @@
then
echo "npm version:"
npm -v
- npm install
+ npm ci
elif [ "$NODEJS_VERSION" = "nodejs6" ];
then
npm install -g yarn@0.27.5 | bash |
d_bash_22474 | ---
+++
@@ -2,3 +2,19 @@
alias bubo='brew update && brew outdated'
alias bubc='brew upgrade && brew cleanup'
alias bubu='bubo && bubc'
+
+if mkdir "$ZSH_CACHE_DIR/.brew-completion-message" 2>/dev/null; then
+ print -P '%F{yellow}'Oh My Zsh brew plugin:
+ cat <<-'EOF'
+
+ With the advent of their 1.0 release, Ho... | bash |
d_bash_22475 | ---
+++
@@ -7,3 +7,4 @@
/Applications/XAMPP/xamppfiles/bin/php addZendSPProduct.php
/Applications/XAMPP/xamppfiles/bin/php addPhp3TierProduct.php
+/Applications/XAMPP/xamppfiles/bin/php addBaseLinuxProduct.php | bash |
d_bash_22476 | ---
+++
@@ -12,4 +12,4 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-env -i .mkblog.sh "$@"
+env -i ./.mkblog.sh "$@" | bash |
d_bash_22477 | ---
+++
@@ -28,7 +28,7 @@
# Install Haskell (instructions for other OSs than Ubuntu
# are available here: https://www.haskell.org/downloads/linux)
-sudo apt-get install haskell-platform
+sudo apt-get –force-yes –yes install haskell-platform
# Update Cabal
sudo cabal update
@@ -44,7 +44,7 @@
# Python for ... | bash |
d_bash_22478 | ---
+++
@@ -14,7 +14,7 @@
CREATE DATABASE cinder;
GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'localhost' IDENTIFIED BY '$MYSQL_CINDER';
GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'%' IDENTIFIED BY '$MYSQL_CINDER';
-GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'controller'%' IDENTIFIED BY '$MYSQL_CINDER';
+GRANT ... | bash |
d_bash_22479 | ---
+++
@@ -12,7 +12,7 @@
fi
cd $WORKSPACE/local/lava-ci/
-defconfig_full=$(echo $2 | sed 's:linaro/configs/::g' | sed 's:\.conf::g')
+defconfig_full=$(echo $2 | sed 's:linaro/configs/::g')
python lava-kernel-ci-job-creator.py http://storage.kernelci.org/$TREE_NAME/$GIT_DESCRIBE/$ARCH-$defconfig_full/ --plans $3... | bash |
d_bash_22480 | ---
+++
@@ -17,4 +17,4 @@
#sshpass -p 'root' ssh -t root@10.255.248.1 'cd /home/user/workspace/OSHI-monitoring; ./manager.sh --mode runryu'
-printandexec "sshpass -p 'root' ssh -t root@$CONTROLLER_IP 'cd /home/user/workspace/OSHI-monitoring; ./manager.sh --mode runryu'"
+printandexec "sshpass -p 'root' ssh -t ro... | bash |
d_bash_22481 | ---
+++
@@ -3,35 +3,34 @@
set -eo
mkdir -p build
+mkdir -p build/commits/
+mkdir -p build/pr/
BASENAME="rack"
SUFFIX=""
+
+RACKBUILD="build/${BASENAME}"
+
+# Create build/rack
+go build -o $RACKBUILD
# See http://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
# for details ab... | bash |
d_bash_22482 | ---
+++
@@ -3,7 +3,7 @@
set -e
# Create a workspace for a GOPATh
-gopath_prefix=/tmp/src/github.com/stackdriver-tools
+gopath_prefix=/tmp/src/github.com/cloudfoundry-community
mkdir -p ${gopath_prefix}
# Link to the source repo | bash |
d_bash_22483 | ---
+++
@@ -1,5 +1,5 @@
sed -i.bak 's^TABIX_LIB_DIR)$^TABIX_LIB_DIR) -L$(PREFIX)/lib^' src/Makefile
sed -i.bak 's^TABIX_INCLUDE_DIR)$^TABIX_INCLUDE_DIR) -L$(PREFIX)/include^' src/Makefile
-sed -r -i.bak "s^tabix: (.*)^tabix: \1\n\tsed -i.bak '@CFLAGS =@CFLAGS = -I$\(PREFIX\)/include@ tabix/Makefile'^" redist/Makefi... | bash |
d_bash_22484 | ---
+++
@@ -4,15 +4,24 @@
PACKAGES="dev-lang/python dev-python/pip"
#KEEP_HEADERS=true
+configure_bob()
+{
+ # since 20150709 setuptools on build container fails the build for pip package, looks like a bug
+ # in the meantime let's reinstall setuptools for python3_4 on the build container to fix the issue
+... | bash |
d_bash_22485 | ---
+++
@@ -12,18 +12,18 @@
}
-function show-citests() {
+function showcitests() {
git update-index --no-assume-unchanged Register.xcodeproj/xcshareddata/xcschemes/CITests1.xcscheme
git update-index --no-assume-unchanged Register.xcodeproj/xcshareddata/xcschemes/CITests2.xcscheme
git update-index --no-a... | bash |
d_bash_22486 | ---
+++
@@ -1,4 +1,2 @@
DIR_THIS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $DIR_THIS/ubuntu_common.bash
-
-source $DIR_THIS/../ros/setup_ros_130s-kudu1.bash | bash |
d_bash_22487 | ---
+++
@@ -14,4 +14,9 @@
make -j$CPU_COUNT LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS"
make test
-cp pigz unpigz $PREFIX/bin
+# Use different variable to get "binprefix" on win:
+if [ -n "$LIBRARY_BIN" ]; then
+ cp pigz unpigz $LIBRARY_BIN
+else
+ cp pigz unpigz $PREFIX/bin
+fi | bash |
d_bash_22488 | ---
+++
@@ -13,7 +13,7 @@
git clone https://github.com/grpc/grpc.git
cd grpc
-git checkout 82c8f71a81b707376a72257b294fe6b6f1f5219d # Beta Release 0.11.0
+git checkout 4831d02cc2341ec2233ff9d9ef66fb9a86138fb7 # Beta Release 0.11.1
git submodule update --init
make
if [ "$grpc_dist" != "" ]; then | bash |
d_bash_22489 | ---
+++
@@ -1,14 +1,18 @@
#!/usr/bin/env sh
+case $0 in
+ */*) cd "${0%/*}/";;
+esac
set -ex
set | sort
rm -rf build
mkdir build
cd build
+cc=cc
if command -v ninja; then
- cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug
+ cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER="$cc"
ninja
else
-... | bash |
d_bash_22490 | ---
+++
@@ -5,6 +5,7 @@
[ -n "$ECR_ACCESS_KEY" ] && export PLUGIN_ACCESS_KEY=${ECR_ACCESS_KEY}
[ -n "$ECR_SECRET_KEY" ] && export PLUGIN_SECRET_KEY=${ECR_SECRET_KEY}
[ -n "$ECR_CREATE_REPOSITORY" ] && export PLUGIN_SECRET_KEY=${PLUGIN_CREATE_REPOSITORY}
+[ -n "$ECR_REGISTRY_IDS" ] && export PLUGIN_REGISTRY_IDS=${E... | bash |
d_bash_22491 | ---
+++
@@ -19,7 +19,7 @@
}
JBOSS_VERSION(){
- echo "eap-7.0.0"
+ echo "eap-7.1.0"
}
JETTY_VERSION(){
@@ -58,5 +58,7 @@
echo "11.0.0"
}
- _convertMethodToConstant ${@}
+ # _convertMethodToConstant ${@}
+
+ $@
} | bash |
d_bash_22492 | ---
+++
@@ -7,6 +7,10 @@
export PATH="${GCLOUD_SDK_LOCATION}/bin:$PATH"
+# See: https://cloud.google.com/sdk/crypto
+# Required to work with legacy p12 keyfiles
+export CLOUDSDK_PYTHON_SITEPACKAGES=1
+
if [[ -a "${GCLOUD_SDK_LOCATION}/completion.zsh.inc" ]]; then
source "${GCLOUD_SDK_LOCATION}/completion.zsh... | bash |
d_bash_22493 | ---
+++
@@ -25,4 +25,6 @@
[[ -d ${RUBY_BUILD}/.git ]] ||\
git clone https://github.com/rbenv/ruby-build.git ${RUBY_BUILD}
rbenv install -s ${RUBY_VERSION}
+gem install bundler
+rbenv rehash
rbenv global ${RUBY_VERSION} | bash |
d_bash_22494 | ---
+++
@@ -3,11 +3,12 @@
PRE=""
CMD="uwsgi --ini $APP_ROOT/$APP_NAME.ini"
+WORKERS=${WORKERS:-4}
cat << EOF > $APP_ROOT/$APP_NAME.ini
[uwsgi]
master = true
-workers = 4
+workers = ${WORKERS}
harakiri = 20
max-requests = 5000
memory-report | bash |
d_bash_22495 | ---
+++
@@ -3,8 +3,6 @@
# Get the IP address
ipaddress=$(ifconfig eth1 2>/dev/null|awk '/inet addr:/ {split($2,a,":"); print a[2]}')
-
-sed -i -e "$SED_SCRIPT" devstack/local.conf
# Adjust some things in local.conf
cat << DEVSTACKEOF >> devstack/local.conf | bash |
d_bash_22496 | ---
+++
@@ -8,7 +8,7 @@
#
echo "aclocal..."
-ACLOCAL=`which aclocal-1.9 || which aclocal19 || which aclocal-1.7 || which aclocal17 || which aclocal-1.5 || which aclocal15 || which aclocal || exit 1`
+ACLOCAL=`which aclocal-1.10 || which aclocal-1.9 || which aclocal19 || which aclocal-1.7 || which aclocal17 || whi... | bash |
d_bash_22497 | ---
+++
@@ -3,6 +3,7 @@
unixodbc unixodbc-dev \
libboost-date-time-dev \
libboost-system-dev \
+ libpython-dev \
mysql-server-5.6 mysql-client-core-5.6 mysql-client-5.6 libmyodbc \
postgresql odbc-postgresql=1:09.02.0100-2ubuntu1
sudo pip install mock numpy==1.8.0 ... | bash |
d_bash_22498 | ---
+++
@@ -2,12 +2,14 @@
ZK_CONNECT=$1
BROKER_ID=$2
+$ADVERTISED_HOSTNAME=$3
if [ -n "$ZK_CONNECT" ]
then
echo 'delete.topic.enable = true' >> $KAFKA_HOME/config/server.properties
sed -i 's/^zookeeper.connect=.*/zookeeper.connect='$ZK_CONNECT'/' $KAFKA_HOME/config/server.properties
sed -i 's/^broker... | bash |
d_bash_22499 | ---
+++
@@ -1,13 +1,51 @@
#!/bin/bash
git-rewrite-author() {
+ # shellcheck disable=SC2034
local old_author="$1"
+ # shellcheck disable=SC2034
local old_email="$2"
+ # shellcheck disable=SC2034
local new_author="$3"
+ # shellcheck disable=SC2034
local new_email="$4"
+ # shellc... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.