Skip to content

Instantly share code, notes, and snippets.



  • Belgium
View GitHub Profile
View gist:549983def0acdc5eb8fded38702992c3
DEBUG = True
domaindb_file = ./dummy_data/dummy_domaindb.json
servers_file = ./dummy_data/dummy_servers.json
#WSGI Server
host =
port = 8080
debug = True
reloader = True
bockor / gist:dd35db450120ac50ada4241c54ca35df
Last active Apr 7, 2020
for each record from dnsmaster | do DNS resolution | ping record | get certificate details | get http(s) response status | get DNS CNAMES RR
View gist:dd35db450120ac50ada4241c54ca35df
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
## CSV
View gist:2be1ff0a730c5f64bda50b09f1ff498e
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"20S301": "SHAPE",
"20SU06": "SHAPE",
"77B301": "BRUNSSUM",
"77B302": "BRUNSSUM",
bockor / gist:0856e1245e3d77689e497aef3eeea514
Last active Mar 1, 2020
get certificate issuer info in python
View gist:0856e1245e3d77689e497aef3eeea514
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
Created on Sun Jan 26 09:43:37 2020
@author: bockor
bockor / gist:50fb07e0edaccbd879f2f4af8c428857
Last active Mar 25, 2020
pythonping example with exceptions error handling
View gist:50fb07e0edaccbd879f2f4af8c428857
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pythonping import ping
import socket
import csv
bockor / gist:ff2aef9f5be1ea98ac6fb927bb460d7d
Last active Aug 28, 2020
gunicorn-as-a-systemd-service with python3 and bottle framework
View gist:ff2aef9f5be1ea98ac6fb927bb460d7d
Gunicorn, or Green Unicorn, is a UNIX-compatible WSGI HTTP server that is commonly used to run Python applications.
Developed in 2010 by Benoit Chesneau, this open source project is similar to uWSGI, mod_wsgi, and CherryPy.
Gunicorn is often implemented with a reverse proxy server like NGINX, which typically handles requests for static resources and then passes on the requests to Gunicorn.
Gunicorn processes the dynamic portion of the request and returns a response to NGINX, which sends the response back to the client.
Gunicorn can be used to serve Python applications and is compatible with frameworks like Django, Flask and Bottle.
It’s easy to configure, lightweight, and only needs 4–12 worker processes to handle hundreds or thousands of requests per second.
# create python3 virtual environment
# ==================================
You can’t perform that action at this time.