Skip to content

Instantly share code, notes, and snippets.

View terrywang's full-sized avatar

Terry Wang terrywang

View GitHub Profile
@terrywang
terrywang / config
Last active February 1, 2022 09:03
~/.ssh/config behind firewall (ssh via HTTP proxy) and faster session creation by reusing already established connection
# 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
@terrywang
terrywang / tunnel.sh
Last active February 28, 2016 13:33
SSH Tunnel
#!/bin/bash
# --------------------------------------
#
# Title: SSH Tunnel / Socks5 Proxy Script
# Author: Terry Wang
# Email: i (at) terry (dot) im
# Homepage: http://terry.im
# File: tunnel.sh
# Created: 1 Oct, 2012
#
@terrywang
terrywang / runkexec
Created October 28, 2012 21:27
kexec
#!/bin/bash
#
# runkexec
#
### BEGIN INIT INFO
# Provides: runkexec
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Enable or disable fast system rebooting
@terrywang
terrywang / .conkyrc
Last active October 12, 2015 02:18
Terry's conky config on Dell Latitude E6410 & Optiplex 9020
# Terry's conky config
# .conkyrc since Ubuntu 8.04 LTS
background yes
use_xft yes
xftfont DejaVu Sans:size=9
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type normal
@terrywang
terrywang / .tmux.conf
Last active January 26, 2022 12:26
~/.tmux.conf
# /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