Skip to content

Instantly share code, notes, and snippets.

View ckabalan's full-sized avatar

Caesar Kabalan ckabalan

View GitHub Profile
@ckabalan
ckabalan / PerfectPuTTYSettings.reg
Created February 11, 2019 23:08
Perfect PuTTY Settings
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\SimonTatham]
[HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY]
[HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Jumplist]
[HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Sessions]
@ckabalan
ckabalan / gist:fc728f183cf3e5039b623a25df6664d2
Last active June 3, 2019 22:39
AWS Run Across Accounts / Regions
aws_all_div () {
COMMAND=`cat`
API_LIST=(
'profile_name_1 region_1'
'profile_name_2 region_1'
'profile_name_3 region_1'
'profile_name_1 region_2'
'profile_name_2 region_2'
'profile_name_3 region_2'
'profile_name_1 region_3'
@ckabalan
ckabalan / gist:ece142637c6394a1acfa1cb7d7ae0c3d
Created August 2, 2019 21:05
ZSH Activate/Deactive Virtual Environment
venv () {
if ((${+VIRTUAL_ENV})); then
echo "Deactivating Virtual Environment: $VIRTUAL_ENV"
deactivate
else
VENV_PATH=${PWD:gs/\/home\/ckabalan\//\/home\/ckabalan\/.virtualenv\//}
ACTIVATE_PATH=$VENV_PATH/bin/activate
if [[ -e $ACTIVATE_PATH ]]; then
echo "Activating Virtual Environment: $VENV_PATH"
source $ACTIVATE_PATH
@ckabalan
ckabalan / gist:84197739d839ff6c6cb42520331f717a
Last active September 14, 2019 18:52
CloudFormation Package Issue
> git clone https://github.com/passthesecret/serverless.git
Cloning into 'serverless'...
remote: Enumerating objects: 75, done.
remote: Counting objects: 100% (75/75), done.
remote: Compressing objects: 100% (54/54), done.
remote: Total 75 (delta 29), reused 62 (delta 16), pack-reused 0
Unpacking objects: 100% (75/75), done.
> cd serverless
> git checkout 4033970
[ ... SNIP ... ]
#define ADDRESS_U10_A 0x14
#define ADDRESS_U10_A_CONTROL 0x15
#define ADDRESS_U10_B 0x16
#define ADDRESS_U10_B_CONTROL 0x17
#define ADDRESS_U11_A 0x18
#define ADDRESS_U11_A_CONTROL 0x19
#define ADDRESS_U11_B 0x1A
#define ADDRESS_U11_B_CONTROL 0x1B
@ckabalan
ckabalan / PPT-Diagram-Tips.md
Last active August 23, 2024 05:31
PowerPoint Architecture Diagram Tips

PowerPoint Architecture Diagram Tips

Why PowerPoint for Diagrams?

  • Everyone has Microsoft PowerPoint or something PowerPoint compatible. Visio is dated and doesn't work on MacOS. There are too many different LucidCharts/DrawIO/Diagrams.net competitors and no clear winner, so you have a 1/3 chance of someone having your chosen tool. YOu have a 95% chance of someone having PowerPoint.
  • PowerPoint gives you amazing flexibility in the design of your diagram using familiar configuration options people have used in Word and PowerPoint for literally 30 years.

Tips for Drafting a Diagram

  • Create a blank slide, and change your slide size to be huge. Design Tab > Slide Size > Page Setup. I use a Width of 30in and Height of 20in.