I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| // Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
| $('[placeholder]').focus(function() { | |
| var input = $(this); | |
| if (input.val() == input.attr('placeholder')) { | |
| input.val(''); | |
| input.removeClass('placeholder'); | |
| } | |
| }).blur(function() { | |
| var input = $(this); |
| var Parser = require('./jsonparse'); | |
| var Http = require('http'); | |
| var p = new Parser(); | |
| // IMPORTANT, put your username and password in here | |
| var username = "yourTwitterUsername", password = "yourPassword"; | |
| var client = Http.createClient(80, "stream.twitter.com"); | |
| var request = client.request("GET", "/1/statuses/sample.json", { | |
| "Host": "stream.twitter.com", | |
| "Authorization": (new Buffer(username + ":" + password)).toString("base64") | |
| }); |
| <?php | |
| /** | |
| * Simple excel writer class with no external dependencies, drop it in and have fun | |
| * @author Matt Nowack | |
| * @link https://gist.github.com/ihumanable/929039/edit | |
| * @license Unlicensed | |
| * @version 1.0 | |
| */ | |
| class Excel { |
| exports.ext = function () { | |
| var extTypes = { | |
| "3gp" : "video/3gpp" | |
| , "a" : "application/octet-stream" | |
| , "ai" : "application/postscript" | |
| , "aif" : "audio/x-aiff" | |
| , "aiff" : "audio/x-aiff" | |
| , "asc" : "application/pgp-signature" | |
| , "asf" : "video/x-ms-asf" | |
| , "asm" : "text/x-asm" |
| #!/bin/sh | |
| # Just copy and paste the lines below (all at once, it won't work line by line!) | |
| # MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
| function abort { | |
| echo "$1" | |
| exit 1 | |
| } | |
| set -e |
| app.get('/', function(req, res){ | |
| var ua = req.header('user-agent'); | |
| if(/mobile/i.test(ua)) { | |
| res.render('mobile.html'); | |
| } else { | |
| res.render('desktop.html'); | |
| } | |
| }); |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
| var mongoCol = require( "mongo-col" ), | |
| mongoStream = require( "mongo-stream" ), | |
| mongoInsertStream = mongoStream( mongoCol( "piped-collection", null, { | |
| dbOptions:{ | |
| safe: true | |
| } | |
| })), | |
| Logger = require( "bunyan" ); | |
| new Logger({ |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| // Restify Server CheatSheet. | |
| // More about the API: http://mcavage.me/node-restify/#server-api | |
| // Install restify with npm install restify | |
| // 1.1. Creating a Server. | |
| // http://mcavage.me/node-restify/#Creating-a-Server | |
| var restify = require('restify'); |