aly / recursive_checksum.py

0 likes
0 forks
1 files
Last active 1670065438
A tool to generate checksums for all files in current directory and notify when mismatches with an existing file are found
1 #!/usr/bin/env python
2
3 import os
4 import json
5 from hashlib import md5
6
7 rootdir = os.getcwd()
8
9 CHECKSUMS = "checksums.json"

aly / start_weechat.py

0 likes
0 forks
1 files
Last active 1454970644
A flask web server to start/stop weechat for a Glowing Bear connection. Intended for people who have push notifications set up in their bouncer that only come through when no clients are connected
1 from flask import *
2 from subprocess import check_output, CalledProcessError
3
4 app = Flask(__name__)
5
6 @app.route('/')
7 def index():
8 if request.args.get("pw", None) and request.args["pw"] == "somepassword":
9 if "start" in request.args:
10 try: