Skip to content

Instantly share code, notes, and snippets.

@FunctionDJ
FunctionDJ / linux-debian-ubuntu.md
Last active September 28, 2025 16:01
Useful Linux / Debian / Ubuntu commands and stuff

Upgrade a Postgres DB in Docker (e.g. for paperless-ngx)

services:
  old:
    image: postgres:13
    container_name: pg13
 volumes:
@mwinters0
mwinters0 / gist:c70d195c5c5670d1625f
Created November 10, 2014 19:43
Shell one-liner to parse apache access logs and extract a unique URL list with hit count, querystring excluded.
cat access.log | awk -F\" '{print $2}' | awk '{print $2}' | sed '/^$/d' | sed 's/\?.*//g' | sort | uniq -c | sort -rn > url_hits.txt