## this is the all-in-one, standalone Discourse Docker container template
##
## After making changes to this file, you MUST rebuild
## /var/discourse/launcher rebuild app
##
## BE *VERY* CAREFUL WHEN EDITING!
## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
## visit http://www.yamllint.com/ to validate this file as needed
# FORGE CONFIG (DO NOT REMOVE!)
include forge-conf/forum.allraces.org/before/*;
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name forum.allraces.org;
root /home/forge/forum.allraces.org/; # /!\ UPDATE WITH YOUR DOMAIN
All models are converted via the Symfony Serializer component. The bundle also support the popular JMS Serializer bundle.
There are 3 main ways:
- Use annotations in entity (Not the most powerful but very simple)
- Write custom
normalize
method in entity - Write custom
EntityNormalizer
class
sudo add-apt-repository ppa:pinepain/libv8-5.2 | |
sudo apt-get update | |
sudo apt-get install libv8-5.2 | |
sudo pecl install v8js | |
sudo su | |
echo "extension=v8js.so" >> /etc/php/7.1/fpm/php.ini | |
echo "extension=v8js.so" >> /etc/php/7.1/cli/php.ini | |
exit | |
sudo service nginx restart && sudo service php7.1-fpm restart |
I recently got a new Macbook Pro and wanted to document how I setup my PHP environment. I like full control of how PHP is built and I usually build it from source. I do this because I often add custom extensions and modules not found in the common PHP OSX installers. If your looking for a easier method than building from source try https://php-osx.liip.ch/.
NOTE: This post assumes you are running a fresh install of MacOS Sierra 10.12.16 with System Integrity Protection disabled. If you don't know how to disable it just boot into recovery mode and open a terminal and type
csrutil disable
, or google search it :) This post also assumes you are using Zsh instead of Bash shell. If you are using Bash you can replace anytime you see~/.zshrc
with~/.bashrc
.
First lets get some of the prerequisites. Start by grabbing the command line tools neccessary:
xcode-select --install
[ | |
{ | |
"category": "Books", | |
"name": "iBooks", | |
"image_ok": false, | |
"image": "http://is1.mzstatic.com/image/thumb/Purple62/v4/d3/84/38/d38438a5-6cb4-bad5-72c1-64da79f2c200/source/175x175bb.jpg", | |
"rank": 1, | |
"link": "http://itunes.apple.com/us/app/ibooks/id364709193?mt=8", | |
"image_updated": true | |
}, |
<?php | |
/* | |
* This file is part of the Symfony/demo project | |
* https://github.com/symfony/demo | |
* | |
*/ | |
namespace App\Entity; |
; Make Bootcamp Windows keys act like OSX | |
; by @levelsio | |
; | |
; 2017-11-02 | |
; | |
; Licensed as GPL | |
; | |
; Use autohotkey.com to load this file on Windows | |
; | |
; This fixes Cmd+Tab to work like Alt+Tab, also keys like Cmd+C as Ctrl+C etc., Cmd+Q to Alt-F4 |