A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
// ==UserScript== | |
// @name Direct Links in Google Search | |
// @namespace https://github.com/astanin | |
// @description Remove indirections from Google search results on all TLDs. | |
// @include https://www.google.tld/*output=search* | |
// @include http://www.google.tld/*output=search* | |
// @include https://www.google.tld/search* | |
// @include http://www.google.tld/search* | |
// @include https://www.google.tld/#* | |
// @include http://www.google.tld/#* |
#!/bin/sh | |
# Author: RA <[email protected]> | |
USAGE(){ | |
echo "Usage:fetchsub [eng] file" | |
} | |
[ $# -eq 0 -o "$1" = '--help' ] && USAGE && exit 0 | |
ERROR(){ |
// vim: set et sw=2 ts=2 sts=2 ff=unix fenc=utf8: | |
// Author: Binux<[email protected]> | |
// http://binux.me | |
// Created on 2013-01-21 20:18:42 | |
jQuery.ajax({ | |
url: 'http://pyproxy.duapp.com/http://httpbin.duapp.com/cookies/set?userid=21', | |
cache: true, | |
dataType: 'script', | |
success: function() { |
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./* | \
sed 's/NS_AVAILABLE_IOS(.*)//g' | \
sed 's/NS_DEPRECATED_IOS(.*)//g' | \
sed 's/API_AVAILABLE(.*)//g' | \
sed 's/API_UNAVAILABLE(.*)//g' | \
sed 's/UI_APPEARANCE_SELECTOR//g' | \
app.set('partials', require('./lib/partials')); |
//viewDidload | |
if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) { | |
// iOS 7 | |
[self prefersStatusBarHidden]; | |
[self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)]; | |
} else { | |
// iOS 6 | |
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide]; | |
} |
The trick? pass the file descriptor from a parent process and have the server.listen reuse that descriptor. So multiprocess in their own memory space (but with ENV shared usually)
It does not balance, it leaves it to the kernel.
In the last nodejs > 0.8 there is a cluster module (functional although marked experimental)
// ==UserScript== | |
// @name CleanComments | |
// @namespace ForBetterJanDan | |
// @description 眼不见心不烦, 删除煎蛋多说"吐槽"中某些人的评论 | |
// @include http://jandan.net/* | |
// @version 1 | |
// ==/UserScript== | |
document.addEventListener('DOMNodeInserted',function(){ | |
// 屏蔽关键字列表, 内容为多说的UserID |
// ==UserScript== | |
// @name CleanComments | |
// @namespace ForBetterJanDan | |
// @description 眼不见心不烦, 删除煎蛋多说"吐槽"中某些人的评论 | |
// @include http://jandan.net/pic* | |
// @include http://jandan.net/ooxx* | |
// @version 2 | |
// ==/UserScript== | |
if ($ != undefined) { |