Skip to content

Instantly share code, notes, and snippets.

View jondanao's full-sized avatar
🏄‍♂️
Just surfing...

Jon Danao jondanao

🏄‍♂️
Just surfing...
View GitHub Profile
@jondanao
jondanao / 3dsecure-flow.md
Created April 14, 2021 07:42 — forked from soltveit/3dsecure-flow.md
3D Secure flow

3D Secure flow

Verify cardholder is enrolled in 3D Secure program

Submit card and merchant information to https://mpi.3dsecure.io (MPI) according to:

The response will include:

How to setup AWS lambda function to talk to the internet and VPC

I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.

So it might be really unintuitive at first but lambda functions have three states.

  1. No VPC, where it can talk openly to the web, but can't talk to any of your AWS services.
  2. VPC, the default setting where the lambda function can talk to your AWS services but can't talk to the web.
  3. VPC with NAT, The best of both worlds, AWS services and web.
@jondanao
jondanao / zappa_commands.sh
Last active June 7, 2018 03:17
Zappa Deployment Cheatsheet
# Zappa uses *.pyc files and needs to be cleaned up when moving to different directory or changing Python versions
# https://github.com/Miserlou/Zappa/issues/854
find . -name \*.pyc -delete

Keybase proof

I hereby claim:

  • I am jondanao on github.
  • I am jondanao (https://keybase.io/jondanao) on keybase.
  • I have a public key whose fingerprint is 4705 C7B9 63F3 4A48 8D15 948F 8A8E 915C B7F5 6BC4

To claim this, I am signing this object:

@jondanao
jondanao / hmac.md
Created August 26, 2015 08:19
Signing API Requests via HMAC

Signing API Requests via HMAC

Ingredients of Authenticated Request

  1. API Secret Key (aka Private Key)
  • API Access Key (aka Public Key)
  • API Endpoint
  • Timestamp
  • Signature
  • Custom Headers
@jondanao
jondanao / iwantv-api-1.0.js
Created November 8, 2012 02:11
iWantv API 1.0
// Get episode details
GET /episodes/?token=xxxxxxxxxx&episode_id=1234
{
"episode_id": 1234,
"show_id": 1234,
"channel_id": 1234,
"title": "A Beautiful Affair",
"air_date": "2012-11-08",
"playable": false,
@jondanao
jondanao / trie.lua
Created June 17, 2011 12:17
Trie (Lua)
-- Copyright (C) 2010 Danao.org. All Rights Reserved.
-- Jon Danao | jondanao@yahoo.com | http://danao.org
module(..., package.seeall)
function createTrie()
-- PRIVATE
local trie = {}