dtach is a tiny program that emulates detach feature of screen. You
can use it to run, for example WeeChat in background without suspending it.
And tmux is an awesome feature-rich alternative to screen. So why one would
want to use tmux in place of dtach? Personally I do because it allows to change
X window title, thus I can make sure WeeChat is always opened on 8th workspace
in my XMonad without any extra hacks.
There’s an awesome module available for XMonad called GridSelect. It
contains very pretty window selectors and such. And one of it’s awesome
spawnSelected that aimed to build a grid menu with apps to run.
Usage is pretty simple:
spawnSelected conf ["xterm", "smplayer", "gvim"].
But what if you want to have nice titles rather than command names?
When your application on an early development stage, your indexes are changing
very fast. And most of the time you only add more and more indexes, until you
come to the point that either MongoDB fails auto-guessing a proper index to use
or indexes are taking too much RAM. This is a simple snippet that allows get a
list of existing indexes (except built-in) of all collections in your MongoDB…