This is an OPML version based on the HN Popularity Contest results for 2025, for importing into RSS feed readers.
It's now been updated for my liking and exported from FeedFlow.
This is an OPML version based on the HN Popularity Contest results for 2025, for importing into RSS feed readers.
It's now been updated for my liking and exported from FeedFlow.
| [ | |
| { | |
| "key": "ctrl+k `", | |
| "args": { | |
| "commands": [ | |
| "workbench.action.toggleMaximizedPanel", | |
| "workbench.action.terminal.focus" | |
| ] | |
| }, | |
| "command": "runCommands" |
| import re | |
| from urllib.request import urlopen | |
| def get_ip(): | |
| d = str(urlopen("http://checkip.dyndns.com/").read()) | |
| re_srch = re.compile(r"Address: (\d+\.\d+\.\d+\.\d+)").search(d) | |
| if re_srch: | |
| return re_srch.group(1) |
| from typing import TypedDict, Union | |
| # AWS Lambda Event Types | |
| class ApiGatewayEvent(TypedDict): | |
| requestContext: dict[str, str] | |
| queryStringParameters: Union[dict[str, str], None] | |
| body: str |
| #!/usr/bin/env bash | |
| LOG_GROUP_NAME=${1:?log group name is not set} | |
| echo Getting stream names... | |
| LOG_STREAMS=$( | |
| aws logs describe-log-streams \ | |
| --log-group-name ${LOG_GROUP_NAME} \ | |
| --query 'logStreams[*].logStreamName' \ | |
| --output table | |
I hereby claim:
To claim this, I am signing this object:
| """ | |
| Deletes old EC2 Snapshots created from the ConsistentSnapshot AWS RunCommand. | |
| """ | |
| import re | |
| from datetime import datetime | |
| from collections import defaultdict | |
| from operator import itemgetter | |
| import boto3 |
| sts-decode() { | |
| aws sts decode-authorization-message --encoded-message "$1" | jq '.DecodedMessage | fromjson' | |
| } |
| # Function to count lines of code in a passed file type | |
| # use git ls-files to ignore any of the same file type passed in that we don't care about | |
| count() { | |
| git ls-files "*.$1" "**/*.$1" | xargs grep -H -c '[^[:space:]]' | sort -nr -t":" -k2 | less | |
| } |