- JavaScript file:
/usr/local/lib/node_modules/npm/bin/npm-cli.js
- Application parameters:
run start
- JavaScript file:
/usr/local/lib/node_modules/grunt-cli/bin/grunt
git rebase --interactive HEAD~2 | |
# we are going to squash c into b | |
pick b76d157 b | |
pick a931ac7 c | |
# squash c into b | |
pick b76d157 b | |
s a931ac7 c |
#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
<?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 |
<?php | |
/** | |
* Access parent class private member from child class | |
* @param $class $this|object | |
* @param $property string | |
* @param $cache bool | |
* @return mixed | |
*/ | |
$cacheStorage = []; |
$ 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
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:
/** | |
* 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) { |