Skip to content

Instantly share code, notes, and snippets.

View igormukhingmailcom's full-sized avatar

Igor Mukhin igormukhingmailcom

  • Odesa, Ukraine
  • 04:22 (UTC +03:00)
View GitHub Profile
igormukhingmailcom /
Last active February 6, 2024 08:25
Symfony/Sylius stupid issues that hard to debug and which may waste too many hours

Symfony/Sylius stupid issues that hard to debug and which may waste too many hours

1. [Doctrine\Common\Persistence\Mapping\MappingException] Class 'Your\SyliusPlugin\Entity\YourEntity' does not exist

When your plugin is AbstractResourceBundle and all your entities should be and actually placed at Model directory, you have that exception (notice ...\Entity\... at exception rather than ..\Model\...) for your Your\SyliusPlugin\Model\YourEntity.php that is weird.

This happens when you accidentally have your mapping file at src/Resources/config/doctrine/YourEntity.orm.xml (without ../model/.. part) rather than src/Resources/config/doctrine/model/YourEntity.orm.xml.

This issue may happen when you convert some of your application code (which use Entity directory) to plugin (which use Model directory).

nijicha /
Last active June 20, 2024 13:06
Install NVM, Node.js, Yarn via Homebrew
christopher-hopper /
Last active June 18, 2024 01:55 — forked from eporama/
Install phpenv on macOS with homebrew php packages.
#!/usr/bin/env bash
# vim: ai ts=2 sw=2 et sts=2 ft=sh
# Install or re-install phpenv with
# multiple versions of PHP on macOS.
# Usage:
# curl -fsSL "$RANDOM" | bash
ankurk91 /
Last active March 9, 2024 22:20
php xDebug v3 on Ubuntu/Mac and phpStorm

🪲 Install and Configure xDebug v3 on MacOS for PhpStorm 🐘

  • Assuming that you have already installed php and apache via Homebrew

  • Install xDebug php extension

pecl channel-update
pecl clear-cache

pecl install xdebug
ericandrewlewis / gist:95239573dc97c0e86714
Last active December 12, 2023 09:52
Setting up a WordPress site on AWS

Setting up a WordPress site on AWS

This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.

This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.

If you experience any difficulties or have any feedback, leave a comment. 🐬

Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.

dsbaars / Representation.CollectionRepresentation.yml
Created May 23, 2015 17:07
JMSSerializerBundle groups and Hateoas
exclusion_policy: all
exclude: false
expose: true
exclude: false
expose: true
groups: [ Default, Hateoas ]
anonymous /
Created February 15, 2015 19:32
Core algorithm for procedural city generation article (
# author:
# --- third party dependencies
PIXI = require('')
_ = require('lodash')
noise = require('perlin').noise
Quadtree = require('quadtree').Quadtree
seedrandom = require('seedrandom')
# ---
# Some things taken from here
# Set the colours you can use
guilu / infinte.scroll.paginator.html.twig
Created September 10, 2014 20:08
infinte scroll knppaginatorbundle twig
<!DOCTYPE html>
<html lang="es">
<meta charset="UTF-8">
<title>infinite scroll</title>
{% block body %}
<!-- aqui pones el la plantilla que pinta los resultados de knppaginator -->
codeinthehole / docker-osx-shared-folders.rst
Last active November 11, 2023 01:22
How to share folders with docker containers on OSX

How to share a folder with a docker container on OSX

Mounting shared folders between OSX and the docker container is tricky due to the intermediate boot2docker VM. You can't use the usual docker -v option as the docker server knows nothing about the OSX filesystem - it can only mount folders from the boot2docker filesystem. Fortunately, you can work around this using SSHFS.