Skip to content

Instantly share code, notes, and snippets.

View jerlendds's full-sized avatar
💭
🦷🧵🦾

jerlendds jerlendds

💭
🦷🧵🦾
View GitHub Profile
@jerlendds
jerlendds / .gitconfig
Created October 15, 2025 19:44
~/.gitconfig
$ cat ~/.gitconfig
[user]
name = jerlendds
email = email
signingkey = /home/jerlendds/.ssh/id_github
[init]
defaultBranch = main
[alias]
pushall = !git remote | xargs -L1 -I R git push R
lg3 = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
@jerlendds
jerlendds / settings.json
Created October 14, 2025 12:56
.config/zed/settings.json
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"context_servers": {
@jerlendds
jerlendds / codex-notifier
Created October 14, 2025 12:17
~/.codex/config.toml
#!/usr/bin/env python3
import json
import subprocess
import sys
def main() -> int:
if len(sys.argv) != 2:
print("Usage: notify.py <NOTIFICATION_JSON>")
@jerlendds
jerlendds / filebrowser.service
Created October 13, 2025 21:07
Filebrowser (github.com/filebrowser/filebrowser) .config/systemd/user/filebrowser.service
[Unit]
Description=Filebrowser (github.com/filebrowser/filebrowser)
After=network.target
[Service]
Type=simple
ExecStart=filebrowser --port 13377 -r /home/jerlendds/
ExecStop=killall -q filebrowser
[Install]
@jerlendds
jerlendds / ddd.md
Created September 5, 2025 12:50 — forked from zsup/ddd.md
Documentation-Driven Development (DDD)

Documentation-Driven Development

The philosophy behind Documentation-Driven Development is a simple: from the perspective of a user, if a feature is not documented, then it doesn't exist, and if a feature is documented incorrectly, then it's broken.

  • Document the feature first. Figure out how you're going to describe the feature to users; if it's not documented, it doesn't exist. Documentation is the best way to define a feature in a user's eyes.
  • Whenever possible, documentation should be reviewed by users (community or Spark Elite) before any development begins.
  • Once documentation has been written, development should commence, and test-driven development is preferred.
  • Unit tests should be written that test the features as described by the documentation. If the functionality ever comes out of alignment with the documentation, tests should fail.
  • When a feature is being modified, it should be modified documentation-first.
  • When documentation is modified, so should be the tests.
@jerlendds
jerlendds / killport
Last active September 3, 2025 21:54
killport
#!/bin/bash
echo "Killing PID $(fuser -k $1/tcp)on $1"
fuser -k "$1/tcp"
@jerlendds
jerlendds / papra
Created September 2, 2025 04:19
papra
#!/bin/bash
# https://docs.papra.app/self-hosting/using-docker/
# https://github.com/papra-hq/papra
docker run -d --name papra --restart unless-stopped --env APP_BASE_URL=http://localhost:1221 -p 1221:1221 ghcr.io/papra-hq/papra:latest
@jerlendds
jerlendds / Github Webhook Tutorial.md
Created August 27, 2025 21:42 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@jerlendds
jerlendds / clearurls.xyz.data.minify.json
Last active July 28, 2025 15:19
ClearURLs updated to remove resize attribute commonly found on UI/UX design sites when you right click view image
{
"providers": {
"dribbble": {
"urlPattern": "^https://cdn.dribbble.com.*",
"rawRules": [
"\\/resize=[^/?]*"
]
},
"amazon": {
"urlPattern": "^https?:\\/\\/(?:[a-z0-9-]+\\.)*?amazon(?:\\.[a-z]{2,}){1,}",
@jerlendds
jerlendds / claude-mermaid.md
Created July 14, 2025 16:24
Generate SQL->mermaid diagrams with Claude Code

You are an experienced Software Engineer performing a documentation task for the database. Your task is to assess the quality, clarity, and robustness of the database schem, create or update the sql-visualization.md Mermaid diagram according to these steps:

  1. Conduct a Review of the Database Pay attention to the SQL schemas in migrations/

  2. Generate a valid mermaid diagram Generate a visual representation of the OSINTBuddy database schema using Mermaid. Provide details of the key features on the mermaid diagram. Here are some best Practices for the diagram and flowchart creation:

    • Stick to the point. More like a tweet, less like a novel.
    • Use symbols consistently. Circles are circles, not suddenly squares.
  • Color sparingly if at all. It’s a diagram, not a rainbow.