Skip to content

Instantly share code, notes, and snippets.

View c0m4r's full-sized avatar
🐧
noot noot

c0m4r

🐧
noot noot
View GitHub Profile
@c0m4r
c0m4r / gentoo_arm64_ipv6_hetzner_cloud.md
Last active December 7, 2024 19:31
Gentoo ARM64 IPv6 installation on Hetzner Cloud VPS

Gentoo ARM64 IPv6 quick-ish setup on Hetzner Cloud

image

This guide explains how to waste your time installing Gentoo on a Hetzner Cloud VPS.

Not only that, I use IPv6-only connected machine and Arm64 at the same time. If I'm not insane, I don't know who is.

Also, yes, I'm skipping lots of configuration steps.

@c0m4r
c0m4r / image_copy_without_copying_image.md
Last active January 19, 2024 16:25
How to copy an image without copying the image

How to copy an image without copying the image

Table of contents

An image

@c0m4r
c0m4r / vyos_installation_hetzner_cloud.md
Last active April 20, 2025 19:18
VyOS installation on Hetzner Cloud VPS

VyOS installation on Hetzner Cloud VPS

This guide explains how to install the VyOS Rolling Release (free nightly builds) on Hetzner Cloud VPS. This might also work for other VPS providers with the proper rescue system in place.

First log into Hetzner Cloud, switch to your VPS control panel, select Rescue -> Enable Rescue and Power Cycle. It takes up to 1 minute to boot into rescue mode. Your login details will be displayed in the control panel after you activate the console. You can also use previously defined SSH keys.

Hetzner Rescue SSH

Download and write the ISO image in the Rescue environment:

@c0m4r
c0m4r / freebsd_hetzner_cloud_vps.md
Last active April 27, 2025 19:03
FreeBSD installation on Hetzner Cloud VPS
@c0m4r
c0m4r / Arch_Linux_ARM_aarch64_ipv6_installation.md
Last active January 11, 2025 14:55
Arch Linux ARM (aarch64/IPv6) installation

Arch Linux ARM (Aarch64/IPv6) installation

Generic AArch64 Installation

Tarball mirors with IPv6 support

Country Official URL
USA true https://ca.us.mirror.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
Denmark true http://dk.mirror.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
@c0m4r
c0m4r / python_linters.md
Last active January 11, 2024 11:35
Python linters, formatters, best practices

Python linters, formatters, best practices

name installation skipping optional
bandit pip install bandit -S
codespell pip install codespell
mypy pip install mypy --disable-error-code --strict
pylama pip install pylama -i --ignore
pylint pip install pylint --disable
pyright pip install pyright
@c0m4r
c0m4r / paranoya_and_php-malware-finder.md
Last active January 17, 2024 14:46
php-malware-finder yara rules for paranoya

php-malware-finder yara rules for paranoya

Modified to somehow work with paranoya simple IOC and Yara scanner.

⚠️ Notice: They work a bit excessive without whitelisting, causing a lot of false positives, keep that in mind.

cd signature-base/yara && curl -Ls \
@c0m4r
c0m4r / websites_validators.md
Last active April 3, 2024 14:18
website validators and security tools

website validators and security tools

Syntax Method Type
pagespeed Web-based 🐌 Page speed
webpagetest Web-based 🐌 Page speed
pwabuilder Web-based πŸ“± Progressive Web App (PWA)
lighthouse Web-based πŸ“± Progressive Web App (PWA)
validator.w3.org Web-based πŸ“„ HTML validation
site-validator Web-based πŸ“„ HTML validation
@c0m4r
c0m4r / docker_ipv6_only_host.md
Last active November 3, 2024 09:40
Docker inside IPv6-only host

Docker inside the IPv6-only host

This guide tries to explain workarounds required to live with Docker on a IPv6-only host.

NAT64 over dnsmasq

Docker hub itself works great with IPv6, but other services - like github - not so much. In order to enable communication with IPv4-only services wee need to use a proxy like https://github.via-ipv6.com/ or NAT64.

However, we don't necessarily want all traffic being routed through that service. Therfore, we're using dnsmasq to use NAT64 only for domains we need.

@c0m4r
c0m4r / void_linux_hetzner_arm_ipv6.md
Last active February 15, 2025 18:32
Void Linux installation on Hetzner Cloud VPS (Arm64/IPv6-only)

Void Linux installation on Hetzner Cloud VPS

(Arm64/IPv6-only)

This guide describes how to install Void Linux on ARM Hetzner Cloud instances with IPv6-only setup.

image

Table of contents: