Skip to content

Instantly share code, notes, and snippets.

View Ollie-Boyd's full-sized avatar
💻

Ollie Boyd Ollie-Boyd

💻
  • Cambridge
View GitHub Profile
@Ollie-Boyd
Ollie-Boyd / xiaomi.md
Last active November 29, 2023 18:08
Xiaomi bluetooth sensor gateway

This has four parts,

  • Flash and configure the Xiaomi LYWSD03MMC device with custom firmware [complete]
  • Write Python script to capture BTLE advertisement packets and POST the detalis to Google apps endpoint.
  • Write and publish the simple Google apps script to create endpoint which adds lines to Sheet from data in POST request.
  • Configure Google Looker Studio to display time series data from GSheets.

Notes:

Firmware docs and flasher: https://github.com/pvvx/ATC_MiThermometer

@Ollie-Boyd
Ollie-Boyd / grayscale_dumb_smartphone.md
Last active June 16, 2023 17:01
My dumb grayscale smartphone setup (android)

Intro

This setup lets me smash sub-hour screentimes and I hope it might help you as I've spent a lot of time honing it! Let me know if you have any tips to further my setup and please share yours!

I used a Hisense A5 eink smartphone for over two years. Great phone but a horrible camera. After two years it was bettered as hell and I did miss being able to take and share to my family photographs that didn't look horrific. The eink screen had totally changed my relationship with my phone so I wanted to recreate the grayscale experience on a normal smartphone. I'm really happy with things after a couple of months.

My personal rule is to have nothing on my phone to allows me to browse social media, the internet, or video content. That includes no app-stores, and having no apps that have an in-app browser. For example with Facebook Messenger I would cheat by messaging myself a link to a website and clicking on the link to view it on the in-app browser. In this case I can use Messenger Lite instead which has n

@Ollie-Boyd
Ollie-Boyd / Python_OSINT.md
Last active June 12, 2023 13:34
Python, Scrapy, ElasticSearch and OSINT learning

To do:

  • Figure out how to install Scrapy
  • Learn Scrapy basics
  • Learn full parsing rules
  • Learn to make pipeline, goal to pipe to ElasticSearch
  • Integrate Scrapy and Tor
  • Make multi-threaded Tor instances somehow, might need a Linux VM.
  • Figure everything about EasticSearch.
  • How to only save new/edited pages?
  • How long does it take to crawl a site?
first install python-gdal https://medium.com/@vascofernandes_13322/how-to-install-gdal-on-macos-6a76fb5e24a4
then create tiles from your image https://github.com/commenthol/gdal2tiles-leaflet
# CRUD Quiz
Use the solution to this afternoon's Property Tracker lab to answer the following questions. Please write your answers under each question, push the file to GitHub, and submit in the usual way.
## MVP Questions
In our Property Tracker application:
Q1. Where are we instantiating instances of the `Property` class?
def sorter wordlist, sorted_array=[], index=0
if index==wordlist.length()
return sorted_array
end
sorted_array.push(wordlist[index])
def check_and_swap sorted_array, index
if index != 0
if sorted_array[index]<sorted_array[index-1]
sorted_array[index], sorted_array[index-1] = sorted_array[index-1], sorted_array[index]