Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import time | |
import json | |
import urllib | |
import urllib2 | |
from dateutil.parser import parse |
/** | |
* A dashboard widget that lists out pages in a heirarchy | |
* Add this to the end of your "Functions.php" file in your theme directory | |
* | |
* This function is hooked into the 'wp_dashboard_setup' action below. | |
*/ | |
function site_map_edit() { | |
wp_add_dashboard_widget( | |
'site_map_edit', // Widget slug. |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
# | |
# Working with branches | |
# | |
# Get the current branch name (not so useful in itself, but used in | |
# other aliases) | |
branch-name = "!git rev-parse --abbrev-ref HEAD" | |
# Push the current branch to the remote "origin", and set it to track | |
# the upstream branch | |
publish = "!git push -u origin $(git branch-name)" |
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.github.io | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
*/ |
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name