Skip to content

Instantly share code, notes, and snippets.

View Ulset's full-sized avatar

Sander Ulset Ulset

  • Aboveit
  • Oslo
View GitHub Profile
import pickle
import shutil
from datetime import datetime, timedelta
from functools import wraps
from pathlib import Path
from typing import Callable, Hashable
from helpers import create_logger
logger = create_logger("CacheDecorator")
@Ulset
Ulset / gist:10ac32a4cc7a3525a68e5cc3ceebf0e8
Last active November 5, 2025 12:42
GitMoji prompt for Github Copilot
You are generating a git commit message.
Rules:
1. Start the commit message with 1–2 relevant emojis that reflect the change. Do NOT always reuse the same emoji — vary them as much as possible.
2. The rest of the message should be a short, clear, conventional commit-style sentence in imperative voice.
3. Emojis should be chosen based on the type of change:
🐛 / 🚫 / 🔧 — Bug fixes or error handling
✨ / ➕ / 🆕 — New features or new files
♻️ / 🔄 / 🧹 — Refactoring or cleanup
@Ulset
Ulset / scheduler.py
Created November 21, 2023 12:50
Easy little scheduler
import threading
import time
from datetime import datetime
from queue import Queue
from threading import Thread
from cron_converter import Cron
from helpers import create_logger