Skip to content

Instantly share code, notes, and snippets.

@noteed
noteed / docker-ovs.md
Last active December 29, 2023 07:07
Docker - Open vSwitch setup
@noteed
noteed / .gitignore
Last active January 9, 2023 21:53
Pandoc, YAML, JSON, CSV, Sqlite
hosts.csv
hosts.db
@noteed
noteed / Tufte.md
Last active January 6, 2023 23:25
Pandoc, Tufte CSS

Pandoc, Tufte CSS, and more

@noteed
noteed / nix-cache.md
Last active December 7, 2022 07:20
Nix cache

Notes about caching Nix builds

You can use Cachix (I haven't tried it yet but people are happy with it), or spend time like I do crawling through similar notes.

I have to put back my notes in order, because of this tweets: https://twitter.com/noteed/status/1285875859468029958

It turns out I did use a cache on Digital Ocean Spaces in the past, but I didn't have much notes.

Links

@noteed
noteed / minimal-docker-haskell.md
Last active August 20, 2022 01:20
Notes about creating small Docker images with Haskell binaries.
@noteed
noteed / README.md
Last active August 25, 2021 18:55
Playing with Inter
@noteed
noteed / classes.hs
Created August 22, 2021 22:01
Capabilities ?
data V4 = V4 deriving Show
data V6 = V6 deriving Show
class V4Getter getter where getIPV4 :: getter -> IO V4
class V6Getter getter where getIPV6 :: getter -> IO V6
class (V4Getter getter, V6Getter getter) => V4V6Getter getter
@noteed
noteed / README.md
Last active March 20, 2021 22:21
Pandoc, SQLite, and FTS

This is a Gist demonstrating how to populate a SQLite database with some content coming from a Markdown file, adding full-text search capability, and querying it with a small Scotty-based web server.

In particular, this uses

  • direnv and a shell.nix file to easily get a development environment,
  • pandoc --to markdown to remove any metadata block (an alternative is --to plain,
  • SQLite's readile function to insert the content of a file in the database,
  • SQLite's FTS feature,
@noteed
noteed / README.md
Last active January 30, 2021 12:36
Learn Jira
@noteed
noteed / README.md
Last active October 10, 2020 15:38
Steam on NixOS

Steam on NixOS

A wiki page exists: https://nixos.wiki/wiki/Steam.

I started with simply nix-shell -p steam, which failed with a 404 while trying to download some .deb. I updated my nixos channel, then tried again, and got a shell.

Then I run the following and got a problem: