See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
from __future__ import unicode_literals | |
import logging | |
import json | |
logger = logging.getLogger(__name__) | |
logging.getLogger().setLevel(logging.INFO) | |
class PythonObjectEncoder(json.JSONEncoder): | |
"""Custom JSON Encoder that allows encoding of un-serializable objects |
Last updated March 28, 2021
There are now two ways to approach this:
This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions
# Source: https://gist.github.com/6fb3e7da327df9203d9d4c184fcb5831 | |
############################################################################## | |
# Combining Argo CD (GitOps), Crossplane (Control Plane), And Kubevela (OAM) # | |
# https://youtu.be/eEcgn_gU3SM # | |
############################################################################## | |
# Referenced videos: | |
# - Argo CD - Applying GitOps Principles To Manage Production Environment In Kubernetes: https://youtu.be/vpWQeoaiRM4 | |
# - Cloud-Native Apps With Open Application Model (OAM) And KubeVela: https://youtu.be/2CBu6sOTtwk |
docker run \ | |
--name {{printf "%q" .Name}} \ | |
{{- with .HostConfig}} | |
{{- if .Privileged}} | |
--privileged \ | |
{{- end}} | |
{{- if .AutoRemove}} | |
--rm \ | |
{{- end}} | |
{{- if .Runtime}} |
I hereby claim:
To claim this, I am signing this object:
# Set up ssh-agent | |
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initializing new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null | |
for i in .ssh/keys/*; do |