Skip to content

Instantly share code, notes, and snippets.

View PeloNZ's full-sized avatar

Chris Wharton PeloNZ

View GitHub Profile
@PeloNZ
PeloNZ / ssl_check_function
Created September 10, 2013 03:43
useful function from wordpress to determine if a page is using ssl
/**
* Determine if SSL is used.
*
* @since 2.6.0
* @link http://core.trac.wordpress.org/browser/tags/3.3.2/wp-includes/functions.php#L0
*
* @return bool True if SSL, false if not used.
* @license GPL
*/
public static function is_ssl() {
@PeloNZ
PeloNZ / gist:5931194
Last active December 19, 2015 09:09 — forked from arnorhs/gist:1517095
#!/bin/bash
# This script will open all files from a git diff or a git show in vim.
# My bash skills are a bit primitive so this can probably be done more intelligently
# Usage:
# gitopen -- opens all added files that have changed since HEAD
# gitopen diff HEAD -- these are the default parameters
# gitopen diff master -- opens files that have changed from master