Skip to content

Instantly share code, notes, and snippets.

@tgamanov
tgamanov / tip.md
Last active July 24, 2018 10:06 — forked from devdrops/tip.md
Restart PHP-FPM on Mac

Brew restart services

restart php-fpm: brew services restart php70

restart all brew services restart --all

If you don't have brew services, try installing it like this: brew tap homebrew/services

@Quinten
Quinten / html-comment-via-layout-xml-in-magento2.xml
Created January 5, 2016 16:17
Sometimes you just need an empty container in Magento 2. But when a container is empty (contains no blocks) it is not rendered. This way you can add a html comment inside the container.
<block class="Magento\Framework\View\Element\Text" name="comment.placeholder">
<arguments>
<argument name="text" xsi:type="string"><![CDATA[<!-- -->]]></argument>
</arguments>
</block>
@natchiketa
natchiketa / a Super-simple Nginx reverse proxy with Homebrew on OS X.md
Last active May 18, 2023 04:54
Super-simple Nginx reverse proxy with Homebrew on OS X

Installation

1)

brew install nginx
sudo cp /usr/local/Cellar/nginx/1.8.0/homebrew.mxcl.nginx.plist /Library/LaunchAgents

2)

Replace /usr/local/etc/nginx/nginx.conf with the nginx.conf in this gist. I'm using port 5000 for my current project. Obviously, change server_name as well, and probably the name of its access log.