Skip to content

Instantly share code, notes, and snippets.

View qstudio's full-sized avatar

Ray qstudio

View GitHub Profile
@qstudio
qstudio / Gruntfile.js
Last active May 24, 2020 12:59 — forked from zimaben/Gruntfile.js
Q SASS Taskrunner Guide
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
// ------- configuration ------- ##
// common SCSS root for easier SCSS @use / @forward / @incuse usage ##
includePaths: [
'./library/theme/scss/' // common SCSS root ##
@qstudio
qstudio / force-ssl-url-scheme.php
Last active January 7, 2016 10:05 — forked from cliffordp/force-ssl-url-scheme.php
Get SSL / HTTPS to work properly on WP Engine type hosts.Jason Cohen, Aug 28 05:29 pm (CDT):This is because the SSL processing is done at the front-end caching layer and not at the back-end PHP layer. By the time the request gets back there, the protocol is HTTP again rather than HTTPS.However, WordPress also defines a PHP variable saying whethe…
<?php
/*
Plugin Name: Force SSL URL Scheme
Plugin URI: https://gist.github.com/cliffordp/6378826
Description: Force the protocol scheme to be HTTPS when is_ssl() doesn't work. Recommended to me by Jason Cohen of WP Engine on 2013-08-28.
Version: 1.0.1
Author: WebAware
Author URI: http://www.webaware.com.au/
*/