Skip to content

Instantly share code, notes, and snippets.

@derhuerst
derhuerst / 10-geekbench-6.md
Last active June 4, 2025 04:09
VPS price & performance comparison

Geekbench 6

product notes price (incl. VAT) dedic.? cores RAM SSD Yabs Geekbench ST Geekbench MT Geekbench version operating system date of benchmark
Hetzner CPX11 4,58€/m no 2 2GB 40GB - 1476/1496 2714/2732 Geekbench 6.3.0 Build 603408 (rosedale-main-build bca065a7d9) Ubuntu 22.04 2024-07-02
Hetzner CPX21 8,39€/m no 3 4GB 80GB - 1484/1474 3862/3792 Geekbench 6.3.0 Build 603408 (rosedale-main-build bca065a7d9) Ubuntu 22.04 2024-07-02
Hetzner CPX31 15,59€/m
@lennardv2
lennardv2 / 1. Building PHP-MAMP on Apple Silicon M1.md
Last active February 25, 2025 15:28
Native PHP development / MAMP stack on Apple silicon M1

Building the MAMP stack (php, apache & mysql) on Apple Silicon ARM (native)

Update! This tutorial is outdated. Nowadays brew installes m1 binaries just fine. Also use valet: https://laravel.com/docs/9.x/valet. It's 10x easier.

In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of this benchmark below.

TEST NAME SECONDS OP/SEC
@karlhillx
karlhillx / macos_big_sur_homebrew_apache_php_mariadb_2020.md
Last active January 23, 2025 10:27
macOS Big Sur 11.0 Setup: Homebrew + Apache + PHP + MariaDB (Regularly updated)

macOS Big Sur 11.0 Setup: Homebrew + Apache + PHP + MariaDB

This document helps get your macOS development environment up and running with the latest versions of Homebrew, Apache, PHP, and MariaDB.

@theodorejb
theodorejb / convert_array_access_braces.php
Last active August 12, 2024 05:07
Migrate deprecated curly brace array access syntax to bracket syntax. Requires PHP 7.4.
<?php
error_reporting(E_ALL);
$opts = getopt('f:d:rb:', ['ext:', 'php:', 'diff::']);
if ((int)isset($opts['d']) + (int)isset($opts['f']) !== 1) {
$self = basename(__FILE__);
echo <<<EOF
Usage:
php $self -f<php_script> [-b] [--php <path_to_php>] [ --diff [<file>]]
@jonathantneal
jonathantneal / README.md
Last active March 24, 2025 17:47
Local SSL websites on macOS Sierra

Local SSL websites on macOS Sierra

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward the edit command to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"