Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View borsboom's full-sized avatar

Emanuel Borsboom borsboom

  • FP Complete
  • Mayne Island, unceded territory of the Coast Salish peoples
View GitHub Profile
@borsboom
borsboom / keybase.md
Created October 27, 2017 13:42
keybase.md

Keybase proof

I hereby claim:

  • I am borsboom on github.
  • I am borsboom (https://keybase.io/borsboom) on keybase.
  • I have a public key ASDP2vWHrEFv44PE7xXjRUtzjjQf1o8MB5IXAGsYLj6NVgo

To claim this, I am signing this object:

@borsboom
borsboom / aws-env
Last active January 27, 2017 00:24
aws-env: Wrapper for AWS temporary sessions using MFA and roles
Moved to https://github.com/fpco/devops-helpers/blob/master/aws/aws-env.sh

Keybase proof

I hereby claim:

  • I am borsboom on github.
  • I am borsboom (https://keybase.io/borsboom) on keybase.
  • I have a public key whose fingerprint is 2C6A 674E 85EE 3FB8 96AF C9B9 6510 1FF3 1C5C 154D

To claim this, I am signing this object:

@borsboom
borsboom / gist:7bd922f62e62c42f4aaa3c5f4e24cad6
Created November 16, 2016 18:21
store-0.3 armv7 test log
Data.Store.Streaming
conduitEncode and conduitDecode
Roundtrips ([Int]).
Roundtrips ([Int]), with chunked transfer.
Throws an Exception on incomplete messages.
Throws an Exception on excess input.
peekMessage
ByteString
demands more input when needed.
demands more input on incomplete message magic.
@borsboom
borsboom / get-stack.sh
Created June 14, 2016 22:32
Stack installer script
#!/bin/sh -e
HOME_LOCAL_BIN="$HOME/.local/bin"
USR_LOCAL_BIN="/usr/local/bin"
QUIET=""
STACK_TEMP_DIR=
# creates a temporary directory, which will be cleaned up automatically
# when the script finishes
make_temp_dir() {
@borsboom
borsboom / gist:ded19945b3421f08247d78101f9c8136
Last active June 9, 2016 23:16
Install Stack on Debian 8
$ vagrant init debian/jessie64
[...]
$ vagrant up && vagrant ssh
[...]
vagrant@debian-jessie:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 575159689BEFB442
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.Ifj1pzhlFf --no-auto-check-trustdb --trust-model always --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 575159689BEFB442
gpg: requesting key 9BEFB442 from hkp server keyserver.ubuntu.com
gpg: key 9BEFB442: public key
\begin{hcarentry}{(The Stack build tool)}
\report{Emanuel Borsboom}
\status{stable}
\label{stack}
\makeheader
Stack is a modern, cross-platform build tool for Haskell code. It is intended for
Haskellers both new and experienced.
Stack handles the management of your toolchain (including GHC — the Glasgow
module.webserver_test.aws_network_interface.lb_sites_1: Creating...
attachment.#: "" => "1"
attachment.1981553457.attachment_id: "" => "<computed>"
attachment.1981553457.device_index: "" => "1"
attachment.1981553457.instance: "" => "i-0df8dd6ed2cc566dc"
private_ips.#: "" => "2"
private_ips.2160434227: "" => "172.17.0.101"
private_ips.432852361: "" => "172.17.0.102"
security_groups.#: "" => "<computed>"
source_dest_check: "" => "1"
@borsboom
borsboom / .gitignore
Last active September 2, 2015 16:20
`stack` slides for HIW'15
/wai/
@borsboom
borsboom / Sentinel.hs
Last active July 20, 2018 12:28
hedis wrapper for Redis Sentinel support
{-# LANGUAGE DeriveDataTypeable, FlexibleContexts, MultiParamTypeClasses, NamedFieldPuns,
NoImplicitPrelude, OverloadedStrings, RankNTypes, ScopedTypeVariables, TupleSections,
ConstraintKinds, TemplateHaskell, StandaloneDeriving #-}
{-# OPTIONS_GHC -funbox-strict-fields -Wall -Werror #-}
-- dependencies: hedis retry safe data-default uuid monad-logger basic-prelude lifted-base either
-- | Wrapper for hedis to support redis-sentinel. It is
-- built-atop of, and re-exports most of, the "Database.Redis" module.
--