I hereby claim:
- I am bogensberger on github.
- I am bogi (https://keybase.io/bogi) on keybase.
- I have a public key whose fingerprint is 8A83 14BC FE29 7651 C4A9 E340 3BF2 17E3 B5B7 A181
To claim this, I am signing this object:
const payload = "Joes secret message"; // to encrypt | |
(async () => { | |
const sharedKey = await window.crypto.subtle.generateKey( | |
{ name: "AES-CBC", length: 256 }, | |
true, | |
["encrypt", "decrypt"] | |
); | |
// encrypt | |
const iv = window.crypto.getRandomValues(new Uint8Array(16)); |
import crypto from "crypto"; | |
const payload = "Joes secret message"; // to encrypt | |
const encryptionKey = crypto.randomBytes(32); // shared key | |
// encrypt | |
const iv = crypto.randomBytes(16); | |
const cipher = crypto.createCipheriv("aes-256-cbc", encryptionKey, iv); | |
const cipherText = cipher.update(payload, "utf8", "hex") + cipher.final("hex"); |
var even_numbers = 0; | |
var odd_numbers = 0; | |
for (var i=0; i <= 5; i++ ) { | |
for (var j=0; j <= 5; j++) { | |
console.log(`${i} + ${j} = ${i+j} (${(i+j) % 2 == 0 ? 'even' : 'odd'}) `); | |
if ( (i+j) % 2 == 0) { | |
even_numbers++; | |
} else { | |
odd_numbers++; |
location /crate/ { | |
proxy_read_timeout 3600s; | |
rewrite /crate(.*) $1 break; | |
proxy_pass http://crate; | |
proxy_redirect / /crate/; # The proxy_redirect directive is required to handle redirects from admin ui correctly | |
} |
I hereby claim:
To claim this, I am signing this object:
killbranches = !git branch --merged | grep -v '^*' \ | |
| grep -v master | xargs git branch -d 2> /dev/null |