Skip to content

Instantly share code, notes, and snippets.

Haiyu aben

Block or report user

Report or block aben

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .bashrc
alias ls="ls -G"
alias ll="ls -alh"
#alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
# For, Open each file in a new tab
alias v="mvim --remote-tab-silent"
alias myhost="sudo v /etc/hosts"
alias bashrc="v ~/.bash_profile"
alias cleanhost="sudo dscacheutil -flushcache"
alias py="python"
alias rb="ruby"
aben / Solarized_Rock.yaml
Last active Jul 30, 2017
Solarized scheme for squirrel
View Solarized_Rock.yaml
name: "曬經石/Solarized Rock"
author: "Aben <>, based on Ethan Schoonover's Solarized color scheme"
corner_radius: 7 #圓角
border_height: 0
border_width: 0
back_color: 0x362b00 #背景色
candidate_text_color: 0x969483 #候選字顏色
hilited_candidate_back_color: 0x8236d3 #高亮候選字背景色
hilited_candidate_text_color: 0xffffff #高亮候選字顏色
aben / .gitconfig
Last active Oct 6, 2015
my git alias
View .gitconfig
st = status
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached
dl = diff --name-only
lg = log --color --graph --pretty=format:'%C(yellow)%h%Creset -%Cred%d%Creset %s %C(bold blue)(%cn %cr)%Creset'
ll = log --color --pretty=format:'%C(yellow)%h%Creset -%Cred%d%Creset %s %C(bold blue)(%cn %cr)%Creset' --no-merges --stat
View sleep.js
//e.g. http://domain:8888/?sleep=5000
var http = require("http");
var url = require("url");
var query = require("querystring");
http.createServer(function(request, response) {
var str = url.parse(request.url).query;
var obj = query.parse(str);
View console.js
var _e = function(){};
if( typeof console != 'undefined' ){
_e = function(){
var date = new Date()
,now = [ date.toLocaleTimeString(), '.', date.getMilliseconds(), ' -> ' ].join('');
if( arguments.length === 1 && typeof arguments[0] !== 'object' ){
console.log( '%c%d%o', 'font-style:italic;font-size:10px;', now, arguments[0] );
}else{ '%c%d%o', 'font-style:italic;font-size:10px;', now, arguments );
aben / .vimrc
Last active Oct 2, 2015
my vimrc
View .vimrc
se nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
You can’t perform that action at this time.