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
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
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
# bash history | |
# echo 'shopt -s histappend' >> ~/.bashrc | |
# echo 'PROMPT_COMMAND="history -a;$PROMPT_COMMAND"' >> ~/.bashrc | |
# echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bashrc | |
shopt -s histappend | |
PROMPT_COMMAND="history -a;$PROMPT_COMMAND" | |
export HISTTIMEFORMAT= | |
# paths | |
export PATH=$PATH:~/bin |
Source: https://github.com/pstadler/keybase-gpg-github/blob/master/README.md
This is a step-by-step guide on how to create a GPG key on keybase.io, adding it to a local GPG setup and use it with Git and GitHub.
Although this guide was written for macOS, most commands should work in other operating systems as well.
Discussion on Hacker News.
gpg --import private_key.asc | |
gpg --list-secret-keys --keyid-format LONG | |
gpg --delete-secret-key <key> | |
gpg --edit-key <key> | |
passwd | |
git config --global user.signingkey <key> |
snippet rnccf | |
import React, { PropTypes } from 'react' | |
import { View, StyleSheet, Text } from 'react-native' | |
$1.propTypes = { | |
} | |
export default function ${1:FunctionName} (props) { | |
return ( |
#!/bin/bash | |
# cleanup tempest | |
neutron port-list --all-tenants | grep tempest | awk '{print $2}' | xargs -i neutron port-delete {} | |
neutron subnet-list --all-tenants | grep tempest | awk '{print $2}' | xargs -i neutron subnet-delete {} | |
neutron subnet-list --all-tenants | grep "100.FIXME" | awk '{print $2}' | xargs -i neutron subnet-delete {} | |
neutron net-list --all-tenants | grep tempest | awk '{print $2}' | xargs -i neutron net-delete {} | |
neutron net-list --all-tenants | grep snat-si-left_snat_ | awk '{print $2}' | xargs -i neutron net-delete {} | |
neutron security-group-list --all-tenants | grep tempest | awk '{print $2}' | xargs -i neutron security-group-delete {} | |
neutron router-list --all-tenants | grep tempest | awk '{print $2}' | xargs -i neutron router-delete {} |
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |