Skip to content

Instantly share code, notes, and snippets.

View vladimir-poleh's full-sized avatar

Vladimir Poleh vladimir-poleh

View GitHub Profile
@marfillaster
marfillaster / unifi_container_rb5009.md
Last active April 21, 2025 02:15
Running Unifi Network Controller as a container in MikroTik ROSv7 RB5009

Requirement

  • USB flash drive - this is where the container filesystem will be persisted

Set-up docker bridge network

/interface bridge add name=docker

Set-up veth to be used by container

@pikhovkin
pikhovkin / weasyprint_complex_headers.py
Last active October 8, 2024 04:49
Repeat on each page of complex headers (eg, tables) except the first page
# coding: utf-8
from weasyprint import HTML, CSS
def get_page_body(boxes):
for box in boxes:
if box.element_tag == 'body':
return box