For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
# ------------------------------------ | |
# Docker alias and function | |
# ------------------------------------ | |
# Get latest container ID | |
alias dl="docker ps -l -q" | |
# Get container process | |
alias dps="docker ps" |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: foo-sa | |
namespace: foo | |
--- | |
kind: SecurityContextConstraints | |
apiVersion: v1 | |
metadata: | |
annotations: |
oc get po glusterblock-storage-provisioner-dc-1-864g5 -o yaml | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
annotations: | |
kubernetes.io/created-by: | | |
{"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicationController","namespace":"glusterfs","name":"glusterblock-storage-provisioner-dc-1","uid":"4a94ebd4-4402-11e8-8ea9-005056a2d8cc","apiVersion":"v1","resourceVersion":"18370005"}} | |
openshift.io/deployment-config.latest-version: "1" | |
openshift.io/deployment-config.name: glusterblock-storage-provisioner-dc | |
openshift.io/deployment.name: glusterblock-storage-provisioner-dc-1 |
Documenting this here, as I often forget (what I have found) is the best way to do this at the moment.
For example, you have a list of two existing security groups given to a stack and wish to create (and use) a third - attaching all to an ALB:
AWSTemplateFormatVersion: "2010-09-09"
Description: "Example template"
Parameters:
The security group and Network ACLs parts of CloudFormation templates can be difficult to read. This template containing Jinja macros converts easier-to-read YAML dictionaries of security group and NACL rules into JSON.
Here ais a generic macro template and some example files showing how to use it.
I hereby claim:
To claim this, I am signing this object:
# shortform git commands | |
alias g='git' | |
# pretty tab'd git log | |
git log --graph --pretty="tformat:%h*(%ar)*<%an>*%d %s" $* | sed -Ee 's/(^[^<]*) ago\)/\1)/' | sed -Ee 's/(^[^<]*), [[:digit:]]+ .*months?\)/\1)/' | column -s '*' -t | cat | |
# change author of all git repos | |
git filter-branch -f --env-filter "GIT_AUTHOR_NAME='yourname'; GIT_AUTHOR_EMAIL='[email protected]'; GIT_COMMITTER_NAME='yourname'; GIT_COMMITTER_EMAIL='[email protected]';" HEAD; | |
# stage only deleted files |