Skip to content

Instantly share code, notes, and snippets.

View tbjers's full-sized avatar
🙃

Torgny Bjers tbjers

🙃
View GitHub Profile
@tbjers
tbjers / code.py
Created November 25, 2021 05:51 — forked from anecdata/code.py
TileGrid terminalio
import sys
import board
import displayio
import terminalio
display = board.DISPLAY # or equivalent external display library
splash = displayio.Group()
fontx, fonty = terminalio.FONT.get_bounding_box()
@tbjers
tbjers / gpg-ssh-setup.md
Created September 24, 2021 19:15 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@tbjers
tbjers / instructions.md
Created February 4, 2021 15:40 — forked from douglasmiranda/instructions.md
Add email to Keybase.io PGP Key (Public Key)

Export your public key:

keybase pgp export > keybase-public.key

Export your private key:

keybase pgp export --secret > keybase-private.key
@tbjers
tbjers / attribute_requirements.rb
Created February 28, 2016 04:01 — forked from bvandgrift/attribute_requirements.rb
a terrible way to determine whether attrs on an ActiveRecord model are optional or required when using grape.
module AttributeRequirements
extend ActiveSupport::Concern
SQL_TYPE_MATCHERS = {
/^character varying/ => String,
/^text/ => String,
/^enum/ => String,
/^timestamp/ => DateTime,
/^integer/ => Integer,
1 leek plant
1 bushel of asparagus
2 cups veggie broth
1 table spoon Butter
1 table spoon olive oil
Salt & pepper
First cut leek and asparagus into smaller less then 2 inch pieces.
Melt butter with olive oil