Skip to content

Instantly share code, notes, and snippets.

View Kraballa's full-sized avatar
🙂
looking for interesting things

Vinzent Brömauer Kraballa

🙂
looking for interesting things
View GitHub Profile
@MidSpike
MidSpike / readme.md
Last active July 19, 2024 20:45
CVE-2022-23812 | RIAEvangelist/node-ipc is malware / protest-ware
@rosenhouse
rosenhouse / time-ago.py
Last active June 20, 2024 03:07
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: