Skip to content

Instantly share code, notes, and snippets.

@fireismyflag
fireismyflag / dashboard.py
Created January 7, 2014 00:48
Raspberry Pi dashboard using PIL and rm-hull's pcd8544 library, for display on a Nokia 5110 lcd
#!/usr/bin/env python
import sys
import os
import pcd8544.lcd as lcd
import wiringPy
import psutil
import socket
import fcntl
import struct
import threading
@fireismyflag
fireismyflag / torrent-info.py
Last active July 12, 2020 10:29
This Python script will connect to a Deluge deamon running on localhost, and generate a summarized status of active torrents.
import os
'''
The command "deluge-console info" generates this output:
/home/pi$ deluge-console info
Name: Some video file
ID: 670b10e3842dfe57bedbd0653b09f0548034cbbb