Skip to content

Instantly share code, notes, and snippets.

@allanbreyes
allanbreyes / .sops.yaml
Last active October 3, 2022 14:24
Key-value CLI wrapping sops
# Place this file in $HOME and edit according to your environment.
# See: https://github.com/mozilla/sops#using-sops-yaml-conf-to-select-kms-pgp-for-new-files
creation_rules:
- pgp: <changeme>
kms: <changeme>
@allanbreyes
allanbreyes / dataclasses.py
Created March 10, 2021 14:38
Python 3 dataclass inheritance
from dataclasses import dataclass
@dataclass
class Parent:
foo: str = "bar"
@dataclass
class Son(Parent):
@allanbreyes
allanbreyes / max.json
Last active February 26, 2021 04:20
planck
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "planck/rev6",
"keymap": "planck_rev6_layout_ortho_4x12_mine",
"layout": "LAYOUT_ortho_4x12",
"layers": [
[
"KC_TAB",
@allanbreyes
allanbreyes / store.py
Created November 27, 2020 17:42
Simple CLI key-value store
#!/usr/bin/env python3
import argparse
import os
import sqlite3
import sys
class Store(object):
DATABASE = os.path.join(os.path.expanduser("~"), ".store.db")

Keybase proof

I hereby claim:

  • I am allanbreyes on github.
  • I am allanbreyes (https://keybase.io/allanbreyes) on keybase.
  • I have a public key ASCom1ksnHSvRQY4Tml3xVWsWlVZnWjpRKKEmgyuZiORYwo

To claim this, I am signing this object: