Sep 22

I manage a lot of websites and I tend to lose track of when their various SSL certs expire. Here is a quick onliner that I use to connect to each site and grab the expiration date off its cert.

echo “” | openssl s_client -connect www.cyborgworkshop.org:443 2>/dev/null | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ |openssl x509 -text|grep ” After : ”

Sep 16

The iproute2 tools are default installed on most major linux distributions now, but few people know how to use them. Once you are familiar with them though, you will lament having to use ifconfig and route. Here is a quick chart on iproute2 replacement commands.

Ifconfig CommandIP Command
ifconfig -aip addr show
ifconfig eth0 1.2.3.4 netmask 255.255.255.255ip addr add 1.2.3.4 255.255.255.255 dev eth0
netstat -nvrip route
route get 1.2.3.4 (solaris)ip route get 1.2.3.4
route add -net 1.2.3.0 netmask 255.255.255.0 dev eth0ip route add 1.2.3.0/255.255.255.0 dev eth1
ifconfig eth0 mtu 1496ip link set eth0 mtu 1496
ifconfig eth0 downip link set eth0 down
ifconfig eth0 promiscip link set eth0 promisc on

Sep 6

I have some hidef video that I shot using my D90 and a fantastic lens, but I had the camera rotated 90 degrees.  While x264 supports lossless rotating,  you won’t find any software out there that implements it, so we have to re-encode.  So here is a command I use to go from x264 to x264 at nearly identical quality to what my camera shoots.

mencoder -vf rotate=2 -ovc x264 -x264encopts bitrate=5000:subq=6:partitions=all:8×8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b:threads=3 -oac copy DSC_6225.AVI -o Rotated.avi

Sep 4

Woohoo!  WHIA v1 is back online!  Just in time too because I need to get a better handle on the temperature in the spare bedroom as we’re going to be turning that into a nursery!  Yup, we’re making more geeks!