Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

var cluster = require('cluster');
var http = require('http');
var numCPUs = require('os').cpus().length;
if (cluster.isMaster) {
// Fork workers.
for (var i = 0; i < numCPUs; i++) {
cluster.fork();
}
cluster.on('exit', function(worker, code, signal) {
@rofrol
rofrol / Gitd
Last active August 29, 2015 14:16
#!/bin/sh
#
# Startup/shutdown script for Git Daemon
# chkconfig: 345 56 10
#
# description: Startup/shutdown script for Git Daemon
#
. /etc/init.d/functions
DAEMON=/usr/libexec/git-core/git-daemon
  • ## To watch
  • Ergo Proxy (2006-) TV
  • fargo 2 - [ ] Burnt (2015)
  • Bone Tomahawk (2015)
  • Black Sails (2014)
  • Macbeth (2015)
  • A Few Good Men (1992)
  • ## Postapocalyptic
  • Mad Max (1979) i reszta części
  • Water world (1995)
@rofrol
rofrol / gist:165e0141c36c3e094d31
Created July 8, 2015 07:42
W tym tygodniu na wykopie
☑ Beka z audiofilów
☑ Artykuł o Tesli
☑ JKM
☑ Wpis o muzułmanach
☑ Kwota wolna od podatku w X
☐ Jak XYZ traktuje klientów
☐ Przełomowy wynalazek Polaków
☐ X Polakow juz nie chce wrócić do kraju
☐ polskie obozy koncentracyjne
☐ Amerykańscy naukowcy odkryli...
@rofrol
rofrol / index.html
Last active September 19, 2015 18:36 — forked from anonymous/index.html
JS Bin // source https://jsbin.com/yelaqa
<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-with-addons-0.13.3.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<h1>getTopRatedFilms()</h1>
<button onClick="getMovies()">getMovies</button>
$ git rebase -Xours material/master
First, rewinding head to replay your work on top of it...
fatal: Could not parse object '851623fbbbf97add64a11c1aba692f5803f06723^'
Unknown exit code (128) from command: git-merge-recursive 851623fbbbf97add64a11c1aba692f5803f06723^ -- HEAD 851623fbbbf97add64a11c1aba692f5803f06723
@rofrol
rofrol / index.html
Last active January 28, 2016 14:14
<a class="jsbin-embed" href="http://jsbin.com/somari/embed?js,output">JS Bin on jsbin.com</a><script src="http://static.jsbin.com/js/embed.min.js?3.35.9"></script>
<div class="slide">
<section class="hbox" data-markdown>
## Who Am I?
* Lead developer of [Modernizr](//modernizr.com)
* Project lead of [HTML5 Boilerplate](//h5bp.com)
* I curate that [page of polyfills](//bit.ly/polyfills)
* Member of jQuery Team
@rofrol
rofrol / data-markdown.user.js
Last active January 28, 2016 14:29 — forked from paulirish/data-markdown.user.js
*[data-markdown] - use markdown, sometimes, in your HTML
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.
@rofrol
rofrol / README.md
Last active January 28, 2016 14:50
Cycle.js in 5 min