Skip to content

Instantly share code, notes, and snippets.

View Kraballa's full-sized avatar
🙂
professional c++ hater/developer

Vinzent Brömauer Kraballa

🙂
professional c++ hater/developer
View GitHub Profile
@MidSpike
MidSpike / readme.md
Last active January 29, 2025 18:02
CVE-2022-23812 | RIAEvangelist/node-ipc is malware / protest-ware
@rosenhouse
rosenhouse / time-ago.py
Last active June 3, 2026 12:22
Python time-ago
def time_ago(time=False):
"""
Get a datetime object or a int() Epoch timestamp and return a
pretty string like 'an hour ago', 'Yesterday', '3 months ago',
'just now', etc
Modified from: http://stackoverflow.com/a/1551394/141084
"""
now = datetime.utcnow()
if type(time) is int: