Skip to content

Instantly share code, notes, and snippets.

@poingg
poingg / skitchftpserver.py
Last active December 12, 2015 09:29
Simple hack to have a local FTP that allows Skitch to post files to CloudPT
# Edit these only
# Where do you want your files?
MYCUSTOMDOMAIN_URI = 'http://example.com/Skitch'
MYLOCALFOLDER = '/Users/myhomedir/CloudPT/sites/example.com/Skitch'
# Don't touch below
from pyftpdlib import ftpserver
import httplib, time, os
from urlparse import urlparse