Skip to content

Instantly share code, notes, and snippets.

View zlsun's full-sized avatar

zlsun zlsun

  • China
View GitHub Profile
@zlsun
zlsun / ignorelist
Last active August 29, 2015 14:27 — forked from rubo77/ignorelist
This ignorelist can be used to backup your home folder without useless folders and files, see http://askubuntu.com/a/545676/34298
#These directories may be excluded:
# contains mounted file systems
.gvfs
.local/share/gvfs-metadata
# contains the actual encrypted home directory
.Private
# session-specific
.dbus
.cache
@zlsun
zlsun / Translate indent to 4 space.sublime-macro
Created March 15, 2015 07:22
A helpful Sublime Text marco that translate indent to 4 space.
[
{
"args": {
"set_translate_tabs": true
},
"command": "unexpand_tabs"
},
{
"command": "set_setting",
"args": {
@zlsun
zlsun / Translate indent to 2 space.sublime-macro
Created March 15, 2015 07:20
A helpful Sublime Text marco that translate indent to 2 space.
[
{
"args": {
"set_translate_tabs": true
},
"command": "unexpand_tabs"
},
{
"command": "set_setting",
"args": {
@zlsun
zlsun / common.mk
Last active August 29, 2015 14:05
Common Makefile for simple C/C++ project
# project directories
# project_dir := $(shell pwd)
include_dir := ./include
src_dir := ./src
lib_dir := ./lib
build_dir := ./build
# targets
targets := main
targets := $(foreach t, $(targets), $(t).exe)