document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_19800 | ---
+++
@@ -11,7 +11,7 @@
# Install updates and system packages
apt-get update
apt-get install -y build-essential locales software-properties-common
-apt-get install -y gcc curl supervisor
+apt-get install -y gcc curl supervisor git
apt-get install -y python-minimal python3.7-dev python3.7 python3-setuptools
#... | bash |
d_bash_19801 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-REPOS="aii CAF CCM cdp-listend configuration-modules-core configuration-modules-grid LC ncm-cdispd ncm-ncd ncm-query rpmt-py spma"
+REPOS="aii CAF CCM cdp-listend configuration-modules-core configuration-modules-grid LC ncm-cdispd ncm-ncd ncm-query"
RELEASE=""
if [[ -n $1 &... | bash |
d_bash_19802 | ---
+++
@@ -7,8 +7,8 @@
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
-# ZSH_THEME='agnoster-phatblat'
-ZSH_THEME='robbyrussell'
+ZSH_THEME='agnoster-phatblat'
+# ZSH_THEME='robbyrussell'
# Example aliases
# alias zshco... | bash |
d_bash_19803 | ---
+++
@@ -5,7 +5,7 @@
. scripts/common/build.sh
prepare_build tmux/tmux-$REV \
- --url git://git.code.sf.net/p/tmux/tmux-code \
+ --url git://github.com/tmux/tmux \
--rev $REV
cd "$BUILD_DIRECTORY" | bash |
d_bash_19804 | ---
+++
@@ -17,7 +17,7 @@
fi
# Run the browser tests
- cci flow run browsertests -o browsertests__use_saucelabs True
+ cci flow run ci_browsertests
exit_status=$?
# Delete the scratch org
@@ -41,7 +41,7 @@
fi
# Run the browser tests
- cci flow run browsertests -o browserte... | bash |
d_bash_19805 | ---
+++
@@ -3,13 +3,28 @@
set -u
# checksums
-MD5SUM="19e50b22e5ee88314ad6a6630d202277"
-MD5SUM_ANNO="da002cc4c9c4f2c77e4401c97564be94"
+sashimi_md5="86e5924ecf8ce1272635ff43b244b32e"
+sashimi_anno_md5="216c07785889074f69cb94cc2af7cb00"
-# run ggsashimi without annotation
-docker run --rm -w $PWD -v $PWD:$PWD g... | bash |
d_bash_19806 | ---
+++
@@ -1,4 +1,5 @@
rm -rf elasticsearch # remove old version
-curl https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-$ES_VERSION.tar.gz -o elasticsearch.tar.gz
+curl https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-$ES_VERSION.tar.gz -L -o elasticsearch.tar.gz
tar xvf... | bash |
d_bash_19807 | ---
+++
@@ -18,6 +18,7 @@
# Import our development certificate.
MY_CERTPATH="$SCRIPT_DIR/certificates/Development.p12"
-EXPIRY_DATE=$(openssl pkcs12 -in "$MY_CERTPATH" -password "$KEY_PASSWORD" -nomacver -nokeys | openssl x509 -noout -enddate)
-echo "Codesign development certificate expiration: $EXPIRY_DATE"
+ech... | bash |
d_bash_19808 | ---
+++
@@ -3,6 +3,7 @@
alias hgc='hg commit'
alias hgb='hg branch'
alias hgba='hg branches'
+alias hgbk='hg bookmarks'
alias hgco='hg checkout'
alias hgd='hg diff'
alias hged='hg diffmerge' | bash |
d_bash_19809 | ---
+++
@@ -9,13 +9,13 @@
if [ "$USE_CONDA" = "Yes"]; then
if [ "$PYTHON_VERSION" = "2.7"]; then
conda remove -q qt pyqt
- pip install --index-url=${URL} pyside2 --trusted-host download.qt.io
+ pip install -q --index-url=${URL} pyside2 --trusted-host download.qt.io
else
exit... | bash |
d_bash_19810 | ---
+++
@@ -2,9 +2,8 @@
# docker-wrapper run -v /foo:/bar image args
-# Must be run as sudo
-
-if [ -z "$SUDO_UID" ]; then
+# Must be root via sudo
+if [ "$(whoami)" != "root" ] || [ -z "$SUDO_UID" ]; then
echo "Error: Must be run with sudo"
exit 1
fi | bash |
d_bash_19811 | ---
+++
@@ -4,20 +4,23 @@
# that were changed in the last commit.
# https://docs.djangoproject.com/en/1.11/ref/django-admin/
message_files_changed=$(git diff --name-only HEAD~1..HEAD -- '*.html' '*.txt' '*.py' --porcelain | wc -l)
+# Count the number of translation files changed.
translation_files_changed=$(git d... | bash |
d_bash_19812 | ---
+++
@@ -14,4 +14,4 @@
export CFLAGS+="-pthread"
make
-make install
+PREFIX=$PREFIX/bin make install | bash |
d_bash_19813 | ---
+++
@@ -7,8 +7,14 @@
BRANCH="master"
fi
-docker run -i -t iamsergio/clazy-ubuntu-14.04 sh $BUILD_SCRIPT $BRANCH $J_FLAG && \
-docker run -i -t iamsergio/clazy-ubuntu-15.10 sh $BUILD_SCRIPT $BRANCH $J_FLAG && \
-docker run -i -t iamsergio/clazy-ubuntu-16.04 sh $BUILD_SCRIPT $BRANCH $J_FLAG && \
-docker run... | bash |
d_bash_19814 | ---
+++
@@ -1,13 +1,4 @@
#!/bin/bash -ex
-
-(
- cd capi-release/src/cloud_controller_ng
- git remote add -f fork/master https://github.com/idev4u/cloud_controller_ng.git
- git cherry-pick 29d1797b2c4db73790a57abb90523a25c0770d27
- git add bosh/jobs/cloud_controller_ng/*
- git commit m "Add BitsService TLS ca_ce... | bash |
d_bash_19815 | ---
+++
@@ -6,6 +6,7 @@
cd ..
echo "-> Copy built examples to Gitbook"
+mkdir book/dependencies/scripts
rm book/dependencies/scripts/*
cp examples/target/vue-gwt-examples-*/VueGwtExamples/* book/dependencies/scripts/
| bash |
d_bash_19816 | ---
+++
@@ -23,6 +23,19 @@
type => "$LUMBERJACK_TAG"
}
}
+filter {
+ if [type] == "syslog" {
+ grok {
+ match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" }
+ add_field => ... | bash |
d_bash_19817 | ---
+++
@@ -18,7 +18,7 @@
COMMAND+=" | tee xcodebuild.log"
-xcpretty --version > /dev/null 2>&1 && COMMAND+=" | xcpretty -c" && [ "${TRAVIS}" == "true" ] && xcpretty-travis-formatter > /dev/null 2>&1 && COMMAND+=" -f `xcpretty-travis-formatter`"
+xcpretty --version > /dev/null 2>&1 && COMMAND+=" | xcpretty" && [... | bash |
d_bash_19818 | ---
+++
@@ -1,12 +1,37 @@
#!/bin/bash
-INSTALL_DIR=vendor
-COMPOSER=composer.phar
+INSTALL_DIR=./vendor
+COMPOSER=${INSTALL_DIR}/composer.phar
+
+OPTS="--install-dir=${INSTALL_DIR}"
+CURL=`which curl 2> /dev/null`
+
+
+# install composer using straight php
+install_php() {
+ echo "Using php . . ."
+ php -r "... | bash |
d_bash_19819 | ---
+++
@@ -1,4 +1,4 @@
-#! /bin/zsh
+#! /usr/bin/env zsh
# Install and update vim packages.
# Author: Lorenzo Cabrini <lorenzo.cabrini@gmail.com> | bash |
d_bash_19820 | ---
+++
@@ -10,4 +10,4 @@
# python3.8, and it can be a pain to build, so skip installing it.
# Install the other dependencies manually.
pip3 install --no-deps tomviz/python
-pip3 install tqdm h5py numpy==1.16.4 click scipy itk
+pip3 install tqdm h5py numpy click scipy itk | bash |
d_bash_19821 | ---
+++
@@ -15,7 +15,7 @@
export EDITOR=nvim
export NVIM_TUI_ENABLE_TRUE_COLOR=1
-export NVIM_TUI_ENABLE_CURSOR_SHAPE=1
+export NVIM_TUI_ENABLE_CURSOR_SHAPE=0
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=gasp'
export VAGRANT_DEFAULT_PROVIDER=libvirt
export PYENV_VIRTUALENV_DISABLE_PROMPT=1 | bash |
d_bash_19822 | ---
+++
@@ -7,7 +7,7 @@
init_vars
-module load gcc
+module load GCC
pushd ${OPT_DIR}
@@ -27,8 +27,6 @@
DESC="SOX"
HELP="SOX ${VERSION}"
-EXTRA_LINES="module load prgenv"
-
write_module
popd | bash |
d_bash_19823 | ---
+++
@@ -24,4 +24,4 @@
functest_docker_prefix=${manifest_docker_prefix-${docker_prefix}}
-${TESTS_OUT_DIR}/tests.test -kubeconfig=${kubeconfig} -tag=${docker_tag} -prefix=${functest_docker_prefix} -kubectl-path=${kubectl} -test.timeout 60m ${FUNC_TEST_ARGS}
+${TESTS_OUT_DIR}/tests.test -kubeconfig=${kubeconfi... | bash |
d_bash_19824 | ---
+++
@@ -1,6 +1,10 @@
#!/usr/bin/env bash
source /home/vagrant/venv/bin/activate
echo "Re-installing tables for Windows"
+sudo apt-get update > /dev/null
+sudo apt-get install -y dos2unix > /dev/null
+dos2unix /vagrant/vagrant_provisioning/supervisor/celery.sh
+dos2unix /vagrant/vagrant_provisioning/supervisor/... | bash |
d_bash_19825 | ---
+++
@@ -13,8 +13,8 @@
# this way we also check subdirectories
# The script `check-env-dep` uses process substitution which is **not** a standard `sh` feature!
# See also: https://unix.stackexchange.com/questions/151925
-scripts=$($FIND scripts/ -type f -not -regex '.+/docker/.+' -not -regex \
- '.+(check-env-d... | bash |
d_bash_19826 | ---
+++
@@ -5,7 +5,7 @@
echo "Installing Mac App Store apps..."
preload_mas_app_list
-install_mas_app 410628904 'Wunderlist'
+install_mas_app 1274495053 'Microsoft To Do'
install_mas_app 1176895641 'Spark'
install_mas_app 451640037 'Classic Color Meter'
install_mas_app 407963104 'Pixelmator' | bash |
d_bash_19827 | ---
+++
@@ -13,7 +13,7 @@
mkdir -p /anaconda/conda-bld/osx-64 # workaround for bug in current conda
mkdir -p /anaconda/conda-bld/linux-64 # workaround for bug in current conda
export PATH=/anaconda/bin:$PATH
- conda install -y conda conda-build anaconda-client pyyaml toolz jinja2 nose
+ conda ins... | bash |
d_bash_19828 | ---
+++
@@ -11,14 +11,16 @@
testClassArray[${i}]=$(StringUtil capitalize ${testClassArray[i]})
done
+ local testClass=$(StringUtil join testClassArray)
+
local _tests=(
$(CommandValidator getValidFunctions bash-toolbox/$(StringUtil
- replace classPath [.] /)/$(StringUtil join testClass).sh)
+ r... | bash |
d_bash_19829 | ---
+++
@@ -9,7 +9,7 @@
JDK_ARCHIVE=jdk-${JDK_FEATURE}-ea+${JDK_BUILD}_linux-x64_bin.tar.gz
cd ~
-wget http://download.java.net/java/jdk${JDK_FEATURE}/archive/${JDK_BUILD}/binaries/${JDK_ARCHIVE}
+wget http://download.java.net/java/jdk${JDK_FEATURE}/archive/${JDK_BUILD}/BCL/${JDK_ARCHIVE}
tar -xzf ${JDK_ARCHIVE}... | bash |
d_bash_19830 | ---
+++
@@ -21,12 +21,12 @@
psql -c "insert into t1 values (2, 'two');" master
Replicate master slave
-SyncSyncID master `GetSyncID --noverbose slave`
+MasterSync master `GetSyncID --noverbose slave`
psql -c "insert into t1 values (3, 'three');" master
psql -c "insert into t1 values (4, 'four');" master
Re... | bash |
d_bash_19831 | ---
+++
@@ -5,7 +5,7 @@
exit 1
fi
-for file in $(ls -A . | egrep -v '(.git|install.sh)'); do
+for file in $(ls -A . | egrep -v '(.git$|install.sh)'); do
rm -rf ~/"${file}" 2> /dev/null
cp -rv "$PWD/${file}" ~/"${file}"
done | bash |
d_bash_19832 | ---
+++
@@ -14,8 +14,12 @@
# Add JDKs
jenv add /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home
jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home
+jenv rehash
# Use JDK7 as global default
jenv global oracle64-1.7.0.80
+# Make maven aware of jenv
+jenv enable-plugin maven... | bash |
d_bash_19833 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
set -e
echo "Installing curl" | bash |
d_bash_19834 | ---
+++
@@ -4,4 +4,4 @@
ernest-cli login --user usr --password secret123
ernest-cli project create aws fakeaws --region fake --secret_access_key fake_up_to_16_characters --access_key_id up_to_16_characters_secret --fake
ernest-cli project create vcloud fakevcloud -org test -user fakeuser -password test123 -vdc fak... | bash |
d_bash_19835 | ---
+++
@@ -3,5 +3,5 @@
pod_densities="${pod_densities#\"}"
for i in $pod_densities; do
- echo "DENSITY=$i > density_$i.property
+ echo "DENSITY=$i" > density_$i.property
done | bash |
d_bash_19836 | ---
+++
@@ -3,5 +3,4 @@
wget http://www.cmake.org/files/v3.1/cmake-3.1.3-Linux-x86_64.tar.gz
tar -xzf cmake-3.1.3-Linux-x86_64.tar.gz
-cd cmake-3.1.3-Linux-x86_64
mv cmake-3.1.3-Linux-x86_64 cmake | bash |
d_bash_19837 | ---
+++
@@ -11,7 +11,7 @@
export DM_DATA_API_AUTH_TOKEN=${DM_DATA_API_AUTH_TOKEN:=myToken}
export DM_API_AUTH_TOKEN=${DM_API_AUTH_TOKEN:=myToken}
-export DM_SUBMISSIONS_BUCKET=${DM_SUBMISSIONS_BUCKET:=digitalmarketplace-submissions-dev-dev}
+export DM_SUBMISSIONS_BUCKET=${DM_SUBMISSIONS_BUCKET:=digitalmarketplace... | bash |
d_bash_19838 | ---
+++
@@ -24,6 +24,8 @@
mkdir lib
cp $BASE/dist/paper.js lib
cp $BASE/dist/paper-min.js lib
+# Also include stats sinsce some examples use it
+cp $BASE/lib/stats.js lib
# Copy examples over
cp -r $BASE/examples .
# Replace ../../dist/ with ../../lib/ in each example | bash |
d_bash_19839 | ---
+++
@@ -10,8 +10,17 @@
# run tests
cd $here/..
+
+_cmd=tox
+if [ X"$osrel" == X"Darwin" ]; then
+ # python2.6 locks up during py.test on osx build slave,
+ # exclude the test environment py26 from osx.
+ _cmd='tox -epy27,py33,py34,pypy'
+fi
+
ret=0
-tox || ret=$?
+echo ${_cmd}
+${_cmd} || ret=$?
if [ $ret... | bash |
d_bash_19840 | ---
+++
@@ -8,5 +8,12 @@
echo no | android create avd --force -n test -t android-10 --abi armeabi-v7a
emulator -avd test -no-window -memory 512 -wipe-data 2>&1 | tee emulator.log &
adb logcat 2>&1 | tee logcat.log &
-bash -x "$(which android-wait-for-emulator)"
+
+# Workaround from https://code.google.com/p/androi... | bash |
d_bash_19841 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-set -e
+set -eu
mkdir -p /root/.ssh
chown root:root /root/.ssh
@@ -14,6 +14,14 @@
# Copy the public key
if [ -f ${CORK_HOST_HOME_DIR}/.ssh/id_rsa.pub ]; then
cp ${CORK_HOST_HOME_DIR}/.ssh/id_rsa.pub /root/.ssh/authorized_keys
+else
+ if [ -f ${CORK_HOST_HOME_DIR}... | bash |
d_bash_19842 | ---
+++
@@ -1,2 +1,12 @@
#!/bin/bash
-taskwrapper --name oplog-replay --cmd /usr/local/bin/oplogreplay --gearman-host $GEARMAN_HOST --gearman-port $GEARMAN_PORT
+gearcmd --name oplog-replay --cmd /usr/local/bin/oplogreplay --host $GEARMAN_HOST --port $GEARMAN_PORT &
+pid=$!
+# When we get a SIGTERM kill the child pr... | bash |
d_bash_19843 | ---
+++
@@ -13,8 +13,8 @@
exit;
fi
-dropdb $1
-createdb $1
+bash dropdb $1
+bash createdb $1
printf '\e[1;34mMoving into database directory...\n\e[0m'
cd sql | bash |
d_bash_19844 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-CC=avr-gcc CXX=c++ LINK="-mmcu=atmega128 -Wl,-gc-sections" COMP="-O2 -ggdb -Wa,-mmcu=atmega128 -mmcu=atmega128 -ffunction-sections -fdata-sections" cmake -DARCH=AVR -DWORD=8 -DOPSYS=NONE -DSEED=LIBC -DSHLIB=OFF -DSTBIN=ON -DTIMER=NONE -DWITH="DV;BN;FB;EB;PB;CP;MD" -DBENCH=20 -DT... | bash |
d_bash_19845 | ---
+++
@@ -19,6 +19,12 @@
TIMESTAMP=$(date +"%Y%m%d-%H%M%S")
ROOTDEV="/dev/system/root"
SUBVOL="@"
+
+if [ $EUID -ne 0 ]
+then
+ broadcast.error "Error: $0 must be executed as root"
+ exit 1
+fi
if [ $# -gt 0 ] && [ -n "$1" ]
then | bash |
d_bash_19846 | ---
+++
@@ -12,13 +12,7 @@
cd /home/steam/serverfiles
while [ 1 ]
do
- eval ./arma3server -netlog -ip=0.0.0.0 -port=2302 \
- -cfg=/home/steam/serverfiles/cfg/arma3-server.network.cfg \
- -config=/home/steam/serverfiles/cfg/arma3-server.server.cfg \
- -mod=$MODS \
- -serverMod=$SERVERMODS \
-... | bash |
d_bash_19847 | ---
+++
@@ -9,7 +9,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.11_9.tar.gz"
;;
java16)
- echo "https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16%2B36/OpenJDK16-jdk_x64_linux_hotspot_16_36.tar.... | bash |
d_bash_19848 | ---
+++
@@ -1,3 +1,9 @@
+function docker_machine_use() {
+ eval $(docker-machine env "$*")
+}
+
if [ -n "$DOCKER_MACHINE_DEFAULT" ]; then
- eval $(docker-machine env $DOCKER_MACHINE_DEFAULT)
+ docker_machine_use $DOCKER_MACHINE_DEFAULT
fi
+
+alias dmu=docker_machine_use | bash |
d_bash_19849 | ---
+++
@@ -1,4 +1,38 @@
#!/bin/bash -e
+
+echo -n "Sudoer login (default: test): "
+read SUDOER_LOGIN
+echo -n "Sudoer password (default: qwer1234): "
+read -s SUDOER_PASSWORD
+echo
+echo -n "WWW Password (default: qwer1234): "
+read -s WWW_PASSWORD
+echo
+
+if [ -z $SUDOER_LOGIN ]
+then
+ SUDOER_LOGIN=test
+fi
+
... | bash |
d_bash_19850 | ---
+++
@@ -18,6 +18,7 @@
# rm -rf ~/wptdbuild/*
cd ./wptdashboard/ && ./run/run.py $BROWSER \
+ --partial-threshold 98 \
--upload --create-testrun --total-chunks 100 2>&1 | \
tee browser-`date +%s`.log
| bash |
d_bash_19851 | ---
+++
@@ -39,5 +39,5 @@
docker service scale ${SERVICE_ID}=1
echo Listing all services in the stack
-watch docker service ps ${SERVICE_ID}
+watch docker stack services ${STACK_NAME}
clear | bash |
d_bash_19852 | ---
+++
@@ -3,11 +3,8 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# Install useful apt packages
-PACKAGES='curl htop jq network-manager-openvpn openssh-server python-pip tmux tree zsh'
+PACKAGES='curl htop jq openssh-server tmux tree zsh'
sudo apt install --assume-yes ${PACKAGES}... | bash |
d_bash_19853 | ---
+++
@@ -20,8 +20,8 @@
#
TESTBINARY=test_libbitcoin
CXX=g++
-CXXFLAGS=$(pkg-config --cflags libbitcoin libcrypto libboost_unit_test_framework)
-LDFLAGS="$(pkg-config --libs libbitcoin libcrypto libboost_unit_test_framework)"
+CXXFLAGS=$(pkg-config --cflags libbitcoin libcrypto)
+LDFLAGS="$(pkg-config --libs lib... | bash |
d_bash_19854 | ---
+++
@@ -5,6 +5,7 @@
php -r 'exit(extension_loaded("pdo_mysql") ? 0 : 1);'
grep -q '^extension=' /usr/local/etc/php/conf.d/*pdo_mysql*.ini
-docker-php-ext-install opcache 2>&1
+# opcache is pre-built by default at least as far back as PHP 5.5
+docker-php-ext-enable opcache 2>&1
php -r 'exit(extension_loaded("... | bash |
d_bash_19855 | ---
+++
@@ -10,6 +10,7 @@
fi
if [ ! -f "$tar_file" ] ; then
+ mkdir -p "$(dirname "$tar_file")"
tar cf "$tar_file" "$app_dir"
fi
| bash |
d_bash_19856 | ---
+++
@@ -22,4 +22,4 @@
make all install package
# Unit tests (appleseed must be installed to function properly)
-env LD_LIBRARY_PATH=./travis_install/bin:$LD_LIBRARY_PATH ./travis_install/bin/appleseed.cli --run-unit-tests --verbose-unit-tests
+env LD_LIBRARY_PATH=./travis_install/lib:$LD_LIBRARY_PATH ./travis... | bash |
d_bash_19857 | ---
+++
@@ -15,5 +15,7 @@
ssh-keygen -b 4096 -t rsa -f id-jenkins-rsa -q -N "" -C "jenkins@fabric8.io"
ssh-keygen -b 4096 -t rsa -f id-sonar-rsa -q -N "" -C "sonar@fabric8.io"
+cp ../ssh-admin-key/ssh-key.pub id-admin-rsa.pub
+
cd ..
| bash |
d_bash_19858 | ---
+++
@@ -13,7 +13,7 @@
echo $DEPLOY_PRIME_URL
cd OHIFViewer-react
export ROOT_URL=$DEPLOY_PRIME_URL/viewer/
-sed -i "s,https://docs.ohif.org/viewer,${ROOT_URL},g" package.json
+sed -i "s,http://localhost:5000/,${ROOT_URL},g" package.json
cat package.json
npm install
npm run build | bash |
d_bash_19859 | ---
+++
@@ -5,7 +5,6 @@
if git remote | grep heroku > /dev/null; then
git fetch heroku
yarn deploy
- heroku restart
yarn sentry
else
echo "Heroku is not set up :(" | bash |
d_bash_19860 | ---
+++
@@ -16,7 +16,7 @@
cd repo
if cargo doc ; then
cp -R target/doc/* ../docs
- if [ ! $(git branch | grep -q gh-pages) ] ; then
+ if [ -z $(git branch -a | grep gh-pages) ] ; then
git checkout --orphan gh-pages
echo "Creating new branch"
else | bash |
d_bash_19861 | ---
+++
@@ -9,8 +9,7 @@
}
teardown() {
- /etc/init.d/postgresql stop || true
- while /etc/init.d/postgresql status; do sleep 0.1; done
+ stop_pg
rm -rf "$DATA_DIRECTORY"
export DATA_DIRECTORY="$OLD_DATA_DIRECTORY"
@@ -25,12 +24,26 @@
initialize_and_start_pg() {
PASSPHRASE=foobar /usr/bin/run-data... | bash |
d_bash_19862 | ---
+++
@@ -6,7 +6,7 @@
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
-sudo apt-get -q -y install python-software-properties python g++ make upstart rsync
+sudo apt-get -q -y install python-software-properties python g++ make upstart rsync s3cmd
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt... | bash |
d_bash_19863 | ---
+++
@@ -6,4 +6,4 @@
[ "$NOVENV" == "1" ] || prepare_venv || exit 1
-python3 -B src/perf-tests.py
+python3 -B src/perf-tests.py $@ | bash |
d_bash_19864 | ---
+++
@@ -23,8 +23,9 @@
function install_libraries()
{
- pushd libraries
-
+ mkdir -p $HOME/Arduino/libraries
+ pushd $HOME/Arduino/libraries
+
# install ArduinoJson library
wget https://github.com/bblanchon/ArduinoJson/releases/download/v4.6.1/ArduinoJson-v4.6.1.zip && unzip ArduinoJson-... | bash |
d_bash_19865 | ---
+++
@@ -1,5 +1,6 @@
time client/appstream-builder \
--api-version=0.3 \
+ --use-package-cache \
--log-dir=../createrepo_as_logs \
--temp-dir=./contrib/tmp \
--cache-dir=./contrib/cache \ | bash |
d_bash_19866 | ---
+++
@@ -10,8 +10,8 @@
mkdir -p $output_dir/{vagrant,terraform}
box_version_filter="s/config\.vm\.box_version = '0'/config.vm.box_version = '$vagrant_box_version'/"
-vagrantfile=$(sed "$box_version_filter" lattice-release/vagrant/Vagrantfile)
-echo "LATTICE_TGZ_URL = '$lattice_tgz_url'\n$vagrantfile" > $output... | bash |
d_bash_19867 | ---
+++
@@ -3,7 +3,7 @@
thirdparty_module_name='GoogleTest'
upstream_git_url='https://github.com/google/googletest.git'
-upstream_git_branch='master'
+upstream_git_branch='release-1.10.0'
github_compare=true
| bash |
d_bash_19868 | ---
+++
@@ -26,5 +26,5 @@
cp -r "$ROOT/doc" "$ROOT/dist" .
cp -r "$ROOT/visualizer/" ./editor # Temporary until main repo is changed.
git add doc dist editor
-git commit -m "Update from master@${OHM_REV}"
+git commit -m "Update from cdglabs/ohm@${OHM_REV}"
git push origin master | bash |
d_bash_19869 | ---
+++
@@ -3,11 +3,17 @@
# Invoke this from the root of an internal Android tree. It will create
# links to build swiftshader as vendor code in vendor/swiftshader
+set -o errexit
+
pushd $(dirname "$0") > /dev/null 2>&1
DIR="$(pwd)"
popd > /dev/null 2>&1
-OUT="$(pwd)/vendor/swiftshader"
+OUT="$(pwd)/vendor/... | bash |
d_bash_19870 | ---
+++
@@ -21,9 +21,10 @@
source bosh-concourse-ci/pipelines/$cpi_release_name/$base_os-$network_type_to_test-exports.sh
-eval $(ssh-agent)
-chmod go-r $BAT_VCAP_PRIVATE_KEY
-ssh-add $BAT_VCAP_PRIVATE_KEY
+#vsphere uses user/pass and the cdrom drive, not a reverse ssh tunnel
+#eval $(ssh-agent)
+#chmod go-r $BA... | bash |
d_bash_19871 | ---
+++
@@ -23,7 +23,7 @@
cp -a ../../Examples/$1/* Examples/
find Examples -name project.pbxproj -exec sed -i -f ../fix_paths.sed {} \;
cp ../../README.md ../../VERSION ../../LICENSE ../INSTALL.md .
- find . -name .DS_Store -exec rm -f {} \;
+ find . -name .DS_Store -or -name build -exec rm -f {} \;
cd ..
... | bash |
d_bash_19872 | ---
+++
@@ -4,7 +4,6 @@
function run_test() {
echo "------------- Running test: $1 -------------"
pushd $1 > /dev/null
- rm -rf .dart_tool
dart pub upgrade
dart format -o none --set-exit-if-changed .
dart analyze --fatal-infos --fatal-warnings
@@ -22,7 +21,6 @@
function run_test_flutter(... | bash |
d_bash_19873 | ---
+++
@@ -1,7 +1,9 @@
#!/usr/bin/env bash
# This step should install tools needed for all packages - OpenSSL and LDNS
+# When running on Travis, Homebrew fails in unusual ways, hence '|| true'.
+# https://travis-ci.community/t/homebrew-fails-because-an-automake-update-is-an-error/7831/3
echo "Updating tools"
-... | bash |
d_bash_19874 | ---
+++
@@ -8,5 +8,5 @@
./gradlew clean >> benchmark.log && \
./gradlew --no-parallel --no-daemon jmh >> benchmark.log && \
./gradlew --no-parallel --no-daemon publishResults processResults >> benchmark.log && \
-git add results && git ci -m "[ci-skip] Add daily results" >> benchmark.log && \
+git add results && g... | bash |
d_bash_19875 | ---
+++
@@ -21,6 +21,7 @@
RPMS=( \
centos-6 \
centos-7 \
+ centos-7-aarch64 \
fedora-25 \
opensuse-42.1 \
) | bash |
d_bash_19876 | ---
+++
@@ -26,7 +26,7 @@
# wheel example: recordlinkage-0.6.0+0.g9c83c85.dirty-py2.py3-none-any.whl
# sdist example: recordlinkage-0.11.0+1.gf2bd314.dirty.tar.gz
base_path="dist/recordlinkage-"
-whl_ext="-py2.py3-none-any.whl"
+whl_ext="-py3-none-any.whl"
sdist_ext=".tar.gz"
whl_full_path=$base_path$version_tag... | bash |
d_bash_19877 | ---
+++
@@ -7,4 +7,4 @@
echo "Starting API webapp in offline mode.."
echo
sleep 1
-java -jar api/target/exec-api.jar
+java -Xmx3g -jar api/target/exec-api.jar | bash |
d_bash_19878 | ---
+++
@@ -6,13 +6,11 @@
awk '$1 == "inet" {print $2}' | cut -f1 -d/)
cat > /etc/etcd/etcd.conf <<EOF
-# [member]
ETCD_NAME="$myip"
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
ETCD_LISTEN_CLIENT_URLS="http://0.0.0.0:4001"
ETCD_LISTEN_PEER_URLS="http://$myip:7001"
-[cluster]
ETCD_ADVERTISE_CLIENT_URLS="http... | bash |
d_bash_19879 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
# Install required system packages:
-sudo apt-get install python2.7 python-virtualenv python-pip python2.7-dev
+sudo apt-get install python2.7 python-virtualenv python2.7-dev
# Create a virtualenv, an isolated Python environment, in a new directory called
# "flocker-tutorial"... | bash |
d_bash_19880 | ---
+++
@@ -1,7 +1,6 @@
#!/bin/bash
set -e
-
# Log current travis settings...
echo "TRAVIS_EVENT_TYPE: ${TRAVIS_EVENT_TYPE}"
@@ -9,6 +8,8 @@
echo "TRAVIS_TAG: ${TRAVIS_TAG}"
echo "TRAVIS_COMMIT: ${TRAVIS_COMMIT}"
echo "TRAVIS_OS_NAME: ${TRAVIS_OS_NAME}" # "linux" or "osx"
+
+python3.6 -... | bash |
d_bash_19881 | ---
+++
@@ -10,7 +10,7 @@
nova flavor-delete 451
fi
-nova flavor-create m1.nano 42 128 1 1
+nova flavor-create m1.nano 42 512 1 1
nova flavor-create m1.micro 84 128 2 1
nova flavor-create m1.heat 451 512 5 1
| bash |
d_bash_19882 | ---
+++
@@ -23,8 +23,8 @@
RETZ_CONTAINER=$1
CURRENT=$(cd $(dirname $0) && pwd)
-docker exec -it $RETZ_CONTAINER /spawn_mesos_agent.sh
-docker exec -it $RETZ_CONTAINER /spawn_retz_server.sh
+docker exec -it $RETZ_CONTAINER sh -c "/spawn_mesos_agent.sh && sleep 1"
+docker exec -it $RETZ_CONTAINER sh -c "/spawn_retz... | bash |
d_bash_19883 | ---
+++
@@ -6,7 +6,7 @@
elif [ "$OS" == "Linux" ]; then
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
- echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.... | bash |
d_bash_19884 | ---
+++
@@ -7,8 +7,10 @@
if [ "$drawing_from" == "'ACPower'" ]
then
battery_percent=$(echo $info|awk '{print $7}')
+ echo $battery_percent
if [ "$battery_percent" == "100%;" ]
then
+ echo Call Notification
open /Applications/ChargeCompleteNotification.app
fi
fi | bash |
d_bash_19885 | ---
+++
@@ -3,11 +3,11 @@
###########################
# Install Puppet and Nginx
###########################
-sudo apt-get update
-sudo apt-get install nginx -y
wget https://apt.puppetlabs.com/puppetlabs-release-precise.deb
sudo dpkg -i puppetlabs-release-precise.deb
+sudo apt-get update
sudo apt-get install pu... | bash |
d_bash_19886 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
sudo apt-get update
-sudo apt-get install -y libc++-dev libc++abi-dev bsdtar libedit-dev
+sudo apt-get install -y libc++-dev libc++abi-dev bsdtar libedit-dev gdbm | bash |
d_bash_19887 | ---
+++
@@ -11,3 +11,7 @@
sudo apt-get update -q
sudo apt-get install -q -y -o Dpkg::Options::=--force-confnew mysql-server
sudo mysql_upgrade
+sudo service mysql restart
+
+TEMP_PASSWORD=`sudo cat /var/log/mysql/error.log | grep "A temporary password is generated for" | awk '{print $NF}'`
+sudo mysql -u root -p $... | bash |
d_bash_19888 | ---
+++
@@ -1,6 +1,10 @@
#!/bin/bash
echo -e "\033[0;32mDeploying updates to GitHub...\033[0m"
+
+set -o errexit -o nounset
+
+rev=$(git rev-parse --short HEAD)
# Deploys the contents of public/ to the master branch
cd public/ | bash |
d_bash_19889 | ---
+++
@@ -6,5 +6,4 @@
npm run build
npm test
npm run test:coverage
-npm run build:example
npm run docs | bash |
d_bash_19890 | ---
+++
@@ -28,6 +28,7 @@
# Common Xcode project folders
alias op='cd ~/dev/ios/Octopad'
alias ebw='cd ~/dev/ios/EBW'
+alias fk='cd ~/dev/ios/FitnessKit'
alias itwire='cd ~/dev/bluemix/ITWire'
# Blog main dir | bash |
d_bash_19891 | ---
+++
@@ -12,9 +12,9 @@
# build with code coverage instrumentation
mkdir -p build
cp $SERFSRC/build/check.py build/
-cp $SERFSRC/test/*.pem test/
-cp $SERFSRC/test/server/*.pem test/server/
-cp $SERFSRC/test/server/*.p12 test/server/
+mkdir -p test/certs/
+cp $SERFSRC/test/certs/*.pem test/certs/
+cp $SERFSRC/te... | bash |
d_bash_19892 | ---
+++
@@ -23,10 +23,15 @@
fancy_echo "Updating Unix tools..."
brew install git
+brew install homebrew/dupes/screen
+brew install the_silver_searcher
+brew install tmux
brew install vim --override-system-vi
-brew install tmux
-brew install the_silver_searcher
brew install zsh
+
+fancy_echo "Updating programmin... | bash |
d_bash_19893 | ---
+++
@@ -11,8 +11,7 @@
# Dev or Remote .ssh/config
Host office.infinitetactics.com
User joshz
-Host gitlab.infinitetactics.com
- HostName gitlab
+Host gitlab.infinitetactics.com gitlab.office.analyticsgateway.com
ProxyJump office.infinitetactics.com
User git
EOF | bash |
d_bash_19894 | ---
+++
@@ -5,7 +5,7 @@
type kubectl 2>/dev/null || ip="${ip:-localhost}"
index="${ESIND:-_all}"
size="${SIZE:-50}"
-format="\(.Timestamp) \(.Hostname) \(.Logger).\(.programname) \(.severity_label) \(.python_module) [\(.request_id)] -- \(.Payload)"
+format="\(.Timestamp) \(.Hostname) \(.Logger).\(.programname).\(.... | bash |
d_bash_19895 | ---
+++
@@ -8,11 +8,11 @@
sudo apt-get install postgresql-$PGVERSION solr-jetty libcommons-fileupload-java:amd64=1.2.2-1
echo "Installing CKAN and its Python dependencies..."
-git clone https://github.com/ckan/ckan
+git clone https://github.com/aptivate/ckan
cd ckan
-export latest_ckan_release_branch=`git branch... | bash |
d_bash_19896 | ---
+++
@@ -3,18 +3,9 @@
cd $(dirname $BASH_SOURCE)
SETUP_DIR=$(pwd)
-# Only symlink bashrc and zshrc if they don't exist.
-# If they already exist but do not 'source ~/.dotfiles_prompt', then append it.
-for rc in bashrc zshrc; do
- if [ ! -e ~/.$rc ]; then
- ln -sfv $SETUP_DIR/$rc ~/.$rc
- elif ! g... | bash |
d_bash_19897 | ---
+++
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/bin/bash
mvn install deploy:deploy -Durl=https://repo.jenkins-ci.org/snapshots/ -Did=maven.jenkins-ci.org | bash |
d_bash_19898 | ---
+++
@@ -19,7 +19,7 @@
if [ -z "${JENKINS_PASSWORD}" ]; then
while ! ssh -nF "${VAGRANT_SSH_CONFIG}" default "sudo test -f \"${VAGRANT_JENKINS_HOME}\"/secrets/initialAdminPassword"; do
- echo '/var/lib/jenkins/secrets/initialAdminPassword not available, yet...'
+ echo "${VAGRANT_JENKINS_HOME}/secrets/i... | bash |
d_bash_19899 | ---
+++
@@ -19,5 +19,5 @@
# Set browser
-export BROWSER=firefox
+export BROWSER=google-chrome-stable
| bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.