Skip to content

Instantly share code, notes, and snippets.

View jchansen's full-sized avatar

Jason Hansen jchansen

View GitHub Profile
@jchansen
jchansen / openldap_passwd.py
Created June 3, 2017 07:41 — forked from rca/openldap_passwd.py
Python hashing and test functions for user passwords stored in OpenLDAP.
#!/usr/bin/env python
"""
http://www.openldap.org/faq/data/cache/347.html
As seen working on Ubuntu 12.04 with OpenLDAP 2.4.28-1.1ubuntu4
Author: Roberto Aguilar <[email protected]>
"""
import hashlib
import os
@jchansen
jchansen / 3-custom.js
Created June 3, 2016 02:49
Changes made to `3-custom.js` to get PopupMaker to work
(function($) {
var App = App || {
// Initialization.
init: function () {
App.initGlobal();
App.initBlog();
},
//------------------------------------------------------------------------------------------------------------------
@jchansen
jchansen / 2-site.js
Last active June 3, 2016 02:48
Changes made to `2-site.js` to get PopupMaker to work
(function($) {
$(document).ready(function(){
var navMain = $("#mtn-main-menu");
navMain.on("click", ".navbar-close-button", null, function() {
navMain.collapse('hide');
$('html').removeClass('disable-mobile-menu-scrolling');
});
@jchansen
jchansen / functions.php
Created June 3, 2016 02:45
Changes made to functions.php to get PopupMaker to work
<?php
define('PARENT_THEME_NAME', 'Moves The Needle Theme');
define('PARENT_THEME_URL', '');
define('PARENT_THEME_VERSION', '1.0');
function addHeaderAssets() {
// CSS
wp_enqueue_style('google-fonts', '//fonts.googleapis.com/css?family=Roboto:400,500,700,400italic,500italic,700italic', array(), PARENT_THEME_VERSION);
wp_enqueue_style('google-fonts2', '//fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,600,600italic,700,700italic,900,900italic', array(), PARENT_THEME_VERSION);
<!--This is the HTML file that gets served to the browser. It contains text-->
<!--that says "Loading..." that will disappear as soon as `bundle.js` has been-->
<!--downloaded and `lore.summon()` has finished setting up your application.-->
<!--It also contains a DOM element to hang dialogs from so they don't conflict-->
<!--with any CSS or JavaScript behaviors in the application (styling overrides-->
<!--or event bubbling cancellation).-->
<html>
<head>