I hereby claim:
- I am terrywang on github.
- I am terrywang (https://keybase.io/terrywang) on keybase.
- I have a public key whose fingerprint is CB3E C2DC AD18 0C78 731E C034 00D8 3189 AB6C 9CA3
To claim this, I am signing this object:
| [user] | |
| name = Terry Wang | |
| email = [email protected] | |
| # signingkey = 3AA5C34371567BD2 | |
| [github] | |
| user = terrywang | |
| [includeIf "gitdir:~/work/"] | |
| path = ~/work/.gitconfig.local |
| 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; | |
| } | |
| } |
| 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; |
| 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 |
| # 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 |
| BEGIN MESSAGE. | |
| kb9gwzCN54guTDZ nRzTyPdnlMNA3qX NsJya3Xx0fUvqrX Vd90YV82h6Y7GJF | |
| sumxMqfA9HmjTij JlQ2T8y8HjaTCKq 6Xr2MZHgg6Sdxkm kC9iG2QUd2xL5A8 | |
| Xos3qZmbvQqWVLB WyGeiAPgJWM8t0K LkygSwAlkXDHrTJ QbGfAXkSywRXkTZ | |
| CNpuUkfztYMa2Jo hZIjTbpdxMb4cIj 3E2iO29HFxl. | |
| END MESSAGE. |
I hereby claim:
To claim this, I am signing this object:
| # User ssh configuration file ~/.ssh/config | |
| # Gist https://gist.github.com/terrywang/3997931 | |
| # man ssh_config for more information | |
| # Inspired by the blog post below to fight the NSA | |
| # https://stribika.github.io/2015/01/04/secure-secure-shell.html | |
| # Github needs diffie-hellman-group-exchange-sha1 some of the time but not always | |
| # Host github.com | |
| # KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1 |
| for (( i=1; i<=76; i++ )); do file=$(curl -s http://media.vimcasts.org/videos/$i/ | grep m4v | awk '{ print $5 }' | cut -d'>' -f2 | cut -d'<' -f1); url=http://media.vimcasts.org/videos/$i/$file; echo $url; wget -c -S -O "$c-$file" "$url"; done |
| # User and group used by worker processes | |
| # ubuntu | |
| # user www-data; | |
| # fedora | |
| user nginx; | |
| # Ideally # of worker processes = # of CPUs or cores | |
| # Set to auto to autodetect | |
| # max_clients = worker_processes * worker_connections | |
| worker_processes auto; |