Skip to content

Instantly share code, notes, and snippets.

View yuankaiz's full-sized avatar

Yuankai Z yuankaiz

  • facebook
  • Seattle, WA
View GitHub Profile
@yuankaiz
yuankaiz / GUVPN.md
Last active January 9, 2021 05:38
Configure GU Cisco anyConnect VPN on Ubuntu 14.04

This gist shows steps for connecting to GU Cisco anyConnect VPN on Ubuntu 14.04

  • Install some packages:
    1. sudo apt-get install network-manager-vpnc
    2. sudo apt-get install network-manager-pptp
    3. sudo apt-get install network-manager-openvpn
    4. sudo apt-get install network-manager-openconnect-gnome
  • Then click Network -> VPN Connections -> Configure VPN...
  • When adding VPN connection, choose Connection Type "Cisco AnyConnect Compatible VPN (openconnect)"
  • Set gateway as guvpn.georgetown.edu
@yuankaiz
yuankaiz / tmux.md
Created September 10, 2017 03:49 — forked from Bekbolatov/tmux.md
Clean tmux cheat-sheet

Clean tmux cheat-sheet

By resources

sessions

list-sessions        ls         -- List sessions managed by server
new-session          new        -- Create a new session
@yuankaiz
yuankaiz / tmux.conf
Created July 27, 2017 18:02 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@yuankaiz
yuankaiz / .tmux.conf
Created July 23, 2017 02:10 — forked from jacoborus/.tmux.conf
tmux + vim configuration
# set Zsh as your default Tmux shell
set-option -g default-shell /bin/zsh
# UTF is great, let us use that
set -g utf8
set-window-option -g utf8 on
# Tmux should be pretty, we need 256 color for that
set -g default-terminal "screen-256color"
@yuankaiz
yuankaiz / .tmux.conf
Created March 28, 2017 02:23 — forked from jikkujose/.tmux.conf
Change prefix key in tmux to back-tick and still type back-ticks
unbind C-b
set-option -g prefix `
bind ` send-prefix
@yuankaiz
yuankaiz / quickstep.md
Last active December 26, 2016 14:29
Setup for new MacBook Pro 13
  • after installing MacTex, will need to add following to .bash_profile and source it
     export PATH=$PATH:/Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin
  • for iTerm 2 to display colors,
     export CLICOLOR=1
     export TERM=xterm-256color
  • download https://github.com/mbadolato/iTerm2-Color-Schemes
@yuankaiz
yuankaiz / README.md
Last active August 29, 2015 14:27 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/