Nate Bohman
|
e99f6053a1
|
Fix _has_[gs]etter in Auto KWArgs
Need to check if f[gs]et is not None.
|
pirms 4 gadiem |
Nate Bohman
|
1fb99792be
|
Add Auto KWArgs Class
Automatically set setters in class with kwargs passed to __init__
|
pirms 4 gadiem |
Nate Bohman
|
a670e7cd0b
|
Add Python Timeout Decorator Schnippet
Adding in the Timeout decorator I found in a Stackoverflow answer
that allows you to set a timeout for any other callable.
|
pirms 5 gadiem |
Nate Bohman
|
76a11e96cc
|
Adding DNS Lookup Python Schnippets
Adding IP to Hostname and Hostname to IP via the socket library.
|
pirms 5 gadiem |
Nate Bohman
|
7d6e9145bc
|
Adding Python Clamp Function
Clamp a number between a max and a min.
|
pirms 5 gadiem |
Nate Bohman
|
10205bd258
|
Adding ascii_only and dd sparse file
Creating sparse files for loopback images can be done with the dd
command. The ascii_only strips all non-ascii characters out of a
string.
|
pirms 6 gadiem |