Skip to content

Instantly share code, notes, and snippets.

View liyangau's full-sized avatar

Li Yang liyangau

View GitHub Profile
@liyangau
liyangau / customer.json
Last active December 2, 2022 15:06
fake customer data
[
{
"guid": "ae7c644e-6839-4a54-850e-da04314351d7",
"isActive": true,
"balance": "$1,525.48",
"picture": "http://placehold.it/32x32",
"age": 29,
"eyeColor": "brown",
"name": "Jeannine Harrell",
"gender": "female",
@liyangau
liyangau / insomnia-okta.json
Last active July 24, 2022 02:12
Insomnia collections for Okta auth flows
{
"_type": "export",
"__export_format": 4,
"__export_date": "2022-07-24T02:11:47.358Z",
"__export_source": "insomnia.desktop.app:v2022.4.2",
"resources": [
{
"_id": "req_edf1b5534c004ccba9b3d32bd751bcd1",
"parentId": "wrk_4d8c8b388cf54393b3c5ee4325ed6d8c",
"modified": 1658157025689,
@liyangau
liyangau / insomnia-azure.json
Created March 1, 2022 01:37
This is a Insomnia collections for Azure AD authentication flows
{
"_type": "export",
"__export_format": 4,
"__export_date": "2022-03-01T01:35:30.864Z",
"__export_source": "insomnia.desktop.app:v2021.7.2",
"resources": [
{
"_id": "req_8d53c5e0a3b3487b9ae3b9b2e121a491",
"parentId": "wrk_aba5d4b0da6e46298cec551c288da364",
"modified": 1646098507189,
@liyangau
liyangau / insomnia-keycloak.json
Last active December 15, 2021 13:06
A insomnia collection for Keycloak auth flows
{
"_type": "export",
"__export_format": 4,
"__export_date": "2021-12-15T13:04:22.319Z",
"__export_source": "insomnia.desktop.app:v2021.6.0",
"resources": [
{
"_id": "req_a2ee5a17e658458cb17d5765ccf75a10",
"parentId": "wrk_6061d5e89a47437891ada2e1b001522e",
"modified": 1639573436076,
@liyangau
liyangau / jwt-genkey.sh
Created September 15, 2021 16:45
Generate DER format RSA and ECC key for JWT CLI to generate JWT token
openssl genpkey -algorithm EC \
-pkeyopt ec_paramgen_curve:P-256 \
-pkeyopt ec_param_enc:named_curve | \
openssl pkcs8 -topk8 -nocrypt -outform der > jwt-ecc-private.p8 2>/dev/null && \
openssl pkey -pubout -inform der -outform pem \
-in jwt-ecc-private.p8 \
-out jwt-ecc-public.pem 2>/dev/null && \
openssl genpkey -algorithm RSA \
@liyangau
liyangau / all-in-one-hybrid-postgres.yaml
Last active July 16, 2021 00:15
All in one Kong Hybrid deployment with Postgres DB
version: '2.1'
services:
#######################################
# Postgres: Kong Database
#######################################
kong-db:
image: postgres:12-alpine
container_name: kong-db
networks:
@liyangau
liyangau / kong-all-in-one-postgres.yaml
Last active July 29, 2022 13:23
All in one Kong deployment with Postgres DB
version: '2.1'
services:
#######################################
# Postgres: Kong Database
#######################################
kong-db:
image: postgres:12-alpine
container_name: kong-db
networks:
@liyangau
liyangau / gencert.sh
Last active March 21, 2021 11:33
genearte self-sign certs for testing purpose
#!/bin/bash
# Generate some test certificates which are used by the regression test suite:
#
# tls/ca.{crt,key} Self signed CA certificate.
# tls/redis.{crt,key} A certificate with no key usage/policy restrictions.
# tls/client.{crt,key} A certificate restricted for SSL client usage.
# tls/server.{crt,key} A certificate restricted fro SSL server usage.
# tls/redis.dh DH Params file.