Yearly Archives: 2014

Delete Last Command from Bash History

If you’re like me, on occasion you accidentally (or sometimes purposefully) include a password in a command. Until recently I would execute history , find the offending command’s number, then do a history -d NUMBER . It is kind of a pain. The following

Tagged with: , , ,
Posted in Tech Tips

Drupal AJAX Framework with Multiple Instances of a Form

I recently encountered a unique issue with AJAX-ified form elements in Drupal. We’re building a site that shows the same form twice on a single page. I’m rendering both forms in two separate blocks; one appears at the top of

Tagged with: , ,
Posted in Development

“Create Evernote Note” from Chrome Tab using Keyboard Maestro

Here’s an example of a macro that creates an Evernote note out of the current Chrome browser tab. My goal was to just throw the current page into Evernote with its page title as the note title, and its URL

Tagged with: , , , ,
Posted in Development, Tech Tips

Chrome Extension: CopyAllURLs – Share all tabs in current window

Have you ever wanted to share (or save-for-later) all of the tabs you’re viewing in a Chrome window? I highly recommend the CopyAllURLs extension. The configuration is easy and powerful, and it works very well to export/copy (and import/paste, which opens

Tagged with: , ,
Posted in Tech Tips

Sending HTML Emails from a Drupal 7 Site

It was a little more difficult than I’d hoped to track down the proper method for sending HTML emails from Drupal 7. I’m working on a problem with Webform, so Webform emails were my primary concern. I’m not going to

Tagged with: ,
Posted in Development

Devel Generate Text Settings

Devel Generate, which is part of the Devel module, makes it really simple to create dummy entities in Drupal. It’ll create everything from users to taxonomy terms to nodes. It does a great job of populating most field types (including

Tagged with: , , ,
Posted in Development

Grabbing Screenshots for a List of URLs

UPDATE: There’s a better tool for this job. View my new post about Pageres. webkit2png is a great tool for taking automatic screenshots of websites. Here’s the project’s description: “With tall or wide pages that would normally require scrolling, it

Tagged with: ,
Posted in Tech Tips

Autocomplete in iTerm2

This is a really quick tip that could save you tons of time in iTerm2. If you use any auto-completion you know how important it is to your workflow. Personally, I rely heavily on omni and generic completion in Vim.

Tagged with: , ,
Posted in Tech Tips

Pull Quotes in Drupal 7 – Using hook_filter_info()

I recently wrote a post called Pull Quotes Shortcodes via Custom Filters in Drupal 7 . This was a good solution, but I decided I wanted a little more flexibility in my filter (like being able to specify attributes in any

Tagged with: , , ,
Posted in Development

Pull Quotes via Custom Filters in Drupal 7

UPDATE: This was a good solution, but I decided I wanted a little more flexibility in my filter (like being able to specify attributes in any order) and I wanted to get rid of the required [/pullquote] closing tag. Custom Filter has its limitations (and

Tagged with: , , ,
Posted in Development