Skip to content

Instantly share code, notes, and snippets.

View tobiashochguertel's full-sized avatar
👋

Tobias Hochgürtel tobiashochguertel

👋
View GitHub Profile
@tobiashochguertel
tobiashochguertel / greet-helper.py
Created May 8, 2026 08:41
PEP 723 greet helper for remote import example
#!/usr/bin/env -S uv run -- uvsr
# /// script
# dependencies = ["rich"]
# ///
"""Greeting helper — can be imported from other PEP 723 scripts."""
def greet(name: str) -> str:
return f"Hello, [bold green]{name}[/bold green]!"
@tobiashochguertel
tobiashochguertel / #ide-settings-mgmt-GistSummary
Last active April 29, 2026 15:15
ide-setup: Multi-developer IDE settings management tool with chezmoi, lefthook, and Taskfile integration
# ide-settings-mgmt
Multi-developer IDE settings management tool
A PEP 723 uv inline Python script for managing IDE settings with:
• Per-developer profiles stored in ~/.ide-settings-mgmt/ with chezmoi
• Repository initialization with .ide-settings-mgmt/ structure
• Lefthook integration for git hooks automation
• Taskfile integration for IDE management tasks
• Support for VS Code, JetBrains, and NeoVim
@tobiashochguertel
tobiashochguertel / #playwright-visibility-debug-GistSummary
Last active April 28, 2026 18:48
Reusable Playwright visibility debug utility with CLI screenshots and occlusion diagnostics
# playwright-visibility-debug
Playwright visibility diagnostics CLI
Bun-first TypeScript CLI for debugging UI visibility with:
• DOM presence, viewport, style, and occlusion analysis
• Multi-match selector handling with best-candidate selection
• JSON reports, screenshots, presets, and Taskfile integration
Install: curl -fsSL https://gist.githubusercontent.com/tobiashochguertel/bf7bc60f8946c7ecbe0d14782b4a8c99/raw/install.sh | bash
@tobiashochguertel
tobiashochguertel / #git-submodule-manager-GistSummary
Last active April 17, 2026 14:19
git-submodule-manager: Comprehensive Git Submodule Management Tool - PEP 723 uv inline script with rich output and workflow automation
# git-submodule-manager
Comprehensive Git Submodule Management Tool
A PEP 723 uv inline Python script for managing git submodules with:
• Rich terminal output with tables and colors
• Status checking, workflow automation, JSON output
• Automated pull/push workflows with correct order
Install: curl -fsSL https://gist.github.com/tobiashochguertel/e07a0a79b3ce8e7d157405d6845e473e/raw/install.sh | bash
@tobiashochguertel
tobiashochguertel / #task-help-GistSummary
Last active April 17, 2026 14:19
task-help: pretty-print Taskfile tasks grouped by namespace with ANSI colours (PEP 723 uv inline script)
# task-help
Pretty-Print Taskfile Tasks with Rich Grouped Output
A PEP 723 uv inline Python script that displays Taskfile tasks grouped by
namespace with ANSI colors, emoji headers, and customizable configuration.
Install: curl -fsSL https://gist.github.com/tobiashochguertel/261c54d64fff6dc1493619e2924161b4/raw/install.sh | bash
@tobiashochguertel
tobiashochguertel / jqlog.sh
Created February 22, 2026 09:48 — forked from panzi/jqlog.sh
Follow JSON logs formatted using jq. You can also pass jq options after the filename for filtering.
#!/usr/bin/bash
set -eo pipefail
RED=$(echo -e '\033[0;1;31m')
NORMAL=$(echo -e '\033[0m')
if [[ $# -lt 1 ]]; then
echo "usage: $0 <logfile> [jq-options...]">&2
exit 1
fi
logfile=$1
shift
// ==UserScript==
// @name TH-LoggingLib
// @namespace https://github.com/tobiashochguertel/userscript-lib
// @version 1.0.0
// @description Advanced logging system for UserScripts with level control
// @author tobiashochguertel
// @match *://*/*
// @grant none
// @run-at document-start
// ==/UserScript==
@tobiashochguertel
tobiashochguertel / Add-Path.ps1
Last active September 20, 2015 19:33
Add-Path Cmdlet
function Add-Path {
<#
.SYNOPSIS
Adds a Directory to the Current Path
.DESCRIPTION
Add a directory to the current path. This is useful for temporary
changes to the path or, when run from your profile, for adjusting
the path within your powershell prompt.
.EXAMPLE
Add-Path -Directory "C:\Program Files\Notepad++"