Skip to content

Instantly share code, notes, and snippets.

View Sauerbrei's full-sized avatar
✌️
I may be slow to respond.

Sauerbrei

✌️
I may be slow to respond.
View GitHub Profile
@manuelselbach
manuelselbach / README.md
Last active September 17, 2025 19:32
xdebug docker on macOS with PhpStorm

Use xdebug with docker on macOS and PhpStorm

To use xdebug with macOS and docker is quite, let´s call it tricky ;)

The following steps need to be proceed to get it working:

  1. use the config from the xdebug.ini wihtin your docker web container. Important: set remote_connect_back to off

UPDATE

@odan
odan / xampp_php7_xdebug.md
Last active August 5, 2026 05:48
Installing Xdebug for XAMPP
@m1st0
m1st0 / php_build_ubuntu.sh
Last active April 27, 2026 08:09
Compiling PHP 8 on Ubuntu 25.04 with module support and optimized compilation. Included MariaDB and MySQL compatibility.
#!/bin/bash
# ⚠️ This project has moved
# https://github.com/m1st0/php_ubuntu_build_script
# This gist is no longer maintained
echo "This project moved to: https://github.com/m1st0/php_ubuntu_build_script"
exit 1
# PHP 8 Compile #
@nolanlawson
nolanlawson / protips.js
Last active March 1, 2026 16:21
Promise protips - stuff I wish I had known when I started with Promises
// Promise.all is good for executing many promises at once
Promise.all([
promise1,
promise2
]);
// Promise.resolve is good for wrapping synchronous code
Promise.resolve().then(function () {
if (somethingIsNotRight()) {
throw new Error("I will be rejected asynchronously!");
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active August 8, 2026 12:58
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName