Skip to content

Instantly share code, notes, and snippets.

View nikdoof's full-sized avatar
👋

Andrew Williams nikdoof

👋
View GitHub Profile
#!/usr/bin/env python3
"""
Scrapes for phlebotomy appointments at St Helens & Knowsley Teaching Hospitals locations.
The local NHS trust uses Simplybook to manage their bloods appointment, and
unfortunatly the Web UI for doing this is slow and unreliable. It can take
upwards of 5-10 minutes to check for available appointments at each location.
This script scrapes the API to provide a list of the next available appointment
at each location, saving time when hunting for one.
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
84792 0x14B38 CRC32 polynomial table, little endian
86716 0x152BC xz compressed data
131072 0x20000 uImage header, header size: 64 bytes, header CRC: 0xB07BDC72, created: 2023-11-05 19:22:42, image size: 104304 bytes, Data Address: 0x0, Entry Point: 0x0, data CRC: 0xA4DFAB1B, OS: Firmware, CPU: ARM, image type: OS Kernel Image, compression type: lzma, image name: "MVX4##I6B0gf3a2dcfCM_UBT1501#XVM"
131136 0x20040 xz compressed data
327680 0x50000 uImage header, header size: 64 bytes, header CRC: 0x53A646C, created: 2023-11-12 23:19:25, image size: 1855208 bytes, Data Address: 0x20008000, Entry Point: 0x20008000, data CRC: 0x25417C70, OS: Linux, CPU: ARM, image type: OS Kernel Image, compression type: none, image name: "Linux-4.9.84-ssc333"
342619 0x53A5B xz compressed data
342953 0x53BA9

openpgp4fpr:AED7F07FE3A146A280CADB6686DAB9F71FF20A3A

@nikdoof
nikdoof / common.yaml
Created March 17, 2023 10:28
ESPHome Config for a VINDRIKTNING modified with a ESP8266
esphome:
name: "${devicename}"
comment: "${device_description}"
build_path: "${devicename}"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: !secret wifi_domain
fast_connect: true
@nikdoof
nikdoof / miniflux2opml.py
Created April 30, 2022 08:08
MiniFlux2OPML - a OPML exporter for Miniflux
#!/usr/bin/env python3
"""
Miniflux2OPML
A tool designed to extract a user's OPML file from a Miniflux installation,
with added support for outputting the OPML into JSON.
Copyright 2022 Andrew Williams
License: MIT
"""
## **[[Book]]**
### **Topics**:
### **Author**:
### **Goodreads URL**:
### **Status**:
### **Started**:
### **Finished**:
### **Summary Notes**:
### **Raw Highlights**
{{#sections}}
@nikdoof
nikdoof / Memex -> Logseq
Last active September 30, 2023 00:55
A copy template for Memex that'll paste nicely into Markdown mode LogSeq
[{{{title}}}]({{{url}}}) #Article
### **Summary**
{{#Notes}}
#### {{{NoteText}}}
{{/Notes}}
### **Highlights**
{{#Notes}}
#### {{{NoteHighlight}}}
{{/Notes}}
#!/usr/local/bin/perl
# Basic mailer/bug report perl
# Copyright argh@dimension.spodnet.uk.com 1999
require "cgi-lib.pl";
# change this to the location of sendmail on your system
# this should be standard for linux
$SENDMAIL = "/usr/lib/sendmail -t";
BEGIN MESSAGE.
NB1sabvmBKIFxW9 9l07JKfovAM0wMT kxKbMt9uYIqyI3E Qz5vOg5Svz9IvKi
jKYhQ9nJWYYwpR1 SqvhAaiucj4TCKq 6Xr2MZHgg6QAepI 8EZA9R5CFdZqjRq
vT1weG9MuSY4iQ6 2KxGqSypvkCg6bm rfBPQV2Djpd3eNQ 4XWdZY0Px6HMjwH
q4ZHVkp6qY8gve0 XJHL4k2COoattuE 7Duug2IP.
END MESSAGE.

Keybase proof

I hereby claim:

  • I am nikdoof on github.
  • I am nikdoof (https://keybase.io/nikdoof) on keybase.
  • I have a public key ASDlkYOw93cu3GgMht95n3r6XfL0Ebl9Pb79iaPTTE12AQo

To claim this, I am signing this object: