Skip to content

Instantly share code, notes, and snippets.

View onyxraven's full-sized avatar
😺

Justin Hart onyxraven

😺
View GitHub Profile
@onyxraven
onyxraven / asdf-alias
Created November 3, 2020 16:34 — forked from andrewthauer/asdf-alias
asdf-alias
#!/usr/bin/env bash
#
# description:
# Symlink a short name to an exact version
#
# usage:
# asdf-alias <plugin> <name> [<version> | --auto | --remove]"
# asdf-alias <plugin> --auto"
# asdf-alias <plugin> [--list]"
#
@onyxraven
onyxraven / ec2_ssh_config.py
Last active December 18, 2015 19:18 — forked from ozkatz/ec2_ssh_config.py
Add option for identity file ssh config
#!/usr/bin/env python
import os
import sys
import argparse
try:
from boto.ec2.connection import EC2Connection
except ImportError:
sys.stderr.write('Please install boto ( http://docs.pythonboto.org/en/latest/getting_started.html )\n')
sys.exit(1)
@onyxraven
onyxraven / rds.sh
Last active June 21, 2022 13:42 — forked from douglasjarquin/gist:2208690
Amazon RDS Performance Tuning Settings
#XLarge DBInstanceClassMemory = 15892177440 = 14.8GB
#/32 = 496630545 = 473MB
#/64 = 248315272 = 236MB
#/128 = 124157636 = 118MB
#/256 = 62078818 = 59MB
#/512 = 31039409 = 29MB
#/12582880 = 1263 #default same divisor as max_connections = 4041.6MB = 4237924762
#/25165760 = 623 # half of max_connections = 1993.6MB
#/50331520 = 315 # quarter of max_connections = 1008MB = 1056964608
#*(3/4) #default innodb pool size = 11922309120