xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.var_display_max_depth = -1
xdebug.var_display_max_children = -1
xdebug.var_display_max_data = -1
xdebug.idekey = "PHPSTORM"
| ... | |
| client_max_body_size 256M; | |
| #gzip on; | |
| server { | |
| listen 80; | |
| server_name localhost; | |
| root html; |
| /** | |
| * Source: https://wordpress.org/plugins/meta-box-yoast-seo | |
| */ | |
| /* global jQuery, DS1_fields */ | |
| // My custom metabox subtitle input id | |
| var DS1_fields = ['acf-field_54da15f9ad3c2']; | |
| (function (fields) { |
Another quick one as I'm sure I'll need to do this on another machine.
When launching PHPStorm, I was presented with a grey box that did nothing. I realised that it was probably related to the fact that I’m running XMonad.
After a quick Google, I came across the the tried and tested setWMName LG3D that I've used previously (to make Source games run under Steam). Unfortunately, this wasn’t working for PHPStorm because I’m also using XMonad.Hooks.EwmhDesktops which nullifies the effect of setWMName.
This issue existing because Xmonad is a non-reparenting window manager, and we need to inform Java of that.
You can either specify the environment variable when launching phpstorm:
- Ubuntu 16.04+
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt update
$ sudo apt install nginx php7.1-fpm php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-phpdbg php7.1-mbstring php7.1-gd php7.1-imap php7.1-ldap php7.1-pgsql php7.1-pspell php7.1-recode php7.1-soap php7.1-tidy php7.1-dev php7.1-intl php7.1-curl php7.1-zip php7.1-xml php-xdebug| <?php | |
| /** | |
| * Access parent class private member from child class | |
| * @param $class $this|object | |
| * @param $property string | |
| * @param $cache bool | |
| * @return mixed | |
| */ | |
| $cacheStorage = []; |
| <?php | |
| // API access key from Google API's Console | |
| define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
| $registrationIds = array( $_GET['id'] ); | |
| // prep the bundle | |
| $msg = array |
#Simple Authentication with Bcrypt
This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.
The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).
You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault
##Steps