Skip to content

Instantly share code, notes, and snippets.

View pacphi's full-sized avatar
🎯
Focusing

Chris Phillipson pacphi

🎯
Focusing
View GitHub Profile
@pacphi
pacphi / install-concourse-with-credhub-on-aws.sh
Created September 11, 2018 00:02
On a Mac: Use BOSH Boot Loader to provision an instance of Concourse integrated with Credhub on AWS
#!/bin/bash
# @name install-concourse-with-credhub-on-aws.sh
# @description This script provisions a Jumpbox, BOSH director, Credhub, and Concourse on AWS.
# @assumptions You have installed bbl-cli, terraform, bosh-cli, credhub-cli, git, and openssl on a Mac.
# and that a Service Account has been created in advance,
# @see https://github.com/cloudfoundry/bosh-bootloader/blob/master/docs/getting-started-gcp.md#create-a-service-account.
# @basedUpon https://github.com/pivotalservices/concourse-credhub
# @author Chris Phillipson
# @version 1.0.0
@pacphi
pacphi / connect-to-concourse-credhub.sh
Last active October 3, 2018 18:20
On a Mac: Connect to Concourse integrated w/ Credhub on a public cloud
#!/bin/bash
# Connect to your Concourse Credhub instance
# Fire up Terminal (or iTerm)
# Execute this sequence of commands to connect and authenticate to Concourse Credhub instance
# via the Jumpbox and Bosh Director's Credhub instance.
if [ $# -eq 0 ]
then
@pacphi
pacphi / install-concourse-with-credhub-on-azure.sh
Last active October 3, 2018 18:19
On a Mac: Use BOSH Boot Loader to provision an instance of Concourse integrated with Credhub on Azure
#!/bin/bash
# @name install-concourse-with-credhub-on-azure.sh
# @description This script provisions a Jumpbox, BOSH director, Credhub, and Concourse on Azure.
# @assumptions You have installed bbl-cli, terraform, bosh-cli, credhub-cli, git, and openssl on a Mac.
# and that a Service Account has been created in advance,
# @see https://github.com/cloudfoundry/bosh-bootloader/blob/master/docs/getting-started-gcp.md#create-a-service-account.
# @basedUpon https://github.com/pivotalservices/concourse-credhub
# @author Chris Phillipson
# @version 1.0.3
@pacphi
pacphi / install-concourse-with-credhub-on-gcp.sh
Last active December 17, 2018 17:46
On a Mac: Use BOSH Boot Loader to provision an instance of Concourse integrated with Credhub on Google Cloud Platform
#!/bin/bash
# @name install-concourse-with-credhub-on-gcp.sh
# @description This script provisions a Jumpbox, BOSH director, Credhub, and Concourse on Google Gloud Platform.
# @assumptions You have installed bbl-cli, terraform, bosh-cli, credhub-cli, git, and openssl on a Mac.
# and that a Service Account has been created in advance,
# @see https://github.com/cloudfoundry/bosh-bootloader/blob/master/docs/getting-started-gcp.md#create-a-service-account.
# @basedUpon https://github.com/pivotalservices/concourse-credhub
# @author Chris Phillipson
# @version 1.0.2
@pacphi
pacphi / SpringToolSuite4.ini
Created February 14, 2018 14:34
Initialize Spring Tools 4 with Lombok
-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.0.v20180119-0753.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.700.v20180124-1426
-product
org.springframework.boot.ide.branding.sts4
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.8
#!/bin/bash
# Concourse install script for ubuntu 16.04
# - Installs Postgres
# - Runs concourse internally on 8080
# - Creates a *valid* 90 day SSL cert via Letsencrypt certbot
# - Includes cron.d job for auto SSL renewal!!
# - Runs HTTPD as a reverse proxy: 80->8080, 443->8080
# - Handles websocket for fly hijack
set -e -u
# Azure Subscription Id (existing)
export SUBSCRIPTION_ID=
# Azure Service Principal Password (existing)
# If Pivotal employee; this is your Okta password for pivotal.okta.com
export SERVICE_PRINCIPAL_PASSWORD=
# Sets a new Azure Resource Group
export RESOURCE_GROUP=
# Sets a new Azure Storage Account
export STORAGE_ACCOUNT=
@pacphi
pacphi / flush-dns.sh
Created July 19, 2017 21:45 — forked from craigvantonder/flush-dns.sh
Flushing the DNS in Ubuntu 16.04
#!/bin/bash
# run this command to flush dns cache:
sudo /etc/init.d/dns-clean restart
# or use:
sudo /etc/init.d/networking force-reload
# Flush nscd dns cache:
sudo /etc/init.d/nscd restart
# If you wanted to refresh your settings you could disable and then run
sudo service network-manager restart
@pacphi
pacphi / dotnet-me.sh
Created June 19, 2017 19:40
CF CLI plus minimal tooling for .Net development
#!/bin/bash
# A curated collection of software to be installed via Homebrew
# to get up and running with CF CLI and minimal tooling for .Net development
# @author Chris Phillipson
# @lastUpdated 2017-06-19
# @version 1.0
# @see http://brew.sh/, https://caskroom.github.io/, and https://github.com/cloudfoundry/homebrew-tap
set -e
@pacphi
pacphi / cf-me.sh
Created June 19, 2017 19:36
Install CloudFoundry CLI and miscellaneous tooling for Go, DotNet, Java and Python development plus Azure, Google, and AWS CLIs
#!/bin/bash
# A curated collection of software to be installed via Homebrew
# to get up and running with CF CLI and associated tooling and SDKs
# @author Chris Phillipson
# @lastUpdated 2017-06-19
# @version 1.0
# @see http://brew.sh/, https://caskroom.github.io/, and https://github.com/cloudfoundry/homebrew-tap
set -e