Skip to content

Instantly share code, notes, and snippets.

I wrote like 10 lines of code a week then I sleep.


I wrote like 10 lines of code a week then I sleep.
View GitHub Profile
laixintao / starcounter.js
Created Feb 11, 2018 — forked from yyx990803/starcounter.js
Count your total stars!
View starcounter.js
var https = require('https'),
user = process.argv[2],
opts = parseOpts(process.argv.slice(3))
request('/users/' + user, function (res) {
if (!res.public_repos) {
var pages = Math.ceil(res.public_repos / 100),
View zsh-color-names.zsh
#!/bin/zsh -f
autoload -U colors
print "
ZSH Color definitions:
\e[1mprompt simple\e[0m [\e[1m<\e[0mcolor1\e[1m>\e[0m[\e[1m<\e[0mcolor2\e[1m>\e[0m[\e[1m<\e[0mcolor3\e[1m>\e[0m[\e[1m<\e[0mstring1\e[1m>\e[0m[\e[1m<\e[0mstring2\e[1m>\e[0m[\e[1m<\e[0mstring3\e[1m>\e[0m]]]]]]
Supply up to three \e[1mcolors\e[0m and then up to three alternate static \e[1mprompt strings \e[0m.
\e[1mcolor1\e[0m is the local prompt color: \e[1mzsh-% \e[0m color1=default
\e[1mcolor2\e[0m is the remote prompt color: \e[31m$HOST:r:r-%\e[0m color2=red
\e[1mcolor3\e[0m is the screensession prompt color: \e[1mScreen-% \e[0m color3=default
laixintao / .gitconfig
Created Jun 29, 2017 — forked from berngp/.gitconfig
View .gitconfig
name = Your Name
email =
ui = true
excludesfile = ~/.gitignore_global
editor = /usr/local/bin/mvim -f
laixintao / tmux.conf.bak
Created Jun 21, 2017 — forked from Jiezhi/tmux.conf.bak
tmux configure file from 《tmux:Productive Mouse-Free Development》
View tmux.conf.bak
# Setting the prefix from C-b to C-a
set -g prefix C-a
# Free the original Ctrl-b prefix keybinding
unbind C-b
#setting the delay between prefix and command
set -sg escape-time 1
# Ensure that we can send Ctrl-A to other apps
View tmux-cheatsheet.markdown

Tmux 快捷键 & 速查表


tmux [new -s 会话名 -n 窗口名]


tmux at [-t 会话名]