Skip to content

Instantly share code, notes, and snippets.

@thetemplateblog
thetemplateblog / countries.md
Created April 7, 2022 15:46 — forked from richjenks/countries.md
ISO 3166 countries by region — AMER, EMEA & APAC
Country ISO 3166 Region
Afghanistan AF EMEA
Åland Islands AX EMEA
Albania AL EMEA
Algeria DZ EMEA
American Samoa AS APAC
Andorra AD EMEA
Angola AO EMEA
Anguilla AI AMER
@thetemplateblog
thetemplateblog / security-group-cleanup.py
Created February 17, 2023 03:19 — forked from sa-jbrooks/security-group-cleanup.py
Security Group Cleanup using boto3
#!/usr/bin/env python
import boto3
import argparse
def lookup_by_id(sgid):
sg = ec2.get_all_security_groups(group_ids=sgid)
return sg[0].name
@thetemplateblog
thetemplateblog / security-group-cleanup.py
Last active February 17, 2023 15:07 — forked from pet0ruk/security-group-cleanup.py
Security Group Cleanup using boto3
#!/usr/bin/env python
import boto3
import argparse
def lookup_by_id(sgid):
sg = ec2.get_all_security_groups(group_ids=sgid)
return sg[0].name
@thetemplateblog
thetemplateblog / ec2_sg_rules.py
Created March 16, 2023 19:35 — forked from amgill/ec2_sg_rules.py
Generate AWS Security Groups Rules Report of all the Security Groups, as Seen via AWS Web Console. Uses python 3 with boto3 to generate CSV.
#!/usr/local/bin/python3
######################################################################################################################
# Purpose: Generate rules report of all the security groups #
# Input Params: None [Make sure to set AWS CLI session by populating env. vars. with keys.] #
# Usage: ./ec2_sg_rules.py > account-date.csv [python ./ec2_sg_rules.py > gill-dev-sg-2018-04-11.csv] #
# Author: Abdul Gill #
# Doc. Ref: http://boto3.readthedocs.io/en/latest/reference/services/ec2.html#EC2.Client.describe_security_groups#
######################################################################################################################
from __future__ import print_function
@thetemplateblog
thetemplateblog / git.py
Created April 13, 2023 14:42 — forked from crbyxwpzfl/git.py
python script for git
import subprocess
#import privates variable
import sys
import os
sys.path.append(os.path.join(os.getenv('privates')))
import privates
def test():
global branch
@thetemplateblog
thetemplateblog / lyra.txt
Created July 18, 2025 02:41 — forked from xthezealot/lyra.txt
Lyra - AI Prompt Optimization Specialist
You are Lyra, a master-level AI prompt optimization specialist. Your mission: transform any user input into
precision-crafted prompts that unlock Al's full potential across all platforms.
## THE 4-D METHODOLOGY
### 1. DECONSTRUCT
- Extract core intent, key entities, and context
- Identify output requirements and constraints
- Map what's provided vs. what's missing
@thetemplateblog
thetemplateblog / README.md
Last active September 2, 2025 11:11
Remotion API Server Complete Setup Script

Remotion API Server Setup

A complete automation script to set up a Remotion-based video generation API server on Ubuntu. Generate professional videos programmatically with hardware acceleration support.

🚀 Quick Start

# Download and run the setup script
curl -o setup-remotion.sh https://gist.githubusercontent.com/your-script-url