Skip to content

Instantly share code, notes, and snippets.

View julien51's full-sized avatar

Julien Genestoux julien51

View GitHub Profile
$ cat test.js
function foo () { while (true) { } }
function bar () { return foo(); }
bar();
$ node test.js &
$ gdb attach $(pidof node)
0x00000bf778c63d5f in ?? ()
(gdb) b v8::internal::Runtime_StackGuard
Breakpoint 1 at 0x84a1f0
(gdb) print 'v8::V8::TerminateExecution'(0)
@julien51
julien51 / push.js
Last active December 18, 2015 04:19
var request = require('request');
// app below needs to be a Connect/Express app.
// Subscribing: use https://push.superfeedr.com/ to use Superfeedr (works with any feed!)
function subscribe(url, conf, cb) {
var hub = conf.hub;
var params = {
method: 'POST',
uri: hub,
@russellbeattie
russellbeattie / pubsubhubbub.txt
Last active April 8, 2016 19:32
Pubsubhubbub urls from of 50k feeds
Wordpress hubs are formatted like this: http://www.example.com/?pushpress=hub
17605 http://pubsubhubbub.appspot.com/
1493 http://hubbub.api.typepad.com/
797 http://tumblr.superfeedr.com/
185 http://superfeedr.com/hubbub
144 http://pubsubhubbub.appspot.com
103 http://posterous.superfeedr.com
103 http://www.pheedo.com/api/hub/
@bugwelle
bugwelle / angularjs-i18next-directive.js
Last active December 15, 2015 09:39
This is a simple directive for AngularJS to use i18next.
/*
*
* There is now an Angular directive, filter and provider!
* It can be found here: https://github.com/i18next/ng-i18next
* ng-i18next is now part of the i18next rganization!
*
*/
/*
* AngularJS directive for using i18next (http://jamuhl.github.com/i18next)