bartman's blog

git caching for v1.5.x

I wrote about [git caching]{git-caching} several months back. The term, git caching, was something I had given a local repository that can be used as a reference for multiple projects. New features in the recently released git 1.5.x requires that I blog again about this great tool. Recap: I am working on a linux patch – [klips]{tags/openswan} to be specific. I have more repositories then I know what to do with. Git has this cool feature where it can point to another directory to find it’s object files, this is called alternate or reference repository.

klips loses zlib

Last time I [wrote about openswan]{leaner-meaner-openswan} I commented how Martin and I chopped off 18 thousand lines from KLIPS. Most recently I finished rewriting IPCOMP handling to use CryptoAPI’s api to zlib, and Martin was able to remove the zlib that was duplicated in KLIPS. Here are the updated stats: $ git diff origin/public HEAD -- include/openswan net/ipsec/ | diffstat | tail -n1 135 files changed, 14549 insertions(+), 39839 deletions(-) That, along with other cleanup, bumped us up to 25k lines less then the #public branch of openswan.

vim and linux CodingStyle

It would seem that either no one that codes for the Linux kernel does so under vim, or if they do they don’t have the time to share their vim configuration that doesn’t conflict with the kernel’s CodingStyle. Below I will discuss some changes I had to make to my .vimrc and .vim/c.vim to work with C efficiently.

my kqemu install

I found out earlier today that kqemu is now GPLed. I think this has the potential of helping out the KVM team by (hopefully) taking some of the tricks that helps kqemu get almost as good performance (on some benchmarks) as KVM w/ the hardware vitualization extensions. Here I am running Ubuntu (aside: next time I pave over I am going back to Debian), and I want to have kqemu running WinXP and Suse 10. But really… I just wanted to try kqemu on my poor desktop that lacks the virtualization extensions.

leaner meaner openswan

I started working for Xelerance in April of 2006, and the contract ended in December. Since then I’ve been working on a KLIPS-ng, of sorts. The idea was to remove all the crypto code from KLIPS and convert it to use CryptoAPI already in the Linux kernel. Last objective of my work was to add OCF support to KLIPS, so that we could take advantage of the asynchronous crypto facilities provided there, as well as several OCF hardware drivers. The BSD kernels have been using OCF, Open Cryptographic Framework, for some time and more recently it was ported to Linux.

wmii+ruby xlock action

I use xscreensaver and like to lock my display when I leave my computer. Here is a snippet from my wmiirc-config.rb file that adds an xlock action to the Alt-a action menu. plugin_config["standard:actions"]["internal"].update({ 'xlock' => lambda do |wmii, *args| system("xscreensaver-command --lock") end }) I start my xscreensaver in the .xsession file: /usr/bin/xscreensaver -nosplash & … before launching wmii.

cloning xterms in wmii+ruby

I have recently added a few things to by wmii+ruby configuration that I wanted to share. These are: start a program in a given view from bash prompt (authored by Dave O’Neill) start a program in a given view using Alt-Shift-p (authored by Jean Richard) start an xterm in a given view using Alt-Shift-Return cache directory changes in a view, start an xterm in the view’s last directory using Alt-Apostrophe

wmii+ruby talk for OCLUG

I am giving a quick overview of wmii+ruby later today. In case anyone is interested here are the relevant links: my presentation pdf, magic point my wmiirc config Links from presentation: wmii official site wmii+ruby official site [my blog entries on wmii]{tag/wmii}

dump and restore

I’ve heard many people talk about backups via dump and restore. I’ve never really tried it, although it looks like I should have been using it all along. I am rebuilding my firewall, which is based on a WRAP 1C-2 [sbc]{tag/sbc}. I want to use two such boxes, one to connect to my two ISPs (both cheap) and the other to create a DMZ network. I just finished building one of them (similar as the steps in [this article]{sbc-bootstrap-with-debian}). Now I want to clone the image, because the systems will be almost identical. So I stick in the CF card into my card reader, and run

C style

A new comer to my place of work was asking me how he can improve his code style. Here are some suggestions I had for him.