Skip to content

Instantly share code, notes, and snippets.

@Sachaa-Thanasius
Sachaa-Thanasius / rst-hyperlinks.rst
Created October 25, 2024 10:37 — forked from jwodder/rst-hyperlinks.rst
All About reStructuredText Hyperlinks
@Sachaa-Thanasius
Sachaa-Thanasius / import_stdlib.py
Last active September 13, 2024 19:25 — forked from indygreg/import_stdlib.py
Python stdlib importing
import __future__
# import _bootlocale # Doesn't exist on 3.11 on Windows
import _collections_abc
import _compat_pickle
import _compression
# import _dummy_thread # Doesn't exist in 3.9+ in WSL
import _markupbase
import _osx_support
@Sachaa-Thanasius
Sachaa-Thanasius / rfc_3986_regex.py
Created June 18, 2024 00:41 — forked from kenballus/rfc_3986_regex.py
A direct translation from RFC3986's collected ABNF to python regexes.
# unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
UNRESERVED_PAT: str = r"([A-Za-z0-9\-\._~])"
# pct-encoded = "%" HEXDIG HEXDIG
PCT_ENCODED_PAT: str = r"(%[A-F0-9][A-F0-9])"
# sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
SUB_DELIMS_PAT: str = r"([!\$&'\(\)\*\+,;=])"
# pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
@Sachaa-Thanasius
Sachaa-Thanasius / kaltura_file_download.md
Created June 2, 2024 19:18 — forked from giansegato/kaltura_file_download.md
How to download a video from Kaltura video service

Kaltura Video Downloader

Also known as: find and merge m3u8 files

⚠️ WARNING ⚠️ → use this guide at your sole discretion.

Check the copyright laws and the term of service before using it. You might be breaking the law!


  1. Open the Network tab of the Chrome Inspector
@Sachaa-Thanasius
Sachaa-Thanasius / accounting.sql
Created April 3, 2024 15:46 — forked from NYKevin/accounting.sql
Basic double-entry bookkeeping system, for PostgreSQL.
CREATE TABLE accounts(
id serial PRIMARY KEY,
name VARCHAR(256) NOT NULL
);
CREATE TABLE entries(
id serial PRIMARY KEY,
description VARCHAR(1024) NOT NULL,
amount NUMERIC(20, 2) NOT NULL CHECK (amount > 0.0),
-- Every entry is a credit to one account...