Tools (57)


CLI blogging with Postie (via postie)

Bookmark this category
Another blogging test using the postie plugin

Similar Posts:




Dave’s Notepad

We were chatting in the morning and my colleague Dave said:

echo “blog post about distro choice” | mail -s “blog post” david@mydomain.org
that’s my ‘notepad’. 🙂

I thought that was pretty useful, but tried to make it easier by creating a bash alias. Turns out it’s better to use a bash function instead. (see this note). So my ‘jot’ function is:
function jot() { echo "$1" | mail -s "$2" abdallah@mydomain.com; }

I also noticed, that emails sent from my laptop were not reaching. It seems Ubuntu comes with Exim4 as a default MTA. I’m not too familiar with Exim, so I used the occasion to learn a new trick.

I might use this for micro-blogging next… let me go set it up 🙂

Similar Posts:




Handyman

I’m not really the handy-man type. But it’s been frustrating to depend on others to setup the simplest things. So, last week I went shopping for some tools..

I found a good deal on a “Bosch” impact drill with a bunch of spare drills and other “accessories”.

I also got some shelves from the mall: those turned up nicely as a makeshift closet while we’re waiting for the IKEA closet to arrive by ground delivery from KSA (thanks Juliano for taking the trouble to send us those!)

Later, I got some hooks and setup a clothesline with some wires. That looked really good 🙂

After that, I setup some door stoppers, a plastic net so “the boss” (our cat) can go out to the balcony without venturing “outside” to the garden.

Next on my list is setting up a metal closet/racks in the office room. Also for the office, I’m getting a large white-board and a black foam board. Plenty to do and it’s lots of fun (so far).

Going back to my day job now!

Similar Posts:




Firefox Search and Address Bar

One of the reasons Firefox has been my browser of choice since way back is mostly because it’s so easy to extend using addons and plugins of various complexity. I currently have a pretty long list of addons installed. I use all of them on a regular basis, and trim away the ones I no longer need.

A couple of weeks ago, I stumbled on the OmniBar plugin, which “integrates the search bar into the location bar”. It’s pretty useful on its own and gives me more space on the location bar to actually see long addresses (especially when using a netbook). It also reduces the amount of clicks/shortcuts needed to go from the page to the location bar or search bar. Incidentally, here’s a list of those:

  • Select location bar: Ctrl/Cmd+L or Alt+D
  • Select search bar: Ctrl/Cmd+K
  • Back: Backspace or Alt/Cmd+Left
  • Forward: Alt/Option+Right or Shift+Backspace
  • Change search engine: Ctrl/Cmd+Down (Next) +Up (Previous)

I use the search bar and different search engines quite often during the day. Including custom searches I use for work. Using OmniBar saves me from manually changing the search engine every time. I can simply do the following:

  • Select location bar: Ctrl/Cmd+L or Alt+D
  • Type “@engine-name keywords

In fact, you don’t have to type the full engine name. You can simply type the first letter (or couple of letters if you have two engines that collide). For example I can do:

  • @imdb gone with the wind
  • @i gone with the wind
  • @m customerx.com

And it’s very easy to add new search engines. Simply go to the mycroft project and choose the engine you need. Or if you want a custom search engine here’s the recipe I use:


My Search Engine
Search the XYZ site from the Firefox searchbar
UTF-8
data:image/x-icon;base64,...
http://url.to/the/search/form/


You can hack the above, or simply generate a search plugin at searchplugins.net

Similar Posts:




List top 10 visitors by IP

The quick and dirty way:
cat $LOGFILE | awk '{ print $1 }' | uniq -c | sort -nr | head -n10

Similar Posts:




HOWTO Snoop terminal session

  • December 27, 2007
  • Tools

http://gentoo-wiki.com/HOWTO_Snoop_terminal_session#Screen

Similar Posts:

    None Found




SMS

  • January 19, 2007
  • Tools






‘;
global $userdata;
get_currentuserinfo();

if ($userdata->user_level == 0) {
echo “sorry, this feature is only for logged in users”;
} else {
echo $myform;
}

?>

Similar Posts:

    None Found