Some notes on accessing / exporting Apple's Screen Time data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use via https://tampermonkey.net/ or https://apps.apple.com/app/userscripts/id1463298887 | |
// ==UserScript== | |
// @name Fix Yale Lecture Download URLs | |
// @namespace http://tampermonkey.net/ | |
// @version 1.2 | |
// @description Automatically replace OpenMedia Yale URLs | |
// @author You | |
// @match *://*.yale.edu/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget https://openmedia.yale.edu/projects/courses/spring10/afam162/download/afam162.zip --referer https://oyc.yale.edu/african-american-studies/afam-162 -O afam-162.zip | |
wget https://openmedia.yale.edu/projects/courses/fall11/amst246/download/amst246.zip --referer https://oyc.yale.edu/american-studies/amst-246 -O amst-246.zip | |
wget https://openmedia.yale.edu/projects/courses/spring07/astr160/download/astr160.zip --referer https://oyc.yale.edu/astronomy/astr-160 -O astr-160.zip | |
wget https://openmedia.yale.edu/projects/courses/spring08/beng100/download/beng100.zip --referer https://oyc.yale.edu/biomedical-engineering/beng-100 -O beng-100.zip | |
wget https://openmedia.yale.edu/projects/courses/fall08/chem125/download/chem125.zip --referer https://oyc.yale.edu/chemistry/chem-125a -O chem-125a.zip | |
wget https://openmedia.yale.edu/projects/courses/spring11/chem125b/download/chem125b.zip --referer https://oyc.yale.edu/chemistry/chem-125b -O chem-125b.zip | |
wget https://openmedia.yale.edu/projects/courses/fall07/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Replace OpenMedia Yale URLs | |
// @namespace http://tampermonkey.net/ | |
// @version 1.2 | |
// @description Automatically replace OpenMedia Yale URLs | |
// @author You | |
// @match *://*.yale.edu/* | |
// @grant none | |
// ==/UserScript== |
Example usage
curl -sSL https://gist.githubusercontent.com/Bobronium/fcf958f0e8257e069bc6c254f8e3858d/raw/67cab9f85748903e4e98fad286681326d2afbd3c/obsidian_publish_scrapper.py
pipx run /tmp/obsidian_publish_crawler.py https://notesonai.com/Notes+on+AI -p /tmp/notes_on_ai
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections.abc import Sequence | |
from functools import cached_property | |
from typing import Any | |
from typing import ClassVar | |
from typing import LiteralString | |
from uuid import UUID | |
from uuid_utils import uuid7 | |
ALPHABET = "0123456789abcdefghjkmnpqrstvwxyz" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input_file=in.mp4 | |
output_file="${input_file%%.*}"-fragment."${input_file##*.}" | |
subs_file= # can be srt file or mkv container with subtitles | |
start_from= | |
stop_at= | |
duration= | |
# delete lines below that contain empty optional variables from above before use | |
# if duration is specified, '-to' or 'stop_at' is ignored | |
ffmpeg \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# copied from https://github.com/tulir/mautrix-telegram/blob/master/mautrix_telegram/util/parallel_file_transfer.py | |
# Copyright (C) 2021 Tulir Asokan | |
import asyncio | |
import hashlib | |
import inspect | |
import logging | |
import math | |
import os | |
from collections import defaultdict | |
from typing import Optional, List, AsyncGenerator, Union, Awaitable, DefaultDict, Tuple, BinaryIO |
Huge thanks to LambdAurora for his Recommended OptiFine alternatives on Fabric gist.
- Download and install Fabric
- Download any mods from list below and put them in
.minecraft/mods
folder
All mods in this list are compatible with each other, unless it stated otherwise
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect | |
from functools import partial | |
from typing import Type, Literal, Callable, Dict, TypeVar, List | |
from fastapi import APIRouter, Depends | |
# import your database base model here | |
# from db_model import BaseDBModel | |
# this part is a bit outdated since you can now use SQLModel |
NewerOlder