Skip to content

Instantly share code, notes, and snippets.

View slashfan's full-sized avatar

Nicolas Cabot slashfan

View GitHub Profile
@slashfan
slashfan / build-own-deployer-6-phar.sh
Last active June 6, 2022 13:17
Build your own Deployer 6 phar (including contrib recipes)
$ cd ~/projects
$ git clone https://github.com/deployphp/recipes.git
$ cd recipes
$ git checkout 6.2.2
$ cd ~/projects
$ git clone https://github.com/deployphp/deployer.git
$ cd deployer
$ git checkout v6.8.0
@slashfan
slashfan / fix.sh
Created January 16, 2020 12:57
Broken emojis on ubuntu 19.10
$ sudo apt remove fonts-noto-color-emoji
$ sudo apt install fonts-noto-color-emoji
@slashfan
slashfan / doc.md
Created November 17, 2017 09:33
Lexik Doc

Insertion :

<script>
    window.lxdoc = window.lxdoc || function () {(lxdoc.q = lxdoc.q || []).push(arguments)};
    lxdoc('project', 'demo');
</script>
<script async src='https://cdn.lexik.fr/widget.js'></script>
@slashfan
slashfan / hard-delete.php
Created June 12, 2015 08:21
Doctine PostRemove event and SoftDeleteable behavior
<?php
/**
* @ORM\Entity
*/
class Article
{
// ...
}
@slashfan
slashfan / ImageExtractor.php
Created March 11, 2015 08:40
Basic ImageExtractor PHP Class - Extract first page of a PDF file to an image (jpg or png) using Imagick PHP extension
<?php
namespace Acme\Util;
/**
* ImageExtractor
*/
class ImageExtractor
{
const FORMAT_JPG = 'jpg';