SaltStack-Logo

Correctly upgrading your Python application with SaltStack

If you work with Python applications or deal with configuration management in general, you might have run into limitations with the pip tool. Unfortunately, their implementation of upgrade doesn’t really perform an “upgrade” as most people would think. If you are frustrated familiar with SaltStack‚Äôs pip state not upgrading already installed packages when you run…

VIM: Set filetype for different extensions

I love VIM. It is my primary editor for nearly all text processing and my programming. But sometimes configuring Vim can be a pain in the ass. Specifically, I have some html templates for an application I am writing using bottle.py. A wonderful micro web framework if you are looking. An entire framework in a…

SFTP File Upload with PHP

Quick PHP code snippet to upload a file to a remote server using SFTP. This code will connect and upload a file to the server. It does not have proper error handling and there are more than likely more efficient ways to load the file, especially large files. 1 2 3 4 5 6 7…

UPDATED: Python script to check Twitter

Ok, so it took all of about 10 minutes for me want to change something on my previous script. The functionality was there, but the plain text emails were horribly ugly. So I re-worked the email to use MIME html messages that are much prettier along with alternate plain text. New code below. Nice, pretty…

Python script to check Twitter

Updated article here. Micro-blogging is all the rage now and lucky for me, the local food trucks use it. There is a local spot that they like to come and they post on Twitter when they will be serving. I do not have a Twitter account, nor do I want one, but I still want…

SnAFU – Secure and Automated Ftp Utility

SnAFU – Secure and Automated Ftp Utility SnAFU is a simple, java program that watchs a directory for files and then automatically encrypts them before sending them to a remote FTP server. It will also download files and decrypt them from a server based on a configurable schedule. The entire process can be set to…