Skip to content

Instantly share code, notes, and snippets.

View bgamari's full-sized avatar

Ben Gamari bgamari

View GitHub Profile
# from ./dist-newstyle/packagedb/ghc-8.1.20161223/
name: pipes-s3
version: 0.3.0.0
id: pipes-s3-0.3.0.0-inplace
key: pipes-s3-0.3.0.0-inplace
license: BSD3
copyright: (c) 2016 Ben Gamari
maintainer: ben@smart-cactus.org
homepage: http://github.com/bgamari/pipes-s3
[1557 ben@ben-laptop laura(master)] $ ls /home/ben/code/laura/dist-newstyle/packagedb/ghc-8.1.20161223
aeson-1.1.0.0-inplace.conf b-tree-0.1.3-inplace.conf foldl-1.2.2-inplace.conf http-parsers-0.1.0.0-inplace.conf log-domain-0.10.3.1-inplace.conf pipes-attoparsec-0.5.1.4-inplace.conf simplir-html-clean-0.1.0.0-inplace.conf vector-th-unbox-0.2.1.6-inplace.conf
attoparsec-0.13.1.0-inplace.conf bytes-0.15.2-inplace.conf hashable-extras-0.2.3-inplace.conf laura-0.1.0.0-inplace.conf mwc-random-0.13.5.0-inplace.conf pipes-s3-0.3.0.0-inplace.conf simplir-trec-0.1.0.0-inplace.conf warc-0.3.1-inplace.conf
aws-0.15-inplace.conf conduit-extra-1.1.15-inplace.conf html-parse-0.1.0.0-inplace.conf lens-4.15.1-inplace.conf package.cache safecopy-0.9.2-inplace.conf vector-0.12.0.0-inplace.conf xml-conduit-1.3.5-inplace.conf
binary-serialise-cbor
#!/usr/bin/python
import sys
import zmq
import time
ctx = zmq.Context().instance()
data_sock = ctx.socket(zmq.SUB)
data_sock.setsockopt(zmq.SUBSCRIBE, '')
data_sock.connect('ipc:///tmp/timetag-data')
$ cabal new-build --allow-newer=base,primitive,bifunctors,directory,hashable,constraints,vector -j1 -v3
File monitor 'improved-plan' unchanged.
Number of threads used: 1.
buildTargets': fromList [(UnitId
"laura-0.1.0.0-inplace",[BuildDefaultComponents]),(UnitId
"laura-0.1.0.0-inplace-dump-postings",[BuildDefaultComponents]),(UnitId
"laura-0.1.0.0-inplace-laura",[BuildDefaultComponents]),(UnitId
"laura-0.1.0.0-inplace-score-query",[BuildDefaultComponents]),(UnitId
"laura-0.1.0.0-inplace-tests",[BuildDefaultComponents])]
Configured Cabal-1.24.2.0 (Cabal-1.24.2.0-inplace)
#!/bin/bash -e
if [ "$VERBOSITY" == "1" ]; then
set -v
fi
dev=eth1
# Comcast (2016-12-20)
# Up: 12Mb/s, down: 6Mb/sec
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ConstraintKinds #-}
module ConcurrentMap where
import Control.Monad
import Control.Concurrent.Async
import Control.Concurrent.STM
import Data.Binary
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE ConstraintKinds #-}
module ForkPipe
( forkPipe
, WorkerFailException(..)
import Data.String
class (IsString s, Monoid s) => StringLike s where
stringLength :: s -> Int
"inplace/bin/ghc-cabal" configure libraries/base dist-install "" --with-ghc="/private/tmp/nix-build-ghc-8.1.201601019.drv-4/ghc-2cb8cc2/inplace/bin/ghc-stage1" --with-ghc-pkg="/private/tmp/nix-build-ghc-8.1.201601019.drv-4/ghc-2cb8cc2/inplace/bin/ghc-pkg" --flags=integer-simple --disable-library-for-ghci --enable-library-vanilla --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -fno-stack-protector -Wno-unknown-pragmas" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --gcc-options="-Wall -fno-stack-protector -Wno-unknown-pragmas " --configure-option=--host=arm-apple-darwin10 --with-gcc="/nix/store/v55dbghc6kp50rn6qysh3y6frl2v3dmn-prefixed-ios-toolchain/bin/arm-apple-darwin10-cc" --with-ld="/nix/store/v55dbghc6kp50rn6qysh3y6frl2v3dmn-prefixed-ios-toolchain/bin/arm-apple-darwin10-ld" --with-ar="/nix/store/v55dbghc6kp50rn6qysh3y6frl2v3dmn-prefixed-ios-toolchain/bin/arm-apple-darwin10-ar" --with-alex="/nix/store/339fs9vnah0759iywjzvqxf1wk8xjzl2-alex-3.1.7/bin
@bgamari
bgamari / msys2-runtime-debugging
Last active October 16, 2016 21:34
Notes from msys2 runtime debugging
This is useful: https://sourceforge.net/p/msys2/wiki/Contributing%20to%20MSYS2/
Use gcc c runtime
pacman -S mingw32/mingw-w64-i686-gcc mingw32/mingw-w64-i686-binutils cocom gcc mingw-w64-cross-gcc mingw-w64-cross-zlib zlib-devel g++
git clone https://github.com/Alexpux/MSYS2-packages.git
cd MSYS2-packages/msys2-runtime
Be certain to use MSYS environment, not Mingw,
MSYSTEM= source /etc/profile