Skip to content

Instantly share code, notes, and snippets.

View raphaelbadia's full-sized avatar
😄

Raphaël Badia raphaelbadia

😄
View GitHub Profile
@raphaelbadia
raphaelbadia / jwtRS256.sh
Created September 30, 2022 09:55 — forked from Holger-Will/jwtRS256.sh
generate public private key pair (RSA RS256) for use with koa-jwt jasonwebtoken etc.
# generate private key
openssl genrsa -out private.pem 2048
# extatract public key from it
openssl rsa -in private.pem -pubout > public.pem
@raphaelbadia
raphaelbadia / TransServer.tsx
Last active June 19, 2023 10:20
Trans component from lingui
/* eslint-disable @typescript-eslint/no-explicit-any */
import {
ComponentType,
createElement,
ElementType,
isValidElement,
ReactElement,
ReactNode,
} from 'react';
import { i18n } from '@lingui/core';
#!/usr/bin/env node
/* eslint-disable no-console */
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
// edited to work with the appdir by @raphaelbadia
const path = require('path');