Skip to content

Instantly share code, notes, and snippets.

@mbeall
mbeall / osx.md
Last active August 29, 2015 14:09
Electronic Filing System
Applications
Auto
  • Insurance
  • Titles
  • Maintenance and Repair
  • Recreational Vehicles
  • Boats
  • Motorcycles
@mbeall
mbeall / crontab.md
Last active August 29, 2015 14:11
Turk's homework

USER is the user's home directory, i.e. queral

PATH

  • On your team machine, edit the .bashrc file in your home directory.
vi ~/.bashrc
  • At the bottom of the file, type export PATH=$PATH:~/etc
  • Save and quit ( :wq )
@mbeall
mbeall / vws_product_backlog.md
Last active August 29, 2015 14:13
Vuyiroli product backlog

Content Updates

  • Remove baptism photos
  • Fix galleries
  • "Vuyiroli provides a permanent home, daily food, medical care, community activities
  • Change "Who We Serve" to "Whom We Serve"
  • Update $3/day to $4 and include pounds and rupees
  • Make sure new content is accessible from home page
  • Update resident photos/profiles*
  • Add updated statistics*
@mbeall
mbeall / vws_sprint_jan26.md
Last active August 29, 2015 14:13
Vuyiroli sprint backlog

Content Updates

  • Update $3/day to $4 and include pounds and rupees
  • Make sure new content is accessible from home page

Programs

  • 100 beds (currently 60)
  • Ambulance
  • Ongoing care

Site speed

@mbeall
mbeall / blog-suspended.php
Created May 23, 2015 04:37
Suspended Blog/Website
<!DOCTYPE html>
<!--[if lt IE 9]><html lang="en-US" class="ie"><![endif]-->
<!--[if gte IE 9]><!--><html lang="en-US"><!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Site Suspended</title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<!--[if lt IE 9]>
<?php
/* lookforbadguys.php 2011-09-27
Copyright (C)2011 Karen Chun, Steven Whitney.
Initially published by http://25yearsofprogramming.com.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
Version 3 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@mbeall
mbeall / .htaccess
Last active August 29, 2015 14:25
fcc-signup extras class
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag log_errors on
RewriteEngine On
RewriteRule ^extra/([^/]*)$ /fcc-signup/extras.php?id=$1 [L]
@mbeall
mbeall / syntax.sh
Last active September 21, 2015 22:15
#!/bin/bash
find . -name '*.php' -not -path './node_modules/*' -not -path './tests/*' -not -path './vendor/*' -exec php -lf '{}' \;
@mbeall
mbeall / sparks_nav_menu.php
Last active December 11, 2015 07:58
Class sparks_nav_menu adds ?ref=menu to menu links when called by the wp_nav_menu() function
<?php
class sparks_nav_menu extends Walker_Nav_Menu {
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
$class_names = $value = '';
$classes = empty( $item->classes ) ? array() : (array) $item->classes;
$classes[] = 'menu-item-' . $item->ID;
@mbeall
mbeall / the_post_thumbnail_caption.php
Created January 19, 2013 00:41
A function that displays the caption for a featured image.
<?php
function the_post_thumbnail_caption() {
global $post;
$thumbnail_id = get_post_thumbnail_id($post->ID);
$thumbnail_image = get_posts(array('p' => $thumbnail_id, 'post_type' => 'attachment'));
if ($thumbnail_image && isset($thumbnail_image[0])) {
echo '<div class="caption">'.$thumbnail_image[0]->post_excerpt.'</div>';
}