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
info: Creating snapshot 0.2.0-5 | |
debug: { method: 'POST', | |
debug: uri: 'https://api.nodejitsu.com/apps/modeista/fanignite-fanbox/snapshots/0.2.0-5', | |
debug: headers: | |
debug: { Authorization: '*****************************************************************', | |
debug: 'Content-Type': 'application/octet-stream', | |
debug: 'Content-Length': 289730 }, | |
debug: timeout: '1000000000', | |
debug: rejectUnauthorized: false } | |
info Uploading: [=============================] 100% info Uploading: [=============================] 100% |
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
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 |
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
[email protected] node_modules/passport-google-oauth current=0.1.5 | |
[email protected] node_modules/passport-twitter current=1.0.2 | |
[email protected] node_modules/passport current=0.1.17 | |
[email protected] node_modules/passport-local current=0.1.6 | |
[email protected] node_modules/passport-facebook current=1.0.2 | |
[email protected] node_modules/imagemagick current=0.1.3 | |
[email protected] node_modules/gm current=1.8.2 | |
[email protected] node_modules/formidable current=1.0.14 | |
[email protected] node_modules/markdown-js current=0.0.3 | |
[email protected] node_modules/emailjs current=0.3.6 |
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
/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) |
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
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'); |
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
general: | |
appName: 'Your App' | |
appDescripton : '' | |
appIcons: | |
size57x57: null | |
size72x72: null | |
size114x114: null | |
size144x144: null | |
size512x512: null | |
pages: [ |
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
{ 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: |
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
[ | |
{ | |
"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":[ | |
], |
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
[ | |
{ | |
"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":[ |
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
#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) |