Skip to content

Instantly share code, notes, and snippets.

@mrsonord
mrsonord / index
Last active December 27, 2015 10:29
Html head snippet with everything you would generally use.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<meta name='DC.title' content=''>
<meta name='subtitle' content='This is my subtitle'>
<meta name='url' content=''>
<meta name='identifier-URL' content=''>
<meta name='reply-to' content='[email protected]'>
@mrsonord
mrsonord / functions.php
Last active August 11, 2022 19:11
Disable and remove individual jetpack features.
//To use place the function at the bottom of your functions.php file in the root of your wordpress installation directory.
function jherve_kill_monitor ( $modules ) {
unset( $modules['monitor'] );
return $modules;
}
add_filter( 'jetpack_get_available_modules', 'jherve_kill_monitor' );
function jherve_kill_sso ( $modules ) {
unset( $modules['sso'] );
return $modules;
@mrsonord
mrsonord / gist:9105621
Last active August 29, 2015 13:56
Google Site Script To Generate Pages
function doGet(e) {
var app = UiApp.createApplication();
// The text label container
var mainPanel = app.createVerticalPanel().setHeight("100%").setWidth("100%");
mainPanel.setHorizontalAlignment(UiApp.HorizontalAlignment.CENTER).setVerticalAlignment(UiApp.VerticalAlignment.MIDDLE);
mainPanel.add(app.createLabel("Generate a blank board page."));
mainPanel.add(app.createLabel("Refresh the page to show it in the lists"));
// The panel that holds our button to click
var buttonPanel = app.createVerticalPanel().setHeight("100%").setWidth("100%");
buttonPanel.setHorizontalAlignment(UiApp.HorizontalAlignment.CENTER).setVerticalAlignment(UiApp.VerticalAlignment.MIDDLE);