Python
-
Using procmail with custom python script
If you want to execute some special commands, log or make an API call when you’re receiving an email onto your server, you can easily set up this by using procmail. Procmail is…
-
DNS queries from a file/list to CSV
It’s not easy to perform bulk DNS resolution when you have many DNS/IPs to control. Here is a simple script allowing you to perform DNS resolution over a list of DNS entries or…
-
openssl/pyOpenSSL – “SSL23_GET_SERVER_HELLO:tlsv1 alert internal error”
You’re getting this annoying error message again and again when trying to fetch certificate and/or establish a connection to your website using openssl: 139647967614624:error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error:s23_clnt.c:769: This issue is well known…
-
Generate SHA-512 hash on command-line with Python
Need to generate the hash for a password? No need to use an online generator, totally insecure for your passwords … This simple command will ask you which string you want to hash…
-
AWS – Update massively metadata using boto (python) on multiple S3 objects
A simple script that allows you to update massively Content-Type for files on an S3 bucket. This script is able to: Browse recursively a bucket Perform action only on files matching specific prefix…
-
Python – Browse directory and push on S3 (with regex)
A simple script that can browse a directory, and upload to S3 some files matching a regex. The file will be uploaded by respecting the path you have in local. #!/usr/bin/env python #…
-
Create an interactive command-line menu using Python
It can be necessary to create a simple interactive menu on CLI (Command-Line Interface) using Python to allow users to make some choices while executing a script/program. As there is no standard library…
-
Use FTPS (SSL/TLS) with Python 2.6
By default, Python 2.6 does not permit to open an FTPS connection (using SSL/TLS) and restricts the use of non secure protocol FTP. However, it’s possible to get around this lack by using…
-
Unserialize web2py requests and allow concurrent access
With a default configuration for your web2py application, you will notice that when you are launching an action, if this one is quite long to execute, you won’t be able to open a…
-
Web2py framework
Do you like web development and Python ? You’re looking for a framework free, complete and in a constant evolution (features, security, …) ? So Web2py is for you ! web2py is a free,…