Skip to content

Instantly share code, notes, and snippets.

@ryu1kn
ryu1kn / Makefile
Last active March 19, 2023 13:02
Encrypt/decrypt with AWS KMS using AWS cli
# How to encrypt/decrypt your text/blob secret with AWS KMS with AWS cli
KEY_ID=alias/my-key
SECRET_BLOB_PATH=fileb://my-secret-blob
SECRET_TEXT="my secret text"
ENCRYPTED_SECRET_AS_BLOB=encrypted_secret_blob
DECRYPTED_SECRET_AS_BLOB=decrypted_secret_blob # Result of decrypt-blob target
encrypt-text:
@ryu1kn
ryu1kn / EnumBase.js
Created February 21, 2015 07:21
Enum on Sencha Touch (ExtJS as well?)
/**
* @abstract
* @class MyApp.EnumBase
*/
Ext.define('MyApp.EnumBase', {
inheritableStatics: {
/**
* @return {Array.<MyApp.EnumBase>}
*/