document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_15600 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash --norc
ManpageTitle=$(ps -p $(ps -p $$ -o ppid=) -o args= | awk '{print $NF}')
-ManpageTitle="MANPAGE\ :\ $ManpageTitle"
+ManpageTitle="MANPAGE\ :\ $MAN_PN"
-col -b | gvim -R -c -geometry 120x65 "set ft=man nomod nolist titlestring=$ManpageTitle" - > /dev/null
+col -b | MANPA... | bash |
d_bash_15601 | ---
+++
@@ -2,10 +2,9 @@
set -eux;
-# Spins up a docker container to run postgres tests
-
+# Spin up a docker container to run postgres tests
if [ ! "$(docker ps -q -f name=eventful_test_pg)" ]; then
- if [ "$(docker ps -aq -f status=exited -f name=eventful_test_pg)" ]; then
+ if [ "$(docker ps -aq -f name=ev... | bash |
d_bash_15602 | ---
+++
@@ -2,7 +2,7 @@
# Rename the services to {Publisher/Subscriber}ServiceApi
sed -i 's/service Publisher/service PublisherServiceApi/g' $GOOGLEAPIS/google/pubsub/v1/pubsub.proto
-sed -i 's/v1.Publisher/v2.PublisherServiceApi/g' $GOOGLEAPIS/google/pubsub/v1/pubsub_grpc_service_config.json
+sed -i 's/v1.Publis... | bash |
d_bash_15603 | ---
+++
@@ -1,2 +1,2 @@
-alias reload!='. ~/.zshrc'
+alias reload!='. ~/.zshrc && export PATH=$HOME/.rvm/gems/$(rvm-prompt)/bin:$PATH'
alias dotvim='vim $DOTFILES' | bash |
d_bash_15604 | ---
+++
@@ -5,8 +5,8 @@
Here's what you can do:
-1. $ vagrant up
-2. Now click through and accept the license (avoid altering any settings on the way), choose admin:admin as credentials.
+1. $ cd examples/teamcity && vagrant up
+2. Now go to http://localhost:8111 and click through, accepting the license (avoid a... | bash |
d_bash_15605 | ---
+++
@@ -18,7 +18,7 @@
. ~/.rvm/scripts/rvm
set -x
-BCSEC_RVM_RUBY='ree-1.8.7-2010.02'
+BCSEC_RVM_RUBY='ree-1.8.7-2011.03'
GEMSET="bcsec-rails-${JOB_NAME}"
echo "Switching to ${BCSEC_RVM_RUBY}" | bash |
d_bash_15606 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/bash
SWIFT_URL=https://swift.org/builds/swift-3.0-preview-1/ubuntu1404/swift-3.0-preview-1/swift-3.0-preview-1-ubuntu14.04.tar.gz
+BASE_DIR=$(pwd)
# Install Swift
cd ${HOME}
@@ -14,3 +15,6 @@
# Move to .swift, set PATH
mv $(basename "$SWIFT_URL" ".tar.gz") .swift
export PATH=... | bash |
d_bash_15607 | ---
+++
@@ -8,4 +8,4 @@
-DCMAKE_INSTALL_PYTHONDIR=${SP_DIR} \
-DCMAKE_INSTALL_LIBDIR=lib \
..
-ninja install -j${CPU_COUNT}
+ninja install | bash |
d_bash_15608 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
echo "Removing the node modules folder..."
-rm -rf ./node_module
+rm -rf ./node_modules
if [ $? -eq 0 ]; then
echo "Successfully cleaned out the node modules folder."
npm i | bash |
d_bash_15609 | ---
+++
@@ -5,7 +5,7 @@
fi
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
- sudo apt-get install -qq cdbs cmake libboost-dev lcov libmysqlclient-dev mysql-community-source
+ sudo apt-get install -qq --force-yes cdbs cmake libboost-dev lcov libmysqlclient-dev mysql-community-source
gem install coveralls-lcov
m... | bash |
d_bash_15610 | ---
+++
@@ -16,3 +16,12 @@
echo "# => SYSTEM UPDATED SUCCESSFULLY"
fi
+# Ask the user for Firewall Rules Cleanup
+echo -n "Do you want to cleanup the current firewall rules (y/n)[y]? "
+read answer
+if echo "$answer" | grep -iq "^n" ;then
+ echo "# => CLEANUP FIREWALL RULES: SKIPPED"
+else
+ sudo iptabl... | bash |
d_bash_15611 | ---
+++
@@ -25,3 +25,5 @@
rm -rf ./vendor/k8s.io/{kube-aggregator,apiserver,apimachinery,client-go,metrics}
cp -r ./vendor/k8s.io/kubernetes/staging/src/k8s.io/{kube-aggregator,apiserver,apimachinery,client-go,metrics} ./vendor/k8s.io
+
+rm -rf bin | bash |
d_bash_15612 | ---
+++
@@ -2,14 +2,17 @@
# Setup Atom editor
set -euf -o pipefail
-AtomHome="${1}/.atom/"
+AtomHome="/home/${1}/.atom/"
AtomPackages="packages.txt"
-if [ -d "${AtomHome}" ]; then
- cp ./config.cson ${AtomHome}
- cp ./keymap.cson ${AtomHome}
- cp ./styles.less ${AtomHome}
+if [ ! -d "${AtomHome}" ]; then
+ ... | bash |
d_bash_15613 | ---
+++
@@ -14,5 +14,9 @@
# Copy results to workspace
scp ubuntu@${REMOTE_NODE}:MooBench/tmp/results-kieker/results-text.csv plot.csv
-# Clean up
+# Save results on remote node and clean up
+ssh ubuntu@${REMOTE_NODE} 'cp MooBench/tmp/results-kieker/results.zip old-results --backup=t; exit'
+ssh ubuntu@${REMOTE_NO... | bash |
d_bash_15614 | ---
+++
@@ -17,8 +17,8 @@
# Replace outdated GNU utilities that come with OS X
# Add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`
# to use them without prefixes
-brew install coreutils --default-names
-brew install findutils --with-default-names
+brew install coreutils
+brew install findutils
# Insta... | bash |
d_bash_15615 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-for wf in testIn*.knwf
+for wf in basic_peptide_*.knwf
do
"${1}" -consoleLog -nosplash -data "${2}" -application org.knime.product.KNIME_BATCH_APPLICATION -workflowFile="$(pwd)/${wf}" -reset > log_${wf}.txt
done | bash |
d_bash_15616 | ---
+++
@@ -7,10 +7,4 @@
sleep 10
fi
-# TODO: find a way to fix this
-# See https://github.com/vpsfreecz/vpsadminos/issues/39
-if [ "$DISTNAME" == "void" ] ; then
- osctl ct stop $CTID || fail "unable to stop container"
-else
- osctl ct stop --dont-kill $CTID || fail "unable to stop container"
-fi
+osctl ct stop... | bash |
d_bash_15617 | ---
+++
@@ -1,8 +1,10 @@
#!/bin/bash
set -e
-[ -x .venv/bin/pip ] || virtualenv .venv
-. .venv/bin/activate
+VENV_PATH="${HOME}/venv/${JOB_NAME}"
+
+[ -x ${VENV_PATH}/bin/pip ] || virtualenv ${VENV_PATH}
+. ${VENV_PATH}/bin/activate
pip install -q ghtools
| bash |
d_bash_15618 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "master" &&
- $TRAVIS_PYTHON_VERSION == 3.5 ]#&& -n "$GH_TOKEN" ]]
+ $TRAVIS_PYTHON_VERSION == 3.5 && -n "$GH_TOKEN" ]]
then
# See https://help.github.com/articles/creating-an-access-token-for-command-line-use/ ... | bash |
d_bash_15619 | ---
+++
@@ -34,7 +34,11 @@
)
declare -A globalExcludeTests=(
+ # single-binary images
[hello-world_utc]=1
+ [swarm_utc]=1
+
+ # no "native" dependencies
+ [ruby:slim_ruby-bundler]=1
[ruby:slim_ruby-gems]=1
- [ruby:slim_ruby-bundler]=1
) | bash |
d_bash_15620 | ---
+++
@@ -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_15621 | ---
+++
@@ -17,7 +17,7 @@
}
run_webapp() {
- ${THIS_DIR}/../app/main.py
+ exec ${THIS_DIR}/../app/main.py
}
| bash |
d_bash_15622 | ---
+++
@@ -6,15 +6,15 @@
rm -rf /var/lib/apt/lists/*
echo "# install apt repo for clang compiler"
-# install apt repo for clang compiler
+# add apt repo for clang compiler
+wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main" >> /e... | bash |
d_bash_15623 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/sh
+
+# Stop interface generation if running on Travis-CI
+[ "$USER" = "travis" ] && exit 0
[ -z "$SRCROOT" -o -z "$TARGET_TEMP_DIR" ] && exit 1
| bash |
d_bash_15624 | ---
+++
@@ -8,8 +8,8 @@
make install-dep
# Build rpms
-make bootstrap
-make pkg-rpm
+sudo -H -u vagrant make bootstrap
+sudo -H -u vagrant make pkg-rpm
# Install rpms
| bash |
d_bash_15625 | ---
+++
@@ -8,6 +8,6 @@
echo "Installing vbox guest additions"
apt-get install build-essential module-assistant &&
m-a prepare &&
-mount /media/cdrom &&
+mount /media/cdrom
sh /media/cdrom/VBoxLinuxAdditions.run
| bash |
d_bash_15626 | ---
+++
@@ -2,7 +2,8 @@
xfce()
{
- apt-get install xfce4 -yq
+ apt-get install xrdp -y -qq
+ apt-get install xfce4 -y -qq
(
cat <<'EOF'
#!/bin/sh
@@ -19,7 +20,21 @@
unity()
{
- apt-get install ubuntu-desktop -yq
+ if [ $(lsb_release -si) != "Ubuntu" ]; then
+ (>&2 echo "This GUI shell only works on... | bash |
d_bash_15627 | ---
+++
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-PREFIX="http://127.0.0.1:8080/w"
+PREFIX="https://www.mediawiki.org/w"
BASE_PATH="`dirname $0`/.."
wget "$PREFIX/load.php?debug=true&lang=en&modules=skins.minerva.base.reset|skins.minerva.content.styles|ext.cite.style|mediawiki.page.gallery.styles|mobile.app.pagestyle... | bash |
d_bash_15628 | ---
+++
@@ -27,7 +27,7 @@
echo "Installing additional stuff"
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
-curl https://raw.githubusercontent.com/altercation/vim-colors-solarized/master/colors/solarized.vim
+curl "https://raw.githubusercontent.com/altercation/vim-colors-solarized... | bash |
d_bash_15629 | ---
+++
@@ -15,14 +15,14 @@
echo "=> Scripts directory is marked, scripts were already copied. Nothing to do."
fi
-if [ ! -f "$SINUS_CONFIG/config.ini" ]; then
- echo "-> No $SINUS_CONFIG/config.ini found, copying."
- mv "$SINUS_DIR/config.ini" "$SINUS_CONFIG/config.ini"
+if [ -d "$SINUS_CONFIG" ] && [ ... | bash |
d_bash_15630 | ---
+++
@@ -1,9 +1,13 @@
#!/usr/bin/env sh
+set -xe
+
+apt-get update
apt-get install software-properties-common python-software-properties
apt-add-repository ppa:ansible/ansible
apt-get update
# Don't use 2.0.0.1 because we hit https://github.com/ansible/ansible/issues/13763
#apt-get install ansible
+apt-g... | bash |
d_bash_15631 | ---
+++
@@ -18,11 +18,13 @@
# global packages
sudo -H pip install --quiet --upgrade pip virtualenv
-sudo python3 -m pip install --user pipx
+# pipx
+python3 -m pip install --user pipx
-# non-global packages
-pipx install virtualenvwrapper
+# user/pipx packages
+pip install --user virtualenvwrapper
mkdir -p "${... | bash |
d_bash_15632 | ---
+++
@@ -15,14 +15,14 @@
export qemu_ifup="$INCLUDEOS_HOME/etc/qemu-ifup"
-[ ! -v NET ] && export NET="-device virtio-net,netdev=net0,mac=$macaddress -netdev tap,id=net0,script=$qemu_ifup"
-[ ! -v SMP ] && export SMP="-smp 1"
-[ ! -v GRAPHICS ] && export GRAPHICS="-nographic"
-[ ! -v SERIAL ] && export SERIAL... | bash |
d_bash_15633 | ---
+++
@@ -1,6 +1,17 @@
#!/bin/bash
+# Script that creates a fixture based on a full copy of the database,
+# plus a python dictionary with all the users, and puts them both
+# under /tmp/cronos/fixtures
-[[ -d /tmp/cronos/fixtures ]] || mkdir /tmp/cronos/fixtures
-$1/manage.py dumpdata -e announcements.announcem... | bash |
d_bash_15634 | ---
+++
@@ -10,7 +10,14 @@
}
# If There is no Postgre role with the username, create it
-[ $(psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='$USERNAME'") != "1" ] && createRole
+# psql will error if there is no role with the current user's name, e.g.:
+# psql: FATAL: role "user" does not exist
+if psql... | bash |
d_bash_15635 | ---
+++
@@ -10,7 +10,7 @@
# make sure Xcode is installed before running next command
XCODE_PATH=$(xcode-select -p)
-if [ "$XCODE_PATH" = "" ]; then
+if [ ! -d "$XCODE_PATH" ]; then
echo $red "Please install Xcode first." $normalColor
exit 1
fi | bash |
d_bash_15636 | ---
+++
@@ -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://github.com/AdoptOpenJDK/openjdk15-binaries/releases/download/jdk15-2020-06-15-05-34/OpenJDK15-jdk_x64_linux_hotspot... | bash |
d_bash_15637 | ---
+++
@@ -4,6 +4,9 @@
set -o nounset
set -o xtrace
set -o verbose
+
+docker version
+docker-compose version
export COMPOSE_PROJECT_NAME="dind$(cat /proc/sys/kernel/random/uuid | sed 's/-//g')"
| bash |
d_bash_15638 | ---
+++
@@ -13,7 +13,7 @@
GIT_COMMIT_MESSAGE="Generated page based on revision "$GIT_CURRENT_REVISION
cd ../2016.mobilization.pl-gh-pages
-git pull
+git pull -X ours
git add -A
git commit -m "$GIT_COMMIT_MESSAGE"
git push origin gh-pages | bash |
d_bash_15639 | ---
+++
@@ -16,6 +16,10 @@
lm --arpa="$TRAIN_DIR/model_pruned" --out-bin="$TRAIN_DIR/model_pruned.fsabin"
arpa2bin < "$TRAIN_DIR/model_la" > "$TRAIN_DIR/model_la.bin"
-
-$BASE_DIR/../02_amtraining/base_scripts/vocab2lex.pl -read="$TRAIN_DIR/vocab" >"$TRAIN_DIR/vocab.lex"
+if [ -z $MORPH_TRAIN_OPTIONS ]; then... | bash |
d_bash_15640 | ---
+++
@@ -14,7 +14,7 @@
)
# adjust the path for ASDF
-. $(brew --prefix asdf)/asdf.sh
+. $(brew --prefix asdf)/libexec/asdf.sh
path=(
# make sure ./bin is at the front so things like binstubs | bash |
d_bash_15641 | ---
+++
@@ -4,7 +4,8 @@
# License: 3-clause BSD
-set -e
+# 02/10/2018 remove due to Travis build issue 6307
+# set -e
# push coverage if necessary
if [[ "$COVERAGE" == "true" ]]; then | bash |
d_bash_15642 | ---
+++
@@ -17,7 +17,7 @@
set -e
# Select bazel version.
-BAZEL_VERSION="0.3.0"
+BAZEL_VERSION="0.3.1"
# Install bazel.
mkdir /bazel | bash |
d_bash_15643 | ---
+++
@@ -9,3 +9,4 @@
alias free='free -h'
alias ssh='ssh -X'
alias wchere='cat $(find .) 2>/dev/null | wc'
+alias eg='env | grep -i' | bash |
d_bash_15644 | ---
+++
@@ -6,4 +6,5 @@
echo "Creating backup dir"
mkdir backupdir -p
+mkdir ~/.config/nvim/ -p 2>/dev/null
cp nvim.conf ~/.config/nvim/init.vim | bash |
d_bash_15645 | ---
+++
@@ -16,7 +16,7 @@
synerty-peek"
export PLUGINS="
-peek-plugin-action-to-client
+peek-plugin-active-task
peek-plugin-data-dms
peek-plugin-pof-soap
peek-plugin-user | bash |
d_bash_15646 | ---
+++
@@ -13,7 +13,7 @@
ssh_cmd='ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
# Create local symlink
-pushd /tmp/
+pushd $(mktemp -d)
mkdir -p $PROMOTED_HASH
ln -s $PROMOTED_HASH stable
| bash |
d_bash_15647 | ---
+++
@@ -7,5 +7,19 @@
sudo installer -pkg python-2.7.11-macosx10.6.pkg -target /
pip install -U pip
brew update
-brew install openssl
-brew link --force openssl
+
+# follow this pattern to avoid failing if its already
+# installed by brew:
+# http://stackoverflow.com/a/20802425
+if brew ls --versions gmp > /dev... | bash |
d_bash_15648 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/bash
+set -ev
if [ "$(git rev-parse --abbrev-ref HEAD)" = "deploy" ] ; then
bundle exec pod trunk push SwiftDecimalNumber.podspec
fi | bash |
d_bash_15649 | ---
+++
@@ -5,9 +5,6 @@
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
if [[ $SHOULD_DEPLOY = 1 ]]; then
- chmod a+xr $TRAVIS_BUILD_DIR/build/verge-$HOST/src/qt/verge-qt
- chmod a+xr $TRAVIS_BUILD_DIR/build/verge-$HOST/src/qt/verged
-
cp $TRAVIS_BUILD_DIR/build/verge-$HOST/sr... | bash |
d_bash_15650 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/sh
+
+sudo apt-get update
sudo apt-get install \
libasound2:i386 \ | bash |
d_bash_15651 | ---
+++
@@ -3,6 +3,6 @@
# Create a temporary sync function for sample-sync-doc-definitions.js and then runs all of its unit tests with Mocha.
mkdir -p target/
-../sync-function-maker.rb sample-sync-doc-definitions.js target/test-sample-sync-function.js
+../make-sync-function.rb sample-sync-doc-definitions.js targ... | bash |
d_bash_15652 | ---
+++
@@ -17,8 +17,8 @@
git checkout -b $BRANCH || git checkout $BRANCH
git add .
git commit -m "incoming for $TODAY"
- git push --set-upstream origin $BRANCH
-
+ ssh-agent bash -c "ssh-add ~/.ssh/gxd_rsa; git push --set-upstream origin $BRANCH"
+
# submit pull request
git request... | bash |
d_bash_15653 | ---
+++
@@ -4,20 +4,20 @@
#
# JavaDoc
-cd target/checkout/
-mvn javadoc:aggregate
-rm -Rf ../../../cucumber.github.com/api/cucumber/jvm/javadoc/
-cp -R target/site/apidocs/ ../../../cucumber.github.com/api/cucumber/jvm/javadoc/
-cd -
+pushd target/checkout/
+ mvn javadoc:aggregate
+ rm -Rf ../../../cucumber.git... | bash |
d_bash_15654 | ---
+++
@@ -8,7 +8,7 @@
# script. Also doesn't need to be executable.
#
# Expected environment variables:
-# DEBUG - debug function will only print out of this is 'true'
+# VERBOSE - verbose function will only print out of this is 'true'
#
# log "What to log"
@@ -16,9 +16,9 @@
printf "%b\n" "$(date +"... | bash |
d_bash_15655 | ---
+++
@@ -9,7 +9,7 @@
echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.14%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.14_9.tar.gz"
;;
java17)
- echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.1%2B12/OpenJDK17U-jdk_x64_linux_hotspot_17.0.1_12.tar... | bash |
d_bash_15656 | ---
+++
@@ -4,11 +4,7 @@
exit 0
fi
-yum install wget -y
-
-wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
-rpm -ivh epel-release-6-8.noarch.rpm
-rm -f epel-release-6-8.noarch.rpm
+yum install epel-release -y
yum install nginx php-fpm mysql-server php-mysql php-mcrypt gett... | bash |
d_bash_15657 | ---
+++
@@ -1 +1,5 @@
alias reload!='. ~/.zshrc'
+
+# Quick way to rebuild the Launch Services database and get rid
+# # of duplicates in the Open With submenu.
+alias fixopenwith='/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain ... | bash |
d_bash_15658 | ---
+++
@@ -23,14 +23,14 @@
./node_modules/.bin/gulp test:node
-nvm install 5
+nvm install 6
rm -rf node_modules
yarn
./node_modules/.bin/gulp test:node
-nvm install 6
+nvm install 7
rm -rf node_modules
yarn | bash |
d_bash_15659 | ---
+++
@@ -1,7 +1,7 @@
export VERSION="1.0.4"
export BUILD_NAME="0"
export CONDA_BLD_PATH=~/conda-bld
-USER="acme"
+USER="e3sm"
PLATFORM="linux-64"
PKG="processflow"
@@ -16,10 +16,11 @@
export TAG="$1"
echo "Cloning from branch $1"
else
+ echo "Cloning from master"
export TAG="master"
fi
... | bash |
d_bash_15660 | ---
+++
@@ -1,2 +1,6 @@
conda list -p $PREFIX --canonical
+# This is actually the build string. We test the build number below
[ "$(conda list -p $PREFIX --canonical)" = "conda-build-test-build-number-1.0-1" ]
+
+cat $PREFIX/conda-meta/conda-build-test-build-number-1.0-1.json
+[ "$(cat $PREFIX/conda-meta/conda-buil... | bash |
d_bash_15661 | ---
+++
@@ -14,10 +14,17 @@
# Make a schema
cat $BASE/schema_template.json | sed -r "s/__TARGET__/$TARGET/" > $BASE/schema.$TARGET.json
-LIST=$BASE/s3data.list
+LIST=$BASE/s3files.$TARGET.list
echo "Listing files for $TARGET"
$HEKA_PATH/heka-s3list -bucket $DATA_BUCKET -bucket-prefix $DATA_PREFIX -schema $BAS... | bash |
d_bash_15662 | ---
+++
@@ -8,12 +8,6 @@
export LIBS="-lnosys -lm"
-# TODO: Remove when this is fixed.
-# https://code.google.com/p/nativeclient/issues/detail?id=3599
-if [ "$NACL_ARCH" = "pnacl" ]; then
- export NACLPORTS_CFLAGS="${NACLPORTS_CFLAGS//-O2/}"
-fi
-
CONFIG_SUB=config/config.sub
DefaultPackageInstall
exit 0 | bash |
d_bash_15663 | ---
+++
@@ -38,7 +38,7 @@
chmod +x $buildFile
# Cleanup
- if test ! -d $tempFolder; then
+ if test -d $tempFolder; then
rm -rf $tempFolder
fi
fi | bash |
d_bash_15664 | ---
+++
@@ -20,6 +20,13 @@
# Run all Java tests
./gradlew -Pq clean build
+# Pre-fetch python dependencies. This is to avoid build flakiness introduced by
+# the resolver used in pants.
+export PIP_DEFAULT_TIMEOUT=60
+mkdir -p third_party
+# We omit mesos.native here since we don't actually build or use it in our... | bash |
d_bash_15665 | ---
+++
@@ -5,13 +5,19 @@
os_id=$(. /etc/os-release; echo "$ID")
echo 'Install Node.js'
+# Check the latest version from https://nodejs.org/en/ and https://github.com/nodesource/distributions
case $os_id in
ol)
- curl -sL https://rpm.nodesource.com/setup_8.x | sudo bash -
+ curl -sL https://rpm.nodesour... | bash |
d_bash_15666 | ---
+++
@@ -12,7 +12,7 @@
curbranch="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
echo "Determined branch to be $curbranch"
-git clone --depth=1 https://github.com/vector-im/riot-web.git \
+git clone https://github.com/vector-im/riot-web.git \
"$RIOT_WEB_DIR"
git checkout "$curbranch" || git checkout de... | bash |
d_bash_15667 | ---
+++
@@ -41,7 +41,6 @@
pip install git+https://github.com/bmcfee/samplerate.git
pip install python-coveralls
- pip install mock
source deactivate
popd | bash |
d_bash_15668 | ---
+++
@@ -1,4 +1,4 @@
-#/usr/bin/bash
+#!/usr/bin/env bash
python3 setup.py sdist
python3 setup.py bdist_wheel | bash |
d_bash_15669 | ---
+++
@@ -9,6 +9,7 @@
OPTIONS:
-h Show this message
+ -s Skip sudo configuration
-v Be verbose
EOF
@@ -16,12 +17,15 @@
VERBOSE=0
-while getopts “vh” OPTION
+while getopts “vhs” OPTION
do
case $OPTION in
h)
usage
exit 1
+ ;;... | bash |
d_bash_15670 | ---
+++
@@ -1,14 +1,14 @@
#!/bin/bash
-export PEGASUS_BIN_DIR=`pegasus-config --bin`
-if [ "x$PEGASUS_BIN_DIR" = "x" ]; then
- echo "Please make sure pegasus-config is in your path"
- exit 1
-fi
+cd `dirname $0`
+cwd=`pwd`
+tests=`dirname $cwd`
+home=`dirname $tests`
+bin=$home/bin
function exitcode {
e... | bash |
d_bash_15671 | ---
+++
@@ -1,5 +1,6 @@
gulp
cp -r dist/* ../infection-website/
cd ../infection-website
+git add .
git commit -am "Updated the website"
git push | bash |
d_bash_15672 | ---
+++
@@ -18,8 +18,4 @@
cd $HOME/.dotfiles && make
-echo "installing minimal packages..."
-cd $HOME/.dotfiles && make requirements
-
-
echo "finished." | bash |
d_bash_15673 | ---
+++
@@ -34,7 +34,7 @@
screen -X chdir $PWD
}
-if [[ "$TERM" == 'screen.rxvt' ]]; then
+if [[ -n $STY ]]; then
alias cd=scr_cd
fi
| bash |
d_bash_15674 | ---
+++
@@ -8,9 +8,9 @@
commit_hash=$(cat $BUILD_TAG.yaml| shyaml get-value commits.0.commit_hash)
distro_hash=$(cat $BUILD_TAG.yaml| shyaml get-value commits.0.distro_hash)
-dlrnapi report-result \
- --url https://$DELOREAN_HOST/api-$RDO_VERSION \
+dlrnapi --url https://$DELOREAN_HOST/api-$RDO_VERSION \
... | bash |
d_bash_15675 | ---
+++
@@ -1,25 +1,49 @@
pkg_name=python
pkg_version=3.5.2
pkg_origin=core
-pkg_license=('python')
+pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
+pkg_license=('Python-2.0')
+pkg_description="Python is a programming language that lets you work quickly
+and integrate systems more effectively."
pkg_... | bash |
d_bash_15676 | ---
+++
@@ -1,13 +1,11 @@
#!/bin/bash
-
-set -e
# Try several times to do the build (sometimes network or other issues causes
# it to fail)
for i in $(seq 0 4); do
echo "Trying build $i..."
make clean
- BUILD_EXIT_CODE=$(make)
+ make
if [[ $? -eq 0 ]]; then
cp dist/* $CIRCLE_ARTIFA... | bash |
d_bash_15677 | ---
+++
@@ -8,10 +8,10 @@
: "$path"
case $path in
"~"|"~"/*)
- path=${HOME-~}${path#"~"}
+ path=${HOME-~}${path:1}
;;
"~"[0-9]|"~"[+-][0-9])
- local num=${path#"~"}
+ local num=${path:1}
... | bash |
d_bash_15678 | ---
+++
@@ -4,8 +4,29 @@
domain=${1:-'spf-orig.apiary.io'}
+printip4() {
+ while read line
+ do
+ echo "ip4:$line"
+ done
+}
+
+dea() {
+ dig +short -t A $1 | printip4
+}
+
+demx() {
+ host=$1
+ mymx=`dig +short -t mx $host | awk '{print $2}'`
+ for name in $mymx
+ do
+ dea $name
+ done
+}
+
desp... | bash |
d_bash_15679 | ---
+++
@@ -24,14 +24,25 @@
. "$dir/../../retry.sh" 'docker_ version'
+[ "$(docker_ images -q | wc -l)" = '0' ]
docker_ pull busybox
+[ "$(docker_ images -q | wc -l)" = '1' ]
+
+[ "$(docker_ ps -aq | wc -l)" = '0' ]
docker_ run --rm busybox true
+docker_ run --rm busybox true
+docker_ run --rm busybox true
... | bash |
d_bash_15680 | ---
+++
@@ -6,12 +6,12 @@
apk --update add python py-requests py-setuptools git gcc py-pip musl-dev libffi-dev python-dev openssl-dev
# Get Let's Encrypt simp_le client source
+branch="acme-0.8"
mkdir -p /src
-git -C /src clone https://github.com/kuba/simp_le.git
+git -C /src clone --depth=1 -b $branch https://g... | bash |
d_bash_15681 | ---
+++
@@ -1,2 +1,6 @@
#!/bin/sh
-python3 -m unittest *_specs.py
+py3=python3
+if [[ $(python --version) == Python\ 3* ]]; then
+ py3=python
+fi
+$py3 -m unittest *_specs.py | bash |
d_bash_15682 | ---
+++
@@ -6,8 +6,12 @@
# Copy files in place
cp -r data/* /
+# Rotate screen
echo display_rotate=3 >> /boot/config.txt
echo disable_overscan=1 >> /boot/config.txt
+
+# Free enough memory for the browser to work
+echo gpu_mem=64 >> /boot/config.txt
echo -n " ro" >> /boot/commandline.txt
| bash |
d_bash_15683 | ---
+++
@@ -13,3 +13,6 @@
# Update the individual files.
cat urls.tsv | awk -F'\t' '(NR>1){a=$1"_"$2"_"$3"_"$4".tar.gz"; print "echo \""$7" \""a" >> "$1"/SHA256SUMS"}' | bash
+
+# Remove empty directories
+# find . -type d -empty -not -wholename '*/.git/*' -exec rmdir '{}' \; | bash |
d_bash_15684 | ---
+++
@@ -20,7 +20,7 @@
echo "$COMMIT_MESSAGE"
# this is needed to include removed and newly introduced files
-git add --all skautis
+git add --all skautis setup.py
git commit -m "$COMMIT_MESSAGE"
git tag -a "v${NEW_VERSION}" -m "Automatically generated version ${NEW_VERSION}" | bash |
d_bash_15685 | ---
+++
@@ -1,9 +1,11 @@
#!/usr/bin/env bash
set -euf -o pipefail
+
+GRAFANA_VERSION=4.5.2
# Run Grafana automatically with Docker
docker run -d -p 3000:3000 \
--restart unless-stopped \
-v /var/lib/grafana:/var/lib/grafana \
- grafana/grafana
+ grafana/grafana:$GRAFANA_VERSION | bash |
d_bash_15686 | ---
+++
@@ -1,9 +1,17 @@
#!/bin/bash
+HOMEDIR="/home/$usr"
BASEDIR=$(dirname -- "$(readlink -f -- "${BASH_SOURCE}")")
+RUPTUREDIR="$HOMEDIR/.rupture"
-mkdir -p $BASEDIR/logs
+if [ -d $RUPTUREDIR ]; then
+ REALTIMEDIR="$RUPTUREDIR/realtime"
+else
+ REALTIMEDIR=$BASEDIR
+fi
+
+mkdir -p $REALTIMEDIR/logs
lo... | bash |
d_bash_15687 | ---
+++
@@ -3,8 +3,8 @@
# sjones@hep.ph.liv.ac.uk, 2019
# Run the processes of a HTCondor accounting run
-/usr/share/apel/condor_ce_blah.sh # Make the blah file (CE/Security data)
-/usr/share/apel/condor_ce_batch.sh # Make the batch file (Job times)
+/usr/bin/condor_ce_blah.sh # Make the blah f... | bash |
d_bash_15688 | ---
+++
@@ -2,7 +2,7 @@
set -e
cd ..
-git clone git@github.com:scalainc/exp-api.git exp-api
+git clone git@github.com:scalainc/exp-api.git
cd exp-api
git checkout develop
npm install
@@ -10,11 +10,12 @@
npm start&
sleep(5)
cd ..
-git clone git@github.com:scalainc/exp-network.git exp-network
+git clone git@g... | bash |
d_bash_15689 | ---
+++
@@ -10,7 +10,7 @@
exit 1
fi
# Instal epics base
-dir=/home/fac_files/lnls-sirius/
+dir=/home/sirius
if [ -d $dir ]; then
cd $dir
git clone ssh://git@github.com/lnls-sirius/epics-dev.git | bash |
d_bash_15690 | ---
+++
@@ -7,7 +7,7 @@
readonly QUEUE_NAME=${QUEUE_NAME:-osm2vectortiles_jobs}
readonly BUCKET_NAME=${BUCKET_NAME:-osm2vectortiles-jobs}
-readonly RABBITMQ_URI=${RABBITMQ_URI:-"amqp://osm:osm@rabbitmq:5672/?blocked_connection_timeout=1200"}
+readonly RABBITMQ_URI=${RABBITMQ_URI:-"amqp://osm:osm@rabbitmq:5672/?bl... | bash |
d_bash_15691 | ---
+++
@@ -12,11 +12,10 @@
if [[ "${CONFIGURATION}" != "Release" || $WMF_FORCE_ITUNES_FILE_SHARING == "1" ]]; then
echo "Enabling iTunes File Sharing for ${CONFIGURATION} build."
- defaults write "${INFO_PLIST}" UIFileSharingEnabled true
+ defaults write "${INFO_PLIST}" UIFileSharingEnabled -bool YES
fi
... | bash |
d_bash_15692 | ---
+++
@@ -9,7 +9,7 @@
#
# Prepare spec tests
#
-export RTAILS_ENV=test
+export RAILS_ENV=test
bundle exec rake db:create
bundle exec rake db:schema:load
bundle exec rake db:test:prepare | bash |
d_bash_15693 | ---
+++
@@ -3,7 +3,7 @@
if [[ "$(uname -s)" == 'Darwin' ]]; then
brew update
brew install python$PY3
- pip install pytest nose
+ pip$PY3 install pytest nose
pip$PY3 install paramiko
pip$PY3 install .
else | bash |
d_bash_15694 | ---
+++
@@ -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 gnap='git add -N . && git add -p ' | bash |
d_bash_15695 | ---
+++
@@ -34,3 +34,12 @@
#endif // CHROMEOS_PAM_LOCALACCOUNT_H_
EOF
done
+
+# Add CHROMEOS_LOCAL_ACCOUNT var to /etc/make.conf.user
+VAR_NAME=CHROMEOS_LOCAL_ACCOUNT
+if grep -q ${VAR_NAME} /etc/make.conf.user; then
+ regex="s/${VAR_NAME}=.*/${VAR_NAME}=$1@gmail.com/"
+ sudo sed -i -e "${regex}" /etc/make.co... | bash |
d_bash_15696 | ---
+++
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
-flock -n /var/run/salaryzen/aggregator.lock timeout -k 2m 3m /opt/SalaryZenAggregator/tools/aggregate.sh -o /etc/public_files/salaryzen/datav2.json >> /var/log/salaryzen/aggregate.log 2>&1
+flock -n /var/run/salaryzen/aggregator.lock timeout -k 2m 3m /opt/SalaryZenAggre... | bash |
d_bash_15697 | ---
+++
@@ -4,8 +4,8 @@
# Tell Swift/T to generate and submit a SLURM script
MACHINE="-m slurm"
-export QUEUE=${QUEUE:-regular}
-# export QUEUE=${QUEUE:-debug}
+# export QUEUE=${QUEUE:-regular}
+export QUEUE=${QUEUE:-debug}
# CANDLE at NERSC:
export PROJECT=m2924 | bash |
d_bash_15698 | ---
+++
@@ -3,6 +3,6 @@
DOTGIT=`git rev-parse --git-dir`
TOPLEVEL=`git rev-parse --show-toplevel`
TO=${DOTGIT}/hooks
-FROM=${TOPLEVEL}/git-hooks
+FROM=${TOPLEVEL}/utils/git-hooks
ln -s ${FROM}/pre-commit ${TO}/pre-commit | bash |
d_bash_15699 | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
function ganja_harvesting_init() {
- task_setup "ganja_harvesting" "Harvesting" "Harbest the ganja plants" "ganja_seeding ganja_farming"
+ task_setup "ganja_harvesting" "Harvesting" "Harvest the ganja plants" "ganja_seeding ganja_farming"
}
function ganja_harvesti... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.