Skip to content

Instantly share code, notes, and snippets.

View SergeyMiracle's full-sized avatar

SergeyMiracle SergeyMiracle

  • Canada
View GitHub Profile
@SergeyMiracle
SergeyMiracle / yml-tpl
Created August 20, 2014 14:32
Яндекс Маркет для MODx Evo
<offer id="[+id+]" available="true">
<url>[(site_url)][~[+id+]~]</url>
<price>[+price+]</price>
<currencyId>RUR</currencyId>
<categoryId>[[UltimateParent? &id=`[+id+]` &topLevel=`2`]]</categoryId>
<picture>[(site_url)][+image+]</picture>
<delivery>true</delivery>
<name>[+pagetitle+]</name>
<vendor>[[DocInfo? &field=`pagetitle` &docid=`[[UltimateParent? &id=`[+id+]` &topLevel=`2`]]`]]</vendor>
<description>
@SergeyMiracle
SergeyMiracle / nginx_auto_start.sh
Created January 13, 2017 04:42 — forked from aymanosman/nginx_auto_start.sh
Nginx: Start nginx on boot on Mac
# brew install nginx
sudo ln -s /usr/local/opt/nginx/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
sudo chown root:wheel /usr/local/opt/nginx/homebrew.mxcl.nginx.plist
sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
# Why do you need sudo?
# If you want nginx to be able to bind to port 80, it will need superuser privileges