Skip to content

Instantly share code, notes, and snippets.

View liluo's full-sized avatar
:octocat:
Hey, there ~

liluo liluo

:octocat:
Hey, there ~
View GitHub Profile
@liluo
liluo / singleapp.py
Last active August 29, 2015 14:21 — forked from jinuljt/singleapp.py
import fcntl
import time
import sys
lock = file('singleapp.lock', "w+")
try:
fcntl.lockf(lock, fcntl.LOCK_EX|fcntl.LOCK_NB)
except Exception, e:
print "kill me before start again"
@liluo
liluo / graph.rb
Last active December 17, 2015 12:29 — forked from SaitoWu/graph.rb
require 'date'
author = "fenbi"
email = "[email protected]"
date = Date.new(2012, 7, 30)
l = %w{
. . . . . . .
. . o . . . .
. . o . . . .
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ]
@liluo
liluo / clients.md
Created February 14, 2013 11:53 — forked from defunkt/clients.md

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support

@liluo
liluo / ghfmd.rb
Created December 18, 2012 07:51 — forked from capnslipp/ghfmd.rb
test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test
#!/usr/bin/env ruby
# ^ 1.8.x or 1.9, folks!
require 'rubygems'
require File.expand_path('./md_izer', File.dirname(__FILE__))
render_options = {
:fenced_code_blocks => true,
:autolink => true,
:space_after_headers => true