This file contains hidden or 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
// Fireworks JavaScript Command | |
// Exports current document state as SVG graphics format | |
// Install by copying to Fireworks/Configuration/Commands/ | |
// Run via the Commands menu in Fireworks | |
// Aaron Beall 2010-2011 | |
// Version | |
var VERSION = "0.6.1"; | |
// Params |
This file contains hidden or 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
basho \ | |
--import fs fs \ | |
--import crypto crypto \ | |
-d header '{ "alg": "RS256", "type": "JWT" }' \ | |
-d payload '{ "sub": "alice", "iss": "example.com", "iat": Date.now() }' \ | |
-d toBase64 'x => Buffer.from(JSON.stringify(x)).toString("base64")' \ | |
-d toBase64Url 'x => x.replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_")' \ | |
-d base64Header 'k.toBase64Url(k.toBase64(k.header))' \ | |
-d base64Payload 'k.toBase64Url(k.toBase64(k.payload))' \ | |
-d privateKey 'fs.readFileSync(process.cwd() + "/privatekey.pem", "utf8")' \ |
OlderNewer