Skip to content

Instantly share code, notes, and snippets.

View woloski's full-sized avatar

Matias Woloski woloski

View GitHub Profile
@woloski
woloski / top.md
Created May 16, 2015 23:18
top 100 packages from heroku distiled for webtask
  • bcrypt: A bcrypt library for NodeJS.
  • pg: PostgreSQL client - pure javascript & libpq with the same API
  • q: A library for promises (CommonJS/Promises/A,B,D)
  • node-uuid: Rigorous implementation of RFC4122 (v1 and v4) UUIDs.
  • optimist: Light-weight option parsing with an argv hash. No optstrings attached.
  • aws-sdk: AWS SDK for JavaScript
  • validator: String validation and sanitization
  • cheerio: Tiny, fast, and elegant implementation of core jQuery designed specifically for the server
  • knox: Amazon S3 client
  • consolidate: Template engine consolidation library
┌──────────────────┐ ┌──────────────────┐
│ │ webtask token │ │
│ Website │◀──(w/id_token)────▶│ Auth0 │
│ │ │ │
└──────────────────┘ └──────────────────┘
@woloski
woloski / token.txt
Last active August 29, 2015 14:14
hiring
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ3aGF0IjoiYmFja2VuZCAmIGZyb250ZW5kIGVuZ2luZWVycyIsIndoZXJlIjoiYW55d2hlcmUuIEFyZ2VudGluYSBvciBTZWF0dGxlIHByZWZlcnJlZCIsImhvdyI6ImVtYWlsIHRvIGpvYnNAYXV0aDAuY29tIiwiaW5jbHVkZSI6eyJ3aG8iOiJPbmUgcGFyYWdyYXBoIGV4cGxhaW5pbmcgd2hvIHlvdSBhcmUiLCJsaW5rcyI6WyJHaXRIdWIiLCJUd2l0dGVyIiwiTGlua2VkSW4iXSwiY29kZSI6IkEgcGllY2Ugb2YgYGNvZGVgIHRoYXQgeW91IGxpa2UgKG5vdCBuZWNlc3NhcmlseSB5b3VycykifSwiYWJvdXRfYXV0aDAiOlsiYXV0aDAuY29tL2pvYnMiLCJhdXRoMC5jb20vb3NzIiwiYXV0aDAuY29tL2Fib3V0IiwiZ2l0aHViLmNvbS9hdXRoMCJdfQ._PHycTzoLHmjn6ejZKg7kgvfPzNSINI04q8prqxojJg

DRY

Labor specialization helped spur the Industrial Revolution and the technology-driven world in which we live. I firmly believe that startups are the equivalent of this century, providing the the building blocks for today's apps:

  • Sendgrid spent years thinking about e-mail delivery.
  • Stripe has been processing payments for 4 years.
  • Twilio has cracked all the details of guarranted SMS delivery across the world.
  • Auth0 has experts on the subject that went through every detail of authentication, authorization and user management.
  • ... and so on
@woloski
woloski / option1-prose.md
Last active August 29, 2015 14:08
Which style would you prefer for a blog post?

Why developers fall in love with your product?

1. Awesome docs

What do we do the first time we want to use a library? We read the Github README or the Wiki. Why? First and foremost, because we can do what we know best: Copy & Paste code snippets. Also, it gives us an overview of how we can use the library and the APIs it has. If the APIs weren’t good, we’d just search for another one.

Products should follow this same idea. We should have documentation from which we can copy and paste. For a product, that means tailored documentation for every user.

Another thing we love is reading code. It’s literature for us!That’s why it’s nice if every document includes an up-to-date sample for every major platform/technology that we can just download, run locally and read its code.

@woloski
woloski / multitenant.md
Last active February 11, 2024 23:14
Multi Tenant Apps in Auth0

Multitenancy refers to a principle in software architecture where a single instance of the software runs on a server, serving multiple client-organizations (tenants)

Let's start by enumerating some multi tenant applications and understand how they handle it.

Slack

Authentication:

@woloski
woloski / README.md
Created October 13, 2014 15:53
Authenticate with Google through Auth0 and refresh the access token from Browser
  1. Create a Client ID and an API Key on Google API Console. Set the Allowed Origins (e.g. localhost:3000).
  2. Create an app in Auth0 and set the Allowed Origins (e.g. localhost:3000) and the callback to https://yours.auth0.com/mobile

@woloski
woloski / README.md
Last active August 29, 2015 14:07
Go + Auth0

Install deps

go get github.com/gorilla/mux
go get github.com/astaxie/beego/session

Run

@woloski
woloski / updateconn
Last active August 29, 2015 14:06
update a connection and its config
PUT https://YOUR-ACCOUNT.auth0.com/api/connections/YOUR-CONNECTION-NAME
content-type: application/json
authorization: Bearer ACCESS-TOKEN
{
"options": {
"bareConfiguration": {
"test": "foo3"
},
"enabledDatabaseCustomization":true,
@woloski
woloski / 0_reuse_code.js
Created April 13, 2014 20:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console