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
---- darwin
5885266840464780016
5891943075069952633
16834317912202361652
953572803117343050
16834310215620964175
16835115058132625402
16834309116109335964
16834320111225618074
953651967954574242
@lenage
lenage / ss-ignore.list
Created January 4, 2017 08:14
Shadowsock ignore list
1.0.1.0/24
1.0.2.0/23
1.0.8.0/21
1.0.32.0/19
1.1.0.0/24
1.1.2.0/23
1.1.4.0/22
1.1.8.0/24
1.1.9.0/24
1.1.10.0/23
@lenage
lenage / qiku360-debug.log
Last active July 16, 2016 04:17
qiku360 劫持 jd.com 分析
!10013 [11:35:07] ~ $ curl -vvvv -L http://misc.360buyimg.com/jdf/1.0.0/unit/??base/1.0.0/base.js,basePatch/1.0.0/basePatch.js
* Trying 114.80.62.1...
* Connected to misc.360buyimg.com (114.80.62.1) port 80 (#0)
> GET /jdf/1.0.0/unit/??base/1.0.0/base.js,basePatch/1.0.0/basePatch.js HTTP/1.1
> Host: misc.360buyimg.com
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 302 Found
< Connection: close
'use strict'
var jsonfile = require('jsonfile')
var replace = require('replace-in-file')
var fs = require('fs')
fs.readdir('dist', function(err, files) {
var htmlFiles = []
files.forEach(function(x) {
if (/\.html$/.test(x)) { htmlFiles.push('dist/' + x) }
})
@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用户

@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
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 / 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 / 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 / command_tips.md
Created November 10, 2012 05:34
command line fu & tips

Command line tips

1.list all keycode

    xmodmap -pke

2.rename当前目录和子目录下所有.html.erb.html