Random notes from mg

a blog by Marius Gedminas

Marius is a Python hacker. He works for Programmers of Vilnius, a small Python/Zope 3 startup. He has a personal home page at http://gedmin.as. His email is marius@gedmin.as. He does not like spam, but is not afraid of it.

Thu, 10 Apr 2008

Shell commands I use most

Couldn't resist the meme that has resurfaced lately.

$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
14780 cd
3010 svn
2366 ls
1957 ssh
1563 svnst
1285 ml
1048 bin/test
957 vi
952 sudo
837 offlineimap

'svnst' is an alias for 'svn status'. 'ml' is a little wrapper around mailcheck that reformats the output to fit on two lines.

The numbers are rather high because I added a couple of lines to my ~/.bashrc to have more history:

export HISTFILESIZE=
export HISTSIZE=50000

What's sudo doing in the top 10?

$ history|awk '$2=="sudo" {a[$3]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
99 vi
68 apt-get
67 -s
45 ifup
40 rmmod
37 umount
37 iwconfig
35 modprobe
31 iwlist
26 powertop
posted at 16:46 | tags: | permanent link to this entry | 0 comments

Wed, 24 May 2006

Metasearch humour

Red line, blue line

Inspired by this post on Anthony Baxter's blog.

posted at 01:45 | tags: | permanent link to this entry | 0 comments

Mon, 16 May 2005

Another silly quiz

The Stupid Quiz said I am "Totally Smart!" How stupid are you? Click here to find out!

posted at 11:08 | tags: | permanent link to this entry | 0 comments

Mon, 14 Mar 2005

I took the commonly confused words test

Advanced

You scored 100% Beginner, 100% Intermediate, 93% Advanced, and 66% Expert!

You have an extremely good understanding of beginner, intermediate, and advanced level commonly confused English words, getting at least 75% of each of these three levels' questions correct. This is an exceptional score. Remember, these are commonly confused English words, which means most people don't use them properly. You got an extremely respectable score.

Thank you so much for taking my test. I hope you enjoyed it!

For the complete Answer Key, visit my blog: http://shortredhead78.blogspot.com/.

My test tracked 4 variables How you compared to other people your age and gender:

You scored higher than 68% on Beginner
You scored higher than 73% on Intermediate
You scored higher than 48% on Advanced
You scored higher than 32% on Expert

Link: The Commonly Confused Words Test written by shortredhead78 on Ok Cupid

I answered questions 22, 31, 33, 36, 38, and 40 incorrectly.

posted at 02:24 | tags: | permanent link to this entry | 0 comments

Tue, 18 Jan 2005

Weird quotient

Memes are infectious

What is your weird quotient? Click to find out! I am nerdier than 93% of all people. Are you nerdier? Click here to find out! I am 97% loser. What about you? Click here to find out!

posted at 02:08 | tags: | permanent link to this entry | 0 comments

Fri, 24 Sep 2004

Fashion victim

I finally decided to start a blog of my own. Pyblosxom is nice. I like simple text files on the filesystem. I would like to find something like Pyblosxom for publishing photos.

posted at 19:30 | tags: | permanent link to this entry | 0 comments