Skip to content

Instantly share code, notes, and snippets.

View malston's full-sized avatar

Mark Alston malston

View GitHub Profile
@miclip
miclip / custom_stack.md
Last active June 29, 2022 17:17
Custom TBS Stack example

Create a custom stack and add to TBS

  1. Create a docker file for image:
# Set a common base
FROM alpine as base

# Set required CNB information
ENV CNB_USER_ID=1000
@Proplex
Proplex / mysql-migrator.sh
Last active December 3, 2021 14:09
MySQL Migrator
#/bin/bash
set -e
if [[ -n "$DEBUG" ]]
then
echo "!!! Debug output enabled"
set -x
fi
set -u
@nota-ja
nota-ja / README.md
Last active August 18, 2022 15:37
Multiple App Ports Demo on Cloud Foundry
@jmcdice
jmcdice / gist:fac460015f8b9efea8939fcdff86d523
Last active August 29, 2017 16:21
Using gpg2 and gpg-agent to manage pipeline secrets
# 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

Principles of Adult Behavior

  1. Be patient. No matter what.
  2. Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
  3. Never assume the motives of others are, to them, less noble than yours are to you.
  4. Expand your sense of the possible.
  5. Don’t trouble yourself with matters you truly cannot change.
  6. Expect no more of anyone than you can deliver yourself.
  7. Tolerate ambiguity.
  8. Laugh at yourself frequently.
#!/bin/bash
set -eu
if [ -n "${STDOUT:-}" ] ; then
exec 1>$STDOUT
fi
manifest="${1:-$0.jq}"
manifest_dir=$( cd "$( dirname "$manifest" )" && pwd )
@allomov-altoros
allomov-altoros / bosh-cheatsheet.md
Last active September 17, 2023 05:50
BOSH CLI cheatsheet

BOSH command line interface cheatsheet

Introduction

BOSH is a powerful tool to install and manage your deployments. You can find docs on https://bosh.io/docs. Consider using bosh-init tool to install to a cloud of your choice MicroBOSH instance (MicroBOSH is a single VM BOSH installation, it has everything that you need to deploy and manage).

Installing of BOSH CLI

BOSH command line interface is implemented as a ruby gem and can be run on every platform that supports ruby, you'll need to have ruby 2.1.x or higher to run it. To install it you can run gem install bosh_cli and gem update bosh_cli to update to a newer version.

@dwallraff
dwallraff / create_cert.sh
Last active September 26, 2019 17:27
Commands to create a self-signed SSL cert or CSRs using the openssl conf from https://gist.github.com/dwallraff/c1ed31291ac7cf19304b
##### Commands to generate SSL certs/artifcts
# Download the temp.cnf file using the wget command below
# Edit temp.cnf and add your information
# Run the uncommented out commands to generate a self-signed cert (cert.pem) and private key (keyfile.pem)
wget https://gist.githubusercontent.com/dwallraff/c1ed31291ac7cf19304b/raw/e06feacbb85ac63659e6c1c40c70d5481522b390/temp.cnf
# Generate a new keyfile. A 2048 bit key size is TOTALLY fine. Jack it up to 4096 and wait if you must...
openssl genrsa -out keyfile.key 2048
@dwallraff
dwallraff / temp.cnf
Last active December 20, 2016 18:53
Temp openssl conf file for Multiple SAN Self-Signed SSL Cert (used in https://gist.github.com/dwallraff/60cd13d68c7de76335a3)
[ req ]
distinguished_name = req_distinguished_name
req_extensions = server_req_extensions
prompt = no
[ req_distinguished_name ]
C = <Your country> # Only 2 characters
ST = <Your state> # Only 2 characters
L = <Your city>
O = <Your org>
@cjonesy
cjonesy / macbook_pro_ubuntu_install.md
Last active March 12, 2025 13:58
Installing Ubuntu on MacBook Pro

Macbook Pro - Ubuntu Install

Requirements

2 USB drives > 2GB

Pre-Install

Create bootable USB drive

  1. Grab the latest Ubuntu Desktop iso image