document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_21800 | ---
+++
@@ -3,7 +3,7 @@
VERSION=$(cat ./metadata/version.go | grep "var Version" | awk ' { print $4 } ' | sed s/\"//g)
COMMIT=$(git rev-parse --short HEAD)
-docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
+docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
docker build -t offe... | bash |
d_bash_21801 | ---
+++
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
if [[ -d "/home/linuxbrew/.linuxbrew" ]]; then
- export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
+ export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
- if type brew &>/dev/null; then
- eval "$(/... | bash |
d_bash_21802 | ---
+++
@@ -11,5 +11,4 @@
npm run test
npm run test:coverage
-exit 0
npm run docs | bash |
d_bash_21803 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/zsh
export PATH=$NDENV_ROOT/bin:$PATH
-export PATH=$PATH:$HOME/bin/npm/bin
+export PATH=$HOME/bin/npm/bin:$PATH
eval "$(ndenv init -)" | bash |
d_bash_21804 | ---
+++
@@ -23,7 +23,7 @@
# Since this is just an illustration, we will use the test ESAPI.properties in
# $esapi_resources_test. That way, it won't matter if the user has neglected
# to run the 'setMasterKey.sh' example before running this one.
-java -Dlog4j.configuration="$log4j_properties" \
+java -Dlog4j.confi... | bash |
d_bash_21805 | ---
+++
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
-cloc --unicode --exclude-dir=mininet,pox,OpenYuma,bgp-ls/netphony-topology,escape/doc ..
+cloc --unicode --exclude-ext=config,xml,json --exclude-dir=mininet,pox,OpenYuma,bgp-ls/netphony-topology,escape/doc .. | bash |
d_bash_21806 | ---
+++
@@ -4,7 +4,7 @@
KILLSECONDS=2700
export DISPLAY=":0.0"
-PERSON=$(who | grep ":0" | cut -d" " -f 1)
+PERSON=$(loginctl | awk '/seat0/ {print $3;exit}')
LOCKEDTIME=0
if pgrep -u "$PERSON" cinnamon-screen ; then #we check for the shotened name as that's what pgrep returns | bash |
d_bash_21807 | ---
+++
@@ -8,7 +8,10 @@
}
case $ocaml_version in
- 4.02.2)
+ 4.02.3)
+ build_js
+ ;;
+ 4.03.0)
build_js
;;
*) | bash |
d_bash_21808 | ---
+++
@@ -8,6 +8,6 @@
echo "Installing vbox guest additions"
apt-get install build-essential module-assistant &&
m-a prepare &&
-mount /media/cdrom
+mount /media/cdrom &&
sh /media/cdrom/VBoxLinuxAdditions.run
| bash |
d_bash_21809 | ---
+++
@@ -3,6 +3,7 @@
# Remove dependency cache otherwise file renames confuse autoconf
find . -type d -name \.deps | xargs rm -rf
+[ -d m4 ] || mkdir m4
autoreconf -v --install
./configure $@ | bash |
d_bash_21810 | ---
+++
@@ -8,9 +8,9 @@
cd $TEST_HOME/local/docker
./build_portal_image.sh
-MD5_ES_0=$(docker run --rm $BACKEND_PROJECT_USERNAME/cbioportal:$BACKEND_BRANCH sh -c 'find /cbioportal/core/src/test/scripts/test_data/study_es_0/ -type f -exec md5sum {} \; | md5sum | sed "s/\s.*$//"')
+MD5_ES_0=$(docker run --rm $BACKE... | bash |
d_bash_21811 | ---
+++
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
-echo 'license_results.rtf' | xargs perl -pi -w -e 's/ \d+ \w+ ago//g;'
+echo 'license_results.rtf' | xargs perl -pi -w -e 's/ (\d+|an?) \w+ ago//g;' | bash |
d_bash_21812 | ---
+++
@@ -4,7 +4,13 @@
HOOKS_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "Creating and registering symbolic links in .git/hooks..."
-rm -rf "$1/.git/hooks"
+if [[ -d "$1/.git/hooks" || -L "$1/.git/hooks" ]]; then
+ if [[ -d "$1/.git/hooksOLD" || -L "$1/.git/hooksOLD" ]]; then
+ rm -rf "$... | bash |
d_bash_21813 | ---
+++
@@ -1,6 +1,6 @@
git clone git://github.com/jedisct1/libsodium.git
cd libsodium
-git checkout tags/0.4.5
+git checkout tags/0.5.0
./autogen.sh
./configure
make && sudo make install | bash |
d_bash_21814 | ---
+++
@@ -24,6 +24,7 @@
{
for d in ${DIR[@]}
do
+ export ID=$( basename $d )
export MODEL=$( find $d -name "*.model.h5" )
export WEIGHTS=$( find $d -name "*.weights.h5" )
m4 -P < infer-template.json | fmt -w 1024 | bash |
d_bash_21815 | ---
+++
@@ -1,3 +1,41 @@
#!/bin/bash -v
apt-get update -y
-apt-get install -y nginx > /tmp/nginx.log
+apt-get install -y apache2 > /tmp/apache.log
+
+localhostname=$(curl -s http://169.254.169.254/latest/meta-data/local-hostname)
+instanceid=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
+launchin... | bash |
d_bash_21816 | ---
+++
@@ -11,3 +11,8 @@
[ -n "$BASH_VERSION" ] && \
"$(SHELL=/bin/sh lesspipe)" #assume Bash
fi
+
+# Disable default mapping of Ctrs+S to the old-fashioned XON/XOFF flow control
+# This mapping is used by the CommandT VIM plugin to open a selection in an
+# horizontal split
+stty -ixon -ixoff | bash |
d_bash_21817 | ---
+++
@@ -12,7 +12,7 @@
B2_FLAGS=""
else
BOOTSTRAP_FLAGS="--with-toolset=gcc"
-B2_FLAGS="toolset=gcc-4.9"
+B2_FLAGS="toolset=gcc-5.4"
fi
./bootstrap.sh ${BOOTSTRAP_FLAGS} --with-libraries=iostreams,filesystem,system --prefix=${INSTALL_DIR}
./b2 ${B2_FLAGS} link=static threading=multi runtime-link=shared cxxfl... | bash |
d_bash_21818 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-MINRATING="9.0"
+MINRATING="9.1"
SRC_FILES=`dirname $0`"/../faucet/[a-z]*.py"
| bash |
d_bash_21819 | ---
+++
@@ -6,12 +6,20 @@
SHARE=/usr/share/periscope
LOG=/var/log/blippd.log
-useradd -r ${USER} -d ${HOME}
+/usr/bin/getent group ${USER} || /usr/sbin/groupadd -r ${USER}
+/usr/bin/getent passwd ${USER} || /usr/sbin/useradd -r -d ${HOME} -s /sbin/nologin -g ${USER} ${USER}
+
if [ ! -d ${HOME} ]; then
mkdir... | bash |
d_bash_21820 | ---
+++
@@ -8,7 +8,10 @@
# docker)
# xz-utils: needed to unpack kernel source
# gawk: used by building glibc
-apt-get install -y texinfo texi2html xz-utils make gcc g++ gawk
+# rpm: rpmbuild to build rpm package
+# alien, fakeroot, debhelper: convert rpm package to debian package
+apt-get install -y texinfo texi2h... | bash |
d_bash_21821 | ---
+++
@@ -16,6 +16,7 @@
sed -i '
/^KUBELET_ADDRESS=/ s/=.*/="--address=0.0.0.0"/
/^KUBELET_HOSTNAME=/ s/=.*/="--hostname_override='"$myip"'"/
+/^KUBELET_API_SERVER=/ s/=.*/="--api_servers='"$KUBE_MASTER_IP"':8080"/
' /etc/kubernetes/kubelet
sed -i ' | bash |
d_bash_21822 | ---
+++
@@ -1,19 +1,20 @@
#!/bin/bash
-# This is temporary, but needed to checki out the needed patches for the new image build role.
+# This can be used when we need some temporary quick fix for CI while we wait for the change
+# to get merged upstream.
# We need it to happen before we get a node from cico so that... | bash |
d_bash_21823 | ---
+++
@@ -29,7 +29,7 @@
make setup
echo Compiling
-make
+make build
make lite
echo Testing | bash |
d_bash_21824 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-APP_BASE_ADDR='0x30000'
+APP_BASE_ADDR='0x40000'
TMPCONF=$(mktemp)
TMPAPP=$(mktemp) | bash |
d_bash_21825 | ---
+++
@@ -1,6 +1,8 @@
-#!/bin/sh -e
+#!/bin/sh
# Kicks off the Jenkins tests.
/opt/vagrant/bin/vagrant up
/opt/vagrant/bin/vagrant ssh -c 'cd /home/vagrant/dxr && make test'
-# Should we explicitly destroy the vagrant box here?
+RESULT=$?
+/opt/vagrant/bin/vagrant destroy --force || exit $?
+exit $RESULT | bash |
d_bash_21826 | ---
+++
@@ -2,5 +2,5 @@
input="$1"
base=`basename ${input%.*}`
-avconv -i "$input" -ac 1 -ar 44100 -codec:a libvorbis $2 sounds/$base.ogg
+avconv -i "$input" -vn -ac 1 -ar 44100 -codec:a libvorbis $2 sounds/$base.ogg
normalize-ogg sounds/$base.ogg | bash |
d_bash_21827 | ---
+++
@@ -4,7 +4,7 @@
REPO_BRANCH="${GIT_REF#refs/heads/}"
-git clone "https://${GH_TOKEN}@github.com/d-fischer/d-fischer.github.io.git" docRepo
+git clone "https://${GH_TOKEN}@github.com/${REPO_USER}/${REPO_USER}.github.io.git" docRepo
npm run docs -- --base-url / --repo-branch "${REPO_BRANCH}" --out-dir d... | bash |
d_bash_21828 | ---
+++
@@ -7,5 +7,5 @@
g c567 h13 s17
p 1 165 221 124865
EOF
-sudo bsdlabel -w -r md4 pan60
+sudo bsdlabel -w -r md4s1 pan60
sudo mdconfig -d -u 4 | bash |
d_bash_21829 | ---
+++
@@ -1,7 +1,27 @@
#!/bin/bash
+
+WAIT_SERVICE_READY=10
+
+function check_service(){
+ status=$($WORKDIR/control status)
+ echo $status | grep -q "stoped"
+ if [ $? -eq 0 ] ; then
+ return 1
+ else
+ return 0
+ fi
+}
+
tar -zxf $PACKDIR/$PACKFILE -C $WORKDIR
cp $CONFIGDIR/$CONFIGFILE $WORKDIR/rrd/... | bash |
d_bash_21830 | ---
+++
@@ -23,7 +23,7 @@
INCLUDES="-I$srcdir/libzerocash \
-I$srcdir/libzerocash/depinst/include \
-I$srcdir/libzerocash/depinst/include/libsnark" \
-CXX="g++ -std=c++11 -DUSE_ASM -DMONTGOMERY_OUTPUT -DCURVE_BN128 \
+CXX="g++ -std=c++14 -DUSE_ASM -DMONTGOMERY_OUTPUT -DCURVE_BN128 \
-DBN_SUPPORT_SNARK" \
L... | bash |
d_bash_21831 | ---
+++
@@ -11,5 +11,5 @@
docker-compose up -d
docker-compose exec chris_dev_db sh -c 'while ! mysqladmin -uroot -prootp status 2> /dev/null; do sleep 5; done;'
docker-compose exec chris_dev_db mysql -uroot -prootp -e 'GRANT ALL PRIVILEGES ON *.* TO "chris"@"%"'
-docker-compose exec chris_dev python manage.py migr... | bash |
d_bash_21832 | ---
+++
@@ -1,11 +1,6 @@
#!/bin/bash -e
-VERSION=3.0.0
-
-echo "================= Installing Redis 3.0 ==================="
-sudo wget http://download.redis.io/releases/redis-$VERSION.tar.gz
-sudo tar xzf redis-$VERSION.tar.gz && sudo rm -f redis-$VERSION.tar.gz
-cd redis-$VERSION
-make
-sudo ln -s $(pwd)/src/redi... | bash |
d_bash_21833 | ---
+++
@@ -29,7 +29,7 @@
DESTINATION=''
# Path to the logfile
-LOGFILE='var/log/duplicity.hourly.log'
+LOGFILE='/var/log/duplicity.hourly.log'
duplicity $ENCRYPTION $SOURCE $DESTINATION --log-file $LOGFILE
-duplicity $ENCRYPTION --remove-older-than $REMOVE_OLDER_THAN_TIME --force
+duplicity remove-older-t... | bash |
d_bash_21834 | ---
+++
@@ -15,6 +15,9 @@
export SCRIPT_DIR=$(cd `dirname $0` && pwd -P)
source $SCRIPT_DIR/functions
+if [ "4.8" != "latest" ]; then
+ export PUPPET_GEM_VERSION='~> 4.8.0'
+fi
prepare_environment
| bash |
d_bash_21835 | ---
+++
@@ -1,8 +1,9 @@
#!/bin/bash
BASEDIR=$(dirname $0)
+mkdir $BASEDIR/can
+git archive HEAD | tar -x -C $BASEDIR/can
+node_modules/.bin/http-server -p 8000 &
cd $BASEDIR
-../../node_modules/.bin/http-server -p 8000 &
-git clone ../../. can
git clone https://github.com/jupiterjs/funcunit.git
cd funcunit
git ... | bash |
d_bash_21836 | ---
+++
@@ -1,13 +1,13 @@
#!/bin/sh
echo "\033[1;81m Running test_time_stack_item...\033[0m"
-ruby -I../lib test_time_stack_item.rb || (echo "FAILED!!!!!!!!!!!!")
+ruby -I../lib:. test_time_stack_item.rb || (echo "FAILED!!!!!!!!!!!!")
echo "\033[1;81m Running test_timecop_without_date...\033[0m"
-ruby -I../lib... | bash |
d_bash_21837 | ---
+++
@@ -4,7 +4,7 @@
sbt dist
-cd steve-service
+cd steve-server
rm -rf dist
| bash |
d_bash_21838 | ---
+++
@@ -28,6 +28,9 @@
cat logs/screen-*.log
echo " === END: Catting screen process log files. ==="
+# Setup the virtualenv for the examples pack which is required for orquesta integration tests.
+st2 run packs.setup_virtualenv packs=examples
+
# This script runs as root on Travis which means other processes ... | bash |
d_bash_21839 | ---
+++
@@ -15,18 +15,20 @@
go get github.com/inconshreveable/gonative
# ---> Clone Go sources
+goVersion=$(go version | awk '{ print $3 }')
+
if [ ! -d "$PREFIX/go" ]; then
[ ! -d "$PREFIX" ] && mkdir -p "$PREFIX"
- cd "$PREFIX" && hg clone -u release https://code.google.com/p/go
+ cd "$PREFIX" && git clone h... | bash |
d_bash_21840 | ---
+++
@@ -1,11 +1,12 @@
#!/bin/sh
-ret=$(./test_DistArrayCtor 2>&1)
-if [ ret != 0 ]
+output=$(./test_DistArrayCtor 2>&1)
+ret=$?
+if [ $ret != 0 ]
then
exit 0
fi
-if [ ret == 0 ]
+if [ $ret == 0 ]
then
exit 1
fi | bash |
d_bash_21841 | ---
+++
@@ -2,21 +2,31 @@
set -e
+BRANCH_NAME='production'
+
+set +e
+git branch -D ${BRANCH_NAME}
+set -e
+
rm -rf lib
+rm -rf node_modules
npm version patch
-git checkout production
-git merge master
+git branch ${BRANCH_NAME}
+git checkout ${BRANCH_NAME}
+npm install
grunt build
+rm -rf node_modules
+n... | bash |
d_bash_21842 | ---
+++
@@ -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_21843 | ---
+++
@@ -9,7 +9,7 @@
fi
if [ -z "$GRAAL_FLAGS" ]; then
- GRAAL_FLAGS='-G:-TraceTruffleInlining -G:-TraceTruffleCompilation -G:+TruffleSplittingEnabled'
+ GRAAL_FLAGS='-G:-TraceTruffleInlining -G:-TraceTruffleCompilation -G:-TruffleSplittingEnabled'
if [ "$GRAAL_HOME" = "/Users/smarr/Projects/PostDoc/T... | bash |
d_bash_21844 | ---
+++
@@ -9,7 +9,6 @@
-o ${BBL_STATE_DIR}/bosh-deployment/jumpbox-user.yml \
-o ${BBL_STATE_DIR}/bosh-deployment/uaa.yml \
-o ${BBL_STATE_DIR}/bosh-deployment/credhub.yml \
- -o ${KD}/manifests/ops-files/use-github-cpi.yml \
-v subscription_id="${BBL_AZURE_SUBSCRIPTION_ID}" \
-v client_id="${B... | bash |
d_bash_21845 | ---
+++
@@ -13,3 +13,7 @@
--name=tmpnb \
-v /var/run/docker.sock:/docker.sock jupyter/tmpnb python orchestrate.py \
--image=dietmarw/notebook
+
+# This adds a reroute to port 80 (needs root privileges)
+iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000
+iptables -t na... | bash |
d_bash_21846 | ---
+++
@@ -2,8 +2,8 @@
source ../../../configure_paths.sh
-
echo
echo "MKLDNN VGG"
-g++ -std=c++11 -fopenmp -I${MKL_PREFIX}/include -L${MKL_PREFIX}/lib vgg_block_generator_mkldnn.cpp -lmkldnn -o vggBlock_mkldnn_result
+
+g++ -std=c++11 -I${MKL_PREFIX}/include -L${MKL_PREFIX}/lib vgg_block_generator_mkldnn.cpp... | bash |
d_bash_21847 | ---
+++
@@ -1,14 +1,17 @@
#!/bin/bash
-
-export base=$(readlink -f $(dirname $0)/..)
+export scripts="$(dirname $0)/.."
+export base=$(readlink -f $scripts)
+export tests=$(readlink -f $scripts/tests)
export PYTHONPATH=$base
echo "base=$base"
+echo "tests=$tests"
echo "PYTHONPATH=$PYTHONPATH"
+
+cd $tests
te... | bash |
d_bash_21848 | ---
+++
@@ -23,6 +23,7 @@
-H "Content-Type: $content_type" \
-H "$acl" \
-H "Authorization: AWS ${AWS_ACCESS_KEY_ID}:$signature" \
+ --verbose \
"$url$path$dest"
}
| bash |
d_bash_21849 | ---
+++
@@ -1,8 +1,14 @@
#!/bin/bash -x
+
+sudo fuser -m `pwd`/build
# Only attempt to unmount if the directory is already mounted
if mountpoint -q `pwd`/build; then
- sudo umount build
+ sudo umount `pwd`/build
fi
+sudo fuser -m `pwd`/build
+
+ps -ef
+
exit 0 | bash |
d_bash_21850 | ---
+++
@@ -16,7 +16,7 @@
popd
fi
-which unsquash || sudo apt-get install -y squashfs-tools autoconf
+which unsquashfs || sudo apt-get install -y squashfs-tools autoconf
pushd /vagrant
./autogen.sh && ./configure && make BUILDDIR=build-rkt | bash |
d_bash_21851 | ---
+++
@@ -5,9 +5,10 @@
echo "Usage: $0 <source-dir> <build-dir>" >&2
}
+# Parse arguments
if [ $# -eq 2 ]; then
- SOURCE_DIR=$(realpath $1)
- BUILD_DIR=$(realpath $2)
+ SOURCE_DIR="$1"
+ BUILD_DIR="$2"
elif [[ $# -eq 1 && ( "$1" = "-h" || "$1" = "--help" )]]; then
usage
exit 0
@@ -17... | bash |
d_bash_21852 | ---
+++
@@ -3,5 +3,5 @@
# Navigate to the "backup" directory of the application
cd /root/.literacyapp/backup_prod/
-# Remove files older than 14 days
-find database -type f -mtime +13 -exec rm {} \;
+# Remove files older than 30 days
+find database -type f -mtime +29 -exec rm {} \; | bash |
d_bash_21853 | ---
+++
@@ -6,5 +6,5 @@
for ix in ${!SERVERS[*]}
do
printf "......................\nConnecting to %s...\n" "${SERVERS[$ix]}"
- rsync -avzl -e "ssh -i ${KEYPATH}" --exclude ".git" ${PACKAGE} ubuntu@${SERVERS[$ix]}:${REMOTEDIR}
+ rsync -avzl -e "ssh -i ${KEYPATH}" --delete --exclude ".git" ${PACKAGE} ubunt... | bash |
d_bash_21854 | ---
+++
@@ -12,6 +12,7 @@
}
apollo_launch() {
+ install_contributed_roles
vagrant up --provision
open_urls
} | bash |
d_bash_21855 | ---
+++
@@ -22,6 +22,7 @@
echo "Check everything is correct and publish to npm"
echo "cd $BUILD && npm publish"
echo
-echo "cd ../..; rm -rf $BUILD && npm publish && buildtools/publish-website.sh"
+echo "cd ../.. && rm -rf $BUILD && npm publish && buildtools/publish-website.sh"
+echo "git tag v$VERSION && git --ta... | bash |
d_bash_21856 | ---
+++
@@ -4,7 +4,7 @@
shopt -s nullglob
if [ $# -eq 0 ]; then
- for x in ${APP_ROOT}/docker/pre_deploy.d/*; do
+ for x in ${APP_ROOT}/docker/pre-deploy.d/*; do
if [ -x "${x}" ]; then
echo "-----> Running ${x}"
"${x}"
@@ -21,14 +21,14 @@
fi
fi
/etc/deploy/run.py
- for x in ${APP_ROOT}/docker/po... | bash |
d_bash_21857 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/bash
+cd ..
+source ejrf_env/bin/activate
+cd ejrf
cp eJRF/GO/go-settings.py eJRF/localsettings.py
./manage.py harvest | bash |
d_bash_21858 | ---
+++
@@ -8,4 +8,8 @@
wget http://mirrors.kernel.org/ubuntu/pool/main/l/lz4/liblz4-dev_0.0~r131-2ubuntu2_amd64.deb -O liblz4-dev.deb
sudo dpkg -i liblz4.deb liblz4-dev.deb
+# ccache doesn't come with symlink for clang, create them manually
+sudo ln -sf $(which clang) /usr/lib/ccache/clang
+sudo ln -sf $(which c... | bash |
d_bash_21859 | ---
+++
@@ -30,9 +30,12 @@
bash -c "
cd "${SRC_DIR}" &&
make configure &&
- ./configure --prefix="${DEST_DIR}" CC='gcc -m${TARGET_ARCH}' &&
+ export NO_INSTALL_HARDLINKS='true'; ./configure --prefix="${DEST_DIR}" CC='gcc -m${TARGET_ARCH}' &&
make &&
make install
"
# done
+
+# Package
+#... | bash |
d_bash_21860 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
# the output filename
-OUTPUT_FILE=$WORKSPACE+"version.properties"
+OUTPUT_FILE="$WORKSPACE/opencms/version.properties"
OPENCMS_VERSION_NUMBER="9.5.x"
OPENCMS_BUILD_NUMBER=$OPENCMS_BUILD_NUMBER | bash |
d_bash_21861 | ---
+++
@@ -5,7 +5,7 @@
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPO_DIR=$(dirname "$SCRIPT_DIR")
OUT_DIR="${SCRIPT_DIR}/out"
-IMAGE='registry.spin.nersc.gov/metatlas_test/metatlas_ci01:v1.2.0'
+IMAGE='registry.spin.nersc.gov/metatlas_test/metatlas_ci01:v1.3.0'
PORT=8888
... | bash |
d_bash_21862 | ---
+++
@@ -9,9 +9,14 @@
[ -f /usr/share/git-core/contrib/completion/git-prompt.sh ] && . /usr/share/git-core/contrib/completion/git-prompt.sh
[ -r /etc/bash_completion.d/git ] && . /etc/bash_completion.d/git
+
+source /usr/local/etc/bash_completion.d/git-prompt.sh
+[ -r /usr/local/etc/bash_completion.d/git-compl... | bash |
d_bash_21863 | ---
+++
@@ -18,7 +18,7 @@
# It will compile bazel from source and install it in /usr/local/bin
# Select bazel version.
-BAZEL_VERSION="0.18.0"
+BAZEL_VERSION="0.20.0"
set +e
local_bazel_ver=$(bazel version 2>&1 | grep -i label | awk '{print $3}') | bash |
d_bash_21864 | ---
+++
@@ -13,7 +13,7 @@
echo "Setting up project: $PROJECT_NAME"
# list of all files that contain template code for project setup
-files=( conf/entrypoint.sh conf/supervisor.intranet.conf conf/uwsgi.ini docker-compose.yml Dockerfile project_dir/urls.py project_dir/settings.py project_dir/wsgi.py project_dir/tem... | bash |
d_bash_21865 | ---
+++
@@ -10,7 +10,7 @@
DOCKER_DOWNLOAD_URL="https://master.dockerproject.org/linux/amd64/docker"
else
DOCKER_VERSION=${VERSION}
- DOCKER_DOWNLOAD_URL="https://test.docker.com/builds/Linux/x86_64/docker-${VERSION}"
+ DOCKER_DOWNLOAD_URL="https://test.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}"... | bash |
d_bash_21866 | ---
+++
@@ -16,11 +16,13 @@
if [[ -e ~/src/python/tweets_analyzer/secrets.py ]]; then
if grep xxxxxxxxxxxxxx ~/src/python/tweets_analyzer/secrets.py > /dev/null ; then
if [[ ! -z "$TWITTER_CONSUMER_KEY" && ! -z "$TWITTER_CONSUMER_SECRET" \
- && ! -z "$TWITTER_ACCESS_TOKEN" && ! -z "$TWITTER_... | bash |
d_bash_21867 | ---
+++
@@ -18,5 +18,11 @@
echo -e "\tgit checkout $TRAVIS_BRANCH"
echo -e "\tgit-clang-format --commit $BASE_COMMIT --diff --binary $(which clang-format)"
echo "$RESULT_OUTPUT"
+
+ echo -e "\n\nPlease apply the code formatting changes without bloating the history."
+ echo -e "\tConsider running:"
+ echo ... | bash |
d_bash_21868 | ---
+++
@@ -4,12 +4,17 @@
BRANCH_NAME='latest'
+set +e
+git branch -d ${BRANCH_NAME}
+set -e
+
+git branch ${BRANCH_NAME}
+
rm -rf lib
rm -rf node_modules
npm version patch
git checkout ${BRANCH_NAME}
-git merge master
npm install
grunt build
@@ -18,7 +23,7 @@
git add -f lib/
git add -f node_modules/... | bash |
d_bash_21869 | ---
+++
@@ -9,7 +9,8 @@
# Updates the last directory once directory is changed.
function chpwd() {
- echo "$PWD" > "$cache_file"
+ # Use >! in case noclobber is set to avoid "file exists" error
+ echo "$PWD" >! "$cache_file"
}
# Changes directory to the last working directory. | bash |
d_bash_21870 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/bash
+
+#http://stackoverflow.com/a/6673798/316108
+mydir=$(dirname "$0") && cd "${mydir}" || exit 1
./rename.sh FI9821W_00626E52CB82 front-door
./rename.sh FI9821W_00626E52CB67 living-room | bash |
d_bash_21871 | ---
+++
@@ -4,10 +4,11 @@
pwd >| $currentDirFile
}
-if [[ -f "$currentDirFile" ]]; then
+# INSIDE_NAUTILUS_PYTHON is defined when opening terminal from Nautilus. In that
+# case don't change dir
+if [[ -z "${INSIDE_NAUTILUS_PYTHON+defined}" && -f "$currentDirFile" ]]; then
local dir="$(<$currentDirFile)"... | bash |
d_bash_21872 | ---
+++
@@ -4,7 +4,7 @@
LOGS_DIR=logs
HOST=http://localhost:8000/
-WORKLOAD_DIR=workload
+WORKLOAD_DIR=$PWD/workload
while getopts "l:h:" opt; do
case $opt in | bash |
d_bash_21873 | ---
+++
@@ -1,3 +1,4 @@
+mkdir ~/wpilib
echo "version=current\nteam-number=4761" > ~/wpilib/wpilib.properties
wget https://gist.githubusercontent.com/simon-andrews/0127707da461e543cb76/raw/dl_wpilibjars.py
python3 dl_wpilibjars.py --dest ~/wpilib/java/current --members ant/ant-classloadertask.jar \ | bash |
d_bash_21874 | ---
+++
@@ -15,6 +15,6 @@
. .envrc
echo -e "\n building artifact..."
- go build -ldflags "-X main.version ${version}" -o "out/s3-${version}-linux-amd64" s3cli/s3
+ go build -ldflags "-X main.version ${version}" -o "out/s3-${semver}-linux-amd64" s3cli/s3
popd > /dev/null
| bash |
d_bash_21875 | ---
+++
@@ -9,7 +9,7 @@
mkdir -p $OUTPUT_DIR/$tag/
cp -rf build/html/* $OUTPUT_DIR/$tag/
- epydoc -o $API_TEMP --html --graph=all -n Molly -u http://mollyproject.org/ --no-private ../molly/
+ $PYTHON `which epydoc` -o $API_TEMP --html --graph=all -n Molly -u http://mollyproject.org/ --no-private... | bash |
d_bash_21876 | ---
+++
@@ -1,9 +1,4 @@
#!/bin/bash
-if [ -z $TRAVIS_TAG ] || [ -n $PYTHONASYNCIODEBUG ] || [ -n $AIOHTTP_NO_EXTENSIONS ]
-then
- exit 1
-fi
-
package_name="$1"
if [ -z "$package_name" ]
then | bash |
d_bash_21877 | ---
+++
@@ -14,6 +14,7 @@
done
dotfile+=("$HOME/dotfiles/.vim")
+dotfile+=("$HOME/dotfiles/.zsh")
# Make Synbolic-link
for n in ${dotfile[@]}; do | bash |
d_bash_21878 | ---
+++
@@ -24,5 +24,7 @@
git config --global core.excludesfile ~/.gitignore_global
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
git config --global alias.tree "log --graph --decorate --pretty=oneline --abbrev-commit"
+git config --global rebase.autoStash true true
+git config --global remot... | bash |
d_bash_21879 | ---
+++
@@ -3,7 +3,7 @@
#
alias phpspec='./vendor/bin/phpspec'
alias phpunit='./vendor/bin/phpunit'
-alias phpstan='./vendor/bin/phpstan'
+alias phpstan='php -d memory_limit=2G ./vendor/bin/phpstan'
alias phpcs='./vendor/bin/phpcs'
alias phpcbf='./vendor/bin/phpcbf'
alias sail='./vendor/bin/sail' | bash |
d_bash_21880 | ---
+++
@@ -10,6 +10,15 @@
cabal sdist
+# Generate Idris library docs and put them in lib_docs.tar.gz in the root
+make lib_doc
+DOCDIR=`mktemp -d /tmp/docsXXXXX`
+cp -r libs/base/base_doc "$DOCDIR"
+cp -r libs/prelude/prelude_doc "$DOCDIR"
+cp -r libs/effects/effects_doc "$DOCDIR"
+cp -r libs/contrib/contrib_do... | bash |
d_bash_21881 | ---
+++
@@ -1,7 +1,7 @@
echo Start Prestashop
-composer install --prefer-dist --no-interaction --no-progress
+composer install --prefer-dist --no-interaction --no-progress --no-dev
bash tests/check_file_syntax.sh
bash travis-scripts/install-prestashop
| bash |
d_bash_21882 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash -e
#build deb packages
-VERSION=`git describe --abbrev=0 --tags`
+VERSION=`head meson.build | sed "/version :/!d; /meson/d; s/,//; s/'//g;" | awk -F ':' '{print $2}'`
rm -rf build/
mkdir -p build && pushd build
ln -s ../* . | bash |
d_bash_21883 | ---
+++
@@ -3,7 +3,7 @@
# defaults to ${PICLE_HOME}/config.
################################################################################
MASTER_NODE="pi-0"
-CLUSTER_MEMBERS="${PICLE_HOME}/cluster-members.txt"
+CLUSTER_MEMBERS="${PICLE_HOME}/config/cluster-members.txt"
USER_HOME_DIR="/srv/nfs/${MASTER_NODE}/ho... | bash |
d_bash_21884 | ---
+++
@@ -15,6 +15,7 @@
echo "Current python: `which python`"
echo "Installing python packages..."
+pip2 install --user neovim
if [ -x $CONFIGS_DIR/python_local.sh ]; then
$CONFIGS_DIR/python_local.sh | bash |
d_bash_21885 | ---
+++
@@ -1,10 +1,9 @@
#!/bin/bash
+set -e
-# Migrate the database
-exec /go/bin/example-api migrate
-
-# Load fixtures
-exec /go/bin/example-api loaddata \
+# Migrate database and load fixtures
+/go/bin/example-api migrate
+/go/bin/example-api loaddata \
oauth/fixtures/scopes.yml \
accounts/fixtures/roles... | bash |
d_bash_21886 | ---
+++
@@ -30,7 +30,7 @@
java -jar jsrun.jar app/run.js -c=conf/$MODE.conf -D="renderMode:$MODE"
cd ..
-if [ $MODE == "docs" ]
+if [ $MODE = "docs" ]
then
# Build paper.js library for documentation
./preprocess.sh stripped ../src/paper.js ../dist/docs/resources/js/paper.js\ | bash |
d_bash_21887 | ---
+++
@@ -2,3 +2,4 @@
version=$(cat manifest.json | awk '/"version"/ { gsub(/[",]/,""); print $2 }')
zip -r scumdar-$version.zip . -x chrome-release.sh .git/\* README.md
+git tag scumdar-$version | bash |
d_bash_21888 | ---
+++
@@ -10,7 +10,8 @@
goversion=$(go version)
if [[ "$goversion" == *"go1.5"* ]] ||
[[ "$goversion" == *"go1.6"* ]] ||
- [[ "$goversion" == *"go1.7"* ]]; then
+ [[ "$goversion" == *"go1.7"* ]] ||
+ [[ "$goversion" == *"go1.8"* ]]; then
echo "Skipping tests requiring Consul which is not supported ... | bash |
d_bash_21889 | ---
+++
@@ -3,6 +3,7 @@
# list all directories, cd into each, run `git pull`
# `find` lists only directories
+# `find ... -print0 | xargs -0 ...` is because of https://github.com/koalaman/shellcheck/wiki/SC2038
# -`I %` replaces `%` with the argument in `sh -c`
-find . -type d -mindepth 1 -maxdepth 1 | xargs -... | bash |
d_bash_21890 | ---
+++
@@ -3,25 +3,24 @@
TMP_DIR="$(mktemp -d)"
readonly PROGDIR="$(cd "$(dirname "${0}")" && pwd)"
+readonly EXAMPLEDIR="$(dirname ${PROGDIR})"
function main() {
+ local zip_file
+ zip_file="/tmp/example-runtime-config-product-1.0.0.pivotal"
+
mkdir -p ${TMP_DIR}/metadata
cp -r ${PROGDIR}/migrations ... | bash |
d_bash_21891 | ---
+++
@@ -1,6 +1,12 @@
-# Called by ~.zshenv
+# Intended to be called by ~.zshenv at the end.
here=$(readlink -f $0)
+
+# XXX This is in the wrong place
+# Load and run compinit
+autoload -U compinit
+compinit -i -d ~/.zcompdump
+
# List of files sourced in this environment.
typeset -A SOURCED=($0)
@@ -12,8 ... | bash |
d_bash_21892 | ---
+++
@@ -1,17 +1,4 @@
#!/bin/bash
-
-# We may move this update bit to CircleCI or Travis with Cron later, but for now we just trigger updates on every build.
-git config user.name "hugo-themebuilder"
-git config user.email "hugo-themebuilder@gohugo.io"
-git submodule update --remote --merge
-if ! git diff-index -... | bash |
d_bash_21893 | ---
+++
@@ -1,19 +1,15 @@
- #!/bin/bash
+#!/bin/bash
set -o errexit
-apt-get update && apt-get install git-core python-rpi.gpio
+apt-get update && apt-get install git-core python-rpi.gpio nodered
npm install -g npm@2.x
npm cache clean -f
npm install -g n
n stable
hash -r
-npm i -g -unsafe-perm node-red
+# npm i... | bash |
d_bash_21894 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
-sudo xcode-select -s /Applications/Xcode_11.4.app/Contents/Developer
+sudo xcode-select -s /Applications/Xcode_11.5.app/Contents/Developer | bash |
d_bash_21895 | ---
+++
@@ -1,13 +1,16 @@
#!/bin/bash
sudo apt-get update
-sudo apt-get -y install wget unzip
+sudo apt-get -y install wget unzip curl
if ! pip --help > /dev/null
then
echo "# Installing pip"
curl https://bootstrap.pypa.io/get-pip.py | sudo python
fi
+
+sudo pip install httpie
+sudo pip install vir... | bash |
d_bash_21896 | ---
+++
@@ -13,3 +13,31 @@
# git clone https://github.com/wbond/sublime_package_control.git "Package Control"
# cd "Package Control"
# git checkout python3
+
+# ## Sublime Text 3 Packages
+# - package control
+# - https://packagecontrol.io/installation#st3
+# - autocomplete
+# - https://github.com/alienhard/Su... | bash |
d_bash_21897 | ---
+++
@@ -4,12 +4,11 @@
CF_RELEASE_BRANCH=${CF_RELEASE_BRANCH:-master}
if [ ! -d cf-release ]; then
- git clone --depth 1 ${CF_RELEASE_URL}
+ git clone --depth 1 -b ${CF_RELEASE_BRANCH} ${CF_RELEASE_URL}
fi
(
cd cf-release
- git checkout -b ${CF_RELEASE_BRANCH}
./update
bosh -n creat... | bash |
d_bash_21898 | ---
+++
@@ -1 +1 @@
-gzip -cd *_R3.fastq.* | head -1000000 | awk 'NR == 2 || NR % 4 == 2' | grep -v N | sort | uniq -c | sort -nr | head > sample_barcodes.log
+gzip -cd *_R3.fastq.* | head -1000000 | awk 'NR == 2 || NR % 4 == 2' | grep -v N | sort | uniq -c | sort -nr | head -n 24 > sample_barcodes.log | bash |
d_bash_21899 | ---
+++
@@ -16,4 +16,4 @@
sleep 5
done
-/usr/local/sbin/ntpd -s -f /var/etc/ntpd.conf
+/usr/local/sbin/ntpd -g -c /var/etc/ntpd.conf | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.