document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_900 | ---
+++
@@ -11,5 +11,5 @@
(./start-db.sh ; kill $$) &
(./start-web.sh ; kill $$) &
-(cd js-library; grunt default watch ; kill $$) &
+(cd js-library; grunt && grunt watch; kill $$) &
wait | bash |
d_bash_901 | ---
+++
@@ -37,4 +37,5 @@
BUILD_TIME=$(date -r $BUILD_TAR)
-ostree --repo=${OSTREE_REPO} commit -s "Build from OSTree ${OSTREE_VER}" -b "gnomeos-yocto-$ARCH-$BRANCH" --tree=tar=${BUILD_TAR}
+ostree --repo=${OSTREE_REPO} commit --skip-if-unchanged -s "Build from OSTree ${OSTREE_VER}" -b "gnomeos-yocto-$ARCH-$BRAN... | bash |
d_bash_902 | ---
+++
@@ -20,7 +20,7 @@
rm -rf output_*
git add *
-git commit -m "$1"
+git commit -a -m "$1"
git push origin --all
git checkout master | bash |
d_bash_903 | ---
+++
@@ -8,9 +8,15 @@
keychain --confhost ${hosts[@]}
}
-# get ssh key path from '~/.ssh/config'
_sc_confpath() {
- h=""
+ local i
+ for i in ~/.ssh/config ~/.ssh/config.d/*; do
+ _sc_confpath_file $1 < "$i"
+ done
+}
+
+_sc_confpath_file() {
+ local h=""
while IFS= read -r line... | bash |
d_bash_904 | ---
+++
@@ -1,6 +1,5 @@
#!/bin/bash
./mach test-wpt --manifest-update SKIP_TESTS > /dev/null
-./mach test-css --manifest-update SKIP_TESTS > /dev/null
diff=$(git diff -- tests/*/MANIFEST.json)
echo "$diff"
[[ ! $diff ]] | bash |
d_bash_905 | ---
+++
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash -e
+#!/usr/bin/env bash
# Runs a CI build for castanet. Assumes:
# | bash |
d_bash_906 | ---
+++
@@ -1,3 +1,5 @@
function wo() {
[ -f './.venv' ] && workon `cat ./.venv`
}
+
+alias cdv='cd $WORKON_HOME' | bash |
d_bash_907 | ---
+++
@@ -6,13 +6,13 @@
unused_blocks() {
for blockcfg in etc/blocks/*; do
block=$(echo $blockcfg | sed 's/.*\/\(.*\)\.cfg/\1/');
- grep $block etc/services/* > /dev/null || echo $block;
+ grep "$block" etc/services/* > /dev/null || echo $block;
done
}
remove_unused_blocks() {
for blockcfg in etc/b... | bash |
d_bash_908 | ---
+++
@@ -1,16 +1,31 @@
#!/bin/bash
+
+#terminal 1: run PORT=3100 node app.js
+#expected output after terminal 2 curl's:
+#radsauce
+
+#terminal 2: ./verifyscript.sh && echo "it worked" || echo "fail"
+#expected output:
+# radsauce
+# it worked
OUTPUT="$(curl --request POST -d radsauce http://localhost:3100/fo... | bash |
d_bash_909 | ---
+++
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
set -e
-VERSIONS="8.6.5 8.10.1"
-HLS_VERSION="0.2.1"
+VERSIONS="8.6.5 8.10.2"
+HLS_VERSION="0.5.1"
URL_PREFIX="https://github.com/haskell/haskell-language-server/releases/download/${HLS_VERSION}"
| bash |
d_bash_910 | ---
+++
@@ -9,7 +9,7 @@
"desc": "",
"name": "_$DIRNAME",
"sortcode": -1,
- "photos:": [
+ "photos": [
EOF
for i in `ls *.[Jj][Pp][Gg]`; do | bash |
d_bash_911 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
set -e
source /var/www/envs/twweb/bin/activate
-exec /var/www/envs/twweb/bin/uwsgi --async 10 --gevent --gevent-monkey-patch --ini /var/www/twweb/uwsgi_status.ini
+exec /var/www/envs/twweb/bin/uwsgi --async 10 --ini /var/www/twweb/uwsgi_status.ini | bash |
d_bash_912 | ---
+++
@@ -2,7 +2,7 @@
set -xe
export SLAVES_COUNT=3
-export DEPLOY_TIMEOUT=400
+export DEPLOY_TIMEOUT=600
export TEST_SCRIPT="/usr/bin/python /vagrant/solar-resources/examples/riak/riaks.py create_all"
./utils/jenkins/run.sh | bash |
d_bash_913 | ---
+++
@@ -3,4 +3,5 @@
export AWS_SECRET_ACCESS_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
export AWS_DEFAULT_REGION="xx-xxxx-x"
export COMPUTER_VISION_API_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
+export COMPUTER_VISION_REGION="xxxxxxxxxxx"
export GOOGLE_APPLICATION_CREDENTIALS="xxxxx.json" | bash |
d_bash_914 | ---
+++
@@ -27,9 +27,9 @@
--enable-experimental-plugins \
--enable-example-plugins \
--enable-ccache \
- --enable-debug \
- --enable-wccp \
- --enable-werror
+ ${enable_wccp} \
+ ${enable_werror} \
+ ${enable_debug}
#... | bash |
d_bash_915 | ---
+++
@@ -16,10 +16,13 @@
fi
defaults write -app iTerm QuitWhenAllWindowsClosed -bool true
fi
-exit
# Skim (PDF viewer)
if [ -d "/Applications/Skim.app/" ]; then
# Auto reload files
defaults write -app Skim SKAutoReloadFileUpdate -boolean true
+ # Syntex (with neovim)
+ defaults write... | bash |
d_bash_916 | ---
+++
@@ -1,3 +1,2 @@
-# Include man pages for wrapper scripts and symlinks
-# that reference binaries in /native
+# Include man pages for mdata-* binaries in /native
export MANPATH=$MANPATH:/native/usr/share/man | bash |
d_bash_917 | ---
+++
@@ -5,8 +5,25 @@
exit 1
fi
-_do_exec1 make -f <(
- cat <<'EOS'
+_make_jobs=4
+_make_load=8
+
+_make_arguments=(
+ --directory="${_temporary}"
+ --jobs="${_make_jobs}"
+ --load-average="${_make_load}"
+ --keep-going
+ --no-builtin-rules
+ --no-builtin-variables
+ --warn-undefined-variables
+ --silent
+ -... | bash |
d_bash_918 | ---
+++
@@ -30,3 +30,28 @@
do_submenu("Terminal", "Shell", "New Tab", 1)
EOF
}
+
+function itab() {
+savepath
+osascript >/dev/null <<EOF
+on do_submenu(app_name, menu_name, menu_item)
+ -- bring the target application to the front
+ tell application app_name
+ activate
+ end tell
+ tell applicati... | bash |
d_bash_919 | ---
+++
@@ -1,7 +1,7 @@
# symfony basic command completion
_symfony_get_command_list () {
- ./symfony | sed "1,/Available tasks/d" | awk 'BEGIN { cat=null; } /^[A-Za-z]+$/ { cat = $1; } /^ :[a-z]+/ { print cat $1; }'
+ php symfony | sed "1,/Available tasks/d" | awk 'BEGIN { cat=null; } /^[A-Za-z]+$/ { cat ... | bash |
d_bash_920 | ---
+++
@@ -7,9 +7,9 @@
CURRENT_HEAT_DOMAIN_NAME=$(openstack domain list | grep heat | awk '{print $4}')
if [[ "heat" != "$CURRENT_HEAT_DOMAIN_NAME" ]]; then
- openstack domain create heat
- openstack user create --domain heat heat_domain_admin --password ${HEAT_DOMAIN_ADMIN_PASSWORD}
- ... | bash |
d_bash_921 | ---
+++
@@ -3,12 +3,15 @@
# Ask for the administrator password upfront
sudo -v
+# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
+while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
+
# We need to distinguish sources and binary packages for Brew & Cask on OSX
... | bash |
d_bash_922 | ---
+++
@@ -9,12 +9,12 @@
true)
opam repository add cumulus https://github.com/Cumulus/opam-cumulus.git;;
false)
- opam repository add cumulus https://github.com/Cumulus/opam-cumulus.git
git clone -b 3.0.0-cohttp https://github.com/ocsigen/ocsigenserver.git
cd ocsigenserver... | bash |
d_bash_923 | ---
+++
@@ -12,6 +12,7 @@
include "common.sh"
. ~/.profile
+if [ ! -e /tmp/wagrant-reboot] ; then
log "DEBUG: change dir to cf_nise_installer"
cd /root/cf_nise_installer
@@ -20,3 +21,8 @@
pwd >> current.log
./scripts/install_cf_release.sh >> install.log
+ touch /tmp/wagrant-reboot
+ reboot
+fi
+
+exit 0 | bash |
d_bash_924 | ---
+++
@@ -5,12 +5,13 @@
exit 1
}
+echo Fetching from origin
+git fetch origin
for br in $(git branch --list | grep -v master | sed 's/\*//' ) ; do
[ -n "$br" ] && {
- echo On branch: $br
git checkout $br || die
- git pull
- git merge master -m "Merge master branch"
+ echo -n "... | bash |
d_bash_925 | ---
+++
@@ -7,4 +7,3 @@
set -ev
scripts/ci/build.sh
-CHROME_BIN='/usr/bin/google-chrome-stable' yarn test | bash |
d_bash_926 | ---
+++
@@ -3,4 +3,4 @@
npm install -g grunt-cli
npm install
-grunt execSpecsInNode
+grunt jshint execSpecsInNode | bash |
d_bash_927 | ---
+++
@@ -10,5 +10,5 @@
cd $WORKSPACE/build/repos/nailgun/docs
make clean
make html
-rsync -avz -e ssh --delete _build/html/ fjenkins@fuel-docs.vm.mirantis.net:/home/fjenkins/workspace/fuel-docs.mirantis.com/docs/_build/html/
+rsync -avz -e ssh --delete _build/html/ jenkins@mos-docs.vm.mirantis.net:/var/www/fuel... | bash |
d_bash_928 | ---
+++
@@ -7,6 +7,7 @@
git clone https://github.com/mgieseki/dvisvgm
cd dvisvgm
+git checkout 6001b3c0d5578f0647bf4cb9caaad0975a9e21d1
./autogen.sh
./configure --enable-bundled-libs
make | bash |
d_bash_929 | ---
+++
@@ -2,6 +2,10 @@
set -e
+#####
+# Unit Tests
+
+echo "DumpRenderTree test/index.html"
results=`DumpRenderTree test/index.html 2>&1`
echo "$results" | grep CONSOLE
@@ -9,3 +13,19 @@
echo $results | grep 'unittest-suite-success' >/dev/null
echo $results | grep -v 'Exception: Some tests failed.' >/d... | bash |
d_bash_930 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/bash
set -ex
-wget http://void.cc/libvips-precise64.tar.gz
-tar -xvzf libvips-precise64.tar.gz -C /usr/local
+wget https://s3-us-west-2.amazonaws.com/cdn.thegrid.io/caliper/libvips/libvips-precise64.tar.gz
+tar -xvzf https://s3-us-west-2.amazonaws.com/cdn.thegrid.io/caliper/libvips/li... | bash |
d_bash_931 | ---
+++
@@ -23,7 +23,11 @@
# Prepare package contents
log 'Preparing box package contents'
-cp conf/${DISTRIBUTION} ${WORKING_DIR}/lxc-config
+if [ -f conf/${DISTRIBUTION}-${RELEASE} ]; then
+ cp conf/${DISTRIBUTION}-${RELEASE} ${WORKING_DIR}/lxc-config
+else
+ cp conf/${DISTRIBUTION} ${WORKING_DIR}/lxc-config
... | bash |
d_bash_932 | ---
+++
@@ -3,7 +3,6 @@
REPO="https://${GH_BOT_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git"
PAGES_CHECKOUT="$HOME/gh-pages"
-GEM_DIR=$(rvm gemdir)
printf "travis_fold:start:clone_gh_pages\nCloning gh-pages\n"
mkdir -p "$PAGES_CHECKOUT"
@@ -14,7 +13,8 @@
printf "travis_fold:end:clone_gh_pages\n"
printf "trav... | bash |
d_bash_933 | ---
+++
@@ -4,7 +4,7 @@
DISABLE_AUTO_UPDATE="true"
-plugins=(autoenv battery colored-man cp extract history gem git gitfast github git-extras lol mosh npm python rsync safe-paste screen tmux tmuxinator vundle)
+plugins=(autoenv battery colored-man cp extract history gem git gitfast gitignore git-extras lol mosh ... | bash |
d_bash_934 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
cd ../
-git config --global user.email "travis@travis-ci.org"
+git config --global user.email "travisci@ianduffy.ie"
git config --global user.name "travis-ci"
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/imduffy15/ec2stack gh-pages > /dev/null
| bash |
d_bash_935 | ---
+++
@@ -1,4 +1,8 @@
#!/bin/bash
+
+apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
+echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list
apt-get update -y
-apt-get --assume-yes -y install mongodb
+apt-get --assum... | bash |
d_bash_936 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
MOCHA=./node_modules/grunt-mocha-test/node_modules/.bin/mocha
-$MOCHA --reporter spec --require './sandbox/loader' sandbox/mocha_node.js
+$MOCHA --reporter tap --require './sandbox/loader' sandbox/mocha_node.js
exit 0 | bash |
d_bash_937 | ---
+++
@@ -10,9 +10,11 @@
if [ ! -s /etc/haproxy/certs/default.pem ]; then rm /etc/haproxy/certs/default.pem;fi
if ! haproxy -v | grep -q 'version 1.6'; then
+ cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg_temp
apt-get update -y && apt-get install -y software-properties-common \
&& add-apt-re... | bash |
d_bash_938 | ---
+++
@@ -31,7 +31,7 @@
if [[ "$target" = *"all"* ]]; then
files="cinder"
else
- files=$(git diff --name-only --diff-filter=ACMRU $target "*.py")
+ files=$(git diff --name-only --diff-filter=ACMRU $target -- "*.py")
fi
if [ -n "${files}" ]; then | bash |
d_bash_939 | ---
+++
@@ -1,2 +1,7 @@
#!/bin/bash
+isExistApp=`ps -eaf |grep cp-zen-platform |grep -v grep| awk '{ print $2; }'`
+if [[ -n $isExistApp ]]; then
+ service cp-zen-platform stop
+fi
+
service cp-zen-platform start | bash |
d_bash_940 | ---
+++
@@ -7,9 +7,13 @@
export TRAVIS_TAG="master"
cd doc
+
make clean
# TODO: Fail if warnings from generation
# make html SPHINXOPTS="-W"
# TODO: Switch to sphinx-multiversion
make html
touch _build/html/.nojekyll
+
+# move back to source directory so we don't mess with future steps
+cd .. | bash |
d_bash_941 | ---
+++
@@ -16,6 +16,8 @@
# Thank god I won't type `bundle exec` or its alias `be` any more.
export PATH=.binstubs:$PATH
+export PATH=$PATH:/usr/local/Cellar/go/1.2/libexec/bin
+
export EDITOR=vim
export LC_ALL=en_US.UTF-8 | bash |
d_bash_942 | ---
+++
@@ -1,11 +1,4 @@
#!/bin/sh
-
-# Get the Source Code
-cd ..
-hg clone http://hg.python.org/cpython
-
-# Build Python
-cd cpython
-./configure
-make -j8
-sudo make install
+sudo add-apt-repository ppa:fkrull/deadsnakes
+sudo apt-get update
+sudo apt-get install python3.4 | bash |
d_bash_943 | ---
+++
@@ -7,7 +7,6 @@
cf unbind-service demoFileUploader free-virusscanner
cf delete-service free-virusscanner -f
-cf delete-service virusscanner-service -f
cf delete-service-broker generic-service-broker -f
cf delete-route local.pcfdev.io --hostname demofileuploader -f
cf delete-route local.pcfdev.io --host... | bash |
d_bash_944 | ---
+++
@@ -10,4 +10,4 @@
git fetch
git checkout $SLIZAA_COMMIT_ID
echo "Building slizaa-opencypher-xtext in quiet mode (only prints to console for the Xtext generator and in case of errors)"
-mvn clean install -q -DskipTests
+time mvn clean install -q -DskipTests | bash |
d_bash_945 | ---
+++
@@ -2,8 +2,8 @@
export DOTFILES_DIR=$HOME/.files
export EDITOR='nvim'
export GOPATH=~/go
-export LANG=en_IN.UTF-8
-export LC_ALL=en_IN.UTF-8
+export LANG=en_US.UTF-8
+export LC_ALL=en_US.UTF-8
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/libs
export PATH=$USER_BIN:$PATH
export SHELL="/home/linuxbrew/.l... | bash |
d_bash_946 | ---
+++
@@ -25,7 +25,7 @@
# Trim directory up to tail if we are in a .git repository.
function control_trim_directory_prompt() {
- if [ -f "$PWD/.git/index" ]; then
+ if [ -f "$PWD/.git/index" ] || [ -f "$PWD/.git" ]; then
echo -e "../${PWD##*/}"
else
echo -e ${PWD/$HOME/\~} | bash |
d_bash_947 | ---
+++
@@ -7,6 +7,7 @@
# Git
alias gap="git add --patch"
+alias pop="git stash pop"
# Bundler
alias b="bundle" | bash |
d_bash_948 | ---
+++
@@ -8,7 +8,7 @@
gvm install go1.4 && gvm use go1.4 && go install -a std && go get -u github.com/tools/godep
-declare -a versions=( '1.7.6' '1.8.5' '1.9.2' )
+declare -a versions=( '1.7.6' '1.8.7' '1.9.5' '1.10.1' )
for version in "${versions[@]}"
do
echo "================= Install Go $version==... | bash |
d_bash_949 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
# Copyright 2019 Google LLC.
-# This script is used to install `singularity` 3.3.0 on Ubutun 18.04.
+# This script is used to install `singularity` 3.7.0 on Ubutun 18.04.
# For different Linux distributions and versions, modifications might be needed.
# Installation instruction... | bash |
d_bash_950 | ---
+++
@@ -1,4 +1,14 @@
#!/bin/bash
bundle install
-bundle exec rails s -p 3010
+
+if [[ $1 == "--live" ]] ; then
+ GOVUK_APP_DOMAIN=www.gov.uk \
+ GOVUK_WEBSITE_ROOT=https://www.gov.uk \
+ PLEK_SERVICE_WHITEHALL_ADMIN_URI=${PLEK_SERVICE_WHITEHALL_ADMIN_URI-https://www.gov.uk} \
+ PLEK_SERVICE_CONTENT_STORE_... | bash |
d_bash_951 | ---
+++
@@ -20,14 +20,19 @@
_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive \
--hard-links --one-file-system'
-if grep -q 'xattrs' <(rsync --help 2>&1); then
- _rsync_cmd="${_rsync_cmd} --acls --xattrs"
-fi
+autoload -Uz is-at-least
+if is-at-least 3.1 ${"$(rsync --version 2>&1)"[(... | bash |
d_bash_952 | ---
+++
@@ -2,4 +2,4 @@
export JAVA_HOME=$(/usr/libexec/java_home -v1.7)
export GVM_SERVICE="http://localhost:8080"
export GVM_DIR="/tmp/gvm"
-./gradlew --daemon -i clean test
+./gradlew -i clean test | bash |
d_bash_953 | ---
+++
@@ -16,5 +16,5 @@
install -m 600 -D /dev/null "$SSH_PRIVATE_KEY_PATH"
echo "$SSH_PRIVATE_KEY" > "$SSH_PRIVATE_KEY_PATH"
echo "$SSH_KNOWN_HOST" > ~/.ssh/known_hosts
-rsync -avze "ssh -i $SSH_PRIVATE_KEY_PATH" build/site/ "$HOST:$HOST_PATH"
+rsync -avze "ssh -i $SSH_PRIVATE_KEY_PATH" spring-session-docs/buil... | bash |
d_bash_954 | ---
+++
@@ -5,4 +5,4 @@
source client-env
PRELOAD=../client-preload-lib/flyserv_client.so
-env LD_LIBRARY_PATH=${QUARTUS_ROOTDIR}/linux64 LD_PRELOAD=${PRELOAD} ${QUARTUS_ROOTDIR}/linux64/jtagd -f
+exec env LD_LIBRARY_PATH=${QUARTUS_ROOTDIR}/linux64 LD_PRELOAD=${PRELOAD} ${QUARTUS_ROOTDIR}/linux64/jtagd -f | bash |
d_bash_955 | ---
+++
@@ -16,7 +16,7 @@
export LESS='--ignore-case --raw-control-chars'
export PAGER='most'
export NODE_PATH=/opt/boxen/nodenv/versions/v0.10/lib
-export EDITOR='nvim'
+export EDITOR='vim'
export PYTHONPATH=/usr/local/lib/python2.6/site-packages
# CTAGS Sorting in VIM/Emacs is better behaved with this in place... | bash |
d_bash_956 | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env sh
# Install Composer dependencies
-composer install --no-interaction
+composer install --no-interaction --ignore-platform-req=ext-maxminddb
# Import locales on backend
bin/console locale:generate | bash |
d_bash_957 | ---
+++
@@ -21,6 +21,10 @@
cp /opt/factorio/data/map-gen-settings.example.json $CONFIG/map-gen-settings.json
fi
+if [ ! -f $CONFIG/server-whitelist.json ]; then
+ cp /opt/factorio/data/server-whitelist.example.json $CONFIG/server-whitelist.json
+fi
+
if ! find -L $SAVES -iname \*.zip -mindepth 1 -print | grep... | bash |
d_bash_958 | ---
+++
@@ -15,7 +15,7 @@
pandoc --read=html --write=rst "$read_file" -o "$write_file"
sed -ie "1,6d" "$write_file"
- sed -ie "s/\Module //" "$write_file"
+ sed -ie "1s/\Module //" "$write_file"
LINE_1=`cat $write_file | wc -l`
LINE_2=`expr $LINE_1 - 10`
sed -ie "$LINE_2,\$d" "$write_... | bash |
d_bash_959 | ---
+++
@@ -9,10 +9,6 @@
# Backup Wordpress files
cd /var/www/
tar jvcf $LOCAL/wordpress.tar.bz2 *
-
-# Backup home directory web files
-cd /home/mike/Sites/work/
-tar jvcf $LOCAL/work.tar.bz2 *
# Backup Wordpress database
USERNAME=$(grep DB_USER /var/www/wp-config.php | awk -F "'" '{print $4}')
@@ -27,6 +23,5... | bash |
d_bash_960 | ---
+++
@@ -5,14 +5,12 @@
echo "Generating synthetic users"
# Generate 2 fake web site users
-python3 user_generator.py --n=2
+python3 user_generator.py --n=10
echo "Generating synthetic events"
rm *.out
# Generate 10 events
-python3 event_generator.py -x=taxonomy.json --num_e=10 --project_id=$(gcloud config... | bash |
d_bash_961 | ---
+++
@@ -1,7 +1,7 @@
#just to set some globals used by the other scripts
-FORGE='forge-1.12.2-14.23.5.2808-universal.jar'
+FORGE='forge-1.12.2-14.23.5.2814-universal.jar'
SERVER_DIR="$(pwd)"
-START_MEMORY=4096
+START_MEMORY=2048
MAX_MEMORY=4096
[[ -f /etc/profile.d/java.sh ]] && . /etc/profile.d/java.sh | bash |
d_bash_962 | ---
+++
@@ -13,9 +13,9 @@
COMMIT="${ghprbActualCommit:=$GIT_COMMIT}"
# Tag using git hash
-docker tag -f `echo jenkins${JOB_NAME}${BUILD_NUMBER}| sed s/_//g`_web $DOCKER_REPOSITORY:$COMMIT
+docker tag `echo jenkins${JOB_NAME}${BUILD_NUMBER}| sed s/_//g`_web $DOCKER_REPOSITORY:$COMMIT
docker push $DOCKER_REPOSITO... | bash |
d_bash_963 | ---
+++
@@ -5,7 +5,9 @@
# Create the '/usr/local/bin' directory if it does not exist
if [ ! -d "/usr/local/bin" ]; then
- sudo mkdir -p /usr/local/bin
+ sudo mkdir -p /usr/local
+ sudo chmod -R 775 /usr/local
+ mkdir -p /usr/local/bin
fi
# Download the 'tm-monitor' script | bash |
d_bash_964 | ---
+++
@@ -6,4 +6,4 @@
echo "Running with BenchmarkSiteBuilding/${1}"
-go test -run="NONE" -bench="BenchmarkSiteBuilding/${1}$" -test.benchmem=true ./hugolib
+go test -run="NONE" -bench="BenchmarkSiteBuilding/${1}$" -test.benchmem=true ./hugolib -memprofile mem.prof -cpuprofile cpu.prof | bash |
d_bash_965 | ---
+++
@@ -9,3 +9,7 @@
if [[ "$TRAVIS_PHP_VERSION" == "5.3.3" ]]; then
php --version
fi
+
+if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then
+ sed '/MockeryPHPUnitIntegration/d' -i ./phpunit.xml.dist
+fi | bash |
d_bash_966 | ---
+++
@@ -8,6 +8,7 @@
APT_GET_DEPENDS=("python-dev" "python-pip" "python3-dev" "python3-pip")
APT_GET_DEPENDS+=("vim" "git" "curl" "terminator" "tree")
APT_GET_DEPENDS+=("openssh-client" "openssh-server")
+APT_GET_DEPENDS+=("dmsetup")
sudo apt-get update
for ITEM in "${APT_GET_DEPENDS[@]}"; do
echo "Installi... | bash |
d_bash_967 | ---
+++
@@ -3,7 +3,7 @@
curl -Lo /etc/yum.repos.d/virtualbox.repo http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
yum groupinstall -y "Development Tools"
-yum install -y kernel-devel
+yum install -y kernel-devel-$(uname -r)
yum install -y VirtualBox-${VAGRANT_CENTOS_VIRTUALBOX_VERSION:-5.1}
... | bash |
d_bash_968 | ---
+++
@@ -12,7 +12,7 @@
( cd data && $PREPARETIPS > ../tips.cpp )
fi
-# Call xgettext on all source files.
+# Extract strings from all source files.
# If your framework depends on KI18n, use $XGETTEXT. If it uses Qt translation
-# system, use $XGETTEXT_QT.
-$EXTRACT_TR_STRINGS . $podir/kdesignerplugin5.pot... | bash |
d_bash_969 | ---
+++
@@ -11,7 +11,7 @@
function lvm_initramfs_hook() {
LVM_INITRAMFS_HOOK=/usr/share/initramfs-tools/scripts/local-top/lvm2
- sed 's/lvchange_activate() {/vgchange -ay\nlvchange_activate() {/' $LVM_INITRAMFS_HOOK
+ sed 's/lvchange_activate() {/vgchange -ay\n\nlvchange_activate() {/' $LVM_INITRAMFS_HOOK
... | bash |
d_bash_970 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+mkdir .docker-cache || true
+mkdir .docker-cache/openmined || true
cd .docker-cache/openmined
ls | grep .tar.gz | xargs -L 1 -I {} tar -xf {} | bash |
d_bash_971 | ---
+++
@@ -42,6 +42,7 @@
Snap.Internal.Routing.Tests
Snap.Types.Tests
Snap.Util.FileServe.Tests
+Snap.Util.FileUploads.Tests
Snap.Util.GZip.Tests
Text.Snap.Templates.Tests
Snap.Test.Common' | bash |
d_bash_972 | ---
+++
@@ -21,6 +21,6 @@
echo "checking PSLSE_ROOT=${PSLSE_ROOT} card=$FPGACARD version=$version branch=$branch"
case $FPGACARD in
"N250SP") if [ $branch != "\* capi2" ];then echo "WARNING: PSLSE branch=$branch should be capi2";fi;;
- *) if [ $version != "v3.1" ];then echo "WARNING: PSLSE version=$(v... | bash |
d_bash_973 | ---
+++
@@ -1 +1,5 @@
+sudo apt-get install ruby-dev -y
+sudo gem install jekyll bundler
+printf "source 'https://rubygems.org' \ngem 'github-pages', group: :jekyll_plugins" > Gemfile
+bundle install
bundle exec jekyll serve | bash |
d_bash_974 | ---
+++
@@ -6,7 +6,7 @@
for i in ingest1 ingest2 ingest3 ingest4
do
-$(dirname "$0")/../../bulk_add/bin/bulk_add $i.clockss.org 8081 $*
+$(dirname "$0")/../bulk_add/bin/bulk_add $i.clockss.org 8081 $*
# Use sleep command for debug.
#sleep 5
done | bash |
d_bash_975 | ---
+++
@@ -4,7 +4,14 @@
NAME=$1
-VERSION_TAG=${NAME}:${CIRCLE_TAG#?}
+if [ -z $CIRCLE_TAG ];
+then
+ VERSION=${CIRCLE_TAG#?}
+else
+ VERSION=${CRICLE_SHA1}
+fi
+
+VERSION_TAG=${NAME}:${VERSION}
LATEST_TAG=${NAME}:latest
docker build -t ${VERSION_TAG} . | bash |
d_bash_976 | ---
+++
@@ -9,7 +9,7 @@
cd emacs-$INSTALL_EMACS_VER
# Install.
-./configure
+./configure --with-x-toolkit=no --with-xpm=no --with-png=no --with-gif=no
make
sudo make install
| bash |
d_bash_977 | ---
+++
@@ -3,7 +3,7 @@
case "$1" in
java8)
- echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u282-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u282b08.tar.gz"
+ echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u292-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u292b... | bash |
d_bash_978 | ---
+++
@@ -8,7 +8,9 @@
brew install python numpy
brew install vtk5 --with-qt ;;
("macports")
- echo "WARNING: install_prereqs macports not implemented for this module" ;;
+ port install qt4-mac qwt
+ port install python27 py-pip py-numpy
+ port install vtk5 +qt4_mac +python27 ;;
("ubuntu"... | bash |
d_bash_979 | ---
+++
@@ -20,5 +20,5 @@
exit 1
fi
-R --vanilla -e "tryCatch(install.packages(pkgs=$pkgs,type='source',lib='$rlib'),error=function(e)q(status=1))"
+R --vanilla -e "tryCatch(install.packages(pkgs=$pkgs,type='source',repos=NULL,lib='$rlib'),error=function(e)q(status=1))"
| bash |
d_bash_980 | ---
+++
@@ -1,28 +1,22 @@
#!/bin/bash
-START=$1
-END=$2
-DIFF=$(($END-$START+1))
+SUFFIX=$1
-DOIS=`head -n $END data/dois/doi_urls.txt | tail -n $DIFF`
+DOI_URL=http://dx.doi.org/10.1101/$SUFFIX
-for DOI_URL in $DOIS
-do
- BIORXIV_URL=`curl -L -o /dev/null --silent --head --write-out '%{url_effective}\n' $DOI_... | bash |
d_bash_981 | ---
+++
@@ -6,7 +6,9 @@
cargo test --verbose -- --test-threads=1
for example_dir in examples/*; do
- cd $example_dir
- tox -c "tox.ini" -e py
- cd -
+ if [ $example != 'examples/linalg' ]; then
+ pushd $example_dir
+ tox -c "tox.ini" -e py
+ popd
+ fi
done | bash |
d_bash_982 | ---
+++
@@ -1,6 +1,7 @@
#!/bin/bash
#
# Find anagrams of default options for a list of commands
+# Commentary: http://bit.ly/2ogpOJA
# Pull in a list of common Linux commands
commandList=( $( | bash |
d_bash_983 | ---
+++
@@ -7,7 +7,7 @@
case $OS in
Linux)
docker build -t kokoro-native-image tools/release/native
- docker run -v /var/run/docker.sock:/var/run/docker.sock -v $base_dir:$base_dir kokoro-native-image -e ARTIFACTS_OUT=$base_dir/artifacts $base_dir/packages/grpc-tools/build_binaries.sh
+ docker run -v /var/run/... | bash |
d_bash_984 | ---
+++
@@ -1,3 +1,4 @@
+set -e
gitsha=$(git rev-parse HEAD)
| bash |
d_bash_985 | ---
+++
@@ -7,7 +7,7 @@
jsonlite_drop --force
for i in $(seq 1 $ITERATIONS); do
- ID=$(jsonlite_set '{"name":"John Doe","active":true,"permissions":{"read":true,"write":false}}')
- jsonlite_get "$ID"
- jsonlite_delete "$ID"
+ ID=$(jsonlite_set '{"name":"John Doe","active":true,"permissions":{"read":true... | bash |
d_bash_986 | ---
+++
@@ -4,6 +4,10 @@
black --skip-string-normalization --line-length 120 --check tests
black --skip-string-normalization --line-length 120 --check src
+# run isort for import structure checkup with black profile
+isort --atomic --profile black -c src
+isort --atomic --profile black -c tests
+
# run python st... | bash |
d_bash_987 | ---
+++
@@ -1,4 +1,9 @@
#!/bin/bash
+
+###
+#$ -S /bin/bash
+#$ -pe orte {{ number_of_slots }}
+###
HYDRA_DIR="/opt/hydra"
HYDRA="${HYDRA_DIR}/bin/hydra" | bash |
d_bash_988 | ---
+++
@@ -22,7 +22,7 @@
ln -fsv "${1}" "${2}"
}
-cd `dirname "${0}"`
+cd "$(dirname "${0}")"
for file in "${DOTFILES[@]}"; do
makeln "${PWD}/${file}" "${HOME}/.${file}"
@@ -38,7 +38,7 @@
fi
if [[ ! "${SHELL}" =~ /zsh$ ]]; then
- ZSH=`grep zsh /etc/shells | head -1`
+ ZSH=$(grep zsh /etc/shells | h... | bash |
d_bash_989 | ---
+++
@@ -1,8 +1,12 @@
+#!/bin/sh
+set -ex
+
+apt-get install git
git clone https://openspur.org/repos/yp-spur.git/
cd yp-spur
./configure
make
-sudo make install
-sudo ldconfig
+make install
+ldconfig
cd .. | bash |
d_bash_990 | ---
+++
@@ -10,5 +10,6 @@
cd $WORKSPACE/warehouse-transforms/warehouse_transforms_project
dbt clean
+dbt seed --profile $DBT_PROFILE --target $DBT_TARGET --profiles-dir $WORKSPACE/analytics-secure/warehouse-transforms/
dbt run --models tag:$MODEL_TAG --profile $DBT_PROFILE --target $DBT_TARGET --profiles-dir $WO... | bash |
d_bash_991 | ---
+++
@@ -12,3 +12,7 @@
cd ../ && npm install --loglevel silent && cd ./scripts
fi
+if [ -d ../tests/out ]; then
+ echo "Prior out directory found, removing."
+ rm -rRf ../tests/out/
+fi | bash |
d_bash_992 | ---
+++
@@ -10,5 +10,5 @@
}
get_secret() {
- vault read -format=json secret/${1} | jq -r '.data'
+ vault read -format=json ${1} | jq -r '.data'
} | bash |
d_bash_993 | ---
+++
@@ -23,6 +23,7 @@
curl http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh > miniconda3.sh
bash miniconda3.sh -b -p /opt/conda3
rm miniconda3.sh
+ln -s /opt/conda2 /opt/conda
export PATH="/opt/conda/bin:${PATH}"
source activate root
conda config --set show_channel_urls True | bash |
d_bash_994 | ---
+++
@@ -24,14 +24,18 @@
then
echo "npm version on install:"
npm -v
+ mv npm-shrinkwrap.json npm-shrinkwrap.json.backup
npm ci
npm ls
+ mv npm-shrinkwrap.json.backup npm-shrinkwrap.json
elif [ "$NODEJS_VERSION" = "nodejs6" ];
then
echo "npm version on install:"
npm -v
+ mv... | bash |
d_bash_995 | ---
+++
@@ -3,7 +3,7 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-echo '// ./mkunix.sh' "$1"
+echo '// ./mkunixsignals.sh' "$1"
echo '// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT'
echo
| bash |
d_bash_996 | ---
+++
@@ -28,6 +28,6 @@
echo "Install wget..."
install_mac_dependency wget
-echo "Install gcc48..."
-sudo port selfupdate
-sudo port install gcc48
+#echo "Install gcc48..."
+#sudo port selfupdate
+#sudo port install gcc48 | bash |
d_bash_997 | ---
+++
@@ -1,4 +1,13 @@
- https://dl-ssl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg
- hdiutil attach googlechrome.dmg
- cd /Volumes/Google\ Chrome/
- cp -iv Google\ Chrome.app ~/Applications/Google\ Chrome.app
+ [[ -d ~/installtmp ]] && mkdir ~/installtmp
+ INSTALL_ROOT = ~/installtmp
+ cd $INSTALL_... | bash |
d_bash_998 | ---
+++
@@ -1,2 +1,2 @@
#!/bin/sh
-zig4 -l../../ILP/ilp_eu26_all_weights.tif 14_load_abf_wgt_ilp_all/14_load_abf_wgt_ilp_all.dat 14_load_abf_wgt_ilp_all/14_load_abf_wgt_ilp_all.spp 14_load_abf_wgt_ilp_all/14_load_abf_wgt_ilp_all_out/14_load_abf_wgt_ilp_all.txt 0.0 0 1.0 0 --grid-output-formats=compressed-tif --image... | bash |
d_bash_999 | ---
+++
@@ -22,7 +22,7 @@
{
local program="$1"
local file="$2"
- local output="$("$program" "$file")"
+ local output="$($program "$file")"
echo -n "${output%% *}"
} | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.