Hosted sites
[[\
import os
def filter(a):
"""filter out some garbage from the list"""
#symlinks with www. in front don't matter, also ignore IPs
if a[:4] == 'www.' or not 'a' <= a[0] <= 'z':
return False
#sites hosted at the failsafe domain are duplicates
#symlinks with a dot in the end (unstable.nl.) don't matter
if a[-9:] == 'nl.eu.org' or a[-1] == '.':
return False
return True
sites = [a for a in os.listdir('/var/www/virtualhosts') if filter(a)]
sites.sort()
for a in sites:
print '- %s' % (a, a)
]]