Skip to content

Instantly share code, notes, and snippets.

View Heliodex's full-sized avatar
📉
Programstinating

Lewin Kelly Heliodex

📉
Programstinating
View GitHub Profile
@TrillCyborg
TrillCyborg / mastodon-docker-setup.md
Last active April 21, 2026 01:58
Mastodon Docker Setup

Mastodon Docker Setup

Setting up

Clone Mastodon's repository.

# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live

cd ~/live

@Kautenja
Kautenja / tar-progress.md
Last active July 10, 2026 21:39
one-liners for using tar with gzip and pv for a progress bar

Compress

tar cf - <files> -P | pv -s $(du -sb <files> | awk '{print $1}') | gzip > <some .tar.gz file>

where:

  • `` is the root-mounted (i.e. starts with /) path to the files
@bricss
bricss / druuid.mjs
Last active February 28, 2026 13:10
Date-relative (and relatively universally unique) UUID generation. Inspired by: https://www.npmjs.com/package/druuid
export let epoch = 0;
export const gen = (date = Date.now()) => {
return ((BigInt(date - epoch) << (64n - 41n)) ^ (BigInt(crypto.getRandomValues(new Uint8Array(32)).join('')) % (2n ** (64n - 41n))));
};
export const time = (uuid) => {
return new Date(Number((BigInt(uuid) >> (64n - 41n))) + epoch);
};
# coding: utf-8
from creative import *
def clear_screen():
for _ in range(50):
print("")
def get_percentage(stats,string):
@atmos
atmos / 1.gif
Last active July 16, 2025 23:03
round and round
1.gif
@atmos
atmos / 2.gif
Last active April 9, 2026 04:49
they go
2.gif
@atmos
atmos / 3.gif
Last active July 16, 2025 23:03
when they'll
3.gif
@atmos
atmos / 4.gif
Last active July 19, 2026 07:38
stop
4.gif
@atmos
atmos / 5.gif
Last active July 16, 2025 23:03
nobody
5.gif
@atmos
atmos / 6.gif
Last active August 1, 2025 19:20
knows
6.gif