Skip to content

Instantly share code, notes, and snippets.

@malarzm
malarzm / MemoryGuard.php
Last active March 26, 2024 21:18
PHPUnit's MemoryGuard
<?php
declare(strict_types=1);
namespace Answear\DevelopmentHelpers\PHPUnit;
use PHPUnit\Framework\Test;
use PHPUnit\Framework\TestListener;
use PHPUnit\Framework\TestListenerDefaultImplementation;
@malarzm
malarzm / InsertIgnore.php
Created May 11, 2020 14:31
ORM InsertIgnore
<?php
declare(strict_types=1);
namespace App\Shop\Extension\Doctrine\Execution;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Doctrine\ORM\Persisters\Entity\EntityPersister;
class InsertIgnore
@malarzm
malarzm / README.md
Last active February 9, 2017 14:38
Raspberry Pi: VLC and Samba

Background

After finding amazing VLC Remote app (and being sick) I decided to build a "Movie Center" out of Raspberry Pi. Main objectives were:

  • Make my laptop usable while watching movies on TV
  • Usable by a non-tech person (even after unexpected reboot one can turn on mobile app and play a movie)
  • Serves as a shared network disk (for Windows computers)

Configure PI