Installing NixOS on a Lenovo ThinkPad Carbon X1 Gen 9
Installation media
- Downloaded nixos-21.11/latest-nixos-gnome-x86_64-linux.iso__ from channels.nixos.org__.
- NixOS manual instructs to create the USB stick using
dd
dd
#cloud-config | |
# Start an Ubuntu server with this cloud-init data to run a | |
# CrewLink-server instance and update its IP for a subdomain. The | |
# domain name must be hosted at Gandi LiveDNS. | |
# | |
# Near the bottom of the page, replace these strings with your data: | |
# - your Gandi API key | |
# - your-domain.tld | |
# - your-subdomain |
#!/usr/bin/env python | |
"""Script for converting ``.coverage`` SQLite output into lint-style output | |
The output is suitable for consumption using Darker. | |
See https://github.com/akaihola/darker | |
Example usage, pointing out modified code in a feature branch not covered by | |
the test suite:: |
import io | |
from typing import Tuple | |
def tee_stream_head(stream: io.IOBase, | |
head_max_lines: int=3) -> Tuple[io.RawIOBase, | |
io.RawIOBase]: | |
"""Split a stream, enable parallel reading of initial lines | |
This helper solves the use case where a limited number of initial lines |
Verifying my Blockstack ID is secured with the address 1KXcAYCbfhV2BcRnp7xBRAy6vs97kPG4zp https://explorer.blockstack.org/address/1KXcAYCbfhV2BcRnp7xBRAy6vs97kPG4zp |
""" | |
An experimental extension for an IPython magic command to show object graphs. | |
Strongly based on tkf's code for the extension itself | |
and mine for turning a Python namespace into a GraphViz DOT source: | |
- https://github.com/tkf/ipython-hierarchymagic | |
- http://pypi.python.org/pypi/pyrels/0.1.1 | |
Read respective copyrights there! |
Verifying that +akaihola is my Bitcoin username. You can send me #bitcoin here: https://onename.io/akaihola |
Copyright (c) 2013, Antti Kaihola | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, | |
are permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, | |
this list of conditions and the following disclaimer. | |
2. Redistributions in binary form must reproduce the above copyright |
#!/usr/bin/python3.3 | |
import os | |
NEWDIR = '/home/akaihol/Kuvat_' | |
OLDDIR = '/media/akaihol/tasku/Valokuvat' | |
def get_file_fingerprint(path): |