Skip to content

Instantly share code, notes, and snippets.

View ELind77's full-sized avatar

Eric Lind ELind77

  • Los Angeles, USA
View GitHub Profile
@erikbern
erikbern / loop_hack.py
Last active April 3, 2022 21:35
Example of how to use async/await programming in Python for non-asyncio purposes
# First, let's create an awaitable object.
# In this case it's a very dumb container of integers.
# Any time a coroutine runs `await Thing(n)` it just resolves to n
# However, we could resolve it to something completely different if we wanted to
class Thing:
def __init__(self, n):
self._n = n
def __await__(self):
@aiguofer
aiguofer / README.md
Last active April 27, 2023 19:12
Get info about running jupyter notebooks including memory consumption, how long they've been running, etc.
@shmup
shmup / torrents.md
Last active June 1, 2024 18:59
transmission blocklist guide

Transmission Blocklist

The Transmission torrent client has an option to set a Blocklist, which helps protect you from getting caught and having the DMCA send a letter/email.

It's as simple as downloading and installing the latest client: