Skip to content

Instantly share code, notes, and snippets.

@zombified
zombified / pytid
Last active September 11, 2023 15:05
Python File Saver HTTP Server for TiddlyWiki 5
#!/usr/bin/env python3
"""
TiddlyWiki 5 saver in the form of a Python 3 http.server.
Start script in directory with TiddlyWiki's, go to http://localhost:8181,
select the TiddlyWiki you want, and this server should handle saving via
TiddlyWiki 5 PUT save method.
Based on: https://gist.github.com/jimfoltz/ee791c1bdd30ce137bc23cce826096da
- why not just use the Ruby one? some environments don't have Ruby, some
@zombified
zombified / justsend.py
Created May 23, 2016 19:39
for the times when you just want to send an email and you don't want to setup postfix because you don't care about the email all that much...
#!/usr/bin/env python
import argparse
from email import message_from_string
import smtplib
import sys
def justsend():
parser = argparse.ArgumentParser(description="Just send and email message to a SMTP server.") # noqa
@zombified
zombified / ofx-to-ledger.py
Created November 17, 2012 20:29 — forked from code-affinity/ofx-to-ledger.py
Python script for importing OFX files into a ledger-cli file
from __future__ import print_function
from ofxparse import OfxParser
import os
import re
import sys
if len(sys.argv) != 1:
print ('This utility does not take command-line arguments')
exit()