I hereby claim:
- I am carlohamalainen on github.
- I am carlohamalainen (https://keybase.io/carlohamalainen) on keybase.
- I have a public key whose fingerprint is 7679 121C 2296 4C12 8888 93D1 269E 0DC4 E3E4 A5B8
To claim this, I am signing this object:
| # Stop systemd services - RUN AS olduser | |
| systemctl --user stop job1.service | |
| systemctl --user stop job2.service | |
| systemctl --user stop job3.service | |
| # Disable systemd services - RUN AS olduser | |
| systemctl --user disable job1.service | |
| systemctl --user disable job2.service | |
| systemctl --user disable job3.service |
| /* | |
| Tested on MacOS and Linux Debian. | |
| USE_LOCK = 1: | |
| ❯ gcc exclusive.c -o exclusive && parallel -j 1000 ./exclusive -- {1..1000} | sort | uniq -c | |
| 1000 10000 | |
| USE_LOCK = 0: |
I hereby claim:
To claim this, I am signing this object:
| module AddProjToBruker where | |
| -- ##$SUBJECT_comment=( 2048 ) | |
| -- <CAI:10001> | |
| import Control.Monad (when) | |
| import Data.Either | |
| import Data.List | |
| import Data.Maybe | |
| import System.Environment |
| #!/usr/bin/env python | |
| from functools import partial | |
| import sys | |
| BLOCKSIZE = 1048576 | |
| # Similar to http://bugs.python.org/issue20992 | |
| # but with Python 2.x syntax. | |
| def read_blocks(files): |
| {-# LANGUAGE OverloadedStrings #-} | |
| module TestWithHsJWT where | |
| import qualified Data.Text as T | |
| import qualified Crypto.JWT as JWT | |
| import qualified Crypto.JOSE as JOSE | |
| import qualified Data.HashMap.Lazy as HM | |
| import Data.Aeson |
| {-# LANGUAGE FlexibleInstances #-} | |
| -- Airports for Blinco! | |
| module Airports where | |
| import Control.Monad (forM_) | |
| airportsRaw :: [String] | |
| airportsRaw = [ "BNE", "SYD", "ADL", "PER", "CNB", "NTL", "UDG", "CTL" |
| Quote from _At Day's Close: Night in Times Past Paperback_ (A. Roger Ekirch, 2006). | |
| Courtiers took the place of knights, satin and silk replaced chain | |
| mail. The growing power of nation states, marked by their | |
| monopolization of military force, only broadened the scope of | |
| this transformation. Well-understood rules of civility governed | |
| social exchanges among friends and strangers. Hence, it was thought | |
| inappropriate, if walking on a street, to ask questions of a stranger | |
| or to touch, much less jostle, other pedestrians. Above all, persons | |
| of quality required respect, lest their dignity be affronted. Besides |
| Resolving dependencies... | |
| cabal: Could not resolve dependencies: | |
| trying: ghc-imported-from-0.1.0.0 (user goal) | |
| next goal: Cabal (dependency of ghc-imported-from-0.1.0.0) | |
| rejecting: Cabal-1.16.0/installed-c6e... (conflict: ghc-imported-from => | |
| Cabal>=1.18) | |
| trying: Cabal-1.18.1.2 | |
| next goal: ghc (dependency of ghc-imported-from-0.1.0.0) | |
| rejecting: ghc-7.6.3/installed-189... (conflict: Cabal==1.18.1.2, ghc => | |
| Cabal==1.16.0/installed-c6e...) |
| {- | |
| Response to http://lists.samba.org/archive/linux/2013-November/032604.html | |
| and http://lists.samba.org/archive/linux/2013-November/032610.html | |
| Author: Carlo Hamalainen <[email protected]> | |
| -} | |
| import Control.Monad | |
| import Data.Binary.Get | |
| import Data.Bits |