Archive

Posts Tagged ‘tips and tricks’

Close an unclosable window

July 30, 2013 Leave a comment

Problem
You update your system and you get a message window that says the system must be restarted. However, there is no close button on this window. How to get rid of it?
xkill

Solution
Press Alt+F2, launch “xkill“, and click on the window you want to close.

Midnight Commander tips

Copy the name of the current file to the mini shell:
“Esc+Enter” (i.e. press Esc, release, then press Enter)

I already knew this. Here are some new ones that I learned today:

The one above has an alternative shortcut:
“Ctrl+Enter”

Paste to the shell the path of the selected panel:
“Esc+a” or “Ctrl+x p”

Paste to the shell the path of the unselected (other) panel:
“Esc+A” or “Ctrl+x Ctrl+p”

These are actually in the man page, so it would be a good idea to read it once :)

Thanks to Andrew B. on the mc mailing list.

Categories: bash Tags: ,

10 Productivity tips for software developers

How to Stop Procrastinating by Using The “2-Minute Rule”

How to Stop Procrastinating by Using The “2-Minute Rule”

Recently, I’ve been following a simple rule that is helping me crush procrastination and making it easier for me to stick to good habits at the same time.

Categories: Uncategorized Tags:

10 Minute Mail: a great TrashMail.net alternative

Usually I use the TrashMail.net service but 10 Minute Mail is even simpler.

Thanks Jeszy for the tip.

Alternatives

.xsession-errors can grow HUGE

January 31, 2013 1 comment

Problem
Something funny happened to me today. I logged in to my desktop machine at my workplace when a warning message told me that “disk space is low”. A quick “df -h” indicated that it’s true, my HDD is at 100%! How is it possible, I should occupy no more than 30%. After hunting for 10 minutes for the guilty file/directory, it turned out that the file .xsession-errors in my HOME directory grew more than 200GB! WTF?

Solution
I removed this file and under the name .xsession-errors I put a link on /dev/null. However, after a reboot the symbolic link was gone and .xsession-errors became a regular file again. Tricky :) So I added the following lines to the end of my .bashrc file:

# .xsession-errors can grow huge... remove it
if [ ! -h $HOME/.xsession-errors ]
then
    /bin/rm $HOME/.xsession-errors
    ln -s /dev/null $HOME/.xsession-errors
fi

if [ ! -h $HOME/.xsession-errors.old ]
then
    /bin/rm $HOME/.xsession-errors.old
    ln -s /dev/null $HOME/.xsession-errors.old
fi

It verifies if .xsession-errors is a symbolic link. If not, remove it and replace it with a symbolic link.

Get rid of the “new tab” button

December 1, 2012 Leave a comment

Problem

You want to get rid of the “new tab” button:

before

Solution

With the add-on Tab Mix Plus you can remove it:

after