Skip to content

Instantly share code, notes, and snippets.

@noteed
noteed / README.md
Last active Aug 25, 2021
Playing with Inter
View README.md
@noteed
noteed / classes.hs
Created Aug 22, 2021
Capabilities ?
View classes.hs
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 Jan 30, 2021
Learn Jira
View README.md
@noteed
noteed / README.md
Last active Oct 10, 2020
Steam on NixOS
View README.md

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:

@noteed
noteed / Dockerfile
Last active Oct 8, 2020
Learn CadQuery
View Dockerfile
# Adapted from
# https://raw.githubusercontent.com/kalemena/docker-cadquery/master/Dockerfile.
FROM ubuntu:18.04
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# Compiler tools
RUN apt-get update -y \
&& apt-get install -qqy \
wget bzip2 ca-certificates software-properties-common \
View 1.Dockerfile
FROM alpine:3.12
ADD file-1.txt /
@noteed
noteed / README.md
Last active Mar 20, 2021
Pandoc, SQLite, and FTS
View README.md

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 / Tufte.md
Last active Jul 24, 2020
Pandoc, Tufte CSS
View Tufte.md

Pandoc, Tufte CSS, and more

View nix-cache.md

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 / md.md
Last active Jul 18, 2020
Markdown tricks
View md.md

Markdown tricks

Note that GitHub and Pandoc have different behaviors.

Checkboxes

  • Unchecked
  • Checked