Skip to content

Instantly share code, notes, and snippets.

View mwawrusch's full-sized avatar

Martin Wawrusch mwawrusch

View GitHub Profile
curl -X POST -H "Content-Type: application/json" -d '{"username":"xyz","password":"xyz"}' http://50a30013fdc691052b000075.fanignite.net/529955c0ebf7c5cc61000009/d/some-test
curl -X GET -H "Content-Type: application/json" http://50a30013fdc691052b000075.fanignite.net/529955c0ebf7c5cc61000009/d/some-test
curl -X GET -H "Content-Type: application/json" http://50a30013fdc691052b000075.fanignite.net/529955c0ebf7c5cc61000009/d/some-test/529cfeab25d7b200004f2aa4
curl -X DELETE -H "Content-Type: application/json" http://50a30013fdc691052b000075.fanignite.net/529955c0ebf7c5cc61000009/d/some-test/529cfeab25d7b200004f2aa4
passport-google-oauth@0.1.5 node_modules/passport-google-oauth current=0.1.5
passport-twitter@1.0.2 node_modules/passport-twitter current=1.0.2
passport@0.1.17 node_modules/passport current=0.1.17
passport-local@0.1.6 node_modules/passport-local current=0.1.6
passport-facebook@1.0.2 node_modules/passport-facebook current=1.0.2
imagemagick@0.1.3 node_modules/imagemagick current=0.1.3
gm@1.8.2 node_modules/gm current=1.8.2
formidable@1.0.14 node_modules/formidable current=1.0.14
markdown-js@0.0.3 node_modules/markdown-js current=0.0.3
emailjs@0.3.6 node_modules/emailjs current=0.3.6
/home/plasma/project/martin-hash-test.js:7
hash.setEncoding('hex');
^
TypeError: Object #<Hash> has no method 'setEncoding'
at Object.<anonymous> (/home/plasma/project/martin-hash-test.js:7:6)
at Module._compile (module.js:454:26)
at Object.Module._extensions..js (module.js:472:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:497:10)
var crypto = require('crypto');
// change to 'md5' if you want an MD5 hash
var hash = crypto.createHash('sha1');
// change to 'binary' if you want a binary hash.
hash.setEncoding('hex');
// the text that you want to hash
hash.write('hello world');
general:
appName: 'Your App'
appDescripton : ''
appIcons:
size57x57: null
size72x72: null
size114x114: null
size144x144: null
size512x512: null
pages: [
{ method: 'POST',
debug: uri: 'https://api.nodejitsu.com/apps/fanignite/fanignite-site/start',
debug: headers:
debug: { Authorization: '*********************************************************************',
debug: 'Content-Type': 'application/json' },
debug: timeout: '1000000000',
debug: rejectUnauthorized: false,
debug: body: '{}' }
debug: { statusCode: 500,
debug: result:
[
{
"qz_dishname":"Creamy Rock Shrimp",
"qz_sp_name":"creamy-rock-shrimp",
"qz_sp_id":"35653417",
"qz_source":"sp",
"qz_details":"Crispy bite-size rock shrimp tossed in a creamy, spicy sauce",
"qz_ratingids":[
],
[
{
"qz_dishname":"Creamy Rock Shrimp",
"qz_sp_name":"creamy-rock-shrimp",
"qz_sp_id":"35653417",
"qz_details":"Crispy bite-size rock shrimp tossed in a creamy, spicy sauce",
"qz_ratingids":[
],
"qz_sp_menu":[
#tested under ruby 1.9.2
#gem install ruby-hmac
require 'hmac-sha1'
require 'base64'
def make_signature(uri_path, params, client_id, secret)
padding_factor = (4 - secret.length % 4) % 4
secret += "=" * padding_factor
secret = secret.gsub(/[-_]/, {"-" => "+", "_" => "/"})
binary_key = Base64.decode64(secret)
###
# Load modules
###
_ = require 'underscore'
path = require 'path'
config = require 'nconf'
###
# Setup version
###