document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_22000 | ---
+++
@@ -28,7 +28,7 @@
source $(dirname $0)/../vendor/github.com/tektoncd/plumbing/scripts/presubmit-tests.sh
function post_build_tests() {
- golangci-lint run --deadline 3m
+ golangci-lint run --deadline 5m
}
# We use the default build, unit and integration test runners. | bash |
d_bash_22001 | ---
+++
@@ -7,9 +7,9 @@
echo "Installing ZFS from latest git HEAD"
apt-get -y install build-essential gawk alien fakeroot linux-headers-$(uname -r) zlib1g-dev uuid-dev libblkid-dev libselinux-dev parted lsscsi dh-autoreconf linux-crashdump git
-# As of Feb 18 2015, recommended ZoL revisions from Richard Yao:
-goo... | bash |
d_bash_22002 | ---
+++
@@ -37,7 +37,7 @@
copy_artifact() {
echo "Copying from $S3_BUCKET_FROM_PATH to $S3_BUCKET_TO_PATH"
- aws s3 cp "$S3_BUCKET_FROM_PATH" "$S3_BUCKET_TO_PATH"
+ aws s3 cp --acl public-read "$S3_BUCKET_FROM_PATH" "$S3_BUCKET_TO_PATH"
}
main() { | bash |
d_bash_22003 | ---
+++
@@ -1,2 +1,13 @@
-#!/bin/bash
+#!/usr/bin/zsh
useradd -r -s /bin/false txwebtest
+usermod -a -G redis txwebtest
+
+if [ "$USER" = "root" ]; then
+ user=$SUDO_USER
+else
+ user=$USER
+fi
+
+if [ -n "$user" ]; then
+ usermod -a -G txwebtest $user
+fi | bash |
d_bash_22004 | ---
+++
@@ -16,13 +16,12 @@
binary_result=$(${binary} < ${filename} | wc -l)
expected_result=$(wc -l ${filename} | awk '{ print $1 }')
- if [[ "x${binary_result}x" == "x${expected_result}x" ]]; then
+ if [[ "${binary_result}" -eq "${expected_result}" ]]; then
echo ' PASS'
else
echo ' FAIL'
+ ... | bash |
d_bash_22005 | ---
+++
@@ -1,9 +1,14 @@
#!/bin/bash
# This script generates the combined JS file, pushes all content to a web site
# and then reverts the combined file.
+
+if [ "$1" == "" ] ; then
+ echo "usage: $0 URL"
+ exit 1
+fi
+
set -x
site=$1
-
# Produce dygraph-combined.js.
./generate-combined.sh
@@ -12,7 +17,7 @... | bash |
d_bash_22006 | ---
+++
@@ -20,6 +20,30 @@
echo -e "${time} [ $(LoggerUtil _formatLogLevel ${1}) ] ${message}"
}
+ assertEquals(){
+ if [[ ${1} == ${2} ]]; then
+ echo PASS
+ else
+ echo FAIL
+ fi
+ }
+
+ assertNull(){
+ if [[ ${1} == "" ]]; then
+ echo PASS
+ else
+ echo FAIL
+ fi
+ }
+
+ assertTrue(){
+ if [[... | bash |
d_bash_22007 | ---
+++
@@ -3,6 +3,7 @@
set -euf -o pipefail
GRAFANA_VERSION=4.5.2
+GRAFANA_PLUGINS="raintank-worldping-app"
# Copy configuration files
cp /tmp/files/grafana/grafana.ini $PWD
@@ -12,5 +13,6 @@
--restart unless-stopped \
-v /var/lib/grafana:/var/lib/grafana \
-v $PWD/grafana.ini:/etc/grafana/grafana.i... | bash |
d_bash_22008 | ---
+++
@@ -12,4 +12,4 @@
echo ""
}
-export APPS_TO_BUILD="twixtykit corporate-bullshit mpeg-munger sk-node sk-schema sk-static sk-time sk-client sk-ffmpeg pipeland bellamie gort shoko"
+export APPS_TO_BUILD="twixtykit mpeg-munger sk-node sk-schema sk-static sk-time sk-client pipeland bellamie gort shoko" | bash |
d_bash_22009 | ---
+++
@@ -3,7 +3,7 @@
BINS='grunt bower yuglify'
PROJECT_ROOT=$(cd "`dirname $0`/.."; pwd)
-function link {
+link () {
src="$PROJECT_ROOT/node_modules/.bin/$1"
dest="$VIRTUAL_ENV/bin/$1"
ln -s $src $dest 2> /dev/null || echo "Skipping $1, symlink already exists." | bash |
d_bash_22010 | ---
+++
@@ -20,7 +20,11 @@
fi
DOMAIN="$1"
RENEW_DAYS="30"
-CERT=/etc/certs/$DOMAIN.crt
+if [ -z "$CERT_DIR" ]; then
+ CERT_DIR=/etc/certs
+fi
+
+CERT=$CERT_DIR/$DOMAIN.crt
renew_cert() {
local DOMAIN="$1" | bash |
d_bash_22011 | ---
+++
@@ -18,9 +18,10 @@
chsh -s /bin/zsh
echo "Installing bullet-train oh-my-zsh theme..."
-URL=https://raw.githubusercontent.com/caiogondim/bullet-train-oh-my-zsh-theme/master/bullet-train.zsh-theme
-mkdir -p ~/.oh-my-zsh/custom/themes
-wget -P ~/.oh-my-zsh/custom/themes/ $URL
+git clone https://github.com/am... | bash |
d_bash_22012 | ---
+++
@@ -17,8 +17,16 @@
elif test "$(expr substr $(uname -s) 1 5)" = "Linux"
then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
+
+ echo 'export PATH="$HOME/.linuxbrew/bin:$PATH"' > ~/.bashrc
+ echo 'export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"' > ... | bash |
d_bash_22013 | ---
+++
@@ -15,5 +15,5 @@
docker push "hyperledger/fabric-${image}:amd64-${RELEASE}"
./manifest-tool push from-args --platforms linux/amd64 --template "hyperledger/fabric-${image}:amd64-${RELEASE}" --target "hyperledger/fabric-${image}:${RELEASE}"
- ./manifest-tool push from-args --platforms linux/amd64 --te... | bash |
d_bash_22014 | ---
+++
@@ -39,7 +39,7 @@
done
[ -z "${DATABASE}" ] && die "Missing database! Usage: ./init-unifiedpush-db.sh database name"
-[ -z "${CONFIG}" ] && export CONFIG=/tmp/db.properties
+[ -z "${CONFIG}" ] && export CONFIG=/tmp/
${JAVA_HOME}/bin/java ${DEBUG_OPTS} \
-Daerogear.config.dir=${CONFIG} \ | bash |
d_bash_22015 | ---
+++
@@ -11,8 +11,7 @@
# Add Yarn repo
apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
-# TODO: Use nightly repo once it's configured
-echo "deb http://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
+echo "deb http://nightly.yarnpkg.com/debian/ nightly main" > /etc/apt/sour... | bash |
d_bash_22016 | ---
+++
@@ -23,4 +23,6 @@
echo "$OUTPUT" | grep "Error" | wc -l | grep 6
! OUTPUT=$(conda build --no-binstar-upload fail/conda-meta/ 2>&1)
-echo "$OUTPUT" | grep "Error: Untracked file(s) ('conda-meta/nope')"
+echo "$OUTPUT" | grep 'Error: Untracked file(s) ('\''conda-meta/nope'\'',)'
+
+echo "TESTS PASSED" | bash |
d_bash_22017 | ---
+++
@@ -3,7 +3,7 @@
block="server {
listen 80;
server_name $1;
- root $2;
+ root "$2";
index index.html index.htm index.php;
| bash |
d_bash_22018 | ---
+++
@@ -3,3 +3,6 @@
alias blog='cd ~/Code/marceldiass.github.io'
alias wildfly='cd /Applications/wildfly'
alias ca='cd ~/Code/contaazul'
+alias dps='docker ps -a'
+alias dm='docker $(docker-machine config)'
+alias dmps='docker $(docker-machine config) ps -a' | bash |
d_bash_22019 | ---
+++
@@ -3,14 +3,15 @@
fi
# Set the path to include:
-# - $HOME/.bin for local tools
-# - /usr/local/bin for Homebrew
+# - $HOME/.bin for local tools
+# - $HOME/.local/bin for haskell tools installed by stack
+# - /usr/local/bin for Homebrew
# - /usr/local/sbin
-# - /usr/bin for sy... | bash |
d_bash_22020 | ---
+++
@@ -26,6 +26,6 @@
conn_ip='//'
fi
-printf "Following log file %s, ignoring %s\n" $log_file $conn_ip
+printf "\n==> Following log file %s, ignoring %s <==\n\n" $log_file $conn_ip
tail -f ${log_file} | grep -v ${conn_ip} | bash |
d_bash_22021 | ---
+++
@@ -1,17 +1,6 @@
-
#!/bin/bash
-# R refuses to build packages that mark themselves as
-# "Priority: Recommended"
mv DESCRIPTION DESCRIPTION.old
grep -v '^Priority: ' DESCRIPTION.old > DESCRIPTION
-#
+
$R CMD INSTALL --build .
-#
-# # Add more build steps here, if they are necessary.
-#
-# See
-# http://... | bash |
d_bash_22022 | ---
+++
@@ -28,4 +28,4 @@
pkg install -y cursor-dmz-theme setxkbmap xrandr dpkg fusefs-ntfs fusefs-ext4fuse
pkg install -y py27-gobject py27-webkitgtk py27-pexpect py27-python-distutils-extra
pkg install -y grsync gksu octopkg networkmgr transmission firefox firefox-i18n geany filezilla
-pkg install -y droid-fonts... | bash |
d_bash_22023 | ---
+++
@@ -34,7 +34,7 @@
# Load virtualenvwrapper into the shell session.
if (( $+commands[virtualenvwrapper_lazy.sh] )); then
# Set the directory where virtual environments are stored.
- export WORKON_HOME="$HOME/.virtualenvs"
+ export WORKON_HOME="$HOME/envs"
# Disable the virtualenv prompt.
VIRTUAL... | bash |
d_bash_22024 | ---
+++
@@ -13,12 +13,16 @@
ls -1 "$1"
}
-files=(`get_update_files "$4"`)
-
+mysql_user="$1"
+mysql_password="$2"
+mysql_db="$3"
+update_dir="$4"
status_file="$5""/.last_db_update"
+files=(`get_update_files "$update_dir"`)
+
if [[ -f $status_file ]] ; then
- last_update=(`cat $status_file`)
+ last_update=`ca... | bash |
d_bash_22025 | ---
+++
@@ -10,7 +10,7 @@
cd ..
mkdir luacov
-wget -O - https://api.github.com/repos/keplerproject/luacov/tarball/master | tar xz -C luacov --strip-components=1
+wget -O - https://api.github.com/repos/mpeterv/luacov/tarball/simplify-lines | tar xz -C luacov --strip-components=1
cd luacov
sudo luarocks make rock... | bash |
d_bash_22026 | ---
+++
@@ -12,5 +12,8 @@
alias df='df -h' # disk free, in Gigabytes, not bytes
alias du='du -h -c' # calculate disk usage for a folder
+# rake fix
+alias rake="noglob rake"
+
# Applications
alias mou='open -a Mou.app' | bash |
d_bash_22027 | ---
+++
@@ -1,35 +1,36 @@
#!/bin/sh
-PATH=/sbin:/bin:/usr/bin
-BASE_DIR="/home/root/helloworld"
-WEBSERVER="/home/root/rascal/bin/paster"
-WEBSERVER_CONFIG="/home/root/helloworld/development.ini"
+PATH=/sbin:/bin:/usr/bin:/usr/sbin
+WEBSERVER="/usr/sbin/nginx"
+WEBSERVER_CONFIG="/etc/nginx/nginx.conf"
+APPSERVER="... | bash |
d_bash_22028 | ---
+++
@@ -1,3 +1,4 @@
apt-get update -q
apt-get install -qy git
-curl https://install.meteor.com/ | sh
+
+su -c "curl https://install.meteor.com/ | sh" vagrant | bash |
d_bash_22029 | ---
+++
@@ -9,9 +9,7 @@
#
configure_rootfs_build()
{
- update_keywords 'sys-apps/s6' '+~amd64'
- update_keywords 'dev-lang/execline' '+~amd64'
- update_keywords 'dev-libs/skalibs' '+~amd64'
+ :
}
# | bash |
d_bash_22030 | ---
+++
@@ -6,35 +6,31 @@
# An exercise worth testing is defined here as any top level directory with
# a 'tests' directory
for exercise in */tests; do
-
# This assumes that exercises are only one directory deep
# and that the primary module is named the same as the directory
directory=$(dirname... | bash |
d_bash_22031 | ---
+++
@@ -7,7 +7,7 @@
for svg in `ls *.svg`;
do
mv $svg $svg.opttmp;
- scour -i $svg.opttmp -o $svg --create-groups --enable-id-stripping --enable-comment-stripping --shorten-ids --remove-metadata;
+ scour -i $svg.opttmp -o $svg --create-groups --enable-id-stripping --enable-comment-stripping --shorten... | bash |
d_bash_22032 | ---
+++
@@ -15,7 +15,7 @@
# If the syntp driver is running (synset.serio exists), but should be
# disabled (.tp_disable exists), reconfigure the i8042 driver to disable
# the serio_raw device currently being used by syntp (/dev/serio_rawN).
- SERIAL_DEVICE=`cat $(SERIAL_MARKER)`
+ SERIAL_DEVICE=`cat ${SERI... | bash |
d_bash_22033 | ---
+++
@@ -1,3 +1,4 @@
alias vim='mvim -v'
alias :e='vim'
alias v='vim'
+ctags=/usr/local/bin/ctags | bash |
d_bash_22034 | ---
+++
@@ -8,6 +8,7 @@
# Disable apt-daily.timer from running at Boot
# http://stackoverflow.com/questions/36896806/how-can-i-be-sure-a-freshly-started-vm-is-ready-for-provisioning
if [ -f /lib/systemd/system/apt-daily.timer ]; then
+ mkdir -p /etc/systemd/system/apt-daily.timer.d
cat > /etc/systemd/syste... | bash |
d_bash_22035 | ---
+++
@@ -25,3 +25,6 @@
./configure --prefix=$ZMQ_PREFIX --with-relaxed --enable-static --disable-shared
make -j 2
make install
+
+cd $ZMQ_PREFIX
+rm -rf $ZMQ_SRC_DIR | bash |
d_bash_22036 | ---
+++
@@ -9,7 +9,7 @@
true)
opam repository add cumulus https://github.com/Cumulus/opam-cumulus.git;;
false)
- git clone https://github.com/ocsigen/ocsigenserver.git#3.0.0-cohttp
+ git clone -b 3.0.0-cohttp https://github.com/ocsigen/ocsigenserver.git
cd ocsigenserver
... | bash |
d_bash_22037 | ---
+++
@@ -5,7 +5,10 @@
}
function install_centos(){
- sudo yum -y install python-dev libffi-dev python-pip
+ sudo yum -y install python-devel libffi-devel
+ # pip is not in the standard repo
+ yum install epel-release
+ yum install python-pip
}
| bash |
d_bash_22038 | ---
+++
@@ -2,8 +2,10 @@
set -e
+chown -R nobody /var/lib/nginx
chown -R nobody /var/www
chown -R nobody /var/dokuwiki-storage
+
su -s /bin/sh nobody -c 'php7 /var/www/bin/indexer.php -c'
| bash |
d_bash_22039 | ---
+++
@@ -12,7 +12,7 @@
EMAIL=$5
BANKACCOUNT=$6
-CRYPTED=$(python console/commands/python/password_crypt.py ${PW})
+CRYPTED=`python console/commands/python/password_crypt.py ${PW}`
DB=$TAG
TEMPLATE="console/commands/sql/template_default.sql"
INPUTFILE="/tmp/${DB}.sql" | bash |
d_bash_22040 | ---
+++
@@ -1,6 +1,6 @@
is_go_existing() {
go_version_response=$(go version)
- if [[ $go_version_response == *"go version"* ]]; then
+ if [ $go_version_response -eq *"go version"* ]; then
return 1
else
return 0
@@ -42,7 +42,7 @@
}
is_go_existing
-if [ $? == 0 ]; then
+if [ $? -eq 0 ]; then
i... | bash |
d_bash_22041 | ---
+++
@@ -20,4 +20,4 @@
cd docs
make html 2> output.err
-if [ -s output.err] then exit 1; fi
+if [[ -s output.err]]; then exit 1; fi | bash |
d_bash_22042 | ---
+++
@@ -2,7 +2,6 @@
set -xe
DCI_DB_DIR=${DCI_DB_DIR:-".db_dir"}
-DCI_DB_HOST=${DCI_DB_HOST:-"127.0.0.1"}
# get dci_db_dir absolute path
DCI_DB_DIR="$(cd "$(dirname "$0")/.." && pwd)/$DCI_DB_DIR"
@@ -23,4 +22,4 @@
# init the database directory and start the process
pg_ctl initdb -D "$DCI_DB_DIR" -o "--... | bash |
d_bash_22043 | ---
+++
@@ -8,5 +8,5 @@
--tcp=${SYSLOG_TCP:-false} --tls=${SYSLOG_TLS:-false} --facility=${SYSLOG_FACILITY:-user} \
--severity=${SYSLOG_SEVERITY:-notice} --hostname=${SYSLOG_HOSTNAME} ${SYSLOG_FILES}
else
- exec /remote_syslog/remote_syslog $@
+ exec /remote_syslog/remote_syslog -D $@
fi | bash |
d_bash_22044 | ---
+++
@@ -2,7 +2,7 @@
export NVM_DIR="/home/jenkins/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
-nvm use 0.10
+nvm use 4
npm install
RC=0 | bash |
d_bash_22045 | ---
+++
@@ -6,8 +6,8 @@
make requirements
python refresh_snowpipe.py \
- --key_path $KEY_PATH \
- --passphrase_path $PASSPHRASE_PATH \
+ --key_path $WORKSPACE/analytics-secure/$KEY_PATH \
+ --passphrase_path $WORKSPACE/analytics-secure/$PASSPHRASE_PATH \
--user $USER \
--account $ACCOUNT \
... | bash |
d_bash_22046 | ---
+++
@@ -1,8 +1,8 @@
echo "192.168.1.11 server" >> /etc/hosts
# setup packages
-sudo apt-get install -y python-setuptools build-essential python-dev squashfs-tools libnss-mdns git mercurial
-sudo easy_install nose ipdb ipdbplugin ipython
+sudo apt-get install -y python-setuptools build-essential python-dev squ... | bash |
d_bash_22047 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
set -e
readonly VERSION=xdebug-2.6.0beta1
@@ -6,21 +6,23 @@
readonly URL=https://xdebug.org/files/${VERSION}.tgz
-pushd /tmp/;
-wget "${URL}";
+# Download, validate, and extract
+(
+ cd /tmp/
+ wget "${URL}";
+ echo "${SHA}" "/tmp/${VERSION}.tgz" | ... | bash |
d_bash_22048 | ---
+++
@@ -8,8 +8,9 @@
NAME=${1%.md}
PDFNAME=${NAME}.pdf
# PROCESSING
-sed -e 's/––/---/g' ${INFILE} | # Add any other operations after this...
-pandoc --from=markdown --latex-engine=xelatex -o ${PDFNAME} # ...and before this.
+sed -e 's/––/---/g' ${INFILE} | # Better em-dashes
+sed -e 's/<br>/\\\newline /g' | # ... | bash |
d_bash_22049 | ---
+++
@@ -9,7 +9,7 @@
section() {
[ -z "$TRAVIS" ] || echo -en "travis_fold:start:$1\\r"
i=$((i+1))
- echo "Step $i: $1..."
+ echo "---------- Step $i: $1 ----------"
scripts/integrate/"$1".sh
[ -z "$TRAVIS" ] || echo -en "travis_fold:end:$1\\r"
} | bash |
d_bash_22050 | ---
+++
@@ -42,6 +42,21 @@
set -e
echo "Finished installing uopz extension."
+
+
+ if [ "$TRAVIS_PHP_VERSION" != "5.4" && "$TRAVIS_PHP_VERSION" != "hhvm" ]
+ then
+ echo ""
+ echo "******************************"
+ echo "Installing apcu-beta extension"
+ echo "***********... | bash |
d_bash_22051 | ---
+++
@@ -11,3 +11,6 @@
fi
sudo -u $USERNAME php -d memory_limit=-1 cron.php
+if [ -f '/etc/redhat-release' ]; then
+ sudo chcon -Rv --type=httpd_sys_content_t /var/php_cache/browser
+fi | bash |
d_bash_22052 | ---
+++
@@ -12,7 +12,7 @@
git clone https://github.com/CraneStation/wasi-libc
cd wasi-libc
-git reset --hard 1fad33890a5e299027ce0eab7b6ad5260585e347
+git reset --hard 9efc2f428358564fe64c374d762d0bfce1d92507
make -j$(nproc) INSTALL_DIR=/wasm32-wasi install
cd .. | bash |
d_bash_22053 | ---
+++
@@ -13,6 +13,7 @@
readonly paths="
CMakeLists.txt
LICENSE.MIT
+ nlohmann_json.natvis
cmake
include
single_include | bash |
d_bash_22054 | ---
+++
@@ -6,11 +6,9 @@
source $DIR/.env
source $DIR/.bashrc
- nvm install 0.12
- nvm install iojs
-
- nvm alias node 0.12
- nvm alias default iojs
+ nvm install 5.1
+ nvm alias latest 5.1
+ nvm alias default latest
nvm use default
status "Updating npm" | bash |
d_bash_22055 | ---
+++
@@ -14,5 +14,5 @@
..
make -j
-ctest
+ctest -V
make install | bash |
d_bash_22056 | ---
+++
@@ -13,7 +13,7 @@
if [ $? == 0 ]; then
chmod go+r *
rm -rf /config/blocklists/*
- cp /tmp/blocklists/blocklist.gz /config/blocklists/
+ cp /tmp/blocklists/* /config/blocklists/
s6-svc -h /var/run/s6/services/transmission
fi
fi | bash |
d_bash_22057 | ---
+++
@@ -24,12 +24,12 @@
django_start() {
./manage.py migrate
+ if [ "${DJANGO_COLLECT_STATIC}" == "yes" ]; then
+ ./manage.py collectstatic -c --noinput
+ fi
if [ "${DEPLOY_ENV}" == "dev" ]; then
./manage.py runserver 0.0.0.0:8000
else
- if [ "${DJANGO_COLLECT_STATIC... | bash |
d_bash_22058 | ---
+++
@@ -16,7 +16,7 @@
if [ ! -L /var/lib/postgresql ]; then
service postgresql stop
if [ -e /var/lib/postgresql ]; then
- mv /var/lib/postgresql "/root/postgres-data-$(date +'%m-%d-%Y-%T')"
+ mv /var/lib/postgresql "/root/postgresql-data-$(date +'%m-%d-%Y-%T')"
fi
ln -s /srv/pos... | bash |
d_bash_22059 | ---
+++
@@ -24,8 +24,6 @@
# do initial per-user set up
cd "$WBDIR"
./scripts/setup_4store.sh # create /var/lib/4store (prompts for admin password)
-cd "$WBDIR"
-./scripts/new_4store_kb.sh # create webbox kb (if not exists)
# run webbox, output to log
cd "$WBDIR" | bash |
d_bash_22060 | ---
+++
@@ -34,6 +34,16 @@
END
\$body$;
+SELECT ddl_tools.test_function(
+ '_test_$name'
+ , $body$
+ s CONSTANT name := bs;
+ f CONSTANT name := fn;
+BEGIN
+END
+$body$
+);
+
-- vi: expandtab ts=2 sw=2
_EOF_
| bash |
d_bash_22061 | ---
+++
@@ -8,8 +8,14 @@
for path in "${pathElements[@]}"; do
: "$path"
case $path in
+ "~+")
+ path=$PWD/${path#"~+"}
+ ;;
"~+"/*)
path=$PWD/${path#"~+/"}
+ ;;
+ "~-")
+ path=$OLDPWD/${path#"~-"}
;;
"~-"/*)
path=$OLDPWD/${pat... | bash |
d_bash_22062 | ---
+++
@@ -4,7 +4,7 @@
PHP_RUNTIME='php:7.3-cli'
fi
-RUN_CMDS=''
+RUN_CMDS='echo memory_limit=256M > $PHP_INI_DIR/conf.d/zz-custom.ini'
if [[ $PHPUNIT_OPTS =~ (^|[[:space:]])--coverage-[[:alpha:]] ]]; then
RUN_CMDS="$RUN_CMDS && \\\\\n pecl install pcov && docker-php-ext-enable pcov"
fi | bash |
d_bash_22063 | ---
+++
@@ -3,8 +3,16 @@
echo "Must be run as root with sudo!"
exit 1
fi
+
echo "Temporarily disabling FTDI drivers."
kextunload -b com.apple.driver.AppleUSBFTDI
kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext
echo ""
+
python run.py $@
+
+echo ""
+echo "Enabling FTDI drivers again."
+kextl... | bash |
d_bash_22064 | ---
+++
@@ -2,4 +2,4 @@
set -e
-dotnet run -p tools/Google.Cloud.Tools.ReleaseManager -- $*
+dotnet run -p tools/Google.Cloud.Tools.ReleaseManager -- "$@" | bash |
d_bash_22065 | ---
+++
@@ -9,13 +9,11 @@
exit 1
fi
-# Get the directory of this script, for paths to python files
-DIR="$(dirname "$(readlink -f "$0")")"
-
# Specify exact python location - uses 2.7 and doesn't rely on path
PYTHON_BIN=$(which python2.7)
+SITE_PACKAGES=$($PYTHON_BIN -c "import site;print site.getsitepackages... | bash |
d_bash_22066 | ---
+++
@@ -4,8 +4,10 @@
cd $(dirname $0)
+tag_name=`curl -s https://api.github.com/repos/protocolbuffers/protobuf/releases/latest | grep tag_name | cut -d '"' -f 4`
+echo "updating protoc binaries to version $tag_name" >&2
+
for arch in linux-aarch_64 linux-ppcle_64 linux-x86_32 linux-x86_64 osx-x86_64 win32; ... | bash |
d_bash_22067 | ---
+++
@@ -13,6 +13,10 @@
sed -i.bak "s/awscli==[0-9.]* /awscli==${new_version} /" Dockerfile
rm Dockerfile.bak
+
+docker build -t awscli-test .
+docker rmi awscli-test
+
git add Dockerfile
git commit --no-edit -m "Update AWS CLI version to ${new_version}"
git tag "${new_version}" | bash |
d_bash_22068 | ---
+++
@@ -14,3 +14,4 @@
sed -i "1i $LOG_ENTRY" History.md
sed -i "s/\(\"version\"\):.*$/\1: \"${VERSION}\",/" package.json
sed -i "s/\(\"version\"\):.*$/\1: \"${VERSION}\",/" bower.json
+sed -i "s/\(v[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\)/v${VERSION}/" README.md | bash |
d_bash_22069 | ---
+++
@@ -20,10 +20,16 @@
make -C ./scripts/schema/ clean
make -C ./scripts/schema/ setup
+if [ $TRAVIS ]; then
+ CQLSH="/usr/local/cassandra/bin"
+else
+ CQLSH="cqlsh"
+fi
+
sleep 0.5
-cqlsh 127.0.0.1 9160 < ./scripts/schema/rproxy-combined.cql &
-cqlsh 127.0.0.1 9160 < ./scripts/schema/farscape-combined.... | bash |
d_bash_22070 | ---
+++
@@ -35,4 +35,6 @@
./Documentation/install/install_local.sh ${namespace} e2e/resources
+
+# run tests
KUBECONFIG=~/.kube/config NAMESPACE=${namespace} go test -v ./e2e/... ${1/[[:alnum:]-]*/-run ${1}} | bash |
d_bash_22071 | ---
+++
@@ -26,7 +26,7 @@
make kl-coverage
else
make
- ctest
+ CTEST_OUTPUT_ON_FAILURE=1 ctest
fi
if [ "$VARIANT" = "Coverage" ]; then | bash |
d_bash_22072 | ---
+++
@@ -1,7 +1,7 @@
#! /bin/bash
baselocation=$PWD
apt-get update
-apt-get install libasound2-dev memcached python-pip mpg123 python-alsaaudio python-aubio
+apt-get -y install libasound2-dev memcached python-pip mpg123 python-alsaaudio python-aubio
pip install -r requirements.txt
cp initd_alexa.sh /etc/init.... | bash |
d_bash_22073 | ---
+++
@@ -14,6 +14,17 @@
service rdma start
modprobe pib
service opensm start
+
+ ip addr add 192.168.100.100/24 dev ib0 ... | bash |
d_bash_22074 | ---
+++
@@ -4,8 +4,8 @@
cd moor
echo $(pwd)
-dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
-dartanalyzer --options analysis_options.yaml --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$?
+dart format -o none --set-exit-if-changed . || EXIT_CODE=$?
+dart analyze --fatal-infos --fatal-warnings || EXIT_... | bash |
d_bash_22075 | ---
+++
@@ -22,6 +22,7 @@
mkdir -p ~/.ssh/sockets
ln -snf ~/dotfiles/ssh/ssh_config ~/.ssh/config
+# Symlink GPG configuration
mkdir -p ~/.gnupg
ln -sf ~/dotfiles/gpg/* ~/.gnupg
| bash |
d_bash_22076 | ---
+++
@@ -1,3 +1,4 @@
#!/bin/sh
-sudo python2.6 b2bua_radius.py -f -u -s 'pennytel.com;op=202.85.245.137;auth=8889203691:sobomax123' -A 0 --rtp_proxy_clients="/var/run/rtpproxy.sock"
+sudo python2.6 b2bua_radius.py -f -u -s 'pennytel.com;op=202.85.245.137;auth=8889203691:sobomax123' \
+ -A 0 --rtp_proxy_clients... | bash |
d_bash_22077 | ---
+++
@@ -1,44 +1,17 @@
-#!/bin/bash -x
+#!/bin/bash -e
-# An experiment inspired by https://github.com/travis-ci/travis-ci/issues/2312#issuecomment-195620855.
-
-find_program () {
- local matches="$(which -a "$1")"
- echo "Matches for '$1' program on PATH:"
- if [ -z "$matches" ]; then
- echo " - (none)"
-... | bash |
d_bash_22078 | ---
+++
@@ -1,3 +1,3 @@
# For zsh-bundle-exec plugin
BUNDLE_EXEC_GEMFILE_CURRENT_DIR_ONLY=yes
-BUNDLE_EXEC_COMMANDS='rails rake rspec spring'
+BUNDLE_EXEC_COMMANDS='annotate rails rake rspec spring' | bash |
d_bash_22079 | ---
+++
@@ -38,7 +38,7 @@
chmod +x $buildFile
# Cleanup
- if test ! -d $tempFolder; then
+ if test -d $tempFolder; then
rm -rf $tempFolder
fi
fi | bash |
d_bash_22080 | ---
+++
@@ -2,6 +2,7 @@
local title="$1"
echo -ne "\e]0;$title\007"
}
+
precmd () {
set_xterm_title "${USER}@${HOSTNAME} `dirs -0` $PROMPTCHAR"
@@ -11,4 +12,6 @@
set_xterm_title "$1 {`dirs -0`} (${USER}@${HOSTNAME})"
}
-preexec_install
+case "$TERM" in
+ xterm*|rxvt*) preexec_install;;
+... | bash |
d_bash_22081 | ---
+++
@@ -6,7 +6,7 @@
for DOTFILE in .{vim,gvim}rc .vim .dircolors .tmux.conf .gitconfig; do
ln -sTi $(pwd)/${DOTFILE} ~/${DOTFILE}
done
- for DOTFILE in .bash_{aliases,exports,extra,profile,prompt} .bashrc; do
+ for DOTFILE in .bash_{profile,path,prompt,exports,aliases,functions,extra} .bashrc; do
... | bash |
d_bash_22082 | ---
+++
@@ -20,10 +20,6 @@
COREFILE=$(ls "$COREDIR"/core*)
echo
echo "It looks like ${EXECUTABLE} generated a core file at ${COREFILE}"
- if test -n "$RR"; then
- echo "rr is recording, skipping gdb backtrace generation"
- exit 0
- fi
echo "Backt... | bash |
d_bash_22083 | ---
+++
@@ -17,3 +17,4 @@
./tests/check-conversion.sh
./tests/test-leaky-relu.sh
./tests/test-elu.sh
+./tests/test-unsplit-model.sh | bash |
d_bash_22084 | ---
+++
@@ -2,7 +2,7 @@
if [[ $(bc -l <<< "$(java -version 2>&1 | awk -F '\"' '/version/ {print $2}' | awk -F'.' '{print $1"."$2}') >= 11") -eq 1 ]]; then
export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo "pull-request-$TRAVIS_PULL_REQUEST"; fi)
- mvn -Pcoverage ... | bash |
d_bash_22085 | ---
+++
@@ -8,6 +8,8 @@
set -e
+wget -q --spider https://pypi.python.org/simple || { echo "Error: Couldn't connect to PyPi. Is your DNS configured correctly?"; exit 1; }
+
if [ -e /etc/environment ]; then
source /etc/environment
export http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY | bash |
d_bash_22086 | ---
+++
@@ -14,9 +14,8 @@
# Install homebrew packages
brew install grc coreutils spark postgis node caskroom/cask/brew-cask openssl qt phantomjs198 node
-brew cask install 1password adobe-creative-cloud adobe-reader alfred atom backblaze caffeine dash dropbox evernote firefox flash git google-chrome google-drive ... | bash |
d_bash_22087 | ---
+++
@@ -3,10 +3,11 @@
>&2 echo "usage: ${FUNCNAME[0]} <directory to create>"
return 1;
fi
- if [[ -d $1 ]] || [[ -f $1 ]] ; then
+ if [[ -e $1 ]] ; then
>&2 echo "$1 already exists"
return 1;
fi
mkdir -p $1;
cd $1;
+ pwd;
} | bash |
d_bash_22088 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/bash
-go build . || exit 1
+set -e
+go build gen.go
./gen > expr1.go
gofmt -w expr1.go | bash |
d_bash_22089 | ---
+++
@@ -3,7 +3,7 @@
STATIC=/home/ubuntu/static
MIGRATIONS=/home/ubuntu/migrations
SCRIPTS=/home/ubuntu/scripts
-APP=/home/.local/bin/features
+APP=/home/ubuntu/.local/bin/features
if [ -d "$STATIC" ]; then
rm -rf $STATIC | bash |
d_bash_22090 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
set -ex
-wget https://github.com/erincatto/Box2D/archive/master.zip -O /tmp/box2d-master.zip
+wget https://github.com/erincatto/Box2D/archive/v2.3.1.zip -O /tmp/box2d-master.zip
unzip /tmp/box2d-master.zip
cd Box2D-master/Box2D/Build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DBOX2... | bash |
d_bash_22091 | ---
+++
@@ -2,6 +2,7 @@
PACKAGES="
wget
+logrotate
"
# Install corosync with pacemaker
apt-get -y install $PACKAGES | bash |
d_bash_22092 | ---
+++
@@ -8,6 +8,7 @@
### file icons
apm install file-icons
+# setting file-icons: only colour when changed
### formating
apm install atom-beautify sort-lines | bash |
d_bash_22093 | ---
+++
@@ -1,34 +1,25 @@
#!/usr/bin/env bash
-# We can optionally pass in the desired repository and branch. For example,
-#
-# ./Modules/ThirdParty/MetaIO/UpdateFromUpstream.sh \
-# https://github.com/Kitware/MetaIO.git \
-# pull/30/head:large-uncompression
+set -e
+set -x
+shopt -s dotglob
-thirdparty_mod... | bash |
d_bash_22094 | ---
+++
@@ -3,5 +3,5 @@
-e "s/(\"database\":).*/\1 \"matrixdb\",/" \
-e "s/(\"username\":).*/\1 \"root\",/" \
-e "s/(\"password\":).*/\1 \"$MYSQLD_ENV_MYSQL_ROOT_PASSWORD\",/" \
- /app/server/datasources.json
+ server/datasources.json
| bash |
d_bash_22095 | ---
+++
@@ -24,7 +24,7 @@
SED="sed -i.bak -r -e"
fi
-PROVIDER_URL="https:\/\/github.com\/terraform-providers\/terraform-provider-openstack"
+PROVIDER_URL="https:\/\/github.com\/terraform-providers\/terraform-provider-openstack\/issues"
$SED "s/GH-([0-9]+)/\[#\1\]\($PROVIDER_URL\/\1\)/g" -e 's/\[\[#(.+)([0-9]... | bash |
d_bash_22096 | ---
+++
@@ -2,7 +2,7 @@
make clean
cd third_party/protobuf \
&& ./autogen.sh \
- && ./configure
+ && ./configure \
&& make install -j8 \
&& cd ../..
cd third_party/grpc \ | bash |
d_bash_22097 | ---
+++
@@ -5,4 +5,5 @@
git \
dh-make \
dh-make-perl \
-pbuilder-scripts
+pbuilder-scripts \
+ubuntu-dev-tools | bash |
d_bash_22098 | ---
+++
@@ -10,7 +10,7 @@
# Scrape the webpages into a specific directory
echo "+ Scraping site"
-wget -P static_site -X "/user,/feeds,/flag,/search/everything,/vote,/dataset" --adjust-extension -p --convert-links --restrict-file-names=windows -m -e robots=off --wait .5 -x http://$RESERVE_SITE
+wget -P static_s... | bash |
d_bash_22099 | ---
+++
@@ -12,5 +12,8 @@
mkdir -p "$HOME"/.fonts
curl -L -o "$HOME"/.fonts/FontAwesome.otf \
- https://github.com/FortAwesome/Font-Awesome/raw/master/fonts/FontAwesome.otf
+ https://github.com/FortAwesome/Font-Awesome/raw/41b9ed01103e6820c3cb043ba7ddab30ecd3f4c0/fonts/FontAwesome.otf
+ curl -L -o "$HO... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.