Skip to content

Instantly share code, notes, and snippets.

View domnikl's full-sized avatar
馃懢

Dominik Liebler domnikl

馃懢
View GitHub Profile
@bashbunni
bashbunni / .zshrc
Last active May 13, 2026 12:45
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 馃槉'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
@rgreenjr
rgreenjr / postgres_queries_and_commands.sql
Last active May 27, 2026 12:23
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'