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…

Grow XFS formated partition with Parted.

I have a very large partition (15TB) formated with the XFS filesystem that I want to expand to 30TB. This partition was created with Parted to use GPT, which fdisk does not support. The problem with this is Parted automatically will expand the underlying filesystem when resizing a partition, but it does not support XFS.…

Missing dladm command for Solaris 9

I am doing more frustrating Solaris work and stumbled across this little gem. A simple nawk script that produces the same output as the dladm show-dev command implemented in Solaris 10. Just paste it into a file, chmod it and there you go. kstat -p | nawk ‘/duplex/ || /speed/ { split($1,Array,":") ; Dev=Array[3]  }…