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:
I hereby claim:
To claim this, I am signing this object:
dscl . -read /Users/username JPEGPhoto | tail -1 | xxd -r -p > /path/to/accountImage.jpg |
#!/bin/bash | |
# -------------------------------------- | |
# | |
# Title: Oracle JDK Download Script | |
# Author: Terry Wang | |
# Email: i (at) terry (dot) im | |
# Homepage: http://terry.im | |
# File: jdk.sh | |
# Created: 28 August, 2013 | |
# |
site :opscode | |
cookbook 'nginx', '~> 2.4.4' |
BEGIN MESSAGE. | |
kb9gwzCN54guTDZ nRzTyPdnlMNA3qX NsJya3Xx0fUvqrX Vd90YV82h6Y7GJF | |
sumxMqfA9HmjTij JlQ2T8y8HjaTCKq 6Xr2MZHgg6Sdxkm kC9iG2QUd2xL5A8 | |
Xos3qZmbvQqWVLB WyGeiAPgJWM8t0K LkygSwAlkXDHrTJ QbGfAXkSywRXkTZ | |
CNpuUkfztYMa2Jo hZIjTbpdxMb4cIj 3E2iO29HFxl. | |
END MESSAGE. |
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 |
# /home/terrywang/.tmux.conf | |
# Based on tmux book written by Brian P. Hogan | |
# c-a o to switch to another panel | |
# c-d to close shell | |
# c-a ! to close panel | |
# c-a w to list windows | |
# c-a " split pane horizontally | |
# c-a % split pane vertically | |
# Setting the prefix from C-b to C-a |
# 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 | |
# Outside of the firewall, with HTTPS proxy | |
# Package connect-proxy is required. | |
# Amazon EC2 |
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 |
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; |