Tag Archives : python

Limit the size of Subversion commitment

Limit the size of Subversion commitment

Has your subversion repository ever been abused by massive commitments? If not, I should say that you are lucky. Never mind that someday you might be abused as it’s hard to predict what the non-Ops are working on and trying to do.
Python: initialize a list

Python: initialize a list

I met this issue last week, and finally got a proper way to handle it. We normally init a list like this “list=[]“, then how can we initialize a python list with a string variable?
Query domain name whois info by Python

Query domain name whois info by Python

In one of our former post, we give an example on how to query IP whois info by Python, here is an example on how to query whois information for a domain name. #!/usr/bin/python #encoding = utf8
Generate random Chinese character in Python

Generate random Chinese character in Python

This is a python script that can be used to generate random Chinese characters. Funny script! #!/usr/bin/python import random def rand_ch_ch():
Query IP whois info in python

Query IP whois info in python

This is a simple python script  based on some former rwhois code. It shows us an easy way on how to get detailed information about a specific IP address: joseph@e54:~$ python ip-whois.py 94.75.214.11 ====== whois.arin.net OrgName: RIPE Network Coordination Centre OrgID: [...]
© 2006-2011 Admon Home. All rights reserved.
Powered by Linode Japan