Skip to content

Instantly share code, notes, and snippets.

@oun
oun / jwks.json
Last active April 14, 2019 00:04
jwks.json
{
"keys": [
{
"kty": "RSA",
"e": "AQAB",
"n": "2OH8vzEN00TVWgC9UNpqtXzorSUaV08JPX5wfcoBbem4Z7n7ylLg3ksk7CASd8XwIzpgiPb_TIAxUVWqc1i0nx1K77DX5_OkzKELBKps_QStpyzlJxp7IfW-9ckibdUlCnBcQve-pf7S4FDjkUg1RRPNhy3AIKsIOH4U4Pj62DmYaHJO5uimthEqLcbgkEMG3J3FhNrOqF-OPrWnX6UvEPh31ZP4ek-CT9JcjyD_qXMqVmL5ADiBIM6GUti32W-imNEZQyivinza5eLUTlzikb1kqe2GT1T8UAweyexG1oT1mlGzdeZJDcKdv4DSzyXBU1TJ00hMuXABbnoxdv9zNQ"
}
]
}
@oun
oun / formatMessage.js
Last active March 18, 2022 18:40
Use React-Intl API outside React component
import { IntlProvider } from 'react-intl';
const language = 'en';
// Usually messages is declared in another file.
const messages = {
greeting: 'Hello'
}
export const mesg = defineMessages({
greeting: {
id: 'greeting',
@oun
oun / Dockerfile
Last active February 24, 2017 11:15
Jenkins Dockerfile that support docker in docker and Ansible
# https://github.com/axltxl/docker-jenkins-dood/blob/develop/Dockerfile
FROM jenkins:2.19.2
# Install necessary packages
USER root
RUN apt-get update \
&& apt-get install -y sudo supervisor \
&& rm -rf /var/lib/apt/lists/*
# Install docker-engine