Skip to content

Instantly share code, notes, and snippets.

View tgeorgel's full-sized avatar

Thomas Georgel tgeorgel

  • BlueRock
  • France
View GitHub Profile
@tgeorgel
tgeorgel / functions.php
Last active February 24, 2022 16:10
Add Laravel Mix versionning (mix-manifest.json) to Wordpress
<?php
if (! function_exists('mix')) {
/**
* Get the path to a versioned Mix file.
*
* @param string $path
* @return \Illuminate\Support\HtmlString|string
*
* @throws \Exception
@tgeorgel
tgeorgel / .zshrc
Last active July 12, 2022 15:46
Ubuntu Valet : Multiple PHP version management (zsh function)
# Change PHP version
php-v () {
if [[ $1 -eq '' ]]
then
version="8.1" # default php version
else
version="$1"
fi
# kill all php-fpm processes
@tgeorgel
tgeorgel / InvadeProxy.php
Last active March 15, 2024 13:02
Invade PHP class easily (no dependancy)
<?php
namespace App;
class InvadeProxy
{
public function __construct(
public $target,
) {}