Skip to content

Instantly share code, notes, and snippets.

View lidaobing's full-sized avatar
🦍
Mammal - verified by Github

LI Daobing lidaobing

🦍
Mammal - verified by Github
View GitHub Profile
---
layout: post
title: 机房网段更改后,如何避免在机房逐台更改IP?
lastmod: 2012-06-01
---
some text
---
layout: nil
---
<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>
{% for post in site.posts %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
{% if post.lastmod %}
<lastmod>{{ post.lastmod | date_to_xmlschema }}</lastmod>
jQuery(function($) {
$("[data-role]").each(function() {
var $this = $(this);
var klass = $this.data("role");
if($this[klass]) {
$this[klass]($this.data());
}
});
});
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/sdl_net/1.2.7 --disable-sdltest
## --------- ##
## Platform. ##
$ gem install -d --verbose launchy
GET http://ruby.taobao.org/latest_specs.4.8.gz
200 OK
GET http://ruby.taobao.org/specs.4.8.gz
200 OK
GET http://ruby.taobao.org/quick/Marshal.4.8/addressable-2.3.2.gemspec.rz
404 Not Found
Error fetching remote data: bad response Not Found 404 (http://ruby.taobao.org/quick/Marshal.4.8/addressable-2.3.2.gemspec.rz)
Falling back to local-only install
ERROR: While executing gem ... (Gem::DependencyError)
@lidaobing
lidaobing / gist:3607792
Created September 3, 2012 08:07
Github mac clinet open too many files
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
GitHub 57184 ldb cwd DIR 14,4 1156 2 /
GitHub 57184 ldb txt REG 14,4 3160224 23992129 /Applications/GitHub.app/Contents/MacOS/GitHub
GitHub 57184 ldb txt REG 14,4 340196 23991914 /Applications/GitHub.app/Contents/Frameworks/ReactiveCocoa.framework/Versions/A/ReactiveCocoa
GitHub 57184 ldb txt REG 14,4 928636 23991862 /Applications/GitHub.app/Contents/Frameworks/ObjectiveGit.framework/Versions/A/ObjectiveGit
GitHub 57184 ldb txt REG 14,4 194712 23992048 /Applications/GitHub.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle
GitHub 57184 ldb txt REG 14,4 107584 23991756 /Applications/GitHub.app/Contents/Frameworks/FeedbackReporter.framework/Versions/A/FeedbackReporter
GitHub 57184 ldb txt REG 14,4 845784 23992125 /Applications/GitHub.app/Contents/
$ curl -I http://twitter.github.com/bootstrap/base-css.html#forms
curl: (56) Recv failure: Connection reset by peer
$ tsocks curl -I http://twitter.github.com/bootstrap/base-css.html#forms
HTTP/1.1 200 OK
Server: GitHub.com
Date: Fri, 18 Jan 2013 07:18:29 GMT
Content-Type: text/html
Content-Length: 94372
Last-Modified: Sat, 22 Dec 2012 03:04:10 GMT
Connection: keep-alive
  1. wind.js 176K, 压缩后 75K, 太大,
  2. 我们的痛点是 ajax/animation 触发的异步, 而不是需要在显示动画时暂停20ms, 你的例子上来就偏了
  3. 封装太难看
  4. 文档没有英文 (暗示缺少足够的同行评审)
  5. 文档首页有 404 链接
import unittest
class Test1(unittest.TestCase):
def setUp(self):
print 'Test1::SetUp'
def tearDown(self):
print 'Test1::tearDown'
class Test2(Test1):
import unittest
class AbstractFooTest(unittest.TestCase):
def setUp(self):
print 'Test1::SetUp'
def tearDown(self):
print 'Test1::tearDown'