Skip to content

Instantly share code, notes, and snippets.

View if1live's full-sized avatar
💭
I may be slow to respond.

byunghoo.yu if1live

💭
I may be slow to respond.
View GitHub Profile
@mitsutaka
mitsutaka / aerofs.linux
Created July 7, 2013 07:33
Aerofs init script for linux
#! /bin/sh
USER=mitz
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Aerofs CLI Client"
NAME=aerofs
START_DAEMON="/usr/bin/aerofs-cli"
STOP_DAEMON="/usr/bin/aerofs-sh shutdown"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
@emil10001
emil10001 / xfce_touchpad_settings
Created April 27, 2013 22:47
The accidental clicks while in crouton (chrooted Ubuntu) on my Pixel are kind of annoying. The touchpad is super sensitive, resulting in a lot of extra clicks on stuff when I'm typing. In XFCE, there's a pretty easy way to deal with this. Simply go to Settings -> Mouse -> Touchpad and un-check 'Tap touchpad to Click'. Optionally, also 'Disable t…
Settings -> Mouse -> Touchpad and un-check 'Tap touchpad to Click'
# Optionally, also
Settings -> Mouse -> Touchpad and check 'Disable touchpad while typing'
@nebiros
nebiros / Gemfile
Created May 23, 2012 15:58
rails + unicorn + rbenv + init.d daemon
group :production do
gem "unicorn"
end
@yagihiro
yagihiro / sample.c
Last active August 29, 2022 23:18
workqueue sample on linux kernel
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/workqueue.h>
static void mykmod_work_handler(struct work_struct *w);
static struct workqueue_struct *wq = 0;
static DECLARE_DELAYED_WORK(mykmod_work, mykmod_work_handler);
static unsigned long onesec;