document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_3800 | ---
+++
@@ -2,3 +2,6 @@
#TODO Find the most convenient way to install this Python2 package (needed for py360):
#Crypto.Cipher
+
+sudo port install \
+ python32 | bash |
d_bash_3801 | ---
+++
@@ -11,7 +11,7 @@
fi
if [ ! -f /etc/opt/keezer_client.cfg ]; then
- cp ./keezer_client.cfg.example /etc/opt/keezer_client.cfg
+ cp ./keezer_client.cfg /etc/opt/keezer_client.cfg
fi
cp ./keezer_client.py /opt/keezer_client/keezer_client.py
apt-get install -y python python-rpi.gpio | bash |
d_bash_3802 | ---
+++
@@ -12,14 +12,14 @@
stressArgs=${*:2}
else
connectorArgs=${*:$((startConnIdx))}
- sparkmaster=${*:$((startConnIdx-1)):1}
+ sparkmaster="--master ${*:$((startConnIdx-1)):1}"
stressArgs=${*:2:$((startConnIdx-2))}
fi
JAR=build/libs/SparkCassandraStress-1.0.jar
CLASS=com.datastax.sparkstress.Sp... | bash |
d_bash_3803 | ---
+++
@@ -1,4 +1,9 @@
+#!/bin/sh
+
cd ../..
+
+# remove github dep cache
+rm -rf src/github.com
export GOPATH=$PWD
export PATH=$GOPATH/bin:$PATH
@@ -7,6 +12,11 @@
godep get github.com/ZiCog/shiny-thing/foo
cd -
+
+# remove workspace cache
+rm -rf Godeps/_workspace
+
+
go install
mkdir -p Godeps/_worksp... | bash |
d_bash_3804 | ---
+++
@@ -3,10 +3,13 @@
function LockScreen
{
local desktopEnv="`echo $XDG_CURRENT_DESKTOP | tr '[:upper:]' '[:lower:]'`"
+ if [[ -z $desktopEnv ]]; then
+ desktopEnv="`w | grep ' :0.* :0' | tr '[:upper:]' '[:lower:]'`"
+ fi
if [[ $desktopEnv =~ "cinnamon" ]]; then
- bash -c "cinnamon-screensaver-... | bash |
d_bash_3805 | ---
+++
@@ -17,3 +17,4 @@
mv ./go/* $GOROOT
go get -u github.com/NeowayLabs/nash/cmd/nash
+ln -s $GOPATH/bin/nash /bin/nash | bash |
d_bash_3806 | ---
+++
@@ -29,6 +29,7 @@
returnBranch(){
case $@ in
+ *ee-6.1.30*) echo ee-6.1.30;;
*ee-6.1.x*) echo ee-6.1.x;;
*ee-6.2.x*) echo ee-6.2.x;;
*ee-6.2.10*) echo ee-6.2.10;; | bash |
d_bash_3807 | ---
+++
@@ -13,7 +13,7 @@
set -- sentry "$@"
;;
generate-secret-key)
- exec python -c 'from sentry.runner.settings import generate_secret_key; print(generate_secret_key())'
+ exec sentry config generate-secret-key
;;
esac
| bash |
d_bash_3808 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-mkdir -p "${KOBOCAT_SRC_DIR}/onadata/static"
+gosu "${UWSGI_USER}" mkdir -p "${KOBOCAT_SRC_DIR}/onadata/static"
echo "Collecting static files..."
gosu "${UWSGI_USER}" "${VIRTUAL_ENV}/bin/python" manage.py collectstatic -v 0 --noinput | bash |
d_bash_3809 | ---
+++
@@ -10,5 +10,7 @@
yum-config-manager --add-repo=https://copr.fedorainfracloud.org/coprs/carlgeorge/ripgrep/repo/epel-7/carlgeorge-ripgrep-epel-7.repo
yum install ripgrep
elif test "$(which brew)"; then # Darwin
- brew install ripgrep
+ # this has SIMD and other optimizations
+ brew tap burntsushi/r... | bash |
d_bash_3810 | ---
+++
@@ -7,8 +7,8 @@
return 1
fi
- if [[ "$1" =~ ^http[|s]:// ]]; then
- osascript -e "tell app 'Droplr' to shorten '$1'"
+ if [[ "$1" =~ ^https?:// ]]; then
+ osascript -e 'tell app "Droplr" to shorten "'"$1"'"'
else
open -ga /Applications/Droplr.app "$1"
fi | bash |
d_bash_3811 | ---
+++
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
-sudo apt-get update && sudo apt-get install -y nginx
+sudo apt-get update && sudo apt-get install -y nginx fswebcam
| bash |
d_bash_3812 | ---
+++
@@ -14,3 +14,5 @@
python tools/check_gerrit_projects_changed.py gerrit/projects-old.yaml \
gerrit/projects.yaml
+
+rm gerrit/projects-old.yaml | bash |
d_bash_3813 | ---
+++
@@ -54,5 +54,12 @@
fi
}
+# Execute a command in a specific directory
+function in() {
+ (
+ cd ${1} && shift && ${@}
+ )
+}
+
# Mirror a website
alias mirrorsite='wget -m -k -K -E -e robots=off' | bash |
d_bash_3814 | ---
+++
@@ -8,7 +8,7 @@
echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/nginx-stable.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
sudo apt-get update -y
-sudo apt-get install -y nginx=1.8.1-1+trusty0
+sudo apt-get ins... | bash |
d_bash_3815 | ---
+++
@@ -9,7 +9,7 @@
mkdir /mnt/coreos
OEM_PARTITION_NUM=6 # https://coreos.com/os/docs/latest/sdk-disk-partitions.html
mount <%=installDisk%>${OEM_PARTITION_NUM} /mnt/coreos/
-echo "set linux_append=\"coreos.first_boot=1 coreos.config.url=<%=ignitionScriptUri%>\"" > /mnt/coreos/grub.cfg
+echo "set linux_append... | bash |
d_bash_3816 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.2%2B12/OpenJDK14U-jdk_x64_linux_hotspot_14.0.2_12.tar.gz"
;;
java15)
- echo "https://github.com/AdoptOpenJDK/openjdk15-binaries/releases/download/jdk15u-2020-08-19-01-38/OpenJDK15U-jdk_x64_linux_hot... | bash |
d_bash_3817 | ---
+++
@@ -3,17 +3,6 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
-
-# Returns "*" if the current git branch is dirty.
-function git_dirty {
- [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]] && echo "*"
-}
-
-
-if [ git_dirty == "*" ]; then
- echo "Please commit your changes be... | bash |
d_bash_3818 | ---
+++
@@ -3,5 +3,5 @@
rm -f Gemfile.lock
bundle install --path "${HOME}/bundles/${JOB_NAME}"
export GOVUK_APP_DOMAIN=development
-govuk_setenv default bundle exec rake test
-govuk_setenv default bundle exec rake publish_gem
+bundle exec rake test
+bundle exec rake publish_gem | bash |
d_bash_3819 | ---
+++
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
+
+BREW_PREFIX=$(brew --prefix)
function pretty_print() {
printf '\n\033[1m\033[34m%s\033[0m\n\n' "[macos-confs] ${1}…"
@@ -11,9 +13,9 @@
brew install bash
pretty_print "⚠️ Changing from BSD bash (macOS) to GNU bash (brew)"
- if ! grep -q '/usr/local/bin/bas... | bash |
d_bash_3820 | ---
+++
@@ -2,3 +2,19 @@
export PATH
MANPATH=/opt/confluent/share/man:$MANPATH
export MANPATH
+alias confetty='set -f;confetty';confetty(){ command confetty ; set +f;}
+alias nodeattrib='set -f;nodeattrib';nodeattrib(){ command nodeattrib ; set +f;}
+alias nodeboot='set -f;nodeboot';nodeboot(){ command nodeboot ; ... | bash |
d_bash_3821 | ---
+++
@@ -1,13 +1,13 @@
#!/bin/sh
filebot -script fn:amc \
- --output "/var/lib/plexmediaserver" \
+ --output "/var/lib/plexmediaserver/Media" \
--log-file amc.log \
--action hardlink \
--conflict override -non-strict \
--def music=y subtitles=en artwork=y \
... | bash |
d_bash_3822 | ---
+++
@@ -3,6 +3,6 @@
echo "Installing Personal Assistant..."
sudo cp ./pa/pa /usr/local/bin && \
-( sudo mkdir /var/pa ; sudo cp ./pa/commands ./LICENSE ./README.md /var/pa ) && \
+(sudo mkdir /var/pa ; sudo cp ./pa/commands ./LICENSE ./README.md /var/pa) && \
export PATH=$PATH:/usr/local/bin && \
echo "Inst... | bash |
d_bash_3823 | ---
+++
@@ -2,4 +2,14 @@
sudo apt-get update
sudo apt-get install -y gcc make tmux zsh
-sudo gem install aruba bundle
+
+if [ -z "$TRAVIS"]; then
+ sudo apt-get install -y ruby2.3 ruby2.3-dev
+fi
+
+# Change directory to the checkout root
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+cd $DIR/..
+
+... | bash |
d_bash_3824 | ---
+++
@@ -7,15 +7,15 @@
function password_ready() {
docker-compose ps -q | \
- xargs -n1 -I {} docker exec {} test -r /var/lib/jenkins/secrets/initialAdminPassword
+ xargs -n1 -I {} docker exec {} test -r "${DOCKER_JENKINS_HOME:-/var/lib/jenkins}"/secrets/initialAdminPassword
}
if [ -z "${JENKINS_PASS... | bash |
d_bash_3825 | ---
+++
@@ -1,4 +1,4 @@
-function gi() { curl http://gitignore.io/api/$@ ;}
+function gi() { curl http://www.gitignore.io/api/$@ ;}
_gitignireio_get_command_list() {
curl -s http://gitignore.io/api/list | tr "," "\n" | bash |
d_bash_3826 | ---
+++
@@ -1,2 +1,5 @@
#!/bin/bash
-GOOS=windows GOARCH=amd64 go build -o whycc.exe whycc.go
+VERSION=`git describe --abbrev=0 --tags`
+COMMIT=`git log --pretty=format:'%h' -n 1`
+DATE=`date +"%Y%m%d%H%M%S"`
+GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=$VERSION -X main.commit=$COMMIT -X main.date=$... | bash |
d_bash_3827 | ---
+++
@@ -6,10 +6,13 @@
run_on $HOST1 sudo ./weave --local reset
-run_on $HOST1 sudo ./weave --local launch
+run_on $HOST1 sudo ./weave --local launch -iprange 10.2.5.0/24
assert_raises "docker_on $HOST1 ps | grep weave"
run_on $HOST1 sudo ./weave --local run 10.2.6.5/24 -ti --name=c1 gliderlabs/alpine /bi... | bash |
d_bash_3828 | ---
+++
@@ -11,5 +11,5 @@
mkdir -p ~/.nvm
fi
source ~/dotfiles/terminal/bash/load_nvm.sh
-install_node_version 16.5.0
-nvm alias default 16.5.0
+install_node_version 16.16.0
+nvm alias default 16.16.0 | bash |
d_bash_3829 | ---
+++
@@ -10,13 +10,14 @@
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS=--no-site-packages
if [[ "$OS_IS_POSIX" = true ]]; then
+
+ antigen bundle virtualenvwrapper
+
# create virtualenv py if necessary
lsvirtualenv -b |grep py > /dev/null 2>&1
if [ $? -eq 1 ]; then
mkvirtualenv py
... | bash |
d_bash_3830 | ---
+++
@@ -3,9 +3,8 @@
set -eu
conf=${CONFIG_FILE:-/etc/origin/node/node-config.yaml}
-opts=${OPTIONS:---loglevel=2}
-if [ "$#" -ne 0 ]; then
- opts=""
+if [[ "$#" -eq 0 ]]; then
+ eval "set -- ${OPTIONS:---loglevel=2}"
fi
-exec /usr/bin/openshift start node "--config=${conf}" ${opts} $@
+exec /usr/bin/open... | bash |
d_bash_3831 | ---
+++
@@ -6,8 +6,8 @@
#This is a list of all storage node aliases and are space seperated. There is no limit on the number of items.
#You will need to modify the below line for any of the scripts in this directory to work.
#storageNodes=( fogsite1 fogsite2 downtown uptown dallas houston floor1 floor2 japan uk )
... | bash |
d_bash_3832 | ---
+++
@@ -23,10 +23,10 @@
if [[ -z "$TEST_SHELLS" ]]; then needs_zsh=true; fi
# finally, we install zsh if needed!
- if $needs_zsh ; then
+ if $needs_zsh; then
+ sudo apt-get update
sudo apt-get install zsh
else
echo "No deps required."
fi
-
fi | bash |
d_bash_3833 | ---
+++
@@ -11,7 +11,7 @@
export RUBY_ROOT=/opt/rubies/$version
if [ ! -f $GEM_HOME/bin/bundle ]; then
- gem install bundler --no-rdoc --no-ri
+ gem install bundler --no-document
fi
bundle install --quiet | bash |
d_bash_3834 | ---
+++
@@ -4,4 +4,4 @@
presto-product-tests/bin/run_on_docker.sh \
multinode \
- -x quarantine,big_query,storage_formats,profile_specific_tests,tpcds,cassandra,mysql_connector,postgresql_connector,mysql,kafka,avro
+ -x quarantine,big_query,storage_formats,profile_specific_tests,tpcds,cassandra,mysql_co... | bash |
d_bash_3835 | ---
+++
@@ -17,8 +17,10 @@
# Build the project with bazel using Kokoro.
set -e
+set -x
-set -x
+# Print the UTC time when set -x is on
+export PS4='[$(date -u "+%T %Z")] '
# Check these exist and print the versions for later debugging
bazel --version | bash |
d_bash_3836 | ---
+++
@@ -13,12 +13,13 @@
# ignored
-UNTERMINATED_LOGS=$(git grep "LogPrintf(" -- "*.cpp" | \
+UNTERMINATED_LOGS=$(git grep --extended-regexp "LogPrintf?\(" -- "*.cpp" | \
grep -v '\\n"' | \
grep -v "/\* Continued \*/" | \
+ grep -v "LogPrint()" | \
grep -v "LogPrintf()")
if [[ ${UNTERMINATE... | bash |
d_bash_3837 | ---
+++
@@ -41,6 +41,7 @@
cp $src/ender.js $dest
cp $src/package.js $dest
cp $src/.npmignore $dest
+cp -r $src/ts3.1-typings $dest
rm -rf $src
| bash |
d_bash_3838 | ---
+++
@@ -16,9 +16,6 @@
}
checkshell "bash"
- checkshell "sh"
- checkshell "dash"
- checkshell "ksh"
else
echo "shellcheck not found! scripts NOT linted" | bash |
d_bash_3839 | ---
+++
@@ -22,7 +22,7 @@
echo _auth = "${NPM_AUTH_TOKEN}" > ~/.npmrc
echo email = "${NPM_EMAIL}" >> ~/.npmrc
-NPM_VERSION=`cat package.json | grep 'version' | awk '{print substr($2, 2, length($2)-3)}'`
+NPM_VERSION=$(grep package.json -e 'version' | awk '{print substr($2, 2, length($2)-3)}')
NPM_VERSION_PRERELE... | bash |
d_bash_3840 | ---
+++
@@ -1,3 +1,11 @@
+# Use `hub` as our git wrapper:
+# http://defunkt.github.com/hub/
+hub_path=$(which hub)
+if (( $+commands[hub] ))
+then
+ alias git=$hub_path
+fi
+
# The rest of my fun git aliases
alias gd='git diff'
alias gpb='git checkout $(git branch | cut -c 3- | pick)' | bash |
d_bash_3841 | ---
+++
@@ -1 +1,6 @@
-"$CI_SCRIPTS_DIR"/retry.sh cabal v2-update --index-state="@$(git show -s --format=%ct HEAD)"
+update_args=
+if ${CI_USE_COMMIT_INDEX_STATE:-true}; then
+ update_args=--index-state="@$(git show -s --format=%ct HEAD)"
+fi
+
+"$CI_SCRIPTS_DIR"/retry.sh cabal v2-update $update_args | bash |
d_bash_3842 | ---
+++
@@ -6,4 +6,4 @@
# Run unit tests
cd /data/protected/tests
-./phpunit unit/
+../../vendor/bin/phpunit unit/ | bash |
d_bash_3843 | ---
+++
@@ -1,4 +1,4 @@
#!/bin/sh
-python ../rst2pdf/createpdf.py manual.txt -o manual.pdf -s manual.style -b1
+../bin/rst2pdf manual.txt -o manual.pdf -s manual.style -b1
rst2man rst2pdf.txt rst2pdf.1 | bash |
d_bash_3844 | ---
+++
@@ -1,3 +1,4 @@
+PROJECTS=${PROJECTS:-~/projects}
hash -d p=$PROJECTS
function p() { | bash |
d_bash_3845 | ---
+++
@@ -7,4 +7,6 @@
--baseurl /journal \
--force_polling \
-H 0.0.0.0 \
- --port 4000
+ --port 4000 \
+ --verbose \
+ --future | bash |
d_bash_3846 | ---
+++
@@ -8,10 +8,10 @@
fi
USER_HOME="/home/$USER_NAME"
-export LD_LIBRARY_PATH=/usr/lib/grass70/lib:$LD_LIBRARY_PATH
-export PYTHONPATH=/usr/lib/grass70/etc/python:$PYTHONPATH
-export GISBASE=/usr/lib/grass70/
-export PATH=/usr/lib/grass70/bin/:$GISBASE/bin:$GISBASE/scripts:$PATH
+export LD_LIBRARY_PATH=/usr/l... | bash |
d_bash_3847 | ---
+++
@@ -3,8 +3,8 @@
if lspci | grep RAID | grep -i 3ware >> /dev/null; then
sudo /etc/sensu/plugins/check_3ware_raid.py -b /usr/sbin/tw-cli
elif lspci | grep RAID | grep -i "MegaRAID" >> /dev/null; then
- if [[ -e /etc/sensu/plugins/check_storcli.pl && -e /usr/sbin/storcli64 ]];then
- sudo /etc/sen... | bash |
d_bash_3848 | ---
+++
@@ -9,10 +9,10 @@
rm -rf $tmp_dir
git clone --depth 2 --branch master "git@github.com:ReactTraining/reacttraining.com.git" $tmp_dir
-# Build the website into the public/react-router dir
-rm -rf "$tmp_dir/public/react-router"
+# Build the website into the static/react-router dir
+rm -rf "$tmp_dir/static/re... | bash |
d_bash_3849 | ---
+++
@@ -7,9 +7,16 @@
FILES_CHANGED=$(git diff --name-only origin/develop...HEAD)
+if [ -z $FILES_CHANGED ]; then
+ # no files have changed, likely a merge commit into develop
+ echo "No file changes detected, not a docs only commit" >&2
+ exit 2;
+fi
+
for file in $FILES_CHANGED
do
if [[ $fil... | bash |
d_bash_3850 | ---
+++
@@ -11,12 +11,22 @@
log "installation done"
exit 0
;;
+
tpm)
log "installing tmux plugin manager (tpm)"
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
log "installation done"
;;
+
+ funcoeszz)
+ log "installing funcoeszz"
+ wget "http://funcoeszz.net/download/f... | bash |
d_bash_3851 | ---
+++
@@ -13,6 +13,7 @@
ln -s ../../Static/public/$d public/
done
+bundle exec rake db:mongoid:drop
bundle exec rake ci:setup:testunit test
RESULT=$?
exit $RESULT | bash |
d_bash_3852 | ---
+++
@@ -1,6 +1,6 @@
#! /bin/bash
-TEST_CMD="xcodebuild -scheme GABoardGameGeek -workspace GABoardGameGeek.xcworkspace -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6S,OS=9.2' build test"
+TEST_CMD="xcodebuild -scheme GABoardGameGeek -project GABoardGameGeek.xcodeproj -sdk iphonesimulato... | bash |
d_bash_3853 | ---
+++
@@ -30,5 +30,11 @@
-print0
}
+# Notes on shellcheck exclusions:
+# - SC2016 is ignored because it complains about backticks in single-quotes,
+# which we use as in markdown, but shellcheck assumes we intended to be
+# command substitution and thus wants to see them in double-quotes.
+# ... | bash |
d_bash_3854 | ---
+++
@@ -2,7 +2,7 @@
# install core packages
apt-get update
-apt-get install -y vim-nox python ruby1.9.3 python-dev python-virtualenv build-essential curl screen git
+apt-get install -y vim-nox python ruby1.9.3 python-dev python-virtualenv build-essential curl screen git fabric
gem install travis -v 1.7.3 --n... | bash |
d_bash_3855 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-for pkg in "httplib2 anyjson billiard ipdb funcy dpkt-fix markdown2 amqp kombu pcapy argcomplete apache-libcloud boto dnspython py-bcrypt pycrypto graphviz pygraphviz python-dateutil python-levenshtein pytz pysnmp simplejson slimit zope.cachedescriptors paramiko pexpect... | bash |
d_bash_3856 | ---
+++
@@ -1,7 +1,6 @@
#!/bin/bash
sudo pacman -S git \
- py3status \
tmux \
neovim \
python-pynvim \
@@ -13,6 +12,7 @@
mono \
alacritty \
fzf \
+ scrot \
light
# Uncomment this if using regular arch linux | bash |
d_bash_3857 | ---
+++
@@ -1,21 +1,14 @@
#!/bin/sh
-# App name/home registry
-REGISTRY_URL=registry.sandbox.glympse.com
-IMAGE_NAME=tools/docker-cluster
-
-# Helpers
-IMAGE_TAG=$(git rev-parse --short HEAD)
-TAGGED_IMAGE=$REGISTRY_URL/$IMAGE_NAME:$IMAGE_TAG
-LATEST_IMAGE=$REGISTRY_URL/$IMAGE_NAME:latest
+# App name
+IMAGE_NAME=g... | bash |
d_bash_3858 | ---
+++
@@ -4,5 +4,9 @@
ensureInPath "jq-linux64" "${cache}/.jq/bin"
# Ensure we have a copy of the stdlib
-STDLIB_DIR="${TMPDIR:-"/tmp"}/go-buildpack-stdlib"
+if [ -z "${TMPDIR}" ]; then
+ STDLIB_DIR=$(mktemp -d -t stdlib.XXXXX)
+else
+ STDLIB_DIR="${TMPDIR}/go-buildpack-stdlib"
+fi
ensureFile "stdlib.sh.v8" ... | bash |
d_bash_3859 | ---
+++
@@ -17,7 +17,17 @@
service "$service" restart
done
+sleep 3
+
echo "Hello World" >${STATIC_DATA_DIR}/index.html
out=$(curl 127.0.0.1:6081)
[ "$out" == "Hello World" ]
+res=$?
+# in case of failure, print some diagnostics
+if [ $res -ne 0 ] ; then
+ yum -y install net-tools
+ netstat -putna
+fi
+
... | bash |
d_bash_3860 | ---
+++
@@ -8,10 +8,10 @@
#
# Used by `azure-pipelines.yml`.
-if [ $(git branch --show-current) == "master" ]; then
+if [[ $(git branch --show-current) == "master" ]]; then
BASE=$(git describe --tags --abbrev=0)
else
- BASE="master"
+ BASE=$(git rev-parse master)
fi
echo "Comparing against: $BASE"
| bash |
d_bash_3861 | ---
+++
@@ -1,5 +1,5 @@
echo "Formatting *.go files!"
-find . -name "*.go" -print0 | xargs -0 gofmt -lw
+find . -name "*.go" -print0 | xargs -0 gofmt -l -w
echo "Done formating!" | bash |
d_bash_3862 | ---
+++
@@ -15,7 +15,7 @@
mapscript="$(php -m | grep $search)"
if [ "$mapscript" = "$search" ]; then
- echo $(tput bold ; tput setaf 2)$search installed$(tput sgr0)
- else
- echo $(tput bold ; tput setaf 1)$search NOT installed$(tput sgr0)
+ echo $(tput bold ; tput setaf 2)$search installed$(tput sgr0)
+else
... | bash |
d_bash_3863 | ---
+++
@@ -8,5 +8,5 @@
FISCAL_PACKAGE_ENGINE=$OS_API_ENGINE bb-fdp-cli create-tables && echo "CREATED TABLES"
-python -m celery -A babbage_fiscal.tasks worker &
+python -m celery -A babbage_fiscal.tasks --concurrency=1 worker &
gunicorn -w 4 os_api.app:app -b 0.0.0.0:8000 | bash |
d_bash_3864 | ---
+++
@@ -17,7 +17,8 @@
else
java \
-Dhost=$H \
- -shardId=$shardId
+ -shardId=$shardId \
+ -Dsolr.data.dir=/data \
-DnumShards=2 \
-Dsolr.solr.home=/opt/solr-4.8.0/example/solr \
-Djetty.home=/opt/solr-4.8.0/example \ | bash |
d_bash_3865 | ---
+++
@@ -14,7 +14,6 @@
# Build Skip regex to ignore tests
SKIP_REGEX='routing.API'
SKIP_REGEX="${SKIP_REGEX}|Adding a wildcard route to a domain"
-SKIP_REGEX="${SKIP_REGEX}|forwards app messages to registered syslog drains"
SKIP_REGEX="${SKIP_REGEX}|when app has multiple ports mapped"
SKIP_REGEX="${SKIP_REGEX... | bash |
d_bash_3866 | ---
+++
@@ -8,7 +8,7 @@
mv boost_1_57_0 boost
cd boost
./bootstrap.sh --prefix=/usr
-sudo ./b2 --prefix=/usr link=static threading=multi address-model=64 architecture=x86 install
+sudo ./b2 --prefix=/usr -q -d0 link=static threading=multi address-model=64 architecture=x86 install
cd ..
sudo rm -rf boost boost_1_... | bash |
d_bash_3867 | ---
+++
@@ -5,5 +5,6 @@
pip install wheel nose
pip install -r requirements.txt $WHEELHOUSE
+apt-get install libzmq-dev
pip install ipython runipy
| bash |
d_bash_3868 | ---
+++
@@ -37,7 +37,7 @@
pinfo 'Updating to latest version...'
git checkout -- .
- git pull --progress
+ git pull --progress || exit 3
fi
# date +%s > last_update_file | bash |
d_bash_3869 | ---
+++
@@ -10,5 +10,14 @@
# Make sure Inline::Python uses correct virtualenv
set +u; cd "$working_dir/../"; source mc-venv/bin/activate; set -u
+# Also set PYTHONHOME for Python to search for modules at correct location
+
+if [ `uname` == 'Darwin' ]; then
+ # greadlink from coreutils
+ PYTHONHOME=`greadlink -m m... | bash |
d_bash_3870 | ---
+++
@@ -7,8 +7,8 @@
sudo rm /etc/mavenrc
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
- mvn --settings ./travis/maven-settings.xml deploy
+ mvn --settings ./travis/maven-settings.xml deploy -pl '!gws-system-test'
mvn --settings ./travis/maven-settings.xml site-deploy -DskipUnitTests -pl gws-core... | bash |
d_bash_3871 | ---
+++
@@ -10,6 +10,7 @@
cargo build --release --target $TARGET
if [ -z "$SKIP_TESTS" ]; then
+ cargo test --release -p download --target $TARGET
cargo test --release -p rustup-dist --target $TARGET
cargo test --release --target $TARGET
fi | bash |
d_bash_3872 | ---
+++
@@ -3,12 +3,16 @@
(cd doc; make)
if [ $1 == "devel" ]; then
+ echo "Building devel docs"
+ sleep 3
cp -vr doc/index.html /tmp/index.html;
git checkout gh-pages;
mv -fv /tmp/index.html index-dev.html
git add --all index-dev.html
git commit -a -m "Update devel doc"
else
+ ... | bash |
d_bash_3873 | ---
+++
@@ -1,4 +1,22 @@
#1 bin/bash
+
+echo "Updating packages"
+sudo apt-get -y update # Fetches the list of available updates
+sudo apt-get -y upgrade # Strictly upgrades the current packages
+sudo apt-get -y dist-upgrade # Installs updates (new ones)
+sudo apt-get install make
+sudo apt-get -y upda... | bash |
d_bash_3874 | ---
+++
@@ -2,16 +2,18 @@
# This script will convert a YAML file to Turtle format,
# given a JSON-LD context, also in YAML format.
+# Since ROBOT is used, other file extensions for the output
+# can select other formats in addition to Turtle.
# Run: ./yaml2turtle.sh context.yaml data.yaml data.ttl
contextyam... | bash |
d_bash_3875 | ---
+++
@@ -1,5 +1,5 @@
# Only set this if we haven't set $EDITOR up somewhere else previously.
if [[ "$EDITOR" == "" ]] ; then
# Use sublime for my editor.
- export EDITOR='subl'
+ export EDITOR='vim'
fi | bash |
d_bash_3876 | ---
+++
@@ -1,5 +1,4 @@
#!/bin/bash
-set -x
# Open the build folder
cd _site
@@ -8,11 +7,11 @@
git init .
# Config git
-git config user.name "Travis CI"
-git config user.email "travis@keksi.io"
+git config user.name "Keksi Labs Bot"
+git config user.email "Bot@keksi.io"
# Add github as remote
-git remote ... | bash |
d_bash_3877 | ---
+++
@@ -3,7 +3,7 @@
mkdir -p release/tmp/polaris
echo "Copying package files"
-cp -r web docs/swagger src migrations test-data Cargo.toml Cargo.lock res/unix/Makefile release/tmp/polaris
+cp -r web docs/swagger src migrations test-data Cargo.toml Cargo.lock rust-toolchain res/unix/Makefile release/tmp/polaris... | bash |
d_bash_3878 | ---
+++
@@ -9,7 +9,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.11_9.tar.gz"
;;
java16)
- echo "https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16%2B36/OpenJDK16-jdk_x64_linux_hotspot_16_36.tar.... | bash |
d_bash_3879 | ---
+++
@@ -21,6 +21,25 @@
rm -rf ${testDir}
}
+ testAppendCreateFile(){
+ local isNotFile=$(${assertDoesNotExist} testFile)
+
+ local content="this is a string"
+
+ FileWriter append ${testFile} "${content}"
+
+ local fileContent=$(FileUtil getContent ${testFile})
+
+ if [[ ${isNotFile} == PASS &&
+ $(... | bash |
d_bash_3880 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+set -e
+
go get github.com/mitchellh/gox
go get github.com/tcnksm/ghr
| bash |
d_bash_3881 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
rm -f src.tar.xz
-tar cJf src.tar.xz *.cpp *.h third_party_generator/*.h third_party_generator/*.cpp third_party_generator/Makefile GraphHPC
+tar cJf src.tar.xz *.cpp *.h third_party_generator/*.h third_party_generator/*.cpp third_party_generator/Makefile #GraphHPC
scp src.tar.x... | bash |
d_bash_3882 | ---
+++
@@ -32,3 +32,5 @@
source_from_share chruby/chruby.sh
source_from_share chruby/auto.sh
source_from_share zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+
+true | bash |
d_bash_3883 | ---
+++
@@ -12,7 +12,7 @@
done
if [ $X == "Y" ] || [ $X == "y" ]; then
- sudo sed -i "s/noSecurity/securityOAuth2/g" $INSPWD/apache-tomcat-8.0.22/webapps/FiwareRepository/WEB-INF/web.xml
+ sudo sed -i "s/noSecurity/securityOAuth2/g" $INSPWD/src/main/webapp/WEB-INF/web.xml
echo "OAuth2 configuration is locat... | bash |
d_bash_3884 | ---
+++
@@ -20,7 +20,7 @@
rails() {
if [[ -S '.zeus.sock' && ($1 = 's' || $1 = 'server' || $1 = 'g' || $1 = 'generate' || $1 = 'd' || $1 = 'destroy' || $1 = 'c' || $1 = 'console' || $1 = 'r' || $1 = 'runner') ]]; then
- zeus $zeus_cmd ${*:2}
+ zeus $1 ${*:2}
elif [ -f 'Gemfile' ]; then
bundle exec... | bash |
d_bash_3885 | ---
+++
@@ -7,6 +7,7 @@
pwd
pip3 install -U git+git://github.com/frictionlessdata/datapackage-pipelines.git
pip3 install -U git+git://github.com/openspending/datapackage-pipelines-fiscal.git
+pip3 install -U git+git://github.com/akariv/tabulator-py.git@feature/fake-user-agent
cd eu-structural-funds
export PYTHON... | bash |
d_bash_3886 | ---
+++
@@ -7,8 +7,10 @@
if [ $# = 3 ]; then
printf "%s\n" "New command: ${YELLOW}git ${BOLD}${alias_name}${NORMAL}"
git config $scope alias.${alias_name} "${alias_command}"
+ return $?;
else
printf "%s\n" "New alias: scope, name or command not found"
+ return 1;
... | bash |
d_bash_3887 | ---
+++
@@ -2,12 +2,12 @@
mkdir -p ~/.ssh
private_key_path=~/.ssh/id_rsa
-echo $GIT_PRIVATE_KEY > $private_key_path
+ruby -e "File.write(File.expand_path(ENV['private_key_path']), ENV['GIT_PRIVATE_KEY'])"
chmod 0600 $private_key_path
eval $(ssh-agent) >/dev/null 2>&1
trap "kill $SSH_AGENT_PID" 0
-SSH_ASKPASS... | bash |
d_bash_3888 | ---
+++
@@ -1,6 +1,11 @@
#!/bin/bash
-echo ""; echo "pip update...";
+echo ""; echo "pip2 update...";
-pip install --upgrade pip
-pip list --outdated --format=legacy | awk '{if($1 != "GDAL" && $1 != "pip") print $1}' | xargs -L1 pip install --upgrade
+pip2 install --upgrade pip
+pip2 list --outdated --format=leg... | bash |
d_bash_3889 | ---
+++
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
. $builddir/tests/test_common.sh
+probecheck "process58" || exit 255
test_init tests_probes_process88.log
test_run "Ensure that selinux_domain_label is collected" $srcdir/selinux_domain_label.sh | bash |
d_bash_3890 | ---
+++
@@ -1,8 +1,9 @@
#!/bin/bash
-SQL="DELETE FROM course WHERE date < CURDATE()"
-MYSQL_USER="XXXXXXXX"
-MYSQL_PASS="XXXXXXXX"
-MYSQL_DB="ecampus"
+mongo <<EOF
+use ecampus
-echo $SQL | /usr/bin/mysql --user=$MYSQL_USER --password=$MYSQL_PASS $MYSQL_DB
+db.course.deleteMany({date: {"$lt": ISODate()}})
+
+exi... | bash |
d_bash_3891 | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-set -e -x
+set -e
SCRIPTS_DIR=$(dirname $0)
@@ -8,11 +8,15 @@
export TOP_PID=$$
run-and-check() {
+ >&2 echo "Executing $*..."
VARS=$($*)
if [[ $? != 0 ]] ; then
kill -s TERM $TOP_PID
fi
echo $VARS
+ >&2 echo "Complete. Genera... | bash |
d_bash_3892 | ---
+++
@@ -6,3 +6,8 @@
echo >&2 Please install puppet first.
exit 1
}
+
+: ${CHECKOUT_DIR:="${dirname "$0"}"}
+: ${PUPPET_MODULES_DIR:=/etc/puppet/environments/production/modules}
+
+ln -sf "${CHECKOUT_DIR}"/noc/puppet/modules/blueboxnoc "$PUPPET_MODULES_DIR"/ | bash |
d_bash_3893 | ---
+++
@@ -20,5 +20,4 @@
fi
unfunction grep-flag-available
-export GREP_OPTIONS="$GREP_OPTIONS"
-export GREP_COLOR='1;32'
+alias grep="grep $GREP_OPTIONS" | bash |
d_bash_3894 | ---
+++
@@ -1,12 +1,12 @@
#! /bin/sh
-set -e -u
+set -e -u
script_dir=$(cd "$(dirname "$0")" && pwd)
bosh -u admin -p "${BOSH_PASSWORD}" target https://10.0.0.6:25555 >/dev/null
bosh login admin "${BOSH_PASSWORD}" >/dev/null
-existing_version=$("${script_dir}"/bosh_list_"${TYPE}"s.rb | awk -v name="${NAME}... | bash |
d_bash_3895 | ---
+++
@@ -4,7 +4,9 @@
}
# Fuzzy cd into selected directory.
-fcd() {
- DIR=`find ${1:-*} -path '*/\.*' -prune -o -type d -print 2> /dev/null | fzf-tmux` \
- && cd "$DIR"
+fd() {
+ local dir
+ dir=$(find ${1:-.} -path '*/\.*' -prune \
+ -o -type d -print 2> /dev/null | fzf --height=50% --b... | bash |
d_bash_3896 | ---
+++
@@ -23,3 +23,5 @@
conda install -y anaconda-client
conda install -y jinja2
+
+conda update -y --all | bash |
d_bash_3897 | ---
+++
@@ -2,8 +2,9 @@
then
rm -rf src/main/groovy/edu/oregonstate/mist/contrib/
git clone -q "$1" src/main/groovy/edu/oregonstate/mist/contrib
+ WORKDIR=`pwd`
cd src/main/groovy/edu/oregonstate/mist/contrib
git reset --hard "$3"
- rm -rf .git/
- rm .giti... | bash |
d_bash_3898 | ---
+++
@@ -24,3 +24,9 @@
#nginx
alias nginx="sudo service nginx"
#function ng() { sudo systemctl $1 nginx; }
+
+#redis
+#assumes redis installed and configured from:
+#https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04
+alias redis_start="sudo systemctl start redis... | bash |
d_bash_3899 | ---
+++
@@ -3,7 +3,7 @@
git checkout -b issue-comments-ignore-generated
cat > generated.go <<EOF
-// automatically generated - DO NOT EDIT
+// Code generated by tool DO NOT EDIT.
package foo
func Foo() {} // expect golint exported without comment
EOF | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.