Skip to content

Instantly share code, notes, and snippets.

View baxtheman's full-sized avatar

Daniele Baggio baxtheman

View GitHub Profile
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active May 18, 2025 13:42
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@gpanders
gpanders / docker-backup.sh
Last active November 20, 2023 13:16
Backup and restore Docker volumes to/from a compressed tar file
#!/bin/bash
set -e
usage() {
echo "Usage: $(basename "$0") [-v] volume_name backup_dir"
}
v=""
while getopts "hv" o; do
@ilap
ilap / grafana_telegram_bot.md
Last active May 9, 2025 23:43
Grafana Telegram Alert

Config Telegrambot for grafana's alerts.

1. Create bot

Open Telegram and search for @BotFather user and message them the following:

You
/newbot 

BotFather