Skip to content

Instantly share code, notes, and snippets.

View knkski's full-sized avatar
🏠
Working from home

Kenneth Koski knkski

🏠
Working from home
View GitHub Profile
@knkski
knkski / microk8s-on-aws.md
Last active August 31, 2021 16:28
MicroK8s on AWS

Bootstrap AWS instance

# These commands should be run on your local machine, e.g. laptop
# If you already have an AWS instance handy, skip to `Install dependencies` step
juju bootstrap \
          --bootstrap-constraints "cores=2 mem=4G" \
          --config mongo-memory-profile=low \
          --model-default logging-config="<root>=DEBUG" \
          aws/us-east-1 \
 uk8saws
@knkski
knkski / object-storage.yaml
Last active April 5, 2021 19:37
Object Storage Interface YAML Definition
v1:
provides:
type: object
properties:
access-key:
type: string
namespace:
type: ['string', 'null']
port:
type: number
@knkski
knkski / pyproject.toml
Last active May 1, 2019 17:13
Charm metadata proposal
# Proposed syntax for pyproject.toml that would be understood by
# charmtools. A few different syntaxes for defining dictionaries
# are shown to demonstrate TOML syntax.
# The hook that allows our tooling to get called
[build-system]
requires = ["charmtools", "wheel"]
build-backend = "charmtools:pip"
# Define both the default official layer source, and a custom, internal one
@knkski
knkski / reactive.py
Last active March 25, 2019 15:26
Reactive State Machine
"""Defines and runs a reactive state machine."""
from typing import Dict, List
class State:
"""Represents a discrete state that a state machine can be in.
Every state machine should define exactly one initial state with `initial=True`.
Every state machine can transition to an auto-generated Failed state (from any
@knkski
knkski / Instructions.md
Last active March 12, 2024 07:51
Ubuntu 18.04 mouse gestures setup on Wayland

gesture swipe left _internal --row=2 ws_down

@knkski
knkski / PebbleTimeRound.md
Created September 5, 2018 14:35
Installing Pebble Time Round firmware

Keybase proof

I hereby claim:

  • I am knkski on github.
  • I am kennethkoski (https://keybase.io/kennethkoski) on keybase.
  • I have a public key whose fingerprint is 16A5 539B 6175 476C E8DC C008 C238 5CD8 999B D2DE

To claim this, I am signing this object: