git 1.7.2 is out

Just announced is release of Git version 1.7.2.

Scanning through the ReleaseNotes the following look interesting:

  • git -c var=val will override config
  • git show :/pattern now uses regex
  • git no longer squelches if it doesn’t find .git (useful when using in PS1)
  • git checkout --orphan name makes a new root branch (no parent)
  • git cherry-pick can now be given a list of refs
  • git log --decorate learned to colour more things
Read more →

console=ttyS0 with grub2

Just a quick note so I don’t forget now to enable console logging on systems running grub2 (like Ubuntu 10.04, Lucid).

  • edit /etc/default/grub
    • set GRUB_CMDLINE_LINUX to "console=ttyS0,115200n8 console=tty0"
  • run update-grub
  • reboot

( more info can be found here )

Read more →

vmlinux on Ubuntu

If you’re trying to do post-mortem analysis on a crashed river, or trying to find kernel-level bottlenecks with oprofile, you need the decompressed kernel w/ debug symbols. This comes in a form of a vmlinux file. Some distributions ship debuginfo packages, namely RHEL. On Ubuntu this seems lacking.

Read more →

where your WIND coverage ends

I got a SIM card from WIND on Friday, [the opening day]{nexus-on-wind-in-ottawa}, and put it into my Nexus One. All of a sudden everyone I know wants me to drop by their house to test the service there. Guys, it’s only $15 for a month of testing… :D

So far, in my neighbourhood (Central Park), and the surrounding area (drove down Merivale, Baseline, Carling, and Kirkwood), I get 3-4 bars (out of 4). I am well covered here, it seems.

Read more →

the WIND excitement

I heard that WIND stores were actually open in Ottawa, but they are not authorized to sell anything yet.

One such store is 5 minutes from my house, at the Westgate mall, so I dropped by on my lunch break.

Read more →

sata hotswap pico-HOWTO

I had been unpleasantly informed by mdadm that sdc has been failing. Yey, another one – I thought. Not wanting to disrupt most of my day, I decided to try hot swapping the disk.

Read more →

serving http content out of a git repo

While preparing for my [Git]{tag/git} Workshop for Flourish Conf, I thought about serving files over http directly out of a git repo.

Here is a short shell script that I came up with: git-serv.cgi.

It takes request URLs like http://domain/examples/dir/file and looks up the objects in a bare git repository in /home/git/examples.git. It looks only on the master branch, and nothing is ever checked out. If it finds a tree object, it prints the file listing at that point in the tree. If the object is a blog, it dumps the contents. Otherwise some error is reported.

Read more →

pimped out zsh prompt

Here is [yet another]{zsh-git-prompt} update to the series. I’ve updated my git prompt again, now using the zsh 4.3.7 built in vcs_info module. This time the motivation came from Zsh Prompt Magic article. Here is what it looks like now:

zsh git prompt

Everything is now self contained in one file: S60_prompt. Grab it and source it into your zsh config.

The features are:

  • name of current branch,
  • git repo state (rebase, am, bisect, merge, etc),
  • markers indicating staged/unstaged changes,
    • little 1 after branch name indicates dirty working tree,
    • little 2 after branch name indicates staged changes,
  • highlight depth decended into the repository on the right,
  • show failure of commands via prompt background change,
  • show command/insert mode when using vi mode (set -o vi).
Read more →