2010-01-26 21:28:45

Clipboard sniffer

Categories: coding, security, unix

Yes clipboard, not keyboard. I've made a clipboard sniffer for X called ClipSniff.

It periodically saves whatever is in the clipboard (both the "PRIMARY" and the "CLIPBOARD") into a sqlite database.

git clone http://github.com/ThomasHabets/clipsniff.git
Read the rest of this entry »
2010-01-09 22:57:43

Shaping and policing on Cisco

Categories: cisco, network, qos

This post is about policing and shaping on Cisco routers and switches. This is a very big topic so don't expect this post to cover everything. What I'm attempting to to is cover some things that I found aren't explained very well by books or the Internets, while still being readable for someone who hasn't read all the other stuff.

Read the rest of this entry »
2009-10-29 22:47:17

Lightwave. Like Google Wave only much less

Categories: coding, erlang

I felt sorry for all those who don't yet have a Google Wave account, and I was impressed with their demo. And I also wanted an Erlang project.

So I killed three birds with one stone. I made Lightwave. It's like Google Wave only:

  • Dumber
  • Buggier
  • Uglier
  • More incomplete
  • Written in Erlang

Read the rest of this entry »
2009-10-17 17:41:52
2009-10-01 21:16:05

Autotools is nice

Categories: autotools, coding, unix

I was recently asked why autotools was so good. I thought I might as well post what I answered.

Read the rest of this entry »
2009-06-28 22:56:23

Spanning tree limits

Categories: cisco, network, spanning-tree

I'm compiling a list of spanning tree and VLAN limits on different switches. This is what I've come up with so far. I don't have an authoritative source for these, but in many cases this is hard to get from specs.

If you go over these limits, bad things will happen! (broadcast storms, VLANs disappearing, cats and dogs living together. That sort of thing)

Read the rest of this entry »
2009-04-10 21:12:17

What should have been default on Cisco devices

Categories: cisco, network

Some things on Cisco switches and routers never should have been on by default. Other things should have been turned on or set differently. This is not how I want them to be configured in the end (I like CDP for example), just how I think they should have been configured from the factory.

Read the rest of this entry »
2009-03-21 20:58:01

Moving a process to another terminal

Categories: coding, tty, unix

I've always wanted to be able to move a process from one terminal to another. For example if I've started a long-running foreground process (such as irssi or scp) outside of a screen and I have to log out my local terminal. I looked around and there doesn't seem to be any way to do this.

Read the rest of this entry »
2008-07-27 22:54:00

Erlang BGP daemon

Categories: bgp, bugs, cisco, coding, erlang, network

I'm writing a BGP daemon in Erlang. It can connect, parse update packets and announce routes.

Read the rest of this entry »
2008-06-28 21:17:00

Buffering in pipes

Categories: coding, ind, tty, unix

I'm trying to force a program not to buffer its output to stdout. Any program, all programs. It can't involve changing the source code or depending on weird or unportable stuff.

It should be possible. It seems like I'm missing something obvious, but I can't figure out what.

Read the rest of this entry »