Skip to content

Instantly share code, notes, and snippets.

View noahjs's full-sized avatar

Noah Spirakus noahjs

View GitHub Profile
builtwith.com
@noahjs
noahjs / nginx.conf
Created January 1, 2017 17:33 — forked from cpswan/nginx.conf
Using nginx to proxy to an AWS ELB
daemon off;
worker_processes 1;
events { worker_connections 1024; }
http{
sendfile on;
module.exports = {
filter: function(options, expenses, cb){
options = parseStringQuery(options);
},
}
function runSearch(options, expenses, cb){
var validExpenses = [];
async.eachSeries(filterOptions, function iterator(item, callback) {
if( runValidationSearchOnObject(options, expense) ){
/**
* Library stateful.js
*/
var lib;
var Stateful = function(){
Router.prototype.addRoute = function(verb, path, controller, method, params) {
// // Set default params
// if (!params) {
// params = function() {
// return {};
// };
// }
this.controllerKeys[path] = controller;
@noahjs
noahjs / keybase.md
Created September 30, 2014 21:04
keybase.md

Keybase proof

I hereby claim:

  • I am noahjs on github.
  • I am noahjs (https://keybase.io/noahjs) on keybase.
  • I have a public key whose fingerprint is 834B C14E 2900 C0D6 0517 085D 2052 4679 04BA 7DC4

To claim this, I am signing this object:

@noahjs
noahjs / gist:edd9a61ff3d1e4252198
Last active August 29, 2015 14:06
Gateway / Client interaction utilizing asfRequireAuth

#Objective:

  • Create Gateway
  • Create Client
  • Gateway: Require Auth on Trust
  • Flag: asfRequireAuth
  • Client: Trust Gateway
  • Currency = WIDGETS
  • Gateway: Test send $$ Gateway => Client
  • [Currency = WIDGETS]
  • This should Fail
@noahjs
noahjs / php-crypt-helper
Last active December 12, 2015 22:19
PHP Crypt Helper
<?php
function run_crypt($input) {
//Make sure we have blowfish
//if(CRYPT_BLOWFISH != 1) {
// throw new Exception("bcrypt not supported in this installation.");
//}
$hash = crypt($input, salt_crypt() );