Skip to content

Instantly share code, notes, and snippets.

David Honess davidhoness

Block or report user

Report or block davidhoness

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@davidhoness
davidhoness / kenwood.py
Created Oct 4, 2019
Python script for tuning rtl_fm using input from WxToImg
View kenwood.py
#!/usr/bin/python3
import serial
import socket
import time
import subprocess
"""
DC0;SQ0000;FA00137100000;MD4;FA00137102450;FA00137102440;FA00137102436;...
View pyaudio_sstv.py
from __future__ import division
from pysstv.sstv import SSTV
from pysstv.color import PD120
from itertools import islice
from PIL import Image
from shapely.geometry import Polygon, Point
import struct
import serial
import pyaudio
import glob
@davidhoness
davidhoness / wpa_supplicant.conf
Created Nov 19, 2018
Connecting a Raspberry Pi to WPA2 Enterprise Wireless Network
View wpa_supplicant.conf
network={
ssid="ssid"
scan_ssid=1
key_mgmt=WPA-EAP
group=CCMP TKIP
eap=PEAP
identity="username"
password=hash:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
phase1="peapver=0"
phase2="MSCHAPV2"
View power_cycle_usb.sh
#!/bin/bash
echo 0 > /sys/devices/platform/soc/*.usb/usb1/1-1/1-1\:1.0/1-1-port2/power/pm_qos_no_power_off
sleep 10
echo 1 > /sys/devices/platform/soc/*.usb/usb1/1-1/1-1\:1.0/1-1-port2/power/pm_qos_no_power_off
@davidhoness
davidhoness / install_macguyver.sh
Last active Jun 30, 2019
MacGuyver mode for Raspberry Pi
View install_macguyver.sh
#!/bin/bash
if [[ $(id -u) -ne 0 ]] ; then echo "Please run as root" ; exit 1 ; fi
apt-get update
apt-get install realvnc-vnc-server dnsmasq -y
cd /usr/local/share/
wget https://github.com/novnc/noVNC/archive/v1.0.0.zip
unzip v1.0.0.zip
rm v1.0.0.zip
mv noVNC-1.0.0 noVNC
cd noVNC
View image_location.py
#!/usr/bin/python3
import ephem
import picamera
import time
import datetime as dt
from math import degrees, radians, cos, sin, asin, sqrt
time_format = "%d/%m/%Y %H:%M:%S"
name = "ISS (ZARYA)"
View birthday.py
#!/usr/bin/python3
import sys
import os
import glob
import time
import random
import datetime
from sense_hat import SenseHat
View sense_hat_en.py
#!/usr/bin/python3
from sense_hat import *
EN_DIRECTION_UP = 'up'
EN_DIRECTION_DOWN = 'down'
EN_DIRECTION_LEFT = 'left'
EN_DIRECTION_RIGHT = 'right'
EN_DIRECTION_MIDDLE = 'middle'
View usb_share.py
#!/usr/bin/python3
import time
import os
from watchdog.observers import Observer
from watchdog.events import *
CMD_MOUNT = "modprobe g_mass_storage file=/piusb.bin stall=0 ro=1"
CMD_UNMOUNT = "modprobe -r g_mass_storage"
CMD_SYNC = "sync"
View tt_qr.py
#!/usr/bin/python
from PIL import Image
import struct
import qrcode
import sys
if len(sys.argv) == 4:
qr_data = sys.argv[1]
output_file = sys.argv[2]
page_no = sys.argv[3]
You can’t perform that action at this time.