This page is used to 'host' a personnal Knowledge Base with some short gists, cheatsheets and bookmarked-urls.

sql> select * from KB_cards where tags like '%gist%'
All KB cards
On some editor’s Linux based appliance(s), there is not telnet binary installed. To test TCP netwotk flows, it’s possible to use python’s socket module with a short script: #!/usr/bin/python import socket import sys if len(sys.argv) != 3: print("usage: IPADDRESS PORT") exit(-1) print("Opening connection on %s port %s" % (sys.argv[1], sys.argv[2])) try: conn=socket.create_connection((sys.argv[1],sys.argv[2]),timeout=30) except socket.timeout: print("Connection error: timeout") exit(-1) except: print("Connection error: unknown") exit(-1) print("Connection succeed") exit(0) Usage: $ python usage: IPADDRESS PORT...