kctrl
cannot update package installations interactively. This helps. Needs gum.
#@ load("@ytt:yaml", "yaml") | |
#@ load("@ytt:overlay", "overlay") | |
#@ load("@ytt:struct", "struct") | |
#@ def _doc(map): | |
--- #@ map | |
#@ end | |
--- | |
#@ def _missing_ok(map): |
run: | |
tests: false | |
issues: | |
include: | |
- EXC0001 | |
- EXC0005 | |
- EXC0011 | |
- EXC0012 | |
- EXC0013 |
Disclaimer: this is gds' mental model of how tmux with Luan's config works. While they try to use terminology consistent with the rest of the world, they could easily be wrong. Corrections welcome.
Most of the time in tmux, you're in normal mode. When you type things, they go
This is my current "dev workflow" for quickly bootstrapping an Spring app on a Kubernetes cluster. The general approach is polyglot but you will need to use something like https://buildpacks.io instead of Jib to support non-JVM projects
This example uses skaffold
and kapp
so you will need to install from https://skaffold.dev/docs/install/ & https://k14s.io/
You will also need kubectl
installed and a Kubernetes cluster targetted. You can use Minikube, Kind or K3S for lightweight, local Kubernetes environment
export APPNAME=bootstrap-k8s
export DOCKER_REGISTRY=ojhughes
This is a script to return all DriveNow car locations for Berlin, Germany. It is easily changed to work with any other city DriveNow provides service in.
You need a DriveNow API key and auth token. It's easiest to get your's by logging into the DriveNow website and using your browser's dev tools.
#!/bin/bash | |
mkdir -p /opt/bin | |
curl -L `curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(contains("Linux") and contains("x86_64"))'` > /opt/bin/docker-compose | |
chmod +x /opt/bin/docker-compose |
Moved to git repository: https://github.com/denji/golang-tls
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
import sys | |
import math | |
from random import random | |
from PIL import Image, ImageOps, ImageEnhance | |
def dot(bits): | |
bits = bits & 7 | (bits & 112) >> 1 | (bits & 8) << 3 | bits & 128 | |
return unichr(0x2800 + bits) | |
class Grayscale24: |