These are books, grouped by author name, that I have read or re-read in the past couple of years and that I think other people might enjoy.
Ann Leckie
- Ancillary Justice
- Ancillary Sword
- Ancillary Mercy
- Provenance
This exemplary initial setup uses two devices /dev/sdb and /dev/sdc but can be applied to any amount of devices by following the steps with additional devices.
Create keyfile:
dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkey| let | |
| hpack2nix = | |
| name: src: | |
| let | |
| addCabalFile = stdenv.mkDerivation { | |
| inherit name src; | |
| phases = [ "unpackPhase" "patchPhase" "installPhase" ]; | |
| installPhase = ''cp -r . $out''; | |
| patchPhase = '' | |
| ${haskellPackages.hpack}/bin/hpack |
| { pkgs, lib, config, ... }: | |
| { | |
| networking = { | |
| firewall.allowedTCPPorts = [ | |
| 3000 # grafana | |
| 9090 # prometheus | |
| 9093 # alertmanager | |
| ]; | |
| useDHCP = true; | |
| }; |
| {config, ...}: | |
| let | |
| allowHttps = true; | |
| serverTemplate = { | |
| domain, | |
| proxyTarget, | |
| redirectWww ? false, | |
| enableHttps ? false | |
| }: let |
| import akka.actor._ | |
| import akka.pattern.ask | |
| import akka.util._ | |
| import akka.util.duration._ | |
| import scala.util.control.Exception._ | |
| /** | |
| * To test, execute this code and use this command in a shell: "telnet localhost 8080" | |
| * At the prompt, type in numbers and press enter, and they will be accumulated, returning | |
| * the total value each time. |