vi is not for me. git config [–global] core.editor mcedit

Read More...

git log # to lookup the hashes git rebase -i [hash of the previous commit] change “pick” to “squash” #except for the first commit comment and save

Read More...

To create a new repository on a git server using gitweb:

Read More...

Good news from the Portable C compiler (PCC): their latest snapshot supports multiarch. This means pcc will compile and work out-of-the-box on Debian and Ubuntu. I couldn’t resist sharing my debs, so I learnt how to use Launchpad and set up a dedicated repo. Feel free to use and comment.

Read More...

The developers of PCC (the Portable C compiler) released version 1.1.0 of the compiler and compiler library, so I decided to give it a run on my computer. Source packages are available at ftp://pcc.ludd.ltu.se/pub/pcc/. To get a working compiler, one needs to build both pcc and pcc-libs. I followed the instructions for earlier versions of […]

Read More...

Here is an update on what changed in the plugin codebase since my last post.

As of this writing latest stable version has just reached 0.5.7 (this time last year it was 0.4.1).

Read More...

Q: How to change the timestamp of my commits? A: Do git log to pick the hashtag of the desired commit. Then run the following code git filter-branch –env-filter \ ‘if [ $GIT_COMMIT = your_hashtag ] then export GIT_AUTHOR_DATE=”Fri Jan 2 21:38:53 2009 -0800″ export GIT_COMMITTER_DATE=”Sat May 19 01:01:01 2007 -0700″ fi’ Finally force push […]

Read More...

A short tutorial for moving new commits to an adjacent branch in Git.

Read More...

Although I consider myself a seasoned Seamonkey user, I regularly bump into the same problem: after I set up a new mail account, it fetches all mail from the server and happily deletes the originals. It is not much of a problem, because I delete them from time to time, but I still felt somewhat […]

Read More...

Let’s assume we have three sibling elements (list items in this example, but it can be anything), like this: <ul> <li id=”1″>One</li> <li id=”2″>Two</li> <li id=”3″>Three</li> </ul> We want to cycle through them by pressing up/down keys. We want the “active” item to be highlighted somehow (say red text instead of black. All we need […]

Read More...