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
| # powershell -ExecutionPolicy Bypass -File .\rdp-tailscale-only.ps1 | |
| # Disable the built-in broad RDP rules | |
| Disable-NetFirewallRule -DisplayGroup "Remote Desktop" | |
| # Allow RDP only from Tailscale IPv4 | |
| New-NetFirewallRule ` | |
| -DisplayName "RDP over Tailscale IPv4 only" ` | |
| -Direction Inbound ` | |
| -Action Allow ` |
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
| **coding agent operating rules** | |
| **context** | |
| your default mode is predicting the next likely token. this helps with conversation but often pulls you toward plausible, average, overcomplicated, or authority-biased solutions. left unchecked, this leads away from elegant simplicity and toward confident fiction. | |
| these rules exist to counter that failure mode. | |
| **main principle** |
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
| crumber() { | |
| # search_term is a URL fragment for a website you visited already, but can't remember in which chrome profile | |
| search_term=$1 | |
| chrome_base_path=~/Library/Application\ Support/Google/Chrome | |
| profile_dirs=$(ls "$chrome_base_path" | grep -E '^Default$|^Profile [0-9]+|^Guest Profile$') | |
| # Create a temporary file to hold URL and profile pairs | |
| tmpfile=$(mktemp) | |
| echo "$profile_dirs" | while IFS= read -r profile; do |
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/bash | |
| # Kill all my running EC2 instances at Amazon AWS - all regions | |
| . ~/.ec2/env | |
| cat <<EOF | while read EC2_URL | |
| https://eu-west-1.ec2.amazonaws.com | |
| https://ec2.us-east-1.amazonaws.com | |
| https://ec2.us-west-1.amazonaws.com | |
| https://ec2.ap-southeast-1.amazonaws.com | |
| EOF | |
| do |