Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
| $ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj | |
| Cloning into 'my-awesome-proj'... | |
| ssh: connect to host github.com port 22: Connection timed out | |
| fatal: Could not read from remote repository. | |
| $ # This should also timeout | |
| $ ssh -T git@github.com | |
| ssh: connect to host github.com port 22: Connection timed out | |
| $ # but this might work |
| #! /bin/bash | |
| while getopts "46thvs:" arg | |
| do | |
| case $arg in | |
| s) | |
| sflag=x | |
| dnsip=$OPTARG | |
| ;; | |
| 4) | |
| v4flag=x |
| def checkio(gr): | |
| r = gr | |
| r += ["".join(v) for v in zip(*gr)] | |
| r += [gr[0][0] + gr[1][1] + gr[2][2], | |
| gr[0][2] + gr[1][1] + gr[2][0]] | |
| o = r.count("OOO") | |
| x = r.count("XXX") | |
| if o and x: |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
| #! /usr/bin/env python | |
| # License: http://creativecommons.org/publicdomain/zero/1.0/ | |
| # See http://preshing.com/20130115/view-your-filesystem-history-using-python | |
| import optparse | |
| import os | |
| import fnmatch | |
| import time | |
| # Parse options | |
| parser = optparse.OptionParser(usage='Usage: %prog [options] path [path2 ...]') |
| #!/usr/bin/env python2 | |
| """ | |
| Other Repositories of python-ping | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| * https://github.com/l4m3rx/python-ping supports Python2 and Python3 | |
| * https://bitbucket.org/delroth/python-ping |