Skip to content

Instantly share code, notes, and snippets.

View feinoujc's full-sized avatar

Joe Feinour feinoujc

View GitHub Profile

NCARB EESA API

This document describes the web api that NCARB will develop to enable EESA integration with NCARB's System.

The EESA system will rely on a scheduled task that will make requests nightly or hourly to the NCARB EESA API.

Security

All requests will be made over HTTPS and secured using Basic Authentication. NCARB will issue two sets of username/password pairs to access our test and production environments.

API Definitions

#!/bin/bash
# This will write private.pem and public.pem in the current directory
# The default key strenght is 2048 bits
# usage:
# # ./gen-jwt-rsa-keys.sh mykey
# # ls
# gen-jwt-rsa-keys.sh mykey-private.key mykey-public.pem
# first time you have to give execution permission or use bash and the filename
# # chmod +x gen-jwt-rsa-keys.sh
KEYNAME=${1:-jwtrsa}
#!/bin/bash
# This will write private.pem and public.pem in the current directory
# The default key strenght is 2048 bits
# usage:
# # ./gen-jwt-rsa-keys.sh mykey
# # ls
# gen-jwt-rsa-keys.sh mykey-private.key mykey-public.pem
# first time you have to give execution permission or use bash and the filename
# # chmod +x gen-jwt-rsa-keys.sh
KEYNAME=${1:-jwtrsa}

Keybase proof

I hereby claim:

  • I am feinoujc on github.
  • I am jfeinour (https://keybase.io/jfeinour) on keybase.
  • I have a public key ASCQuE97dOKvQ9XohM7zBOqvlmYuWdyjn9ZM5nnZ8w5Gmwo

To claim this, I am signing this object:

@feinoujc
feinoujc / elmah-dynamodb-lamda.js
Last active March 21, 2016 19:49
Send DynamoDB inserts of elmah logs to slack
console.log('Loading function');
const https = require('https');
const url = require('url');
// set up slack inbound webhook url
const slack_url = 'XXXXXXXXXXXX';
const slack_req_opts = url.parse(slack_url);
const elmah_details_url = 'https://website/elmah.axd/detail?id=';
slack_req_opts.method = 'POST';
slack_req_opts.headers = {'Content-Type': 'application/json'};
@feinoujc
feinoujc / Puffer.cs
Created December 19, 2013 19:24
makes a view "puff up" in size and then back down again using animations
using MonoTouch.CoreGraphics;
using MonoTouch.UIKit;
static class Puffer
{
//makes a view "puff up" in size and then back down again using animations
public static void PuffUp(this UIView view)
{
UIView.Animate(0.2, () =>
{