Skip to content

Instantly share code, notes, and snippets.

View mara-schulke's full-sized avatar
🌺

Mara Schulke mara-schulke

🌺
View GitHub Profile
@mara-schulke
mara-schulke / nixos-encrypted-install.md
Created January 18, 2021 21:39
Installing NixOS with Full Disk Encryption

Installing NixOS with Full Disk Encryption

This is a quick cheatsheet on how to install an encrypted nixos system in a few minutes. I wrote this while doing so to simplify the research process for others since it‘s not directly mentioned in the official manual. If you find anything outdated / wrong in here, please notify me.

Requirements

Before we‘re ready to go you should‘ve created an bootable USB Stick with the latest NixOS ISO (at the time writing this the latest NixOS Version is 20.09)

Partitioning

So the basic partitioning doesn’t really differ from the official manual:

$ parted /dev/sda -- mklabel gpt
@mara-schulke
mara-schulke / moccu_web_scraper.py
Last active September 7, 2020 19:20
web scraper for moccu.com
import asyncio
import requests
from bs4 import BeautifulSoup
base_url = 'https://moccu.com'
def scrape_page_for_elements(html):
content_elements = html.findAll(class_='content')