Skip to content

Instantly share code, notes, and snippets.

View blakeparkinson's full-sized avatar

Blake Parkinson blakeparkinson

View GitHub Profile
Problem Solving 2a: is PHP-FPM listening correctly?
A common issue is that the PHP-FPM service is not listening to the host/port which is configured in NGINX. Find the www.conf file on your server in the PHP folder. On Ubuntu this can be found here:
/etc/php5/fpm/pool.d/www.conf
Search for the listen parameter and make note of it:
The address on which to accept FastCGI requests.
Valid syntaxes are:
'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
Problem Solving 2a: is PHP-FPM listening correctly?
A common issue is that the PHP-FPM service is not listening to the host/port which is configured in NGINX. Find the www.conf file on your server in the PHP folder. On Ubuntu this can be found here:
/etc/php5/fpm/pool.d/www.conf
Search for the listen parameter and make note of it:
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
@blakeparkinson
blakeparkinson / 0007-menu-updates.js
Created January 23, 2016 00:08
Glawless Menu update
// this update applies the student role to the dev user
var Q = require('q'),
_ = require('lodash');
module.exports = function(app) {
var deferred = Q.defer(),
NavMenu = app.models.NavMenu;
@blakeparkinson
blakeparkinson / fingerprint.js
Created December 15, 2015 03:43
Getting browser ingo
(function(window, document, JSON){
"use strict";
var SEP = '|', ua, opera, ie;
/*
* Collect Browser & Device Data
*/
var cc = {
//generating ids
hashString : function (s) {
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = '[email protected]'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }