03 2012 档案
fonts.conf
摘要:~/.fonts.conf<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"><fontconfig> <match target="pattern"> <test qual="any" name="family"> <string>sans-serif</string> </test> <edit name="fa 阅读全文
posted @ 2012-03-31 16:49 lbsx 阅读(640) 评论(0) 推荐(0)
what port is used by which program
摘要:what port is used by which program$ lsof -iTCP:80list files opened by specific process$ lsof -p 351Linux / UNIX: List Open Files for Process 阅读全文
posted @ 2012-03-26 19:36 lbsx 阅读(202) 评论(0) 推荐(0)
notes about emacs regexp backslashes and parens
摘要:1. You need to double-escape ("\\") regexp metacharacters in strings in elisp code, but you single-escape them when entering regexps at the minibuffer.Double Backslash in Lisp Code:In a lisp regex function that takes a regex string (e.g. search-forward-regexp), you will need to use double 阅读全文
posted @ 2012-03-05 14:03 lbsx 阅读(209) 评论(0) 推荐(0)
filter buffers for Ido
摘要:Emacs: Filtered Buffer Switching(defvar my-always-show-regexps '("\\*\\(scratch\\|info\\|grep\\|compilation\\)\\*") "*Buffer regexps to always show when buffer switching.")(defvar my-never-show-regexps '("^\\s-" "^\\*" "TAGS$") "*Buffer 阅读全文
posted @ 2012-03-05 13:59 lbsx 阅读(235) 评论(0) 推荐(0)
show git current branch and dirty state indicator
摘要:.bashrc:if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]\$ 'else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1 " (%s)")\$ 'fiexport G 阅读全文
posted @ 2012-03-02 18:01 lbsx 阅读(460) 评论(0) 推荐(0)