Skip to content

Instantly share code, notes, and snippets.

View amattu2's full-sized avatar

Alec M amattu2

View GitHub Profile
@amattu2
amattu2 / username-pass-io.c
Created December 17, 2020 14:28
A simple ANSI-C I/O demonstration. Reads a username and password from stdin, performs tab/newline replacement on the username/password.
/*
ANSI-C C90: -std=c99 -c -Wall -ansi -pedantic-errors -fstack-protector-all -Werror -Wshadow
Build: gcc username-pass-io.c -o io.o
*/
/*
Produced 2020
By https://amattu.com/links/github
Copy Alec M.
@amattu2
amattu2 / obd2-codes.js
Last active December 24, 2020 02:35
This is a Javascript Object (json) representing generic automotive OBD-II codes and their descriptions. Scraped from a unknown website, parsed by me.
/*
This is a simple JavaScript parsing of generic automotive OBD-2 codes. This is just a generic description, so not all codes will be accurate per manufacturer.
Codes Ranges:
PXXXX (P0000-P1917)
CXXXX (C1091-C1963)
BXXXX (B1200-B2606)
UXXXX (U1900-A few)
Eg: console.log(OBDs["P303"]) // 'Cylinder 3 Misfire Detected'