Skip to content

Instantly share code, notes, and snippets.

View NickSeagull's full-sized avatar

Nick Seagull NickSeagull

View GitHub Profile
@NickSeagull
NickSeagull / override.nix
Created July 6, 2022 11:17 — forked from oneingan/override.nix
zigbee2mqtt in nixos
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem}:
let
nodePackages = import ./default.nix {
inherit pkgs system;
};
in
nodePackages // {
@NickSeagull
NickSeagull / Main.hs
Created September 9, 2017 11:09 — forked from rahulmutt/Main.hs
Fast coproducts for Haskell & Eta
#!/usr/bin/env stack
{- stack
--resolver lts-6.27
--install-ghc
runghc
--package containers
-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE DataKinds #-}
compiler: ghc-8.2.0.20170404
compiler-check: match-exact
resolver: lts-8.8
setup-info:
ghc:
linux64:
8.2.0.20170404:
url: https://downloads.haskell.org/~ghc/8.2.1-rc1/ghc-8.2.0.20170404-x86_64-deb8-linux.tar.xz
content-length: 138846620
sha1: 3fd303b5753b095ce020131405dcf43199e6b447
@NickSeagull
NickSeagull / cheatsheet
Created January 3, 2017 13:48
Cheatsheet for the fugitive.vim VIM-Madrid meetup
# Basic commands
:Git [args] # does what you'd expect
all of your `~/.gitconfig` aliases are available.
:Git! [args] # same as before, dumping output to a tmp file
Moving inside a repo.
@NickSeagull
NickSeagull / SparkGrep.scala
Created July 30, 2016 23:28 — forked from mhausenblas/SparkGrep.scala
Scala Spark skeleton implementing grep
package spark.example
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
import org.apache.spark.SparkConf
object SparkGrep {
def main(args: Array[String]) {
if (args.length < 3) {
System.err.println("Usage: SparkGrep <host> <input_file> <match_term>")