document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_24200 | ---
+++
@@ -24,6 +24,8 @@
esac
cd "${REPO_DIR}" || exit
+PATH="`pwd`:$PATH"
+export PATH
$CI_TIME gsl project.xml
# keep an eye on git version used by CI | bash |
d_bash_24201 | ---
+++
@@ -41,6 +41,7 @@
# Lastly, our dependencies
pip install -r requirements.txt
+ pip install -r dev-requirements.txt
echo '
cd /vagrant | bash |
d_bash_24202 | ---
+++
@@ -1,8 +1,8 @@
# The next line updates PATH for the Google Cloud SDK.
-source /usr/local/google/home/scholtzie/code/google-cloud-sdk/path.zsh.inc
+source $HOME/code/google-cloud-sdk/path.zsh.inc
# The next line enables zsh completion for gcloud.
-source /usr/local/google/home/scholtzie/code/google-cloud-... | bash |
d_bash_24203 | ---
+++
@@ -2,6 +2,8 @@
#
# A few packages
+# FIXME: I don't think these are needed anymore. Packages are installed in
+# kickstart or don't appear to be neccesary any longer.
yum install -y openssh-ldap
yum install -y ruby-devel
yum install -y rubygems | bash |
d_bash_24204 | ---
+++
@@ -9,3 +9,12 @@
| select(.name == "RESTART_"))
| .spec.template.spec.containers[0].env += [{name: "RESTART_", value: now|tostring}]' | kubectl apply -f -
}
+
+kubectl-delete-evicted() {
+ kubectl get po --all-namespaces -o json | \
+ jq '.items[] |
+ select(.status.reason!=null) |
+ select... | bash |
d_bash_24205 | ---
+++
@@ -11,6 +11,6 @@
$controlScript stop
rm -f $deployRoot/tomcat6/logs/*
-rm -f $deployRoot/tomcat6/webapps/mifos
+rm -rf $deployRoot/tomcat6/webapps/mifos
cp $lastStableWAR $targetWARlocation
$controlScript start | bash |
d_bash_24206 | ---
+++
@@ -6,6 +6,10 @@
set -u
set -o errexit
+
+if [ `uname -m` != 'x86_64' ]; then
+ echo "Install failed, you must have a 64 bit OS"
+fi
TMPDIR="." ./foreign_modules/perlbrew_install.sh
set +u | bash |
d_bash_24207 | ---
+++
@@ -1,5 +1,15 @@
#!/bin/bash
-#$results = ls | grep result\.txt
+SQLITECMD=`which sqlite3`
+if [ ! -x $SQLITECMD ]
+then
+ echo "Cannot use sqlite3 command. Please check if SQLite3 is installed on this system and you have permission to use it."
+ exit 1
+fi
+if [ -f results.db ]
+then
+ rm results.db
+fi
... | bash |
d_bash_24208 | ---
+++
@@ -1,4 +1,4 @@
-#!/usr/bin/bash
+#!/bin/bash
#
# Rafael Campos Nunes <rafaelnunes@engineer.com>
| bash |
d_bash_24209 | ---
+++
@@ -8,5 +8,5 @@
npm test
npm run test:coverage
export PATH="$HOME/miniconda/bin:$PATH"
-
+npm run build:example
npm run docs | bash |
d_bash_24210 | ---
+++
@@ -1,10 +1,10 @@
#!/bin/bash
# For local development we need this script tp create collections in a local jamdb.
-# For deployment this will need to be run manaually.
+# For deployment this will need to be run manually.
-source ~/.bashrc
+#source ~/.bashrc
-workon `lsvirtualenv -b |grep jam`
+#workon `... | bash |
d_bash_24211 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-set -eu
+set -e
scripts="$(dirname "$0")"
@@ -9,10 +9,10 @@
"$scripts"/custom-timeout.sh 30 docker push nanocurrency/nano-ci
tags=()
-if [ -n "$TRAVIS_BRANCH" ]; then
+if [ -n "$TRAVIS_TAG" ]; then
+ tags+=("$TRAVIS_TAG" latest)
+elif [ -n "$TRAVIS_BRANCH" ]; then
... | bash |
d_bash_24212 | ---
+++
@@ -1,5 +1,9 @@
export PATH=./script:./bin:$PATH
+alias cdsp="cd ~/Development/payments"
+alias cdsg="cd ~/Development/getsourcery"
+alias cdss="cd ~/Development/sourcery"
+alias cdsa="cd ~/Development/admin"
alias g=git
alias gpr="git pull --rebase"
alias gst="git status" | bash |
d_bash_24213 | ---
+++
@@ -2,21 +2,30 @@
#Only push to active_cameras
cams="active_cameras.txt"
+arg1="$1"
while read -r line #|| [[ -n $line ]]
do
- #First, stop pepi if currently running
- ssh -i keys/pepi_rsa pi@"$line" 'ps -ef | grep "pepi.sh" | grep -v grep | awk '\''{print $2}'\'' | xargs kill' < /dev/null
- ss... | bash |
d_bash_24214 | ---
+++
@@ -3,7 +3,9 @@
DIR=`dirname $0`
# Download phpMyAdmin
-if [[ ! -d /srv/www/default/database-admin ]]; then
+if [[ ! -f /srv/www/default/database-admin/RELEASE-DATE-4.8.1 ]]; then
+ echo "Removing older phpMyAdmin install"
+ rm -rf /srv/www/default/database-admin/*
echo "Downloading phpMyAdmin ... | bash |
d_bash_24215 | ---
+++
@@ -2,4 +2,4 @@
export LD_LIBRARY_PATH=.
cd $(dirname $(readlink $0))
-lua smartlan.lua 2> /dev/null &
+lua5.1 smartlan.lua 2> /dev/null & | bash |
d_bash_24216 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
######################################################################
#
@@ -28,22 +28,8 @@
THE_CLASSPATH=${THE_CLASSPATH}:${i}
done
-#---------------------------------#
-# Handle/translate some switches #
-#---------------------------------#
-
-opts=
-while ... | bash |
d_bash_24217 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash -ev
-git config --global user.email $GIT_USER_EMAIL
-git config --global user.name $GIT_USER_NAME
+git config --global user.email "$GIT_USER_EMAIL"
+git config --global user.name "$GIT_USER_NAME"
git config --global push.default simple
aws s3 cp --region eu-west-1 s3://aluxi... | bash |
d_bash_24218 | ---
+++
@@ -11,13 +11,9 @@
echo "${BP_PACKAGED_PATH}"
fi
-PACK_PATH="$(realpath "$(find pack -name "*.tar.gz")")"
-mkdir -p pack_source
-tar xvf "$PACK_PATH" -C pack_source
-pushd pack_source
- echo "Building pack..."
- go build -o ../buildpack/.bin/pack ./cmd/pack/main.go
-popd
+PACK_PATH="$(realpath "... | bash |
d_bash_24219 | ---
+++
@@ -33,5 +33,5 @@
}
function print_usage() {
- echo "usage: gitcli story pullrequest [-s|--source <source>]"
+ echo "usage: gitcli s|story pr|pullrequest [-s|--source <source>]"
} | bash |
d_bash_24220 | ---
+++
@@ -9,7 +9,7 @@
echo ""
echo "PHP Version: $TRAVIS_PHP_VERSION"
-if [ "$TRAVIS_PHP_VERSION" = "hhvm" ] || [ "$TRAVIS_PHP_VERSION" = "hhvm-nightly" ]; then
+if [ "$TRAVIS_PHP_VERSION" = "hhvm" ] || [ "$TRAVIS_PHP_VERSION" = "hhvm-nightly" ] || [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then
echo "Unable to in... | bash |
d_bash_24221 | ---
+++
@@ -30,12 +30,28 @@
# Use vim shortcuts within the terminal (defaults to insert mode)
bindkey -v
-# Reduce the lag switching into Normal mode to 0.1s
-export KEYTIMEOUT=1
-
# Restore 'normal' search in VI mode
bindkey '^R' history-incremental-search-backward
+bindkey '^P' up-history
+bindkey '^N' down-h... | bash |
d_bash_24222 | ---
+++
@@ -1,11 +1,12 @@
user_commands=(
list-units is-active status show help list-unit-files
- is-enabled list-jobs show-environment)
+ is-enabled list-jobs show-environment cat)
sudo_commands=(
start stop reload restart try-restart isolate kill
reset-failed enable disable reenable preset mask unmas... | bash |
d_bash_24223 | ---
+++
@@ -16,6 +16,12 @@
edict_gz=$2
fi
-if zcat $edict_gz | ${base_dir}/edict2grn.rb | groonga $1 > /dev/null; then
+if type gzcat > /dev/null 2>&1; then
+ zcat='gzcat'
+else
+ zcat='zcat'
+fi
+
+if $zcat $edict_gz | ${base_dir}/edict2grn.rb | groonga $1 > /dev/null; then
echo "edict data loaded."... | bash |
d_bash_24224 | ---
+++
@@ -1,8 +1,13 @@
-# iTerm 2 Theme
-# https://iterm2.com/python-api/tutorial/running.html#auto-run-scripts
-
if ( is_osx ); then
+ # Switch iTerm 2 Theme between light and dark
+ # https://iterm2.com/python-api/tutorial/running.html#auto-run-scripts
ITERM_DIR="$HOME/Library/Application Support/iTerm2/Scr... | bash |
d_bash_24225 | ---
+++
@@ -5,6 +5,7 @@
echo "Fetching new versions..."
cd /fabmo/engine
+git reset --hard HEAD
git fetch origin --tags
git checkout master
git pull | bash |
d_bash_24226 | ---
+++
@@ -3,7 +3,7 @@
alias streak="curl -s https://github.com/bsima | pup '#contributions-calendar > div:nth-child(5) > span.contrib-number text{}'"
# temporary userland startup command
-alias start="xmodmap ~/.Xmodmap; chromium &> /dev/null &; emacs &> /dev/null &; echo Starting apps\!; echo Your current gith... | bash |
d_bash_24227 | ---
+++
@@ -1,13 +1,26 @@
#!/bin/bash
-## ./gameinstall repository idgame ##
-
-if [ ! -f "$1" ];then
- mkdir $1
-fi
+## ./gameinstall repository id-game unix-user unix-group##
if [ ! -f ${PWD##*/steamcmd.sh} ];then
curl -sqL 'https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz' | tar zxv... | bash |
d_bash_24228 | ---
+++
@@ -5,3 +5,17 @@
alias sshr=rssh
alias coffee="caffeinate -d"
+
+function ups() {
+ curl 'https://www.ups.com/track/api/Track/GetStatus?loc=en_US' \
+ -s \
+ -H 'Accept: application/json, text/plain, */*' \
+ --compressed \
+ -H 'Content-Type: application/json' \
+ --data-raw '{"Locale":"en_US","Trac... | bash |
d_bash_24229 | ---
+++
@@ -29,11 +29,10 @@
node must-reset.js -i ${BATCH}
-### TODO We need to know which template to send! It'll either be "suspicious_location" OR "password_reset_required"
### TODO If we need more delay in between the batches the bulk-mailer itself sends, add a `-d <seconds> to the below line.
### If inst... | bash |
d_bash_24230 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
GENERATOR_HOST="http://framergenerator-update.s3-website-us-east-1.amazonaws.com"
GENERATOR_LATEST=$GENERATOR_HOST/`curl -s $GENERATOR_HOST/latest.txt` | bash |
d_bash_24231 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
pushd $(dirname $0) > /dev/null
-diff -wB fixture/expected-vars-store.yml <(spiff merge \
+diff -wB -C5 fixture/expected-vars-store.yml <(spiff merge \
vars-store-template.yml \
vars-pre-processing-template.yml \
fixture/source-cf-manifest.yml \ | bash |
d_bash_24232 | ---
+++
@@ -25,4 +25,5 @@
cp mltsp.yaml.example mltsp.yaml
+make db && sleep 1 && make init
make test | bash |
d_bash_24233 | ---
+++
@@ -5,9 +5,19 @@
test "$result" = "13"
}
+it_performs_addition_with_negative_numbers() {
+ result=$(bin/lishp "(+ -1 3)")
+ test "$result" = "2"
+}
+
it_performs_subtraction() {
result=$(bin/lishp "(- 9 3 1)")
test "$result" = "5"
+}
+
+it_performs_subtraction_with_negative_numbers() ... | bash |
d_bash_24234 | ---
+++
@@ -4,7 +4,7 @@
chmod a+rx source
chmod a+r */*.png
chmod a+r *.html
-rsync -v --progress \
+rsync -vr --progress \
112x63 624x351 752x423 \
fedora-21.xml.gz fedora-21-icons.tar.gz \
*.html \ | bash |
d_bash_24235 | ---
+++
@@ -16,9 +16,9 @@
mkdir scripts
cd scripts
-wget https://raw.githubusercontent.com/VeerMuchandi/MigratingFromOpenShiftToGKE/main/scripts/migrateScript1.sh
-wget https://raw.githubusercontent.com/VeerMuchandi/MigratingFromOpenShiftToGKE/main/scripts/migrateScript2.sh
-wget https://raw.githubusercontent.com... | bash |
d_bash_24236 | ---
+++
@@ -1,2 +1,3 @@
export IRBRC=$HOME/.irbrc
export PATH=$PATH:$HOME/.gem/ruby/1.9.1/bin
+export GEM_HOME="$(ruby -rubygems -e 'puts Gem.user_dir')" | bash |
d_bash_24237 | ---
+++
@@ -7,11 +7,30 @@
fi
}
-alias set_gemfile='export BUNDLE_GEMFILE="`pwd`/Gemfile"'
+# Switching Gemfile
+function set_gemfile(){
+ echo "Switching Gemfile..."
+ export BUNDLE_GEMFILE="`pwd`/Gemfile"
+}
+
+# Spree defaults
+echo "Setup Spree defaults and creating test application..."
rm_gemfile_lock
bun... | bash |
d_bash_24238 | ---
+++
@@ -3,7 +3,7 @@
case "$1" in
java8)
- echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u262-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u262b10.tar.gz"
+ echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u265-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u265b... | bash |
d_bash_24239 | ---
+++
@@ -16,3 +16,6 @@
for toml in $(find . -maxdepth 2 -name "Cargo.toml"); do
cargo test --manifest-path $toml ${__TESTEXTRA}
done
+
+# Test the bindgen feature
+cargo test --manifest-path fitsio/Cargo.toml --features bindgen --no-default-features | bash |
d_bash_24240 | ---
+++
@@ -2,5 +2,5 @@
./gradlew -Pgradle.publish.key=$GRADLE_PUBLISH_KEY \
-Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET \
- -PisRelease=true \
+ -Prelease=true \
publishPlugins | bash |
d_bash_24241 | ---
+++
@@ -1,4 +1,8 @@
+apt-get install wget
pip install pint
+
+wget https://raw.githubusercontent.com/KittyHawkIrc/core/master/encoder.py
+wget https://raw.githubusercontent.com/KittyHawkIrc/core/master/arsenic_helper.py
for f in *.py
do | bash |
d_bash_24242 | ---
+++
@@ -26,4 +26,4 @@
# Rails
###############################################################################
-bgi="bundle exec guard -i; return 0"
+alias bgi="bundle exec guard -i; return 0" | bash |
d_bash_24243 | ---
+++
@@ -17,7 +17,7 @@
}
function recipe_stage {
- mkdir -pv "$1/games" "$1/share/games/doom"
+ mkdir -pv "$1/games" "$1/share/games/doom" "$1/ui/apps" "$1/ui/icons/apps"
for file in ./*.wad
do
game="$(basename "$file" .wad)"
@@ -29,6 +29,12 @@
echo "#!/bin/ion" > "$1$bin"
... | bash |
d_bash_24244 | ---
+++
@@ -5,10 +5,18 @@
if [ -f $SWAPFILE ]; then
echo "Swapfile $SWAPFILE found, assuming already setup"
+ if [[ $(swapon -s) ]]
+ then
+ echo "Swapfile $SWAPFILE found, and already setup"
+ else
+ echo "Swapfile $SWAPFILE found, but not enabled, enable now"
+ /sbin/swapon $SWAPFILE
+ fi
exit;
... | bash |
d_bash_24245 | ---
+++
@@ -14,5 +14,9 @@
echo y | android update sdk -u -a -t extra-google-google_play_services &&
echo y | android update sdk -u -a -t extra-google-m2repository &&
echo y | android update sdk -u -a -t extra-android-m2repository &&
+
+ # Force download of Gradle core and project dependencies.
+ TERM=dumb ... | bash |
d_bash_24246 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-npm cache clean
+npm cache clean --force
rm -fr ./node_modules
NODE_TLS_REJECT_UNAUTHORIZED=0 npm install | bash |
d_bash_24247 | ---
+++
@@ -21,7 +21,7 @@
function envSetup() {
apt-get install -y python-all debhelper fakeroot
- pip install --upgrade python-keystoneclient==1.7.4
+ #pip install --upgrade python-keystoneclient==1.7.4
chkPPkg stdeb
}
| bash |
d_bash_24248 | ---
+++
@@ -9,6 +9,12 @@
wrapper="run-one-constantly"
fi
+# Update the tutorial
+d=`pwd`
+cd /home/lwa/bifrost_tutorial
+git pull
+cd ${d}
+
if [[ ! -z "${JUPYTERHUB_API_TOKEN}" ]]; then
# launched by JupyterHub, use single-user entrypoint
exec /usr/local/bin/start-singleuser.sh "$@" | bash |
d_bash_24249 | ---
+++
@@ -1,8 +1,4 @@
#!/bin/bash
-
-startSearchIndexer
-
-processApps $APPSTODEPLOY
# Generate and Ingest Odin data
bundle exec rake FORCE_COLOR=true api_server_url=https://$NODE_NAME.slidev.org apiSuperAssessmentTests TOGGLE_TABLESCANS=true | bash |
d_bash_24250 | ---
+++
@@ -2,13 +2,13 @@
python3 --version
py.test --version
-pep8 --version
+python3 -mpep8 --version
# Target directory for all build files
BUILD=${1:-ci-build}
mkdir -p $BUILD
-pep8 --ignore E501 i3pystatus tests
+python3 -mpep8 --ignore E501 i3pystatus tests
# Check that the setup.py script works
... | bash |
d_bash_24251 | ---
+++
@@ -1,5 +1,6 @@
#!/bin/bash
+# Print some environment info useful when reading CircleCI logs.
pwd
git branch
| bash |
d_bash_24252 | ---
+++
@@ -7,13 +7,13 @@
if [ "$response" == "y" ]; then
sudo apt-get install build-essential
sudo apt-get build-dep emacs24
- wget http://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.gz
- tar xf emacs-24.5.tar.gz
- cd emacs-24.5/
+ wget http://ftp.gnu.org/gnu/emacs/emacs-25.3.tar.gz
+ tar xf emacs-25.3.tar.gz
+ cd ema... | bash |
d_bash_24253 | ---
+++
@@ -1,2 +1,11 @@
-export PATH="./bin:$HOME/.rbenv/shims:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
+
+#force iTerm to encode as utf-8
+export LANG=en_US.UTF-8
+export LC_CTYPE=en_US.UTF-8
+
+#Fix for postgress on Mac OS X
+e... | bash |
d_bash_24254 | ---
+++
@@ -20,15 +20,13 @@
wrap git remote set-url origin "https://${HASHIBOT_USERNAME}:${HASHIBOT_TOKEN}@github.com/${remote_repository}" \
"Failed to update repository origin to `${remote_repository}` for sync"
-echo "Currently configured remotes:"
-git remote -v
-warn "$(git remote -v)"
-
echo "Updating... | bash |
d_bash_24255 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-INTERFACE=stlink-v2-1
+INTERFACE=stlink-v2
TARGET=stm32f1x
TRACECLKIN=72000000
| bash |
d_bash_24256 | ---
+++
@@ -8,7 +8,10 @@
rm package.tgz
# Make directory if it does not exist
-mkdir -p ${HOME}/webdrive/primer_project
+mkdir -p ${HOME}/webdrive/public_html/primer_project
# Copy public_html folder from project to webdrive
-cp -rf public_html/* ${HOME}/webdrive/primer_project
+cp -rf public_html/* ${HOME}/we... | bash |
d_bash_24257 | ---
+++
@@ -1,5 +1,5 @@
#BUILT INS
-alias a="ls -G"
+alias a="ls -G -p"
alias aa="a -a"
alias aaa="aa -l"
| bash |
d_bash_24258 | ---
+++
@@ -18,6 +18,8 @@
alias pkgU='sudo pkg update && sudo pkg upgrade'
alias pkgs='pkg search'
alias pkgi='sudo pkg install'
+alias pkgx='sudo pkg remove'
+
alias bsdu='sudo freebsd-update fetch'
alias bsdU='sudo freebsd-update fetch && sudo freebsd-update install'
# Not sure if I want to include these | bash |
d_bash_24259 | ---
+++
@@ -7,7 +7,7 @@
mv raindrop-deploy ~/.ssh/id_rsa
echo "Installing zopfli"
-git clone https://code.google.com/p/zopfli/
+git clone https://github.com/google/zopfli.git
cd zopfli
make
chmod +x zopfli | bash |
d_bash_24260 | ---
+++
@@ -6,12 +6,12 @@
# Get running port
XMLRPC_PORT=$(docker port $2 8899 | awk -F "[:]" '{print $2}')
# Set running port
-sed -i "s/TEST_PORT = 8899/TEST_PORT = $XMLRPC_PORT/g" TestIM.py
+sed -i "s/TEST_PORT = 8899/TEST_PORT = $XMLRPC_PORT/g" integration/TestIM.py
# Get running port
REST_PORT=$(docker po... | bash |
d_bash_24261 | ---
+++
@@ -1,5 +1,5 @@
sudo apt-get update
-sudo apt-get install -y postgresql-9.3
+sudo apt-get install -y postgresql-9.3 nginx
sudo -u postgres createdb finance
sudo -u postgres psql -c "CREATE USER justas CREATEDB;"
| bash |
d_bash_24262 | ---
+++
@@ -14,7 +14,9 @@
alias xstatus='ps aux | grep nginx'
alias xps='xstatus'
-alias xtraffic='goaccess -f /usr/local/var/log/nginx/access.log'
+# Log review
+alias xtraffic='goaccess --time-format=%T --date-format=%d/%b/%Y --log-format='%h %^[%d:%t %^] \"%r\" %s %b \"%R\" \"%u\"' -f /usr/local/var/log/nginx/... | bash |
d_bash_24263 | ---
+++
@@ -6,6 +6,4 @@
movies=$1
-echo $CCOUNT_YEARS
-
eval $CCONVERT $movies | eval $CPARSE | eval $CCOUNT_YEARS | bash |
d_bash_24264 | ---
+++
@@ -1,12 +1,77 @@
#!/bin/sh
-go get github.com/motemen/ghq &&
-go get github.com/peco/peco/cmd/peco &&
-vim +PluginInstall +qall &&
+# constants
-antigen_dir=$HOME/.antigen
+log_file=$(basename "$0.log")
-if ! [ -d "$antigen_dir" ]
+
+# functions
+
+install_ghq() {
+ go get github.com/motemen/ghq
+}
+... | bash |
d_bash_24265 | ---
+++
@@ -1,3 +1,7 @@
#!/bin/bash
+if [[ -n $AUTO_BAMBOO_HOST ]]; then
+sed -i "s/^.*Endpoint\": \"\(http:\/\/haproxy-ip-address:8000\)\".*$/ \"EndPoint\": \"$HOST\",/" \
+ ${CONFIG_PATH:=config/production.example.json}
+fi
haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid
/usr/bin/supervisord | bash |
d_bash_24266 | ---
+++
@@ -31,3 +31,9 @@
# This will run until the Pi sees and has joined the network.
./pi-robot-join-wifi.sh
+
+cat <<EOF > pi-robot-crontab
+* * * * * /home/pi/pi-robot-join-wifi.sh
+EOF
+crontab pi-robot-crontab
+ | bash |
d_bash_24267 | ---
+++
@@ -3,7 +3,7 @@
function deploy_proxy {
if hash apigeetool 2>/dev/null; then
printf "\n\nUsing apigeetool to deploy the proxy to the $env environment in the $org org...\n\n"
- apigeetool deployproxy -o $org -e $env -n learn-edge -L $url -u $username -p $password -V
+ apigeetool deplo... | bash |
d_bash_24268 | ---
+++
@@ -3,7 +3,7 @@
set -ex
./update
-cp /var/vcap/packages/scripts/cf-stub.yml
+cp /var/vcap/packages/scripts/cf-stub.yml .
rm -f ~/.bosh_config
bosh -u admin -p admin target $BOSH_LITE_TARGET
../gocd_scripts/replace_director_uuid.sh | bash |
d_bash_24269 | ---
+++
@@ -15,17 +15,15 @@
echo "Dumping env..."
composer dump-env "${APP_ENV}"
+# Includes Doctrine proxies – https://stackoverflow.com/a/36685804/2803757
echo "Clearing & warming cache..."
bin/console cache:clear --no-debug --env=$APP_ENV
-
-echo "Generating Doctrine proxies..."
-bin/console doctrine orm:gen... | bash |
d_bash_24270 | ---
+++
@@ -5,3 +5,5 @@
#bower install
#bundle install
gulp --prod
+chmod 777 storage
+chmod 777 storage/logs | bash |
d_bash_24271 | ---
+++
@@ -12,6 +12,9 @@
export PATH=/usr/bin:$PATH
pre-commit install
clang-format --version
-pre-commit run -a
+
+if ! pre-commit run -a ; then
+ git diff --exit-code
+fi
trap : 0 | bash |
d_bash_24272 | ---
+++
@@ -36,6 +36,11 @@
git clone "git@github.com:${org}/${source_repo}.git"
cd ${source_repo}
-git remote remove origin
-git remote add origin "git@github.com:${org}/${dest_repo}.git"
-# git push origin --mirror
+branches=$(git branch -a | grep remotes | grep -v HEAD | grep -v master)
+
+for branch in ${branc... | bash |
d_bash_24273 | ---
+++
@@ -1,6 +1,6 @@
VERSION=0.63
DATE=`date +%Y%m%d`
-RELEASE=2.76
+RELEASE=2.77
TARBALL=sugar-$VERSION-$RELEASE.${DATE}git.tar.bz2
rm sugar-$VERSION.tar.bz2 | bash |
d_bash_24274 | ---
+++
@@ -19,9 +19,6 @@
usercolour=$blue
fi
-# Set the window title.
-title "$USER@$HOSTNAME"
-
# Set the prompt.
export PS1="
\[$venvcolour\]\$(prompt_virtualenv)\[$usercolour\]\u@\h \[$pathcolour\]\w | bash |
d_bash_24275 | ---
+++
@@ -7,7 +7,7 @@
code/vsearch/vsearch --maxaccepts 16 --usersort --id 0.97 --minseqlength 30 --wordlength 8 --uc $ROOT.clustered.uc --cluster_smallmem $ROOT.sorted.fna --maxrejects 64 --strand both --log $ROOT.clustered.log
-R -e "source('code/uc_to_list.R'); uc_to_list('$ROOT.sorted.uc', '$ROOT.clustered... | bash |
d_bash_24276 | ---
+++
@@ -9,5 +9,11 @@
local tty_opt=
[ -t 0 ] && tty_opt="-t"
- docker exec -u user -i $tty_opt emdocker bash -lc "$*"
+ docker exec \
+ -u user \
+ -i \
+ $tty_opt \
+ $EMDOCKER_EXEC_EXTRA_ARGS \
+ emdocker \
+ bash -lc "$*"
} | bash |
d_bash_24277 | ---
+++
@@ -4,10 +4,16 @@
# $FreeBSD$
case "$1" in
- *.Z) uncompress -c $1 2>/dev/null
+ *.Z)
+ exec uncompress -c $1 2>/dev/null
;;
- *.gz) gzip -d -c $1 2>/dev/null
+ *.gz)
+ exec gzip -d -c $1 2>/dev/null
;;
- *.bz2) bzip2 -d -c $1 2>/dev/null
+ *.bz2)
+ exec bzip2 -d -c $1 2>/dev/null
+ ;;
+ *)
+ ... | bash |
d_bash_24278 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
-docker run --name dpbdb -v /home/n2o/Repos/dpb/db/entrypoint:/docker-entrypoint-initdb.d --rm -e POSTGRES_PASSWORD=razupaltuff -e POSTGRES_ROOT_PASSWORD=razupaltuff -e POSTGRES_USER=dpb -e POSTGRES_DB=dpb -p 5432:5432 postgres:11-alpine
+docker run --name dpbdb -v `pwd`/db/entr... | bash |
d_bash_24279 | ---
+++
@@ -2,6 +2,6 @@
export PATH=$ENV_BASE_DIR/bin:$PATH
export PYTHONPATH=$ENV_BASE_DIR:$PYTHONPATH
-export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ENV_BASE_DIR"/../runable"
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ENV_BASE_DIR"/../lib"
unset ENV_BASE_DIR | bash |
d_bash_24280 | ---
+++
@@ -6,7 +6,8 @@
chmod +x bin/rancher-metadata
-mkdir -p content-home
+mkdir -p content-home/etc/cattle/rancher-metadata
+touch content-home/etc/cattle/rancher-metadata/http-reload
mv bin content-home
stage_files | bash |
d_bash_24281 | ---
+++
@@ -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_24282 | ---
+++
@@ -8,6 +8,8 @@
export HDF5_INCLUDE=$PREFIX/include
export HDF5_LIB=$PREFIX/lib
+export CC=${PREFIX}/bin/gcc
+export CXX=${PREFIX}/bin/g++
./configure.py --shared --sub --no-pbbam
make configure-submodule | bash |
d_bash_24283 | ---
+++
@@ -15,6 +15,9 @@
export MANLESS=''
export MANWIDTH=80
+## misc environment vars
+export TEXMFHOME="$HOME/.texmf"
+
# play nice with tmux
if [[ -n "$TMUX" ]]; then
export DISABLE_AUTO_TITLE=true | bash |
d_bash_24284 | ---
+++
@@ -1,6 +1,8 @@
include array.util.ArrayUtil
include base.comparator.BaseComparator
+
+include math.util.MathUtil
ArrayValidator(){
hasEntry(){
@@ -22,7 +24,7 @@
for a in ${array[@]}; do
if [[ $(BaseComparator isEqual ${a} ${2}) ]]; then
- ((count++))
+ local count=$(MathUtil incre... | bash |
d_bash_24285 | ---
+++
@@ -7,9 +7,10 @@
# returns ret indicating whether the test succeeded or failed
ret=0
local name=${1#.*_}
+ local log_out=/tmp/out_operators_unit.log
echo -e "Test '${name%Debug}' \c"
- "$1" > /dev/shm/out_opov.log
- grep -q 'All tests passed' /dev/shm/out_operators.log && echo "succeeded."
+ "... | bash |
d_bash_24286 | ---
+++
@@ -1,2 +1,2 @@
SOLUTIONDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
-xbuild /verbosity:detailed $SOLUTIONDIR/MetadataWebApi.msbuild "$@"
+xbuild /verbosity:minimal $SOLUTIONDIR/MetadataWebApi.msbuild "$@" | bash |
d_bash_24287 | ---
+++
@@ -3,6 +3,7 @@
#while true; do
# Clean up previously running apps, gracefully at first then harshly
+/etc/init.d/lightdm stop
killall -TERM chromium 2>/dev/null;
killall -TERM matchbox-window-manager 2>/dev/null;
sleep 2; | bash |
d_bash_24288 | ---
+++
@@ -31,4 +31,9 @@
cat ./NewlyUndocumented.lua
exit 1
fi
+ if [ -f ./DuplicateDocs.txt ]; then
+ echo "ERROR: API documentation has duplicate symbol warnings:"
+ cat ./DuplicateDocs.txt
+ exit 1
+ fi
fi | bash |
d_bash_24289 | ---
+++
@@ -1,4 +1,51 @@
#!/bin/bash
+
+# Install zsh and oh-my-zsh if the first doesn't exist in the system
+if ! command -v zsh >/dev/null 2>&1; then
+ echo "Installing ZSH"
+ sudo apt-get install zsh
+
+ # Make ZSH the default shell
+ chsh -s $(which zsh)
+
+ # Install oh-my-zsh
+ sh -c "$(curl -fsSLi https... | bash |
d_bash_24290 | ---
+++
@@ -22,5 +22,5 @@
PACKAGES+=('mysqlclient==1.3.10');
fi;
echo "Install " ${PACKAGES[*]};
-pip install ${PACKAGES[*]};
+pip install --upgrade --upgrade-strategy=only-if-needed ${PACKAGES[*]};
pip check | bash |
d_bash_24291 | ---
+++
@@ -5,4 +5,4 @@
echo "Install dependencies"
cd /home/notify-app/notifications-api;
-pip3 install --no-index --find-links=wheelhouse wheelhouse/*
+pip3 install --find-links=wheelhouse -r /home/notify-app/notifications-api/requirements.txt | bash |
d_bash_24292 | ---
+++
@@ -2,5 +2,6 @@
#Brandon Heller (brandonh@stanford.edu)
#Install extra tools on Debian Lenny
-#Install tcpdump and tshark, cmd-line packet dump tools:
-sudo apt-get install -y tcpdump tshark
+#Install tcpdump and tshark, cmd-line packet dump tools. Also install gitk,
+#a graphical git history viewer.
+s... | bash |
d_bash_24293 | ---
+++
@@ -1,12 +1,14 @@
#!/bin/bash
set -x
-# Randomise the root password, then lock
-PASS=$(tr -dc A-Za-z0-9 < /dev/urandom | head -c10)
-echo "Setting root password: $PASS"
-echo "root:$PASS" | chpasswd
-#passwd -l root
-#passwd -d root
+# Randomise the root password
+#PASS=$(tr -dc A-Za-z0-9 < /dev/urandom |... | bash |
d_bash_24294 | ---
+++
@@ -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/jdk-15%2B36/OpenJDK15U-jdk_x64_linux_hotspot_15_36.t... | bash |
d_bash_24295 | ---
+++
@@ -32,6 +32,7 @@
if [ ${#} -lt 2 ]
then
usage
+ exit
fi
if [ "${1}" = "install" ] | bash |
d_bash_24296 | ---
+++
@@ -30,7 +30,7 @@
git add -u
git commit -m "$service: $version release [skip ci]"
-git tag -f -a "$version" -m "version $version"
+git tag -f -a "fnlb-$version" -m "version fnlb-$version"
git push
git push origin $version
| bash |
d_bash_24297 | ---
+++
@@ -3,7 +3,8 @@
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
-repos='rpi-nodejs rpi-node armv7hf-node rpi-buildpack-deps armv7hf-buildpack-deps i386-node i386-buildpack-deps armel-node amd64-node'
+repos='rpi-nodejs rpi-node armv7hf-node rpi-buildpack-deps armv7hf-buildpack-deps i386-node i386-buildpa... | bash |
d_bash_24298 | ---
+++
@@ -6,7 +6,7 @@
exit -1
fi
-event_type=run-tests
+event_type=run-commit-tests
for option in "$@"
do
@@ -27,8 +27,8 @@
echo "Sending repository_dispatch, event_type: ${event_type}"
-curl -H "Accept: application/vnd.github.everest-preview+json" \
+curl -v -H "Accept: application/vnd.github.everes... | bash |
d_bash_24299 | ---
+++
@@ -6,8 +6,8 @@
exit 1
fi
-sed -ie 's/version=".*",/version="'"$1"'",/' setup.py
-sed -ie "s/__version__ = '.*'/__version__ = '$1'/" mkosi/__init__.py
+sed -i 's/version=".*",/version="'"$1"'",/' setup.py
+sed -i "s/__version__ = '.*'/__version__ = '$1'/" mkosi/__init__.py
git add -p setup.py mkosi... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.