document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_8600 | ---
+++
@@ -13,7 +13,7 @@
alias ..='cd ../' # Shorter version of cd..
alias ~='cd ~' # Shortcut to cd ~
alias edit='vim' # Open a file in vim
-alias readonly='vim -R' # Open a file in readonly mode in vim
+alias v... | bash |
d_bash_8601 | ---
+++
@@ -8,7 +8,7 @@
tex_dir="$(mktemp -d /tmp/tex-XXXXXXXX)"
tex_file="$tex_dir/random.tex"
pdf_file="$tex_dir/random.pdf"
-final_file="$XDG_DOWNLOAD_DIR/random-$RANDOM.pdf"
+final_file="$XDG_DOWNLOAD_DIR/random-$RANDOM$RANDOM.pdf"
function on_exit() {
rm -rf "$tex_dir"
@@ -24,12 +24,10 @@
\\begin{docume... | bash |
d_bash_8602 | ---
+++
@@ -5,9 +5,6 @@
sudo apt-get purge mongodb mongodb-clients mongodb-server mongodb-dev
sudo apt-get purge mongodb-10gen
sudo apt-get autoremove
-
-sudo rm -f /etc/mongod.conf
-sudo cp ./config/mongodb_dev.conf /etc/mongod.conf
# Import mongodb public GPG key
sudo apt-key adv --keyserver hkp://keyserver.... | bash |
d_bash_8603 | ---
+++
@@ -32,8 +32,10 @@
echo "Found repository $REPO_NAME."
cd $REPO_NAME
git fetch
- if [ `git rev-parse HEAD` != `git rev-parse $REFSPEC` ]; then
- echo "Local hash `git rev-parse HEAD` and Remote hash `git rev-parse $REFSPEC` differ. Rebuilding..."
+ LOCAL_HASH=`git rev-parse HEAD`
+... | bash |
d_bash_8604 | ---
+++
@@ -8,34 +8,24 @@
os_name=$(grep DISTRIB_ID /etc/*release | cut -d= -f2)
os_release=$(grep DISTRIB_RELEASE /etc/*release | cut -d= -f2)
+os_codename=$(grep DISTRIB_CODENAME /etc/*release | cut -d= -f2)
hostname=$(hostname)
IFS=$'\n'
pkg_upgrade=$(apt-get upgrade -s | grep ^Inst) || true
-
-if [ ! -z ... | bash |
d_bash_8605 | ---
+++
@@ -7,6 +7,7 @@
export GOPATH=`goat env GOPATH`
+mkdir -p .goat/deps/src/github.com/mozilla-services/heka/externals
rsync -a --exclude-from .gitignore `pwd`/ .goat/deps/src/github.com/mozilla-services/heka/externals/heka-plugins/
pushd .goat/deps/src/github.com/mozilla-services/heka | bash |
d_bash_8606 | ---
+++
@@ -3,10 +3,10 @@
set -e
# Prebuilt wheels location
-WHEELHOUSE ?= file:///net/san1/disk1/wheelhouse/
+export WHEELHOUSE="file:///net/san1/disk1/wheelhouse/"
# Use prebuilt packages ONLY by default
-export AG_PIP_OPTS = --use-wheel --find-links=$(WHEELHOUSE) --no-index
+export AG_PIP_OPTS="--use-wheel ... | bash |
d_bash_8607 | ---
+++
@@ -3,7 +3,7 @@
set -ex
GOROOT=/usr/local/go
-GO_ARCHIVE_URL=https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
+GO_ARCHIVE_URL=https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
GO_ARCHIVE=$(basename $GO_ARCHIVE_URL)
echo "Downloading go..." | bash |
d_bash_8608 | ---
+++
@@ -1,9 +1,8 @@
#!/bin/bash
BASE="/etc/init.d/"
-#Edit localhost line
+#Remove 127.0.1.1 line
file="/etc/hosts"
sed -i '/127.0.1.1/d' $file
-echo "127.0.1.1 `hostname`" >> $file
#Agent checks
agentresult=$(dpkg --get-selections | grep ksks-agent)
source /etc/profile | bash |
d_bash_8609 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
useradd $HOSTNAME
-
+su $HOSTNAME
ulimit -p 15
echo "$1" > prog.c
@@ -9,5 +9,5 @@
if [ -f "prog" ]
then
- sudo -u $HOSTNAME ./prog
+ ./prog
fi | bash |
d_bash_8610 | ---
+++
@@ -10,4 +10,6 @@
UNICORN_CONFIG=$APP_ROOT/deployment-files/unicorn.rb
echo "Unicorn config file is " $UNICORN_CONFIG
cd $APP_ROOT || exit 1
+git pull origin master
+bundle install
unicorn -c $UNICORN_CONFIG -D | bash |
d_bash_8611 | ---
+++
@@ -19,6 +19,6 @@
cd /tmp
wget http://dl.piwall.co.uk/pwlibs1_1.1_armhf.deb
-sudo dpkg -i /home/pi/pwlibs1_1.1_armhf.deb
+sudo dpkg -i pwlibs1_1.1_armhf.deb
wget http://dl.piwall.co.uk/pwomxplayer_20130815_armhf.deb
-sudo dpkg -i /home/pi/pwomxplayer_20130815_armhf.deb
+sudo dpkg -i pwomxplayer_20130815_... | bash |
d_bash_8612 | ---
+++
@@ -1,8 +1,10 @@
#! /bin/sh
# This script runs all of the various auto* programs in the correct order.
+# You should run this from the top-level directory.
# Written by Mo DeJong.
+( cd libraries/javalib && ../../developers/update-class-list )
aclocal -I .
autoheader -l config
automake --add-missing... | bash |
d_bash_8613 | ---
+++
@@ -23,7 +23,7 @@
base_version=`jq -r .version package.json`
qualified_version=${base_version}-${timestamp}
-
+ echo -e "\n*Version: ${qualified_version}*" >> README.md
npm version ${qualified_version}
npm install
npm run vsce-package | bash |
d_bash_8614 | ---
+++
@@ -30,3 +30,4 @@
# Configure dependencies
echo -e "\nsyntax on\nset background=dark\nset mouse=a\n" >> /etc/vim/vimrc
+update-alternatives --set editor /usr/bin/vim.basic | bash |
d_bash_8615 | ---
+++
@@ -5,6 +5,8 @@
export ARCH=mips
pkg_build() {
+ PATH="$jagen_toolchain_dir/bin:$PATH"
+
p_run make \
LINUX_SOURCE="$LINUX_KERNEL" \
KBUILD_OUTPUT="$LINUX_KERNEL" \ | bash |
d_bash_8616 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
-version="20.10.16"
+version="20.10.17"
echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz"; | bash |
d_bash_8617 | ---
+++
@@ -21,5 +21,5 @@
alias gcm='git commit -m'
alias gco='git checkout'
alias gcb='git copy-branch-name'
-alias gb='git branch'
+alias gb='git branch --sort=-committerdate'
alias gs='git status -sb' | bash |
d_bash_8618 | ---
+++
@@ -11,5 +11,6 @@
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
./gradlew -Prelease.useLastTag=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" final --stacktrace
else
- echo -e 'ERROR: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVI... | bash |
d_bash_8619 | ---
+++
@@ -3,6 +3,9 @@
log() {
echo "[golang] $@"
}
+
+GO16="go1.6.4.linux-amd64.tar.gz"
+GO17="go1.7.4.linux-amd64.tar.gz"
if [ ! -d "$HOME/lib" ]; then
log "creating local lib path $HOME/lib"
@@ -14,7 +17,7 @@
log $(head -n 1 "$HOME/lib/go/VERSION")
else
log "downloading ..."
- wget "https://storage.... | bash |
d_bash_8620 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -e
git clone https://github.com/creationix/nvm.git /tmp/.nvm
source /tmp/.nvm/nvm.sh | bash |
d_bash_8621 | ---
+++
@@ -16,4 +16,5 @@
# install node version manager (nvm)
curl https://raw.githubusercontent.com/creationix/nvm/v0.17.1/install.sh | bash
-nvm install v0.10.32
+# 0.10.28 is the last version with a prebuilt arm-pi binary for node
+nvm install v0.10.28 | bash |
d_bash_8622 | ---
+++
@@ -3,10 +3,10 @@
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
- ./gradlew build
+ ./gradlew build --info
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Build Branch with Snapshot ... | bash |
d_bash_8623 | ---
+++
@@ -9,7 +9,7 @@
prefix=${gxx::-4}
export CC="$prefix"-gcc
export CXX=$gxx
-export CFLAGS="-march=armv7a +fp" #even the tegra 2 can do vfpv3d16 BUT couldn't do neon so... no neon
+export CFLAGS="-march=armv7a+fp" #even the tegra 2 can do vfpv3d16 BUT couldn't do neon so... no neon
cd $1
echo $arch $toolch... | bash |
d_bash_8624 | ---
+++
@@ -15,8 +15,13 @@
else
git clone git@github.com:whosonfirst/py-mapzen-whosonfirst.git /usr/local/mapzen/py-mapzen-whosonfirst
cd /usr/local/mapzen/py-mapzen-whosonfirst
-fi
+fi
sudo python ./setup.py install
+# Install pip so we can avoid SSL warnings when running wof-pylibs
+sudo apt-get up... | bash |
d_bash_8625 | ---
+++
@@ -13,6 +13,7 @@
sbt $TRAVIS_SCALA_VERSION_ARG publish
else
echo "Tests failed -- no snapshot will be published!"
+ exit 1
fi
else
echo "Pull request -- testing without publishing the snapshot." | bash |
d_bash_8626 | ---
+++
@@ -8,6 +8,7 @@
KNOWN_QMAKE_PATHS=( \
/Developer/Tools/qmake \
/usr/local/opt/qt5/bin/qmake \
+ /usr/local/opt/qt@5.?/bin/qmake \
~/Developer/Qt/5.?/clang_64/bin/qmake \
~/Qt/5.?/clang_64/bin/qmake \
~/Qt5.?.0/5.?/clang_64/bin/qmake \ | bash |
d_bash_8627 | ---
+++
@@ -1,3 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/env sh
+apt-get install sudo bash net-tools
sudo -H pip install pexpect unittest-xml-reporting pyyaml requests | bash |
d_bash_8628 | ---
+++
@@ -3,7 +3,7 @@
env
time bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
# bundle exec rake stats
-time bundle exec rake db:create db:migrate --trace && \
+time bundle exec rake db:create db:migrate db:test:prepare --trace && \
RAILS_ENV=production SKIP_OBSERVERS_FOR_ASSET_TASKS=true time... | bash |
d_bash_8629 | ---
+++
@@ -2,10 +2,13 @@
# Installs apt packages needed by other packages
apt update
-apt install -y \
+apt upgrade
+apt install -y --fix-missing \
apt-transport-https \
ca-certificates \
curl \
software-properties-common \
- openssl
+ openssl \
+ jq \
+ python-dev
| bash |
d_bash_8630 | ---
+++
@@ -1,22 +1,23 @@
#!/bin/bash
set -e
+set -x
-apt-get update
+apt-get -qq update > /dev/null
# Install nodesource prerequisite
-apt-get install -y curl
+apt-get -qq install curl > /dev/null
# Install hubot prerequisites
-curl -sL https://deb.nodesource.com/setup | bash -
-apt-get install -y nodejs... | bash |
d_bash_8631 | ---
+++
@@ -1,18 +1,25 @@
-# The rest of my fun git aliases
+# Pull & push
alias gl='git pull --prune'
-alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
+alias glr='gl --rebase'
alias gp='git push origin HEAD'
al... | bash |
d_bash_8632 | ---
+++
@@ -22,9 +22,13 @@
can_hit_test_server=1
while [ $can_hit_test_server -ne 0 ]
do
+ # The purpose of this sleep is twofold:
+ # 1) on the first iteration, give tomcat a second to start up.
+ # 2) thereafter, pause between loop iterations so we don't exhaust
+ # resour... | bash |
d_bash_8633 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-SEARCHDIR=${1-pwd};
+SEARCHDIR=${1-$(pwd)};
echo "function search {" > $SEARCHDIR/init_search;
echo " $SEARCHDIR/searcher \$@;" >> $SEARCHDIR/init_search; | bash |
d_bash_8634 | ---
+++
@@ -5,7 +5,7 @@
if [ -n "$TMUX" ] ||
[[ "$GIO_LAUNCHED_DESKTOP_FILE" == *"guake.desktop"* ]] ||
[[ "$(tty)" =~ /dev/tty[0-9] ]] ||
- [ "$TERM" = screen-256color ] ||
+ [[ "$TERM" == screen* ]] ||
[ "$TERM_PROGRAM" = "vscode" ] ||
[ "$TERMINAL_EMULATOR" = "JetBrains... | bash |
d_bash_8635 | ---
+++
@@ -6,6 +6,23 @@
# cron can run apt/dpkg commands that will disrupt our tasks
service cron stop
+
+# setup system apt sources
+cat << EOF > /etc/apt/sources.list
+deb http://archive.ubuntu.com/ubuntu trusty main universe
+deb-src http://archive.ubuntu.com/ubuntu trusty main universe
+deb http://archive.ub... | bash |
d_bash_8636 | ---
+++
@@ -17,6 +17,7 @@
fi
}
+basedir=$(dirname $0)
venvdir=~/.virtualenvs/$(basename $(cd $(dirname $0) && pwd -P))
virtualenv --no-site-packages "$venvdir" | bash |
d_bash_8637 | ---
+++
@@ -7,16 +7,52 @@
# 30.11.2016.-20:01:36
# -----------------------------------------------------------------------------
# Description:
-# Scan the local network for active IP addresses
+# Scan the local network for active IP addresses.
# Usage:
#
# --------------------------------------------------... | bash |
d_bash_8638 | ---
+++
@@ -14,7 +14,9 @@
mkdir -p dist
buildkite-agent artifact download "dist/*" .
-docker run -v "$PWD:$PWD" -e GITHUB_RELEASE_ACCESS_TOKEN --rm "buildkite/github-release" "v${version}" dist/* \
+ls -al dist/*
+
+echo docker run -v "$PWD:$PWD" -e GITHUB_RELEASE_ACCESS_TOKEN --rm "buildkite/github-release" "v${... | bash |
d_bash_8639 | ---
+++
@@ -4,6 +4,7 @@
# buddybuild doesn't seem to offer any direct way of running findbugs.
# findbugs is run as part of |gradle build| and |gradle| check, but those
# aren't run directly in buddybuild.
-#./gradlew findbugs
+./gradlew findbugs
+
./gradlew jacocoTestReport
- bash <(curl -s https://codecov.io/ba... | bash |
d_bash_8640 | ---
+++
@@ -3,7 +3,7 @@
case "$1" in
java8)
- echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u302-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.tar.gz"
+ echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u312-b07/OpenJDK8U-jdk_x64_linux_hotspot_8u312b07.tar.g... | bash |
d_bash_8641 | ---
+++
@@ -28,8 +28,8 @@
fi
exec "${JAVA_HOME}/bin/java" \
+ -Djboss.modules.write-indexes=false \
-jar "${JBOSS_HOME}/jboss-modules.jar" \
- -Djboss.modules.write-indexes=false \
-dependencies org.picketbox \
-class org.picketbox.datasource.security.SecureIdentityLoginModule \
"$@" | bash |
d_bash_8642 | ---
+++
@@ -2,10 +2,13 @@
# This script fetches all published IETF RFCs and drafts, extracts any
# found YANG modules and packs it up in a tarball.
#
+TMPDIR=/var/tmp/yangmodules/work
+EXTRACTDIR=/var/tmp/yangmodules/extracted
+mkdir -pv $TMPDIR
+mkdir -pv $EXTRACTDIR
-TMPDIR=$(mktemp -d /var/tmp/yangmodules)
i... | bash |
d_bash_8643 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/bash
+SCRIPTDIR=$(python -c 'import os,sys;print os.path.dirname(os.path.realpath(sys.argv[1]))' "$0")
# Make sure the id is here
if [ "$1" == "" ]
then
@@ -6,6 +7,9 @@
exit 1
fi
ID=$1
+
+# Make sure we're in the correct place to run git commands no matter where we were calle... | bash |
d_bash_8644 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
coverage run --source=biofloat scripts/load_biofloat_cache.py --age 3000 --profiles 1
coverage run -a --source=biofloat tests/unit_tests.py
-coverage run -a --source=biofloat scripts/woa_calibration.py --cache_file ~/biofloat_fixed_cache_age3000_profiles1.hdf
+coverage run -a --... | bash |
d_bash_8645 | ---
+++
@@ -1,14 +1,21 @@
#!/bin/bash
-nodeMinVersion="v6.0.0"
+verlte() {
+ [ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ]
+}
+
+nodeMinVersion="6.0.0"
npmMinVersion="3.0.0"
-if [[ $(node --version) < $nodeMinVersion ]]; then
+actualNodeVersion=$(node --version | tr -d "v")
+actualNpmVersion=$(npm --ver... | bash |
d_bash_8646 | ---
+++
@@ -5,7 +5,7 @@
# might be identical to AIR_SDK
FLEX_SDK="$HOME/Coding/FlexSDK"
# path to the Steam SDK, so that $STEAM_SDK/redistributable_bin exists
-STEAM_SDK="$HOME/Coding/SteamSKD"
+STEAM_SDK="$HOME/Coding/SteamSDK"
# ftp path to upload the built binaries to when running builds/build.sh
# version nu... | bash |
d_bash_8647 | ---
+++
@@ -5,9 +5,9 @@
FEATURES=
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
- FEATURES="--features unstable"
+ FEATURES="unstable qc"
else
if [ "$1" = "bench" ]; then exit 0; fi
fi
-exec cargo "$@" $FEATURES
+exec cargo "$@" --features "$FEATURES" | bash |
d_bash_8648 | ---
+++
@@ -5,7 +5,7 @@
echo "test => $0"
-if [ $(echo "clear" |./kc -b -k ${KC_DB} -p ${KC_PASSFILE} |grep -E -c -e '^$') -eq 50 ];then
+if [ $(echo "clear" |./kc -b -k ${KC_DB} -p ${KC_PASSFILE} |grep -E -c -e '^$') -eq 100 ];then
echo $0 test ok!
exit 0
else | bash |
d_bash_8649 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
ext=xdebug
-if is_true $ENABLE_$ext; then
+if is_true $ENABLE_XDEBUG; then
sectionText "Enabling PHP extension $ext"
docker-php-ext-enable $ext
mkdir -pv /tmp/$ext | bash |
d_bash_8650 | ---
+++
@@ -28,3 +28,4 @@
OUTPUT_MANIFEST="$3"
zipinfo -1 "$INPUT_ZIP" -x "*/" | grep -x "$REGEX" > "$OUTPUT_MANIFEST"
+exit 0 | bash |
d_bash_8651 | ---
+++
@@ -7,7 +7,7 @@
if [ ! -f $DIST ]; then
version=`echo $DIST | cut -d'-' -f2`
sudo yum install -y -q wget
- wget -q https://github.com/amplab/tachyon/releases/download/v${version}/${TACHYON_DIST} -P /vagrant/shared
+ wget -q http://tachyon-project.org/downloads/files/${version}/${TACHYON_DIST} -P /vagrant... | bash |
d_bash_8652 | ---
+++
@@ -26,9 +26,10 @@
curl -X POST -H "Content-type: application/json" \
-d "{
- \"title\": \"$WERCKER_DATADOG_EVENT_TITLE\",
- \"text\": \"$WERCKER_DATADOG_EVENT_TEXT\",
- \"priority\": \"$WERCKER_DATADOG_EVENT_PRIORITY\",
- \"alert_type\": \"$WERCKER_DATADOG_EVENT_ALER... | bash |
d_bash_8653 | ---
+++
@@ -24,9 +24,11 @@
HOST=$(color bg black)$(color fg yellow)
fi
- STATUS=$DELIM'<< '$RESET
- STATUS+=$SYSINFO$(tmux-mem-cpu-load -i 5)$RESET
- STATUS+=$DELIM' < '$RESET
+ STATUS="$DELIM<<$RESET"
+ STATUS+=$SYSINFO
+ command -v 'tmux-mem-cpu-load' >/dev/null && STATUS+=$(tmux-m... | bash |
d_bash_8654 | ---
+++
@@ -21,7 +21,7 @@
mv zend-component-installer.phar zend-component-installer.phar.tmp
# Add SSH-based remote
-git remote add deploy git@github.com:weierophinney/component-installer.git
+git remote add deploy git@github.com:zendframework/zend-component-installer.git
git fetch deploy
# Checkout gh-pages ... | bash |
d_bash_8655 | ---
+++
@@ -13,4 +13,4 @@
alias lsd='ls -l | grep ^d'
alias ls.='ls -d .*'
-
+alias sv="source /usr/local/bin/virtualenvwrapper.sh" | bash |
d_bash_8656 | ---
+++
@@ -9,7 +9,7 @@
VERSION="$1"
mkdir -p ~/rpmbuild/{SOURCES,SPECS}
-GZIP=-1 tar -zcf ~/rpmbuild/SOURCES/vespa-$VERSION.tar.gz --exclude target --exclude cmake-build-debug --transform "flags=r;s,^,vespa-$VERSION/," *
+git archive --format=tar.gz --prefix=vespa-$VERSION/ -o ~/rpmbuild/SOURCES/vespa-$VERSION.... | bash |
d_bash_8657 | ---
+++
@@ -1,12 +1,14 @@
#!/bin/sh -ev
which brew || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
+
+test "$TRAVIS" = true || brew install doxygen
+
brew doctor
brew update
brew tap caskroom/cask
brew install bash-completion
-brew install doxygen
brew ... | bash |
d_bash_8658 | ---
+++
@@ -15,6 +15,10 @@
rm -rf .storybook
find app/frontend/ -name '*.stories.ts' -exec rm {} +
+# Remove our customized .yarnrc to let yarn use the global cache
+# instead of .yarn/cache which would go into the packages.
+rm .yarnrc
+
# CI
rm -rf .github .gitlab
rm .gitlab-ci.yml | bash |
d_bash_8659 | ---
+++
@@ -4,9 +4,9 @@
MAX_MEM=${min_mem:-"3000"}
# Setup the JVM options using the JDK 1.7+ environment var _JAVA_OPTIONS
-export _JAVA_OPTIONS="-Xms${MIN_MEM}m -Xmx${MAX_MEM}m -XX:+UseG1GC"
+export _JAVA_OPTIONS="-Djava.awt.headless=true -Xms${MIN_MEM}m -Xmx${MAX_MEM}m -XX:+UseG1GC"
cd /kb/deployment/servic... | bash |
d_bash_8660 | ---
+++
@@ -2,17 +2,17 @@
set -e
echo "CREATE USER '$OSM_USER';"
-gosu postgres postgres --single -jE <<-EOL
+gosu postgres psql <<-EOL
CREATE USER "$OSM_USER";
EOL
echo "CREATE DATABASE '$OSM_DB';"
-gosu postgres postgres --single -jE <<-EOL
+gosu postgres psql <<-EOL
CREATE DATABASE "$OSM_DB";
EOL
... | bash |
d_bash_8661 | ---
+++
@@ -7,7 +7,7 @@
function pkg_init {
_INCLUDE_PATH=""
-pyinstaller --onefile \
+pyinstaller --onedir \
--noconfirm \
--log-level $_BINARY_LOG_LEVEL \
--additional-hooks-dir=$_SOURCE_DIR \ | bash |
d_bash_8662 | ---
+++
@@ -16,9 +16,16 @@
file = ARGV[0] if ARGV.length>0
-srcDir = File.dirname(file)
-out = "// Do not edit this file (e.g. go instead to docs/src/main/asciidoc)\n\n"
-doc = Asciidoctor.load_file file, safe: :safe, parse: false, attributes: 'allow-uri-read'
+# Copied from https://github.com/asciidoctor/asciid... | bash |
d_bash_8663 | ---
+++
@@ -1,6 +1,8 @@
#!/bin/bash
# Start the Schema Registry webserver
+/usr/hdf/current/registry/bin/registry stop
+/usr/hdf/current/registry/bin/registry clean
/usr/hdf/current/registry/bin/registry start
# nohup /usr/hdf/2.1.0.0-164/registry/bin/registry-server-start.sh /usr/hdf/2.1.0.0-164/registry/con... | bash |
d_bash_8664 | ---
+++
@@ -1,40 +1,48 @@
pkg_name=bundler
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
-pkg_version=1.13.7
+pkg_version=1.14.6
pkg_origin=core
pkg_license=('bundler')
-pkg_source=nosuchfile.tar.gz
pkg_description="The Ruby language dependency manager"
pkg_upstream_url=https://bundler.io/
-
-pkg... | bash |
d_bash_8665 | ---
+++
@@ -21,4 +21,4 @@
# Copy obmd to somewhere global; this way we don't have to mess with $PATH
# for every test that uses it:
-sudo cp ~/go/bin/obmd /usr/local/bin/
+sudo cp "$(which obmd)" /usr/local/bin/ | bash |
d_bash_8666 | ---
+++
@@ -8,6 +8,8 @@
echo "delorean_current_hash = $NEW_HASH" > $HASH_FILE
-# Set the $LOCATION where quickstart will expect the images while testing in the pipeline
-# This is used by the ansible-role-tripleo-image build (atrib) role and oooq/ci-scripts/image.sh
+# These variables are used for the tripleo-qu... | bash |
d_bash_8667 | ---
+++
@@ -4,10 +4,7 @@
ARCHIVE=`awk '/^__ARCHIVE_BELOW__/ {print NR + 1; exit 0; }' $0`
tail -n+$ARCHIVE $0 | tar xz -C $TMPDIR
-CDIR=`pwd`
-cd $TMPDIR
-./titanium_runtime
-cd $CDIR
+$TMPDIR/titanium_runtime
rm -rf $TMPDIR
exit 0 | bash |
d_bash_8668 | ---
+++
@@ -4,6 +4,8 @@
THIS="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BIN_DIR="$THIS/../libexec"
export PATH=${BIN_DIR}:$PATH
+# By default, all execution should work here.
+cd /tmp
check(){
run "$@" | bash |
d_bash_8669 | ---
+++
@@ -5,8 +5,57 @@
# Run the unit tests
vendor/bin/phpunit
+# http://stackoverflow.com/questions/4023830/bash-how-compare-two-strings-in-version-format
+function vercomp () {
+ echo $1
+ echo $2
+ if [[ $1 == $2 ]]
+ then
+ return 0
+ fi
+ local IFS=.
+ local i ver1=($1) ver2=($2)
+ ... | bash |
d_bash_8670 | ---
+++
@@ -19,7 +19,7 @@
VOL_NAME="$NAME.qcow2"
virsh list | grep -q $NAME && virsh destroy $NAME
-virsh list --inactive | grep -q $NAME && virsh undefine $NAME
+virsh list --inactive | grep -q $NAME && virsh undefine $NAME --nvram
# Delete the Virtual BMC
if [[ $(type -P vbmc) != "" ]]; then | bash |
d_bash_8671 | ---
+++
@@ -11,10 +11,10 @@
echo "================= Installing nodejs 8.11.1 ==================="
curl -sSL https://deb.nodesource.com/setup_8.x | sudo -E bash -
-sudo apt-get install -q -y nodejs=8.11.1*
+sudo apt-get install -q -y nodejs=8.11*
echo "================= Installing yarn 1.5.1 ===================... | bash |
d_bash_8672 | ---
+++
@@ -1,6 +1,14 @@
#!/bin/bash
# Queries the running mcelog daemon for accumulated errors.
# by Ulysses Kanigel
+
+while getopts 'z:' OPT; do
+ case $OPT in
+ z) CRITICALITY=$OPTARG;;
+ esac
+done
+
+CRITICALITY=${CRITICALITY:-critical}
trap 'exit 1' ERR
if mcelog --client | grep total | grep -v "0... | bash |
d_bash_8673 | ---
+++
@@ -7,4 +7,4 @@
pwd
whereis native-image
native-image --version
-native-image --no-server -J-Xmx4G -J-Xms2G -jar target/zprint-filter-$2 -H:Name="zprintl-$2" -H:+ReportUnsupportedElementsAtRuntime
+LC_ALL=C.UTF-8 native-image --no-server -J-Xmx4G -J-Xms2G -jar target/zprint-filter-$2 -H:Name="zprintl-$2" -... | bash |
d_bash_8674 | ---
+++
@@ -1,3 +1,4 @@
+MAPFILE=${HOME}/.arlobot/rosmaps/${1}
if [ $# -eq 0 ]
then
echo "You must provide a map file name."
@@ -5,13 +6,13 @@
exit
fi
-if [ -f ${1} ]
+if [ ! -f ${MAPFILE} ]
then
- MAPFILE=~/.arlobot/rosmaps/${1}.yaml
-elif [ -f ~/.arlobot/rosmaps/${1}.yaml ]
+ MAPFILE=${MAPFILE... | bash |
d_bash_8675 | ---
+++
@@ -22,7 +22,6 @@
opera \
skype \
transmission \
- virtualbox \
visual-studio-code
mas install \ | bash |
d_bash_8676 | ---
+++
@@ -12,7 +12,7 @@
cd /tmp
export EDGEDB_MODPATH=$(vex test python -c \
'import edgedb; print(next(iter(edgedb.__path__)))')
-vex test python -m unittest discover --verbose -s "${CI_PROJECT_DIR}/tests"
+vex test et test -j8 "${CI_PROJECT_DIR}/tests"
cd "${CI_PROJECT_DIR}"
find build -type f ! -name '*... | bash |
d_bash_8677 | ---
+++
@@ -2,8 +2,8 @@
trap 'kill -TERM $PID' TERM INT
-HOST=$OPENSHIFT_PYTHON_IP
-PORT=$OPENSHIFT_PYTHON_PORT
+HOST=${OPENSHIFT_PYTHON_IP:-0.0.0.0}
+PORT=${OPENSHIFT_PYTHON_PORT:-8080}
waitress-serve --host=$HOST --port=$PORT dyndns53:app &
| bash |
d_bash_8678 | ---
+++
@@ -5,4 +5,6 @@
if [ -f "/etc/default/cd" ]; then
. "/etc/default/cd"
fi
-sudo -u tomcat7 java -jar cd-assembly-1.0.jar $JVM_OPTS $CONFIG_OPTS "$@"
+DIR=$( cd "$( dirname "$0" )" && pwd )
+java $JVM_OPTS $CONFIG_OPTS -jar ${DIR}/cd-assembly-1.0.jar $@
+ | bash |
d_bash_8679 | ---
+++
@@ -18,7 +18,7 @@
heroku buildkits:publish $1/$BP_NAME
if [ "$1" = "heroku" ]; then
- newTag=$(heroku buildkits:revisions heroku/$BP_NAME | sed -n 2p | grep -o -e "v\d*")
+ newTag=$(heroku buildkits:revisions heroku/$BP_NAME | sed -e '$!d' | grep -o -e "v\d*")
fi
popd > /dev/null 2>&1 | bash |
d_bash_8680 | ---
+++
@@ -11,8 +11,9 @@
sudo apt-get -q -y autoremove
sudo apt-get -q -y clean
- # install latest chef version
- sudo true && curl -L https://www.opscode.com/chef/install.sh | sudo bash
+ # download and install chef
+ sudo wget --content-disposition https://www.opscode.com/chef/install.sh
+ sudo sh ins... | bash |
d_bash_8681 | ---
+++
@@ -1,13 +1,28 @@
# Utilities and Configs that help with copy pasting text
-# Fixes issue with incredibly slow paste.
-# https://github.com/zsh-users/zsh-syntax-highlighting/issues/295#issuecomment-214549841
-# https://github.com/zsh-users/zsh-autosuggestions/issues/141
-# Can also do: ZSH_HIGHLIGHT_MAXLEN... | bash |
d_bash_8682 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
-export VERSION="2.1.0.Final"
+export VERSION="2.4.0.Final"
export KEYCLOAK="keycloak-${VERSION}" | bash |
d_bash_8683 | ---
+++
@@ -9,6 +9,7 @@
akonadidb=akonadi
socketfile=$HOME/.local/share/akonadi/db_misc/mysql.socket
+logfile=$HOME/.local/share/akonadi/db_data/mysql-bin.index
if ! [ -S $socketfile ]; then
startserver=true
else
@@ -16,7 +17,20 @@
fi
if ! [ -z "$startserver" ]; then
- /usr/sbin/mysqld --datadir=$HOME/.lo... | bash |
d_bash_8684 | ---
+++
@@ -1,3 +1,4 @@
DOCKER_MACHINE_NAME=docker-vm
DOCKER_MACHINE_PS1_SHOWSTATUS=true
PATH=$PATH:~/bin
+PATH="$(python -m site --user-base)/bin:${PATH}" | bash |
d_bash_8685 | ---
+++
@@ -1,4 +1,4 @@
-bindkey -e
+bindkey -v
bindkey '\ew' kill-region
bindkey -s '\el' "ls\n"
bindkey '^r' history-incremental-search-backward
@@ -20,6 +20,3 @@
bindkey "^[[3~" delete-char
bindkey "^[3;5~" delete-char
bindkey "\e[3~" delete-char
-
-# set vi-mode
-bindkey -v | bash |
d_bash_8686 | ---
+++
@@ -1,3 +1,4 @@
CWD=$(dirname $0)
-GENCOMPL_FPATH=$(mktemp -d /tmp/autogen-completion.XXXXX)
+GENCOMPL_FPATH=$HOME/.zsh/complete-generator
+mkdir -p $GENCOMPL_FPATH
source $CWD/source/zsh-completion-generator.plugin.zsh | bash |
d_bash_8687 | ---
+++
@@ -17,7 +17,6 @@
${CFG_TO_BC_PATH}/cfg_to_bc -mtriple=x86_64-pc-linux-gnu -i linked_elf.cfg -driver=mcsema_main,main,2,return,C -o linked_elf.bc
${LLVM_PATH}/opt -O3 -o linked_elf_opt.bc linked_elf.bc
-${LLVM_PATH}/llc -filetype=asm -o linked_elf.asm linked_elf_opt.bc
${LLVM_PATH}/llc -filetype=obj -o l... | bash |
d_bash_8688 | ---
+++
@@ -8,7 +8,7 @@
pip install -r ansible/requirements.txt
pip install sphinx sphinx_rtd_theme
pip install straight.plugin
-pip install sphinx-notfound-page
+pip install sphinx-notfound-page==0.4
rm -rf ansible/lib/ansible/modules/ && mkdir -p ansible/lib/ansible/modules/hashivault
cp -r ../ansible/modules/... | bash |
d_bash_8689 | ---
+++
@@ -10,7 +10,7 @@
main(){
local _log="Logger log"
- if [[ ! $(StringValidator isNull ${1}) ]]; then
+ if [[ ${1} ]]; then
case ${1} in
read|set|unset) local _cmd=${1} ;;
*) ${_log} error "\"${1}\"_is_not_a_valid_command" && exit ;;
@@ -33,7 +33,7 @@
shift
- if [[ $(StringValidator isSu... | bash |
d_bash_8690 | ---
+++
@@ -15,7 +15,7 @@
executable_path="$("${plugin_path}/bin/exec-path" "$install_path" "$cmd" "$executable_path")"
fi
full_executable_path=$(get_executable_path "$plugin_name" "$version" "$executable_path")
- location=$(find -L "$full_executable_path" -name "$command" -type f ... | bash |
d_bash_8691 | ---
+++
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
ln -svf $(pwd)/.vimrc ~/.vimrc
mkdir -p ~/.vim/bundle
+mkdir -p ~/.vim/swapfiles ~/.vim/backup
+mkdir -p ~/Notes
ln -svf $(pwd)/ftplugin ~/.vim/ftplugin
vim +PlugInstall +qall
-mkdir -p ~/.vim/swapfiles ~/.vim/backup | bash |
d_bash_8692 | ---
+++
@@ -21,6 +21,7 @@
cd $BRACKETS_SRC
git checkout $branchName
git pull origin $branchName
+git submodule update --init
cd $curDir
git checkout $branchName
git pull origin $branchName | bash |
d_bash_8693 | ---
+++
@@ -15,7 +15,13 @@
make reference-workload-light
fi
-metrics=$($BBB_WORKDIR/../node_modules/.bin/raptor test coldlaunch --runs 30 --app $1)
+IFS=/ read app entry <<< $1
+
+if [ -z "$entry" ]; then
+ metrics=$($BBB_WORKDIR/../node_modules/.bin/raptor test coldlaunch --runs 30 --app $app)
+else
+ metric... | bash |
d_bash_8694 | ---
+++
@@ -1,10 +1,12 @@
#!/bin/bash -x
GIT_HASH=$(git rev-parse HEAD)
+DATE=`date`
cat > buildinfo.go <<- EOM
package sparta
// THIS FILE IS AUTOMATICALLY GENERATED
// DO NOT EDIT
+// CREATED: $(DATE)
// SpartaGitHash is the commit hash of this Sparta library
const SpartaGitHash = "$GIT_HASH" | bash |
d_bash_8695 | ---
+++
@@ -24,7 +24,7 @@
declare -r DEB_RELEASE_BUCKET="gs://kubernetes-release-dev/debian"
docker build -t "${IMG_NAME}" "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-docker run --rm -v "${PWD}/bin:/src/bin" "${IMG_NAME}" $@
+docker run -it --rm -v "${PWD}/bin:/src/bin" "${IMG_NAME}" $@
gsutil -m cp -... | bash |
d_bash_8696 | ---
+++
@@ -19,6 +19,6 @@
-Dsonar.github.oauth=$GITHUB_TOKEN \
-Dsonar.login=$SONARQUBE_TOKEN
-elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && ["$TRAVIS_NODE_VERSION" == "4"]; then
+elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" ... | bash |
d_bash_8697 | ---
+++
@@ -2,21 +2,25 @@
if [ -z "$1" ]
then
- echo "building cbq-engine"
+ echo "building cbq-engine and cbq/cbq"
go build -o cbq-engine
+ cd cbq; go build; cd ..
elif [ $1 == "debug" ]
then
- echo "building cbq-engine with debug flags"
+ echo "building cbq-engine and cbq/cbq with ... | bash |
d_bash_8698 | ---
+++
@@ -10,5 +10,7 @@
#$cwd/./test_imaging.sh
-rsync -r /var/www/html fogtesting:/var/www
+/usr/bin/rsync -r /var/www/html fogtesting:/var/www
+ssh -o ConnectTimeout=$sshTimeout fogtesting "systemctl restart apache2 > /dev/null 2>&1"
+ | bash |
d_bash_8699 | ---
+++
@@ -4,4 +4,4 @@
# It runs the appropriate commands depending on the task requested.
# Otherwise compile and check as normal
-qmake QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_LINK_SHLIB=$CXX && make && ./unittest.sh
+qmake QMAKE_CXX=$CXX QMAKE_CC=$CC QMAKE_LINK=$CXX QMAKE_LINK_SHLIB=$CXX && make && ./unittest.sh | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.