document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_8700 | ---
+++
@@ -36,8 +36,8 @@
expresso \
test/unit/redis_pool.test.js \
test/unit/metadata.test.js \
- test/unit/oauth.test.js
-#expresso test/unit/psql.test.js # hangs
+ test/unit/oauth.test.js \
+ test/unit/psql.test.js
#expresso test/acceptance/app.test.js # fails
#expresso test/acceptance/app.auth.t... | bash |
d_bash_8701 | ---
+++
@@ -10,7 +10,9 @@
;;
seed)
echo "running seed"
- bundle exec rake db:reset
+ bundle exec rake db:drop
+ bundle exec rake db:create
+ bundle exec rake db:migrate
bundle exec rake db:seed
bundle exec rake claims:demo_data
;; | bash |
d_bash_8702 | ---
+++
@@ -1,4 +1,4 @@
-ARROW_VERSION="7e39747eec05379710e1a42ecbaf1d9795bc3cf0"
+ARROW_VERSION="7fb4d24a35269db99fa112c0512d4a32c372dd74"
ARROW_URL="https://github.com/apache/arrow/archive/${ARROW_VERSION}.tar.gz"
ARROW_BASEDIR="arrow-${ARROW_VERSION}"
| bash |
d_bash_8703 | ---
+++
@@ -5,7 +5,7 @@
#### Main fetch data process
###############################################################################
-time timeout 10m npm start
+time timeout 15m npm start
###############################################################################
#### Adapters that consume lot memory and... | bash |
d_bash_8704 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
CORES=$(grep 'model name' /proc/cpuinfo | wc -l)
-LOAD=$(uptime | grep "load average" | awk '{print $12}' | sed 's/\..*//g')
+LOAD=$(uptime | grep "load average" | awk '{print $12}' | sed 's/[\.,].*//g')
if [ $LOAD -ge $CORES ]; then
NEWCORES=$((CORES+1));
/usr/bin... | bash |
d_bash_8705 | ---
+++
@@ -1,13 +1,3 @@
-if [ "$(uname)" == "Darwin" ];
-then
- export MACOSX_VERSION_MIN=10.9
- export CXXFLAGS="-mmacosx-version-min=${MACOSX_VERSION_MIN}"
- export CXXFLAGS="${CXXFLAGS} -stdlib=libc++"
- export LINKFLAGS="-mmacosx-version-min=${MACOSX_VERSION_MIN}"
- export LINKFLAGS="${LINKFLAGS} ... | bash |
d_bash_8706 | ---
+++
@@ -8,7 +8,6 @@
# Install and update Bourbon and SASS.
mkdir -p $LIB_DIR
cd $LIB_DIR
-sudo gem install bourbon
bourbon install
exit 0 | bash |
d_bash_8707 | ---
+++
@@ -3,13 +3,13 @@
set -euo pipefail
-PACKAGES=(java-1.8.0-openjdk-devel git)
GOSS_SHASUM=5669df08e406abf594de0e7a7718ef389e5dc7cc76905e7f6f64711e6aad7fa3
GOSS_URL=https://github.com/aelsabbahy/goss/releases/download/v0.3.5/goss-linux-amd64
#install packages
-rpm -q "${PACKAGES[@]}" || yum install -y... | bash |
d_bash_8708 | ---
+++
@@ -1 +1,5 @@
-export EDITOR='subl'
+# Only set this if we haven't set $EDITOR up somewhere else previously.
+if [ "$EDITOR" == "" ] ; then
+ # Use sublime for my editor.
+ export EDITOR='subl'
+fi | bash |
d_bash_8709 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-DOC_DIR=./Documentation
+DOC_DIR=../Documentation
LINKCHECK_OUTPUT=$DOC_DIR/_build/linkcheck/output.txt
make -C $DOC_DIR clean || true | bash |
d_bash_8710 | ---
+++
@@ -1,2 +1,7 @@
#!/bin/bash
-cargo build --release && RUST_LOG=info cargo run --release &> output
+
+cargo build --release
+
+OLD_GROUP_ID=$(ps x -o "%p %r %y %x %c " | grep cargo | awk '{print $2}')
+kill -- -$OLD_GROUP_ID
+RUST_LOG=info cargo run --release &> output | bash |
d_bash_8711 | ---
+++
@@ -8,7 +8,7 @@
# of patent rights can be found in the PATENTS file in the same directory.
cd ../../
-git clone git@github.com:facebook/react-native.git react-native-gh-pages
+git clone git://github.com/facebook/react-native.git react-native-gh-pages
cd react-native-gh-pages
git checkout origin/gh-pages... | bash |
d_bash_8712 | ---
+++
@@ -1,2 +1,19 @@
-#!/bin/bash
-sed -i $PGDATA/postgresql.conf -e "s/^max_connections .*$/max_connections = $MAX_CONNECTIONS/"
+#!/bin/bash -ex
+
+# The engine needs a 'max_connections' parameter larger than the default used
+# by PostgreSQL, at most 150. As this parameter already has a value in the
+# default... | bash |
d_bash_8713 | ---
+++
@@ -16,7 +16,6 @@
./"$bindir"/delete_comments.sh |
grep -v -- -- | # Delete dashes between games
paste -d' ' $paste_dashes | # Combine opening moves into one line
- cut -d' ' -f 1-3 | # Only include move text
sed -e 's/1-0//' -e 's... | bash |
d_bash_8714 | ---
+++
@@ -8,7 +8,14 @@
ENV=$1
set -x
+
+if [ -d ".git" ]; then
+ VER=`git rev-parse --short HEAD`
+else
+ VER=`date +%s`
+fi
+
rm -rf build
mkdir -p build
-cat index.${ENV}.html | sed "s/GIT_HASH/`git rev-parse --short HEAD`/g" > build/index.html
+cat index.${ENV}.html | sed "s/GIT_HASH/$VER/g" > build/in... | bash |
d_bash_8715 | ---
+++
@@ -3,7 +3,7 @@
set -e
manual_stamp_file=target/ci_manual_stamp
-manual_stamp=9 # Change this to force a clean build on CI
+manual_stamp=10 # Change this to force a clean build on CI
if [ -f $manual_stamp_file ]; then
if echo "$manual_stamp" | cmp -s $manual_stamp_file -; then | bash |
d_bash_8716 | ---
+++
@@ -9,7 +9,7 @@
mvn package -DskipTests
fi
- echo -e "Run acceptance test using PhantomJs on Travis server\n"
+ echo -e "Run acceptance test using Headless Chrome on Travis server\n"
mvn -DseleniumBrowser=chrome "-DseleniumJsonProfile={'args':['headless', 'disable-gpu']}" test
./travis_pub... | bash |
d_bash_8717 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
set -e
-lein do clean, doo all test once, doo all advanced once, doo all none-test once, doo node node-none once, doo node node-advanced once
+lein do clean, doo all once, doo all advanced once, doo all none-test once, doo node node-none once, doo node node-advanced once | bash |
d_bash_8718 | ---
+++
@@ -2,6 +2,9 @@
GIT_SHA1=`(git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1`
GIT_DIRTY=`git diff --no-ext-diff 2> /dev/null | wc -l`
BUILD_ID=`uname -n`"-"`date +%s`
+if [ -n "$SOURCE_DATE_EPOCH" ]; then
+ BUILD_ID=$(date -u -d "@$SOURCE_DATE_EPOCH" +%s 2>/dev/null || date -u -r "$SO... | bash |
d_bash_8719 | ---
+++
@@ -7,8 +7,7 @@
echo "Commit description: '$description'"
-echo "Is the commit description correct? [y/n]:"
-read prompt
+read -p "Is the commit description correct? [y/n]: " prompt
if [[ ("$prompt" == "Y") || ("$prompt" == "y") ]];
then | bash |
d_bash_8720 | ---
+++
@@ -3,6 +3,9 @@
PROFILE=default
source ./make-xpi.sh
-cp adwaita-firefox.xpi ~/.mozilla/firefox/*.${PROFILE}/extensions/{451500c0-902c-11e0-91e4-0800200c9a66}.xpi
+for directory in ~/.mozilla/firefox/*.${PROFILE}
+do
+ cp adwaita-firefox.xpi $directory/extensions/{451500c0-902c-11e0-91e4-0800200c9a66}.... | bash |
d_bash_8721 | ---
+++
@@ -1,4 +1,6 @@
#! /bin/bash
+
+timeout="$HOME/timeout --just-kill --no-info-on-success --detect-hangups -h 10 -t 10 -m 102400"
file=$1
@@ -13,12 +15,17 @@
export PATH=/home/nyx/byond/use/bin:$PATH
export LD_LIBRARY_PATH=/home/nyx/byond/use/bin:$LD_LIBRARY_PATH
-output=$(~/timeout --just-kill --no-i... | bash |
d_bash_8722 | ---
+++
@@ -2,6 +2,12 @@
install_memcached() {
if [ $(expr "${TRAVIS_PHP_VERSION}" ">=" "5.5") -eq 1 ]; then
+ LIBMEMCACHED_VERSION="1.0.13"
+ sudo apt-get install libevent-dev libcloog-ppl0
+ wget "https://launchpad.net/libmemcached/1.0/${LIBMEMCACHED_VERSION}/+download/libmemcached-${LI... | bash |
d_bash_8723 | ---
+++
@@ -1,20 +1,19 @@
-#!/bin/sh
-# Deploy Rails to Engine Yard via _engineyard_ gem
-# https://github.com/engineyard/engineyard
+#!/bin/bash
+# Deploy to Engine Yard via their CLI, https://www.engineyard.com/
#
-# You can either add those here, or configure them on the environment tab of your
-# project setting... | bash |
d_bash_8724 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+SCRIPTDIR=`dirname $0`
+
oc cluster up $OC_CLUSTER_ARGS
oc login -u system:admin
oc cluster status
@@ -8,4 +10,13 @@
oc cluster status
done
+
sleep 30
+
+# Setup persistent storage
+for i in `seq 1 15`
+do
+ echo "Setup persistent storage ${i}"
+ $SCRIPTDIR/prov... | bash |
d_bash_8725 | ---
+++
@@ -3,6 +3,7 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+mkdir -p "$HOME/.config/systemd/user"
cp "$DIR/wl2k.service" "$HOME/.config/systemd/user/"
systemctl --user daemon-reload
| bash |
d_bash_8726 | ---
+++
@@ -6,13 +6,16 @@
exit 1
fi
+if [ -z "${ORGANIZATION}" ] ; then
+ export ORGANIZATION="C2SM-RCM"
+fi
wd=`pwd`
echo Working dir $wd
# Get testsuite
-git clone git@github.com:C2SM-RCM/testsuite
+git clone git@github.com:${ORGANIZATION}/testsuite
cd testsuite
git checkout ${BRANCH}
echo ... | bash |
d_bash_8727 | ---
+++
@@ -14,7 +14,7 @@
alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm"
alias gchurn='git log --name-only | grep .rb | sort | uniq -c | sort -nr | head'
-alias gbd='git branch --merged | grep -Ev "(master|production|main|develop|staging)" | xargs git branch -d'
+alias gbd='git branch --... | bash |
d_bash_8728 | ---
+++
@@ -21,5 +21,5 @@
--detach \
--name "$name" \
--publish 8978:8978 \
- -v /var/cloudbeaver/workspace:/opt/cloudbeaver/workspace \
- dbeaver/cloudbeaver
+ -v $HOME/.cloudbeaver/workspace:/opt/cloudbeaver/workspace \
+ dbeaver/cloudbeaver:latest | bash |
d_bash_8729 | ---
+++
@@ -1,4 +1,8 @@
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
+
+# Open quickly
+alias o='open'
+alias oo='open .'
# CocoaPods
alias pi='pod install' | bash |
d_bash_8730 | ---
+++
@@ -7,3 +7,4 @@
docker build -t praekelt/mama-ng-vxtwinio $INSTALLDIR/$REPO/docker-vms/vxtwinio
docker build -t praekelt/mama-ng-redis $INSTALLDIR/$REPO/docker-vms/redis
docker build -t praekelt/mama-ng-rabbitmq $INSTALLDIR/$REPO/docker-vms/rabbitmq
+docker build -t praekelt/mama-ng-smpp $INSTALLDIR/$REPO/... | bash |
d_bash_8731 | ---
+++
@@ -4,4 +4,4 @@
source env/bin/activate
pip install -r requirements/local.txt
./manage.py migrate
-./manage.py runserver 0.0.0.0:8000 --settings cla_backend.settings.testing
+./manage.py testserver initial_groups.json kb_from_knowledgebase.json initial_category.json test_provider.json initial_mattertype.js... | bash |
d_bash_8732 | ---
+++
@@ -3,5 +3,3 @@
# Install Mistral devstack integration
source ./pre_test_hook_common.sh
MISTRAL_BASE=/opt/stack/new/mistral/contrib/devstack
-cp $MISTRAL_BASE/lib/* $DEVSTACK_BASE/lib
-cp $MISTRAL_BASE/extras.d/* $DEVSTACK_BASE/extras.d | bash |
d_bash_8733 | ---
+++
@@ -30,14 +30,21 @@
function main ()
{
- mkdir -p $data_dir/robots
supervisor_uuid=$(uuidgen)
+
+ mkdir -p $data_dir/{robots,message_queues/$supervisor_uuid}
send $(uuidgen) welcome $supervisor_uuid
while true
do
- handle_line
+ if read -t 0
+ then
+ ... | bash |
d_bash_8734 | ---
+++
@@ -1,3 +1,18 @@
+#!/bin/sh
+# Copyright 2017 gRPC authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless req... | bash |
d_bash_8735 | ---
+++
@@ -19,7 +19,7 @@
--enable-dvdread --with-dvdnav-config-path=/usr/win32/bin \
--enable-shout \
--enable-goom \
- --enable-caca --with-caca-config-path=/usr/win32/bin \
+ --enable-caca \
--enable-portaudio \
--enable-sdl --with-sdl-config-path=/usr/win32/bin \
... | bash |
d_bash_8736 | ---
+++
@@ -4,6 +4,20 @@
@class
FileNameUtilTest(){
+ @test
+ testGetHybridPathFromUnixPath(){
+ local path=/d/foo/bar
+
+ ${assertEquals} $(FileNameUtil getHybridPath ${path}) D:/foo/bar
+ }
+
+ @test
+ testGetHybridPathFromWindowsPath(){
+ local path="D:\\foo\\bar"
+
+ ${assertEquals} $(FileNameUtil getHybr... | bash |
d_bash_8737 | ---
+++
@@ -12,6 +12,11 @@
META_NODE_SHORT=`echo $2 | cut -d. -f 1`
+
+# 'CREATE USER IF NOT EXISTS' is supported only starting with MySQL 5.7.6
+# CREATE USER IF NOT EXISTS hive@$META_NODE IDENTIFIED BY 'password'; \
+# CREATE USER IF NOT EXISTS hive@$META_NODE_SHORT IDENTIFIED BY 'password'; \
+
echo "\
FLUS... | bash |
d_bash_8738 | ---
+++
@@ -5,9 +5,9 @@
pushd $(dirname $0) >/dev/null
PACKAGE_ROOT=$(dirname $(pwd -P))
popd >/dev/null
-
-export HUBOT_SLACK_GITHUB_ISSUES_CONFIG_PATH="${PACKAGE_ROOT}/test/helpers/test-config.json"
+cd ${PACKAGE_ROOT}
COFFEE=${PACKAGE_ROOT}/node_modules/coffee-script/bin/coffee
echo -n "Executing hubot-smok... | bash |
d_bash_8739 | ---
+++
@@ -15,6 +15,7 @@
sed "s/$ORIGCAPSTR/$WEBCAPSTR/" freeciv/fc_version > freeciv/fc_version.tmp
mv freeciv/fc_version.tmp freeciv/fc_version
+chmod a+x freeciv/fc_version
for patch in $PATCHLIST
do | bash |
d_bash_8740 | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
+
+make deps
rm Cartfile || true
rm Cartfile.resolved || true
rm Cartfile.private || true
-
-make deps | bash |
d_bash_8741 | ---
+++
@@ -22,9 +22,9 @@
ensure_not_replace_value openstack_read_timeout
ensure_not_replace_value openstack_write_timeout
-export BOSH_OPENSTACK_CONNECT_TIMEOUT=openstack_connection_timeout
-export BOSH_OPENSTACK_READ_TIMEOUT=openstack_read_timeout
-export BOSH_OPENSTACK_WRITE_TIMEOUT=openstack_write_timeout
+ex... | bash |
d_bash_8742 | ---
+++
@@ -13,7 +13,7 @@
echo "<title>BitRust - Breaking Changes in rust-lang/rust</title>" >> ../index.html
echo '</head><body><pre>' >> ../index.html
-git log -n100 --grep '\[breaking-change\]' \
+git log -n100 --pretty=fuller --grep '\[breaking-change\]' \
| sed -e 's/&/\&/g' \
| sed -e 's/</\</g... | bash |
d_bash_8743 | ---
+++
@@ -20,7 +20,7 @@
find "${FXPROFILE}" -type f -iname "*${PLUGEXT}" -ipath "*/searchplugins/*" -exec cp {} . \;
# Processing each file
-for file in `ls -1 *${PLUGEXT}`; do
+for file in *${PLUGEXT}; do
echo Processing "${file}"...
tr -d "\r" < ${file} > ${file}.lf | bash |
d_bash_8744 | ---
+++
@@ -6,6 +6,7 @@
source $HOME/.rvm/scripts/rvm
sed -i 's| host:.*| host: '"${DBHOST}"'|g' config/database.yml
+sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' config/nginx.conf
$NGINX_HOME/sbin/nginx -c $TROOT/config/nginx.conf
| bash |
d_bash_8745 | ---
+++
@@ -8,4 +8,4 @@
mysqld_safe --basedir=/usr &
nginx
-mkdir /run/php-fpm && php-fpm --nodaemonize
+mkdir -p /run/php-fpm && php-fpm --nodaemonize | bash |
d_bash_8746 | ---
+++
@@ -16,9 +16,6 @@
echo "Starting MCF Agent ..."
./executecommand.sh org.apache.manifoldcf.core.LockClean
start-stop-daemon --background --chdir=$MCF_HOME --start --make-pidfile --pidfile $MCF_PID_FILE --exec \
- /usr/bin/env LD_LIBRARY_PATH=${DATAFARI_HOME}/ocr/libtiff/lib:${DATAFARI_HOME}/o... | bash |
d_bash_8747 | ---
+++
@@ -7,6 +7,10 @@
cd ./debian-7.1-amd64
packer build --only=virtualbox template.json
+#CentOS 6.4
+cd ../centos-6.4-amd64
+packer build --only=virtualbox template.json
+
#Ubuntu 12.10
cd ../ubuntu-12.10-server-amd64
packer build --only=virtualbox template.json | bash |
d_bash_8748 | ---
+++
@@ -1,25 +1,25 @@
#!/bin/sh
cd ./debian
version=`cat ../VERSION`
-mkdir origami-smtp_v$version
-mkdir origami-smtp_v$version/DEBIAN
-mkdir -p origami-smtp_v$version/etc/menu
-mkdir -p origami-smtp_v$version/usr/bin
-mkdir -p origami-smtp_v$version/etc/ssl/certs
-mkdir -p origami-smtp_v$version/usr/share/ap... | bash |
d_bash_8749 | ---
+++
@@ -8,6 +8,7 @@
# The rest of my fun git aliases
alias gl='git pull --prune'
+alias glr='git pull --rebase --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 gp='git push origin HEAD'
ali... | bash |
d_bash_8750 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
virtualenv slave-env
-for package in beanstalkc MySQL-python boto ; do
+for package in beanstalkc PyYAML MySQL-python boto ; do
./slave-env/bin/pip install $package
done
virtualenv --relocatable slave-env | bash |
d_bash_8751 | ---
+++
@@ -5,7 +5,7 @@
if [ "$TRAVIS" = "true" ]; then
echo "INFO: this is travis - not running smoke test"
bundle exec rake db:migrate
- bundle exec rake && bundle exec rake jasmine:ci
+ bundle exec rake
exit 0
else | bash |
d_bash_8752 | ---
+++
@@ -4,5 +4,5 @@
git config user.email "travis@travis-ci.com"
npm version patch -m "Bump version to %s. [ci skip]"
npm run release
-git push "https://$GH_TOKEN:x-oauth-basic@github.com/shockone/black-screen.git" master:master
-git push "https://$GH_TOKEN:x-oauth-basic@github.com/shockone/black-screen.git" -... | bash |
d_bash_8753 | ---
+++
@@ -2,5 +2,6 @@
# Install a pre-commit hook that
# automatically runs phpcs to fix styles
+mkdir -p .git/hooks
cp admin/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit | bash |
d_bash_8754 | ---
+++
@@ -11,7 +11,7 @@
curl -LsSo "$tmp_file" "$DOTFILES_TARBALL_URL" &> /dev/null
output_dir="/tmp/dotfiles"
- mkdir "$output_dir"
+ rm -rf "$output_dir" && mkdir "$output_dir"
echo "Extracting $tmp_file into $output_dir..."
tar -zxf "$tmp_file" --strip-components 1 -C "$output_dir"
| bash |
d_bash_8755 | ---
+++
@@ -14,6 +14,7 @@
pip install --user -e /app/syft[dev]
fi
+python3 -c "print('---Monkey Patching: Gevent---\n');from gevent import monkey;monkey.patch_all()"
# Let the DB start
python /app/grid/backend_prestart.py | bash |
d_bash_8756 | ---
+++
@@ -8,5 +8,5 @@
DATA_DIR=data/1D_benchmark_filtered/$(python -c "import time; import uuid; print '{}-{}'.format(time.strftime('%Y%m%d-%H%M%S'), uuid.uuid1())")
mkdir -p ./data/$DATA_DIR
-python -u generate_filtered_data.py $DATA_DIR --phaseResolution 0.2 --m 1 2 3 --k 1 --numTrials 2000
+python -u genera... | bash |
d_bash_8757 | ---
+++
@@ -8,7 +8,7 @@
hash atom || brew cask install atom
# Install all missing packages from package-list.txt created by:
- # apm list --install --bare > package-list.txt
+ # apm list --installed --bare > package-list.txt
INSTALLED_PKGS=$(apm list --installed --bare)
for PKG in $(cut -f... | bash |
d_bash_8758 | ---
+++
@@ -7,7 +7,7 @@
fi
decrement(){
- echo $((${1}-1))
+ difference ${1} 1
}
difference(){
@@ -19,7 +19,7 @@
}
increment(){
- echo $((${1}+1))
+ sum ${1} 1
}
sum(){ | bash |
d_bash_8759 | ---
+++
@@ -1,6 +1,6 @@
#! /bin/sh
-ROOT=bin/root.exe
+ROOT=bin/root
dir=`pwd`
cd tutorials | bash |
d_bash_8760 | ---
+++
@@ -16,6 +16,13 @@
clean build | bundle exec xcpretty --color
xcodebuild \
+ -scheme KeenClientFramework \
+ -sdk iphonesimulator \
+ -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.2' \
+ ONLY_ACTIVE_ARCH=NO \
+ clean build | bundle exec xcpretty --color
+
+xcodebuild \
-scheme KeenClient \
... | bash |
d_bash_8761 | ---
+++
@@ -14,7 +14,7 @@
mkdir -p $CSS_OUT
fi
-function make_scss {
+make_scss () {
cd $1
for f in *.scss
do
@@ -26,7 +26,7 @@
done
}
-function clean {
+clean () {
rm -f $1/*.css
rm -f $MANIFEST
} | bash |
d_bash_8762 | ---
+++
@@ -33,6 +33,9 @@
sudo chown $USER $ROOT_BUILD
pushd $ROOT_BUILD
+# Remove any remnants of previous repositories
+rm -rf freeipa
+
# Clone FreeIPA so we have our own sandbox to play in
if [[ `ls | wc -l` == 0 ]]
then | bash |
d_bash_8763 | ---
+++
@@ -19,8 +19,6 @@
mingw-w64-x86_64-cairo \
mingw-w64-x86_64-gobject-introspection \
mingw-w64-x86_64-python \
- mingw-w64-x86_64-python-gobject \
- mingw-w64-x86_64-python-cairo \
mingw-w64-x86_64-python-pip \
mingw-w64-x86_64-python-setuptools \
mingw-w64-x86_64-python-whe... | bash |
d_bash_8764 | ---
+++
@@ -10,11 +10,11 @@
}
echo '====== Running tests ========='
-bin/nosetests $@; handle_exit
+nosetests $@; handle_exit
echo '====== Running flake8 ======'
-bin/flake8 *.py; handle_exit
-bin/flake8 mrbob; handle_exit
+flake8 *.py; handle_exit
+flake8 mrbob; handle_exit
if [ $EXITCODE -ne 0 ]; then
... | bash |
d_bash_8765 | ---
+++
@@ -14,4 +14,4 @@
conda build conda --no-anaconda-upload
TRG=`conda build conda --output |sed -e 's/--/-*-/'`
echo "Uploading: $TRG"
-anaconda --token $TKN upload --label $LBL $TRG
+anaconda --token $TKN upload --skip-existing --label $LBL $TRG | bash |
d_bash_8766 | ---
+++
@@ -5,4 +5,4 @@
./mvnw clean install -Dmaven.test.skip=true
cd $workdir
-./mvnw -Pe415 clean install -Dmaven.test.skip=true
+./mvnw -Pe416 clean install -Dmaven.test.skip=true | bash |
d_bash_8767 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+JAVA_RPM_URL="http://download.oracle.com/otn-pub/java/jdk/7u65-b17/jdk-7u65-linux-x64.rpm"
+GEMFIRE_RPM_URL="http://download.pivotal.com.s3.amazonaws.com/gemfire/7.0.2/pivotal-gemfire-7.0.2-1.el6.noarch.rpm"
set -e -x
@@ -13,7 +15,21 @@
test -e /usr/bin/grunt || npm insta... | bash |
d_bash_8768 | ---
+++
@@ -4,7 +4,11 @@
do
echo "Compiling $file"
python ../parser.py --midi < $file > miditext/$file.miditext
+ python ../parser.py --lilypond < $file > ly/$file.ly
~/downloads/midicomp-0.0.4/midicomp -c miditext/$file.miditext midi/$file.midi
timidity -c ~/composition/soundfont/timidity.cfg -Ow midi/$file... | bash |
d_bash_8769 | ---
+++
@@ -15,7 +15,7 @@
alias httparty='noglob httparty'
alias wget='noglob wget'
-alias markdown2pdf='markdown2pdf -C ~/Dropbox/reference/markdown.tex'
+alias markdown2pdf='/usr/bin/markdown2pdf --template ~/Dropbox/reference/markdown.tex'
alias alert='notify-send -i gnome-terminal \
"[$?] $(history|ta... | bash |
d_bash_8770 | ---
+++
@@ -5,9 +5,8 @@
#PBS -o $PBS_JOBID.out
#PBS -e $PBS_JOBID.err
-#set -e
# Any subsequent(*) commands which fail will cause the shell script to exit immediately
-# DON'T USE SET -E TOGETHER WITH EXPAND_ALIASES!
+# DON'T USE SET -E TOGETHER WITH EXPAND_ALIASES! Correction: don't use with source root_deps.sh... | bash |
d_bash_8771 | ---
+++
@@ -6,8 +6,7 @@
brew install git-pair
brew install git-together
brew install git-author
-# Get latest version of vim
-brew install vim --with-override-system-vi
+brew install vim
brew cask install rowanj-gitx
brew cask install sourcetree | bash |
d_bash_8772 | ---
+++
@@ -3,15 +3,17 @@
set -x
set -e
-docker pull metaskills/mssql-server-linux-rails
+tag=1.1
-container=$(docker ps -a -q --filter ancestor=metaskills/mssql-server-linux-rails)
+docker pull metaskills/mssql-server-linux-rails:$tag
+
+container=$(docker ps -a -q --filter ancestor=metaskills/mssql-server-lin... | bash |
d_bash_8773 | ---
+++
@@ -1,4 +1,4 @@
# Don't try to glob with zsh so you can do
# stuff like ga *foo* and correctly have
# git add the right stuff
-alias git='noglob git'
+alias git='noglob /usr/local/bin/git' | bash |
d_bash_8774 | ---
+++
@@ -17,7 +17,7 @@
destfile=$HOME/.$file
- if error="$(ln -s $DIR/$file $destfile 2>&1)"
+ if error="$(ln -ns $DIR/$file $destfile 2>&1)"
then
echo "[OK]"
elif [[ -h $HOME/$file ]] | bash |
d_bash_8775 | ---
+++
@@ -1,4 +1,4 @@
-alias vim=nvim
+alias vi=vim
alias reload!='source ~/.zshrc'
alias rs='rails s'
alias rc='rails c' | bash |
d_bash_8776 | ---
+++
@@ -15,7 +15,7 @@
if [ "${last_committed_tag}" != "${last_released_tag}" ]; then
# Build using the latest tag.
sed -i "s/source-tag:.*$/source-tag: '"$last_committed_tag"'/g" snapcraft.yaml
- sed -i "s/version:.*$/version: '"$last_commited_tag"'/g" snapcraft.yaml
+ sed -i "s/version:.*$/versi... | bash |
d_bash_8777 | ---
+++
@@ -8,7 +8,7 @@
fi
echo "adding 'id_rsa.${HOSTNAME}' to ssh-agent..."
-ssh-add -K "${HOME}/.ssh/id_rsa.${HOSTNAME}"
+ssh-add --apple-use-keychain --apple-load-keychain "${HOME}/.ssh/id_rsa.${HOSTNAME}"
echo "killing ssh-agent... "
sudo killall ssh-agent
echo "done" | bash |
d_bash_8778 | ---
+++
@@ -1,11 +1,23 @@
pkg_name=freetype
pkg_version=2.6.3
pkg_origin=core
-pkg_license=('FreeType')
+pkg_description="A software library to render fonts"
+pkg_upstream_url="https://www.freetype.org"
+pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
+pkg_license=('FreeType' 'GPL-2.0')
pkg_source=ht... | bash |
d_bash_8779 | ---
+++
@@ -1,8 +1,10 @@
-# Target desscription for Firefox
-TARGET_PRODUCT="mozilla-inbound-linux64-asan"
-TARGET_LOCATION="ftp.mozilla.org/pub/firefox/tinderbox-builds/${TARGET_PRODUCT}/latest/"
-TARGET_URL="https://${TARGET_LOCATION}"
-retry wget -r -l1 -np -A "firefox-*.en-US.linux-x86_64-asan.tar.bz2" "${TARGET_... | bash |
d_bash_8780 | ---
+++
@@ -6,7 +6,7 @@
nosetests --ckan \
--nologcapture \
- --with-pylons=subdir/test.ini \
+ --with-pylons=test.travis.ini \
--with-coverage \
--cover-package=ckanext.tayside \
--cover-inclusive \ | bash |
d_bash_8781 | ---
+++
@@ -1,3 +1,6 @@
#!/usr/bin/env bash
./stop-apps.sh && ./stop-platform.sh
+
+rm -rf logs/
+mkdir -p logs/ | bash |
d_bash_8782 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+
+set -e
PWD="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
| bash |
d_bash_8783 | ---
+++
@@ -1,5 +1,3 @@
-#
-# $Id$
#
# Copyright 2013, Juniper Networks, Inc.
# All rights reserved. | bash |
d_bash_8784 | ---
+++
@@ -18,6 +18,7 @@
osarch=$(basename "$platform")
pushd "$platform" >/dev/null 2>&1
+ sha256sum * > "$osarch".sha256sum
zip ../"$osarch".zip ./*
popd >/dev/null 2>&1
done < <(find ./pkg -mindepth 1 -maxdepth 1 -type d -print0) | bash |
d_bash_8785 | ---
+++
@@ -6,7 +6,7 @@
if [[ "${CEILOMETER_DATABASE_TYPE}" == "mysql" ]]; then
sudo -H -u ceilometer ceilometer-upgrade --skip-gnocchi-resource-types
elif [[ "${CEILOMETER_DATABASE_TYPE}" == "gnocchi" ]]; then
- sudo -H -u ceilometer ceilometer-upgrade --skip-metering-database --skip-event-... | bash |
d_bash_8786 | ---
+++
@@ -5,7 +5,7 @@
if [ "$OMNIBUS_FIPS_MODE" == "true" ]
then
- sudo sh -c 'echo "fips true" >> /etc/opscode/chef-server.rb'
+ sudo sh -c 'echo -e "\nfips true" >> /etc/opscode/chef-server.rb'
sudo chef-server-ctl reconfigure
echo ""
echo "Sleeping 120 seconds to allow the Chef Server to reconfigu... | bash |
d_bash_8787 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-abbrev_commit=`git log -1 --format=%h`
+abbrev_commit=`git log -1 --format=%h --abbrev=8`
mkdir -p output
rm -rf output/* | bash |
d_bash_8788 | ---
+++
@@ -15,8 +15,10 @@
wget $GAUGE_DOWNLOAD_URL
-OUTPUT_DIR="/tmp/gauge_$GAUGE_LATEST_VERSION"
+OUTPUT_DIR="./gauge_$GAUGE_LATEST_VERSION"
unzip $GAUGE_FILE_NAME -d $OUTPUT_DIR
-/bin/bash "$OUTPUT_DIR/install.sh"
+cd $OUTPUT_DIR
+
+/bin/bash install.sh | bash |
d_bash_8789 | ---
+++
@@ -3,4 +3,4 @@
export ANT_OPTS="-Xmx512m"
export JAVA_OPTS="-Xmx512m"
export JAVA_HOME="/usr/lib/jvm/default-java"
-export PATH=$PATH:$HOME/dev/processing/processing
+export PATH=$PATH:$HOME/dev/processing/processing:$M2_HOME/bin | bash |
d_bash_8790 | ---
+++
@@ -1,17 +1,15 @@
# Cleanup old hashes
rm -f *.sha256sum
-# Generate new, single file.
-#cat urls.tsv | awk -F'\t' '(NR>1){print $6" "$1"-"$2"-"$3"-"$4}' > cpc.sha256sum
# Renaming files into folders.
-echo 'set -x' > mkdir.txt
-cat urls.tsv | awk -F'\t' '(NR>1){a=$1"_"$2"_"$3"_"$4".tar.gz"; print "mkdi... | bash |
d_bash_8791 | ---
+++
@@ -15,4 +15,4 @@
composer install --no-plugins --no-scripts
-sudo export DEBIAN_FRONTEND=dialog
+export DEBIAN_FRONTEND=dialog | bash |
d_bash_8792 | ---
+++
@@ -9,3 +9,4 @@
printf '%s' "$2" | sudo tee /etc/mesos-slave/hostname
echo '5mins' | sudo tee /etc/mesos-slave/executor_registration_timeout
sudo service mesos-slave restart
+sudo usermod -a -G docker ubuntu | bash |
d_bash_8793 | ---
+++
@@ -36,8 +36,8 @@
create_principal HTTP/$node
keytab_dir=$CLUSTER_NAME/$node
- rm -fr $keytab_dir
mkdir -p $keytab_dir
+ rm -f $keytab_dir/mapr.keytab
kadmin.local -q "ktadd -norandkey -k $keytab_dir/mapr.keytab mapr/$CLUSTER_NAME"
kadmin.local -q "ktadd -norandkey -k $keytab_... | bash |
d_bash_8794 | ---
+++
@@ -28,4 +28,4 @@
git add -A .
git status
git commit -a -m "Travis #$TRAVIS_BUILD_NUMBER"
-git push --quiet origin `master` > /dev/null 2>&1
+git push --quiet origin master > /dev/null 2>&1 | bash |
d_bash_8795 | ---
+++
@@ -13,5 +13,5 @@
KEYS='' # add extra keys to the base image
REPOS='' # add extra repos to the base image
DOCKER='' # list of docker images to include
-PACKAGES='sudo vim-nox git wget file man tree nmap tcpdump htop lsof telnet mlocate bind9-host iftop netcat psmisc bash-completion moreutils' # list... | bash |
d_bash_8796 | ---
+++
@@ -8,5 +8,5 @@
bundle exec rake assets:precompile
# Start the server
-rails server -b 0.0.0.0 -p 3000
+exec rails server -b 0.0.0.0 -p 3000
| bash |
d_bash_8797 | ---
+++
@@ -11,7 +11,7 @@
fi
VERSION_FILE=$(__get_version_file)
-VERSION=$($HOOKS_DIR/modules/semverbump.sh $VERSION $VERSION_FILE $VERSION_SORT)
+VERSION=$($HOOKS_DIR/modules/semverbump.sh "$VERSION" "$VERSION_FILE" "$VERSION_SORT")
if [ $? -ne 0 ]; then
__print_fail "Unable to bump version." | bash |
d_bash_8798 | ---
+++
@@ -1,2 +1,15 @@
# Old servers don't know anything about screen-256color
alias ssh="TERM=xterm ssh"
+
+function mount-usb {
+ device=$1
+ target=$2
+
+ if [ -z "$target" ]; then
+ target='/mnt/usb'
+ fi
+
+ sudo mkdir -p $target && \
+ sudo chmod 777 $target && \
+ sudo mount -o ... | bash |
d_bash_8799 | ---
+++
@@ -23,6 +23,10 @@
cd ./debian-7.5-amd64
packer build --only=virtualbox-iso template.json
+#Debian 7.6
+cd ./debian-7.6-amd64
+packer build --only=virtualbox-iso template.json
+
#CentOS 6.4
cd ../centos-6.4-amd64
packer build --only=virtualbox template.json | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.