Skip to content

Instantly share code, notes, and snippets.

@cwest
cwest / gke-cluster-creation.sh
Last active April 1, 2020 02:04
Minecraft Bedrock Server on Kubernetes
# Environment Configuration
GOOGLE_CLOUD_PROJECT=YOUR_PROJECT_NAME;
GCP_ZONE=us-central1-a;
NODE_TYPE=n2-standard-2; # Cheapest: n1-standard-1
# Set your GCP Project
gcloud config set project $GOOGLE_CLOUD_PROJECT
# Create a Kubernetes Cluster
gcloud container clusters create minecraft-cluster \
@cwest
cwest / tweets-per-file.txt
Last active April 12, 2016 21:23
How many tweets does it take to show my Spring Boot app?
$ wc -c ci/pipeline.yml ci/tasks/build.yml manifest.yml src/main/java/com/example/CfenvApplication.java | awk '{print $1/140 $0}'
4.32143 605 ci/pipeline.yml
1.81429 254 ci/tasks/build.yml
0.471429 66 manifest.yml
8.25714 1156 src/main/java/com/example/CfenvApplication.java
14.8643 2081 total
@cwest
cwest / cf-mvp.sh
Last active March 21, 2016 09:34
#!/usr/bin/env bash
set -ex
# ____ _ _ _____ _ __ ____ ______
# / ___| | ___ _ _ __| | ___|__ _ _ _ __ __| |_ __ _ _ | \/ \ \ / / _ \
# | | | |/ _ \| | | |/ _` | |_ / _ \| | | | '_ \ / _` | '__| | | | | |\/| |\ \ / /| |_) |
# | |___| | (_) | |_| | (_| | _| (_) | |_| | | | | (_| | | | |_| | | | | | \ V / | __/
# \____|_|\___/ \__,_|\__,_|_| \___/ \__,_|_| |_|\__,_|_| \__, | |_| |_| \_/ |_|
# |___/
@cwest
cwest / keybase.md
Created June 9, 2015 15:10
keybase.md

Keybase proof

I hereby claim:

  • I am cwest on github.
  • I am caseywest (https://keybase.io/caseywest) on keybase.
  • I have a public key whose fingerprint is B118 0186 764B 74BF 139C 8ABD 61A0 E6A6 DAE2 0C39

To claim this, I am signing this object: