Share Sidekiq's redis pool with other part of your app

If you are running Sidekiq, then, most likely you would like to share it’s redis connection with other bits of your application. For example, you want to implement a throttler for some Rails action, or you want to use some gem, that needs redis, e.g. redis-semaphore. Well, it’s easier than it might sound…

Read more…

Mimic dtach with tmux

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.

Read more…

XMonad.Action.GridSelect spawnSelected with nice titles

There’s an awesome module available for XMonad called GridSelect. It contains very pretty window selectors and such. And one of it’s awesome functions is 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?

Read more…