Skip to content

Instantly share code, notes, and snippets.

View bakatz's full-sized avatar
👨‍💻
Shipping

Ben Katz bakatz

👨‍💻
Shipping
View GitHub Profile
@bakatz
bakatz / uptime-kuma-node-patch.sh
Last active October 22, 2026 03:41
uptime-kuma nodejs patch
# enter the uptime-kuma container
docker exec -it <container id> bash
# inside the container, use this script to patch the node version to the latest one:
set -eu
apt install -y xz-utils
cd ~/
curl -fsSLO https://nodejs.org/dist/v22.23.4/node-v22.23.4-linux-x64.tar.xz
curl -fsSLO https://nodejs.org/dist/v22.23.4/SHASUMS256.txt
@bakatz
bakatz / coolify.tf
Created August 29, 2024 07:34
Coolify postgres issue repro
resource "aws_security_group" "allow_coolify_ui_ingress" {
name = "allow_coolify_ui_ingress"
vpc_id = data.aws_vpc.default.id
}
resource "aws_vpc_security_group_ingress_rule" "allow_coolify_ui_ingress_ipv4_rule" {
security_group_id = aws_security_group.allow_coolify_ui_ingress.id
cidr_ipv4 = "0.0.0.0/0"
ip_protocol = "tcp"
@bakatz
bakatz / import_dotenv_to_gh_and_kamal.sh
Last active August 8, 2024 02:26
Import your .env files to GitHub Actions and generate a Kamal .env.erb referencing all of them
#!/bin/bash
# Check if .env file is provided as argument
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <path-to-.env-file>"
exit 1
fi
ENV_FILE=$1