- welcome everyone!
- we have a code of conduct
- thanks to organisers, sponsors, etc
I wrote a thing to keep the prison index service prototype up-to-date. It works by polling the RSF for updates, and only downloads new entries.
However, the prison register is in discovery and I’m told it will be deleted and reloaded (possibly a number of times). This means that if I only download entries from the last entry number I saw, I’ll miss the entries which have been completely rewritten.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
def regex_for(required_letters): | |
# special cases for 1 and 2 letters, to keep things a bit tidier | |
if len(required_letters) == 1: | |
return required_letters[0] | |
if len(required_letters) == 2: | |
x,y = required_letters | |
return "%s.*%s|%s.*%s" % (x,y,y,x) | |
subregexes = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
========================================================================== FAILURES =========================================================================== | |
______________________________________________________ test_audit_proofs_are_valid_with_alternative_impl ______________________________________________________ | |
@given(st.lists(st.binary(), max_size=99), st.integers(min_value=0, max_value=99)) | |
> def test_audit_proofs_are_valid_with_alternative_impl(data, leafIndex): | |
tests/test_verifiable_log.py:146: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/s5f9zba6xbrjqxmmnjikwndqg9wk2xvr-python3.5-hypothesis-3.5.2/lib/python3.5/site-packages/hypothesis/core.py:524: in wrapped_test | |
print_example=True, is_final=True |
- security?
- same issue as docker images from dockerhub
- http://twitter.com/nixgeek/status/694103481909649409
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nix-build -E '<nix-expr>' |
Fisrt, download and run the nixos/nix image:
docker run -ti nixos/nix /bin/sh
Subscribe to the nixos channel (eventually, certificate-transparency will be available on the nixpkgs channel too but as of 2015-12-14 it's not):