Skip to content

Instantly share code, notes, and snippets.

View dermotmcguire's full-sized avatar

Dermot McGuire dermotmcguire

  • Eightfilters
  • Australia
View GitHub Profile
@dermotmcguire
dermotmcguire / form.html
Created November 17, 2015 03:05 — forked from tommaitland/form.html
A form with every HTML form element (up to HTML5) for styling.
<form action="/">
<legend>A Sample Form Legend</legend>
<label for="name">Name: </label>
<input type="text" value="Name" name="Name" />
<label for="email">Email: </label>
<input type="email" value="Email" name="Email" />
@dermotmcguire
dermotmcguire / osx-10.10-setup.md
Last active September 15, 2015 23:59 — forked from kevinelliott/osx-10.10-setup.md
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@dermotmcguire
dermotmcguire / A4 CSS page template.markdown
Created September 14, 2015 08:48
A4 CSS page template
@dermotmcguire
dermotmcguire / new_gist_file.php
Created August 11, 2014 22:42
Snippet: Wordpress: Show all custom fields associated with each post
// Show all custom fields associated with each post.
// From http://wpsnipp.com/index.php/functions-php/show-absolutely-custom-fields-post/
add_action( 'all_admin_notices', 'wpsnipp_show_all_custom_fields' );function wpsnipp_show_all_custom_fields() {    if ( isset( $_GET['post'] ) ) {        $post_id = absint( $_GET['post'] );        ?>        <div id="message" class="updated">            <h3>All post meta:</h3>            <xmp><?php print_r( get_post_meta( $post_id ) ); ?></xmp>        </div>        <?php    }}
@dermotmcguire
dermotmcguire / new_gist_file.scss
Created August 8, 2014 07:41
Snippet: SCSS: CSS-only Parallax mixin
// http://frozenrockets.nl/labs/parallax/
// Magic parallax mixins
@mixin parallax-init($perspective: null, $element: null, $parallax-ios: null) {
$perspective: if($perspective != null, $perspective, toolkit-get('parallax perspective'));
$element: if($element != null, $element, toolkit-get('parallax element'));
$parallax-ios: if($parallax-ios != null, $parallax-ios, toolkit-get('parallax ios'));
@if $element == 'body' {
@at-root {
@dermotmcguire
dermotmcguire / new_gist_file.php
Created August 5, 2014 03:26
Snippet: WordPress: Change default user role names
// Change Wordpress default user role names
// http://wpsnipp.com/index.php/functions-php/change-default-role-names-administrator-editor-author-contributor-subscriber/
function wps_change_role_name() {    global $wp_roles;    if ( ! isset( $wp_roles ) )        $wp_roles = new WP_Roles();    $wp_roles->roles['contributor']['name'] = 'Owner';    $wp_roles->role_names['contributor'] = 'Owner';}add_action('init', 'wps_change_role_name');