Skip to content

Instantly share code, notes, and snippets.

@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
@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++"