Skip to content

Instantly share code, notes, and snippets.

@huqi
huqi / basecommand_emacs
Created October 27, 2017 09:22 — 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
@huqi
huqi / Emacs.md
Last active September 27, 2017 03:05

Setting up Emacs daemon on OS X

Tired of waiting for emacs to start on OS X? This step by step guide will teach you how to install the latest version of emacs and configure it to start in the background (daemon mode) and use emacsclient as your main editor.

Install Homebrew

First you'll need to install the [Homebrew package manager][brew] if yo haven't already. It is amazing.

@huqi
huqi / mac_gnu_grep
Created May 6, 2015 09:00
Mac gnu grep
# Enable dupe and install
brew tap homebrew/dupes
brew install homebrew/dupes/grep
# Install the perl compatible regular expression library
brew install pcre
@huqi
huqi / start-conky.sh
Last active August 29, 2015 14:20
start conky
#!/bin/sh
sleep 20
conky -d -c ~/.conkyrc
exit
@huqi
huqi / a_sync.sh
Last active August 29, 2015 14:20
sync c tags
#!/bin/sh
# generate tag file for cscope
echo "Generating cscope tag file..."
find $PWD -name "*.h" -o -name "*.c" -o -name "*.cpp" -o -name "*.res" -o -name "*.mak" > cscope.files
cscope -bkq -i cscope.files
# generate tag file for ctags
echo "Generating ctags tag file..."
ctags -R
@huqi
huqi / git_toturial
Last active November 21, 2018 03:16 — forked from guweigang/git_toturial
git toturial
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库
@huqi
huqi / trial.key
Created April 11, 2015 09:01
Beyond Compare 4 license for Mac
Beyond Compare 4
Licensed to: ASIO Allsoftinone
Quantity: 1 user
Serial number: 1822-9597
License type: Pro Edition for Windows
--- BEGIN LICENSE KEY ---
H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t