Skip to content

Instantly share code, notes, and snippets.

View couto's full-sized avatar
👽
Did you raid area 51?

Luís Couto couto

👽
Did you raid area 51?
View GitHub Profile
@couto
couto / credits.js
Last active August 29, 2015 14:17
Save the credits from a movie.
var Promise = require('bluebird'),
Sequelize = require('sequelize'),
sequelize = new Sequelize('database', 'username', 'password', {
host: 'localhost',
dialect: 'sqlite'
});
/*
* Quick explanation:
* A movie has a lot of credits (jon doe is the director, jane doe is the photographer, peter doe is the hair dresser...)
@couto
couto / webpack.js
Last active November 7, 2024 13:10
Fetch polyfill with webpack
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var path = require('path');
var folders = {
APP: path.resolve(__dirname, '../app'),
BUILD: path.resolve(__dirname, '../build'),
BOWER: path.resolve(__dirname, '../bower_components'),
NPM: path.resolve(__dirname, '../node_modules')
};
@couto
couto / package.json
Last active February 13, 2022 22:16
Test case for file uploads with Hapi.js. Currently failing when same request is made with a simple JSON.
{
"name": "file-upload",
"version": "1.0.0",
"description": "File Upload test case",
"main": "server.js",
"dependencies": {
"hapi": "^8.0.0-rc8",
"joi": "^5.0.2"
},
"devDependencies": {

Keybase proof

I hereby claim:

  • I am Couto on github.
  • I am couto (https://keybase.io/couto) on keybase.
  • I have a public key whose fingerprint is 6615 D57E 7D20 7B0C 537C ADDF 7C62 5B90 A681 6DA3

To claim this, I am signing this object:

@couto
couto / ui-styleguides-generators.md
Last active February 12, 2018 05:15
UI Styleguides
@couto
couto / list.md
Last active August 29, 2015 14:05
golang tools to write web applications/API
@couto
couto / Vagrantfile
Created August 18, 2014 15:46
Vagrant configuration with Ansibles.postgresql — Currently with errors
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 5432, host: 5432
config.vm.provision "ansible" do |ansible|
ansible.playbook = "playbook.yml"
ansible.sudo = true
ansible.verbose = 'vvv'
end
end

Keybase proof

I hereby claim:

  • I am couto on github.
  • I am couto (https://keybase.io/couto) on keybase.
  • I have a public key whose fingerprint is C230 B192 2E7F FADA B169 3BBC B38A BA95 DEEA 9F1B

To claim this, I am signing this object:

Flashing Flame Devices with Firefox OS

If you have a Flame reference device and wanna try out alternate versions of Firefox OS apart from the stock one, but not willing to build from source, then follow this mini-manual.

Get the build

You can download the packages from the Nightly Build directories of Mozilla FTP. You specifically need the following two files:

  • b2g-XX.0a1.en-US.android-arm.tar.gz (XX is the version number)
  • gaia.zip