qemu eats up /dev/shm
I’ve been using qemu ([with kqemu]{kqemu-install}) to run my client’s windows software, which talks to the linux driver/daemon that I am working on. Having multiple qemu instances really chews into the shared memory… and the amount available depend on how /dev/shm is mounted. # df /dev/shm Filesystem Size Used Avail Use% Mounted on none 2.0G 713M 1.4G 35% /dev/shm On Debian you can control this via /etc/default/tmpfs SHM_SIZE variable….
git-clean in svn land
Some things are easier in [git]{tag/git}. For example to nuke all changes and only keep files that are tracked by git I would run: git-clean -d -x git-checkout -f In [svn]{tag/svn} it’s a bit more involved, but not impossible: svn status --no-ignore | awk '{print $2}' | xargs rm -rf svn revert -R . svn update For extra fun… the svn revert -R will actually stop on any symlinks to directories. Fun!
ipw2200 not working
Err! I recently nuked and paved over my X41, with debian/lenny. When I wanted to use the wireless I was greeted by: ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.2.0kmprq ipw2200: Copyright(c) 2003-2006 Intel Corporation ACPI: PCI Interrupt 0000:04:02.0[A] -> GSI 21 (level, low) -> IRQ 23 ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection ipw2200: ipw2200-bss.fw request_firmware failed: Reason -2 ipw2200: Unable to load firmware: -2 ipw2200: failed to register network device ACPI: PCI interrupt for device 0000:04:02.0 disabled It turns out that I have not done any wireless twiddling recently and forgotten that I had to get the firmware before things started working again.
git slides updated
I recently gave my [git talk]{20070329011735} for a client. I had about 3.5 hours, and found that was quite adequate to relay all the information. My slides are available in PDF and the magicpoint source.
unpopular debian packages on my system
Using the ept-cache utility advertised on joey’s blog I was able to have a look at some packages on my site that are likely not on your system. To get packages of inverse popularity which you have installed run: ept-cache search -t clean -s t- | less Of interest are the following.
git-svn with multiple branches
Dave recently wrote about git-svn with multiple branches. Worth a read if you want to use git in a hostile svn environment.
Linus on Git at Google
YouTube has a good talk by Linus Torvalds on why you would want to use git. I think a few points he sold very well, and a few were very Linus-centric. It’s worth a watch.
vim modelines insecure
I have previously disabled modelines in my vimrc, but had turned them on recently only to learn today that they are subject to another vulnerability. I’ve seen this before. Enough is enough. :) Fortunately, this sparked a debate on vim-dev mailing list. One of the outcomes is a vim script that replaces the modeline parser in vim. It is said to be a lot more strict about what it permits as valid modeline components and allows the user to control that in the vimrc.
bios disassembler
I’ve been having some issues setting up a x86 environment from scratch in order to get the BIOS to work once returning to real mode. I decided to figure out why. I know that the BIOS has the code to setup the processor and the peripherals to make things work… how does it do this?
dd hex arguments
It sure would be nice to to not have to convert hex numbers manually when using dd… # dd bs=0x200 dd: invalid number `0x200' This was a really easy fix. Here is the patch.