Skip to content

Instantly share code, notes, and snippets.

View rynaberey's full-sized avatar
🇩🇪

Brian Beyer rynaberey

🇩🇪
View GitHub Profile
@kitloong
kitloong / mac-homebrew-lamp.md
Last active September 20, 2024 20:30
Mac - Install Apache, PHP, MySQL + phpMyAdmin with Homebrew

!!! This guide was created with Macbook Pro M1. Path may vary for different or even same machine.

Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Install PHP

@vielhuber
vielhuber / empty-folder.php
Last active January 12, 2023 08:03
script to find empty folders (recursively) and place an empty file in it #php
<?php
function EmptySubFolders($path) {
$empty = true;
foreach(glob($path.DIRECTORY_SEPARATOR."*") as $file) {
if (is_dir($file)) {
if (!EmptySubFolders($file)) {
$empty = false;
}
}
else {