document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_10300 | ---
+++
@@ -1,8 +1,18 @@
#!/bin/bash
-php -l ./src/**/*.php
-php -l ./spec/**/*.php
+# PHP Lint
+for i in $(find ./src ./spec -name '*.php'); do
+ php -l "$i"
+done
+
+# PHP Code Sniffer
./vendor/bin/phpcs --standard=./build/phpcs.xml ./src
+
+# PHP Mess Detector
./vendor/bin/phpmd ./src text ./build/phpmd.xm... | bash |
d_bash_10301 | ---
+++
@@ -22,7 +22,12 @@
args+=" --prune"
fi
+# --sshlogin 4/sh --sshlogin 2/lap \
+# -j4 \
+
+
seq "${start_idx//,/}" "${end_idx//,/}" | \
- parallel --ungroup --sshlogin 4/sh --sshlogin 2/lap \
+ parallel --ungroup \
+ -j4 \
--max-args 16 \
perl "$(pwd)"/summarize.pl $args {} | bash |
d_bash_10302 | ---
+++
@@ -8,7 +8,7 @@
# StumpWM package, use the second line.
#stump_pid="$(pgrep -a -n stumpwm)"
-stump_pid="$(pgrep -anf -U "$(id -u)" "sbcl .*/stumpwm/load.lisp")"
+stump_pid="$(pgrep -anf -U "$(id -u)" "sbcl .*(stumpwm:stumpwm)")"
# while stumpwm is still running
while kill -0 "$stump_pid" > /dev/null 2... | bash |
d_bash_10303 | ---
+++
@@ -6,7 +6,6 @@
. "$pwd/common.sh"
MACKEREL_AGENT_NAME=${MACKEREL_AGENT_NAME:-mackerel-agent}
-MACKEREL_AGENT_VERSION=$(grep -o -e "[0-9]\+.[0-9]\+.[0-9]\+-[0-9]" packaging/deb/debian/changelog | head -1 | sed 's/-.*$//')
BUILD_DIRECTORY=${BUILD_DIRECTORY:-build}
orig_dir="packaging/deb"
@@ -16,6 +15,... | bash |
d_bash_10304 | ---
+++
@@ -5,10 +5,10 @@
mvn clean verify \
--errors \
- -P fork
+ -P fork,noDefaultMethods
mvn clean verify \
--errors \
- -P fork,noDefaultMethods
+ -P fork
# The Maven plugin's minimum requirement is Java 6,
# but then the plugin must force forking the process
@@ -21,20 +21,20 @@
... | bash |
d_bash_10305 | ---
+++
@@ -17,7 +17,7 @@
pkg update
pkg install -y \
- editors/vim-lite \
+ editors/vim-console \
devel/git \
devel/gmake \
lang/go \ | bash |
d_bash_10306 | ---
+++
@@ -1,10 +1,10 @@
#!/usr/bin/env sh
if [ "$1" = "keep" ]; then
- file=$(</tmp/.sway-current-bg)
+ file=$(</tmp/.sway-current-bg-$USER)
swaymsg "output * bg ~/Pictures/wallpapers/$file fill"
else
ls ~/Pictures/wallpapers | sort -R | head -1 | while read file; do
swaymsg "output * bg ~/Pictures/wallpa... | bash |
d_bash_10307 | ---
+++
@@ -10,7 +10,7 @@
testquery="${top_builddir}/tests/testquery"
if [ -n "$USE_VALGRIND" ] && (type valgrind 1>/dev/null)
then
- output="`valgrind -q --trace-children=yes --error-exitcode=1 "$testquery" $arguments`"
+ output="`libtool --mode=execute valgrind -q --error-exitcode=1 "$testquery" $arguments`"
el... | bash |
d_bash_10308 | ---
+++
@@ -6,4 +6,4 @@
echo "sending [public] to [$HOST]"
-scp -r public deploy@$HOST:public
+rsync -av --delete public deploy@$HOST:public | bash |
d_bash_10309 | ---
+++
@@ -10,7 +10,7 @@
case "$cmd" in
feature)
if [ "$line" = "$cmd $cur" ]; then
- words="switch start finish stashes list merge pull status"
+ words="switch start finish stashes list merge pull status clean"
else
# get branch names minus hotfixes
words="$... | bash |
d_bash_10310 | ---
+++
@@ -9,6 +9,7 @@
# sudo puppet module install gajdaw-symfony
#
+sudo puppet module install gajdaw-diverse_functions --version 0.1.1 --force
sudo puppet module install gajdaw-symfony --force --version 0.3.0
sudo puppet module install gajdaw-environment --force --version 0.1.2
sudo puppet module insta... | bash |
d_bash_10311 | ---
+++
@@ -19,7 +19,9 @@
# for glusterfs
$SUDO yum install -y glusterfs-api glusterfs-api-devel
# for ceph
- $SUDO yum install -y librados2 librados2-devel librbd1 librbd-devel
+ $SUDO yum install -y librados2 librados2-devel librbd1
+ yum search librbd-devel | grep -q "N/S matched" && LIBRBD=librbd || L... | bash |
d_bash_10312 | ---
+++
@@ -1,3 +1,4 @@
+set -ex
export CHROME_BIN=chromium-browser
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start | bash |
d_bash_10313 | ---
+++
@@ -1,4 +1,4 @@
playlist_id=PLMHbQxe1e9MnKML-TIf8JAEOf9xq4Cc-Q
default_repo=depot
github_user=Byron
-privacy=public
+privacy=private | bash |
d_bash_10314 | ---
+++
@@ -20,7 +20,7 @@
exit
fi
-if [[ "$DIST" != "maverick" && "$DIST" != "natty" ]]; then
+if [[ "$DIST" != "maverick" && "$DIST" != "natty" && "$DIST" != "oneiric" ]]; then
echo "Your distribution $DIST is not supported."
exit
fi | bash |
d_bash_10315 | ---
+++
@@ -8,7 +8,7 @@
# loading common functions
source /opt/kolla/kolla-common.sh
-# config-internal script exec out of this function, it does not return here
+# Execute config strategy
set_configs
# loading functions | bash |
d_bash_10316 | ---
+++
@@ -11,7 +11,7 @@
stop() {
echo "Stopping $prog..."
- kill -TERM $(< $prog.pid)
+ kill -TERM $(cat $prog.pid)
rm -f $prog.pid
}
@@ -19,7 +19,8 @@
echo "Status $prog:"
if [ -f "$prog.pid" ]
then
- if [[ "$(ps -ef | grep $(< $prog.pid) | grep -v 'grep')" != "" ]];then... | bash |
d_bash_10317 | ---
+++
@@ -1,13 +1,18 @@
#!/usr/bin/env bash
rev=$(git rev-parse --short HEAD)
+remote_url="https://user:${GH_TOKEN}@github.com/in6pio/Incipio.git"
cd dist
git init
git config user.name "TravisBot"
git config user.email "travisbot@incipio.fr"
-git rm origin
-git add origin https://user:${GH_TOKEN}@github.c... | bash |
d_bash_10318 | ---
+++
@@ -9,6 +9,4 @@
# Description: Mount the devtmpfs file system..
### END INIT INFO
-if [ -e /dev ] && grep -q devtmpfs /proc/filesystems; then
- mount -t devtmpfs devtmpfs /dev
-fi
+mount -t devtmpfs devtmpfs /dev | bash |
d_bash_10319 | ---
+++
@@ -1,4 +1,4 @@
pip install django
-django-admin.py startproject --template=https://github.com/bretth/django-pavlova-project/zipball/master --extension=py,rst,html,json $1
-pip install -r $1/requirements/dev.txt
-python $1/manage.py syncdb --noinput
+django-admin.py startproject --template=https://github.com... | bash |
d_bash_10320 | ---
+++
@@ -10,9 +10,6 @@
git init
-# Copy examples/ and push into go-ovirt repository
-cp -r ./sdk/examples ./
-
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis CI"
| bash |
d_bash_10321 | ---
+++
@@ -15,6 +15,6 @@
if [ "$(uname)" == "Linux" ]; then
echo "Trying to run Linux Test"
- PREOUTPUT=$( DISPLAY=localhost:1.0 xvfb-run -a bash -c "gpi --help")
+ PREOUTPUT=$( DISPLAY=localhost:1.0 xvfb-run -a bash -c "gpi ----nogui repo_contents/testNets/TestNetwork.net")
echo "Ran Test"
fi | bash |
d_bash_10322 | ---
+++
@@ -6,18 +6,20 @@
export HIMAN="../../himan-bin/build/release/himan"
fi
-#rm -f RHO-KGM3*.grib ABS*.grib
+rm -f R*.grib
-$HIMAN -d 4 -f absolute_humidity_harmonie.json -t grib harmonie_p_source.grib harmonie_t_source.grib harmonie_rain_source.grib harmonie_snow_source.grib harmonie_graupel_source.grib
... | bash |
d_bash_10323 | ---
+++
@@ -9,6 +9,9 @@
"event": {
"dynamic": false,
"properties": {
+ "timestamp": {
+ "type": "date"
+ },
"uuid" : {
"type": "string",
"fields": { | bash |
d_bash_10324 | ---
+++
@@ -7,6 +7,9 @@
exit 1;
}
+# if no python specified, use Travis version, or else 3.6
+PYTHON_VERSION=${PYTHON_VERSION:-${TRAVIS_PYTHON_VERSION:-3.6}}
+
if [[ $* != *--global* ]]; then
ENVNAME="testenv"
@@ -14,7 +17,7 @@
then
echo "Environment ${ENVNAME} already exists, keeping up t... | bash |
d_bash_10325 | ---
+++
@@ -1,6 +1,5 @@
git clone https://github.com/BVLC/caffe.git
cd caffe
-git checkout dev
# Dependencies
sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev | bash |
d_bash_10326 | ---
+++
@@ -1,10 +1,11 @@
#!/usr/bin/env BASH
-declare -a arr=("tlkie" "ErfEd" "areaglob" "2dilate" "erfherder" "clothing_renamer" "head_renamer")
+declare -a arr=("tlkie" "ErfEd" "areaglob" "2dilate" \
+ "erfherder" "clothing_renamer" \
+ "head_renamer" "nwsublime")
rm -rf dist
m... | bash |
d_bash_10327 | ---
+++
@@ -20,5 +20,11 @@
# Install Pathogen VIM plugin
mkdir -p ~/.vim/autoload && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
+# Install CocoaPods tool
+#
+# TODO Fix: error while attempting to install CocoaPods without explicitly use `sudo`
+# even if I have already granted superuser p... | bash |
d_bash_10328 | ---
+++
@@ -3,9 +3,13 @@
# to maintain cask ....
# brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup`
+" Installing native apps using \`brew cask\`."
+
# Install native apps
brew install caskroom/cask/brew-cask
brew tap caskroom/versions
+
+export HOMEBREW_CASK_OPTS="--appdir=/App... | bash |
d_bash_10329 | ---
+++
@@ -17,7 +17,7 @@
build="$date_last_commit+$commit_short"
echo "Building kbfs"
-GO15VENDOREXPERIMENT=0 go get github.com/keybase/kbfs/kbfsfuse
+GO15VENDOREXPERIMENT=0 go get -u github.com/keybase/kbfs/kbfsfuse
GO15VENDOREXPERIMENT=0 go build -a -tags "production" -ldflags "-X github.com/keybase/kbfs/libk... | bash |
d_bash_10330 | ---
+++
@@ -3,6 +3,6 @@
echo "---> Starting $(tput bold ; tput setaf 2)Symfony2 project initialization$(tput sgr0)"
curl -s https://getcomposer.org/installer | php
-php composer.phar install --dev
+php composer.phar install --dev --prefer-source
app/console --env=test doctrine:schema:create
sudo chmod -R 777 ap... | bash |
d_bash_10331 | ---
+++
@@ -23,8 +23,9 @@
cd /tmp/testing-with-real-projects
-git clone git@github.com:Ocramius/ProxyManager.git
+git clone git@github.com:muglug/ProxyManager.git
cd ProxyManager
+git checkout c61365d3a856d5a88f53b7c1fc8dc775f06fa25c
composer install
~/project/psalm --monochrome
| bash |
d_bash_10332 | ---
+++
@@ -7,6 +7,11 @@
scripts/deploy.sh
echo
+
+# Install Rosetta 2 when ARM
+if [ "$(uname -m)" = "arm64" ]; then
+ softwareupdate --install-rosetta --agree-to-license
+fi
# install homebrew
if ! command -v brew >/dev/null 2>&1; then | bash |
d_bash_10333 | ---
+++
@@ -7,10 +7,10 @@
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
-usermod -s /bin/zsh root
+usermod -s /usr/bin/zsh root
cp -aT /etc/skel/ /root/
-useradd -m -p "" -g users -G "adm,audio,floppy,log,network,rfkill,scanner,storage,optical,power,wheel" -s /bin/zsh arch
+useradd -m -p "" -g users -G "adm,a... | bash |
d_bash_10334 | ---
+++
@@ -10,7 +10,7 @@
# Only install NodeJS version by default.
#gem install less --version 1.2.21
-npm install -g less
+npm install -g less@2.5.1
npm install -g uglify-js@2.3.1
npm install -g coffee-script@1.6.2
npm install -g clean-css@1.0.2 | bash |
d_bash_10335 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk12-binaries/releases/download/jdk-12.0.2%2B10/OpenJDK12U-jdk_x64_linux_hotspot_12.0.2_10.tar.gz"
;;
java13)
- echo "https://github.com/AdoptOpenJDK/openjdk13-binaries/releases/download/jdk13u-2019-09-03-11-49/OpenJDK13U-jdk_x64_linux_hot... | bash |
d_bash_10336 | ---
+++
@@ -1,3 +1,7 @@
#!/bin/sh
-fab target.prod -R doc app.docs.build app.docs.deploy
+if [ -z "$PW_RINFO" ]; then
+ echo "Enter sudo password: "
+ read PW_RINFO
+fi
+fab -p $PW_RINFO target.prod -R doc app.docs.build app.docs.deploy | bash |
d_bash_10337 | ---
+++
@@ -29,5 +29,5 @@
( cd freeciv
- ./autogen.sh CFLAGS="-O3" --with-project-definition=../freeciv-web.project --enable-fcweb --enable-json --disable-delta-protocol --disable-nls --disable-fcmp --enable-freeciv-manual=html --disable-ruledit --enable-ai-static=classic,threaded --prefix=${HOME}/freeciv/ && m... | bash |
d_bash_10338 | ---
+++
@@ -1,4 +1,6 @@
-echo Fetching new token
+echo Fetching new tokens
+export consul_discovery_token=$(curl -s http://consuldiscovery.linux2go.dk/new)
+echo export consul_discovery_token=${consul_discovery_token}
export etcd_discovery_token=$(curl -s https://discovery.etcd.io/new | awk -F/ '{ print $NF }')
ech... | bash |
d_bash_10339 | ---
+++
@@ -3,7 +3,8 @@
sudo letsencrypt certonly --standalone --domains \
istic.net,\
archipelago.water.gkhs.net,\
-aquarionics.blogs.water.gkhs.net,www.aquarionics.com,aquarionics.com,wywo.aquarionics.com,\
+aquarionics.blogs.water.gkhs.net,www.aquarionics.com,aquarionics.com,old.aquarionics.com,\
+wywo.blogs.wa... | bash |
d_bash_10340 | ---
+++
@@ -4,7 +4,7 @@
# compiler on linux64.
CWD=$(cd $(dirname $0) ; pwd)
-source $CWD/common-gasnet.bash
+source $CWD/common.bash
export CHPL_LLVM=llvm
| bash |
d_bash_10341 | ---
+++
@@ -1,9 +1,28 @@
+# !/bin/bash
+
+name="run-pgadmin"
+
+if [ "$(docker ps -q -f name=$name)" ]; then
+ read -p "alread running container $name stop this (yes|no): " yesno
+ if [ "$yesno" = "yes" ]; then
+ echo "stop container"
+ docker stop $name
+ fi
+ exit 0
+fi
+
+path=$(pwd)
+if [ -d "$1" ]; the... | bash |
d_bash_10342 | ---
+++
@@ -1 +1,8 @@
-echo -n $(uname -r|awk -F"." '{print $(NF-1) "." $NF}')
+#Docker has no kernel
+#Check if evpp is in container
+INCONTAINE=`cat /proc/1/cgroup | grep 'docker\|lxc'`
+if [ ! -z "$INCONTAINE" ]; then
+ echo -n $(cat /etc/redhat-release | awk -F ' ' '{printf("%s.%s.%s\n",$1,$2,$3)}')
+else
+ ... | bash |
d_bash_10343 | ---
+++
@@ -3,6 +3,7 @@
alias gpr='git pull-request'
alias gcam='git commit --amend -C HEAD'
alias gwtc='git commit -m "$(curl -s http://whatthecommit.com/index.txt)"'
+alias gcfh='git commit --fixup=HEAD'
alias rake='noglob rake'
| bash |
d_bash_10344 | ---
+++
@@ -2,8 +2,8 @@
# https://github.com/phosphorjs/phosphor/wiki/TypeDoc-Publishing
set -e
-if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "master" ]]
-then
+#if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "master" ]]
+#then
echo "-- will build apidocs --"
git config --global ... | bash |
d_bash_10345 | ---
+++
@@ -21,7 +21,7 @@
# run clippy on a project, try to be verbose and trigger as many warnings as possible for greater coverage
RUST_BACKTRACE=full cargo clippy --all-targets --all-features -- --cap-lints warn -W clippy::pedantic -W clippy::nursery &> clippy_output
cat clippy_output
- ! cat clippy_outpu... | bash |
d_bash_10346 | ---
+++
@@ -15,4 +15,4 @@
COMPREPLY=( $(compgen -W "$options" -- $cur) )
}
-complete -F _mysql mysql
+complete -o bashdefault -o default -o nospace -F _mysql mysql | bash |
d_bash_10347 | ---
+++
@@ -1,5 +1,5 @@
-CUR_DIR=$(dirname $0)
-source $CUR_DIR/config.sh
+SCRIPT_PATH=$(dirname $(readlink -f $0))
+source $SCRIPT_PATH/config.sh
result=$(curl -k -i -d "user=$user&password=$password&cmd=authenticate&Login=Log+In" $url 2> /dev/null | grep 'User Authenticated' | wc -l)
| bash |
d_bash_10348 | ---
+++
@@ -1,15 +1,21 @@
. ./test/helper.sh
+
+RUBY_INSTALL_DIR="./test/tmp"
+FILE="$RUBY_INSTALL_DIR/db.txt"
function setUp()
{
- RUBY=ruby
+ mkdir "$RUBY_INSTALL_DIR"
}
function test_fetch()
{
local key="1.8.7"
local expected="1.8.7-p374"
- local value=$(fetch "$RUBY/versions" "$key")
+
+ echo "$key:... | bash |
d_bash_10349 | ---
+++
@@ -13,3 +13,10 @@
docker push ${DOCKER_REPOSITORY}:${VERSION}
docker push ${DOCKER_REPOSITORY}:latest
fi
+
+if [[ "$TRAVIS_BRANCH" == "dev" ]]
+then
+ docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
+ docker tag ${DOCKER_REPOSITORY}:${VERSION} ${DOCKER_REPOSITORY}:devel
+ docker push ${D... | bash |
d_bash_10350 | ---
+++
@@ -2,6 +2,7 @@
WHITELIST=(
./examples/lifetime/lifetime.rs
+ ./src/playpen.rs
)
echo "Checking if any rust file has a line longer than 79 characters" | bash |
d_bash_10351 | ---
+++
@@ -1,9 +1,9 @@
#! /bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd );
-FILE="$DIR/config/$2".env
-START=$DIR"/"$1
-USAGE="Usage: ./start.sh <startscript> <config>"
+FILE="$DIR/config/$1".env && shift
+START="$DIR/$1" && shift
+USAGE="Usage: ./start.sh <config> <startscript> [startscript_opts... | bash |
d_bash_10352 | ---
+++
@@ -28,6 +28,7 @@
--detach \
--restart=always \
--publish="127.0.0.1:$INTERNAL_PORT:$INTERNAL_PORT" \
+ --network="$PROJECT_NAME" \
--mount type=bind,source="$(pwd)"/app/static,target=/var/www/app/app/static \
--mount type=bind,source="$(pwd)"/logs,target=/var/www/app/logs \
-... | bash |
d_bash_10353 | ---
+++
@@ -8,7 +8,7 @@
local commandaction="Fix"
local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
-if [ ! -f /usr/lib/libmysqlclient.so.16 ]; then
+if [ ! -f "${lgsmdir}/lib/libmysqlclient.so.16" ]; then
fixname="libmysqlclient16 install"
fn_fix_msg_start
fn_print_warn_nl "libmysqlc... | bash |
d_bash_10354 | ---
+++
@@ -12,8 +12,8 @@
count=0
while ! rake database_test:ping > /dev/null 2>&1 && [[ $count -le $max ]] ; do
count=$[$count+1]
- echo "Retry $count of $max attempting to connect to $DATABASE_HOST. Sleeping ${DATABASE_INITIAL_CONNECT_SLEEP:5}"
- sleep ${DATABASE_INITIAL_CONNECT_SLEEP:5}
+ echo ... | bash |
d_bash_10355 | ---
+++
@@ -25,8 +25,7 @@
EOF
export PATH="$PATH:/var/lib/gems/1.8/bin"
-puppet agent --no-daemonize --onetime --no-splay --verbose || {
- echo "On the Puppet master, run: puppet cert -s $(facter fqdn)" >&2
- read -p "Press <ENTER> when that's done. " ENTER
- puppet agent --no-daemonize --onetime --no-splay --... | bash |
d_bash_10356 | ---
+++
@@ -1,7 +1,8 @@
#!/bin/sh
drush -y sql-drop
-gzcat /Applications/MAMP/htdocs/sw-d8/dumps/2018-02-18.dev-repaired.2.sql.gz | `drush sql-connect`
+gzcat /Applications/MAMP/htdocs/sw-d8/dumps/sw-d8_dev_2018-03-05T19-44-22_UTC_database.sql.gz | `drush sql-connect`
drush -y updb
drush -y cim
+drush -y en sw_... | bash |
d_bash_10357 | ---
+++
@@ -4,5 +4,5 @@
docker tag winspector stefanscherer/winspector:linux-$TRAVIS_TAG
docker tag winspector stefanscherer/winspector:linux
-docker push stefanscherer/winspector-linux:linux-$TRAVIS_TAG
-docker push stefanscherer/winspector-linux:linux
+docker push stefanscherer/winspector:linux-$TRAVIS_TAG
+doc... | bash |
d_bash_10358 | ---
+++
@@ -11,5 +11,5 @@
autoconf
if [ -z "$NOCONFIGURE" ]; then
- ./configure "$@"
+ ./configure LDFLAGS="-L$(python-config --prefix)/lib/" "$@"
fi | bash |
d_bash_10359 | ---
+++
@@ -11,7 +11,7 @@
cd ${QP_ROOT}/data
rm -f executables
-EXES=$(find ${QP_ROOT}/src -perm /u+x -type f | grep -e "${QP_ROOT}/src/[^/]*/[^/]*$" |sort )
+EXES=$(find -L ${QP_ROOT}/src -executable -type f | grep -e "${QP_ROOT}/src/[^/]*/[^/]*$" |sort )
for EXE in $EXES
do | bash |
d_bash_10360 | ---
+++
@@ -1,31 +1,36 @@
#!/usr/bin/env bash
-thirdparty_module_name='VNL'
+set -e
+set -x
+shopt -s dotglob
-upstream_git_url='https://github.com/vxl/vxl.git'
-upstream_git_branch='master'
+readonly name='VXL'
+readonly ownership='VXL Maintainers <vxl-maintainers@lists.sourceforge.net>'
+readonly subtree="Modu... | bash |
d_bash_10361 | ---
+++
@@ -28,6 +28,9 @@
# Run our compile script
doCompile
+# Copy CircleCI configuration
+cp circle.yml build/
+
# Now let's go have some fun with the cloned repo
cd build
| bash |
d_bash_10362 | ---
+++
@@ -14,7 +14,7 @@
if [ "$iteration" = '30' ]; then
exit 1
else
- ((iteration=iteration+1))
+ iteration=$((iteration+1))
fi
sleep 10
done | bash |
d_bash_10363 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/sh -x
+
+# A wrapper script to run a single tarantool instance
+# and restart it when it crashes
export PATH=$PATH:/usr/local/bin
@@ -8,12 +11,17 @@
CONF="/usr/local/etc/${INST}.cfg"
LOGDIR="/var/${INST}/logs"
WRAP_PIDFILE="/var/${INST}/wrapper.pid"
+# set to get restart emails... | bash |
d_bash_10364 | ---
+++
@@ -12,3 +12,4 @@
done
done
+fblib_cleanup | bash |
d_bash_10365 | ---
+++
@@ -41,3 +41,14 @@
push "$x2"
}
builtin 'tuck' tuck
+
+not_equals() { # <>
+ pop n2
+ pop n1
+ if "$expr" "$n1" '!=' "$n2" >/dev/null; then
+ push -1
+ else
+ push 0
+ fi
+}
+builtin '<>' not_equals | bash |
d_bash_10366 | ---
+++
@@ -1,6 +1,10 @@
#!/bin/sh
-VERSION=`curl https://github.com/bitshares/bitshares-core/releases/latest 2>/dev/null | cut -f2 -d'"' | cut -f8 -d'/'`
+if [ -n "$1" ]; then
+ VERSION=$1
+else
+ VERSION=`curl https://github.com/bitshares/bitshares-core/releases/latest 2>/dev/null | cut -f2 -d'"' | cut -f8 -... | bash |
d_bash_10367 | ---
+++
@@ -19,7 +19,8 @@
fi
# nvm
-. $HOME/.nvm/nvm.sh
+export NVM_DIR="$HOME/.nvm"
+[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
# rbenv
if [[ $OSTYPE == 'linux-gnu' ]]; then | bash |
d_bash_10368 | ---
+++
@@ -8,6 +8,5 @@
brew install .ci/tarantool.rb --HEAD
else
brew install tarantool
-# brew install .ci/tarantool.rb
fi
fi | bash |
d_bash_10369 | ---
+++
@@ -13,6 +13,12 @@
NETBIOS=DOM`echo $1 | cut -d- -f2`
fi
+# Configure DNS only if on master
+if [[ $1 == '' ]]
+then
+ ipa dnszone-add $AD_DOMAIN --name-server=advm.$AD_DOMAIN --admin-email="hostmaster@$AD_DOMAIN.com" --force --forwarder=$AD_IP --forward-policy=only --ip-address=$AD_IP
+fi
+
# Fix the... | bash |
d_bash_10370 | ---
+++
@@ -5,6 +5,11 @@
d=$(dirname "${BASH_SOURCE[0]}")
source "$d/shared.sh"
+# Thanks to the magic of global variables, this value will get overwritten when
+# install_rustfmt runs. But, if we don't declare it up front here, shellcheck
+# errors on the cargo_fmt statement below.
+toolchain="stable"
+
maybe_i... | bash |
d_bash_10371 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/bash
-set -e
+set -eo pipefail
+
export DOCKER_HOST=${DOCKER_HOST:-'unix:///var/run/docker.sock'}
# Copy files, we don't want to download all the time, to Docker context
@@ -16,14 +17,17 @@
done
if [ -d "${CONTAINER_NAME}" ]; then
LEGACY_ID=$(docker images | grep... | bash |
d_bash_10372 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
TOOLS=`dirname $0`
VENV=$TOOLS/../.venv
-source $VENV/bin/activate && $@
+source $VENV/bin/activate && "$@" | bash |
d_bash_10373 | ---
+++
@@ -11,14 +11,19 @@
}
}
}
- },
- "mappings": {
- "messages": {
+ }
+}'
+curl -XPUT 'http://elasticsearch:9200/slack_logger/_mapping/messages' -d '{
+ "properties": {
+ "text": {
+ "type": "text",
+ "analyzer": "kuromoji_analyzer"
+ },
+ "ts": {
+ "type": "do... | bash |
d_bash_10374 | ---
+++
@@ -1,4 +1,7 @@
#!/bin/bash
+
+BD=$(cd `dirname $0` && pwd)
+trap "echo 'Cleaning up'; rm -rf $BD/wu" EXIT
function abort() {
echo $1
@@ -8,19 +11,21 @@
function clone_repo() {
echo "Pulling latest repository... Version is $VERSION"
# clone wu
- git clone git@github.com:systemapic/wu.git wu || abor... | bash |
d_bash_10375 | ---
+++
@@ -1,3 +1,4 @@
export PATH="./bin:/usr/local/bin:/usr/local/sbin:$ZSHDOT/bin:$PATH"
export PATH="~/sftw:$PATH"
+export PATH="/usr/local/Cellar/node/13.5.0/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH" | bash |
d_bash_10376 | ---
+++
@@ -2,5 +2,6 @@
alias dc='docker-compose'
alias drm='docker-rm'
alias dcl='docker-clean'
-alias dcd='docker-compose down'
+alias dcd='dc down'
+alias dcb='dc build'
alias db='dc up -d db' | bash |
d_bash_10377 | ---
+++
@@ -2,10 +2,11 @@
set -e
# Create directories
-mkdir -p ./build
-mkdir -p ./build/server
-mkdir -p ./build/server/shared
-mkdir -p ./build/server/shared/locales
+mkdir ./build
+mkdir ./build/server
+mkdir ./build/server/weboob
+mkdir ./build/server/shared
+mkdir ./build/server/shared/locales
# Shared c... | bash |
d_bash_10378 | ---
+++
@@ -1,3 +1,11 @@
#!/bin/sh
-java -jar /opt/certzure/certzure.jar $1 $2 $3 $4
+if [ $1 = 'deploy_challenge' ] || [ $1 = 'clean_challenge' ] || [ $1 = 'deploy_cert' ]
+then
+ java -jar /opt/certzure/certzure.jar $1 $2 $3 $4
+
+ if [ $1 = 'deploy_cert' ] && [ -e /opt/hpkpinx/hpkpinx.sh ]
+ then
+ ... | bash |
d_bash_10379 | ---
+++
@@ -34,6 +34,7 @@
--tls-dh-params-path "demo/demo.tls.dh" \
--media-store-path "demo/media_store.$port" \
$PARAMS $SYNAPSE_PARAMS \
+ --disable-registration false
python -m synapse.app.homeserver \
--config-path "demo/etc/$port.config" \ | bash |
d_bash_10380 | ---
+++
@@ -2,10 +2,10 @@
cd third_party_sources
git clone --branch v1.2.9 https://github.com/madler/zlib.git
-wget https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz
-tar zxvf boost_1_76_0.tar.gz
-mv boost_1_76_0 boost
-rm boost_1_76_0.tar.gz
+wget https://boostorg.jfrog.io/arti... | bash |
d_bash_10381 | ---
+++
@@ -16,6 +16,9 @@
elif [[ ${ACTION} == 'deploy' ]]; then
echo 'Deploying...'
curl \
+ --no-buffer \
+ --show-error \
+ --silent \
--fail \
-d crypt-key="${GIT_CRYPT_KEY}" \
-d release=prod \ | bash |
d_bash_10382 | ---
+++
@@ -37,5 +37,6 @@
git push -f origin gh-pages
git checkout master
+rm -rf gh-pages
echo "Done!" | bash |
d_bash_10383 | ---
+++
@@ -28,8 +28,8 @@
function svn_dirty_choose {
if [ $(in_svn) ]; then
- s=$(svn status|grep -E '^\s*[ACDIM!?L]' 2>/dev/null)
- if [ $s ]; then
+ svn status 2> /dev/null | grep -Eq '^\s*[ACDIM!?L]'
+ if [ $pipestatus[-1] -ne 0 ]; then
echo $1
else
... | bash |
d_bash_10384 | ---
+++
@@ -1 +1,8 @@
-jekyll build --source docs --destination build/jekyll --watch
+if [ -f ~/bin/jekyll ]
+then
+ JEKYLL=~/bin/jekyll
+else
+ JEKYLL=jekyll
+fi
+
+$JEKYLL build --source docs --destination build/jekyll --watch | bash |
d_bash_10385 | ---
+++
@@ -18,5 +18,5 @@
conda update conda
conda info -a
cat requirements.txt | grep -v numpydoc | xargs conda create -n test-env python=$TRAVIS_PYTHON_VERSION
+source activate test-env
conda install coverage
-source activate test-env | bash |
d_bash_10386 | ---
+++
@@ -5,7 +5,7 @@
while [ `cat $PIDFILE` == $$ ]; do
echo "Launching daemon from launchloop..."
- ./em/daemon.rb $* 2>./data/error.out
+ ./em/daemon.rb $* 2>>./data/error.out
sleep 1
done
| bash |
d_bash_10387 | ---
+++
@@ -7,6 +7,7 @@
python manage.py collectstatic --noinput
# Run app
+cd emission_events
exec gunicorn emission_events.wsgi:application \
--workers 3 \
--bind 0.0.0.0:8000 \ | bash |
d_bash_10388 | ---
+++
@@ -16,9 +16,8 @@
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST \
- --data "{\"cluster\":{\"name\":\"test\",\"node-recipes\": {\"tasktracker\":1,\"jobtracker\":1},\"image-id\":\"ubuntu-12.04-amd64.img\"}}" \
+ --data "{\"cluster\":{\"name\":\"$RANDOM\",\"no... | bash |
d_bash_10389 | ---
+++
@@ -32,7 +32,7 @@
ssh-add ~/.ssh/id_rsa
# Open the GitHub settings page
-open "https://github.com/account/keys"
+open "https://github.com/settings/keys"
# Add the SSH key to GitHub
pbcopy < ~/.ssh/id_rsa.pub | bash |
d_bash_10390 | ---
+++
@@ -14,7 +14,6 @@
sudo yum -y localinstall http://ftp.riken.jp/Linux/dag/redhat/el6/en/x86_64/rpmforge/RPMS/lv-4.51-1.el6.rf.x86_64.rpm
;;
7)
- sudo yum -y localinstall https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install lv
... | bash |
d_bash_10391 | ---
+++
@@ -1,3 +1,5 @@
export NVM_DIR=~/.nvm
mkdir -p ~/.nvm
-source $(brew --prefix nvm)/nvm.sh
+if [[ -a $(brew --prefix nvm)/nvm.sh ]]; then
+ source $(brew --prefix nvm)/nvm.sh
+fi | bash |
d_bash_10392 | ---
+++
@@ -23,6 +23,7 @@
if [[ "${PARAVIEW_DIR}" == *paraview.app ]]
then
PV_SERVER="${PARAVIEW_DIR}/Contents/bin/pvserver"
+ MPIPROG="${PARAVIEW_DIR}/Contents/MacOS/mpiexec"
fi
# Wait for pvpython | bash |
d_bash_10393 | ---
+++
@@ -6,6 +6,9 @@
readonly window="$(xdotool getactivewindow)"
readonly name="$(xprop -id "$window" | awk -F '"' '/WM_CLASS/{print $4}')"
-if [[ $name != 'Firefox' ]] && [[ $name != 'Firefox Developer Edition' ]]; then
- xvkbd -xsendevent -text "\Cq"
-fi
+case "$name" in
+ Firefox) ;;
+ Firefox Developer Ed... | bash |
d_bash_10394 | ---
+++
@@ -19,6 +19,6 @@
done
done
-hdiutil create dist/Denglish.dmg -format UDRO -volname "Denglish" -srcfolder ./build
+hdiutil create dist/denglish.dmg -format UDRO -volname "Denglish" -srcfolder ./build
rm -rf build | bash |
d_bash_10395 | ---
+++
@@ -12,6 +12,9 @@
export FZF_CTRL_T_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_CTRL_R_OPTS='--reverse'
+# zsh options
+setopt nobanghist
+
# paths
export GOPATH='~/.go'
path=( | bash |
d_bash_10396 | ---
+++
@@ -11,7 +11,8 @@
# Checkout / Update
alias cco='carthage checkout --no-use-binaries --use-submodules --use-ssh'
-alias ccu='carthage update --no-use-binaries --use-submodules --use-ssh --no-build'
+alias ccu='carthage update --no-use-binaries --no-build'
+alias ccus='ccu --use-submodules --use-ssh'
# ... | bash |
d_bash_10397 | ---
+++
@@ -6,7 +6,7 @@
#$ -j y
#####$ -l cpu600
#$ -l i386=true
-#$ -l scratch=1G
+#$ -l scratch=1G -l netappsali=1G
#$ -r y
#$ -N loop
#$ -p -4 | bash |
d_bash_10398 | ---
+++
@@ -12,7 +12,6 @@
go get github.com/venicegeo/pz-workflow
go install github.com/venicegeo/pz-workflow/server
-go install github.com/venicegeo/pz-workflow/client
###
| bash |
d_bash_10399 | ---
+++
@@ -1,11 +1,11 @@
echo "--- Version"
-buildkite-agent meta-data get version
+echo `buildkite-agent meta-data get version`
echo "--- Food"
-buildkite-agent meta-data get taco
+echo `buildkite-agent meta-data get taco`
echo "--- Deploy Target"
-buildkite-agent meta-data get deploy-target
+echo `buildkite... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.