Skip to content

Instantly share code, notes, and snippets.

@jonnyyu
jonnyyu / aurora_serverless.py
Last active March 8, 2020 03:02
Create Aurora Serverless in CDK
from typing import Optional, Union
import jsii
from aws_cdk import (
aws_ec2 as ec2,
aws_rds as rds,
aws_kms as kms,
aws_secretsmanager as secretsmanager,
core,
)
@alexsapran
alexsapran / aws.zsh
Last active October 12, 2018 05:02
AWS CLI bash wrapper dot file
_warning(){
echo -e "\e[31m${@}\e[0m"
}
_info(){
echo -e $@
}
_success(){
echo -e "\e[32m${@}\e[0m"
}
@manzke
manzke / PublicKeyGenerator.java
Created July 6, 2011 21:54
How to generate the PublicKey from a RSA PrivateKey
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.security.KeyFactory;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.RSAPublicKeySpec;
import sun.security.rsa.RSAPrivateCrtKeyImpl;