document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_15500 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
if test `uname` = Darwin; then
cachedir=~/Library/Caches/KBuild | bash |
d_bash_15501 | ---
+++
@@ -1,4 +1,10 @@
#!/bin/sh
-POSTGIS_INSTANCE=${1:-"osm-postgis"}
-POSTGIS_PASSWORD=${2:-"mysecretpassword"}
-docker run --name ${POSTGIS_INSTANCE} -e POSTGRES_PASSWORD=${POSTGIS_PASSWORD} -d osmtw/postgis
+POSTGRES_USER=postgres
+POSTGRES_DB=postgres
+POSTGIS_INSTANCE=${1:-"osmdb"}
+POSTGIS_PASSWORD=${2:-$(c... | bash |
d_bash_15502 | ---
+++
@@ -2,4 +2,6 @@
name=$1
id=$2
rtmp_url=`curl http://www.watchpeoplecode.com/admin/streamer/$name/rtmp_redirect/$id`
-/usr/bin/avconv -analyzeduration 1000000 -i rtmp://localhost/live/$1 -c:v copy -c:a copy -f flv $rtmp_url
+if [ -z "$rtmp_url" ]; then
+ /usr/bin/avconv -analyzeduration 1000000 -i rtmp:/... | bash |
d_bash_15503 | ---
+++
@@ -27,8 +27,6 @@
)
for plugin in $adsf_plugins; do
(asdf plugin list | grep $plugin > /dev/null) || asdf plugin add $plugin
- asdf install $plugin latest > /dev/null
- asdf global $plugin $(asdf latest $plugin) > /dev/null
done
# Post installation settings | bash |
d_bash_15504 | ---
+++
@@ -3,15 +3,40 @@
# Wonderful build script to run nightly
# This is what builds our rust binaries
+# Check the systemd machinectl to see if a machine is running
+is_machine_running () {
+ local machine_registered="$(machinectl list | grep -F $1 | sed 's/^\s*$1\s.*$/$1/')"
+ if [ -z machine_registered ];... | bash |
d_bash_15505 | ---
+++
@@ -28,7 +28,6 @@
-E goimports \
-E golint \
-E interfacer \
- -E maligned \
-E misspell \
-E unconvert \
-E unparam \ | bash |
d_bash_15506 | ---
+++
@@ -10,7 +10,7 @@
find prepare_iso/ "$installer_path" -type f -print0 | xargs -0 shasum | awk '{print $1}' | sort | shasum | awk '{print $1}'
}
-output_cache_path="${cache_dir}/output/$(build_hash)-${version}-${installer_build}"
+output_cache_path="${cache_dir}/output/$(build_hash)"
if [[ -d "$output... | bash |
d_bash_15507 | ---
+++
@@ -9,7 +9,10 @@
if [ `uname` = "Darwin" ]
then
curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
- brew install fcgi
+ # brew no longer has fcgi
+ # brew install fcgi
+ grep -v wai-handler-fastcgi < stack.yaml > tmp
+ mv t... | bash |
d_bash_15508 | ---
+++
@@ -3,17 +3,6 @@
SOURCE_BRANCH="master"
TARGET_BRANCH="gh-pages"
-
-function doCompile {
- echo "Check docompile"
-}
-
-# Pull requests and commits to other branches shouldn't try to deploy, just build to verify
-if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then
- ... | bash |
d_bash_15509 | ---
+++
@@ -2,6 +2,8 @@
set -e
# sudo apt-get install -y build-essential devscripts debhelper
+#
+# This will not work on any platform that isn't amd64
mkdir -m 0755 -p deb-build
cd deb-build | bash |
d_bash_15510 | ---
+++
@@ -1,10 +1,13 @@
#!/bin/bash
export RAILS_ENV=integration
-export GPDB_HOST=chorus-gpdb-ci
-export ORACLE_HOST=chorus-oracle
-export HAWQ_HOST=chorus-gphd20-2
-export HADOOP_HOST=chorus-gphd11
+
+if [ "$HOSTNAME" = chorus-ci ]; then
+ export GPDB_HOST=chorus-gpdb-ci
+ export ORACLE_HOST=chorus-oracle
+... | bash |
d_bash_15511 | ---
+++
@@ -25,8 +25,10 @@
# Print out Ruby version
ruby --version
+# leave this until all tests are added
for product in \
- auth # leave this until all tests are added
+ auth \
+ cdn
do
# Run Tests
echo "[$product]" | bash |
d_bash_15512 | ---
+++
@@ -5,8 +5,8 @@
/usr/bin/perl -e "use Cwd;print Cwd::abs_path(@ARGV[0])" "$0";
}
-CONTENTS="$(dirname "$(dirname "$(dirname "$(dirname "$(realpath "$0")")")")")"
-BINARY_NAME="$(ls "$CONTENTS/MacOS/")"
+CONTENTS="$(command dirname "$(command dirname "$(command dirname "$(command dirname "$(command realp... | bash |
d_bash_15513 | ---
+++
@@ -13,11 +13,11 @@
exit 1
fi
-echo -e "starting interactive build container with ${1} config..\n\nto start the build run: build-root ${1}\n"
+echo -e "starting interactive build container with bb-dock/${1} mounted as /config..\n\nto start the build run: build-root ${1}\n"
-docker run -it --rm \
+do... | bash |
d_bash_15514 | ---
+++
@@ -8,7 +8,7 @@
echo "FAIL: ${f}.txt out of date"
echo "to fix: "
echo ""
- echo " cp bazel-genfiles/Documentation/${f}.gen.txt Documentation/${f}.txt"
+ echo " cp bazel-bin/Documentation/${f}.gen.txt Documentation/${f}.txt"
echo ""
exit 1
fi | bash |
d_bash_15515 | ---
+++
@@ -12,8 +12,8 @@
# Use vim as the editor
export EDITOR=vim
-# Use emacs mode in vim
-bindkey -e
+# Use vim style line editing in zsh
+bindkey -v
# Use incremental search
bindkey "^R" history-incremental-search-backward | bash |
d_bash_15516 | ---
+++
@@ -21,12 +21,9 @@
exit 1
fi
-echo $results | tr ' ' "\n"
-echo "-------"
-
if [ "$readyPods" -ne "$allPods" ]; then
exit 1
fi
-echo "Success"
+echo "All pods are ready."
exit 0 | bash |
d_bash_15517 | ---
+++
@@ -1,14 +1,7 @@
#!/bin/bash
if [ ! -f /root/.extendingrc ]; then
echo "Installing the Puppet Enterprise ruby packages."
- for i in $(ls /root/puppet-enterprise/packages/el-6-i386/pe-ruby*);
- do
- rpm -Uvh $i;
- done
- for i in $(ls /root/puppet-enterprise/packages/el-6-i386/pe-ruby*);
- do
- ... | bash |
d_bash_15518 | ---
+++
@@ -13,4 +13,29 @@
DB_SCHEMA=public
PG_CONNECT="postgis://$OSM_USER:$OSM_PASSWORD@$DB_PORT_5432_TCP_ADDR/$OSM_DB"
+# project config will be copied to new folder because we # modify the source configuration
+DEST_PROJECT_DIR="/project"
+DEST_PROJECT_FILE ="${DEST_PROJECT_DIR%%/}/project.yml"
+cp -rf "$SOU... | bash |
d_bash_15519 | ---
+++
@@ -4,7 +4,7 @@
./autogen.sh && \
./configure && \
make && \
-dpkg-buildpackage -rfakeroot
+dpkg-buildpackage -rfakeroot -tc
GEN_STATUS=$?
| bash |
d_bash_15520 | ---
+++
@@ -1,4 +1,14 @@
#! /usr/bin/env bash
+
+YELLOW="\033[33m"
+RESET="\033[0m"
+
+if [ $SHELL != "/bin/bash" ]
+then
+ echo -e $YELLOW"You're now using $SHELL as a default. Trying to change it to bash."$RESET
+ chsh -s /bin/bash
+ echo -e $YELLOW"You should reopen the session to see the change."$RESET
... | bash |
d_bash_15521 | ---
+++
@@ -7,14 +7,23 @@
DEST=$2
if [[ ! -L "$DEST" ]]; then
+ # Back up existing file
if [[ -e "$DEST" ]]; then
echo "Backing up $DEST to ${DEST}_backup"
mv ${DEST} ${DEST}_backup
fi
+ else
+ # refresh symbolic link, if points at different file
+ if [ `readlink ${DEST}`... | bash |
d_bash_15522 | ---
+++
@@ -5,7 +5,7 @@
git init
git config user.name "Benjamin J. Kruger"
git config user.email "bekroogle@gmail.com"
- haml ../index.haml ./index.html
+ cp ../index.html ./index.html
cp ../js ./ -r
cp ../images ./ -r
cp ../stylesheets ./ -r | bash |
d_bash_15523 | ---
+++
@@ -7,7 +7,7 @@
GOVUK_WEBSITE_ROOT=https://www.gov.uk \
GOVUK_PROXY_STATIC_ENABLED=true \
PLEK_SERVICE_CONTENT_STORE_URI=${PLEK_SERVICE_CONTENT_STORE_URI-https://www.gov.uk/api} \
- PLEK_SERVICE_STATIC_URI=${PLEK_SERVICE_STATIC_URI-assets.publishing.service.gov.uk} \
+ PLEK_SERVICE_STATIC_URI=${PLE... | bash |
d_bash_15524 | ---
+++
@@ -8,4 +8,5 @@
if [ -f /opt/app/RUNNING_PID ]; then
rm /opt/app/RUNNING_PID
fi
-java $JAVA_OPTS -Duser.dir=/opt/app -Dconfig.file=conf/$ENVIRONMENT.conf -cp $CLASSPATH play.core.server.ProdServerStart
+
+exec java $JAVA_OPTS -Duser.dir=/opt/app -Dconfig.file=conf/$ENVIRONMENT.conf -cp $CLASSPATH play.... | bash |
d_bash_15525 | ---
+++
@@ -6,7 +6,7 @@
echo ${repo}
cd ${repo}
git pull
- git log --since `date -d "-14 day" "+%F"` --pretty=medium
+ git log --since `date -d "-14 day" "+%F"` --pretty=format:'%Cgreen %an: %Creset %s' --abbrev-commit
cd .. #and go back
done
| bash |
d_bash_15526 | ---
+++
@@ -1,23 +1,33 @@
#!/usr/bin/env bash
+COMPOSER_COMMAND=$(which "composer")
+if [ "$COMPOSER_COMMAND" = '' ]
+then
+ #No global composer found, try local or download it
+ if [ -e "composer.phar" ]
+ then
+ echo "Composer found: checking for update"
+ else
+ echo "Composer not found: fetching"
+ php -r "... | bash |
d_bash_15527 | ---
+++
@@ -1,3 +1,5 @@
+set -e
+
#Requires an installation of maven 2.x and Java 1.6 or higher
# define the location of the install scipt | bash |
d_bash_15528 | ---
+++
@@ -1,10 +1,20 @@
#/bin/sh
-install_prerequisites() {
+set -e
+
+setup_os_prerequisites() {
sudo apt-get install -y nodejs golang
}
-gulp() {
+setup_npm_prerequisites() {
+ npm install
+}
+
+setup_godep() {
+ go install github.com/tools/godep
+}
+
+setup_gulp() {
./node_modules/.bin/gulp
}
@@... | bash |
d_bash_15529 | ---
+++
@@ -1,6 +1,5 @@
#!/bin/sh
-echo "$(~/bin/daysuntil 2019-01-29) days - mantid PMB" > ~/.daysuntil.deadlines
-echo "$(~/bin/daysuntil 2019-03-01) days - mantid v3.14 code freeze" >> ~/.daysuntil.deadlines
+echo "$(~/bin/daysuntil 2019-03-01) days - mantid v3.14 code freeze" > ~/.daysuntil.deadlines
echo "$(~/... | bash |
d_bash_15530 | ---
+++
@@ -12,7 +12,7 @@
#Start on boot
cd $OOS_SOURCE_DIR
-cp init.d/node4ords /etc/systemd/system/node4ords.service
+cp init.d/node4ords.service /etc/systemd/system/
mkdir -p /ords/conf/node4ords
cp init.d/node4ords.conf /ords/conf/node4ords/
| bash |
d_bash_15531 | ---
+++
@@ -1,13 +1,19 @@
-#!/bin/sh -e
+#!/bin/sh -ex
+DIR=`dirname $0`/..
+DIR=`pwd $DIR`
TS=`date --iso-8601`
-TARGET_DIR=src/com/komanov/serialization
-TARGET_NAME=jmh
-DATA_DIR=./site/public/data/scala-serialization
+TARGET=src/com/komanov/serialization/jmh
+TARGET_NAME=`basename $TARGET`
+DATA_DIR=${DIR}/sit... | bash |
d_bash_15532 | ---
+++
@@ -1,64 +1,53 @@
#!/usr/bin/env bash
-pips=(
- pip
- pip3
-)
+pip3 install -U pip
-packages=(
- BeautifulSoup4
- bson
- chardet
- click
- cloudant
- cython
- cytoolz
- fake-useragent
- feather-format
- feedparser
- flask
- flask_cors
- fuzzywuzzy
- gensim
- google-cloud-datastore
- hdb... | bash |
d_bash_15533 | ---
+++
@@ -21,6 +21,12 @@
# Install the web interface
cp -R ${INSTALL_DIR}/share/${PACKAGE} ${WEB_DIR}
+
+ # Create a default configuration file
+ if [ ! -f ${WEB_DIR}/${PACKAGE}/config_local.php ]; then
+ echo -e "<?php\nif (\0041isset(\$config)) \$config = array();\n\$config['calibre_directo... | bash |
d_bash_15534 | ---
+++
@@ -7,10 +7,10 @@
export DJANGO_SETTINGS_MODULE=config.settings.test
export COVERALLS_PARALLEL=true
-yarn pytest:check-coverage
+yarn pytest:report-coverage
exit_status=$?
-yarn test:check-coverage
+yarn test:report-coverage
exit_status = exit_status || $?
curl -k "https://coveralls.io/webhook?repo... | bash |
d_bash_15535 | ---
+++
@@ -16,5 +16,5 @@
#Sqoop command is
sqoop import --connect jdbc:mysql://mgrover-haa-2.vpc.cloudera.com:3306/oltp --username root --query 'SELECT movie.*, group_concat(genre.name) FROM movie JOIN movie_genre ON (movie.id = movie_genre.movie_id)
-JOIN genre ON (movie_genre.genre_id = genre.id) GROUP BY movi... | bash |
d_bash_15536 | ---
+++
@@ -7,6 +7,8 @@
# Build new files
stack exec blog clean
stack exec blog build
+cp -r images _site/images
+cp -r fonts _site/fonts
# Get previous files
git fetch -all | bash |
d_bash_15537 | ---
+++
@@ -15,12 +15,4 @@
source .venv/bin/activate
trap deactivate EXIT
-# Collect new static files
-echo "Collecting new static files ..."
-$MANAGE collectstatic --noinput
-
-# Run migration, but skip initial if matching table names already exist
-echo "Running migration ..."
-$MANAGE migrate --fake-initial
-
... | bash |
d_bash_15538 | ---
+++
@@ -27,12 +27,6 @@
echo "**************** Installing ****************"
bundle install
-echo "**************** Linting ****************"
-bundle exec rake lint
-
-echo "**************** Testing ****************"
-bundle exec rake test
-
echo "**************** Versioning ****************"
bundle exec rak... | bash |
d_bash_15539 | ---
+++
@@ -27,3 +27,10 @@
python -m openquake.commands db set_status 1 executing
# repeat the failed/executing calculation, which is useful for QGIS
python -m openquake.commands engine --run $1/hazard/AreaSourceClassicalPSHA/job.ini
+
+
+# display the calculations
+python -m openquake.commands db find %
+
+# buil... | bash |
d_bash_15540 | ---
+++
@@ -20,8 +20,10 @@
mount $SDCARD $MNT -o uid=$DEF_UID,gid=$DEF_GID
;;
*)
- mount $SDCARD $MNT
- chown $DEF_UID:$DEF_GID $MNT
+ if [ ! -z "${ID_FS_TYPE}" ]; then
+ mount $SDCARD $MNT
+ chown $DEF_UID:$DEF_GID $MNT
+ fi
;;
esac
else | bash |
d_bash_15541 | ---
+++
@@ -24,5 +24,8 @@
echo "Finished running tests!"
echo "Notifying CodeClimate of test build's end"
+
+cd easyfxml
+
JACOCO_SOURCE_PATH=src/main/java ./cc-test-reporter format-coverage target/site/jacoco/jacoco.xml --input-type jacoco
./cc-test-reporter upload-coverage -r 9791cde00c987e47a9082b96f73a2b4eb... | bash |
d_bash_15542 | ---
+++
@@ -24,4 +24,5 @@
# Override cat with bat
if (( $+commands[bat] )); then
alias cat=bat
+ export BAT_STYLE=plain # only enable syntax highlighting
fi | bash |
d_bash_15543 | ---
+++
@@ -4,13 +4,13 @@
wget "ftp://ftp.ripe.net/ripe/dbase/split/ripe.db.route.gz"
-zcat ripe.db.route.gz | awk 'BEGIN{ORS=""} $1 == "route:" {split($2, route, "/");print("db.routes.insert({ route : \"" route[1] "\", mask : " route[2] " , origin : ");} $1 == "origin:" {print("\"" $2 "\"});\n");}' >> db.route... | bash |
d_bash_15544 | ---
+++
@@ -1,14 +1,14 @@
# Defaults
-alias cp="cp -i" # confirm before overwriting
-alias df="df -h" # use human-readable sizes
+alias cp="cp -i" # confirm before overwriting
+alias df="df -h" # use human-readable sizes
alias free="free -m" # show sizes in MB
-alias ll='ls -lh' # list lines with human-rea... | bash |
d_bash_15545 | ---
+++
@@ -11,4 +11,4 @@
fi
echo
bundle install
-bundle exec rails s thin -p 3015
+bundle exec rails s thin -p 3020 | bash |
d_bash_15546 | ---
+++
@@ -3,9 +3,6 @@
set -e
. /etc/lsb-release
-
-wget http://apt.puppetlabs.com/puppetlabs-release-${DISTRIB_CODENAME}.deb
-dpkg --install puppetlabs-release-precise.deb
cat > /etc/apt/sources.list <<__EOF__
deb mirror://mirrors.ubuntu.com/mirrors.txt ${DISTRIB_CODENAME} main
@@ -23,7 +20,6 @@
packages... | bash |
d_bash_15547 | ---
+++
@@ -11,8 +11,8 @@
set -e
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]] &&
- [[ "$TRAVIS_BRANCH" == "master" ]] &&
- [[ ! -z "$TRAVIS_TAG" ]];
+ [[ ! -z "$TRAVIS_TAG" ]] &&
+ [[ "$TRAVIS_BRANCH" == "$TRAVIS_TAG" ]];
then
echo ""
echo "Building packages for version ${TRAVIS_TAG}" | bash |
d_bash_15548 | ---
+++
@@ -2,17 +2,17 @@
set -euo pipefail
install_new_job() {
- local renew_cmd='certbot renew --allow-subset-of-names --quiet --renew-hook \"systemctl reload nginx\"'
+ local renew_cmd='certbot renew --allow-subset-of-names --quiet --renew-hook "systemctl reload nginx"'
local hour="$(date +'%H')"
local... | bash |
d_bash_15549 | ---
+++
@@ -11,7 +11,7 @@
# Build decompose environment image
echo "Decompose build environment"
- testing_env_build=$(docker build -t decompose_build_environment ./decompose_environment/.)
+ testing_env_build=$(docker build -t decompose_build_environment "$DIR"/decompose_environment/.)
[ "$?" == "1" ] &... | bash |
d_bash_15550 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
export PATH=vendor/bin:$PATH
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
if [[ $# -eq 1 ]] | bash |
d_bash_15551 | ---
+++
@@ -24,7 +24,7 @@
# Apply custom patch to convert strings to proper errors.
echo "Applying patches..."
-curl -L -s https://gist.githubusercontent.com/ruimarinho/d52c0cdde7e4fcd1d589da06b77ed954/raw/5576453b62d349d05c93573ab19d517914102ee6/error.patch | git apply
+curl -L -s https://gist.githubusercontent.... | bash |
d_bash_15552 | ---
+++
@@ -7,12 +7,12 @@
local dist=$2
for target in $list;do
local target_path
- target_path=$(command -v $target 2> /dev/null)
+ target_path=$(command -v $target 2> /dev/null || true)
if [[ $? -eq 0 && -n "$target_path" ]];then
ln -snf $target_path $HOME/.bin.local/$dist
break
... | bash |
d_bash_15553 | ---
+++
@@ -1,6 +1,8 @@
#!/bin/bash
-source `dirname $0`/client-env
-PRELOAD=`dirname $0`/../client-preload-lib/flyserv_client.so
+cd `dirname $0`
+
+#source `dirname $0`/client-env
+PRELOAD=../client-preload-lib/flyserv_client.so
env LD_LIBRARY_PATH=${QUARTUS_ROOTDIR}/linux64 LD_PRELOAD=${PRELOAD} ${QUARTUS_RO... | bash |
d_bash_15554 | ---
+++
@@ -8,6 +8,7 @@
cd ..
node tests/test_server/server.js &
SRVPID=$!
+sleep 1
set +e
| bash |
d_bash_15555 | ---
+++
@@ -9,4 +9,4 @@
curl -X POST -H "Content-Type: application/json" -d @'artifacts/app_single_group.json' -k -v -u admin:admin https://localhost:9443/api/applications
sleep 5
-curl -X POST -H "Content-Type: application/json" -d@'artifacts/dep_single_group.json' -k -v -u admin:admin https://localhost:9443/api... | bash |
d_bash_15556 | ---
+++
@@ -1,6 +1,10 @@
function activate_dlrnapi_venv {
if [ ! -d $WORKSPACE/dlrnapi_venv ]; then
- virtualenv --system-site-packages $WORKSPACE/dlrnapi_venv
+ if [ $(command -v virtualenv) ]; then
+ virtualenv --system-site-packages $WORKSPACE/dlrnapi_venv
+ else
+ ... | bash |
d_bash_15557 | ---
+++
@@ -15,9 +15,9 @@
# create symbolic links
for digit in 0 2 4 6 8
- do cp "$MNIST_DIR/$digit/*.png" "$NEW_DATASET_DIR/even/"
+ do cp "$MNIST_DIR/$digit/"*.png "$NEW_DATASET_DIR/even/"
done
for digit in 1 3 5 7 9
- do cp "$MNIST_DIR/$digit/*.png" "$NEW_DATASET_DIR/odd/"
+ do cp "$MNIST_DIR/$digit/... | bash |
d_bash_15558 | ---
+++
@@ -5,14 +5,13 @@
dcos marathon app remove /scale-webserver
dcos marathon app stop /scale
-if [ ! -f scale-ui/deploy/scale-ui-master.tar.gz ]
+# Assumes an adjacent scale-ui source code checkout to grab UI assets from
+if [ ! -f ./scale-ui/index.html ]
then
- cd scale-ui
- tar xf node_modules.tar.g... | bash |
d_bash_15559 | ---
+++
@@ -6,7 +6,6 @@
gzip -S .cgz $(find public/assets -name '*.css')
gzip -S .jgz $(find public/assets -name '*.js')
bucket-assets --bucket artsy-force-$DEPLOY_ENV
-heroku config:set NODE_MODULES_CACHE=false --app=force-$DEPLOY_ENV
heroku config:set ASSET_MANIFEST=$(cat manifest.json) --app=force-$DEPLOY_ENV
... | bash |
d_bash_15560 | ---
+++
@@ -1,4 +1,11 @@
#!/usr/bin/env bash
+PREFIX="101.0.0.0/24"
+NEXTHOP="101.0.10.1"
## Advertize path
-docker exec -i gobgp-for-rr bash <<< "gobgp global rib add -a ipv4 101.0.0.0/24 nexthop 101.0.10.1"
+echo "##### prefix "$PREFIX
+echo "##### nexthop "$NEXTHOP
+
+(
+echo "gobgp global rib add -a ipv4 "$PR... | bash |
d_bash_15561 | ---
+++
@@ -34,7 +34,6 @@
umount "${DEVICE}"
echo "----Disconnecting Device File----"
-umount "${IMAGE}"
kpartx -d "${IMAGE}"
losetup -d "${DEVICE}" &>/dev/null
-dmsetup remove $(basename "$DEVICE") &>/dev/null
+dmsetup remove $(basename "${DEVICE}") &>/dev/null | bash |
d_bash_15562 | ---
+++
@@ -3,9 +3,8 @@
set -euxo pipefail
echo "tsan"
-cargo clean
export RUSTFLAGS="-Z sanitizer=thread"
export TSAN_OPTIONS="suppressions=/home/t/src/sled/tsan_suppressions.txt"
sudo rm -rf default.sled
-cargo run --features=lock_free_delays,no_jemalloc --target x86_64-unknown-linux-gnu -- --duration=30
ca... | bash |
d_bash_15563 | ---
+++
@@ -11,8 +11,8 @@
echo "Missing version input."
exit 1
fi
-VERSION_HASH="$(pushd "$CMAKE_SOURCE_DIR" &>/dev/null && git rev-parse HEAD 2>/dev/null ; popd &>/dev/null)"
-EXPECTED=v$EXPECTED-$VERSION_HASH
+[[ -z "$BUILDKITE_COMMIT" ]] && export BUILDKITE_COMMIT="$(pushd "$CMAKE_SOURCE_DIR" &>/dev/nul... | bash |
d_bash_15564 | ---
+++
@@ -23,7 +23,7 @@
ee_lib_echo "Installing Percona MySQL, please Wait..."
$EE_APT_GET install percona-server-server-5.6 mysqltuner percona-toolkit \
- || ee_lib_error "Unable to install MySQL, exit status = " $?
+ || ee_lib_error "Unable to install Percona MySQL, exit status = " $?
# Download tuning-... | bash |
d_bash_15565 | ---
+++
@@ -1,2 +1,2 @@
# https://git.fedorahosted.org/cgit/firewalld.git/tree/config/macros.firewalld
-test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || :
+test -f /usr/bin/firewall-cmd && firewall-cmd --reload --quiet || : | bash |
d_bash_15566 | ---
+++
@@ -3,7 +3,7 @@
local UPDATES=$(git log --oneline --no-patch origin/master..HEAD | wc -l)
if [[ $UPDATES -gt 0 ]]; then
- echo $PR_YELLOW"Updates for dotfiles detected."$PR_NO_COLOR
+ echo "${fg[yellow]}Updates for dotfiles detected.${terminfo[sgr0]}"
echo
else
git --git-dir "$(realpath ${0:a:h}/... | bash |
d_bash_15567 | ---
+++
@@ -16,6 +16,7 @@
: OPENSHIFT_PROJECT_NAME=${OPENSHIFT_PROJECT_NAME:=eclipse-kapua}
: DOCKER_ACCOUNT=${DOCKER_ACCOUNT:=kapua}
+ : IMAGE_VERSION=${IMAGE_VERSION:=latest}
# print error and exit when necessary
@@ -28,6 +29,6 @@
### Create Kapua from template
echo Creating Kapua from template ...
-... | bash |
d_bash_15568 | ---
+++
@@ -3,8 +3,34 @@
# shellcheck disable=SC1090
. ~/.bashrc
-# shellcheck disable=SC1091
-. /opt/omnibus-toolchain/bin/load-omnibus-toolchain
+echo "--- Setting Omnibus build environment variables"
+
+export PATH="/opt/omnibus-toolchain/bin:${PATH}"
+echo "PATH=${PATH}"
+
+if [[ -f "/opt/omnibus-toolchain/em... | bash |
d_bash_15569 | ---
+++
@@ -20,4 +20,4 @@
mvn -Dbuild.profile=fulldir -Droot.dir=${OPENNMS_SRC} -Dopennms.home=${OPENNMS_HOME} -Dmaven.metadata.legacy=true -Djava.awt.headless=true ${@} install
cd ${OPENNMS_SRC}/target
-ln -s opennms-**/ ${OPENNMS_HOME}
+ln -s opennms-**/ opennms | bash |
d_bash_15570 | ---
+++
@@ -1,4 +1,13 @@
#!/bin/sh
+
+# Allow for bind-mount setting.py overrides
+FILE=/settings/settings.py
+if test -f "$FILE"; then
+ echo "============================================================"
+ echo " Overriding DefectDojo's settings.py with $FILE."
+ echo "================================... | bash |
d_bash_15571 | ---
+++
@@ -25,7 +25,7 @@
cd $TRAVIS_BUILD_DIR
echo "Customize dispansible settings for Travis"
-cp .travis/settings_{TRAVIS_OS_NAME}.yml ./settings.yml
+cp .travis/settings_${TRAVIS_OS_NAME}.yml ./settings.yml
echo "Run dispansible"
./dispansible all | bash |
d_bash_15572 | ---
+++
@@ -7,5 +7,9 @@
python ../../scripts/dynamic_svrmap_runsim.py $numnum --duration=100s --receive-bandwidth=$bandwidth --send-bandwidth=$bandwidth --wait-additional=6 --flatness=.001 --capexcessbandwidth=false --object.queue=fairfifo
#./cbr --id=1 --serverips=serverip-3-3.txt --duration 100s --analysis.loc tr... | bash |
d_bash_15573 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-javadoc -d html -sourcepath src -subpackages com
+javadoc -d ~/Documents/Programming/websites/codemelon2012/content/documentation/graph2012 -sourcepath src -subpackages com | bash |
d_bash_15574 | ---
+++
@@ -14,7 +14,7 @@
#inlicate pane number that is zoomed
tm_window_zoom_indicator="#{?window_zoomed_flag,🔎 #P,}"
-tm_session_name_prefix_icon="⚓"
+tm_session_name_prefix_icon="☞"
tm_session_name="$tm_session_name_prefix_icon #[fg=colour243]#S"
tm_date="%R %d %b"
| bash |
d_bash_15575 | ---
+++
@@ -3,8 +3,15 @@
yum -y install cloud-init cloud-utils dracut-modules-growroot
dracut -f
-sed -i -e \
- 's/GRUB_CMDLINE_LINUX=\"\(.*\)/GRUB_CMDLINE_LINUX=\"console=ttyS0,115200n8 console=tty0 quiet \1/g' \
- /etc/default/grub
-
-grub2-mkconfig -o /boot/grub2/grub.cfg
+if [ -e /boot/grub/grub.conf ] ; th... | bash |
d_bash_15576 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-SWIFT_VERSION=3.0.1
+SWIFT_VERSION=$(<../.swift-version)
# Build Swift executable
docker run \ | bash |
d_bash_15577 | ---
+++
@@ -1,5 +1,8 @@
# Initialize completion
autoload -Uz compinit && compinit
+
+# Initialize editing command line
+autoload -U edit-command-line && zle -N edit-command-line
# Set automatic cd (typing directory name with no 'cd')
setopt autocd
@@ -29,6 +32,8 @@
# Undo
bindkey -a 'u' undo
bindkey -a '^R' ... | bash |
d_bash_15578 | ---
+++
@@ -9,6 +9,12 @@
build=$(cd "$1/" && pwd)
cache=$(cd "$2/" && pwd)
env_dir=$(cd "$3/" && pwd)
+
+# -------
+
+# Secret variables aren't exported in the build phase, but they are available
+# from the environment directory.
+export "GH_TOKEN=$(cat $env_dir/GH_TOKEN)"
# -------
| bash |
d_bash_15579 | ---
+++
@@ -1,5 +1,11 @@
#!/usr/bin/env bash
set -e
+
+if [ $# -eq 0 ]
+ then
+ echo "usage: promote-from-mock-to-stage.sh <stage db password>"
+ exit
+fi
# This script requires the 'jq' command line tool
brew install jq
@@ -15,7 +21,7 @@
GIT_REF=`jq -r '.gitRef' build-info.json` WAIT_DURATION=45000 APP... | bash |
d_bash_15580 | ---
+++
@@ -29,6 +29,8 @@
TESTS=$(declare -F | grep ' ynhtest_' | awk '{print $3}')
+global_result=0
+
for TEST in $TESTS
do
log_test $TEST
@@ -41,5 +43,7 @@
$TEST
) > ./test.log 2>&1 \
&& log_passed \
- || { echo -e "\n----------"; cat ./test.log; echo -e "----------"; log_failed; }
+... | bash |
d_bash_15581 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
set -e
| bash |
d_bash_15582 | ---
+++
@@ -9,6 +9,6 @@
TARGET_DIR=target/generated-sources/thrift
rm -rf "${ROOT_DIR:?}/${TARGET_DIR}"
mkdir -p "${ROOT_DIR}/${TARGET_DIR}"
-docker run -u "$(id -u)" -v "${ROOT_DIR}:/rundir" thrift:0.9.3 thrift -o /rundir/${TARGET_DIR} --gen java:beans,hashcode,generated_annotations=undated /rundir/${SOURCE_DIR}/... | bash |
d_bash_15583 | ---
+++
@@ -1,6 +1,6 @@
#! /bin/sh
set -xve
-dotnet restore
+dotnet restore -s https://myget.org/f/danroth28/api/v3/index.json
dotnet pack -c Release -o /src/packages
dotnet publish -c Release -o /src/publish/dotnet-toolbox
apt-get update | bash |
d_bash_15584 | ---
+++
@@ -2,7 +2,7 @@
# be externalized into this file
# Our Jenkins server
-LOCAL_JENKINS=http://172.31.73.16:8080/jenkins
+LOCAL_JENKINS=http://jenkins-ui:8080/jenkins
#CURL_ARGS='--socks5 localhost:1111'
CURL_ARGS='' | bash |
d_bash_15585 | ---
+++
@@ -30,7 +30,7 @@
elif [[ "${TEST_SLOW}" == "true" ]]; then
cat << EOF | python
import sympy
-if not sympy.test(slow=True, timeout=300):
+if not sympy.test(slow=True, timeout=240):
# Travis times out if no activity is seen for 10 minutes. It also times
# out if the whole tests run for... | bash |
d_bash_15586 | ---
+++
@@ -1,6 +1,7 @@
#! /bin/sh
-project="ci-build"
+project="${TRAVIS_REPO_SLUG##*/}"
+package=$project.unitypackage
echo "Setting up project directory;"
mkdir ./Project
@@ -37,7 +38,7 @@
-silent-crashes \
-logFile ./unityPackage.log \
-projectPath "$PWD"/Project \
- -exportPackage Assets/$project $p... | bash |
d_bash_15587 | ---
+++
@@ -25,6 +25,5 @@
synth -run coarse; \
opt -full; \
techmap; abc9 -lut 4 -box ../abc.box; \
- clean; \
check -assert; \
select -assert-none t:${DOLLAR}_NOT_ t:${DOLLAR}_AND_ %%'" | bash |
d_bash_15588 | ---
+++
@@ -1,5 +1,7 @@
#!/bin/sh
-args=`getopt d $*`
+BUILD_COBOL=1
+BUILD_C=1
+args=`getopt dCc $*`
if [ $? -ne 0 ]; then
echo 'Usage: sh gnu-cobol.sh [-d]'
exit 2
@@ -11,13 +13,25 @@
DEBUG=1
shift
;;
+ -C)
+ unset BUILD_COBOL
+ shift
+ ;;
+ -c)
+ unset BUILD_C
+ shift
+... | bash |
d_bash_15589 | ---
+++
@@ -27,6 +27,8 @@
alias ll="ls -lh"
alias ..="cd .."
alias finder="open"
+alias show-hidden='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
+alias hide-hidden='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Librar... | bash |
d_bash_15590 | ---
+++
@@ -3,28 +3,19 @@
export PATH=/bin:/usr/bin
cur_dir=`pwd`
# save the first three arguments and then discard
-source=$1
-es_index=$2
-processed=$3
+es_index=$1
shift
shift
shift
-sed -i "s/ES_INDEX/$es_index/" joblog.conf
+sed -i "s/DCACHE_INDEX/$es_index/" joblog.conf
while [ "$1" != "" ]; do
- if [... | bash |
d_bash_15591 | ---
+++
@@ -1,11 +1,10 @@
#!/bin/bash
-MOUNT_GROUP=$(stat -c "%G" .)
-MOUNT_GROUP_ID=$(stat -c "%g" .)
-MOUNT_GROUP_EXISTS=$(grep "^$MOUNT_GROUP:" /etc/group | wc -l)
+VOL_GROUP=$(stat -c "%G" .)
+VOL_GROUP_ID=$(stat -c "%g" .)
-if [ "$MOUNT_GROUP" != "apache" ]; then
- groupadd -f -g $MOUNT_GROUP_ID $MOUNT_GROUP... | bash |
d_bash_15592 | ---
+++
@@ -6,7 +6,7 @@
function doIt() {
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" \
- --exclude "README.md" --exclude "LICENSE-MIT.txt" -avh --no-perms . ~;
+ --exclude "README.md" --exclude "LICENSE-MIT.txt" --exclude ".extra" -avh --no-perms . ~;
source ~/.profile;
}
| bash |
d_bash_15593 | ---
+++
@@ -1,3 +1,8 @@
#!/usr/bin/env bash
-echo "Example Init Script to be loaded to s3 bucket"
+echo "Initialising AEM Stack Builder provisioning..."
+
+aws --version
+puppet --version
+python --version
+ruby --version | bash |
d_bash_15594 | ---
+++
@@ -3,4 +3,4 @@
set -e
set -v
-scp *.html ludov@web.sourceforge.net:/home/project-web/pyscard/htdocs/
+scp -r _build/html/* ludov@web.sourceforge.net:/home/project-web/pyscard/htdocs/ | bash |
d_bash_15595 | ---
+++
@@ -34,6 +34,16 @@
echo '* Test Runner result'
cat $test_result_file
+total=$(echo 'cat //test-run/@total' | xmllint --shell $test_result_file | awk -F\" 'NR % 2 == 0 { print $2 }')
+passed=$(echo 'cat //test-run/@passed' | xmllint --shell $test_result_file | awk -F\" 'NR % 2 == 0 { print $2 }')
+failed=... | bash |
d_bash_15596 | ---
+++
@@ -1,11 +1,6 @@
#!/usr/bin/env bash
set -e
-
-if [ -z "$GOPATH" ]; then
- echo '$GOPATH environment variable not set. Have you installed Go?'
- exit 1
-fi
which pigeon >/dev/null || {
echo "Installing pigeon from vendor" | bash |
d_bash_15597 | ---
+++
@@ -22,4 +22,9 @@
fi
make test
+if [ "${AGENT_OS?}" == "Darwin" ]; then
+ # See https://github.com/actions/virtual-environments/issues/2619#issuecomment-788397841
+ # for why this is needed.
+ sudo /usr/sbin/purge
+fi
make release | bash |
d_bash_15598 | ---
+++
@@ -8,6 +8,9 @@
echo 'Making sure Redis is running...'
redis-server ./conf/redis.conf --port $REDIS_PORT
+echo 'Making sure Elasticsearch is running...'
+elasticsearch -d --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml
+
sudo sysctl -w kern.maxfiles=50000
sudo sysctl -w kern.maxfilesperpr... | bash |
d_bash_15599 | ---
+++
@@ -9,7 +9,7 @@
rev=$(git rev-parse --short HEAD)
cd target/doc
-echo '<meta http-equiv=refresh content=0;url=/fits-rs/fits-rs/index.html>' > index.html
+echo '<meta http-equiv=refresh content=0;url=/fits-rs/fits_rs/index.html>' > index.html
git init
git config user.name "Daan van Berkel" | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.