Using bosh-lite; apply 5GB file upload patch - https://groups.google.com/a/cloudfoundry.org/forum/#!msg/bosh-users/MjiFAdpyimQ/VeOCpG9SsHQJ
Then:
Upload cf-release
bosh upload release https://bosh.io/d/github.com/cloudfoundry/cf-release?v=205
Using bosh-lite; apply 5GB file upload patch - https://groups.google.com/a/cloudfoundry.org/forum/#!msg/bosh-users/MjiFAdpyimQ/VeOCpG9SsHQJ
Then:
Upload cf-release
bosh upload release https://bosh.io/d/github.com/cloudfoundry/cf-release?v=205
➜ bosh-lite git:(master) CF_HOME=/tmp/cf2 cf login -a https://api.10.244.0.34.xip.io -u admin -p admin --skip-ssl-validation | |
API endpoint: https://api.10.244.0.34.xip.io | |
Authenticating... | |
OK | |
Targeted org jdk-org | |
Targeted space jdk-space | |
I [tweeted this already][1] but I thought it could use some expansion:
Enable decentralized git workflow: git config alias.serve "daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/"
Say you use a git workflow that involves working with a core "official" repository that you pull and push your changes from and into. I'm sure many companies do this, as do many users of git hosting services like Github.
Say that server, or Github, goes down for a bit.
go get github.com/concourse/autopilot | |
cf install-plugin $GOPATH/bin/autopilot | |
cf login -a ${CF_URL_US_SOUTH} -u ${CF_USERNAME} -p ${CF_PASSWORD} -o ${CF_ORG} -s ${CF_SPACE} | |
cf zero-downtime-push myapp -f manifest.yml |
#!/bin/bash | |
# After a 1.7+ opsmanager restarts with a new ip address | |
# ssh into the opsmanager as 'ubuntu' and | |
# Run this file from the opsmanager as follows | |
# sudo su -l postgres < thisfile.sh > | |
# Get the current public ip or hostname from aws metadata | |
HN=$(curl http://169.254.169.254/latest/meta-data/public-hostname) |
upload_product() { | |
PRODUCT_FILE=$1 | |
OPSMGR_HOST=$2 | |
OPSMGR_USER=$3 | |
OPSMGR_PASSWORD=$4 | |
OPSMGR_IP=$5 | |
LOG_FILE=upload.txt | |
if [ -z $OPSMGR_IP ]; then | |
curl -k -XPOST -H "Application/json" -H "Host: $OPSMGR_HOST" -u "opsman:" \ | |
--data "username=$OPSMGR_USER&password=$OPSMGR_PASSWORD&client_id=opsman&grant_type=password&response_type=token" \ |
#!/bin/bash | |
# Argument = -h -v -i groupId:artifactId:version -c classifier -p packaging -r repository | |
#shopt -o -s xtrace | |
# Define Nexus Configuration | |
NEXUS_BASE=${NEXUS_BASE-:http://repository.example.com:8081/nexus} | |
REST_PATH=/service/local | |
ART_REDIR=/artifact/maven/redirect |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.
#!/bin/bash -e | |
NSX_MANAGER=nsxmgr-01.cf.markalston.net | |
NSX_USER=admin | |
if [ -z "$NSX_PASSWORD" ]; then | |
echo "NSX_PASSWORD must be set" | |
return 1 | |
fi |