Skip to content

Instantly share code, notes, and snippets.

@MaxGabriel
MaxGabriel / gist:2e8e20ab31edfa18a3f09e2fcd295b3c
Created January 24, 2018 16:08
HsOpenSSL install issue --cabal-verbose output only
maximiliantagher@Maximilians-MacBook-Pro ~/D/M/h/mercury-web-backend> stack build --cabal-verbose
HsOpenSSL-0.11.4.11: configure
Progress: 1/2
-- While building custom Setup.hs for package HsOpenSSL-0.11.4.11 using:
/private/var/folders/v7/5k06hq7d3wbb4cvk8smv6kl00000gn/T/stack23703/HsOpenSSL-0.11.4.11/.stack-work/dist/x86_64-osx/Cabal-1.24.2.0/setup/setup --verbose --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 configure --with-ghc=/Users/maximiliantagher/.stack/programs/x86_64-osx/ghc-8.0.2/bin/ghc --with-ghc-pkg=/Users/maximiliantagher/.stack/programs/x86_64-osx/ghc-8.0.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/maximiliantagher/.stack/snapshots/x86_64-osx/lts-9.14/8.0.2/pkgdb --libdir=/Users/maximiliantagher/.stack/snapshots/x86_64-osx/lts-9.14/8.0.2/lib --bindir=/Users/maximiliantagher/.stack/snapshots/x86_64-osx/lts-9.14/8.0.2/bin --datadir=/Users/maximiliantagher/.stack/snapshots/x86_64-osx/lts-9.14/8.0.2/share --libexecdir=/Users/maximiliantagher/.sta
@MaxGabriel
MaxGabriel / gist:121b74e727e713869f9d739dd27da26b
Created January 24, 2018 16:04
HsOpenSSL install verbose output
maximiliantagher@Maximilians-MacBook-Pro ~/D/M/h/mercury-web-backend> stack build --verbose --cabal-verbose
Version 1.6.0.20171202, Git revision 50090e67c16980bba31349f386d5b018cbcaec31 (5421 commits) x86_64 hpack-0.20.0
2018-01-24 08:02:16.092437: [debug] Checking for project config at: /Users/maximiliantagher/Documents/Mercury/hs/mercury-web-backend/stack.yaml
@(Stack/Config.hs:842:9)
2018-01-24 08:02:16.096729: [debug] Loading project config file stack.yaml
@(Stack/Config.hs:868:13)
2018-01-24 08:02:16.098805: [debug] Decoding build plan from: /Users/maximiliantagher/.stack/build-plan/lts-9.14.yaml
@(Stack/Snapshot.hs:150:5)
2018-01-24 08:02:16.098903: [debug] Trying to decode /Users/maximiliantagher/.stack/build-plan-cache/lts-9.14.cache
@(Data/Store/VersionTagged.hs:66:5)
bash-3.2$ command -v sw_vers && sw_vers # OS X only
/usr/bin/sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.2
BuildVersion: 17C205
bash-3.2$ command -v uname && uname -a # Kernel version
/usr/bin/uname
Darwin Maximilians-MBP 17.3.0 Darwin Kernel Version 17.3.0: Thu Nov 9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64 x86_64
bash-3.2$ command -v stack && stack --version
/usr/local/bin/stack
maximiliantagher@Maximilians-MBP ~/D/t/citext> bash
bash-3.2$ command -v sw_vers && sw_vers # OS X only
/usr/bin/sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.2
BuildVersion: 17C88
bash-3.2$ command -v uname && uname -a # Kernel version
/usr/bin/uname
Darwin Maximilians-MBP 17.3.0 Darwin Kernel Version 17.3.0: Thu Nov 9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64 x86_64
bash-3.2$ command -v stack && stack --version
bash-3.2$ command -v sw_vers && sw_vers # OS X only
/usr/bin/sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.1
BuildVersion: 17B1003
bash-3.2$ command -v uname && uname -a # Kernel version
/usr/bin/uname
Darwin Maximilians-MBP 17.2.0 Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64
bash-3.2$ command -v stack && stack --version
/usr/local/bin/stack
@MaxGabriel
MaxGabriel / gist:9e757f2da60ac53b45bb06b2b097d86b
Last active October 31, 2019 22:45
persistent-postgresql case insensitive text
-- First enable citext in psql: CREATE EXTENSION IF NOT EXISTS citext;
-- Create Model/CustomTypes.hs
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Model.CustomTypes where
maximiliantagher@Maximilians-MBP ~/D/t/stack-issue> stack ghci --verbose
Version 1.5.1, Git revision 600c1f01435a10d127938709556c1682ecfd694e (4861 commits) x86_64 hpack-0.17.1
2017-11-16 14:30:58.199868: [debug] Checking for project config at: /Users/maximiliantagher/Documents/tmp/stack-issue/stack.yaml
@(Stack/Config.hs:974:9)
2017-11-16 14:30:58.200754: [debug] Loading project config file stack.yaml
@(Stack/Config.hs:999:13)
2017-11-16 14:30:58.201947: [debug] Trying to decode /Users/maximiliantagher/.stack/build-plan-cache/x86_64-osx/lts-9.13.cache
@(Data/Store/VersionTagged.hs:72:5)
2017-11-16 14:30:58.215946: [debug] Success decoding /Users/maximiliantagher/.stack/build-plan-cache/x86_64-osx/lts-9.13.cache
@(Data/Store/VersionTagged.hs:76:13)

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@MaxGabriel
MaxGabriel / molecules.rb
Last active November 15, 2016 04:15
Script written to simulate merging of hyaluronic acid molecules
#!/usr/bin/env ruby
require 'csv'
require 'set'
## HA (hyaluronic acid) molecule merging script
## Written by Max Tagher, licensed to the Public Domain under Creative Commons Zero 1.0
### Overview
# This script runs a simulation of HA molecules merging with one another.
@MaxGabriel
MaxGabriel / main.hs
Created April 23, 2016 22:29
Example usage of Data.Reaper
{-# LANGUAGE MultiWayIf #-}
module Main where
import Data.Time
import System.Random
import Control.Reaper
import Control.Concurrent
import Control.Monad
import Data.IORef