Skip to content

Instantly share code, notes, and snippets.

@ryboe
ryboe / config.yml
Last active November 10, 2022 07:54
Example CircleCI Config for Golang
# .circleci/config.yml
version: 2.1
jobs:
# This build job just tests that the binary can build. If your project is a
# library, not a binary, you don't need this build job. In other words, omit
# this job if you don't have a func main() in your project.
build:
docker:
@akihikodaki
akihikodaki / README.en.md
Last active December 2, 2025 01:21
Linux Desktop on Apple Silicon in Practice

Linux Desktop on Apple Silicon in Practice

I bought M1 MacBook Air. It is the fastest computer I have, and I have been a GNOME/GNU/Linux user for long time. It is obvious conclusion that I need practical Linux desktop environment on Apple Silicon.

Fortunately, Linux already works on Apple Silicon/M1. But how practical is it?

  • Two native ports exist.
@TACIXAT
TACIXAT / main.go
Created September 6, 2021 00:06
babuk nas encryptor
package main
import (
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"runtime"
"strings"
@Paraphraser
Paraphraser / Checking your Raspberry Pi's view of its power supply.md
Last active November 15, 2025 09:50
Checking your Raspberry Pi's view of its power supply (sometimes it's not the wall-wart)

Checking your Raspberry Pi's view of its power supply

Sometimes it seems like the first (and sometimes only) advice you get offered for almost any problem with a Raspberry Pi is "check your power supply". You think something like:

"hey, I'm using an official power supply sold as being matched with my Pi so how can there be any problem?"

You look up the specs then stick a controlled load across your supply and confirm that it can deliver the required number of Watts.

Yet your problems persist…

@Kranzes
Kranzes / guide.md
Last active November 22, 2025 09:20
SSH Resident Key Guide

Initial checks

Start by checking that there aren't any previous ssh keys inside the FIDO2 authenticator of your YubiKey. You can check if they exist by running the command below:

nix shell nixpkgs#yubikey-manager -c ykman fido credentials list

If the command above outputs a string mentioning "ssh" or "openssh", then you have already got a key generated and store on your YubiKey.

Evaluating additional authentication factors

Before generating a new ssh key to store on your YubiKey you must consider which additional required authentication factors you want to use. Below you can see a table with the available factors and their corresponding command: