Skip to content

Instantly share code, notes, and snippets.

Avatar
🌈
Puppies

Brenden Matthews brndnmtthws

🌈
Puppies
View GitHub Profile
@brndnmtthws
brndnmtthws / aws_nvme-cloud-init.yml
Last active Jan 23, 2021 — forked from aussielunix/aws_nvme-cloud-init.yml
simple cloud-init for mounting an ephemeral nvme store in AWS. This is to be used as user-data.
View aws_nvme-cloud-init.yml
#cloud-config
repo_update: true
repo_upgrade: all
package_upgrade: true
bootcmd:
- test -z "$(blkid /dev/nvme0n1)" && mkfs -t ext4 -L scratch /dev/nvme0n1
- mkdir -p /mnt/tmp
- mount /dev/nvme0n1 /mnt/tmp
@brndnmtthws
brndnmtthws / route53-to-tf.py
Last active Aug 17, 2020
A python script for converting existing AWS Route53 records into Terraform HCL
View route53-to-tf.py
#!/usr/bin/env python3
#
# Copyright (c) 2020 Brenden Matthews <brenden@brndn.io> under the MIT license
# at https://opensource.org/licenses/MIT
#
# This script converts existing Route53 records into Terraform HCL. I created
# this for a one-off job. The script uses the AWS CLI to fetch Route53 info,
# and prints the corresponding TF code to stdout.
#
# Example usage:
@brndnmtthws
brndnmtthws / hodl-enrichment.md
Last active Apr 29, 2018
Crypto HODLer reading list
View hodl-enrichment.md

Reading List for Crypto HODLers

This is my personal compilation of books and other reading material for HODLers. Enjoy.

On Philosophy

  • Meditations by Marcus Aurelius
  • The Handbook by Epictetus
  • A Guide to the Good Life: The Ancient Art of Stoic Joy by William Braxton Irvine
  • The Stranger by Albert Camus
@brndnmtthws
brndnmtthws / influencers.md
Last active Jan 29, 2018
List of positive and negative crypto influencers
View influencers.md

List of positive and negative crypto influencers

This is my curated list of positive and negative crypto influencers. Positive influencers are those which I believe have a genuine, positive impact on the crypto community and the greater good.

Negative influencers are those who I believe are one (or more) of: dishonest, manipulative, greedy, or any other type of purveyor of bullshit.

Positive influencers

  • Andreas M. Antonopoulos is quite possibly the most important voice in crypto. I'm bullish on pretty much everything he says. Please follow him and watch his YouTube videos. I want to give him the biggest hug ever.
  • Naval Ravikant is an investor and entrepreneur. His feel-good tidbits show up in my twitter feed quite often. Naval has been known to shill Ripple and Zcash, so be aware of that. Overall I'm a fan.
View keybase.md

Keybase proof

I hereby claim:

  • I am brndnmtthws on github.
  • I am brndnmtthws (https://keybase.io/brndnmtthws) on keybase.
  • I have a public key ASA6jyg6so8IlYadNHfKmy--Sh6FP5-_UZx7Kq--5AcqxAo

To claim this, I am signing this object:

View iot-preload.json
{
"id": "iot-preload",
"cpus": 0.1,
"mem": 32,
"cmd": "docker pull mesosphere/iot-demo && docker pull mesosphere/presto-server && docker pull mesosphere/presto-cli && echo 'done!'",
"instances": 999,
"constraints": [["hostname", "UNIQUE"]],
"acceptedResourceRoles":["*", "slave_public"]
}
View marathon-lb-autoscale.json
{
"id": "marathon-lb-autoscale",
"args":[
"--marathon", "http://leader.mesos:8080",
"--haproxy", "http://marathon-lb.marathon.mesos:9090",
"--target-rps", "100",
"--apps", "nginx_10000",
"--interval", "3"
],
"cpus": 0.1,
View siege.json
{
"id": "siege",
"args":[
"-d1",
"-r1000",
"-c100",
"http://marathon-lb.marathon.mesos:10000/"
],
"cpus": 0.5,
"mem": 16.0,
View siege.json
{
"id": "siege",
"args":[
"-d1",
"-r100",
"-c150",
"http://marathon-lb.marathon.mesos:10000/"
],
"cpus": 0.5,
"mem": 16.0,
View nginx.json
{
"id": "nginx",
"container": {
"type": "DOCKER",
"docker": {
"image": "nginx:1.7.7",
"network": "BRIDGE",
"portMappings": [
{ "hostPort": 0, "containerPort": 80, "servicePort": 10000 }
],