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 / 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
@pahud
pahud / update-ecs-cluster-capacity-providers.sh
Last active January 20, 2023 13:54
Update the capacity providers of your existing ECS clusters for Fargate
# 1. update your aws cli
# https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
#
# 2. update your existing cluster with capacity providers support
CLUSTER_NAME=fargate
SERVICE_NAME=myservice
FARGATE_WEIGHT=1
FARGATE_SPOT_WEIGHT=1
FARGATE_BASE=1
FARGATE_SPOT_BASE=0
@ServerlessBot
ServerlessBot / IAMCredentials.json
Last active December 20, 2023 16:50
Minimum credential set for Serverless Framework
{
"Statement": [
{
"Action": [
"apigateway:*",
"cloudformation:CancelUpdateStack",
"cloudformation:ContinueUpdateRollback",
"cloudformation:CreateChangeSet",
"cloudformation:CreateStack",
"cloudformation:CreateUploadBucket",
@7yl4r
7yl4r / airflow.cfg
Last active December 3, 2020 12:49
performance-related sanitized airflow config options
[core]
executor = CeleryExecutor
sql_alchemy_conn = mysql://USER:PW@AIRFLOW_MASTER_SERVER/airflowtable
# The SqlAlchemy pool size is the maximum number of database connections
# in the pool.
sql_alchemy_pool_size = 100
# The SqlAlchemy pool recycle is the number of seconds a connection
# can be idle in the pool before it is invalidated. This config does
@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
@brandond
brandond / function.py
Last active February 6, 2023 21:09
Python script to auto-tag AWS EBS Snapshots and Volumes using AMI and Instance tags
import copy
import logging
import os
import boto3
logging.basicConfig(level=os.environ.get('LOG_LEVEL', 'INFO'))
ec2 = boto3.client('ec2')
logger = logging.getLogger(__name__)
@JamesOBenson
JamesOBenson / Generating a secure SSH Key and commands
Last active October 16, 2023 06:45
SSH Generation and commands.
ssh-keygen
-t ed25519 - for greatest security (bits are a fixed size and -b flag will be ignored)
-t rsa - for greatest portability (key needs to be greater than 4096 bits)
-t ecdsa - faster than RSA or DSA (bits can only be 256, 284, or 521)
-t dsa - DEEMED INSECURE - DSA limted to 1024 bit key as specified by FIPS 186-2, No longer allowed by default in OpenSSH 7.0+
-t rsa1 - DEEMED INSECURE - has weaknesses and shouldn't be used (used in protocol 1)
-b 4096 bit size
-a 500 rounds (should be no smaller than 64, result in slower passphrase verification and increased resistance to brute-force password cracking)
-C "First.Last@somewhere.com" comment..

Some of the Redis best practices content has moved

This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.

NOTE: Client specific guidance listed below is still valid and should still be considered. I will update this document once all content has been moved.

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active June 6, 2024 08:23
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k