Export your public key:
keybase pgp export > keybase-public.key
Export your private key:
keybase pgp export --secret > keybase-private.key
Export your public key:
keybase pgp export > keybase-public.key
Export your private key:
keybase pgp export --secret > keybase-private.key
| version: '3.2' | |
| services: | |
| bastion: | |
| image: christophermaier/test-probe:0.1.0-20180509175222 | |
| command: | |
| - "run" | |
| - "--listen-ctl=0.0.0.0:9632" | |
| - "--permanent-peer" | |
| hostname: bastion | |
| domainname: habitat.dev |
| import sys | |
| # Constants | |
| OPERATORS = ['*', '/', '+', '-'] | |
| DECIMAL_SYMBOLS = [',', '.'] | |
| SIGN_SYMBOLS = ['-', '+'] | |
| PARENTHESIS_OPEN = '(' | |
| PARENTHESIS_CLOSE = ')' | |
| PRECEDENCE = [[PARENTHESIS_OPEN], ['*', '/'], ['+', '-']] |
| version: '3.2' | |
| services: | |
| bastion: | |
| image: christophermaier/test-probe:0.1.0-20180509175222 | |
| command: | |
| - "run" | |
| - "--listen-ctl=0.0.0.0:9632" | |
| - "--permanent-peer" | |
| hostname: bastion | |
| domainname: habitat.dev |
| #!python | |
| """OpenSSL enc compatible script by Python. | |
| """ | |
| """ Based on: | |
| https://gist.github.com/chrono-meter/d122cbefc6f6248a0af554995f072460 | |
| Added: base64 | |
| Need: python3-crypto | |
| # Encrypt | |
| python3 ./aes256-compat-openssl-enc-dec.py -in <filein> -e -salt -aes-256-cbc |
abs(float) - Returns the absolute value of a given float.
Example: abs(1) returns 1, and abs(-1) would also return 1,
whereas abs(-3.14) would return 3.14. See also the signum function.
basename(path) - Returns the last element of a path.
base64decode(string) - Given a base64-encoded string, decodes it and
returns the original string.
| https://gnu-linux.org/building-ubuntu-rootfs-for-arm.html | |
| "2) Extract the downloaded image with ‘sudo’ to allow ‘mknod’ commands to work" | |
| # get a cloud image from here | |
| # https://cloud-images.ubuntu.com/daily/server/xenial/ | |
| # https://cloud-images.ubuntu.com/daily/server/xenial/current/ | |
| # based on https://bazaar.launchpad.net/~maas-images-maintainers/maas-images/maas-ephemerals/view/head:/bin/img2squashfs#L161 | |
| # extract a cloud image rootfs to a directory, sudo is needed for `mknod`s to work | |
| # doesn't have to be .tar.gz - could well unsquashfs an existing squashfs |
| #!/usr/bin/env bash | |
| function contains { | |
| local e match="$1" | |
| shift | |
| for e; do [[ "$e" == "$match" ]] && return 0; done | |
| return 1 | |
| } | |
| function remove_toplevel { |
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