This file contains 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
BEGIN MESSAGE. | |
kb9gwzCN54guTDZ nRzTyPdnlMNA3qX NsJya3Xx0fUvqrX Vd90YV82h6Y7GJF | |
sumxMqfA9HmjTij JlQ2T8y8HjaTCKq 6Xr2MZHgg6Sdxkm kC9iG2QUd2xL5A8 | |
Xos3qZmbvQqWVLB WyGeiAPgJWM8t0K LkygSwAlkXDHrTJ QbGfAXkSywRXkTZ | |
CNpuUkfztYMa2Jo hZIjTbpdxMb4cIj 3E2iO29HFxl. | |
END MESSAGE. |
This file contains 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
# backup HISTFILE | |
cp ~/.bash_history{,.bak} | |
# deduplicate - deprecated | |
nl ~/.bash_history.bak | sort -k2,2 -k1,1nr | uniq -f1 | sort -k1,1n | cut -f2 > ~/.bash_history | |
# dedupelicate | |
cp ~/.bash_history{,.bak-$(date -I)} | |
tac $HISTFILE | awk '!x[$0]++' | tac | sponge $HISTFILE |
This file contains 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
Host ssm-tatooine | |
ProxyCommand sh -c "aws ssm start-session --target <instance id> --region <region> --document-name AWS-StartPortForwardingSession --parameters '{\"portNumber\":[\"22\"],\"localPortNumber\":[\"22222\"]}'" | |
Host dynamic-forwarding | |
Hostname localhost | |
user terry | |
IdentityFile ~/.ssh/r2d2_ed25519 | |
Port 22222 | |
UserKnownHostsFile /dev/null | |
DynamicForward 1080 |
This file contains 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
server { | |
listen 80 default_server; | |
# listen [::]:80 default_server; | |
root /var/www/html; | |
server_name _; | |
autoindex off; | |
index pihole/index.php index.php index.html index.htm; | |
error_page 404 pihole/index.php; |
This file contains 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
server { | |
listen 80; | |
# listen [::]:80 default ipv6only=on; | |
server_name log.terry.im; | |
# redirect all HTTP requests to HTTPS with a 301 Moved Permanently response | |
location / { | |
return 301 https://$host$request_uri; | |
} | |
} |
OlderNewer