Skip to content

Instantly share code, notes, and snippets.

Got Married

Jamie Holding cubehouse

Got Married
Block or report user

Report or block cubehouse

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cubehouse / gist:5a5cbb831ef630c482e9
Last active Aug 29, 2015
Prosody Node.JS Auth Template
View gist:5a5cbb831ef630c482e9
// create readline interface (standard NodeJS module)
var readline = require('readline');
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout
// listen for anything supplied on stdin
rl.on('line', function (cmd) {
// default result is 0

Keybase proof

I hereby claim:

  • I am cubehouse on github.
  • I am cube ( on keybase.
  • I have a public key whose fingerprint is 540F D214 7335 C873 B847 2A2A 9F15 B927 BD57 3D36

To claim this, I am signing this object:

cubehouse / gist:7f3ee1b243a1f54bd49f
Created Sep 8, 2014
Changes in WordPress 4.0 Authentication Cookie Structure (MD5 to Sha256)
View gist:7f3ee1b243a1f54bd49f
@@ class WPAuth
// Validate the hash contained within the cookie
$pass_frag = substr($user['user_pass'], 8, 4);
- $key = $this->wp_hash($user['user_login'].$pass_frag.'|'.$cookie[1], 'logged_in');
- $hash = hash_hmac('md5', $user['user_login'].'|'.$cookie[1], $key);
+ $key = $this->wp_hash($user['user_login'].'|'.$pass_frag.'|'.$cookie[1].'|'.$cookie[2], 'logged_in');
+ $hash = hash_hmac('sha256', $user['user_login'].'|'.$cookie[1].'|'.$cookie[2], $key);
cubehouse / gist:3839159
Created Oct 5, 2012
WordPress Fake Page Generator - Use in Theme/Plugin to create non-existant pages dynamically
View gist:3839159
// create fake page called "chat-room"
// modify function and variable names with "ABCD" to whatever you like
// modify variable $fakepage_ABCD_url to the fake URL you require
function fakepage_ABCD_detect($posts){
global $wp;
global $wp_query;
global $fakepage_ABCD_detect; // used to stop double loading
cubehouse / auth.php
Created Sep 22, 2012
eJabberd Auth.php for WordPress authentication
View auth.php
Copyright (c) <2005> LISSY Alexandre, "lissyx" <>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software andassociated documentation files (the "Software"), to deal in the
Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so,
You can’t perform that action at this time.