Skip to content

Instantly share code, notes, and snippets.

:octocat:
Focusing

Yuan He lenage

:octocat:
Focusing
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
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
; http://www.aegisub.org/
Title: Default Aegisub file
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
YCbCr Matrix: None
[Aegisub Project Garbage]
@lenage
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}
View keybase.md

Keybase proof

I hereby claim:

  • I am lenage on github.
  • I am lenage (https://keybase.io/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
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(/^"|"$/, '')
end
end
# first line contains the field names
#line = gets
@lenage
lenage / dnspod.py
Created Mar 27, 2013
Update DNSPod recored use Python
View dnspod.py
#!/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 127.0.0.1:5000;
}
server {
listen 80;
server_name llbire.com www.llbire.com;
location @myapp {
proxy_pass http://myapp;
@lenage
lenage / setup-git-server.md
Last active Mar 25, 2016
How to set up your own private Git server on Linux
View setup-git-server.md

1.安装Git

ssh myserver.com
sudo apt-get update
sudo apt-get install git-core

2.设置git用户

@lenage
lenage / search_domain.py
Created Nov 30, 2012 — forked from lintianzhi/search_domain.py
search availible domain name
View search_domain.py
#!/usr/bin/python
#coding=utf-8
import urllib
import urllib2
import re
import threading
import Queue
url = 'https://who.is/whois/name_search/'
You can’t perform that action at this time.