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
sudo apt-get update | |
sudo apt-get install libxml2 | |
sudo apt-get install libxslt1.1 | |
sudo apt-get install libxml2-dev | |
sudo apt-get install libxslt1-dev | |
sudo apt-get install python-libxml2 | |
sudo apt-get install python-libxslt1 | |
sudo apt-get install python-dev | |
sudo apt-get install python-setuptools |
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
var os = require('os'); | |
var cluster = require('cluster'); | |
var zmq = require('zmq'); | |
if(cluster.isMaster) { | |
var cpuCount = os.cpus().length; | |
for(var i = 0; i < cpuCount; i++) cluster.fork(); | |
} else { | |
var socket = zmq.socket('pull') | |
socket.identity = 'consumer' + process.pid; |
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
title: My First Post | |
date: 2014-04-15 | |
tags: life, photos | |
type: post | |
This is my first post! Hooray! |
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
heroku config:add METEOR_SETTINGS="$(cat settings.json)" |
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
// Router with no optoins | |
SiteRouter = new Router(); | |
SiteRouter.route('/', {name: 'site.index'}); | |
SiteRouter.route('/page/:pageId', { | |
name: 'site.page', // automatically looks for a template named "site.page" and loads it | |
subs: Meteor.subscribe('pageById', this.params.pageId) | |
}); |
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
[youtube url="http://www.youtube.com/watch?v=07ds8iv1XPM" width="480" height=“320"] |
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
curl -v https://www.nsscreencast.com/login | |
* Trying 162.243.42.159... | |
* Connected to www.nsscreencast.com (162.243.42.159) port 443 (#0) | |
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 | |
* Server certificate: www.nsscreencast.com | |
* Server certificate: COMODO RSA Domain Validation Secure Server CA | |
* Server certificate: COMODO RSA Certification Authority | |
* Server certificate: AddTrust External CA Root | |
> GET /login HTTP/1.1 | |
> Host: www.nsscreencast.com |
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
defaults write com.apple.dashboard mcx-disabled -boolean YES | |
killall Dock |
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
#countdown { | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
width: 100px; | |
height: 100px; | |
display: none; | |
margin: -50px 0 0 -50px; | |
border: 2px solid #cecece; | |
background-color: #fefefe; |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>3, 2, 1 - Go!</title> | |
<style> | |
#countdown { | |
position: absolute; | |
left: 50%; | |
top: 50%; |
OlderNewer