Skip to content

Instantly share code, notes, and snippets.

View gbrian's full-sized avatar
🏠
Working from home

Gustavo Brian gbrian

🏠
Working from home
View GitHub Profile
@gbrian
gbrian / cloud-init.yaml
Last active January 1, 2022 09:44 — forked from syntaqx/cloud-init.yaml
cloud init to install docker on ubuntu
#cloud-config
package_update: true
package_upgrade: true
package_reboot_if_required: true
manage-resolv-conf: true
resolv_conf:
nameservers:
- '8.8.8.8'
@gbrian
gbrian / d3-server.js
Created July 9, 2016 07:48 — forked from caged/d3-server.js
Directly render and serve d3 visualizations from a nodejs server.
// Start `node d3-server.js`
// Then visit http://localhost:1337/
//
var d3 = require('d3'),
http = require('http')
http.createServer(function (req, res) {
// Chrome automatically sends a requests for favicons
// Looks like https://code.google.com/p/chromium/issues/detail?id=39402 isn't
// fixed or this is a regression.