I hereby claim:
- I am alanvitor on github.
- I am alanvitor (https://keybase.io/alanvitor) on keybase.
- I have a public key whose fingerprint is 9C6E BFFA 6DDD 3528 D12F 4763 C4D4 87F5 3D69 9DDB
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // sleep | |
| // usage: await sleep(<seconds>); | |
| export const sleep = async (sec) => { | |
| return await new Promise(resolve => setTimeout(resolve, sec * 1000)); | |
| }; | |
| // uuid | |
| export const uuid = () => { | |
| let i, random, uuid = ''; | |
| for (i = 0; i < 32; i++) { |
| # current time in seconds (linux epoch) | |
| date +%s | |
| # get the seconds since some date | |
| date -d "Aug 02 1992" +%s |
| // Generally, run in browser's console. | |
| // re-enable paste in forms | |
| document.addEventListener('paste', e => e.stopImmediatePropagation(), true); |
/usr/local/bin
$ rm /usr/local/bin/docker*
$ rm /usr/local/bin/kubectl| #!/usr/bin/env python3 | |
| import sys | |
| import pandas | |
| def convert(): | |
| if len(sys.argv) == 1: | |
| print("Missing json file name") | |
| return |
| docker run -it -v .:/app -w /app ubuntu bash |
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key