Skip to content

Instantly share code, notes, and snippets.


Yuan He lenage

Block or report user

Report or block lenage

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lenage / .vimrc
Last active Aug 29, 2015
A simple vimrc config
View .vimrc
syntax on
set encoding=utf8
set tabstop=4
set softtabstop=4
set textwidth=80
set expandtab
set number
set ruler
View bom.ass
[Script Info]
; Script generated by Aegisub 3.2.2
Title: Default Aegisub file
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
YCbCr Matrix: None
[Aegisub Project Garbage]
lenage / convert_favicon
Created Apr 1, 2015
Image magick create an favicon icon
View convert_favicon
convert flux_logo.svg -bordercolor white -border 0 \ git:master
\( -clone 0 -resize 16x16 \) \
\( -clone 0 -resize 32x32 \) \
\( -clone 0 -resize 48x48 \) \
\( -clone 0 -resize 64x64 \) \
-delete 0 -alpha off -colors 256 favicon.ico
View main.css
/* main.css */
body { display: none}

Keybase proof

I hereby claim:

  • I am lenage on github.
  • I am lenage ( on keybase.
  • I have a public key whose fingerprint is 62BE B389 A73F 0C95 63DF 3DDC 5B18 B824 66D3 6984

To claim this, I am signing this object:

lenage / csv_to_yaml.rb
Created Jul 8, 2013
Convert csv file to YAML
View csv_to_yaml.rb
require 'csv'
class String
def unquote
self.gsub(/^"|"$/, '')
# first line contains the field names
#line = gets
lenage /
Created Mar 27, 2013
Update DNSPod recored use Python
#!/usr/bin/env python2
#-*- coding:utf-8 -*-
import httplib, urllib
import socket
import time
import sys
#replace with your sub_domain and your record_id, which can get it by API Record.List
View myapp.conf
upstream myapp {
server {
listen 80;
location @myapp {
proxy_pass http://myapp;
lenage /
Last active Mar 25, 2016
How to set up your own private Git server on Linux


sudo apt-get update
sudo apt-get install git-core


lenage /
Created Nov 30, 2012 — forked from lintianzhi/
search availible domain name
import urllib
import urllib2
import re
import threading
import Queue
url = ''
You can’t perform that action at this time.