Skip to content

Instantly share code, notes, and snippets.

View andrasbacsai's full-sized avatar
😎
Making cool things.

Andras Bacsai andrasbacsai

😎
Making cool things.
View GitHub Profile
@andrasbacsai
andrasbacsai / firewall.sh
Last active December 14, 2024 17:38
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.
#################
version: '3.8'
services:
coolify-ssh:
image: lscr.io/linuxserver/openssh-server:latest
container_name: coolify-ssh
environment:
- USER_NAME=hello
- SUDO_ACCESS=true
- LOG_STDOUT=true
- PUBLIC_KEY_FILE=/public-key
@andrasbacsai
andrasbacsai / netlify.toml
Last active November 11, 2021 15:35
Svelte Config for Netlify Adapter (with postcss)
# This will determine where to write static assets based on the build.publish settings, as per this sample configuration.
# More details: https://github.com/sveltejs/kit/tree/master/packages/adapter-netlify
[build]
command = "npm run build"
publish = "build"