Skip to content

Instantly share code, notes, and snippets.

@clarkb7
clarkb7 / ac_tc_reader.py
Created June 1, 2024 21:29
Proof of Concept for parsing Assetto Corsa tc files from the ctelemetry directory. Can output JSON or display a graph with matplotlib.
'''
This script is a proof of concept for parsing the Assetto Corsa tc files found in the ctelemetry directory ("%USERPROFILE%\Documents\Assetto Corsa\ctelemetry\player")
Usage: python ac_tc_reader.py [--json] [--graph] filename
--json Output the telemetry data in a JSON format
--graph Graph the telemetry data. Requires matplotlib to be installed.
File format:
+-------------------+-------------------+-----------------------+----------------------------+------------------------+
| 4 bytes | 4 bytes | sizeOfName bytes | 4 bytes | sizeOfTrack bytes |
@clarkb7
clarkb7 / 2023-puck.user.js
Last active July 21, 2023 01:47
r/place 2023 puck overlay
// ==UserScript==
// @name PUCK template 2023
// @namespace http://tampermonkey.net/
// @version 0.3
// @description try to take over the canvas!
// @author Ruukas, clark, Rhys, huspaherzu, ???
// @match https://garlic-bread.reddit.com/embed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// ==/UserScript==
@clarkb7
clarkb7 / great-wave.user.js
Created April 4, 2022 18:00
great wave r/place 2022 overlay
// ==UserScript==
// @name great wave template
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the canvas!
// @author clark, ???
// @match https://hot-potato.reddit.com/embed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// ==/UserScript==
@clarkb7
clarkb7 / stalker.user.js
Last active April 4, 2022 09:09
stalker r/place 2022 overlay
// ==UserScript==
// @name stalker template
// @namespace http://tampermonkey.net/
// @version 0.4
// @description try to take over the canvas!
// @author clark, B.L.I.N, ???
// @match https://hot-potato.reddit.com/embed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// ==/UserScript==
@clarkb7
clarkb7 / bloodborn.user.js
Last active April 4, 2022 07:34
bloodborne r/place 2022 overlay
// ==UserScript==
// @name bloodborne template
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the canvas!
// @author clark, LegnaronG17
// @match https://hot-potato.reddit.com/embed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// ==/UserScript==
@clarkb7
clarkb7 / berserk.user.js
Last active April 4, 2022 22:19
r/place 2022 overlay
// ==UserScript==
// @name GUTS template
// @namespace http://tampermonkey.net/
// @version 0.15
// @description try to take over the canvas!
// @author Ruukas, clark, Rhys, huspaherzu, ???
// @match https://hot-potato.reddit.com/embed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// ==/UserScript==
@clarkb7
clarkb7 / unicode.md
Last active June 7, 2024 14:47
A guide to character encoding aware development
@clarkb7
clarkb7 / slowdown_sol.md
Last active November 30, 2016 04:40
Hack The Vote Slowdown reference solution
@clarkb7
clarkb7 / ballot_return_sol.md
Last active November 30, 2016 04:41
Hack The Vote Ballot Return solution
@clarkb7
clarkb7 / apteaser_sol.md
Last active November 30, 2016 04:41
Hack The Vote APTeaser solution