English | German | Not logged in.

View profile

Overview

No avatar

User nameAgo (Staff, Superuser)
GenderMale
BirthdayOct. 5, 1982
Homepagehttp://deve.loping.net/
LocationBad Krozingen, Germany
Last login6 months ago
Date joinedMarch 29, 2010
About

Syntax highlighting also works on the profile pages:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
def ipaddr(request):
    addr = request.META.get('HTTP_X_FORWARDED_FOR', request.META['REMOTE_ADDR'])

    try:
        ret = _ip6cache[addr]
    except KeyError:
        if addr.find(':') == -1:
            ret = _ip6cache[addr] = { 'raddr': addr, 'ip6': False, 'ip6class': None, }
        else:
            if addr.startswith("2002:"):
                ret = _ip6cache[addr] = { 'raddr': addr, 'ip6': True, 'ip6class': '6to4', }
            elif addr.startswith("2001:0:"):
                ret = _ip6cache[addr] = { 'raddr': addr, 'ip6': True, 'ip6class': 'teredo', }
            elif addr.startswith("2001:470:"):
                ret = _ip6cache[addr] = { 'raddr': addr, 'ip6': True, 'ip6class': 'he', }
            else:
                pwhois = subprocess.Popen(["whois", addr], stdout=subprocess.PIPE)
                pgrep = subprocess.Popen(["grep", "SixXS"], stdin=pwhois.stdout, stdout=subprocess.PIPE)

                if os.waitpid(pgrep.pid, 0)[1] > 0:
                    ret = _ip6cache[addr] = { 'raddr': addr, 'ip6': True, 'ip6class': 'native', }
                else:
                    ret = _ip6cache[addr] = { 'raddr': addr, 'ip6': True, 'ip6class': 'sixxs', }

    ret['ip6text'] = {
        None:  _('You are using IPV4'),
        '6to4': _('You are using IPV6 over a 6-to-4 tunnel'),
        'teredo': _('You are using IPV6 over a Teredo tunnel'),
        'he': _('You are using IPV6 over a Hurricane Electric tunnel'),
        'sixxs': _('You are using IPV6 over a SixXS tunnel'),
        'native': _('You are using native IPV6'),
        }[ret['ip6class']]

    return ret

Projects

Project name Creation date License Latest version Description
Patches April 12, 2011 GPLv2 1.0.0 A collection of various small patches
HE-Update March 17, 2010 BSD 1.0.0 A small utility to update the endpoint of a Hurricane Electric IPV6 tunnel
IgnoFlash Patch July 1, 2009 BSD 1.4.0 A patch that modifies the Flash plugin to keep it in fullscreen when focus is lost
Catalyst Socket A Patch Dec. 31, 2008 BSD 1.0.1 A patch to fix the BSOD with newer Catalyst drivers on Socket A systems with more than 1900MHz
Video rating interface Feb. 15, 2008 GPLv2 1.0.0 A video management and rating web interface for the local network
FRITZ!Modem Oct. 23, 2007 GPLv2 0.0.1 Alternative firmware for the AVM FRITZ!Box which acts as a pure DSL modem
Parallel port LED driver for Linux Aug. 17, 2007 GPLv2 0.0.1 A driver that allows you to control LEDs connected to the parallel port using the Linux LED API
FRITZ!Control April 8, 2007 GPLv2 0.0.1 A tool that allows you to monitor the signal strength of your FRITZ!Box device
SpeedFan SNMP Extension June 27, 2005 LGPLv2 0.1.2 A tool which allows you to export SpeedFan data via SNMP
0 queries in 0.00ms, 140.94ms elapsed.
You are using IPV4 (get IPV6): 38.107.179.223
System uptime: 16 days, 8 hours, 25 minutes, 13 seconds
CPython (2.7.1, )
Copyright © 2004,2005,2006,2007,2008,2009,2010,2011,2012 Axel Gembe | Privacy policy