Tibor's Musings

Git Subversion Mirroring

Consider a project using git source code management system. Now imagine a need arises to automatically mirror git commits to a (read-only) subversion repository. How can one achieve such an automated push?

One technique is to use git-svn extension and prepare git grafts to link the two repositories together. Here …

Sed

Sed, the stream editor, is a useful tool in one's command-line-fu. Here are some nifty one-liners.

Replace stuff in a file:

$ sed -i 's/oldstring/newstring/g' filename

Replace stuff in many files:

$ find modules -name "*.py" -exec sed -i 's,CFG_SOME_VARIABLE,CFG_OTHER_VARIABLE,g' {} \;

Print line number 123 and quit …

Rambam's Daily Schedule

Life's busy. We may feel being overwhelmed by our personal schedules, at times. We may feel being too tired to work it all out, at times. When this happens, why don't we look outside and ponder how a really busy person's schedule looks like? Shall we still feel too busy …

Emacs Jabber

The jabber.el package provides an Emacs interface to the Jabber/XMPP chatting ecosystem. I use it regularly with Google Talk and other Jabber services.

You can use commands like C-x C-j C-c to connect to a server or two, then C-x C-j C-r to visit your roster, then RET …

Emacs Multifile Operations

The dired mode is an Emacs interface to the filesystem, enabling one to perform certain operations on multiple files. The dired mode can be combined with other Emacs goodies such as the search and replace tool into a powerful multi-file editing tool.

Dired Example One

Say we would like to …