Skip to content

Instantly share code, notes, and snippets.

View VincentBean's full-sized avatar

Vincent Boon VincentBean

View GitHub Profile
@VincentBean
VincentBean / find_cheaper_hetzner_servers.sh
Created November 7, 2025 14:40
A script to find cheaper Hetzner servers compared to what you have
#!/bin/bash
#
# Hetzner Cloud Server Info & Cost Optimizer
#
# Description:
# Fetches all servers from your Hetzner Cloud account and analyzes their pricing.
# For each server, it identifies cheaper server types with equal or better specs.
# Results are exported to a tab-separated file (servers.txt) with cost savings.
#
# Setup:
@VincentBean
VincentBean / api.php
Created September 9, 2022 17:30
Laravel simple endpoint for github webhook to call deploy script
<?php
Route::post('/deploy', function(Request $request) {
if (($signature = $request->headers->get('X-Hub-Signature')) == null) {
abort(400, 'Signature header is not set.');
}
$signatureData = explode('=', $signature);