Skip to content

Instantly share code, notes, and snippets.

@DrPyser
DrPyser / nix-build-rails.log
Created September 7, 2022 01:20
log output from nix build attempt of basic ruby+rails environment shell
these 19 derivations will be built:
/nix/store/r18q5gq9db925im5q3q5g3y2wl8m0gcg-ruby2.7.5-digest-3.1.0.drv
/nix/store/25bi40hg8icy2zlhf7ay5q0lc7mp46s4-ruby2.7.5-net-pop-0.1.1.drv
/nix/store/ji4pv6yl0z7hdajn9g7m5rzq4fzr5aza-ruby2.7.5-nokogiri-1.13.8.drv
/nix/store/3qdii9qi7qy778ch6jxx99sjxzli5kkc-ruby2.7.5-loofah-2.18.0.drv
/nix/store/9qkp8nfc0a972jiifg355cfms5rwvbm0-ruby2.7.5-net-smtp-0.3.1.drv
/nix/store/n9gw2l9awqya8zfrbbcpkpgmrhjlvj9k-ruby2.7.5-rails-dom-testing-2.0.3.drv
/nix/store/s43s7m28c8dqxyfmm247yrvmdir8zqph-ruby2.7.5-rails-html-sanitizer-1.4.3.drv
/nix/store/v1f9h01ykq6xjnlwk7dhk1qh3k5fg5ay-ruby2.7.5-actionview-7.0.3.1.drv
/nix/store/c9s5v49w3qappv27nx1xl7hfjf3fl1vf-ruby2.7.5-actionpack-7.0.3.1.drv
@DrPyser
DrPyser / keybase.md
Created April 6, 2021 01:30
keybase proof

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@DrPyser
DrPyser / post-receive
Created August 7, 2019 20:11
Simple template for a minimal post-receive git hook
# https://github.com/git/git/blob/7c20df84bd21ec0215358381844274fa10515017/Documentation/githooks.txt#L314
while read from to branch; do
echo "Received update: $from -> $to on branch $branch";
# do stuff
done;
exit;
@DrPyser
DrPyser / channel.py
Created January 25, 2019 05:32
Sync and async implementations of bidirectionnal channel for in-process asynchronous communication, inspired by Go's
"""
Channel interface and implementations
for in-memory bidirectional, asynchronous and cross-thread communication
"""
import asyncio
from typing import Generic, TypeVar, AsyncIterable, AsyncIterator, Iterable
import abc
import queue
import threading