Skip to content

Instantly share code, notes, and snippets.

Avatar

Tim Murtaugh murtaugh

View GitHub Profile
View meal-kit-necessities.csv
equipment recommended URL
skillet https://www.amazon.com/dp/B01M7T40KR/
medium pot https://www.amazon.com/Cuisinart-6194-20-Nonstick-Hard-Anodized-Saucepan/dp/B0001LO5FE
chef's knife https://cookathing.com/blue-apron-pro-tips-buy-a-decent-knife-and-learn-how-to-use-it-440048b287be
baking sheet https://www.webstaurantstore.com/bakers-mark-18-x-13-half-size-19-gauge-wire-in-rim-aluminum-bun-sheet-pan/407BUNHALF.html
cutting board https://www.webstaurantstore.com/18-x-24-x-1-2-white-cutting-board/20318245.html
wooden spoon https://www.amazon.com/Scraper-FAAY-Handcraft-Resistance-Cookware/dp/B079WJ328R
mixing bowls https://www.amazon.com/Cuisinart-CTG-00-3MBW-BPA-free-Mixing-Bowls/dp/B007TFNTX4
vegetable peeler https://www.amazon.com/Messermeister-Touch-Swivel-Peeler-Black/dp/B00020H30I
long spatula https://www.amazon.com/dp/B000931ENU
@murtaugh
murtaugh / salts.csv
Last active Apr 30, 2020
weights of salts
View salts.csv
type the weight of 2 tablespoons
coarse sea salt (La Baleine) 37g
table salt 36g
kosher salt (Morton's) 33g
flaky salt (Maldon) 22g
kosher salt (Diamond Crystal) 18g
@murtaugh
murtaugh / lazy load images.js
Created Jul 25, 2018
Wilto's Lazy Loader for images
View lazy load images.js
(function() {
function loadAsync() {
var lazyimgs = document.querySelectorAll( '[data-lazy]' ),
attrswap = function( img ) {
img.src = img.getAttribute( 'data-src' );
img.setAttribute( "sizes", img.getAttribute( 'data-sizes' ) );
img.setAttribute( "srcset", img.getAttribute( 'data-srcset' ) );
img.parentElement.setAttribute( "class", "shown" );
},
supports = "IntersectionObserver" in window
View eecms-droplet-for-EE4.md

(This is an updated version of my own tutorial for EE2.)

  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. Make sure mod_rewrite is enabled, with a2enmod rewrite.
  3. If you like, increase PHP's upload_max_filesize and post_max_filesize values by editing the php.ini file, with this: nano /etc/php/7.0/apache2/php.ini
  4. Give Apache a restart: service apache2 restart
  5. Run mysql_secure_installation. It will ask for the initial mysql root password which is saved in /root/.digitalocean_password.
  6. Log in to MySQL: mysql -u root -p (It will prompt you for your password.)
  7. Create a new user, so we aren't using root all the time: CREATE USER [NEW USERNAME]@'%' IDENTIFIED BY '[NEW PASSWORD]';
  8. Grant the new user full access: GRANT ALL PRIVILEGES ON * . * TO '[NEW USERNAME]'@'%';
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
@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 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 / .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
@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]
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>
You can’t perform that action at this time.