I hereby claim:
- I am edwtjo on github.
- I am edwtjo (https://keybase.io/edwtjo) on keybase.
- I have a public key whose fingerprint is 7FD9 0C40 78AD 3CC6 B6E5 C172 50C5 4E31 D592 E068
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/awk -f | |
| # Purges and regenerates contact book display names | |
| # Delete current contact display name | |
| !/^N:/ | |
| # Generate a new contact display name on the form: | |
| # N:LASTNAME_1;FIRSTNAME_1;..;FIRSTANME_n;LASTNAME_2;..;LASTNAME_m;;; | |
| /^FN:.*/{ |
| #! /usr/bin/env nix-shell | |
| #! nix-shell -i runghc -p "haskellPackages.ghcWithPackages (p: with p; [bytestring pandoc text base16-bytestring])" | |
| #! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/7465bcd67a2177c63adeec66398b1b581260b31e.tar.gz | |
| {-# LANGUAGE OverloadedStrings #-} | |
| import Crypto.Hash | |
| import Control.Monad (unless) | |
| import Data.ByteString (ByteString) | |
| import Data.Byteable (toBytes) |
| #! /usr/bin/env nix-shell | |
| #! nix-shell -i runghc -p "haskellPackages.ghcWithPackages (p: with p; [pandoc])" | |
| #! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/7465bcd67a2177c63adeec66398b1b581260b31e.tar.gz | |
| import Text.Pandoc.JSON | |
| removeComments :: Block -> IO Block | |
| removeComments cb@(CodeBlock (id, classes, namevals) contents) = | |
| if "comment" `elem` classes then | |
| return $ Para [] |
| #!/bin/sh | |
| orig=`echo $NIX_PATH | sed -e "s,.*nixos-config=\(.*\)\.nix,\1.nix,"` | |
| export NIX_REMOTE="" | |
| buildAndSwitch() { | |
| sudo -E nix-build \ | |
| -A system '<nixpkgs/nixos>' \ | |
| --option use-binary-caches false | |
| sudo -E nixos-rebuild switch --option use-binary-caches false |