Skip to content

Instantly share code, notes, and snippets.

View sdorminey's full-sized avatar

Star Dorminey sdorminey

  • Seattle, WA
View GitHub Profile
import qualified Data.Map.Strict as Map
import Control.Monad.Trans.State.Strict
import Control.Monad
import Control.Monad.Reader
import Data.Maybe (fromMaybe, maybeToList, isJust)
import Control.Applicative
import Data.Functor
import Data.Bifunctor (Bifunctor(bimap))
import Data.Bitraversable (bimapAccumL)
import qualified Data.Set as Set
@sdorminey
sdorminey / Error
Created April 18, 2019 09:21
Kubenix, man...
[mabel ~/blorg] nix-build -A shell --show-trace
error: while evaluating the attribute 'buildInputs' of the derivation 'nix-shell' at /nix/store/x5pr7imylmp2j9
while evaluating the attribute 'text' of the derivation 'deploy-to-minikube' at /nix/store/x5pr7imylmp2j9rbw9b
while evaluating 'escapeShellArg' at /nix/store/x5pr7imylmp2j9rbw9b4394yvd60aqa0-nixpkgs-19.09pre174594.0c0954
while evaluating the attribute 'kubernetes.objects' at undefined position:
while evaluating anonymous function at /nix/store/x5pr7imylmp2j9rbw9b4394yvd60aqa0-nixpkgs-19.09pre174594.0c09
while evaluating the attribute 'value' at /nix/store/x5pr7imylmp2j9rbw9b4394yvd60aqa0-nixpkgs-19.09pre174594.0
while evaluating the option `kubernetes.objects':
while evaluating 'apply' at /home/mabel/blorg/kubenix/modules/k8s.nix:255:15, called from /nix/store/x5pr7imyl
while evaluating 'unique' at /nix/store/x5pr7imylmp2j9rbw9b4394yvd60aqa0-nixpkgs-19.09pre174594.0c0954781e2/ni
@sdorminey
sdorminey / neovim.nix
Created April 12, 2019 04:23
Neovim config
{ config, pkgs, ... }:
with pkgs;
let
# Extra Vim plugins:
vim-elvish = vimUtils.buildVimPlugin {
name = "vim-elvish";
version = "2017-07-28T15:37:21-04:00";
src = fetchFromGitHub {
owner = "dmix";
@sdorminey
sdorminey / container-module.nix
Created April 12, 2019 01:41
Running into issues with chmod in my container registry module system.
{ config, lib, pkgs, ... }:
with lib;
let
# makeFiles = files:
# let
# files' = filter (f: f.enable) (attrValues files);
# in pkgs.stdenvNoCC.mkDerivation {
# name = "etc";
#
@sdorminey
sdorminey / cmake.log
Created April 2, 2019 20:26
vtk-8.0.0 error
these derivations will be built:
/nix/store/r13hdgag7bbi9q78ns86814hsm3vrr47-vtk-8.0.0.drv
building '/nix/store/r13hdgag7bbi9q78ns86814hsm3vrr47-vtk-8.0.0.drv'...
unpacking sources
unpacking source archive /nix/store/63l3h83h225icbd5fcqjyl449qiicx3l-source
source root is source
patching sources
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/vi9hb5qr8w3f92qidi992dp4nwm2465l-vtk-8.0.0/include -DCMAKE_INSTALL_LIBDIR=/nix/store/vi9hb5qr8w3f92qidi992dp4nwm2465l-vtk-8.0.0/lib -DCMAKE_INSTALL_NAME_DIR=/nix/store/vi9hb5qr8w3f92qidi992dp4nwm2465l-vtk-8.0.0/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_DEPLOYMENT_TARGET= -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=last -DCMAKE_STRIP=/nix/store/0y7jmqnj48ikjh37n3dl9kqw9hnn68nq-binutils-2.31.1/bin/strip -DCMAKE_RANLIB=/nix/store/0y7jmqnj48ikj
@sdorminey
sdorminey / Errors
Created January 13, 2019 08:03
PR fails (bundling language with Python VS Code extension.)
builder for '/nix/store/401qbgsa1cyjnxln2h9qr4rnksab94xs-vscode-extension-ms-python-python-2018.12.1.drv' failed with exit code 123; last 10 log lines:
mv: cannot remove './languageServer.0.1.75/Typeshed/stdlib/2/exceptions.pyi': Permission denied
mv: cannot remove './languageServer.0.1.75/Typeshed/stdlib/2/future_builtins.pyi': Permission denied
mv: cannot remove './languageServer.0.1.75/Typeshed/stdlib/2/sre_parse.pyi': Permission denied
mv: cannot remove './languageServer.0.1.75/Typeshed/stdlib/2/builtins.pyi': Permission denied
mv: cannot remove './languageServer.0.1.75/Typeshed/stdlib/2/gettext.pyi': Permission denied
mv: cannot remove './languageServer.0.1.75/Typeshed/stdlib/2/io.pyi': Permission denied
mv: cannot remove './languageServer.0.1.75/Typeshed/stdlib/2/_hotshot.pyi': Permission denied
mv: cannot remove './languageServer.0.1.75/ja/StreamJsonRpc.resources.dll': Permission denied
mv: cannot remove './languageServer.0.1.75/ja/Microsoft.VisualStudio.Validation.resources.dll': Per
@sdorminey
sdorminey / all-envs.nix
Created January 10, 2019 06:38
Python environment!
{ pkgs ? import <nixpkgs> {}
, extraPkgs ? ""
, extraPaths ? ""}:
let
python-env = import ./envs/python-env.nix {
inherit pkgs;
};
split = str: builtins.filter (s: builtins.stringLength s > 0) (pkgs.lib.splitString "," str);
in
@sdorminey
sdorminey / URLs.md
Last active January 5, 2019 04:22
Pydbgp download failure
@sdorminey
sdorminey / gist:8908531
Created February 10, 2014 00:57
IRA deaths CSV file
Name, Age, IncidentDay, DeathDay, Status, Organization, Longitude, Latitude
Francis McCloskey, 67, 13 July 1969, 14 July 1969, Civilian, British Security, -6.9194480, 54.9261460
Samuel Devenny, 42, 19 April 1969, 17 July 1969, Civilian, British Security, -7.3257280,54.9986070
Patrick Corry, 61, 2 August 1969, 1 December 1969, Civilian, British Security, -5.9363960,54.6038100
John Gallagher, 30, 14 August 1969, 14 August 1969, Civilian, British Security, -6.6719670,54.3517810
Herbert Roy, 26, 15 August 1969, 15 August 1969, Civilian, Republican Paramilitary, -5.9427630,54.6003240
Patrick Rooney, 9, 14 August 1969, 14 August 1969, Civilian, British Security, -5.9443540,54.5994530
Hugh McCabe, 20, 15 August 1969, 15 August 1969, British Security, British Security, -5.9443540,54.5994530
Samuel McLarnon, 27, 15 August 1969, 15 August 1969, Civilian, British Security, -5.9591430,54.6131810
Michael Lynch, 28, 15 August 1969, 15 August 1969, Civilian, British Security, -5.9606900,54.6132070
@sdorminey
sdorminey / gist:8819151
Last active August 29, 2015 13:56
KML markers of IRA deaths
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Placemark><name>Francis McCloskey</name><description>age="67" incident="13 July 1969" death="14 July 1969" photo="" status="Civilian" organization="British Security"</description> <Point><coordinates>-6.9194480,54.9261460</coordinates></Point></Placemark>
<Placemark><name>Samuel Devenny</name><description>age="42" incident="19 April 1969" death="17 July 1969" photo="Devenny_Samuel_170769.jpg" status="Civilian" organization="British Security"</description> <Point><coordinates>-7.3257280,54.9986070</coordinates></Point></Placemark>
<Placemark><name>Patrick Corry</name><description>age="61" incident="2 August 1969" death="1 December 1969" photo="Corry_Patrick_011269.jpg" status="Civilian" organization="British Security"</description> <Point><coordinates>-5.9363960,54.6038100</coordinates></Point></Placemark>
<Placemark><name>John Gallagher</name><description>age="30" incident="14 August 1969" death="14 August 1969" ph