create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| in=yourfile.js | |
| out=yourfile.min.js | |
| curl -s \ | |
| -d compilation_level=SIMPLE_OPTIMIZATIONS \ | |
| -d output_format=text \ | |
| -d output_info=compiled_code \ | |
| --data-urlencode "js_code@${in}" \ | |
| http://closure-compiler.appspot.com/compile \ | |
| > $out |
| <?php | |
| // 一个一致性hash实现 http://github.com/pda/flexihash | |
| require '/path/to/flexihash/include/init.php'; | |
| require '/path/to/lysine/loader.php'; | |
| // user和topic数据垂直切分 | |
| // user数据放在mysql数据库 | |
| // topic数据放在postgresql数据库 | |
| // topic数据水平切分,分区到3台服务器上 | |
| $config = array( |
| /** | |
| * converted stringify() to jQuery plugin. | |
| * serializes a simple object to a JSON formatted string. | |
| * Note: stringify() is different from jQuery.serialize() which URLEncodes form elements | |
| * UPDATES: | |
| * Added a fix to skip over Object.prototype members added by the prototype.js library | |
| * USAGE: | |
| * jQuery.ajax({ |
| """SocksiPy - Python SOCKS module. | |
| Version 1.00 | |
| Copyright 2006 Dan-Haim. All rights reserved. | |
| Redistribution and use in source and binary forms, with or without modification, | |
| are permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright notice, this | |
| list of conditions and the following disclaimer. | |
| 2. Redistributions in binary form must reproduce the above copyright notice, |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| Here is a sample of how I am currently dealing with users. | |
| Big thanks to uggedal! I used his user states as an example: https://github.com/uggedal/states | |
| ### | |
| # How to create password hashes | |
| ### | |
| python -c "import crypt; print crypt.crypt('password', '\$6\$SALTsalt\$')" | |
| ### |
| # | |
| # Slightly tighter CORS config for nginx | |
| # | |
| # A modification of https://gist.github.com/1064640/ to include a white-list of URLs | |
| # | |
| # Despite the W3C guidance suggesting that a list of origins can be passed as part of | |
| # Access-Control-Allow-Origin headers, several browsers (well, at least Firefox) | |
| # don't seem to play nicely with this. | |
| # |
| <?php | |
| class _HMT { | |
| // 版本号 | |
| private $VERSION = "tc-1.0"; | |
| // 访次长度(秒) | |
| private $VISIT_DURATION = 1800; | |
| // 访客有效期(秒) | |
| private $VISITOR_MAX_AGE = 31536000; |
| <?php | |
| /* | |
| OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
| Author: _ck_ (with contributions by GK, stasilok) | |
| Version: 0.1.7 | |
| Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
| * revision history | |
| 0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
| 0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |