ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
This file contains hidden or 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
| Copyright (c) 2015, Shahar Evron | |
| 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, |
This file contains hidden or 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
| Taken from TJ Holowaychuk: http://tjholowaychuk.com/post/26904939933/git-extras-introduction-screencast | |
| Added to ~/.bash_aliases | |
| alias gd="git diff | subl" | |
| alias ga="git add" | |
| alias gaa="git add --all" | |
| alias gbd="git branch -D" | |
| alias gst="git status" | |
| alias gca="git commit -a -m" | |
| alias gm="git merge --no-ff" |
This file contains hidden or 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
| var moment = require('moment'); | |
| var tz = require('timezone/loaded'); | |
| var time = require('time'); | |
| module.exports = function() { | |
| var strftime_format = '%F %T %z'; // used to convert a date into a normalized strftime format with timezone | |
| var moment_format = 'YYYY-MM-DD HH:mm:ss zz'; // moment.js LDML format for parsing date strings | |
| /** | |
| * Convert a Javascript Date into node-time wrapper with the appropriate timezone. |
This file contains hidden or 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
| var winston = require('winston') | |
| require('winston-mongodb') | |
| // prepare some custom log levels | |
| var customLevels = { | |
| levels: { | |
| debug: 0, | |
| info: 1, | |
| warning: 2, | |
| error: 3 |
# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query stringNewerOlder