Skip to content

Instantly share code, notes, and snippets.

View pl4nty's full-sized avatar
🌱
photosynthesising...

Tom Plant pl4nty

🌱
photosynthesising...
View GitHub Profile
@pl4nty
pl4nty / tracker.js
Created December 5, 2023 03:41
Qantas flight tracker
// Got bored on a flight and their tracker was broken, so I spent half an hour writing a tracker
// Relies on Viasat in-flight entertainment system, tested on a Qantas Boeing 737
// Uses geocoding for origin/destination coordinates, but untested and commented cause I hit a ratelimit
const POLL_INTERVAL_MS = 3000;
async function initMap() {
const { Map, InfoWindow } = await google.maps.importLibrary("maps");
const { AdvancedMarkerElement } = await google.maps.importLibrary("marker");
@pl4nty
pl4nty / coverage.json
Last active June 1, 2023 23:35
spotify-public-likes badges
{"schemaVersion":1,"label":"coverage","message":"95.45%","color":"success","isError":"false","namedLogo":"jest","logoColor":"white"}
@pl4nty
pl4nty / Excel Add-in Download Blocked PoC.EXCEL.yaml
Last active June 19, 2020 14:31
Proof that downloads are blocked in modern Excel add-ins. Written while developing Excel2LaTeX.
name: Excel Add-in Download Blocked PoC
description: Proof that downloads are blocked in modern Excel add-ins. Written while developing Excel2LaTeX.
host: EXCEL
api_set: {}
script:
content: >
document.getElementById("test").addEventListener("click", function(event) {
console.log(File);
var blob = new Blob(["foo"], {
type: "text/plain"

Keybase proof

I hereby claim:

  • I am pl4nty on github.
  • I am pl4nty (https://keybase.io/pl4nty) on keybase.
  • I have a public key whose fingerprint is C1CE 4995 3726 1E48 D4A6 FFFF B52A F919 CB8A 02E3

To claim this, I am signing this object:

/*
A browser desktop environment written almost entirely in a single native JavaScript file.
All ~10000 lines are served with PHP from an AWS Cloud9 demo. It's actually quite a great project, the codebase is just insane.
Did my best to anonymise it, sorry mods if I missed anything.
Project started in mid-2014, now in Jan 2017, adding lots of commentation!
thru line 107
Here's a completely useless log to the console to start us off!