Skip to content

Instantly share code, notes, and snippets.

View LongHairedHacker's full-sized avatar

Sebastian LongHairedHacker

View GitHub Profile
@LongHairedHacker
LongHairedHacker / markers.py
Last active July 3, 2018 22:48
NOAA APT sync marker finder
#!/usr/bin/env python3
import sys
from PIL import Image
import matplotlib.pyplot as plt
SYNCA_SEQ = [False, False, False, False,
True, True, False, False, # Pulse 1
True, True, False, False, # Pulse 2
{
"attempts":5,
"changed":false,
"cmd":[
"/var/lib/satnogs/bin/pip2",
"install",
"satnogsclient==0.9"
],
"msg":"stdout: Collecting satnogsclient==0.9\n Using cached https://files.pythonhosted.org/packages/8c/2e/8e7d56196dbc7ffc0d15c657192f25205707c34d58947d575bab6e9c6329/satnogsclient-0.9-py2-none-any.whl\nRequirement already satisfied: pytz in /usr/lib/python2.7/dist-packages (from satnogsclient==0.9) (2016.7)\nRequirement already satisfied: APScheduler in /usr/lib/python2.7/dist-packages (from satnogsclient==0.9) (3.3.1)\nRequirement already satisfied: matplotlib in /usr/lib/python2.7/dist-packages (from satnogsclient==0.9) (2.0.0)\nCollecting flask-socketio (from satnogsclient==0.9)\n Using cached https://files.pythonhosted.org/packages/94/85/32082ff683bbd0358f3e4b124e6405e4157f039fbd205be69c72c70e8c2e/Flask_SocketIO-3.3.1-py2.py3-none-any.whl\nCollecting redis (from satnogsclient==0.9)\n Using cached https://files.pythonhosted.org/packages/d0/8b/c43ef27d0
@LongHairedHacker
LongHairedHacker / backlonger.py
Last active November 19, 2022 16:55
Extend all the t.co short links in a twitter backup
#!/usr/bin/env python3
import os
from os import path
import sys
import re
import requests
import shutil