Skip to content

Instantly share code, notes, and snippets.

View sjmf's full-sized avatar
🏠
Working from home

Samantha Finnigan sjmf

🏠
Working from home
View GitHub Profile
@sjmf
sjmf / README.md
Last active April 4, 2024 18:23
HomeAssistant Configuration Files

Home Assistant Config for BuildAX

sensors.yaml

  • ⁠Contains a definition for a serial sensor called ‘bax’ -⁠ ⁠⁠Contains the eventual sensors for each data type, for each sensor
  • ⁠⁠HA understands a “sensor” to be of a single data type only. It can’t have multiple streams.

automations.yaml

  • ⁠Triggers the python script when the state of the sensor changes (i.e. a line is received over serial)
@sjmf
sjmf / automations.yaml
Last active February 24, 2024 23:09
Home Assistant Configuration for BuildAX Sensors
- id: process_serial_data
alias: Process Serial Data
description: Process Data from the BAX sensors
trigger:
- platform: state
entity_id: sensor.bax
action:
- service: python_script.process_serial_data
data:
data: '{{ trigger.to_state.state }}'
@sjmf
sjmf / gotbricks.js
Last active January 6, 2024 10:52
GotBricks? Userscript for Bricklink.com
// ==UserScript==
// @name GotBricks? for bricklink.com
// @namespace Violentmonkey Scripts
// @match https://www.bricklink.com/catalogItemInv.asp*
// @grant none
// @version 1.01
// @author Samantha Finnigan https://finnigan.dev/
// @description 05/01/2024, 17:09:39
// ==/UserScript==
@sjmf
sjmf / Controlling-Rpi-Blog.md
Last active November 11, 2023 16:42
Draft of Controlling a Raspberry Pi Without a Screen or Keyboard blogpost

Controlling a Raspberry Pi without a screen or keyboard

I’ve been working with Raspberry Pi hardware for a while. Part of my PhD research relied on embedded devices I made using Pi Zeros, and during my undergraduate research (over a decade ago now!), using the original Pi model A, I discovered why running a MySQL database on a Pi’s SD card was a bad idea…

Something that’s always bugged me working with these embedded computers is having to carry around an external keyboard and monitor, especially before setting anything up like WiFi or SSH access. I recently helped to run a hackathon at RSECon’23 as part of the Carpentries Offline project, and it very quickly became clear that carrying around lots of extra hardware to work with Pis (and other brands of embedded computer) is unwieldy, unreliable, and can totally take the joy out of hacking with them.

But, pretty much everyone there brought a laptop with them.

Viewing the video outpu

@sjmf
sjmf / accommodations.md
Last active January 15, 2024 14:57
Disability unconferencing recommendations to 2024 RSECon committee
@sjmf
sjmf / filter.txt
Last active March 13, 2024 14:15
Procrastination domain blocklist
!
! Title: Procrastination Blocklist by @sjmf
! Description: List for blocking websites which cause procrastination
! Homepage: https://gist.github.com/sjmf/bf7debc15a07978edc70f3b903ad5241
! Last modified: 2024-03-13
!
! Uses the filter list compiled by heyfocus.com with additional domains added by @sjmf
!
||inews.co.uk^
@sjmf
sjmf / howto.md
Last active February 24, 2023 23:25
How to connect to University WPA Enterprise RADIUS WiFi on a Rasperry Pi

How to connect to University WPA Enterprise RADIUS WiFi on a Rasperry Pi

  1. Plugin the WiFi adapter to your raspberry pi.

  2. Start your Raspberry Pi

3. Connect to Wifi with GUI

3.1. Run WiFi Config application (you may find it on the desktop)
3.2. From WiFi Config Wizard select Manage Network tab

@sjmf
sjmf / style.css
Created February 14, 2023 11:38
PlusNet Hub Two Dark-mode userstyle
/* ==UserStyle==
@name 192.168.1.1 - bthomehub.home - 14/02/2023, 10:51:29
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Dark-mode for Plusnet Hub Two. Use with stylus addon.
@author Samantha Finnigan
==/UserStyle== */
@-moz-document domain("192.168.1.1"), domain("bthomehub.home") {
/* Insert code here... */
@sjmf
sjmf / gist:519529a8361494fb4562a16ffd535ff4
Created October 28, 2022 21:32
Autodesk Fusion 360 Download URLs
Mac: https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Client%20Downloader.dmg
Windows: https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Client%20Downloader.exe
@sjmf
sjmf / requirements.txt
Last active October 17, 2022 01:54
Convert a PDF receipt from Sainsbury's website to CSV by parsing the PDF into columns
pdfplumber>=0.5.28