Skip to content

Instantly share code, notes, and snippets.

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

jerlendds jerlendds

💭
🦷🧵🦾
View GitHub Profile
@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.
@jerlendds
jerlendds / claude.md
Created July 4, 2025 23:56
# Task Implementation Guide

Task Implementation Guide

You are implementing a development task. You will adopt the appropriate technical expertise based on the mode specified and follow established patterns for the OSINTBuddy codebase.

Implementation Tasks

The current implementation has these dependencies: 1.

@jerlendds
jerlendds / i3-config
Last active July 9, 2025 03:27
$ cat ~/.config/i3/config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# .pt as https://github.com/adi1090x/polybar-themes.git
# i3 config file (v4)
#
#!/bin/env bash
firefox ~/.cyberchef/CyberChef_v9.37.3.html
@jerlendds
jerlendds / .gitconfig
Last active June 26, 2025 23:29
.gitconfig
[user]
name = jerlendds
email = [email protected]
signingkey = /home/jerlendds/.ssh/id_github
[init]
defaultBranch = main
[alias]
pushall = !git remote | xargs -L1 -I R git push R 2> /dev/null
lg3 = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all
@jerlendds
jerlendds / config
Created June 26, 2025 23:23
.ssh/config
Host codeberg.org
HostName codeberg.org
IdentitiesOnly yes
HostName codeberg.org
IdentityFile ~/.ssh/id_codeberg
Host github.com
IdentitiesOnly yes
HostName github.com
IdentityFile ~/.ssh/id_github
@jerlendds
jerlendds / gitgraph.sh
Created June 26, 2025 23:06
gitgraph
#!/bin/env bash
# https://stackoverflow.com/a/61487052
# Create some nice table-like logs for a beautiful output
while IFS=+ read -r graph hash time branch message;do
# Count needed amount of white spaces and create them
whitespaces=$((9-$(sed -nl1000 'l' <<< "$graph" | grep -Eo '\\\\|\||\/|\ |\*|_' 2>/dev/null | wc -l)))
whitespaces=$(seq -s' ' $whitespaces|tr -d '[:digit:]')
# Show hashes besides the tree ...
@jerlendds
jerlendds / .bashrc.sh
Last active June 26, 2025 22:54
.bashrc
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
alias grep='grep --color=auto'
@jerlendds
jerlendds / mp4-to-gif
Last active February 14, 2024 03:31
mp42gif
#!/bin/bash
ffmpeg \
-i "$1" \
-r "$2" \
-vf "scale=512:-1,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" \
"$1.gif"
[
{
"label": "GEOSINTsearch",
"description": "Searches within posts from Twitter, Reddit and 4Chan and presents anything that contains a Google Maps link",
"value": "https://cse.google.com/cse?cx=015328649639895072395:sbv3zyxzmji"
},
{
"label": "Pasted tekst",
"description": "Look if any specifc text has been posted before",
"value": "https://cse.google.com/cse/publicurl?cx=013991603413798772546:nxs552dhq8k"