Skip to content

Instantly share code, notes, and snippets.

View zeph1e's full-sized avatar

Yunsik Jang zeph1e

  • LG Electronics, Inc.
  • Seoul, Korea
View GitHub Profile
' emx.vbs : starts a emacsclient with no command prompt
Dim emxCmd
Set WshShell = Createobject("WScript.Shell") Set Args =
WScript.Arguments emxCmd = """emacsclient"" ""-cqa"" ""emacs""" For
index = 0 To (Args.Count - 1) emxCmd = emxCmd & Chr(32) & Chr(34) &
Args(index) & Chr(34) Next WshShell.Run emxCmd, 0 Set WshShell =
Nothing
@zeph1e
zeph1e / autosubdir.pro
Created June 10, 2015 16:00
qmake: auto subdir
# automatically add existing sub directories to SUBDIRS
TEMPLATE = subdirs
SUBDIRS = $$system("ls -d */ | cut -f1 -d'/'")
"-----------------------------------------------------------
" GENERAL
"----------------------------------------------------------
" history
set history=700
" enable filetype plugins
filetype plugin on
filetype indent on
@zeph1e
zeph1e / smaps_parse.cpp
Created September 11, 2014 01:45
parse smaps & collect memory usage by owner. It can dump all result or make a spread sheet entry for specific category (like PSS)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <regex.h>
#include <errno.h>
#include <vector>
#include <unistd.h>
#include <unordered_map>
#define LINEBUFMAX 1024
@zeph1e
zeph1e / Makefile
Created February 6, 2014 08:16
Makefile Template for small project
# Makefile template for small project
# Yunsik Jang <doomsday@kldp.org>
SYSROOT=/
# If you use custom toolchain specify it
TOOLCHAIN_PATH :=
TOOLCHAIN_PREFIX :=
ifneq ($(strip $(TOOLCHAIN_PATH)),)