Skip to content

Instantly share code, notes, and snippets.

View barboni's full-sized avatar

Vlad Barboni barboni

  • Finanzchef24
  • Munich, Germany
  • 14:28 (UTC +01:00)
View GitHub Profile
@barboni
barboni / 0_reuse_code.js
Created August 9, 2017 07:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
if (sse) {
headers = {
"x-amz-server-side-encryption-customer-key": btoa(privateKey),
"x-amz-server-side-encryption-customer-key-MD5": md5b64(privateKey),
"x-amz-server-side-encryption-customer-algorithm": "AES256"
};
}
function md5b64(data) {
return CryptoJS