Skip to content

Instantly share code, notes, and snippets.

View export-to-pdf.ts
const jwt = require( 'jsonwebtoken' );
const axios = require( 'axios' );
const secret = 'API secret';
const payload = {
aud: 'Environment ID',
iat: Date.now(),
}
const token = jwt.sign( payload, secret, { algorithm: 'HS256' } );
View gist:f36877b881d2814b2102893660f02879
### Keybase proof
I hereby claim:
* I am omizzy on github.
* I am omizzy (https://keybase.io/omizzy) on keybase.
* I have a public key ASCVOH5vgTJCAsbR5xn1bYo7No8hUkWFTOG5ESg4UfwG8Qo
To claim this, I am signing this object:
View gist:785e48f103f43da33564
# Color Codes
# Black 0;30 Dark Gray 1;30
# Blue 0;34 Light Blue 1;34
# Green 0;32 Light Green 1;32
# Cyan 0;36 Light Cyan 1;36
# Red 0;31 Light Red 1;31
# Purple 0;35 Light Purple 1;35
# Brown 0;33 Yellow 1;33
# Light Gray 0;37 White 1;37
# back to foreground color 0
@omizzy
omizzy / symfony.info
Created Mar 7, 2012 — forked from naderman/symfony.info
Drupal 7.0 Symfony2 Integration (Proof of Concept)
View symfony.info
name = Symfony
description = Symfony Integration
core = 7.x