Skip to content

Instantly share code, notes, and snippets.

View michaeljoy's full-sized avatar
💭
Building the future

Michael Joy michaeljoy

💭
Building the future
View GitHub Profile
@michaeljoy
michaeljoy / w10-iso-flash-osx.txt
Created October 10, 2020 16:47
Windows 10 Bootable USB Flashdrive from ISO on OSX - Windows Version 2004
## install homebrew first if not available
brew install wimlib
## list disks to find flashdrive disk number
diskutil list
## confirm flashdrive disk number and match to commands before proceeding
diskutil eraseDisk MS-DOS "W10" MBRFormat /dev/disk2
## download Windows 10 iso - https://www.microsoft.com/en-us/software-download/windows10ISO
@michaeljoy
michaeljoy / aws_cloudfront_ipv4_ipv6_cidr_blocks_dynamic_security_groups.tf
Created September 24, 2020 19:28
Creating Dynamic AWS Cloudfront IP CIDR Block Based Security Groups in Terraform - terraform >= 0.13
data "aws_ip_ranges" "cloudfront" {
services = ["cloudfront"]
}
locals {
tags = map("Environment", "my_environment")
cloudfront_ipv4_cidr_blocks = chunklist(data.aws_ip_ranges.cloudfront.cidr_blocks, 40)
cloudfront_ipv6_cidr_blocks = chunklist(data.aws_ip_ranges.cloudfront.ipv6_cidr_blocks, 40)
cloudfront_ipv4_cidr_blocks_map = { for i in local.cloudfront_ipv4_cidr_blocks : index(local.cloudfront_ipv4_cidr_blocks, i) => i }
cloudfront_ipv6_cidr_blocks_map = { for i in local.cloudfront_ipv6_cidr_blocks : index(local.cloudfront_ipv6_cidr_blocks, i) => i }
@michaeljoy
michaeljoy / plume_superpod_ethernet_switch_backhaul_stability_20200829_001.txt
Last active January 30, 2024 07:13
Plume Superpod All Ethernet Network Backhaul Performance and Stability Solution
Plume Superpod All Ethernet Network Backhaul Performance and Stability Solution
- This is for pro-sumer / small head count SMB network configuration, this isn't a corporate office level solution
- This probably applies to all consumer mesh network hardware (Plume, Eero, Google WiFi at this point when they are interacting with enterprise or small business grade L2/L3 managed switches for ethernet backhaul configurations)
Network Configuration: 4x Plume Superpod Mesh WiFi AP's with All Ethernet Switched Backhaul
- Problem: Plume superpod or switch randomly loses network, internet, or connectivity to both, and everything on your network dies, or at least important components like your Apple TV, Fire TV, Smart TV, PS4, Xbox, iPhone, Apple Watch, Google Nexus Phone randomly lose internet and local network access etc... The reasons including network storms and loops caused by incorrect topology resolution. Additional problem... Apple Watch on WiFi when connected to iPhone via Bluetooth causes intermitten l
@michaeljoy
michaeljoy / my_public_ip.tf
Created November 20, 2019 02:35
Terraform 0.12 json public IP via http data provider, jsondecode, for all your 'where am I actually running this build needs' - my_public_ip.tf
data "http" "my_public_ip" {
url = "https://ifconfig.co/json"
request_headers = {
Accept = "application/json"
}
}
locals {
ifconfig_co_json = jsondecode(data.http.my_public_ip.body)
}

Keybase proof

I hereby claim:

  • I am michaeljoy on github.
  • I am michaeljoy (https://keybase.io/michaeljoy) on keybase.
  • I have a public key ASA6y7bhVFHncNw_RZNZ63uDsLtbwWBoK03TnVic9WQl0go

To claim this, I am signing this object:

@michaeljoy
michaeljoy / percona-toolkit-my.cnf
Last active November 18, 2019 14:24
pt-heartbeat systemd init script example - percona tookit systemd examples
[mysql]
host=localhost
socket=/var/run/mysqld/mysqld.sock
[client]
host=localhost
socket=/var/run/mysqld/mysqld.sock
@michaeljoy
michaeljoy / gist:7cb8a22dc9321273e35916b800c37794
Created October 25, 2016 16:47
openjdk-8_1.8.0_92-internal_alpine_34_JAVA_OPTS
alpine34:~$ java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version
[Global flags]
uintx AdaptiveSizeDecrementScaleFactor = 4 {product}
uintx AdaptiveSizeMajorGCDecayTimeScale = 10 {product}
uintx AdaptiveSizePausePolicy = 0 {product}
uintx AdaptiveSizePolicyCollectionCostMargin = 50 {product}
uintx AdaptiveSizePolicyInitializingSteps = 20 {product}
uintx AdaptiveSizePolicyOutputInterval = 0 {product}
uintx AdaptiveSizePolicyWeight = 10 {product}
uintx AdaptiveSizeThroughPutPolicy = 0 {product}