document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_23700 | ---
+++
@@ -7,10 +7,10 @@
~/.coursier/coursier launch -q -P \
com.lihaoyi:ammonite_2.12.4:1.0.3 \
- is.cir:ciris-core_2.12:0.4.2 \
- is.cir:ciris-enumeratum_2.12:0.4.2 \
- is.cir:ciris-generic_2.12:0.4.2 \
- is.cir:ciris-refined_2.12:0.4.2 \
- is.cir:ciris-spire_2.12:0.4.2 \
- is.cir:ciris-squants_2.12:0.... | bash |
d_bash_23701 | ---
+++
@@ -14,5 +14,5 @@
cmake --build build -j${CPU_COUNT}
-${PYTHON} -m pip install . --no-deps -vv
+${PYTHON} -m pip install . -vv
| bash |
d_bash_23702 | ---
+++
@@ -1,2 +1,6 @@
#!/bin/bash
+
+# make sure modules are installed.
+bundle exec librarian-puppet install
+
sudo puppet apply --hiera_config=hiera.yaml --modulepath=modules:vendor/modules manifests/site.pp | bash |
d_bash_23703 | ---
+++
@@ -4,8 +4,8 @@
# as vagrant user
echo "alias ipynb='ipython notebook --ip=0.0.0.0 /vagrant/'" >> .bashrc
source .bashrc
-wget http://repo.continuum.io/miniconda/Miniconda-3.3.0-Linux-x86_64.sh
-bash Miniconda3-3.3.0-Linux-x86_64.sh # accept license when prompted
-rm Miniconda-3.3.0-Linux-x86_64.sh
+wget h... | bash |
d_bash_23704 | ---
+++
@@ -17,8 +17,9 @@
rpm \
uuid-runtime \
yum-utils || \
- sudo yum -y install \
+ sudo yum -y install --enablerepo=epel \
bzip2 \
+ dpkg \
debootstrap \
docker \
kpartx \ | bash |
d_bash_23705 | ---
+++
@@ -20,6 +20,9 @@
sudo rm -rf /usr/share/uni/
mv uni-master uni
sudo mv -fu uni /usr/share/
+ sudo touch /usr/bin/uni
+ uniBIN="#!/bin/bash\n. /usr/share/uni/uni"
+ sudo printf "$uniBIN" > /usr/bin/uni
printf "Done. Type uni -v\nThe output must be the UNI version.\nIf you don't see it, try to... | bash |
d_bash_23706 | ---
+++
@@ -6,6 +6,5 @@
# Log file -- Fill in the absolute path to the file you wish to log to.
log='/example/path/to/log_file'
-# The following two lines should NOT need to be edited except by devs.
-toRun=${project}'/src/server/services/updateMeters.js'
-node --harmony-async-await &>> ${log} ${toRun} &
+# The f... | bash |
d_bash_23707 | ---
+++
@@ -28,5 +28,5 @@
run_all_scripts_in_dir_in_parallel "${DIR}/packages"
echo "Testing utility scripts"
-source utilties/random_timezone.sh
-bash utilties/check_url.sh https://google.com
+source utilities/random_timezone.sh
+bash utilities/check_url.sh https://google.com | bash |
d_bash_23708 | ---
+++
@@ -6,6 +6,6 @@
echo "start JENKINS"
# if `docker run` first argument start with `--` the user is passing jenkins launcher arguments
if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]]; then
- exec /bin/tini -- /usr/local/bin/jenkins.sh "$@"
+ exec tini -- /usr/local/bin/jenkins.sh "$@"
fi
exec "$@" | bash |
d_bash_23709 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
# mass run puppet-lint --fix
# run from inside whatever directory is above your puppet modules dir.
-brokenmodules=$(puppet-lint ./modules | awk -F "-" '!/nagios/ {print $1}' | uniq)
+brokenmodules=$(puppet-lint ./modules | awk -F "-" '{print $1}' | uniq)
for i in $brokenmodules;... | bash |
d_bash_23710 | ---
+++
@@ -1,2 +1,8 @@
#!/bin/bash
clang-format -i $(find . -name '*.[ch]')
+
+# Check we have no typos.
+which misspell 2>/dev/null >/dev/null
+if [[ $? -eq 0 ]]; then
+ misspell -error `find src -name '*.c' -or -name '*.h'`
+fi | bash |
d_bash_23711 | ---
+++
@@ -13,6 +13,10 @@
dex-dev > /dev/null
export DEX_DB_RETRY_TIMEOUT=0
+export DEX_PUBSUB_PROJECT=greensync-dex-dev
+export DEX_PUBSUB_EMULATOR_HOST=localhost:8085
+export DEX_PUBSUB_ENVIRONMENT_NAME=dev
+export DEX_PUBSUB_SERVICE_ACCOUNT_EMAIL=irrelevant-with-emulator@dev.local
export VISION_DB_HOST="$D... | bash |
d_bash_23712 | ---
+++
@@ -6,6 +6,6 @@
$venv_name/bin/pip install "git+https://github.com/pyinstaller/pyinstaller.git@12e40471c77f588ea5be352f7219c873ddaae056#egg=pyinstaller"
$venv_name/bin/pip install .
$venv_name/bin/pyinstaller -F setup/bin/dusty
-$venv_name/bin/pyinstaller -F setup/bin/dustyd
+$venv_name/bin/pyinstaller -F ... | bash |
d_bash_23713 | ---
+++
@@ -1,13 +1,14 @@
mkdir -p ./data/$1/outputs/tex
mkdir -p ./data/$1/inputs/md
mkdir -p ./data/$1/outputs/report
-cp ./data/$1/resources/fui/fui-kompendium-blue.pdf ./data/$1/outputs/report/ifi-kompendium-forside-bm.pdf
-cp ./data/$1/resources/ifikompendium/ifikompendium.tex ./data/$1/outputs/report
-cp ./d... | bash |
d_bash_23714 | ---
+++
@@ -3,3 +3,8 @@
docker-php-ext-install pdo_mysql 2>&1
php -r 'exit(extension_loaded("pdo_mysql") ? 0 : 1);'
+grep -q '^extension=' /usr/local/etc/php/conf.d/*pdo_mysql*.ini
+
+docker-php-ext-install opcache 2>&1
+php -r 'exit(extension_loaded("Zend OPcache") ? 0 : 1);'
+grep -q '^zend_extension=' /usr/loc... | bash |
d_bash_23715 | ---
+++
@@ -4,7 +4,7 @@
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Copy dotfiles to home directory.
-rsync --exclude ".git/" --exclude".gitignore" --exclude ".DS_Store" --exclude "bootstrap.sh" \
+rsync --exclude ".git/" --exclude ".gitignore" --exclude ".DS_Store" --exclude "bo... | bash |
d_bash_23716 | ---
+++
@@ -1,6 +1,8 @@
-#!/bin/sh
+#!/bin/bash
FILES="$( find . -name '*.go' -print0 | xargs -0 gofmt -l )"
if [ -n "$FILES" ]; then
- echo -e "go fmt diff in:\n$FILES"
+ echo "go fmt diff found."
+ echo "Run the following command in the git repo root to fix the formatting:"
+ echo "gofmt -w $( echo "$... | bash |
d_bash_23717 | ---
+++
@@ -6,6 +6,7 @@
## @param description - a brief description for the task
function b.task.add () {
local task="$1" description="$2"
+
if b.task.exists? "$task"; then
b.set "bang.tasks.$task" "$description"
else
@@ -18,12 +19,12 @@
function b.task.run () {
local task="$1"
- if b.task.exis... | bash |
d_bash_23718 | ---
+++
@@ -7,7 +7,7 @@
# - allows HTTP since Figwheel does not support HTTPS
# - mounts PWD over deployed code
-ORCH_URL_ROOT=${ORCH_URL_ROOT:-'https://firecloud.dsde-dev.broadinstitute.org/api'}
+ORCH_URL_ROOT=${ORCH_URL_ROOT:-'https://firecloud.dsde-dev.broadinstitute.org/service'}
exec docker run --rm --na... | bash |
d_bash_23719 | ---
+++
@@ -13,4 +13,9 @@
sudo yum -y install \
debootstrap \
kpartx \
- qemu-img
+ qemu-img || \
+ sudo emerge \
+ app-emulation/qemu \
+ dev-python/pyyaml \
+ sys-block/parted \
+ sys-fs/multipath-tools | bash |
d_bash_23720 | ---
+++
@@ -4,7 +4,7 @@
git pull origin master;
-function doIt() {
+function update() {
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" \
--exclude "README.md" --exclude "LICENSE.txt" --exclude "brew.sh" \
--exclude "apt.sh" -avh --no-perms . ~;
@@ -14,26 +14,34 @@
if which tm... | bash |
d_bash_23721 | ---
+++
@@ -42,7 +42,7 @@
shift $(($OPTIND-1))
-MYSQL_SRC="mysql-slave-1.backend.preview:/var/lib/automysqlbackup/latest.tbz2"
+MYSQL_SRC="mysql-backup-1.backend.preview:/var/lib/automysqlbackup/latest.tbz2"
MYSQL_DIR="$DIR/mysql"
mkdir -p $MYSQL_DIR | bash |
d_bash_23722 | ---
+++
@@ -32,7 +32,7 @@
fi
;;
*)
- local cmds='plugin-add plugin-list plugin-remove plugin-update install uninstall current where list list-all reshim'
+ local cmds='plugin-add plugin-list plugin-remove plugin-update install uninstall update current where list list-all reshim'
CO... | bash |
d_bash_23723 | ---
+++
@@ -4,7 +4,7 @@
function _accept-line() {
emulate -LR zsh
- setopt extended_glob prompt_subst transient_rprompt
+ setopt prompt_subst transient_rprompt
if [[ ! -n $BUFFER ]]; then
zle clear-screen | bash |
d_bash_23724 | ---
+++
@@ -9,6 +9,8 @@
CI_PIPELINE_COUNTER=${GO_PIPELINE_COUNTER-0}
CI_EXECUTOR_NUMBER=${GO_AGENT_NUMBER-0}
+mkdir -p spec/dummy/tmp/capybara
+
bundle install
| bash |
d_bash_23725 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
| bash |
d_bash_23726 | ---
+++
@@ -1,17 +1,17 @@
#!/bin/bash
-if [ -f /bin/nameit ] || [ -f /bin/goto ]; then
- echo "Cannot initialize. /bin/nameit or /bin/goto command already exist"
+if [ -f ${HOME}/bin/nameit ] || [ -f ${HOME}/bin/goto ]; then
+ echo "Cannot initialize. ${HOME}/bin/nameit or ${HOME}/bin/goto command already exist"
... | bash |
d_bash_23727 | ---
+++
@@ -12,6 +12,7 @@
SELENIUM_PORT=${SELENIUM_PORT:="4444"}
SELENIUM_OPTIONS=${SELENIUM_OPTIONS:=""}
SELENIUM_WAIT_TIME=${SELENIUM_WAIT_TIME:="10"}
+SELENIUM_JAVA_OPTIONS=${SELENIUM_JAVA_OPTIONS:=""}
set -e
@@ -19,6 +20,6 @@
CACHED_DOWNLOAD="${HOME}/cache/selenium-server-standalone-${SELENIUM_VERSION}.j... | bash |
d_bash_23728 | ---
+++
@@ -1,3 +1,6 @@
+# Make sure we can execute this even if the `TRAVIS` variable isn’t set. It should default to false.
+: ${TRAVIS:=false}
+
# Opens a Travis-CI fold, iff we’re running on Travis-CI.
#
# @param $1 The name of the fold, should be matched by a call to travis_fold_close() with the same | bash |
d_bash_23729 | ---
+++
@@ -6,7 +6,6 @@
mkdir public;
# run our compile script, discussed above
-npm install
npm run build
# go to the public directory and create a *new* Git repo | bash |
d_bash_23730 | ---
+++
@@ -7,15 +7,15 @@
bashcompinit
# Load exports
-source "$HOME/.zsh/master/exports.zsh"
+include "$HOME/.zsh/master/exports.zsh"
# Autocompletion files
fpath=($HOME/.zsh/autocompletion $fpath)
# Load more configuration
-source "$HOME/.zsh/master/antigen.zsh" # Load and configure Antigen
-sour... | bash |
d_bash_23731 | ---
+++
@@ -2,10 +2,8 @@
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo -e "Starting to update gh-pages\n"
- echo `ls -al`
-
#copy data we're interested in to other place
- cp -R build $HOME/build
+ cp -R build $HOME
#go to home and setup git
cd $HOME | bash |
d_bash_23732 | ---
+++
@@ -1,26 +1,10 @@
#!/bin/bash
# taps
-brew tap adoptopenjdk/openjdk
-brew tap railwaycat/emacsport
+brew tap daviderestivo/emacs-head
# formulas
brew install coreutils
-brew install nvm
-brew install docker
-brew install docker-machine
-brew install docker-compose
-brew install leiningen
-brew install... | bash |
d_bash_23733 | ---
+++
@@ -1,6 +1,6 @@
#! /bin/sh
-ROOT=bin/root.exe
+ROOT=bin/root
dir=`pwd`
cd tutorials | bash |
d_bash_23734 | ---
+++
@@ -9,7 +9,7 @@
mvn package || exit
-cp target/tinycdxserver*.jar ../outbackcdx.jar
+cp target/outbackcdx*.jar ../outbackcdx.jar
rm -fr outbackcdx
| bash |
d_bash_23735 | ---
+++
@@ -3,7 +3,8 @@
echo "Running integration test for crate ${INTEGRATION}"
-git clone https://github.com/${INTEGRATION}.git
+git clone --depth=1 https://github.com/${INTEGRATION}.git checkout
+cd checkout
function check() {
cargo clippy --all &> clippy_output
@@ -19,7 +20,6 @@
check
;;
*... | bash |
d_bash_23736 | ---
+++
@@ -11,4 +11,4 @@
done
shift "$((OPTIND-1))"
-exec ${MAKE:-make} -f ../tools/autotest.mk $seed EXTRA_FLAGS="-e" *.v
+exec ${MAKE:-make} -f ../tools/autotest.mk $seed EXTRA_FLAGS+="-e" *.v | bash |
d_bash_23737 | ---
+++
@@ -1 +1 @@
-sudo curl http://someonewhocares.org/hosts/zero/hosts -sS -o /etc/hosts
+sudo curl http://someonewhocares.org/hosts/zero/hosts --silent --show-error --output /etc/hosts | bash |
d_bash_23738 | ---
+++
@@ -1,3 +1,6 @@
+# $1 is the user id
+# $2 is the name of the filter (clean, blur, ...)
+
DATA_DIR=/home/$USER/experiment_data
if [ ! -e $DATA_DIR ] | bash |
d_bash_23739 | ---
+++
@@ -4,3 +4,5 @@
BUCKET=abhishekpareek.io
DIR=_site/
aws s3 sync $DIR s3://$BUCKET/
+aws configure set preview.cloudfront true
+aws cloudfront create-invalidation --distribution-id $DISTRIBUTION_ID --paths "*" | bash |
d_bash_23740 | ---
+++
@@ -10,6 +10,7 @@
install_cask dropbox
install_cask alfred
install_cask atom
+install_cask authy
install_cask evernote
install_cask keyboard-maestro
install_cask skype | bash |
d_bash_23741 | ---
+++
@@ -3,8 +3,9 @@
NAME=gridengine
SCRIPTS_DIR=/home/ubuntu/config-tools
CONFIG_TOOLS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
# create the GE cluster on the cloud platform
-#elasticluster start $NAME
+elasticluster start $NAME
first=yes
for host in `elasticluster list-nodes gridengine |... | bash |
d_bash_23742 | ---
+++
@@ -1,10 +1,15 @@
#!/bin/bash
+
+if test $UID -ne 0; then
+ echo "This script has to be run as root."
+ exit;
+fi
+
if [ ! -d $LBHOMEDIR ]; then
echo "Cannot find LoxBerry home directory ($LBHOMEDIR)"
exit 1;
fi
-
echo "LoxBerry home directory is $LBHOMEDIR"
chown -v -R loxberry:loxberry $LBHOM... | bash |
d_bash_23743 | ---
+++
@@ -8,7 +8,7 @@
readonly ownership="Google double-conversion Maintainers <floitsch@google.com>"
readonly subtree="Modules/ThirdParty/DoubleConversion/src/double-conversion"
readonly repo="https://github.com/google/double-conversion"
-readonly tag="master"
+readonly tag="0d3733a4168dd739f45cef8a55718f8b02ee... | bash |
d_bash_23744 | ---
+++
@@ -32,3 +32,6 @@
for COMMAND in start stop restart; do
build_man $COMMAND
done
+
+# And then finally the "main" paasta command
+help2man --name='paasta' --version-string=$VERSION "./paasta_tools/paasta_cli/paasta_cli.py" > docs/man/paasta.1 | bash |
d_bash_23745 | ---
+++
@@ -10,6 +10,8 @@
# Navigate command history matching typed input using up/down arrow keys
bind '"\e[A": history-search-backward' 2> /dev/null
bind '"\e[B": history-search-forward' 2> /dev/null
+# Enable the tab key to cycle through completions for ambiguous matches
+bind 'TAB:menu-complete' 2> /dev/null
... | bash |
d_bash_23746 | ---
+++
@@ -9,9 +9,9 @@
inputyaml=$2
outputttl=$3
tmpfile=`mktemp`
-echo '{"@context": ' >tmpfile
-yaml2json $contextyaml >>tmpfile
-echo ', "@graph": ' >>tmpfile
-yaml2json $inputyaml >>tmpfile
-echo '}' >>tmpfile
-riot --syntax=jsonld --output=turtle tmpfile >$outputttl
+echo '{"@context": ' >$tmpfile
+yaml2js... | bash |
d_bash_23747 | ---
+++
@@ -3,5 +3,5 @@
rm -rf me
mkdir -p me/exphc/EnchantMore
mv *.class me/exphc/EnchantMore/
-jar cf EnchantMore.jar me/ *.yml *.java *.dat README.md ChangeLog
+jar cf EnchantMore.jar me/ *.yml *.java *.dat README.md ChangeLog LICENSE
cp EnchantMore.jar ../plugins/ | bash |
d_bash_23748 | ---
+++
@@ -10,6 +10,9 @@
brew install ansible
# debian, ubuntu, mint etc.
elif [[ $unamestr == "Linux" && -f $(which apt-get) ]]; then
+ sudo apt-get install software-properties-common
+ sudo apt-add-repository ppa:ansible/ansible
+ sudo apt-key adv --keyserver pgp.mit.edu --recv-keys A4A9406876FCBD... | bash |
d_bash_23749 | ---
+++
@@ -18,7 +18,7 @@
# If TEST_SERVER_PORT is set by Hudson, we can test if the deployed test server
# is online. Using parameterized builds the the preferred means for setting
# TEST_SERVER_PORT.
-if [ -z "$TEST_SERVER_PORT" ]; then
+if [ -n "$TEST_SERVER_PORT" ]; then
can_hit_test_server=1
while [... | bash |
d_bash_23750 | ---
+++
@@ -9,7 +9,7 @@
trap onexit SIGINT SIGTERM EXIT INT QUIT TERM
cd "$( dirname "${BASH_SOURCE[0]}" )"
-./start-db.sh &
-./start-web.sh &
-(cd js-library; grunt default watch) &
+(./start-db.sh ; kill $$) &
+(./start-web.sh ; kill $$) &
+(cd js-library; grunt default watch ; kill $$) &
wait | bash |
d_bash_23751 | ---
+++
@@ -8,4 +8,4 @@
print_in_purple "\n System\n\n"
-brew_install "Logitech Options" "logitech-options" "--cask" "homebrew/cask-drivers"
+brew_install "Logi Options +" "logi-options-plus" "--cask" "homebrew/cask-drivers" | bash |
d_bash_23752 | ---
+++
@@ -12,12 +12,14 @@
timestamp=`date -u +%Y%m%d%H%M`
+base_version=`jq -r .version package.json`
if [ "$dist_type" != release ]; then
# for snapshot build, work the timestamp into package.json version qualifier
- base_version=`jq -r .version package.json`
qualified_version=${base_version}-${... | bash |
d_bash_23753 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/sh
sudo apt-get install libboost-all-dev liblog4cplus-dev libgraphicsmagick++1-dev libssl-dev libgtest-dev
-cd /usr/src/gtest && sudo cmake CMakeLists.txt -Dgtest_disable_pthreads=ON && sudo make && sudo chmod o+x libgtest* && sudo mv libgtest* /usr/lib/
+cd /usr/src/gtest && sudo cma... | bash |
d_bash_23754 | ---
+++
@@ -6,7 +6,7 @@
export CFLAGS="$OPTFLAGS --pre-js=test/default/pre.js "
export LDFLAGS="-s EXPORTED_FUNCTIONS=${EXPORTED_FUNCTIONS}"
-emconfigure ./configure --disable-shared --prefix="$PREFIX" && \
+emconfigure ./configure --enable-minimal --disable-shared --prefix="$PREFIX" && \
emmake make clean &&
e... | bash |
d_bash_23755 | ---
+++
@@ -2,7 +2,8 @@
# This script assumes the following environment variables are present
#
-# DOCKER_USER=some@email.com
+# DOCKER_USER=username
+# DOCKER_EMAIL=some@email.com
# DOCKER_PASS=somesecretpassword
DOCKER_IMAGE=luketillman/killrvideo-generator
@@ -19,13 +20,13 @@
fi
# Make sure we ... | bash |
d_bash_23756 | ---
+++
@@ -11,6 +11,9 @@
if [ -f "$LABEL_FILE" ]; then
LABELS=$(head -c -1 $LABEL_FILE | jq -R -s -c 'split("\n")')
- DATA="{\"labels\": $LABELS}"
- curl -H "Authorization: token $BOT_TOKEN" -X PUT -d "$DATA" -f -s -S "https://api.github.com/repos/$TRAVIS_REPO_SLUG/issues/$TRAVIS_PULL_REQUEST/labels"
+else
+ LA... | bash |
d_bash_23757 | ---
+++
@@ -17,7 +17,7 @@
pacman -S --noconfirm --needed ruby
# Install Puppet and Facter
-gem install puppet facter --no-ri --no-rdoc --no-user-install
+gem install puppet facter deep_merge --no-ri --no-rdoc --no-user-install
# Create the Puppet group so it can run
groupadd puppet | bash |
d_bash_23758 | ---
+++
@@ -1,12 +1,23 @@
#!/bin/bash
-systems=(bash python js)
+systems=($@)
+
+if [ ${#systems[@]} -eq 0 ]; then
+ systems=(bash python js)
+fi
+
+declare -A scores
for system in ${systems[@]}; do
if sut=$system cucumber -t ~@wip -t ~@not_$system; then
- echo $system passed
+ scores[$sys... | bash |
d_bash_23759 | ---
+++
@@ -54,4 +54,4 @@
if ! $quiet; then
echo "Building application"
fi
-godep go build -o "${APP_NAME}" -ldflags "-X '${PACKAGE}/http.rootDir=${PACKAGE_PATH}/http'"
+godep go build -o "bin/${APP_NAME}" -ldflags "-X '${PACKAGE}/http.rootDir=${PACKAGE_PATH}/http'" | bash |
d_bash_23760 | ---
+++
@@ -22,8 +22,8 @@
;;
osx-gcc)
- export CC=gcc-7
- export CXX=g++-7
+ export CC=gcc-8
+ export CXX=g++-8
# oclint conflicts with gcc (include/c++ symlink)
brew cask uninstall oclint || true | bash |
d_bash_23761 | ---
+++
@@ -1,6 +1,6 @@
VERSION=2.9
TAR=https://download.savannah.gnu.org/releases/freetype/freetype-$VERSION.tar.gz
-BUILD_DEPENDS=(zlib)
+BUILD_DEPENDS=(zlib libpng)
function recipe_version {
echo "$VERSION" | bash |
d_bash_23762 | ---
+++
@@ -30,4 +30,4 @@
# Install baseline packages
# TODO: detect virtualbox and install additions?
-apt-get install -y git xinetd
+apt-get install -y git xinetd perl wget ssh | bash |
d_bash_23763 | ---
+++
@@ -23,11 +23,13 @@
}
prepare_artifacts
+clear_mountpoint
if [ ! ${SF_SKIP_BUILDROLES} ]; then
./build_roles.sh &> ${ARTIFACTS_DIR}/build_roles.sh.output || pre_fail "Roles building FAILED!"
fi
+clear_mountpoint
if [ ! ${SF_SKIP_BOOTSTRAP} ]; then
cd bootstraps/lxc
./start.sh stop &>... | bash |
d_bash_23764 | ---
+++
@@ -20,8 +20,8 @@
pacman -Ql mingw-w64-x86_64-expat
luarocks install lpeg
-luarocks install lua-zlib
-luarocks install luaexpat
+luarocks install lua-zlib ZLIB_DIR=/mingw64
+luarocks install luaexpat EXPAT_DIR=/mingw64
luarocks install luafilesystem
luarocks install lua_cliargs 2.3-3
luarocks install b... | bash |
d_bash_23765 | ---
+++
@@ -11,7 +11,7 @@
eval "$(ssh-agent -s)" #start the ssh agent
ssh-add .travis/id_rsa
- gulp cd:pushAndRun
+ gulp cd
elif [ $TRAVIS_BRANCH = "staging" ]; then
echo "Deploying to staging and testing"
| bash |
d_bash_23766 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
TARGETDIR=$1
-if test -z $TARGETDIR; then TARGETDIR="."; fi
-./lace.sh 6 > $TARGETDIR/lace.h
-./lace.sh 14 > $TARGETDIR/lace14.h
-sed "s:lace\.h:lace14\.h:g" lace.c > $TARGETDIR/lace14.c
+if test -z "$TARGETDIR"; then TARGETDIR="."; fi
+./lace.sh 6 > "$TARGETDIR/lace.h"
+./lace.s... | bash |
d_bash_23767 | ---
+++
@@ -1,9 +1,9 @@
-#Usage sh update_webarchive.sh subdomain.topleveldomain.gov.uk
+#Usage sh update_webarchive.sh siteabbreviation
site=$1
getweb=$(find . | grep get_webarchive) # find the tool
-yaml=$(find . | grep $site.yml) # find the yaml
+yaml=$(find . | grep 'sites\/'$site'\.yml') # find the yaml
t... | bash |
d_bash_23768 | ---
+++
@@ -6,9 +6,8 @@
set -x
# Download + cache the cf cli
-if [ ! -e "$(pwd)/bin/cf" ]; then
- mkdir ~/cf
- wget 'https://cli.run.pivotal.io/stable?release=linux64-binary&source=github' -O ~/cf/cf.tar.gz
+if [ ! -e "~/bin/cf" ]; then
+ wget 'https://cli.run.pivotal.io/stable?release=linux64-binary&source=gi... | bash |
d_bash_23769 | ---
+++
@@ -1,3 +1,5 @@
+ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
+
brew install zsh
brew install zsh-completions
brew install zsh-syntax-highlighting
@@ -6,16 +8,10 @@
brew install reattach-to-user-namespace
brew install git
brew install ctags
-brew install rben... | bash |
d_bash_23770 | ---
+++
@@ -4,8 +4,18 @@
set -e # Stop on error
set -v # Be verbose
+# Main Core builds
+
mkdir build
cd build
cmake ..
make
ctest . --output-on-failure
+cd ..
+
+# Examples
+
+mkdir build_examples
+cd build_examples
+cmake ../examples
+make | bash |
d_bash_23771 | ---
+++
@@ -12,7 +12,11 @@
}
-mkdir ./systemtests/web_driver
-cd ./systemtests/web_driver
+CURDIR=`readlink -f \`dirname $0\``
+rm -rf ${CURDIR}/../web_driver
+mkdir ${CURDIR}/../web_driver
+ACTUAL_DIR=`pwd`
+cd ${CURDIR}/../web_driver
install_firefox_driver
install_chrome_driver
+cd $ACTUAL_DIR | bash |
d_bash_23772 | ---
+++
@@ -9,3 +9,6 @@
EXTRA_ENV="JENKINS_URL=${JENKINS_URL}"
fi
docker run -i --rm=true --env="${EXTRA_ENV}" -v "$(pwd)/outputs:/son-analyze/outputs" 'son-analyze-test' /bin/bash -c "scripts/clean.sh && scripts/all.py"
+
+# Fix outputs directory permissions
+chmod a+rwx outputs | bash |
d_bash_23773 | ---
+++
@@ -11,7 +11,8 @@
cmf=" $1 $2 | grep -vE '^Only|^---|^\+\+\+|@@\s' | sed 's/^diff.* /\nFILE: /g'"
echo Issuing Command: \`$cmd $cme $cmf\'
- eval $cmd $cme $cmf
+ eval $cmd $cme $cmf | GREP_COLOR="0;32" egrep --color=always '^<.*|^\+.*|$' \
+ | GREP_COLOR="0;31" egrep --color... | bash |
d_bash_23774 | ---
+++
@@ -8,6 +8,12 @@
[[ -s "/opt/local/bin" ]] && export PATH=/opt/local/bin:$PATH
[[ -s "/usr/local/bin" ]] && export PATH=/usr/local/bin:$PATH
+# I dropped rvm a few days ago, so shell won't add append BUNDLE_BIN path to the
+# PATH when changing directories. And I always use `--binstubs=.binstubs`
+# optio... | bash |
d_bash_23775 | ---
+++
@@ -22,7 +22,7 @@
sleep 5
-./send-events.py 800 &
+./send-events.py 500 &
for i in $(seq 0 120); do
@@ -30,7 +30,7 @@
echo "EMAILS: ${EMAILS}"
- if [ "$EMAILS" == "800" ]; then
+ if [ "$EMAILS" == "500" ]; then
cleanup
exit 0
fi | bash |
d_bash_23776 | ---
+++
@@ -1,5 +1,7 @@
#!/bin/bash -e
# The #! only allows one argument, so I couldn't get the -rubygems to work.
-source $HOME/.rvm/scripts/rvm
+if [ -f $HOME/.rvm/scripts/rvm ]; then
+ source $HOME/.rvm/scripts/rvm
+fi
ruby -rubygems fasta_to_g2p.rb $* | bash |
d_bash_23777 | ---
+++
@@ -12,6 +12,5 @@
for element in "${res[@]}"; do
[[ $element =~ $regex ]]
mkdir -p ${BASH_REMATCH[1]}
- convert $1[0] -resize ${BASH_REMATCH[2]}x${BASH_REMATCH[2]} -gravity center -extent ${BASH_REMATCH[2]}x${BASH_REMATCH[2]} -fuzz 2% -transparent white ${BASH_REMATCH[1]}/$2
- exiftool -overwrite_ori... | bash |
d_bash_23778 | ---
+++
@@ -3,6 +3,7 @@
# /dev/vdb is formatted and mounted on /mnt
# we need to use it as a volume for cinder instead
sudo /bin/umount /mnt/
+sudo sed -i 's/\/dev\/vdb/#\/dev\/vdb/g' /etc/fstab
sudo parted /dev/vdb --script -- mklabel gpt
sudo parted /dev/vdb --script -- mkpart primary ext4 1 -1
sudo parted /d... | bash |
d_bash_23779 | ---
+++
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
+
+# Variable BASEDIR is defined by the main script
#Set log4j properties file
export JAVA_OPTS="${JAVA_OPTS} -Dlog4j.configuration=file:${BASEDIR}/conf/log4j.properties"
@@ -9,6 +11,6 @@
# Check if the command hbase exists
if `command -v hbase >/dev/null 2>&1` ; the... | bash |
d_bash_23780 | ---
+++
@@ -14,6 +14,7 @@
$VALIDATE
CREATE="aws cloudformation create-stack --stack-name $STACKNAME \
+ --disable-rollback \
--template-body $TEMPLATELOCATION \
--capabilities CAPABILITY_NAMED_... | bash |
d_bash_23781 | ---
+++
@@ -3,7 +3,7 @@
case "$1" in
java8)
- echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u252-b09/OpenJDK8U-jdk_x64_linux_hotspot_8u252b09.tar.gz"
+ echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u262-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u262b... | bash |
d_bash_23782 | ---
+++
@@ -12,3 +12,8 @@
alias d=dev
compdef d=dev
fi
+
+# Integrate with modules using tabtab
+if [[ -f ~/.config/tabtab/zsh/__tabtab.zsh ]]; then
+ source ~/.config/tabtab/zsh/__tabtab.zsh || true
+fi | bash |
d_bash_23783 | ---
+++
@@ -13,9 +13,9 @@
exit 0
fi
-if [[ ! "$RUSTC_VERSION" =~ "1.9.0" ]]
+if [[ ! "$RUSTC_VERSION" =~ "1.13.0" ]]
then
- echo "Wrong version of rustc: expected 1.9.0, got $RUSTC_VERSION"
+ echo "Wrong version of rustc: expected 1.13.0, got $RUSTC_VERSION"
exit 0
fi
| bash |
d_bash_23784 | ---
+++
@@ -1,4 +1,11 @@
#! /usr/bin/env bash
+on_mac() {
+ if [ "$(uname)" == "Darwin" ]; then
+ return 0
+ else
+ return 1
+ fi
+}
contains_element() {
local e | bash |
d_bash_23785 | ---
+++
@@ -7,17 +7,15 @@
PROJ_NAME=oc_erchef
export PATH=$PATH:/usr/local/bin
-ARTIFACT_BASE=opscode-ci/artifacts/$PROJ_NAME
+ARTIFACT_BASE=opscode-ci/artifacts/$os/$machine_architecture/$PROJ_NAME
make distclean rel || exit 1
-
-BUCKET=oc-erchef-artifacts
# If the string is null, then the git command retu... | bash |
d_bash_23786 | ---
+++
@@ -5,7 +5,7 @@
# Disable file globbing; coalesce inner whitespace;
# trim leading and trailing whitespace
trim() { (set -f; echo $@) ;}
-strcontains() { test -z "${1##*$2*}" ; }; export -f strcontains
+strcontains() { test -z "${1##*$2*}" ; }; shell_name bash && export -f strcontains
strendswith() { test... | bash |
d_bash_23787 | ---
+++
@@ -6,5 +6,5 @@
JAR_LOCATION=${1:-$JAR_LOCATION}
CONFIG_PROFILE=${2:-$CONFIG_PROFILE}
-exec java -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Xloggc:gc.log -XX:+PrintGCCause -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=3 -XX:GCLogFileSize=2M ${JAVA_OPTS:-} -cp $JAR_LOCATION kixi.datastore.bootstrap $... | bash |
d_bash_23788 | ---
+++
@@ -16,9 +16,9 @@
"Settings": {
"Sources": [
{
- "Type": "HTTP",
+ "Type": "InstanceMetadata",
"URI": "http://169.254.169.254",
- "UserDataPath": "/computeMetadata/v1/instance/attributes/user_data",
+ "SettingsPath": "/computeMetadata/v1/inst... | bash |
d_bash_23789 | ---
+++
@@ -1,5 +1,6 @@
install_brews() {
# system formulae
+ brew install openssl
brew install zsh
brew install tmux
brew install tmate | bash |
d_bash_23790 | ---
+++
@@ -1,3 +1,3 @@
function rubocop_changed_in_branch() {
- rubocop $@ `git_files_changed_vs_origin_master` || return $?
+ rubocop $@ `git_files_changed_vs_origin_master | grep -v "^Gemfile.lock$" | grep -v "^.eslintrc$"` || return $?
} | bash |
d_bash_23791 | ---
+++
@@ -7,10 +7,10 @@
mkdir -p pg-data
# Then we run docker compose up to launch the database container
-docker-compose -f docker-compose.yml up glance-eval-db
+docker-compose up glance-eval-db
# run flyway migrations
eval "$(cat .env)"
sbt -Dflyway.password=$GLANCE_DB_PASS -Dflyway.user=$GLANCE_DB_USER ... | bash |
d_bash_23792 | ---
+++
@@ -1,7 +1,7 @@
echo "building client..."
cd client
yarn --production=false
-REACT_APP_COMMIT_SHA=`git rev-parse --short HEAD` \
+REACT_APP_COMMIT_SHA=$SOURCE_VERSION \
REACT_APP_API_HOST=$API_HOST \
REACT_APP_API_PROTOCOL=$API_PROTOCOL \
REACT_APP_API_PORT=$API_PORT \ | bash |
d_bash_23793 | ---
+++
@@ -13,6 +13,5 @@
git commit -m "Deploy"
git push --force deploy master
else
- echo 'Invalid branch. You can only deploy from master.'
- exit 1
+ echo "Not deploying, since this branch isn't master."
fi | bash |
d_bash_23794 | ---
+++
@@ -2,7 +2,7 @@
set -e
-if [ -d .git ] ; then
+if [ -d .git ] && [ "$(git tag)" ] ; then
version="$(git describe --dirty)"
elif [ -f version ] ; then
version="$(cat version)" | bash |
d_bash_23795 | ---
+++
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# TODO: This needs to be replaced with proper puppet script
branch="tornado-backend"
echo "Deploying for production..." | bash |
d_bash_23796 | ---
+++
@@ -2,7 +2,9 @@
OUTPUTFILE=$1
URL=$2
+ARGS="$3"
STDERR=`mktemp`
+PROXY=""
if [ ! -f "$STDERR" ]; then
echo "Error creating tempfile, aborting"
@@ -13,13 +15,18 @@
echo "Usage: $0 <outputfilename>"
exit 1
else
- /usr/local/bin/wkhtmltopdf --title "$URL" "$URL" $OUTPUTFILE 2>"$STDERR"
- ... | bash |
d_bash_23797 | ---
+++
@@ -8,6 +8,10 @@
git pull --ff-only
+# Submit the job to run again
+qsub -a $(date -d 'now+1day' +%Y%m%d%H%M.%S) qsub_daily.sh
+
+# Run job
export PERF_MIN_NODES=1
export PERF_MAX_NODES=8
| bash |
d_bash_23798 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/bash
# Generates cert.pem and key.pem using existing Syncthing image
-docker run --rm -v $(pwd):/mnt syncthing /syncthing -generate=/mnt
+docker run --user root --rm -v $(pwd):/mnt syncthing /syncthing -generate=/mnt
+chmod 644 *.pem
rm ./config.xml | bash |
d_bash_23799 | ---
+++
@@ -2,13 +2,13 @@
GULDEN_DJINNI_REPO=https://github.com/mjmacleod/djinni.git
-#if [ ! -d djinni ]; then
-# git clone --single-branch --branch gulden ${GULDEN_DJINNI_REPO}
-#else
-# cd djinni
-# git pull origin
-# cd ..
-#fi
+if [ ! -d djinni ]; then
+ git clone --single-branch --branch gulden ${GULDEN_DJ... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.