document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_7600 | ---
+++
@@ -2,5 +2,5 @@
# All this does is set what node version all of my stuff uses.
# Since the merge and update to 4.0, I have found a need to stick to a specific relaese to keep
# things stable
-export node_version=6.2.2
+export node_version=6.6.0
| bash |
d_bash_7601 | ---
+++
@@ -12,4 +12,4 @@
# This release was built from the
# 'release/release-used-to-test-springboarding' tag in GitHub. All it
# does is print this string and exit.
-$METEOR --release release/used-to-test-springboarding | grep "THIS IS A FAKE RELEASE ONLY USED TO TEST ENGINE SPRINGBOARDING"
+$METEOR --release r... | bash |
d_bash_7602 | ---
+++
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
+
+set -e
# Set version to latest unless set by user
if [ -z "$VERSION" ]; then | bash |
d_bash_7603 | ---
+++
@@ -7,7 +7,7 @@
createdb -T template_postgis atlas_travis -U postgres
python manage.py build_solr_schema --settings=settings.travis > config/travis/solr/schema.xml
sudo cp config/travis/solr/schema.xml /usr/local/share/solr3/conf/
-sudo sed -i.bak -r -e "s/#JDK_DIRS/JDK_DIRS=\"\/usr\/lib\/jvm\/java-6-openj... | bash |
d_bash_7604 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh -e
-sudo pkg install tex-formats texlive-full
+sudo pkg install --yes tex-formats texlive-full
bucket=weblog-bucket-8cjakz6b6pl3
site=`mktemp -d weblog.XXXXXX`
tmp=`mktemp -d weblog.XXXXXX` | bash |
d_bash_7605 | ---
+++
@@ -7,9 +7,6 @@
# 3. Eject RAM disk when child shell exits
#
-RNAME='RamDisk'
-RPATH="/Volumes/${RNAME}"
-
#
# Get the size in bytes of the available RAM on this system, then divide by
# 8 and divide that by the sector size (512 bytes) to arrive at the number
@@ -17,18 +14,24 @@
#
let SECTORS=`sysctl... | bash |
d_bash_7606 | ---
+++
@@ -13,4 +13,4 @@
mkdir -p artefacts
cd output
-tar -zxvf ../artefacts/service-explorer-$BUILD_ID.tgz .
+tar -zcvf ../artefacts/service-explorer-$BUILD_ID.tgz . | bash |
d_bash_7607 | ---
+++
@@ -15,7 +15,7 @@
# How many seconds to wait for the API to be responding before giving up
API_RESPONDING_TIMEOUT=20
-if ! timeout ${API_RESPONDING_TIMEOUT} sh -c "while ! curl -s http://127.0.0.1:8989/v1/ 2>/dev/null | grep -q 'Authentication required' ; do sleep 1; done"; then
+if ! timeout ${API_RESPON... | bash |
d_bash_7608 | ---
+++
@@ -13,7 +13,8 @@
fi
NAMESPACE_DIR=../namespaces/managed-apps/${APP_NAME}
-cp -a _namespace-template ${NAMESPACE_DIR}
+mkdir -p ${NAMESPACE_DIR}
+cp -a _namespace-template/* ${NAMESPACE_DIR}/
pushd ${NAMESPACE_DIR}
# Set the APP_NAME | bash |
d_bash_7609 | ---
+++
@@ -1,6 +1,6 @@
BUCKET_NAME=$1
REGION=$2
-cd ./jazz-core/cloud-api-onboarding-webapp
+cd ./jazz-ui
sudo npm install -g @angular/cli
sudo npm install
sudo ng build –prod | bash |
d_bash_7610 | ---
+++
@@ -20,10 +20,13 @@
### Set up environment files and database ###
cp /vagrant/.env.example /vagrant/.env
mysql -u root -proot -e 'create database flarum'
+
### Setup flarum/core ###
+composer global require franzl/studio:dev-master
cd /vagrant/flarum/core
git clone https://github.com/flarum/core .
comp... | bash |
d_bash_7611 | ---
+++
@@ -16,7 +16,7 @@
fi
fi
-function man() {
+function colored() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
@@ -28,5 +28,9 @@
PAGER="${commands[less]:-$PAGER}" \
_NROFF_U=1 \
PATH="$HOME/bin:$PATH" \
- man "$@"
+ "$@"
}
+
+function man() {
+ c... | bash |
d_bash_7612 | ---
+++
@@ -1,11 +1,11 @@
#!/bin/bash
-#sudo apt-get install vim
-#yum install vim
+sudo apt-get install vim
+yum install vim
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
-if [ -f "~/.bashrc" ]; then
+if [ -f "$HOME/.bashrc" ]; then
mv -i -v ~/.bashrc ~/.bashrc.orig
... | bash |
d_bash_7613 | ---
+++
@@ -29,3 +29,11 @@
function nplf() {
jq ".$2" < "./node_modules/$1/package.json"
}
+
+function npoh() {
+ open $(npm view $1 homepage)
+}
+
+function npon() {
+ open "https://npm.im/$1"
+} | bash |
d_bash_7614 | ---
+++
@@ -36,8 +36,8 @@
build-essential \
python \
python2.7 \
- python2.7-dev
-wget https://bootstrap.pypa.io/get-pip.py -O - | python
+ python2.7-dev \
+ python-pip
pip install --upgrade --ignore-installed setuptools
pip install wheel
| bash |
d_bash_7615 | ---
+++
@@ -1,11 +1,11 @@
#!/bin/bash
rand=$RANDOM
-if [ $rand -gt 10000 ]; then
+if [ $rand -gt 22000 ]; then
echo "Ok: random number generated was high enough ($rand)"
exit 0
else
- if [ $rand -gt 1000 ]; then
+ if [ $rand -gt 11000 ]; then
echo Warning: random number generated was $rand
exit... | bash |
d_bash_7616 | ---
+++
@@ -25,9 +25,9 @@
# mount calico_containers and dist under /code work directory. Don't use /code
# as the mountpoint directly since the host permissions may not allow the
# `user` account in the container to write to it.
-docker run -v `pwd`/calico_containers:/code/calico_containers \
+docker run -w /code... | bash |
d_bash_7617 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
-version="19.03.11"
+version="19.03.12"
echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz"; | bash |
d_bash_7618 | ---
+++
@@ -2,7 +2,7 @@
if [[ ! -L ~/.atom ]]; then
echo -e "\e[33mCreating symlink\e[0m"
- ln -s "$(pwd)/atom.symlink" ~/.atom
+ ln -s $(pwd)/atom.symlink ~/.atom
fi
declare -a PACKAGES=(
@@ -13,6 +13,7 @@
"navigation-history"
"project-manager"
"sort-lines"
+ "switch-header-source... | bash |
d_bash_7619 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+
+set -e
beginGroup() {
if [[ -n "$GITHUB_ACTIONS" ]] ; then
@@ -24,6 +26,7 @@
for PACKAGE in $BUILD_ORDER ; do
beginGroup "$PACKAGE"
pushd "$PACKAGE" || exit $?
+ yarn || exit 255
yarn lib || exit 255
endGroup "$PACKAGE"
popd || exit $? | bash |
d_bash_7620 | ---
+++
@@ -20,5 +20,5 @@
alias 187='rvm use 1.8.7-p334'
alias 191='rvm use 1.9.1-p378'
alias 192='rvm use 1.9.2-p180'
-alias jruby='rvm use jruby-1.6.0'
+alias jruby='rvm use jruby-1.6.1'
alias macruby='rvm use macruby-0.10' | bash |
d_bash_7621 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
#
# Short build script.
-local_version=10-ox1-alpha3
+local_version=10-ox1-alpha4
local_sakai=10.x
# If any command fails abort the build | bash |
d_bash_7622 | ---
+++
@@ -10,6 +10,7 @@
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq python3 locales python3-pip debianutils \
&& pip3 install tox coveralls \
&& locale-gen en_US.UTF-8 \
+ && export LANG='en_US.UTF-8' \
&& cd /code \
&& coverage run --source=faker setup.py test \
&& covera... | bash |
d_bash_7623 | ---
+++
@@ -14,6 +14,13 @@
docker build -t surli/repairnator:$TAG docker-images/pipeline-dockerimage
docker push surli/repairnator:$TAG
+ if [[ $? != 0 ]]
+ then
+ echo "Error while pushing docker image"
+ exit 1
+ else
+ echo "Docker image pushed: surli/repairnator:$TAG"
+ ... | bash |
d_bash_7624 | ---
+++
@@ -3,7 +3,20 @@
#Default volume path on host.
VOLUME_PATH="/home/docker/seafile"
-#Or you can add it to ~/.docker-sunx-seafile file
+#Container hostname
+CONTAINER_HOSTNAME="seafile.domain.com"
+#Container name
+CONTAINER_NAME="seafile"
+#Restart policy
+RESTART_POLCY="unless-stopped"
+#Some extra argume... | bash |
d_bash_7625 | ---
+++
@@ -1,3 +1,5 @@
+echo Disabled
+exit 0
CUR_DIR=$(dirname -- $0)
msbuild /nologo /v:minimal $CUR_DIR/../build/MonoEmbeddinator4000.sln || xbuild /nologo /v:minimal $CUR_DIR/../build/MonoEmbeddinator4000.sln
make -C $CUR_DIR | bash |
d_bash_7626 | ---
+++
@@ -30,7 +30,7 @@
######################################################################################
echo "Installing '${PYTHON_PACKAGE_NAME}' and its dependencies to '${PACKAGE_LIB_DIR}' ..."
-${CK_ENV_COMPILER_PYTHON_FILE} -m pip install ${PYTHON_PACKAGE_NAME} --prefix=${EXTRA_PYTHON_SITE} ${PIP_INS... | bash |
d_bash_7627 | ---
+++
@@ -2,6 +2,10 @@
BINDIR=$(cd "$(dirname "$0")/../bin" && pwd -P)
cd "$BINDIR"
+
+if [ ! -d "${HOME}/bin" ]; then
+ mkdir "${HOME}/bin"
+fi
for file in $(find "$BINDIR" -maxdepth 1 -mindepth 1 -not -name '.*.swp'); do
f=$(basename $file) | bash |
d_bash_7628 | ---
+++
@@ -1,4 +1,8 @@
#!/bin/sh
+
+## On ubuntu/debian machines, the package to install is called yui-compressor:
+## $ sudo apt-get install yui-compressor
+##
min="yui-compressor"
| bash |
d_bash_7629 | ---
+++
@@ -1,7 +1,9 @@
#!/bin/sh
-FORBIDDEN="goog.object goog.isArray goog.isFunction goog.isString goog.bind goog.array goog.dom goog.events goog.isDef goog.isDefAndNotNull goog.isNull"
-for method in $FORBIDDEN;
-do
- grep -Rn "$method" src/ && echo "Use standard ES5.1 instead of $method" && return 1;
- echo -n... | bash |
d_bash_7630 | ---
+++
@@ -9,7 +9,11 @@
# Determines whether the current $USER is in the admin group.
#
function user_is_admin {
- return $(dsmemberutil checkmembership -U "${USER}" -G "admin") == "user is a member of the group"
+ if [[ $(dsmemberutil checkmembership -U "${USER}" -G "admin") == "user is a member of the group" ... | bash |
d_bash_7631 | ---
+++
@@ -13,9 +13,16 @@
# Submit to a multithreading queue that has 8 threads (with max 8GB
# each) adding up to 64GB total. We need the memory, not the threads.
export USE_GE=1
-export GE_OPTIONS="-l q1dm -l mem_free=64G -pe pe_mth 8"
+export GE_OPTIONS="-l q1wm -pe pe_mth 8"
+rm -f job-file
export IN_DICT... | bash |
d_bash_7632 | ---
+++
@@ -1 +1,4 @@
+# Random 1-10 seconds sleep in order not to call state.sls at the same time
+sleep $(($RANDOM % 10))
+
salt-call state.sls ${VIRTUALENV_SETUP_STATE_NAME} pillar="{virtualenv_name: ${VIRTUALENV_NAME}}" concurrent=true | bash |
d_bash_7633 | ---
+++
@@ -10,3 +10,7 @@
echo "We ensure our own pip."
curl -sSL https://bootstrap.pypa.io/get-pip.py | python3.7
+
+echo
+echo "Python version:"
+python3.7 -c "import sys; print(sys.version)" | bash |
d_bash_7634 | ---
+++
@@ -9,4 +9,5 @@
mkdir /usr/share/ca-certificates/docker
tar -xf /tmp/certs.tgz -C /usr/share/ca-certificates/docker
cd /usr/share/ca-certificates && find ./docker/ -type f | sed 's/.\///' >> /etc/ca-certificates.conf
+update-ca-certificates
fi | bash |
d_bash_7635 | ---
+++
@@ -17,6 +17,31 @@
exit 1
}
+# Help interface
+# This should show the help interface and exit the script.
+function show_help {
+ echo "Pass in correct argument"
+ exit 1
+}
+
+#
+# If the argument to the script is 'stopall' then stop all
+# If remove, then stop and remove all
+# If the ar... | bash |
d_bash_7636 | ---
+++
@@ -1,6 +1,6 @@
cd ../
cd ../
-for ((i=$1; i <= $1 + 5; i++))
+for ((i=$1; i < $1 + 10; i++))
do
- python3 main.py --is_LSTM_mode True --is_train True --rand_hyper True --continue_train False --train_set_size 40000 --checkpoint_dir "checkpoint_lstm/hyper/$i" --dataset_dir "dataset_files"
+ python3 ma... | bash |
d_bash_7637 | ---
+++
@@ -12,7 +12,7 @@
DOWNLOAD_DIR=`pwd`/tmp
#DOWNLOAD_DIR=$/Downloads
-JIRA_INSTALLFILE="atlassian-jira-6.2.5-x64.bin"
+JIRA_INSTALLFILE="atlassian-jira-6.3.6-x64.bin"
JIRA_BACKUP="2014-May-21--0347.zip"
mkdir -p ${DOWNLOAD_DIR} | bash |
d_bash_7638 | ---
+++
@@ -3,13 +3,16 @@
git config --global url.ssh://git@github.com/.insteadOf https://github.com/
git config --global user.email "robot@example.com"
git config --global user.name "Codeship Robot"
+
+SANDBOX_COMMIT=$(git rev-parse --verify master)
+
git remote set-branches --add origin gh-pages
git fetch
-git... | bash |
d_bash_7639 | ---
+++
@@ -8,7 +8,7 @@
if [ -n "$artifact_urls" ]; then
for URL in $(echo $artifact_urls | sed -e "s| |\n|g" | sort -u); do
- curl --globoff -o $TMP_DATA/file_data "$artifact_urls"
+ curl --globoff -o $TMP_DATA/file_data "$URL"
if file -b $TMP_DATA/file_data | grep RPM &>/dev/null; then
yum i... | bash |
d_bash_7640 | ---
+++
@@ -3,6 +3,7 @@
# Allows garbage collection of the permanent generation.
export JAVA_OPTS="-server \
-Xms256m -Xmx1024m \
+ -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode \
-XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled \
-XX:NewSize=128m -XX:MaxNewSize=256m \
-XX:PermS... | bash |
d_bash_7641 | ---
+++
@@ -19,7 +19,7 @@
fi
buildArgs+=( travis "$SUITE" "@$epoch" )
-checkFile="travis/$serial/${ARCH:=amd64}/${CODENAME:-$SUITE}/rootfs.tar.xz"
+checkFile="travis/$serial/${ARCH:-amd64}/${CODENAME:-$SUITE}/rootfs.tar.xz"
set -x
| bash |
d_bash_7642 | ---
+++
@@ -32,6 +32,6 @@
# Run the remote examples
imageDirectory=`pwd`
cd ..
-./gt-installer --verbose --workspace ${imageDirectory} test --packages "GToolkit-RemoteExamples-GemStone"
+./gt-installer --verbose --workspace ${imageDirectory} test --disable-deprecation-rewrites --packages "GToolkit-RemoteExamples-G... | bash |
d_bash_7643 | ---
+++
@@ -6,5 +6,6 @@
cp mpi-latex-templates*.deb /output/
cp latex/mpi.pdf /output/
cp examples/mpi-far.pdf /output/
+cp examples/mpi-aebr.pdf /output/
cp examples/mpi-plenary.pdf /output/
#cp examples/*.bib /output/ | bash |
d_bash_7644 | ---
+++
@@ -8,6 +8,8 @@
CNI_DIR=${CNI_DIR:-${HOST_PREFIX}/opt/cni}
CILIUM_CNI_CONF=${CILIUM_CNI_CONF:-${HOST_PREFIX}/etc/cni/net.d/${CNI_CONF_NAME}}
+
+mkdir -p ${CNI_DIR}/bin
# Install the CNI loopback driver if not installed already
if [ ! -f ${CNI_DIR}/bin/loopback ]; then
@@ -21,7 +23,7 @@
if [ -f "${CIL... | bash |
d_bash_7645 | ---
+++
@@ -1,10 +1,17 @@
#!/bin/bash
+
+# Clean all existing APK
rm *.apk
-./gradlew clean
-./gradlew lintAppRelease assembleAppMatrixorg
-./gradlew lintAppfdroidRelease assembleAppfdroidMatrixorg
+# Clean
+./gradlew clean
-#cp app/build/outputs/apk/app-alpha-matrixorg.apk ./alpha.apk
+# Run Lint and build th... | bash |
d_bash_7646 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-gem install gems -v 1.0.0
-gem install dpl -v 1.8.31
+gem install gems -v 0.8.3
+gem install dpl -v 1.8.27
dpl --provider=rubygems --api-key=$RUBY_GEMS_API_KEY --gemspec=./rrj.gemspec | bash |
d_bash_7647 | ---
+++
@@ -7,6 +7,7 @@
echo -e "${COLOR_START}Starting Go Agent to connect to server $GO_SERVER ...${COLOR_END}"
sed -i -e 's/GO_SERVER=.*/GO_SERVER='$GO_SERVER'/' /etc/default/go-agent
+sed -i -e 's/GO_SERVER_URL=.*/GO_SERVER_URL=https:\/\/'$GO_SERVER':8154\/go\//' /etc/default/go-agent
mkdir -p /var/lib/go-... | bash |
d_bash_7648 | ---
+++
@@ -4,6 +4,7 @@
# Authors:
# Florian Walch <florian.walch@gmx.at>
# Sorin Ionescu <sorin.ionescu@gmail.com>
+# neersighted <neersighted@myopera.com>
#
# Return if requirements are not found.
@@ -11,7 +12,8 @@
return 1
fi
-_gpg_env="$HOME/.gnupg/gpg-agent.env"
+# Make sure to use the $GNUPGH... | bash |
d_bash_7649 | ---
+++
@@ -4,6 +4,6 @@
wget http://switch.dl.sourceforge.net/project/openjade/opensp/1.5.2/OpenSP-1.5.2.tar.gz
tar -xzf OpenSP-1.5.2.tar.gz
cd ~/travis-tmp/OpenSP-*
-./configure --enable-http --disable-doc-build
-make
-make install
+./configure --quiet --enable-http --disable-doc-build
+make --silent
+make --sile... | bash |
d_bash_7650 | ---
+++
@@ -1,11 +1,12 @@
OS=$(uname -s)
if [ "$OS" == "Darwin" ]; then
- wget -O mono.pkg https://download.mono-project.com/archive/5.18.0/macos-10-universal/MonoFramework-MDK-5.18.0.240.macos10.xamarin.universal.pkg
+ wget -O mono.pkg https://download.mono-project.com/archive/6.10.0/macos-10-universal/MonoFramewo... | bash |
d_bash_7651 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+
+set -e
PWD="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
| bash |
d_bash_7652 | ---
+++
@@ -1,4 +1,6 @@
-export GOPATH=$PROJECTS/go
+export GOPATH="$PROJECTS/go"
+export GOBIN="$GOPATH/bin"
+export PATH="$PATH:$GOPATH:$GOBIN"
if [ -x "$(command -v brew)" ];then
GOVERSION=$(brew list go 2>/dev/null | head -n 1 | cut -d '/' -f 6) | bash |
d_bash_7653 | ---
+++
@@ -1,5 +1,4 @@
#!/bin/sh
-set -x
if [ ! -z ${MACHINE_NAME} ] && [ ! -z ${MACHINE_EXPORT_AWS_ACCESS_KEY_ID} ] \
&& [ ! -z ${MACHINE_EXPORT_AWS_SECRET_ACCESS_KEY} ] && [ ! -z ${MACHINE_EXPORT_AWS_REGION} ] \ | bash |
d_bash_7654 | ---
+++
@@ -6,8 +6,6 @@
cd bosh-warden-cpi-release
-source .envrc
-
pushd src/bosh-warden-cpi
./bin/test
popd | bash |
d_bash_7655 | ---
+++
@@ -9,7 +9,7 @@
git stash
fi;
-root_dir="/home/sch/Patches/git_backup"
+root_dir="/home/$USER/Patches/git_backup"
br_list=`git br`
current=`echo "$br_list" | grep "^\*" | awk '{print $2}'`
up_list=`echo "$br_list" | sed "s/[ *]//g" | grep -v "\-[0-9]\{10\}" | grep -v "^__"` | bash |
d_bash_7656 | ---
+++
@@ -4,6 +4,21 @@
# Assumed "cook" is called to run this script
[[ ! -z $HOMERECIPE_DIR ]] || { echo "\$HOMERECIPE_DIR is not found. Process exiting."; exit 1; }
+
+confirm() {
+ # call with a prompt string or use a default
+ read -r -p "${1:-Are you sure? [y/N]} " response
+ case "$response" in
+ [y... | bash |
d_bash_7657 | ---
+++
@@ -16,6 +16,6 @@
maven \
ack \
vim \
- ccat \
+ bat \
shellcheck
| bash |
d_bash_7658 | ---
+++
@@ -18,6 +18,9 @@
cp tests.ini ../halite.ini
python3 setupMysql.py || python setupMysql.py
+echo "Website tests"
+phpunit --stderr website/
+
echo "Worker tests"
cat ../halite.ini
cd worker | bash |
d_bash_7659 | ---
+++
@@ -10,7 +10,7 @@
cd /opt/stack
if [ ! -d ansible ]; then
- git clone git://github.com/ansible/ansible.git --recursive
+ git clone https://github.com/ansible/ansible.git --recursive
else
cd ansible
git pull --rebase | bash |
d_bash_7660 | ---
+++
@@ -4,9 +4,9 @@
#
set -e
-INFLUXDB_VERSIONS="1.3 1.2 1.1"
+INFLUXDB_VERSIONS="1.4 1.3 1.2 1.1"
-JAVA_VERSIONS="3-jdk-8 3-jdk-9"
+JAVA_VERSIONS="3-jdk-8-alpine 3-jdk-9-slim"
for java_version in ${JAVA_VERSIONS} | bash |
d_bash_7661 | ---
+++
@@ -1,27 +1,42 @@
-#!/bin/bash
+#!/bin/sh
-SERVER='localhost'
-PORT=11400
-./beanstalkd -p $PORT >/dev/null 2>/dev/null &
-bg=$!
+server=localhost
+port=11400
+tmpdir="$TMPDIR"
+test -z "$tmpdir" && tmpdir=/tmp
+tmpf="${tmpdir}/bnch$$"
+nc='nc -q 1'
+
+commands="$1"; shift
+expected="$1"; shift
+
+cleanup()... | bash |
d_bash_7662 | ---
+++
@@ -1,6 +1,10 @@
# Use `hub` as our git wrapper:
# https://hub.github.com/
-hub_path=$(which hub)
+if hash hub 2>/dev/null
+then
+ hub_path=$(which hub)
+fi
+
if (( $+commands[hub] ))
then
alias git=$hub_path | bash |
d_bash_7663 | ---
+++
@@ -4,6 +4,8 @@
echo "ERROR: uncommited changes exist"
exit 1
else
+ # Go to root of git
+ cd `git rev-parse --show-toplevel`
doxygen
git config merge.renameLimit 999999
echo "Adding docs to git"
@@ -14,7 +16,17 @@
git checkout gh-pages > /dev/null
echo "Applying docs to gh-pages"
g... | bash |
d_bash_7664 | ---
+++
@@ -5,6 +5,9 @@
virtualenv -p python2 ~/venvs/system-of-record
source ~/venvs/system-of-record/bin/activate
+if [ -d /usr/pgsql-9.3/bin ]; then
+ export PATH=$PATH:/usr/pgsql-9.3/bin
+fi
pip install -r requirements.txt
#Set environment variable in supervisord according to deploying environment (defau... | bash |
d_bash_7665 | ---
+++
@@ -1,2 +1,2 @@
# Execute tests
-nosetests -v test/QuickTestIM.py test/test_im_logic.py test/TestREST.py test/connectors/*.py test/SSH.py test/VMRC.py --with-timer --timer-no-color --with-xunit --with-coverage --cover-erase --cover-html --cover-package=IM
+nosetests -v test/unit/connectors/*.py test/unit/*.p... | bash |
d_bash_7666 | ---
+++
@@ -8,14 +8,14 @@
#############################
run_scenario() {
local port="$(amoc_container_port "$1")"
- local json_body='{ "users": '"$3"' , "settings" : { "test" : "<<\"test_value\">>" } }'
+ local json_body='{ "scenario": "'"$2"'", "users": '"$3"' , "settings" : { "test" : "<<\"test_value\"... | bash |
d_bash_7667 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/bash
+set -e
if [ ! -d "app" ]; then
innoextract -e setup_nwn_diamond_*.exe
fi | bash |
d_bash_7668 | ---
+++
@@ -5,18 +5,25 @@
export AWS_DEFAULT_REGION=us-east-1
VERSION=circle-${CIRCLE_SHA1}-$(date +%s)
-ARCHIVE=${VERSION}.zip
+FILE=${VERSION}-Dockerrun.aws.json
docker login -e $DOCKER_EMAIL -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker build -t jeffreycharles/number-switcher-3000:${VERSION} .
docker pus... | bash |
d_bash_7669 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-if [[ $TRAVIS_BRANCH == 'master' || $TRAVIS_BRANCH == 'develop']]
+if [[ $TRAVIS_BRANCH == 'master' || $TRAVIS_BRANCH == 'develop' ]]
then
mvn deploy --settings settings.xml -Prelease
fi | bash |
d_bash_7670 | ---
+++
@@ -15,7 +15,7 @@
GIT_REF=`jq -r '.gitRef' build-info.json` WAIT_DURATION=45000 APP_BASE_URL=http://csra-stage.hmpps.dsd.io/health yarn wait-for-deploy
# Run the E2E tests against STAGE
-APP_BASE_URL=http://csra-stage.hmpps.dsd.io yarn test:integration
+APP_BASE_URL=https://csra-stage.hmpps.dsd.io yarn te... | bash |
d_bash_7671 | ---
+++
@@ -7,9 +7,9 @@
export SITE_DIR=$PWD/dita-ot.github.io
#if [ "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "develop" ]; then
- # Clean target output directory before generating new output
- rm -rf "$SITE_DIR/dev/*"
- # Generate site output in /dev folder
+ # Remove target output directory bef... | bash |
d_bash_7672 | ---
+++
@@ -11,6 +11,7 @@
# Use spf13-vim
curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh;
rm spf13-vim.sh;
+ open ./init/
}
if [ "$1" == "--force" -o "$1" == "-f" ]; then | bash |
d_bash_7673 | ---
+++
@@ -7,7 +7,7 @@
source $VENVPATH/bin/activate;
cd /opt/dev_genoome/genoome/genoome/ && sudo git checkout -- . && \
git pull origin dev && \
-../node_modules/.bin/bower install && \
+../node_modules/.bin/bower install --cwd ../. && \
$GULPPATH --gulpfile ../gulpfile.js --cwd ../ dist:css dist:js && \
$PYP... | bash |
d_bash_7674 | ---
+++
@@ -7,7 +7,7 @@
sudo apt-get update
sudo apt-get -y upgrade
-sudo apt-get -y install curl subversion libcurl3 libcurl3-dev php5-curl gconf-editor zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev build-essential libruby1.9.1 libreadline-dev git-core git clang gnustep gnustep-devel terminator tmux vim zsh... | bash |
d_bash_7675 | ---
+++
@@ -4,8 +4,8 @@
currentDate=$(date +%F)
echo "Syncing db backups..."
-aws s3 sync /data/backup/db/automysqlbackup/daily/ "s3://droidwiki-backups/${currentDate}/db/" --no-progress --only-show-errors
+/usr/local/bin/aws s3 sync /data/backup/db/automysqlbackup/daily/ "s3://droidwiki-backups/${currentDate}/db... | bash |
d_bash_7676 | ---
+++
@@ -13,27 +13,20 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-#
-################################################################################
-#
-# (Re-)generates the... | bash |
d_bash_7677 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
-PYTHONPATH="$(pwd):$PYTHONPATH" .env/bin/python -OO -m protolint "$1" "$2"
+PYTHONPATH="$(pwd):$PYTHONPATH" python -OO -m protolint "$1" "$2" | bash |
d_bash_7678 | ---
+++
@@ -2,7 +2,7 @@
function generateTestReports() {
./gradlew -i testDebugUnitTest jacocoTestReport adapters:uploadCoverageToCodacy --console=plain
- cp -r adapters/build/test-results/testDebugUnitTest/debug/*.xml $CIRCLE_TEST_REPORTS && cp -r adapters/build/reports/tests/testDebugUnitTest $CIRCLE_TES... | bash |
d_bash_7679 | ---
+++
@@ -7,11 +7,8 @@
### 2 - BUILD API
./build-api.sh
-### 4 - START BABBAGE
+### 3 - START BABBAGE
export JAVA_OPTS="-Xmx512m -Xdebug -Xrunjdwp:transport=dt_socket,address=8010,server=y,suspend=n"
-
-#External Taxonomy
-#export TAXONOMY_DIR=target/content
# Restolino configuration
export RESTOLINO_STATI... | bash |
d_bash_7680 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
# Build!
-# The default command for `docker run fairphone2-build-env` is to build as
+# The default command for `docker run jftr/fairphone2-build-env` is to build as
# specified in thread
# https://forum.fairphone.com/t/compiling-fairphone-open-source/11600
# which is based ... | bash |
d_bash_7681 | ---
+++
@@ -18,23 +18,23 @@
# Targets
. test/targets/test_init.sh
-. test/targets/test_standard.sh
+# . test/targets/test_standard.sh
echo
assert_end Targets
-# C Tests
-. test/c/test_single-file.sh
-. test/c/test_multiple-file.sh
-. test/c/test_static-lib.sh
-. test/c/test_shared-lib.sh
-echo
-assert_end "C ... | bash |
d_bash_7682 | ---
+++
@@ -6,8 +6,7 @@
echo "======> Build Fat Library"
pwd
- #We don't put x86_64/ledger-core.framework/ledger-core otherwise we have a problem when pushing to AppStore
- lipo -create armv7/ledger-core.framework/ledger-core arm64/ledger-core.framework/ledger-core -o ledger-core
+ lipo -create armv7/ledger-cor... | bash |
d_bash_7683 | ---
+++
@@ -1,6 +1,18 @@
#!/bin/sh
#copy into the initrd with creating the parent directory first
set -e
+at_least_one=0
+for path in $@; do
+ if [ ! -e "$path" ]; then
+ echo "$path does not exist"
+ exit 1
+ fi
+ at_least_one=1
+done
+if [ "$at_least_one" == "0" ]; then
+ echo "Zero par... | bash |
d_bash_7684 | ---
+++
@@ -1,4 +1,5 @@
-#!/usr/bin/env bash -e
+#!/usr/bin/env bash
+set -e
database="laalaa"
psql $database --command='SELECT 1' >/dev/null 2>/dev/null || createdb --echo "$database"
psql $database --command='CREATE EXTENSION IF NOT EXISTS postgis;' | bash |
d_bash_7685 | ---
+++
@@ -1,4 +1,4 @@
-docker run -i --rm -p 4000:4000 -v "$PWD:/srv/jekyll" numascott/jekylldev:latest
+docker run -i --rm -p 4000:4000 -v "$PWD:/srv/jekyll" numascott/jekylldev:latest serve --incremental
# Breaking it down
| bash |
d_bash_7686 | ---
+++
@@ -7,4 +7,11 @@
gem install bundler
rbenv rehash
bundle install
-bin/ci
+
+echo ""
+echo ""
+echo "Ready to go! Run the following to get started:"
+echo ""
+echo "$ vagrant ssh"
+echo "$ cd /vagrant"
+echo "$ grunt" | bash |
d_bash_7687 | ---
+++
@@ -1,13 +1,12 @@
#!/bin/bash
-{{ #if bind.has_daemon }}
+SHIELD_ENDPOINT='{{cfg.shield_endpoint}}'
+SHIELD_API_TOKEN='{{cfg.provisioning_key}}'
+
{{ #each bind.daemon.members as |shield| }}
{{ #unless shield.follower }}
+# Overriding with values found in binding
SHIELD_ENDPOINT='https://{{shield.sys.ip... | bash |
d_bash_7688 | ---
+++
@@ -6,6 +6,7 @@
# nvim
stow nvim
+pip3 install --user neovim
nvim +PlugInstall +qall
# zsh | bash |
d_bash_7689 | ---
+++
@@ -12,4 +12,4 @@
exit 1
fi
-"$LPS_HOME"/WEB-INF/lps/server/bin/lzc --runtime=swf8 --output ../leftplayer/leftplayer.swf leftplayer.lzx
+"$LPS_HOME"/WEB-INF/lps/server/bin/lzc --runtime=swf8 --output ../leftplayer.swf leftplayer.lzx | bash |
d_bash_7690 | ---
+++
@@ -20,4 +20,4 @@
grakn/graql console -k pokemon -f grakn/examples/pokemon.gql
-sudo systemctl restart periodic-query
+sudo systemctl restart repeat-query | bash |
d_bash_7691 | ---
+++
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
+
+set -e
git clone https://${GITHUB_TOKEN}@github.com/psalm/phar.git > /dev/null 2>&1
cd phar | bash |
d_bash_7692 | ---
+++
@@ -18,8 +18,7 @@
ROOT=$(git rev-parse --show-toplevel)
EXIT_CODE=0
-EXCLUDE='^(dist/tools/)'
-FILES=$(FILEREGEX='\.h$' EXCLUDE=${EXCLUDE} changed_files)
+FILES=$(FILEREGEX='\.h$' changed_files)
# check files
for FILE in ${FILES}; do | bash |
d_bash_7693 | ---
+++
@@ -23,9 +23,9 @@
fi
if [ -n "$tag" ]; then
- ./sbt "set Base.dockerRegistry in (linkerd, Bundle) := \"${registry}\"" "linkerd/bundle:${docker_target}" \
- "set Base.dockerTag in (namerd, Bundle) := \"${registry}\"" "namerd/bundle:${docker_target}" \
- "set Base.dockerTag in (namerd, Dcos... | bash |
d_bash_7694 | ---
+++
@@ -4,6 +4,10 @@
cd /semitki/api
/semitki/ENV/bin/python /semitki/api/manage.py migrate --noinput
## uWSGI production app server
-/semitki/ENV/bin/newrelic-admin run-program /semitki/ENV/bin/uwsgi --ini /semitki/config/emperor.ini
+if [ "${SEMITKI_ENV}" = "production" ]; then
+ /semitki/ENV/bin/newrelic-a... | bash |
d_bash_7695 | ---
+++
@@ -8,8 +8,7 @@
DART_SDK_ZIP=dartsdk-linux-x64-release.zip
echo http://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/latest/sdk/$DART_SDK_ZIP
-curl -L http://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/latest/sdk
-/$DART_SDK_ZIP > $DART_SDK_ZIP
+curl -L http://storage.goo... | bash |
d_bash_7696 | ---
+++
@@ -22,7 +22,8 @@
mkdir $PACKAGE/lib && \
for q in \
libicui18n.so.51 libicuuc.so.51 libicudata.so.51 \
- libQt5Core.so.5 libQt5DBus.so.5 libQt5Gui.so.5 libQt5Widgets.so.5; do \
+ libQt5Core.so.5 libQt5DBus.so.5 libQt5Gui.so.5 libQt5Widgets.so.5 \
+ libQt5Network.so.5; do \
cp $QTDIR/lib/$q $PACKAG... | bash |
d_bash_7697 | ---
+++
@@ -15,3 +15,25 @@
docker rm -vf $(docker ps -a -q)
docker rmi -f $(docker images -a -q)
}
+
+# Browse Google Chrome history and open selected link in default browser.
+c() {
+ local cols sep
+ export cols=$(( COLUMNS / 3 ))
+ export sep='{::}'
+
+ cp -f ~/Library/Application\ Support/Google/Chrome... | bash |
d_bash_7698 | ---
+++
@@ -3,7 +3,7 @@
if [ ! -d CoreNLP ]
then
echo "Cloning and installing CoreNLP…"
- git clone git@github.com:stanfordnlp/CoreNLP.git
+ git clone https://github.com/stanfordnlp/CoreNLP.git
cd CoreNLP
ant compile
ant jar | bash |
d_bash_7699 | ---
+++
@@ -5,7 +5,8 @@
HISTSIZE=1000000
SAVEHIST=HISTSIZE
-[[ -s "/opt/local/bin" ]] && export PATH=/opt/local/bin:$PATH
+# MacPorts is uninstalled, so no need to add `/opt/local/bin` to $PATH
+# [[ -s "/opt/local/bin" ]] && export PATH=/opt/local/bin:$PATH
[[ -s "/usr/local/bin" ]] && export PATH=/usr/local/bi... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.