Category Archives: Geek

DD Progress

Sometimes you’ll want to know how far along ‘dd’ is in a copy. It’s not hard to do but it’s hard to remember. If you send a USR1 signal to the ‘dd’ process it will print the current progress. Here’s … Continue reading

Posted in Geek, Tips | 1 Comment

Serverside PUT Using PHP

It is possible to do an HTTP put, server side, in PHP without using a PECL extension or curl. This code is far from perfect but it shows how to accomplish the task. function httpPut($url, $data, $optional_headers = null) { … Continue reading

Posted in Code, Geek | Leave a comment

No, It's Not OK

The code below is broken in a subtle way. There’s no way to know that ptr is aligned on a boundary that your CPU architecture may require. And I don’t think there is any way to know until runtime. Oh, … Continue reading

Posted in Code, Geek | Leave a comment

Mixing Static and Dynamic Linkage

Using GNU tools you can mix static and dynamic linkage using: gcc foo.o -Wl,-Bstatic -lstatic1 -lstatic2 -Wl,-Bdynamic -ldynamic1 Just be careful. The way the linker resolves symbols in static libraries is not what you might expect. It would be nice … Continue reading

Posted in Geek, Tips | Leave a comment

SSH Trusted CA Key

It is now possible in openssh to authentic using trusted certificate authority keys. You can sign a key using a CA key. On the server side the CA key resides. Any key signed by the CA key will be authenticated. … Continue reading

Posted in Geek, Tips | 3 Comments

FTDI USB to Serial Linux Driver

If you are like me you work with the FTDI brand of USB to serial converter chips frequently. These chips are incredibly useful and thus are utilized in many different products. I recently had the situation where I had a … Continue reading

Posted in Geek, Tips | 2 Comments


I recently learned about `ssh-copy-id`. It’s a script that, at least on Debian systems, comes in the openssh-client package. It does what you might expect: it installs your public key in a remote machines authorized_keys. It wasn’t all that hard … Continue reading

Posted in Geek | Leave a comment