Skip to content

Instantly share code, notes, and snippets.


Hugo Dias hugomrdias

Block or report user

Report or block hugomrdias

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hugomrdias / simple-idb-datastore.js
Created Oct 10, 2019
Simple ipfs datastore for browsers
View simple-idb-datastore.js
const { Store, set, get, del } = require('idb-keyval')
function isStrictTypedArray (arr) {
return (
arr instanceof Int8Array ||
arr instanceof Int16Array ||
arr instanceof Int32Array ||
arr instanceof Uint8Array ||
arr instanceof Uint8ClampedArray ||
hugomrdias / gpg-agent.conf
Last active Aug 22, 2018 — forked from sindresorhus/.profile
Automatic Git commit signing with GPG on OSX
View gpg-agent.conf
# Connects gpg-agent to the OSX keychain via the brew-installed
# pinentry program from GPGtools. This is the OSX 'magic sauce',
# allowing the gpg key's passphrase to be stored in the login
# keychain, enabling automatic key signing.
pinentry-program /usr/local/bin/pinentry

Keybase proof

I hereby claim:

  • I am hugomrdias on github.
  • I am hugomrdias ( on keybase.
  • I have a public key ASB6Qmj5tKiTOr7NjzTH0NekHpbanEq8_EhrDharFl4GXgo

To claim this, I am signing this object:

hugomrdias / index.js
Created Jan 4, 2016
requirebin sketch
View index.js
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var _ = require('lodash');
function log() {
window.console.log.apply(window.console, arguments);
function concat(a, b) {
var t = a.concat([b]);
hugomrdias /
Last active Dec 19, 2015
Hub API v1 Reference

API v1


All API access is over HTTP, and accessed from All data is sent and received as JSON.

hugomrdias / start.php
Last active Dec 14, 2015
Damnit for Laravel 3
View start.php
* Thanks to @philsturgeon for pointing this package
* and Filipe Dobreira "" for creating it ^^
* Github :
* How to:
* Step 1 : Setup composer for Laravel 3
* Step 2 : Add this code to your application/start.php or anywhere u like
* as long its after laravel registers its own error handlers
* so NOT in : index.php, paths.php or laravel/**
You can’t perform that action at this time.