This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Push a sample application to pez | |
# Login to PeZ and create an account: | |
https://pez.pezapp.io/ | |
# Grab a working cf binary for your platform (this assumes osx): | |
$ curl -L "https://cli.run.pivotal.io/stable?release=macosx64-binary&source=github" | tar -zx | |
$ mv cf /usr/local/bin/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install ruby and the bosh cli | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc | |
git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
$regexp = '\d\d:\d\d:\d\d'; | |
while(<>){ | |
if(/($reg)/g) { | |
print"$1\n" | |
} | |
while( m/($reg)/g ){ | |
print"$1\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat test.json | |
[ | |
{ | |
"kind": "workspace", | |
"id": 672699, | |
"name": "Iteration 0", | |
"person_id": 2179801, | |
"project_ids": [ | |
1968761, | |
1968571, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install gnupg2 and gnupg-agent | |
$ sudo apt-get install gnupg2 gnupg-agent rng-tools | |
# Make sure you have gpg2 2.1.11 (gpg2 --version) | |
# Create entropy for key generation | |
$ sudo rngd -r /dev/urandom | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat >cloudinit.sh<<EOF | |
#cloud-config | |
users: | |
- default | |
- name: stack | |
lock_passwd: False | |
sudo: ["ALL=(ALL) NOPASSWD:ALL\nDefaults:stack !requiretty"] | |
shell: /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
function get_binary() { | |
wget https://github.com/concourse/bin/releases/download/v2.8.0-rc.125/concourse_linux_amd64 -O /usr/sbin/concourse | |
chmod 755 /usr/sbin/concourse | |
} | |
function create_keys() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Training for PRE | |
If on AWS or GCP use BBL | |
Setup Standalone Bosh (Bosh Boot Loader) | |
- https://github.com/cloudfoundry/bosh-bootloader | |
If on other, use bosh create-env (init) | |
https://bosh.io/docs/init.html | |
Deploy the Vault Bosh Release (secure credential storage) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Have you ever deleted the default fw rules in your gcp project? | |
# Of course you have! Here's how to re-create them. | |
PROJECT='' | |
function create_default_ruleset() { | |
# Allow ICMP from Anywhere |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
TARGET='concourse' | |
TASK='deploy-healthwatch/apply-changes' | |
function wait_for_pipeline_to_complete() { | |
local JOB=$1 | |
local count=1 |
OlderNewer