document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_8800 | ---
+++
@@ -15,7 +15,7 @@
fi
[ ! -f ${_cake_task_cache_file} ] && return 0;
- [ ${_cake_task_cache_file} -nt Cakefile ] && return 0;
+ [ Cakefile -nt ${_cake_task_cache_file} ] && return 0;
return 1;
}
| bash |
d_bash_8801 | ---
+++
@@ -4,7 +4,7 @@
virtualenv .quickstart --system-site-packages
source .quickstart/bin/activate
-pip install git+https://github.com/trown/tripleo-quickstart.git@mitaka#egg=tripleo-quickstart
+pip install git+https://github.com/trown/tripleo-quickstart.git@master#egg=tripleo-quickstart
# tripleo-quickstart ... | bash |
d_bash_8802 | ---
+++
@@ -7,17 +7,22 @@
# in CentOS 7
export PATH=$PATH:/usr/libexec
+# Set default values for kernel and initrd
+#
+KERNEL=${KERNEL:-"$KERNDEV_HOME/boot/bzImage"}
+INITRD=${INITRD:-"$KERNDEV_HOME/boot/initramfs.img"}
+
+echo "Using kernel: ${KERNEL}"
+echo "Using initrd: ${INITRD}"
+
sudo /usr/libexec/qemu-kv... | bash |
d_bash_8803 | ---
+++
@@ -15,15 +15,25 @@
MYSQL_COMMAND="mysql -h mariadb -u $MYSQL_USER --password=$MYSQL_PASSWORD"
-until eval $MYSQL_COMMAND -e ";" ; do
+until eval $MYSQL_COMMAND -e "use opendc;" ; do
echo "MariaDB is unavailable - sleeping"
sleep 1
done
-NUM_TABLES=$(eval "$MYSQL_COMMAND -B --disable-column-name... | bash |
d_bash_8804 | ---
+++
@@ -9,7 +9,7 @@
echo -e "Publishing javadoc to gh-pages . . .\n"
-cp -R ./gwtbootstrap3-extras/target/javadoc $HOME/javadoc-latest
+cp -R -v ./target/apidocs $HOME/javadoc-latest
git config --global user.email "travis@travis-ci.org"
git config --global user.name "travis-ci"
@@ -28,7 +28,7 @@
g... | bash |
d_bash_8805 | ---
+++
@@ -1,6 +1,7 @@
#-------------------------------------------------------------------------------
#
# Objective-C Source Code Formatting
+# xcode/uncrustify.zsh
#
#-------------------------------------------------------------------------------
| bash |
d_bash_8806 | ---
+++
@@ -3,4 +3,5 @@
rm -rf .meteor/local/cordova-build
rm -rf ../Rocket.Chat-build
meteor build ../Rocket.Chat-build --server https://rocket.chat
+sed -i '' 's/IPHONEOS_DEPLOYMENT_TARGET[[:space:]]=[[:space:]]6\.0/IPHONEOS_DEPLOYMENT_TARGET = 7\.0/g' .meteor/local/cordova-build/platforms/ios/Rocket.Chat.xcodep... | bash |
d_bash_8807 | ---
+++
@@ -7,7 +7,7 @@
_phing () {
if [ -f build.xml ]; then
if _phing_does_target_list_need_generating; then
- phing -l |grep -v ":" |grep -v "^$"|grep -v "\-" > .phing_targets
+ phing -l |grep -v ":$" |grep -v "^-*$" > .phing_targets
fi
compadd `cat .phing_targets`
fi | bash |
d_bash_8808 | ---
+++
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-# The NSA XSAPR file is no longer available
-#wget --no-check-certificate https://engineering.arm.gov/~jhelmus/sample_xsapr_a1_files/2013_12_03_NSA/nsaxsaprrhiC1.a1/nsaxsaprrhiC1.a1.20131203.141936.nc
+wget --no-check-certificate https://engineering.arm.gov/~jhelmus/nsaxs... | bash |
d_bash_8809 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-echo $GOOGLE_CREDS_STRING | base64 -D > google-creds_sortmybox-hrd.json
+echo $GOOGLE_CREDS_STRING | base64 -d > google-creds_sortmybox-hrd.json | bash |
d_bash_8810 | ---
+++
@@ -21,7 +21,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
-DB_URI=mssql://csra:$1@csra-stage.database.windows.net:1433/csra-stage APP_BASE_URL=https://csra-stage.hmpps.dsd.io yar... | bash |
d_bash_8811 | ---
+++
@@ -24,7 +24,6 @@
brew cask install iina
brew cask install imageoptim
brew cask install intellij-idea
-brew cask install invisionsync
brew cask install istat-menus
brew cask install iterm2
brew cask install java
@@ -43,13 +42,10 @@
brew cask install sketch
brew cask install skype
brew cask install sl... | bash |
d_bash_8812 | ---
+++
@@ -9,7 +9,7 @@
}
run-grep() {
- run-timed grep --color=always -E -ri "$@" $NEEDLE tst > /dev/null
+ run-timed grep --color=always -n -E -ri "$@" $NEEDLE tst > /dev/null
}
run-ag() { | bash |
d_bash_8813 | ---
+++
@@ -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_8814 | ---
+++
@@ -25,6 +25,8 @@
# Copy backup collect and list
cp src/backup-collect.sh /root/
cp src/backup-list.sh /root/
+chmod 755 /root/backup-collect.sh
+chmod 755 /root/backup-list.sh
# Installation complete
echo "Installation is complete." | bash |
d_bash_8815 | ---
+++
@@ -14,7 +14,7 @@
mkdir --parents ${archive_dir}
${image_vsphere_ovf_ovftool_path} \
- --extraConfig:displayname="Micro Cloud Foundry v${version}" \
+ --extraConfig:displayname="Micro Cloud Foundry ${version}" \
${work}/vsphere/image.ovf \
${archive_dir}/micro
| bash |
d_bash_8816 | ---
+++
@@ -17,5 +17,17 @@
$script_dir/speedtest-cli-extras/bin/speedtest-csv --header > $output_file
fi
+# TODO Read https://www.raspberrypi.org/learning/networking-lessons/lessons/
+# TODO Include a column for hostname - so I can use hostname to indicate location
+# TODO Include a column for connection type... | bash |
d_bash_8817 | ---
+++
@@ -1,11 +1,18 @@
#!/bin/bash
-sleep 10
+
+/sbin/ifup wlan0
+
MY_PATH="`dirname \"$0\"`"
MY_PATH="`( cd \"$MY_PATH\" && pwd )`"
cd $MY_PATH
cd ..
+git pull
+make
+
rsync ./data/solarpi.csv rsync://192.168.178.36/data/solarpi
+sleep 60
+/sbin/ifdown wlan0 | bash |
d_bash_8818 | ---
+++
@@ -5,11 +5,11 @@
sudo apt-get update && sudo apt-get install libx11-dev:i386
mkdir $dighome
+cp ./diglog32.patch $dighome
cd $dighome
wget http://john-lazzaro.github.io/chipmunk/pickup/sources/psys-1.61.tar.gz
wget http://john-lazzaro.github.io/chipmunk/pickup/sources/log-5.66.tar.gz
-wget http://ww... | bash |
d_bash_8819 | ---
+++
@@ -12,4 +12,16 @@
}
popd
}
-dict_init
+function generate_exc()
+{
+ local exc_file='pydict'
+ local cpath=`pwd`
+ echo "#!/bin/bash" > $exc_file
+ echo "python3 $cpath/main.py $@" > $exc_file
+ chmod u+x $exc_file
+}
+if [ ! -f dict.db ]
+then
+ dict_init
+fi
+generate_exc | bash |
d_bash_8820 | ---
+++
@@ -4,7 +4,7 @@
BUILDROOT=$HOME/heartbot
if [[ ! -e .pythonz ]]; then
- wget https://raw.github.com/saghul/pythonz/master/pythonz-install | bash
+ wget -O - https://raw.github.com/saghul/pythonz/master/pythonz-install | bash
declare -a pythons=("2.6.9" "2.7.9" "3.2.6", "3.3.6", "3.4.2")
... | bash |
d_bash_8821 | ---
+++
@@ -1,16 +1,18 @@
#!/bin/sh
+ip=$(ip a|egrep 'inet[^6]'|fgrep -v 127.0.0.1|sed -r -e 's/.*inet ([0-9.]+).*/\1/g'|head -1)
+
urls="\
-http://10.0.7.117:9494/v1/reports/projects/resultset/ \
-http://10.0.7.117:9494/v1/reports/projects/resultset \
-http://10.0.7.117:9494/v1/reports/projects/ \
-http://10.0.7... | bash |
d_bash_8822 | ---
+++
@@ -23,5 +23,12 @@
run_and_check sudo apt-get update && sudo apt-get --only-upgrade install kubectl google-cloud-sdk google-cloud-sdk-datastore-emulator google-cloud-sdk-pubsub-emulator google-cloud-sdk-app-engine-go google-cloud-sdk-app-engine-java google-cloud-sdk-app-engine-python google-cloud-sdk-cbt g... | bash |
d_bash_8823 | ---
+++
@@ -32,12 +32,14 @@
}
adbinstall() {
- usage $# "APK_FILE"
+ usage $# "APK_FILE" "[EXTRA_ARGS]"
## Display Usage and exit if insufficient parameters. Parameters prefix with [ are OPTIONAL.
if [[ "$?" -ne 0 ]]; then return -1; fi
+ echo "== At the end append -r for forcing install =="
local A... | bash |
d_bash_8824 | ---
+++
@@ -1,6 +1,4 @@
#!/bin/bash
-
-vagrant box add --provider libvirt --name centos/8 https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-Vagrant-8.1.1911-20200113.3.x86_64.vagrant-libvirt.box
retries=0
until [ $retries -ge 5 ] | bash |
d_bash_8825 | ---
+++
@@ -17,3 +17,7 @@
# Fix LD_LIBRARY_PATH - otherwise libstdc++ breaks
export LD_LIBRARY_PATH=/shared/ucl/apps/gcc/4.9.2/lib64:${LD_LIBRARY_PATH}
+
+# Fix CC/CXX
+export WM_CXX=$CXX
+export WM_CC | bash |
d_bash_8826 | ---
+++
@@ -22,7 +22,8 @@
source hack/common.sh
source hack/config.sh
-mkdir -p "${TESTS_OUT_DIR}/tests"
+rm -rf "${TESTS_OUT_DIR}"
+mkdir -p "${TESTS_OUT_DIR}"
bazel run \
:build-ginkgo -- ${TESTS_OUT_DIR}/ginkgo
bazel run \ | bash |
d_bash_8827 | ---
+++
@@ -38,7 +38,7 @@
rm -rf bin/ target/
-gb test
+gb test -v
if [ $? -ne 0 ]; then
echo "Tests failed -- bailing out..."
exit 1 | bash |
d_bash_8828 | ---
+++
@@ -15,7 +15,6 @@
SKIP_REGEX="${SKIP_REGEX:+${SKIP_REGEX}|}routing.API"
SKIP_REGEX="${SKIP_REGEX}|Adding a wildcard route to a domain"
SKIP_REGEX="${SKIP_REGEX}|when app has multiple ports mapped"
-SKIP_REGEX="${SKIP_REGEX}|Dynamic ASGs"
SKIP_REGEX="${SKIP_REGEX// /\\s}" # Replace ' ' with \s
export CO... | bash |
d_bash_8829 | ---
+++
@@ -3,7 +3,10 @@
# Simple script to Build a docker image and push to the USGO Org's Docker hub
# repository.
if [ "$TRAVIS_BRANCH" == "release" ]; then
- docker build -t usgo/online-ratings-web web/
+ IMAGE_TAG=$TRAVIS_COMMIT
+ WEB_IMAGE=usgo/online-ratings-web:$IMAGE_TAG
+ echo "Building and pushing i... | bash |
d_bash_8830 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/sh
-export KUBEVER=1.8.0-00
+export KUBEADMVER=1.8.1-01
+export KUBECTLVER=1.8.1-00
export DOCKERVER=17.03.2~ce-0~ubuntu-xenial
apt-get update && apt-get install -yq apt-transport-https \
@@ -25,6 +26,6 @@
stable"
apt-get update && apt-get install -yq \
- kubeadm=$KUBEVER ... | bash |
d_bash_8831 | ---
+++
@@ -1,6 +1,16 @@
-[[ -x ~/src/puppet/ext/envpuppet ]] && alias puppet="~/src/puppet/ext/envpuppet puppet"
-[[ -x ~/src/puppet/ext/envpuppet ]] && alias facter="~/src/puppet/ext/envpuppet facter"
-#[[ -x ~/src/puppet/ext/envpuppet ]] && alias mco="~/src/puppet/ext/envpuppet /Users/zach/src/marionette-collectiv... | bash |
d_bash_8832 | ---
+++
@@ -5,16 +5,8 @@
# Install some OS X apps using Cask
echo "• Installing Homebrew Cask and some apps"
brew install caskroom/cask/brew-cask
-for app in "github-desktop" "hopper-disassembler" "skype" "the-unarchiver" "transmission" "sketch" "coderunner" "slack" "0xed" "virtualbox" "dropdmg" "atom" "pacifist" ... | bash |
d_bash_8833 | ---
+++
@@ -25,11 +25,12 @@
docker run --rm -v "$PWD":/app -w /app -p 8080:8080 iron/base ./static
;;
image)
- if [[ -z "$2" ]]; then
+ local image="$2"
+ if [[ -z "$image" ]]; then
echo "Missing image name"
exit 1
fi
- docker run --rm -v "$PWD":/app -w ... | bash |
d_bash_8834 | ---
+++
@@ -5,20 +5,34 @@
# immediately after a "RUN:" string.
#
# This runner recognizes and replaces the following strings in the command:
-# %s - Replaced with the input name of the program
+#
+# %s - Replaced with the input name of the program, or the program to
+# execute, as appropriate... | bash |
d_bash_8835 | ---
+++
@@ -44,13 +44,3 @@
alias casko='brew outdated --cask'
alias casks='brew search --cask'
alias caskx='brew uninstall --cask'
-
-function hb_deprecated {
- local cmd="${@[3]}"
- local cmd_args="${@:4}"
-
- printf "'brew cask %s' has been deprecated, " "${cmd}"
- printf "using 'brew %s' instead\n" "${cmd}"... | bash |
d_bash_8836 | ---
+++
@@ -4,6 +4,14 @@
copya=$(mktemp)
outfile=outcards.csv
max=14
+if [ ".$1." != ".." ]
+then
+ outfile=$1
+fi
+if [ ".$2." != ".." ]
+then
+ max=$2
+fi
for i in $(cut -f1 -d',' dynamic.csv | grep . | tail --lines=+2)
do
seq --format=",$i,%g,," 1 "$max" | tee -a "$filea" >> "$fileb" | bash |
d_bash_8837 | ---
+++
@@ -4,7 +4,7 @@
ln -snf /usr/local/var/pyenv "$HOME/.pyenv"
fi
-python_version="$(cat "$HOME/.dotfiles/files/.python-version")"
+python_version="$(cat "$HOME/.dotfiles/.python-version")"
neovim_venv="neovim3"
pyenv install --skip-existing "$python_version" | bash |
d_bash_8838 | ---
+++
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
function interactive_load() {
- export TERM=xterm-256color
- export PATH=$HOME/bin:$PATH
- module color util
+ export TERM=${TERM:-xterm-256color}
+ export PATH="${HOME}"/bin:"${PATH}"
+ module color util datetime
source "$(module_get_path interac... | bash |
d_bash_8839 | ---
+++
@@ -14,7 +14,16 @@
cd $LOGDIR;
+echo "Log Folder:" $(pwd);
+
for D in *; do
+
+ # Check if any logs are available. If not, scripts ends
+ if [[ $D == '*' ]]
+ then
+ echo "No logs found. Script ends.";
+ exit;
+ fi
echo "Read file:" $D;
| bash |
d_bash_8840 | ---
+++
@@ -30,7 +30,7 @@
ulimit -t 40
SCRIPT=$OUTPUT.script
-grep 'RUN:' $FILENAME | sed "s|^.*RUN:\(.*\)$|\1|g;s|%s|$SUBST|g;s|%llvmgcc|llvmgcc|g;s|%llvmgxx|llvmg++|g" > $SCRIPT
+grep 'RUN:' $FILENAME | sed "s|^.*RUN:\(.*\)$|\1|g;s|%s|$SUBST|g;s|%llvmgcc|llvm-gcc|g;s|%llvmgxx|llvm-g++|g" > $SCRIPT
/bin/sh ... | bash |
d_bash_8841 | ---
+++
@@ -11,10 +11,12 @@
pushd ${PROJECT_PATH}
+rm -f .coverage
+
# Run tests.
for TEST_FILE in $(find tests -name "*_test.py"); do
echo "Running tests in ${TEST_FILE}"
- python3 -m coverage run ${TEST_FILE}
+ python3 -m coverage run -a ${TEST_FILE}
done
echo "All tests passed!"
| bash |
d_bash_8842 | ---
+++
@@ -4,7 +4,7 @@
NW_VERSION=$1
NW_VERSION=${NW_VERSION:=0.8.0}
-REBUILD_MODULES=("codebox/node_modules/shux/node_modules/pty.js" "codebox/node_modules/ctags" "codebox/node_modules/gittle/node_modules/pty.js" "codebox/node_modules/vfs-local/node_modules/pty.js")
+REBUILD_MODULES=("codebox/node_modules/shux/... | bash |
d_bash_8843 | ---
+++
@@ -4,11 +4,13 @@
online_option_string="@online_icon"
offline_option_string="@offline_icon"
+route_to_ping_string="@route_to_ping"
online_icon_osx="✅ "
online_icon="✔ "
offline_icon_osx="⛔️ "
offline_icon="❌ "
+route_to_ping_default="www.google.com"
source $CURRENT_DIR/shared.sh
@@ -33,7 +35,7 ... | bash |
d_bash_8844 | ---
+++
@@ -4,5 +4,13 @@
VALGRIND_OPTS="--leak-check=full --leak-resolution=high \
--show-reachable=yes --track-origins=yes"
VALGRIND="valgrind $VALGRIND_OPTS"
+
+for datafile in NBEST REF.0 REF.1 REF.2; do
+ if ! [ -f $datafile ]; then
+ echo "Error: $datafile does not exist."
+ exit 1
+ fi
+d... | bash |
d_bash_8845 | ---
+++
@@ -1,2 +1,3 @@
#!/bin/bash
+find ./ -iname '*.pyc' -exec rm {} \;
git buildpackage --git-dist=wheezy --git-debian-branch=master --git-ignore-new --git-sign-tags | bash |
d_bash_8846 | ---
+++
@@ -39,3 +39,6 @@
# Install boards-web
bash /vagrant/scripts/boards-web/install.sh
+
+# Fix permissions in apps folder
+chown -R vagrant:vagrant apps/ | bash |
d_bash_8847 | ---
+++
@@ -5,7 +5,9 @@
exit 1
fi
-if ! git rev-parse --abbrev-ref HEAD | grep -q comp; then
+if [ "$(git rev-parse --abbrev-ref HEAD)" = "HEAD" ]; then
+ echo "HEAD IS DETATCHED AT COMMIT: $(git rev-parse HEAD)"
+elif ! git rev-parse --abbrev-ref HEAD | grep -q comp; then
echo "YOUR BRANCH DOES NOT C... | bash |
d_bash_8848 | ---
+++
@@ -8,6 +8,8 @@
if [ ! -z "$SYSLOG_HOSTNAME" ]; then
SYSLOG_HOSTNAME=${SYSLOG_HOSTNAME}_$INST
fi
+else
+ SYSLOG_HOSTNAME=${SYSLOG_HOSTNAME}
fi
/bin/logspout "$@" | bash |
d_bash_8849 | ---
+++
@@ -2,17 +2,9 @@
set -e
-IMAGE_NAME=katas-image
-CONTAINER_NAME=katas-container
-
-# TODO check for a Dockerfile update and build new then too
-#if uname | grep -q "Darwin"; then
-# mod_time_fmt="-f %m"
-#else
-# mod_time_fmt="-c %Y"
-#fi
-#stat ${mod_time_fmt} Dockerfile
-#docker inspect -f '{{ .C... | bash |
d_bash_8850 | ---
+++
@@ -4,18 +4,19 @@
SANDBOX=$(mktemp -d)
-echo "Building Linux..."
+printf "Building Linux...\n"
GOOS=linux go build -o $SANDBOX/antifreeze-linux github.com/odlp/antifreeze
-echo "Building OSX..."
+printf "Building OSX...\n"
GOOS=darwin go build -o $SANDBOX/antifreeze-darwin github.com/odlp/antifreeze
... | bash |
d_bash_8851 | ---
+++
@@ -1,6 +1,27 @@
#!/bin/bash
+echo "setting up test database"
./script/run_with_carton.sh ./script/mediawords_psql_wrapper.pl --dump-env-commands --db-label test > /tmp/test_db_$$
-echo /tmp/test_db_$$
+source /tmp/test_db_$$
+echo "running pg_restore"
pg_restore --clean -d $PGDATABASE data/db_dumps/cc... | bash |
d_bash_8852 | ---
+++
@@ -28,4 +28,7 @@
--exclude-line='unreachable!' \
target/debug/$build $@ 2>&1 >/dev/null
-echo "You can find the test coverage results at file://$(pwd)/target/cov/$build/index.html"
+# TODO The symbolic link that kcov generates is broken, so we have to do this workaround.
+report_dir=$(readlink ta... | bash |
d_bash_8853 | ---
+++
@@ -6,6 +6,12 @@
cp -r $INSPECTIT_CONFIG_HOME/../config/* $INSPECTIT_CONFIG_HOME
CMR_ADDR=${INSPECTIT_CMR_ADDR:-$CMR_PORT_9070_TCP_ADDR}
CMR_PORT=${INSPECTIT_CMR_PORT:-$CMR_PORT_9070_TCP_PORT}
+
+ if [ -z $CMR_ADDR ] || [ -z $CMR_PORT ]; then
+ echo "No inspectIT CMR configured! Please re... | bash |
d_bash_8854 | ---
+++
@@ -14,6 +14,20 @@
ROOT_DIR="$(get_script_dir)"
+used_ports=$(sudo /bin/sh -c "lsof -iTCP -sTCP:LISTEN -P -n | grep -E ':(8087|5432|2181|2888|3888|5050|5051|4400)'" || true)
+
+if [ "$used_ports" != "" ]; then
+ echo "Some applications already use the ports required by this set of applications. Please c... | bash |
d_bash_8855 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/bash
-ssh root@8.22.9.40 "docker rm -f lorry_ui; docker rmi -f centurylink/lorry-ui:qa; docker pull centurylink/lorry-ui:qa; docker run -d --name lorry_ui -p 8080:80 centurylink/lorry-ui:qa"
+ssh root@8.22.8.236 "docker rm -f lorry_ui; docker rmi -f centurylink/lorry-ui:qa; docker pull... | bash |
d_bash_8856 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/sh
php ../website_code/php/rebuildtemplate.php ../src/site/wizards/en-GB > convert.log
-cp ../src/site/wizards/en-GB/template.xwd ../modules/xerte/parent_templates/site/wizards/en-GB/data.xwd
+cp ../src/site/wizards/en-GB/template.xwd ../modules/site/parent_templates/site/wizards/en-G... | bash |
d_bash_8857 | ---
+++
@@ -32,3 +32,7 @@
# Web files install.
cd web/ && make stratuxBuild=${stratuxBuild}
+
+# Remove old Wi-Fi watcher script.
+rm -f /usr/sbin/wifi_watch.sh
+sed -i "/\bwifi_watch\b/d" /etc/rc.local | bash |
d_bash_8858 | ---
+++
@@ -6,10 +6,13 @@
run_daemon
+# Timeout for various operations
+timeout=10
+
# wait for the pid file to appear
-limit=20
+elapsed=0
while [ ! -s "${pidfile}" ] ; do
- [ $((elapsed+=1)) -lt $limit ] ||
+ [ $((elapsed+=1)) -le "${timeout}" ] ||
fail "timed out waiting for pid file to appear"
sleep 1... | bash |
d_bash_8859 | ---
+++
@@ -2,9 +2,8 @@
set -eu
image_id=$(buildkite-agent meta-data get image_id)
-branch=$(git rev-parse --abbrev-ref HEAD)
-echo "Publishing branch $branch"
+echo "Publishing branch $BUILDKITE_BRANCH"
cat << EOF > templates/mappings.yml
Mappings:
@@ -14,10 +13,10 @@
make setup build
-if [[ $branch =... | bash |
d_bash_8860 | ---
+++
@@ -6,7 +6,7 @@
exit 1
fi
-for dir in `find deps/leo_* -maxdepth 0` deps/savannah_mq
+for dir in `find deps/leo_* -maxdepth 0`
do
cd $dir
echo $dir | bash |
d_bash_8861 | ---
+++
@@ -17,8 +17,15 @@
alias xcp='xcode-select --print-path'
alias xcdd='rm -rf ~/Library/Developer/Xcode/DerivedData/*'
-if [[ -d $(xcode-select -p)/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app ]]; then
- alias simulator='open $(xcode-select -p)/Platforms/iPhoneSimulator.p... | bash |
d_bash_8862 | ---
+++
@@ -12,7 +12,7 @@
rkt_name=$(echo $COZY_JOB_ID | tr A-Z a-z | sed -e 's/[^a-zA-Z0-9\-]/-/g')
-trap 'sudo rkt stop --force --uuid-file="${uuid_file}" && sudo rkt rm --uuid-file="${uuid_file}"' SIGINT SIGTERM EXIT
+trap 'sudo rkt stop --force --uuid-file="${uuid_file}" 1>&2 && sudo rkt rm --uuid-file="${uu... | bash |
d_bash_8863 | ---
+++
@@ -20,7 +20,7 @@
conda update --yes conda
popd
-conda create -n testenv --yes python=$TRAVIS_PYTHON_VERSION pip pytest \
+conda create -n testenv --yes python=$TRAVIS_PYTHON_VERSION pip pytest hdf5 \
numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION numba scikit-learn statsmodels
source activate testen... | bash |
d_bash_8864 | ---
+++
@@ -23,7 +23,7 @@
cd components/script
cmake .
cmake --build . --target supported-apis
-cp apis.html target/doc/servo/
+cp apis.html ../../target/doc/servo/
cd ../..
ghp-import -n target/doc | bash |
d_bash_8865 | ---
+++
@@ -6,7 +6,7 @@
# The following is based on https://github.com/gma/bundler-exec
-bundled_commands=(annotate cap capify cucumber foreman guard heroku nanoc rackup rainbows rake rspec ruby shotgun spec spork thin thor unicorn unicorn_rails)
+bundled_commands=(annotate cap capify cucumber foreman guard hero... | bash |
d_bash_8866 | ---
+++
@@ -6,10 +6,10 @@
export PPP_CAS_CONFIG=cas_config.json
export PPP_LOGGER_CONFIG=logger_config.json
export PPP_ML_STANDALONE_CONFIG=qp_ml_standalone_config.json
-gunicorn ppp_core:app -b 0.0.0.0:9000 -w 10 &
-gunicorn ppp_questionparsing_grammatical:app -b 0.0.0.0:9001 -w 10 &
-gunicorn example_ppp_module:... | bash |
d_bash_8867 | ---
+++
@@ -11,4 +11,4 @@
ARGS=$(echo $ARGS | sed s/--require-kubeconfig//)
ARGS=$(echo $ARGS | sed s/node-role/node/)
-exec /hyperkube kubelet $ARGS
+exec /hyperkube kubelet $ARGS --containerized | bash |
d_bash_8868 | ---
+++
@@ -5,8 +5,7 @@
echo '' >> backup.log
echo '--------------------' >> backup.log
date >> backup.log
-rsync -av --stats --exclude='Images*' --exclude='Alignment*' $SRC virologysrv10
-.uzh.ch:$DST &>> backup.log
+rsync -av --stats --exclude='Images*' --exclude='Alignment*' $SRC virologysrv10.uzh.ch:$DST &>> b... | bash |
d_bash_8869 | ---
+++
@@ -9,6 +9,7 @@
--data language=ECMASCRIPT5 \
--data warning_level=verbose \
--data externs_url=https://www.cosmopolite.org/externs/cosmopolite.js \
+ --data externs_url=http://www.google.com/uds/modules/gviz/gviz-api.js \
--data-urlencode "js_code@babystats.js" \
http://closure-compiler.appsp... | bash |
d_bash_8870 | ---
+++
@@ -5,7 +5,7 @@
bin/run_tests --report_level=short
scons -c .
-dox/build-dox.sh
+sh dox/build-dox.sh
git checkout gh-pages
find . -maxdepth 1 ! -name 'html' ! -name '.git' | xargs rm -rf
mv html/* . | bash |
d_bash_8871 | ---
+++
@@ -6,6 +6,8 @@
sleep 3
curl -s http://localhost:8080/greeting > target/actual.json
kill -9 $PID
+
+cat target/actual.json
if diff -w ../test/expected.json target/actual.json
then | bash |
d_bash_8872 | ---
+++
@@ -7,5 +7,5 @@
#
# This script will only work if you have access to the above service via gcloud.
set -e
-TOKEN=$(gcloud --project=crosvm-infra secrets versions access 1 --secret="github-crosvm-bot")
+TOKEN=$(gcloud --project=crosvm-infra secrets versions access latest --secret="github-crosvm-bot")
git p... | bash |
d_bash_8873 | ---
+++
@@ -23,6 +23,10 @@
conda install --yes matplotlib
}
+function install_jinja2 {
+ conda install --yes jinja2
+}
+
function install_pylearn2 {
DIR="$1"
@@ -43,6 +47,7 @@
safe_call install_theano
safe_call install_joblib
safe_call install_matplotlib
+safe_call install_jinja2
safe_call inst... | bash |
d_bash_8874 | ---
+++
@@ -23,6 +23,7 @@
musl-tools \
net-tools \
pkg-config \
+ postgresql-server-dev-9.6 \
protobuf-compiler \
software-properties-common \
sudo \ | bash |
d_bash_8875 | ---
+++
@@ -1,5 +1,7 @@
# Ubuntu-only stuff. Abort if not Ubuntu.
is_ubuntu || return 1
+
+export DEBIAN_FRONTEND=noninteractive
# Update APT.
e_header "Updating APT"
@@ -22,5 +24,5 @@
if (( ${#packages[@]} > 0 )); then
e_header "Installing APT packages: ${packages[*]}"
- sudo apt -qq install ${packages... | bash |
d_bash_8876 | ---
+++
@@ -23,6 +23,7 @@
exclude_dir ~/Library
exclude_dir ~/n
exclude_dir ~/.atom
+exclude_dir ~/Music/iTunes/Album\ Artwork/Cache
# Clone Asimov for excluding development directories
if [ ! -d "$ASIMOV_PATH" ]; then | bash |
d_bash_8877 | ---
+++
@@ -23,7 +23,8 @@
systemctl daemon-reload
systemctl cat httpd.service
-
+echo ==== Set HTTP Timeout to 10 mins ====
+echo "Timeout 600" >> /etc/httpd/conf/httpd.conf
echo ==== Ready to restart httpd ====
sudo systemctl restart httpd | bash |
d_bash_8878 | ---
+++
@@ -29,5 +29,5 @@
echo
echo
echo
- go run spc_simple01.go
+ go run spc_fdm_simple01.go
done | bash |
d_bash_8879 | ---
+++
@@ -2,7 +2,7 @@
export EDITOR='nano'
# Paths
-export PATH="./bin:$HOME/bin:$HOME/.rbenv/plugins/ruby-build/bin:/usr/local/heroku/bin:/usr/local/foreman/bin:/usr/local/bin:$HOME/Code/go/bin:/Applications/Postgres.app/Contents/Versions/9.3/bin:$PATH"
+export PATH="$HOME/bin:$HOME/.rbenv/plugins/ruby-build/b... | bash |
d_bash_8880 | ---
+++
@@ -12,10 +12,6 @@
be rake db:seed
}
}
-
-# faster rails
-export RUBY_GC_MALLOC_LIMIT=60000000
-export RUBY_FREE_MIN=200000
#prefix tests with rake, allows globbing.
tst() { | bash |
d_bash_8881 | ---
+++
@@ -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_8882 | ---
+++
@@ -2,3 +2,26 @@
full-path () {
echo "$1:a"
}
+
+# Format argument (of seconds) into separate units (up to days).
+format-elapsed-time () {
+ local -F sec=$1
+ local -a elapsed
+ local -i i top
+
+ local -a units; units=('d' 'h' 'm')
+ local -a amts; amts=(86400 3600 60)
+
+ for ((i=1; i <= ${#uni... | bash |
d_bash_8883 | ---
+++
@@ -3,7 +3,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-TPUT=$(which tput)
+TPUT=$(which tput 2>/dev/null)
if test -x "$TPUT" && $TPUT setaf 1 >/dev/null ; then
RED="$($TPUT setaf 1)"
NORMAL="$($TPUT op)" | bash |
d_bash_8884 | ---
+++
@@ -8,8 +8,10 @@
IFS=$'\n'
for FILE in `find . -type f -name "*.applescript"`; do
echo "FILE: '${FILE}'"
- OUTFILE=$(echo "$FILE" | sed 's/\.applescript$/.app/')
- OUTFILE=$(echo "$OUTFILE" | sed 's/^.\/Scripts/~\/Applications/')
+ OUTFILE="$FILE"
+ OUTFILE=$(echo "$OUTFILE" | sed 's/\.applescript$/.... | bash |
d_bash_8885 | ---
+++
@@ -7,7 +7,8 @@
docker-compose -f config/services.yml up -d
-sleep 5
+
+docker run --name up-checker-database --link overview-database --rm overview/up-checker database
docker-compose -f config/db-setup.yml up
docker-compose -f config/overview.yml up -d
@@ -17,7 +18,7 @@
## Try to wait for server ... | bash |
d_bash_8886 | ---
+++
@@ -15,6 +15,6 @@
fi
if [[ "$1" == "win32" ]]; then
- export JDK_HOME=$(dirname $(dirname $(which javac)))
- echo "$JDK_HOME"; exit 0;
+ #export JDK_HOME=$(dirname $(dirname $(which javac)))
+ #echo "$JDK_HOME"; exit 0;
fi | bash |
d_bash_8887 | ---
+++
@@ -6,9 +6,10 @@
export STACK_NAME=cinder-standalone
export ROLES_DATA=$TEMPLATES/roles_data_undercloud.yaml
export COMMON_ENVIRONMENTS=0
+dir=$(dirname $0)
export ENVIRONMENTS="\
-e $TEMPLATES/environments/docker.yaml \
- -e cinder-standalone.yaml"
+ -e $dir/cinder-standalone.yaml"
deploy... | bash |
d_bash_8888 | ---
+++
@@ -1,14 +1,29 @@
#!/bin/sh
+TOOLS_PATH="/Users/vagrant/darwin.iso"
# VMware Fusion specific items
if [ -e .vmfusion_version ] || [[ "$PACKER_BUILDER_TYPE" == vmware* ]]; then
+ if [ ! -e "$TOOLS_PATH" ]; then
+ echo "Couldn't locate uploaded tools iso at $TOOLS_PATH!"
+ exit 1
+ fi
+... | bash |
d_bash_8889 | ---
+++
@@ -5,9 +5,4 @@
set -o pipefail
echo "Extracting cf-acceptance-tests from cf-release"
-
-pushd cf-release/src/github.com/cloudfoundry/cf-acceptance-tests/
- git cherry-pick 4731656e061ca14965a4f4fe47ee19bc6eaeeea2 --no-commit
-popd
-
rsync -a cf-release/src/github.com/cloudfoundry/cf-acceptance-tests/ c... | bash |
d_bash_8890 | ---
+++
@@ -3,4 +3,8 @@
#Dependencies
apt-get install -y dpkg dpkg-dev fakeroot python3 python3-pip socat nginx php5-cli gcc-multilib
-pip3 install --upgrade .
+pip3 install --upgrade pip
+
+sudo apt uninstall python3-pip
+
+bash -c 'pip3 install --upgrade .' | bash |
d_bash_8891 | ---
+++
@@ -23,8 +23,7 @@
USER_NAME=$1
-curl "https://api.github.com/users/$USER_NAME/keys" | grep key | tr -d '"' | cut -d' ' -f6- \
-| while read key
+curl "https://github.com/${USER_NAME}.keys" | while read key
do
echo "environment=\"GITHUB_USERNAME=$USER_NAME\" $key" | tee -a $GIT_HOME/.ssh/authorized_key... | bash |
d_bash_8892 | ---
+++
@@ -11,12 +11,12 @@
source activate grass
conda install --yes --file=requirements.txt -c noaa-orr-erd -c defaults -c conda-forge
-patch -p0 < platform.make.in.patch
-patch -p0 < loader.py.patch
-patch -p0 < rules.make.patch
-patch -p0 < aclocal.m4.patch
-patch -p0 < install.make.patch
-patch -p0 < configu... | bash |
d_bash_8893 | ---
+++
@@ -1,6 +1,6 @@
pushd .
cd runtime
- multirust override nightly-2015-05-14
+ multirust override nightly-2015-05-25
if [ "x$1" = "x--debug" ]; then
RUST_BACKTRACE=1 cargo run --bin=server
elif [ "x$1" = "x--clean" ]; then | bash |
d_bash_8894 | ---
+++
@@ -5,7 +5,7 @@
. ./_defaults.sh
tmux new-window -t $SESSION:1 -n data-forwarders
-tmux new-window -t $SESSION:2 -n event-collector
+tmux new-window -t $SESSION:2 -n splunk-event-collector
tmux new-window -t $SESSION:3 -n oauth-provider
tmux send-keys -t $SESSION:1.0 "cd ~/Projects/Octoblu/data-forwar... | bash |
d_bash_8895 | ---
+++
@@ -25,4 +25,4 @@
FOCUS=${FOCUS:-\[Conformance\]}
-go run hack/e2e.go -v --test -check_version_skew=false --test_args="--ginkgo.focus=$FOCUS"
+go run hack/e2e.go -v --test --check-version-skew=false --test_args="--ginkgo.focus=$FOCUS" | bash |
d_bash_8896 | ---
+++
@@ -12,9 +12,11 @@
mkdir ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
+
eval "$(ssh-agent -s)"
echo $GIT_PRIVATE_KEY > ~/.ssh/id_rsa
-ssh-add -K ~/.ssh/id_rsa
+chmod 600 ~/.ssh/id_rsa
+ssh-add -k ~/.ssh/id_rsa
if [ -z "$(gem fetch license_finder -v $build_version 2>&1 | grep ERROR)" ]; then
... | bash |
d_bash_8897 | ---
+++
@@ -2,8 +2,12 @@
sed '/^[ ]*#/d' < "${sourceFile}"
grep -v '^[ ]*#' "${sourceFile}"
grep -v '^[ ]*#' < "${sourceFile}"
+grep -v '^\\s*#' "${sourceFile}"
+grep -v '^\\s*#' < "${sourceFile}"
egrep -v '^[ ]*#' "${sourceFile}"
egrep -v '^[ ]*#' < "${sourceFile}"
+egrep -v '^\\s*#' "${sourceFile}"
+egrep... | bash |
d_bash_8898 | ---
+++
@@ -4,5 +4,5 @@
. ../../config.sh
export DYLD_FALLBACK_LIBRARY_PATH="$STEAM_SDK/redistributable_bin/osx32"
-export DYLD_INSERT_LIBRARIES=/Applications/Steam.app/Contents/MacOS/osx32/gameoverlayrenderer.dylib
+export DYLD_INSERT_LIBRARIES=/Applications/Steam.app/Contents/MacOS/gameoverlayrenderer.dylib
"$... | bash |
d_bash_8899 | ---
+++
@@ -17,3 +17,4 @@
rm -rf "${HOME}/.git"
rm -rf "${HOME}/.dotfiles"
rm -rf "${HOME}/tmp/dotfiles"
+ | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.