Replace Last Command in Shell
Whether I fat-finger a command or my MacBook Pro keyboard's keys don't want to respond like they should, I'm frequently misspelling commands. What's more frustrating is that many of these commands are long, taking making fixing theme time-consuming.
Luckily a Twitter follower is looking out for me, providing me a quick command for fixing the misspelled command:
~ $ crul davidwalsh.name
-bash: crul: command not found
~ $ ^crul^curl
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<title>301 Moved Permanently</title>
<p>The document has moved <a href="https://davidwalsh.name/">here</a>.</p>
<address>Apache Server at davidwalsh.name Port 80</address>
^ command usage above returns fixes the spelling from the previous command, executes the command, and as a bonus, adds the correct command to history.
Small tips like these and
git checkout - make my command life experience so much better. What's your favorite command line trick?
As much as developers now loathe Flash, we're still playing a bit of catch up to natively duplicate the animation capabilities that Adobe's old technology provided us. Of course we have canvas, an awesome technology, one which I highlighted 9 mind-blowing demos. Another technology available...
Before you send your user to an unknown external website, why not provide them a screenshot of the site via a tooltip so they may preview the upcoming page? Here's how you can do just that using MooTools.
The first step is to grab...