Skip to content

Instantly share code, notes, and snippets.

View brndnmtthws's full-sized avatar
🌈
Happy

Brenden Matthews brndnmtthws

🌈
Happy
View GitHub Profile
@brndnmtthws
brndnmtthws / macos-randomize-mac-address.sh
Created February 28, 2024 19:01
Randomize MAC on macOS
#!/bin/sh
# run with sudo
# Change this if your interface is not en0 (check with `ifconfig`)
if="en0"
# Will disassociate WiFi
/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z
ifconfig $if ether `openssl rand -hex 6 | sed 's/\(..\)/:\1/g; s/^.\(.\)[0-3]/\12/; s/^.\(.\)[4-7]/\16/; s/^.\(.\)[89ab]/\1a/; s/^.\(.\)[cdef]/\1e/'`
@brndnmtthws
brndnmtthws / aws_nvme-cloud-init.yml
Last active January 23, 2021 19:15 — 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.
#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 March 2, 2023 18:43
A python script for converting existing AWS Route53 records into Terraform HCL
#!/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 April 29, 2018 16:16
Crypto HODLer reading list

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 January 29, 2018 20:40
List of positive and negative crypto influencers

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.

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:

{
"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"]
}
{
"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,
{
"id": "siege",
"args":[
"-d1",
"-r1000",
"-c100",
"http://marathon-lb.marathon.mesos:10000/"
],
"cpus": 0.5,
"mem": 16.0,
{
"id": "siege",
"args":[
"-d1",
"-r100",
"-c150",
"http://marathon-lb.marathon.mesos:10000/"
],
"cpus": 0.5,
"mem": 16.0,