Clone this Gist:
git clone git@gist.github.com:/bbe689928cfa6ca1e55b7f2506e09626.git try-devenv-lock
This Gist demonstrates how devenv.lock can be parsed from plain Nix to
resolve inputs without enabling flakes.
This Gist is similar to https://gist.github.com/noteed/8656989 which uses Open vSwitch instead of Tinc.
Download the install.sh script and run it:
> https://gist.githubusercontent.com/noteed/11031504/raw/install.sh
| -- Parse expressions layed out on multiple lines (as long as they're indented). | |
| -- It works by using the standard @makeExprParser@ and passing it versions of, | |
| -- say, the @lexeme'@ combinator that check the current indentation against an | |
| -- initial one. | |
| {-# LANGUAGE OverloadedStrings #-} | |
| import Control.Monad (guard) | |
| import Control.Monad.Combinators.Expr | |
| import Data.Void | |
| import Text.Megaparsec |
| include layout-page.slab | |
| let titl = "Setting up a Nix binary cache" | |
| let date = "2024-06-05" | |
| page{titl, date} | |
| style. | |
| pre, code { | |
| max-width: 100%; |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>/home/thu/projects/slab/src/Slab/Command.hs</title> | |
| <meta name="colorscheme" content="wildcharm"></meta> | |
| <style> | |
| * {font-family: monospace} | |
| body {background-color: #ffffff; color: #000000; margin:0px; padding:0px; margin-top: 13.5px; margin-left: -0.5px;} | |
| .String {color: #0000c0} |
This Gist shows how to use Open vSwitch to bridge Docker containers on two hosts. It is based on this blog post http://goldmann.pl/blog/2014/01/21/connecting-docker-containers-on-multiple-hosts/.
A similar Gist using Tinc instead of Open vSwitch is available: https://gist.github.com/noteed/11031504.
| hosts.csv | |
| hosts.db |
tufte.html5 file is identical. Untouched (excepted the README) since November 2017.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.
At first I haven't manage yet to do what I want. In this thread, there is a solution: http://mail.haskell.org/pipermail/haskell-cafe/2015-April/119021.html for the dynamic case. See below for the complete rootfs I use (similar thus to https://github.com/snoyberg/haskell-scratch).
We want a minimal Docker image with the following program.
> cat Example.hs
main = putStrLn "Hello, world."