apt-get update && apt-get upgrade
hostnamectl set-hostname propJoe
dpkg-reconfigure tzdata
adduser miklb
adduser miklb sudo
#!/usr/bin/env python | |
""" | |
moonphase.py - Calculate Lunar Phase | |
Author: Sean B. Palmer, inamidst.com | |
Cf. http://en.wikipedia.org/wiki/Lunar_phase#Lunar_phase_calculation | |
""" | |
import math, decimal, datetime | |
dec = decimal.Decimal |
/** | |
* | |
* @author pixeline | |
* @link https://github.com/eddiemachado/bones/issues/90 | |
* | |
*/ | |
/* Remove Width/Height attributes from images, for easier image responsivity. */ | |
add_filter( 'post_thumbnail_html', 'remove_thumbnail_dimensions', 10 ); |
var title = '%filltext:name=Title%'; | |
slug = title.replace(/[^\w\s]/gi, ''); | |
var newslug = title.split(" ").join("-"); | |
var dt = new Date(); | |
TextExpander.appendOutput("---\n"); | |
TextExpander.appendOutput("layout: post \n"); | |
TextExpander.appendOutput("title: " + '"' +title + '"'+ "\n"); | |
TextExpander.appendOutput("tags: \n"); |
/*{ | |
"author": "Michael Bishop", | |
"targets": ["omnifocus"], | |
"type": "action", | |
"identifier": "com.miklb.NotePlan Tasks", | |
"version": "0.2", | |
"description": "A plug-in that takes a selection of tasks and formats them for NotePlan, appending them to the current days note.", | |
"label": "NotePlan Tasks", | |
"mediumLabel": "NotePlan Tasks", | |
"paletteLabel": "NotePlan Tasks", |
.site-header { | |
grid-area: header; | |
} | |
.site-content { | |
grid-area: content; | |
} | |
.widget-area { | |
grid-area: sidebar; |
apt-get update && apt-get upgrade
hostnamectl set-hostname propJoe
dpkg-reconfigure tzdata
adduser miklb
adduser miklb sudo
$('.menu-ui a').on('click', function() { | |
// For each filter link, get the 'data-filter' attribute value. | |
var filter = $(this).data('filter'); | |
$(this).addClass('active').siblings().removeClass('active'); | |
markers.setFilter(function(f) { | |
// If the data-filter attribute is set to "all", return | |
// all (true). Otherwise, filter on markers that have | |
// a value set to true based on the filter name. | |
return (filter === 'all') ? true : f.properties[filter] === true; | |
}); |
// Via desktop admin using post-kinds | |
a: 2: { | |
s: 4: "type";a: 1: { | |
i: 0;s: 6: "h-cite"; | |
} | |
s: 10: "properties";a: 8: { | |
s: 9: "published";a: 1: { | |
i: 0;s: 25: "2018-09-03T18:11:07-04:00"; | |
} | |
s: 7: "updated";a: 1: { |
/** | |
* add custom "mime types" (file supertypes) | |
* @param array $post_mime_types | |
* @return array | |
*/ | |
function filterPostMimeTypes($post_mime_types) { | |
$post_mime_types['application/pdf'] = array('PDF', 'Manage PDFs', _n_noop('PDF <span class="count">(%s)</span>', 'PDFs <span class="count">(%s)</span>')); | |
$post_mime_types['application/msword'] = array('Word Docs', 'Manage Word Docs', _n_noop('Word DOC <span class="count">(%s)</span>', 'Word Docs <span class="count">(%s)</span>')); | |
return $post_mime_types; | |
} |
<?php | |
if ( !function_exists('indieweb_check_webmention') ) { | |
/** | |
* Using the webmention_source_url, approve webmentions that have been received from previously- | |
* approved domains. For example, once you approve a webmention from http://example.com/post, | |
* future webmentions from http://example.com will be automatically approved. | |
* Recommend placing in your theme's functions.php | |
* |