Skip to content

Instantly share code, notes, and snippets.

View julien51's full-sized avatar

Julien Genestoux julien51

View GitHub Profile
puts "yo!"
<% fields_for @public_key do |f| -%>
<p>
<%= f.label :title %><br />
<%= f.text_field :title %><br /><br />
</p>
<p>
<%= f.label :key %><br />
<%= f.text_area :key %>
</p>
<% end -%>
@julien51
julien51 / gist:8800583
Created February 4, 2014 09:31
google-feeds.json
{
"feedUrl": "http://www.spiegel.de/international/germany/index.rss",
"title": "SPIEGEL ONLINE - International",
"link": "http://www.spiegel.de",
"author": "",
"description": "Daily news, analysis and opinion from Europe's leading newsmagazine and Germany's top news Web site.",
"type": "rss20",
"entries": [{
"title": "Overseas Role: Germany Must Back Words With Deeds",
"link": "http://www.spiegel.de/international/germany/commentary-on-german-promise-of-stronger-foreign-policy-role-a-950814.html",
$ curl -X GET https://push.superfeedr.com -d'hub.mode=retrieve' -d'hub.topic=http://www.journalism.co.uk/rssmesh/blogandnews_app.php' -u julien:redacted
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom"><status feed="http://www.journalism.co.uk/rssmesh/blogandnews_app.php" xmlns="http://superfeedr.com/xmpp-pubsub-ext"><http code="200">Fetched (ring) 200 900 and parsed 0/30 entries</http><next_fetch>2014-02-21T20:41:47.000Z</next_fetch><period>900</period><last_fetch>2014-02-21T20:26:47.000Z</last_fetch><last_parse>2014-02-21T20:26:47.000Z</last_parse><last_maintenance_at>2014-02-21T04:16:09.000Z</last_maintenance_at></status><title>News from Journalism.co.uk</title><entry xmlns="http://www.w3.org/2005/Atom" xmlns:geo="http://www.georss.org/georss" xmlns:as="http://activitystrea.ms/spec/1.0/" xmlns:sf="http://superfeedr.com/xmpp-pubsub-ext"><id>http://www.journalism.co.uk/?cmd=ArticleJump&amp;id=555915</id><published>2014-02-21T15:01:59.000Z</published><updated>2014-02-21T15:01:59
@julien51
julien51 / gist:9142981
Created February 21, 2014 20:38
source.xml
$ curl 'http://www.journalism.co.uk/rssmesh/blogandnews_app.php'
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:rssMesh="http://www.FeedForAll.com/DTDs/rssMesh.dtd" version="2.0">
<channel>
<title>News from Journalism.co.uk</title>
<description>Links to news and blog stories from Journalism.co.uk</description>
<link>http://www.journalism.co.uk</link>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<language>en-us</language>
<generator>FeedForAll-scripts (rssMesh.php), http://www.FeedForAll.com/, Copyright 2006-2007, NotePage, Inc.</generator>
var dns = require('dns');
var domains = require('./domains.json');
var times = [];
function solveOne(domains) {
var domain = domains.pop();
if(!domain && domain !== '') {
console.log(times);
process.exit();
# First, find the authoritative nameservers:
$ dig +short NS superfeedr.com
ns1.dnsimple.com.
ns2.dnsimple.com.
ns3.dnsimple.com.
ns4.dnsimple.com.
# Second get the TTL
$ dig @ns1.dnsimple.com. +nocmd +noall +answer +ttlid a superfeedr.com
superfeedr.com. 300 IN A 96.126.119.56

Keybase proof

I hereby claim:

  • I am julien51 on github.
  • I am julien (https://keybase.io/julien) on keybase.
  • I have a public key whose fingerprint is D3C2 E5FE 24E9 0D2E AA05 263A 44C1 029F D3AF 6F69

To claim this, I am signing this object:

Nodejitsu is a bit dumb:
1. Account got deactivated because CC expired.
2. I try to reactivate, but it says: "The credit card on file could not be charged."
3. I change the CC but it says: "'Next Billing' cannot be changed for Subscriptions in 'canceled' state"
4. WTF?
$ node index.js
Cannot load StringPrep-0.2.3 bindings (using fallback). You may need to `npm install node-stringprep`
2014-05-11T18:56:56.596Z connecting to superfeedr...
2014-05-11T18:56:58.864Z connected.
2014-05-11T18:56:59.009Z notification: {
"feed": {
"url": "http://push-pub.appspot.com/feed",
"title": "Publisher example",
"httpCode": 200,
"httpStatus": "Fetched (ping) 200 43200 and parsed 2/20 entries",