Yes, there are a few postings out there about getting ipv6 routing running with XEN. But I’ll throw this online anyway since there are a few changes I had to make for it to work on my server. This text is intended for people who know their way around Linux and XEN so it will [...]
Author Archive > dopefish
Script of the day – clean up stale .ssh/known_hosts
This little script takes an IP or hostname as a parameter, and if there is an offending key in the .ssh/known_hosts it removes it and replaces it with the current valid one useful if you are moving/reinstalling a large amount of servers … Bash | copy code |? 0102#!/bin/bash03#===============================================================================04# FILE: ssh-cleankey.sh05# USAGE: ./ssh-cleankey.sh <ip|hostname>06# 07# DESCRIPTION: deletes stale ssh known_hosts [...]
Checking a list of IPs against RBL
This is more a reminder to myself than anything else … this is small snippet that takes a list of IPs and does a whois on all that aren’t in a RBL Lets say we have al list of IPs in a file “iplist.txt”: Text | copy code |? 112.172.121.171224.149.208.68338.105.100.9458.185.207.86561.201.51.66664.78.164.169 Snippet that checks the IPs (can of course be easily [...]
Hiking & castle ruins
We did a bit of hiking through the forest to castle ruins yesterday, here are the pictures … function startGallery_19() { var myGallery = new gallery($(“myGallery_19″), { timed: false, showCarousel: true, showInfopane: false, showArrows: true, embedLinks: false, slideInfoZoneOpacity: 0.80, textShowCarousel: “Overview of Pictures” }); document.getElementById(“myGallery_19″).style.display = “block”; } window.addEvent(“domready”, startGallery_19); dsc_4167 dsc_4171 dsc_4181 dsc_4187 dsc_4202 [...]
bash: using the content of a variable as variable name
Since the implementation of Arrays in Bash is somewhat lacking compared to higher level programming languages (only one-dimensional), and hash lists require a bit of work to set up, you may run into a situation where you have a small list of key/value pairs that are both variable and you need to store. There are [...]



