- Alfred (http://www.alfredapp.com/)
- Dropbox (http://db.tt/rUwqOa8)
- Codebox (http://www.codeboxapp.com/)
- Sublime Text 2 (http://www.sublimetext.com/2)
- Sequel Pro (http://www.sequelpro.com/)
- Chrome (http://www.google.com/chrome)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Application driver class to initialize Phalcon and | |
* other resources. | |
*/ | |
class Application extends \Phalcon\Mvc\Application | |
{ | |
private static $mode = 'development'; // TODO change default to production | |
private static $modules = array( | |
'portal' => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$di = new \Phalcon\DI\FactoryDefault(); | |
$response = new \Phalcon\Http\Response(); | |
$response->setContentType('application/json', 'utf-8'); | |
$di->set('response', $response); | |
$app = new Phalcon\Mvc\Micro(); | |
$app->setDI($di); |
-
Download latest Sublime Text 2 (Link)
-
Install "Package Control" via console (ctrl+`)
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')
-
Restart Sublime Text 2
-
OS X Command Line (Link)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nhidalgo@nesberth:js $ bower register highstock-components git://github.com/nesbert/highstock.git | |
Registering a package will make it visible and installable via the registry. | |
Proceed (y/n)? y | |
registered highstock-components to git://github.com/nesbert/highstock.git |
I hereby claim:
- I am nesbert on github.
- I am nesbert (https://keybase.io/nesbert) on keybase.
- I have a public key whose fingerprint is DA38 A124 001D 303C 4BCD 4219 0DEE DC34 8890 41EE
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -r ~/.profile ]; then . ~/.profile; fi | |
case "$-" in *i*) if [ -r ~/.bashrc ]; then . ~/.bashrc; fi;; esac |
MongoDB's ObjectId contains a timestamp, which can help you filter documents based on their creation date. To reduce the size of your collection, you can use a strategy that involves deleting or archiving old documents based on a specific date or time range.
Here's a high-level overview of the process:
- Determine the date threshold: Decide on a date or time range beyond which you would like to remove or archive the documents. For example, you might want to remove documents older than 6 months or 1 year.
- Query documents based on the ObjectId's timestamp: You can use MongoDB's aggregation framework or the find() method to filter documents based on the creation date embedded in the ObjectId.