This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
go mod init example.com/signer | |
go mod tidy | |
go test ./... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Print to and return addresses on envelopes from a toml input file. | |
--- | |
Requires: | |
- Python 3.11.x or later; tomllib support | |
- Pycairo - https://pypi.org/project/pycairo/ | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Render a markdown file into HTML via Flask app on localhost. | |
Includes live-reload using HTTP long polling and a bit of vanilla JS. | |
Made pretty with https://picocss.com | |
[1]$ pip install Flask Flask-Caching Flask-Markdown requests | |
[1]$ flask run | |
[2]$ open http://localhost:5000/README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
assume_role_sh() { | |
local AWSCLI_PYTHON | |
# Grab the shebang from the awscli | |
AWSCLI_PYTHON="$(sed -n '/^#!/s/^#!\([^ ]*\).*$/\1/p' "$(command -v aws)")" | |
"${AWSCLI_PYTHON:-command python3}" - "${@}" << EOD | |
"""AssumeRole for Shell""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""AWS: Safely delete all default VPCs in all active regions.""" | |
import logging | |
import sys | |
from functools import partial | |
from itertools import chain | |
from typing import Callable | |
from boto3.session import Session |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Delete an IAM User from an AWS Account. | |
Copyright (c) 2019 TKalus <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Export an entire Folder in Apple Notes to single TextEdit document. | |
-- Strips HTML Tags. | |
-- Pairs nicely with command line tooling (I.E. met my basic need) | |
tell application "TextEdit" | |
activate | |
make new document | |
end tell | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "TextEdit" | |
activate | |
make new document | |
end tell | |
tell application "Notes" | |
if folder "Stuff" exists then | |
set output to "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
NewerOlder