Skip to content

Instantly share code, notes, and snippets.

View haapmik's full-sized avatar

Mikko Haapanen haapmik

View GitHub Profile
@haapmik
haapmik / ublock-filter-list-guide.md
Last active May 16, 2024 11:12
uBlock origin filter list guide to hide unwanted content from various websites.
@haapmik
haapmik / postgres.Dockerfile
Last active June 26, 2024 18:44
An example Dockerfile for PostgreSQL that uses Alpine as the base image. It employs a multi-stage build to re-build gosu with a newer Go version and also includes additional PostgreSQL extensions.
# Common arguments
ARG PG_EXTENSION_DIR=/usr/local/share/postgresql/extension
ARG PG_LIB_DIR=/usr/local/lib/postgresql
ARG GO_BIN_PATH=/go/bin
# STAGE: build 'gosu' with latest golang version
# This will get rid of all false positive CVE alerts related to golang 1.18,
# see https://github.com/tianon/gosu/security
FROM library/golang:alpine3.20 AS build-gosu
RUN go install github.com/tianon/gosu@latest