Skip to content

Instantly share code, notes, and snippets.

View yermulnik's full-sized avatar
🇺🇦
Yz

George Yermulnik (Georgii Iermulnik) yermulnik

🇺🇦
Yz
  • Earth, Europe, Ukraine, Kyiv
  • 04:34 (UTC +03:00)
  • LinkedIn in/yermulnik
View GitHub Profile
@yermulnik
yermulnik / getAwsRegionCodeFromName
Last active May 18, 2026 17:55
AWS Region Code from Name
# ########################## #
# HCL (Terraform >= 0.12.20) #
# ########################## #
locals {
combined_cardinal_directions = {
northeast = "ne",
northwest = "nw",
southeast = "se",
southwest = "sw",
}
@yermulnik
yermulnik / youtube-subs-to-opml.py
Last active July 25, 2025 15:01 — forked from jeosadn/.gitignore
Convert YouTube subscriptions exported via Google Takeout into OPML
# youtube-subs-to-opml.py -- Convert YouTube subscriptions exported
# via Google Takeout into OPML
#
# See <https://www.reddit.com/r/youtube/comments/jqlks2/where_did_opml_export_go/gcdii2n/>.
# 1. Go to youtube homepage
# 2. Click top right icon, "Your Data in Youtube"
# 3. Click "Show More"
# 4. Click "Download Youtube data"
# 5. This takes you to a similar screen as the other google takeout one, but only for youtube data. The subscription info here is more up to date.
#
@yermulnik
yermulnik / tf_summarize.jq
Last active April 9, 2026 20:44
Summarize TF plan output
#!/usr/bin/env bash
# Created by Randy Wallace (@Real Human Bot; https://hangops.slack.com/team/U4ZT6HSH5)
# Taken from HangOps Slack and adopted for my needs (c) yz 21-Oct-2024
# Options documented at https://pkg.go.dev/github.com/hashicorp/terraform-json?tab=doc
# Dev documentation: https://developer.hashicorp.com/terraform/internals/json-format#plan-representation
# Also: https://developer.hashicorp.com/terraform/internals/machine-readable-ui
cat - | jq -r '
# pull out changes only
@yermulnik
yermulnik / My list of Terraform-related CLI tools.md
Last active June 16, 2026 23:46
My list of Terraform-related CLI tools
@yermulnik
yermulnik / http-request-debug.py
Last active April 6, 2025 14:57
Python: debug output for `requests`/`urllib3`
import requests
import logging
try:
import http.client as http_client
except ImportError:
# Python 2
import httplib as http_client
http_client.HTTPConnection.debuglevel = 1
@yermulnik
yermulnik / My list of CLI tools for AWS SSM Session Manager.md
Last active September 11, 2025 01:45
My list of CLI tools for AWS SSM Session Manager

My list of CLI tools for AWS SSM Session Manager

Name Description
aws-gate Better AWS SSM Session manager CLI client
aws-ssm-tools Handy tools for AWS Systems Manager - ssm-session, ecs-session, ssm-ssh and ssm-tunnel
gossm 💻Interactive CLI tool that you can connect to ec2 using commands same as start-session, ssh in AWS SSM Session Manager
quick_ssm Quickly connect to AWS servers from the cli. No GUI or ssh needed.
ssm-helpers Help manage AWS systems manager with helpers
@yermulnik
yermulnik / bash-colors.md
Created March 18, 2026 12:40 — forked from JBlond/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple