Skip to content

Instantly share code, notes, and snippets.

View vardumper's full-sized avatar
:accessibility:
too lazy to update my status

Erik Pöhler vardumper

:accessibility:
too lazy to update my status
View GitHub Profile
@pronskiy
pronskiy / php_conferences.md
Last active May 17, 2024 09:05
PHP Conferences 2024
Name Date 2024 Date previous Region City, Country # Attendees
PHP Benelux Jan 24-25, 2020 Europe Antwerp, Belgium 450
Fosdem Feb 3-4 Europe Brussels, Belgium
Laracon EU Feb 5-6 Europe Amsterdam, Netherlands 800
SunshinePHP February 6-8, 2020 North America Miami, US 350
Laravel Japan February 6, 2019 Asia
@FoxCouncil
FoxCouncil / bitnami-php-fpm:redis:latest.Dockerfile
Last active July 8, 2023 09:45
Dockerfile to use Bitnami's PHP-FPM latest, but with Redis 5.3.7 support
# syntax=docker/dockerfile:1
FROM bitnami/php-fpm
RUN apt-get update && apt-get install -y \
autoconf \
build-essential \
wget
RUN cd /root \
&& wget https://pecl.php.net/get/redis-5.3.7.tgz \
&& tar xzf redis-5.3.7.tgz && cd redis-5.3.7 \
&& phpize \
@Swiss-Mac-User
Swiss-Mac-User / a_Docker setup.md
Last active May 13, 2024 05:51
Installing SonarQube on Docker and SonarScanner using Homebrew on macOS

Docker setup

Install the Docker UI application for macOS

brew install docker --cask

Open the Docker.app

from /Applications/Docker.app

Go to the Docker Dashboard

Wait until the "Docker Dashboard starting…"-message disappears (= Setup complete)

@bmatthewshea
bmatthewshea / certbot_pip_install-debian_ubuntu.md
Last active December 19, 2024 16:21
Debian/Ubuntu - CERTBOT without SNAP/SNAPD

CERTBOT - Install using Python PIP

Install Certbot using Python PIP (Package Installer for Python) - without using SNAP, APT or SYSTEMD. (Debian/Ubuntu)


This guide will help you install LetsEncrypt / Certbot using venv PIP under Debian/Ubuntu.

  • This guide has been tested up to Debian 12 / Bookworm.
@fedek6
fedek6 / opcache-preload.php
Created October 30, 2020 09:18
Working WordPress opcache preloading config
<?php
/**
* WordPress opcache preloading.
* Requires PHP >= 7.4.
*
* @author Konrad Fedorczyk <contact@realhe.ro>
* @link https://stitcher.io/blog/preloading-in-php-74
*
* @version 1.0.0
*/
@jbrinley
jbrinley / opcache.preload.php
Created December 22, 2019 20:16
WordPress core opcache.preload
<?php
declare( strict_types=1 );
$wp_dir = '/application/www/wp/';
$preload_patterns = [
$wp_dir . "wp-includes/Text/Diff/Renderer.php",
$wp_dir . "wp-includes/Text/Diff/Renderer/inline.php",
$wp_dir . "wp-includes/SimplePie/**/*.php",
$wp_dir . "wp-includes/SimplePie/*.php",
@MadMikeyB
MadMikeyB / INSTALL-SHOPWARE-SIX.md
Last active June 20, 2024 13:11
Shopware 6 - Laravel Valet Driver

Install Shopware 6 (For Development)

cd ~/sites
valet park
# clone shopware
git clone -b 6.1 https://github.com/shopware/development.git shopware
# change directory
cd shopware
# install dependencies
@andrerom
andrerom / LazyGeneratorCollection.php
Last active November 10, 2023 14:52
Lazy Collection using Generator in PHP (Example, script in bottom of file to test it)
<?php
/**
* Class GeneratorCollection, allows for lazy loaded arrays using Generators withouth it's limitations.
*
* This collection class takes Generator as argument, and allows user to threat it like any kind of array. It will take
* care about storing the values returned from generator so user can iterate over it several times.
*
* NOTE: In current form only works with generators that uses integers as keys (lists).
*/
@lukecav
lukecav / Query
Last active July 11, 2024 16:45
MySQL script to get all WooCommerce orders including metadata
select
p.ID as order_id,
p.post_date,
max( CASE WHEN pm.meta_key = '_billing_email' and p.ID = pm.post_id THEN pm.meta_value END ) as billing_email,
max( CASE WHEN pm.meta_key = '_billing_first_name' and p.ID = pm.post_id THEN pm.meta_value END ) as _billing_first_name,
max( CASE WHEN pm.meta_key = '_billing_last_name' and p.ID = pm.post_id THEN pm.meta_value END ) as _billing_last_name,
max( CASE WHEN pm.meta_key = '_billing_address_1' and p.ID = pm.post_id THEN pm.meta_value END ) as _billing_address_1,
max( CASE WHEN pm.meta_key = '_billing_address_2' and p.ID = pm.post_id THEN pm.meta_value END ) as _billing_address_2,
max( CASE WHEN pm.meta_key = '_billing_city' and p.ID = pm.post_id THEN pm.meta_value END ) as _billing_city,
max( CASE WHEN pm.meta_key = '_billing_state' and p.ID = pm.post_id THEN pm.meta_value END ) as _billing_state,
@jamieweavis
jamieweavis / macos-app-icon.md
Last active December 16, 2024 02:27
How to create an .icns macOS app icon