Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repo
// | |
// Poor Man's Web Server with Regex Routing in 177 LOC of C# | |
// | |
// This is a simple standalone http server that handles routing with regular expressions | |
// matching. For each request the router passes capture groups to handlers as a data dictionary. | |
// | |
// Router implementation constructs a single composite regex to match request path, based on | |
// https://nikic.github.io/2014/02/18/Fast-request-routing-using-regular-expressions.html | |
// | |
// One can use `WebServer` and `Router` classes alone, just has to register all custom |
Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repo
If you have Socorro Lite installed (https://gist.github.com/rhelmer/1475ac173362edefa469), this guide will show you how to install the crash reporting web UI Crash-Stats that powers https://crash-stats.mozilla.com
The Django application uses both PostgreSQL and ElasticSearch (and supports Filesystem or S3 for pulling up crashes directly), so make sure to run the processor with all three crash storage classes configured (and set up per the Socorro Lite install doc):
// | |
// File: inotify-example.cpp | |
// Date: July 16, 2013 | |
// Author: Peter Krnjevic <pkrnjevic@gmail.com>, on the shoulders of many others | |
// | |
// This is a simple inotify sample program monitoring changes to "./tmp" directory (create ./tmp beforehand) | |
// Recursive monitoring of file and directory create and delete events is implemented, but | |
// monitoring pre-existing "./tmp" subfolders is not. | |
// A C++ class containing a couple of maps is used to simplify monitoring. | |
// The Watch class is minimally integrated, so as to leave the main inotify code |