Nate Bohman
|
d701948f60
|
Add Python All Loggers
Add the snippet that allows all configured loggers to be retrieved in
Python and fix a missing import in ascii_only.
|
3 vuotta sitten |
Nate Bohman
|
77408dc423
|
Add MongoDB Compact Example
Force MongoDB to release disk space from a collection after documents
have been deleted.
|
4 vuotta sitten |
Nate Bohman
|
e99f6053a1
|
Fix _has_[gs]etter in Auto KWArgs
Need to check if f[gs]et is not None.
|
4 vuotta sitten |
Nate Bohman
|
1fb99792be
|
Add Auto KWArgs Class
Automatically set setters in class with kwargs passed to __init__
|
4 vuotta sitten |
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.
|
5 vuotta sitten |
Nate Bohman
|
76a11e96cc
|
Adding DNS Lookup Python Schnippets
Adding IP to Hostname and Hostname to IP via the socket library.
|
5 vuotta sitten |
Nate Bohman
|
7d6e9145bc
|
Adding Python Clamp Function
Clamp a number between a max and a min.
|
5 vuotta sitten |
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.
|
6 vuotta sitten |