Skip to content

Instantly share code, notes, and snippets.

View yogaxpto's full-sized avatar
🏠
Working from home

Diogo yogaxpto

🏠
Working from home
View GitHub Profile
@kmkr
kmkr / surfaces.py
Created January 16, 2023 12:03
Surface code (refactoring)
def get_surfaces(address: Address) -> list[dict]:
response = _make_request(
settings.SURFACES_SERVICE_URL,
cadastral_unit_id=address.cadastral_unit_id,
cadastral_address_id=address.cadastral_address_id,
)
if 'application/json' in response.headers.get('Content-Type'):
data = response.json()
response_status = data.get('ResponseStatus', {})
@XSystem252
XSystem252 / RaspberryPi4Archlinux64EncryptionUSBBootBtrfsGuide.md
Last active March 31, 2024 17:51
How To Set Up a Raspberry Pi 4 with Archlinux 64-bit (AArch64) and Full Disk Encryption (+SSH unlock), USB Boot (No SD-Card) and btrfs

How To Set Up a Raspberry Pi 4 with Archlinux 64-bit (AArch64) and Full Disk Encryption (+SSH unlock), USB Boot (No SD-Card) and btrfs

Written by: XSystem
First published on: 20 Dec 2020
Last updated on: 20 Dec 2020

[0] Introduction

Overview