Skip to content

Instantly share code, notes, and snippets.

View RedCarrottt's full-sized avatar
😀

Gyeonghwan Hong RedCarrottt

😀
View GitHub Profile
anonymous
anonymous / patch.pmuirq
Created December 18, 2012 05:44
diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c
index ab243b8..cb1d8e8 100644
--- a/arch/arm/kernel/perf_event.c
+++ b/arch/arm/kernel/perf_event.c
@@ -20,7 +20,7 @@
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
-
+#include <linux/irq.h>
@mxwell
mxwell / c.vim
Created December 9, 2012 19:17
Basic config for Linux Kernel C Style
set noexpandtab " use tabs, not spaces
set tabstop=8 " tabstops of 8
set shiftwidth=8 " indents of 8
set textwidth=78 " screen in 80 columns wide, wrap at 78
set autoindent smartindent " turn on auto/smart indenting
set smarttab " make <tab> and <backspace> smarter
set backspace=eol,start,indent " allow backspacing over indent, eol, & start
filetype plugin indent on
@eendeego
eendeego / bindings-cheat-sheet.md
Created November 28, 2012 10:26
Node/V8 bindings cheat sheet
@bnoordhuis
bnoordhuis / gc.stp
Created November 15, 2012 14:36
systemtap script that prints aggregated node.js garbage collector statistics
#!/usr/bin/env stap
global samples
global all_samples
global timestamp
probe process("node").mark("gc__start")
{
timestamp = gettimeofday_us()
}
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""