Skip to content

Instantly share code, notes, and snippets.

View heroheman's full-sized avatar
🏠
Working from home

heroheman heroheman

🏠
Working from home
View GitHub Profile
@heroheman
heroheman / add-version.sh
Created March 18, 2026 09:41
set semver tag and create changelog
#!/bin/bash
# ============================================================================
# add_version.sh - Version Management Script
# ============================================================================
#
# This script automates version bumping and release tagging for this Nuxt project.
# It reads/writes versions from package.json, creates git tags, and updates the changelog.
#
# Prerequisites:
@heroheman
heroheman / FZF-Script-Management.md
Last active March 18, 2026 09:43
FZF Scripts Snippet Collection

Manage and organize

1. Central fzf-scripts directory + loader

Put each group of functions into its own file (e.g. git.sh, dev.sh, ai.sh) under a single directory and load them from your shell config. junegunn.github

# ~/.config/fzf-scripts/*.sh and optional allow-list via FZF_SCRIPTS_ENABLED
FZF_SCRIPTS_DIR="${FZF_SCRIPTS_DIR:-$HOME/.config/fzf-scripts}"
FZF_SCRIPTS_ENABLED="${FZF_SCRIPTS_ENABLED:-}"
@heroheman
heroheman / 1_strudel_cc-cheatsheet_de.md
Last active March 18, 2026 09:50
Cheatsheet for Strudel.cc - german and english (ai translation)

(english version below 🇬🇧)

Cheatsheet für Strudel.cc

1. Grundlegende Syntax und Muster

Zeichen Funktion Beispiel Beschreibung
< > Sequenz <a b c> Spielt a, dann b, dann c
[ ] Stack [bd hh] Spielt bd und hh gleichzeitig
@heroheman
heroheman / ADD_tasks_metadata.js
Last active August 29, 2023 06:16
Obsidian Templater Script - add task metadata to current line #obsidian #obsidian-md #obsidian-templater #templater #templater-script #tasks #obsidian-task
<%*
const format = 'blub'; // default format
// let metadataType = await tp.system.prompt('Enter the type of metadata (Priority, Repeat, Start, Scheduled, Due, Created, Completion)');
const metadataTypes = ['priority', 'repeat', 'start', 'scheduled', 'due', 'created', 'completion'];
const priorityTypes = ['highest', 'high', 'medium', 'low', 'due', 'lowest'];
const metadataType = await tp.system.suggester(metadataTypes, metadataTypes, true, 'Select the type of metadata');
let metadata;

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@heroheman
heroheman / ubuntu-dev-setup.sh
Created March 12, 2018 18:39
A simple script for my webdev setup on ubuntu. My dotfiles are separated at: https://github.com/heroheman/dotfiles
#!/bin/bash
# Logging stuff.
function e_header() { echo -e "\n\033[1m$@\033[0m"; }
function e_success() { echo -e " \033[1;32m✔\033[0m $@"; }
function e_error() { echo -e " \033[1;31m✖\033[0m $@"; }
function e_arrow() { echo -e " \033[1;34m➜\033[0m $@"; }
e_header 'Update System'
e_arrow 'sudo apt update'
@heroheman
heroheman / spacemacs-cheatsheet.md
Last active August 25, 2025 15:09
Spacemacs Cheatsheet - A cheat sheet for my most common shortcuts in Spacemacs

General

Shortcut Description
SPC f e d Open Configuration
SPC f e R Reload Configuration
SPC SPC Search Emacs
SPC h SPC Search Spacemacs Layer
SPC f s Save Buffer
SPC q q Quit Emacs w/ Prompt
SPC q Q Quit Emacs w/o Prompt
@heroheman
heroheman / ranger-cheatsheet.md
Last active March 15, 2026 20:23
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@heroheman
heroheman / tmux-cheatsheet.md
Last active July 1, 2022 11:34
Tmux Simple Cheatsheet

Basic Tmux Cheatsheet

Sessions

In Bash

  • start new session: tmux
  • start new session with name: tmux new -s sessionname
  • show running sessions: tmux ls
  • attach last session: tmux a
  • attach session by name: tmux a -t sessionname
@heroheman
heroheman / .vimrc-relativenumbers
Last active September 7, 2016 21:34
Vim: Relative Number Toggle
" Function: RELATIVENUMBER"{{{
set relativenumber
" toggle line numbering mode
if exists("+relativenumber")
if v:version >= 400
set number
endif
set relativenumber " show relative line numbers
set numberwidth=3 " narrow number column
" cycles between relative / absolute / no numbering