Skip to content

Instantly share code, notes, and snippets.

View lenage's full-sized avatar
:octocat:
Focusing

Yuan He lenage

:octocat:
Focusing
View GitHub Profile
@lenage
lenage / jeykll-hight.el
Created November 30, 2012 06:58
jeykll highlight lisp code
{% highlight cl linenos %}
(require 'package)
(setq package-archives
'(("original" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
(package-initialize)
{% endhighlight %}
@lenage
lenage / search_domain.py
Created November 30, 2012 16:42 — forked from lintianzhi/search_domain.py
search availible domain name
#!/usr/bin/python
#coding=utf-8
import urllib
import urllib2
import re
import threading
import Queue
url = 'https://who.is/whois/name_search/'
@lenage
lenage / setup-git-server.md
Last active March 25, 2016 12:00
How to set up your own private Git server on Linux

1.安装Git

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

2.设置git用户

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 / dnspod.py
Created March 27, 2013 15:56
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
@lenage
lenage / csv_to_yaml.rb
Created July 8, 2013 01:42
Convert csv file to YAML
require 'csv'
class String
def unquote
self.gsub(/^"|"$/, '')
end
end
# first line contains the field names
#line = gets

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 / main.css
Last active August 29, 2015 13:59 — forked from athom/qortex.com.js
/* main.css */
body { display: none}
@lenage
lenage / convert_favicon
Created April 1, 2015 14:31
Image magick create an favicon icon
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
[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]