Skip to content

Instantly share code, notes, and snippets.

@ErmisCat
ErmisCat / aws_regex_cheat_sheet
Created January 31, 2025 20:40 — forked from rams3sh/aws_regex_cheat_sheet
Common AWS Related Regex (AWS)
ARN Base Pattern :-
arn:<aws_parition>:<aws_service>:[<aws_region>]:<account_id>:<root | resource_type>:/<resource_name>[/<sub_resource_names>...]
i. <aws_partition>
Regex - (aws|aws-us-gov|aws-cn)
ii. <aws_service> - No fixed pattern
iii. <aws_region> - No fixed pattern
Most of the regions occur in combination of 2 letter followed by "-" followed by a combination of direction based word , followed by a "-" and then a digit.
@ErmisCat
ErmisCat / .zsh_functions.sh
Created February 25, 2025 03:45
zsh movie quotes
function moviequote() {
local response
response=$(curl -s "https://quoteapi.pythonanywhere.com/random")
local quote
quote=$(echo "$response" | jq -r '.Quotes[].quote')
echo "\"$quote\""
}
@ErmisCat
ErmisCat / Templater-Weekly-Note.md
Last active April 28, 2025 19:47
Obsidian Weekly Note Template
created tags aliases week year
<% tp.file.creation_date("YYYY-MM-DD HH:mm") %>
Weekly
<% tp.file.title %> Weekly Note
<% tp.date.now("YYYY-[W]ww", 0, tp.file.title, "[W]ww") %>
<% tp.date.now("YYYY", 0, tp.file.title, "[W]ww") %>

<%*