To build this VM and create vagrant-mate base box:
First clone this repository:
git clone https://gist.github.com/glensc/9948541 vagrant-mate
cd vagrant-mate
| /vendor/ | |
| /bin/ | |
| /composer.phar | |
| *~ | |
| *.sw[op] |
| <?php | |
| /** | |
| * Overly simple XML parser. | |
| * | |
| * Does not parse CDATA nor nested tags well | |
| * | |
| * @author Elan Ruusamäe <glen@delfi.ee> | |
| */ | |
| class XmlParserException extends RuntimeException { |
copy noedit.vim to $VIMRUNTIME/plugin/noedit.vim or just include in your ~/.vimrc file
| Mon Mar 22 15:25:10 EET 2010 |
| diff --git a/min/lib/Minify/HTML/Helper.php b/min/lib/Minify/HTML/Helper.php | |
| index 807fdc9..f199ac4 100644 | |
| --- a/min/lib/Minify/HTML/Helper.php | |
| +++ b/min/lib/Minify/HTML/Helper.php | |
| @@ -69,7 +69,7 @@ class Minify_HTML_Helper { | |
| if ($debug) { | |
| $path .= "&debug"; | |
| } elseif ($farExpires && $this->_lastModified) { | |
| - $path .= "&" . $this->_lastModified; | |
| + $path .= "&" . ($this->_lastModified + $this->_filePathChecksum); |
Closure Compiler as Simple HTTP Server
Moved to https://github.com/glensc/closure-compiler-httpserver
| eventum.bzr |
| <?php | |
| // https://developer.github.com/webhooks/ | |
| // ruby -rsecurerandom -e 'puts SecureRandom.hex(20)' | |
| define('HOOK_SECRET', ''); | |
| set_exception_handler(function($e) { | |
| header('HTTP/1.1 500 Internal Server Error'); | |
| error_log(basename(__FILE__, '.php') . ': '. $e->getMessage()); | |
| die("Error on line {$e->getLine()}: " . htmlspecialchars($e->getMessage())); |
| #!/usr/bin/python | |
| # Script for Subversion integration with Slack | |
| # | |
| # Uses slackweb module: | |
| # https://github.com/satoshi03/slack-python-webhook | |
| # 1. Save this file in /usr/bin as slack-svn-hook | |
| # 2. Make it executable: | |
| # chmod +x /usr/bin/slack-svn-hook | |
| # 3. Put this line at the end of file of your_svn_repo/hooks/post-commit: |