Skip to content

Instantly share code, notes, and snippets.

View Mozart409's full-sized avatar
🏠
Working from home

Amadeus Mozart409

🏠
Working from home
View GitHub Profile
@K-Mistele
K-Mistele / Dockerfile
Last active January 16, 2025 18:36
Dockerfile for pgvector (postgres 16) + vectorscale by Timescale DB. Only what you need, no other timescale stuff.
FROM pgvector/pgvector:pg16
# install prerequisites
## rust
RUN apt-get update
RUN apt-get install -y build-essential curl git jq make gcc pkg-config clang postgresql-server-dev-16 libssl-dev
RUN apt-get update
# Get Rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
@andrasbacsai
andrasbacsai / firewall.sh
Last active January 27, 2025 14:01
Update a Hetzner Firewall rule with your IP address
#!/bin/bash
# Script to update a firewall rule in a Hetzner Firewall with your current IP address.
# Good if you would like to restrict SSH access only for your current IP address (secure).
#################
# WARNING: This script will overwrite all rules in the firewall rules, so make sure you
# added all the required rules.
# I use a separate firewall rule just for SSH access.
#################