Skip to content

Instantly share code, notes, and snippets.

@painor
painor / FastTelethon.py
Last active July 13, 2024 13:27
This will increase the download/upload speed when using telethon
# 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
@ugursogukpinar
ugursogukpinar / sway-config
Last active June 28, 2024 16:18
wf-recorder for swaywm
set $screenrecorder `bash $HOME/scripts/toggle-screen-recorder.sh`
bindsym --to-code $mod+Shift+R exec $screenrecorder
@glubsy
glubsy / howto_record_youtube_livestreams.md
Last active July 18, 2024 21:01
How to properly record Youtube & Twitch live streams

How to record Youtube live streams:

  • use livestream_saver to download from the first segment. Can also record membership-only streams by supplying it your cookies (uses yt-dlp to download)

  • use ytarchive which basically does the same thing, except a bit better.

  • use youtube_stream_capture. You can use cookies file to get member-only streams too. Be aware that this script currently fails to download chunks as soon as the stream has ended (this might be a bug).

  • or use live-dl which does monitoring of streams too. This is a wrapper around streamlink and yt-dlp.

@shoui520
shoui520 / readmore.md
Last active May 19, 2024 20:11
Chinese Yomichan Setup

Yomitan setup for Chinese

https://learnjapanese.moe

Yomitan (formerly Yomichan) is a browser extension created for Japanese which enables its users to quickly and efficiently look up words on a webpage.
While it is made for Japanese, it is possible to use it for other languages, including Chinese.

Getting Yomitan

Yomitan is available for both Chromium and Firefox based browsers. You can find the respective versions below.