Skip to content

Instantly share code, notes, and snippets.

Tim Murtaugh murtaugh

Block or report user

Report or block murtaugh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@murtaugh
murtaugh / new-eecms-mime-type
Last active Aug 29, 2015
Update ExpressionEngine's list of MIME types
View new-eecms-mime-type
'svg' => 'image/svg+xml',
@murtaugh
murtaugh / deprecated-snippets.html
Last active Aug 29, 2015
Deprecated ALA Responsive Image Snippets
View deprecated-snippets.html
<figure data-picture data-alt="">
<div data-src="<!-- URL for standard image here -->"></div>
<div data-src="<!-- URL for high-DPI image here -->" data-media="(min-device-pixel-ratio: 2.0)"></div>
<!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
<noscript><img src="<!-- URL for standard image here -->" alt=""></noscript>
</figure>
<figure data-picture data-alt="">
<div data-src="<!-- URL for small-screen image here -->" data-media="(max-width: 700px)"></div>
@murtaugh
murtaugh / tabmaster.html
Created Jul 24, 2015
Tabmaster: in-page tab navigation management
View tabmaster.html
<label for="username">Username</label>
(<a id="register-link" data-tabto="reset-link" href="#">register</a>)
<input id="username" type="text" data-tabmaster="true" data-tabto="password" />
<label for="password">Password</label>
(<a id="reset-link" data-tabto="submit" href="#">reset password</a>)
<input id="password" type="password" data-tabto="register-link" />
<input id="submit" data-tabmaster="false" type="submit" value="Submit" />
@murtaugh
murtaugh / eems-droplet-for-EE2.md
Last active Aug 22, 2019
Set up a DigitalOcean droplet for ExpressionEngine
View eems-droplet-for-EE2.md

(This is an updated version of Clearfire's tutorial, which is excellent, but has become slightly outdated as Digital Ocean updates their applications.)

  1. Create your droplet. Name it, select your size and location, then hit the Applications tab and select (as of this writing) "LAMP on 14.04". Add your SSH key if you want, and submit.
  2. SSH into your new droplet, and maybe check to make sure the following PHP modules have been installed: (In my recent experience, these have all been installed automatically, but that could change, and it takes 10 seconds to check.)

    apt-get install php5-gd

    apt-get install php5-mysql

    apt-get install php5-curl

  3. Make sure mod_rewrite is enabled, with a2enmod rewrite.
  4. If you like, increase PHP's upload_max_filesize and post_max_filesize values by editing the php.ini file, with this: nano /etc/php5/apache2/php.ini
  5. Give Apach
View 1. accessible-table-standard.html
Headers as columns:
<table>
<tr>
<th scope="col">User costs</th>
<th scope="col">Business costs</th>
</tr>
<tr>
<td>What about your product might the user ignore if a form is onerous?</td>
<td>Where will you keep all of this stuff?</td>
</tr>
@murtaugh
murtaugh / SVG-thumbnail-redirect
Created Dec 17, 2015
ExpressionEngine: use htaccess to redirect requests for SVG thumbnails
View SVG-thumbnail-redirect
RewriteRule /assets_content/(.*)/_thumbs/(.*)\.svg$ /assets_content/$1/$2.svg [NC,L]
@murtaugh
murtaugh / .htaccess
Last active Jun 1, 2016
Convince ExpressionEngine to show SVG thumbnails
View .htaccess
# redirect requests to (non-existent) SVG thumbnails to the main image
RewriteRule ^/assets_content/_thumbs/?\.svg$ /assets_content/$1.svg [NC,L]
# FWIW, I had to swap out the ? for (.*) in my environment
View how to italize and bold text.html
Our favorite cruise was on the <i>Explorer of the Seas</i>, --> italicize the name of a ship
which we read about in <cite>Cruising</cite> magazine, --> reference the name of a publication
and we <em>loved</em> it. --> emphasize a feeling
(<b>Note:</b> This was before everyone got all sick --> start a note with bolded text
and was throwing up <strong>everywhere</strong>.) --> make a strong statement
@murtaugh
murtaugh / hide-genius-annotations.css
Last active Mar 29, 2016
Attempts to hide Genius annotations
View hide-genius-annotations.css
// hides the yellow indication of an annotation
genius-referent {
background: transparent !important;
cursor: text !important;
}
// hides the "Annotate" popup that appears when you select text
genius-pre-annotation-prompt {
display: none !important;
}
View 1. Rigatoni alla Genovese: Ingredients.md
  • 1 tablespoon olive oil
  • 6 ounces pancetta or salt pork, diced
  • 2 1/2 pounds beef chuck, seasoned with 2 teaspoons kosher salt
  • 1/2 cup diced celery
  • 1/2 cup diced carrot
  • 1 rounded tablespoon tomato paste
  • 1 teaspoon freshly ground black pepper
  • 1 bay leaf
  • 2/3 cup white wine (optional)
  • 4 pounds yellow onions, sliced
You can’t perform that action at this time.