This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//# api/policies/authenticated.js | |
var jwt = require('jwt-simple'); | |
var moment = require('moment'); | |
// move this to global config | |
var secret = 'xStmbyc066BOFn40gIr29y09Ud94z1P7'; | |
module.exports = function (req, res, next) { | |
// currently just using url query for testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule CashierExample do | |
alias Cashier.Address | |
alias Cashier.PaymentCard | |
def purchase do | |
address = %Address{ | |
line1: "123", | |
line2: "Main", | |
city: "New York", | |
state: "New York", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo touch /etc/init.d/couchdb | |
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
sudo dpkg -i erlang-solutions_1.0_all.deb | |
sudo apt-get update | |
sudo apt-get -y install elixir erlang-dev | |
rm erlang-solutions_1.0_all.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redis-cli EVAL "for i, name in ipairs(redis.call('KEYS', '*SOME_VALUE*')) do redis.call('DEL', name); end" 0 |