Skip to content

Instantly share code, notes, and snippets.

@fffx
fffx / Proc & Lambda
Last active April 12, 2017 03:32
rails & ruby
#difference between proc and
@fffx
fffx / fcitx.txt
Created April 12, 2017 04:03
fcitx
快速输入
确保在 ~/.config/fcitx/config 里把 SemiColonAction 修改为 QuickPhrase.
创建 ~/.config/fcitx/data/QuickPhrase.mb, 文件内容示范如下:
#第一个字符为“#”的行是注释
#格式:编码 符号
#数学符号
dianhua 123456789
youbian 123456
dizhi 中华人民共和国北京市长安街一号
@fffx
fffx / tools_list.org
Last active April 14, 2017 02:04
Things I really love

Terminal

  • tmux
    • tmuxinator
  • git
    • tig
    • diff-so-fancy
  • proxy
    • proxychains(proxychains-ng)
    • privoxy
    • tsocks
@fffx
fffx / how.md
Last active April 24, 2017 01:20
auto start emacs server and start emacs gui from emacsclient

platform

ubuntu 16.04 emacs24

Modify emacs gui configure file

#/usr/share/applications/emacs24.desktop
@fffx
fffx / gist:0b4e946decc45ff594b25865fa701855
Created April 26, 2017 11:44
restore ubuntu session from suspend
ctrl-alt-f7
@fffx
fffx / gist:502d7af221bed052bb5a058933553e2e
Last active April 28, 2017 03:11
zeus c , Ctrl-D cause terminal mess up
fix
```shell
$ stty sane
```
@fffx
fffx / basecommand_emacs
Created May 15, 2017 07:03 — forked from shijinkui/basecommand_emacs
Emacs常用基本快捷键
/************************************/
基本命令
C-x C-f 打开/新建文件
C-x C-s 保存当前缓冲区
C-x C-w 当前缓冲区另存为
C-x C-v 关闭当前Buffer并打开新文件
C-x i 光标处插入文件
C-x b 切换Buffer
C-x C-b 显示Buffer列表
C-x k 关闭当前Buffer
@fffx
fffx / spacemacs-cheshe.md
Created May 22, 2017 09:39 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers
@fffx
fffx / zshrc
Created May 23, 2017 01:36
tmux auto start sesion
if [[ -z "$TMUX" ]]
then
ID="`tmux ls | grep -vm1 attached | cut -d: -f1`"
if [[ -z "$ID" ]]
then
tmux new-session
else
tmux attach-session -t "$ID"
fi
fi
@fffx
fffx / org-syntax-cheatsheet.org
Created May 24, 2017 02:52 — forked from wdkrnls/org-syntax-cheatsheet.org
Org-mode Syntax Cheat sheet

Markup Cheat sheet for Org-mode

Heading 1

Heading 2: Set a deadline and a schedule

[66%] Heading 3: a list with checkboxes

  1. [X] task 1
  2. [X] task 2
  3. [ ] task 3