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 / 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 / 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/