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
@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'/'")
#!/bin/sh
XINPUT="xinput"
TP_KEYWORD="Touchpad"
TP_CMD=
TP_ID=`$XINPUT | grep $TP_KEYWORD | awk -F '=' '{ print $2; }' | awk '{ print $1; }'`
if [ -z "$TP_ID" ]; then
echo "Unable to find touchpad" 1>&2
exit 1
"-----------------------------------------------------------
" 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)),)