Skip to content

Instantly share code, notes, and snippets.

@brooksvb
brooksvb / Uptime-Kuma-Status-Page-Dark-Mode-High-Density-Tweaks.css
Last active December 17, 2025 08:29
These CSS tweaks are for higher density display for Uptime Kuma status pages in dark mode.
:root {
--min-item-width: 28ch;
--max-item-width: .5fr;
--grid-spacing: .25rem;
--item-padding: .25rem;
}
/* Let items expand on small screens */
@media (max-width: 600px) {
:root {

Naming Controllers

Controllers should be in singular case, no spacing between words, and end with "Controller".

Also, each word should be capitalised (i.e. BlogController, not blogcontroller).

For example: BlogController, AuthController, UserController.

Bad examples: UsersController (because it is in plural), Users (because it is missing the Controller suffix).
@landnthrn
landnthrn / Export All Sticky Notes to .md or .txt Files.txt
Last active December 17, 2025 08:27
Export all your Windows Sticky Notes to .md or .txt files so you can transfer all to another noting application like Obsidian
# Close Sticky Notes so DB isn't locked
taskkill /IM Microsoft.Notes.exe /F 2>$null | Out-Null
# --- Paths ---
$plum = "$env:LOCALAPPDATA\Packages\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe\LocalState\plum.sqlite"
if (!(Test-Path $plum)) { throw "Couldn't find plum.sqlite at: $plum" }
# Output folder (loop until valid)
do {
$vault = Read-Host "Paste a path where you want the folder with the exports to be created"
@LurkNoi
LurkNoi / 1_task.py
Last active December 17, 2025 08:27
D^3CTF 2019 Crypto - Bivariate
from Crypto.Util import number
from secret import flag
nbit = 2048
e = 65537
p, q = number.getPrime(nbit//2), number.getPrime(nbit//2)
N = p * q
# N = 14871564779966647807710849781121809500530440168369963349377308901197803285619192987578333699960518148494391309500400834350235413916348349010881665475977014169857261456941575247369669695635975745695575650462258077595438693774208161879743121708431280489461785510815948783248837512615935739967100669884173960286905400419242769064214933385513190550471038684908409622471877199803893311107924150701348854249849421334035898230235882198863268374514022152610016824606857371732440610675267450448242632453712201631459133353269072394064023713666664658865870871502133929488104208880638866505781463327231845911539701761429945199541
l1, l2 = 100, 100
@christianromney
christianromney / cheatsheet.org
Last active December 17, 2025 08:25
Jujutsu VCS Tutorial - Complete Guide with Cheatsheet and Speaker Notes

Jujutsu (jj) Command Cheatsheet

Setup & Configuration

brew install jujutsu                        # Install on macOS
jj config set --user user.name "Your Name"
jj config set --user user.email "[email protected]"
@taichikuji
taichikuji / README.md
Last active December 17, 2025 08:21
Get a DDNS up and running with DuckDNS - Step by Step

Get a DDNS up and running with DuckDNS - Step by Step

Understanding DDNS

In summary, DDNS stands for Dynamic DNS. DDNS updates a DNS name in real-time to point to a changing IP address. This is useful for devices without a static IP. For example, companies like Google use static IPs and IP ranges, which are more expensive than ephemeral IPs and IP ranges. DDNS provides a cost-effective alternative, linking a hostname to a dynamic IP address.

How Does DDNS Work?

To use DDNS, you need an account with a DDNS provider. While some services are paid, they are still cheaper than static public IPs from ISPs. A script or service on your device updates the DDNS server with your current IP at regular intervals to maintain the link between your hostname and IP address. Luckily for us, DuckDNS is free for everybody and relays on donations to keep their services running.

import logging
import multiprocessing
from http.server import BaseHTTPRequestHandler, HTTPServer
from time import sleep

from modal import App, Image

logger = logging.getLogger(__name__)
@welmarr
welmarr / managing-multiple-java-versions-with-maven.md
Last active December 17, 2025 08:20
In this article, I explore the process of handling multiple versions of Java with Maven. Specifically, I focus on resolving an error that occurs when running a new Spring Boot application (version 3.0.1) when attempting to run the "mvn clean install" command line on a system with Java 11.

Managing Multiple Java Versions with Maven 🤹 (without modifying JAVA_HOME almost)

Today, I try to run a new spring boot application (<version>3.0.1</version>) on my Windows 11 but, when I perform the command line mvn clean install (mvn -version [Apache Maven 3.8.6 | Java version: 11.0.15.1]), I have the following issue 👇

Execution repackage of goal org.springframework.boot:spring-boot
-maven-plugin:3.0.1:repackage failed: Unable to load the mojo 'repackage' in the plugin 'org.springframework.boot:spring-boot-maven-plugin:3.0.1' due to an API incompatibility: org.codehaus.plexus.comp
onent.repository.exception.ComponentLookupException: org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version
of the Java Runtime only recognizes class file versions up to 55.0
@mpalpha
mpalpha / MODELPromptOptimizationFramework.md
Last active December 17, 2025 08:17
MODEL Prompt Optimization Framework

MODEL Prompt Optimization Framework

Purpose
MODEL is a structured framework for creating optimized prompts through deliberate, bounded iteration.
It prevents single-pass prompt writing and enforces measurable improvement before a prompt is considered complete.


Overview