Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Schwarzenberger jason-s13r

View GitHub Profile
@jason-s13r
jason-s13r / nzta-pin.js
Last active Mar 11, 2022
NZTA Toll Road account system has an incredibly stupid PIN criteria system for the username & pin sign in. Generate all possible PINs for the NZTA Toll Road account. There are only 72500 valid PINs available.
View nzta-pin.js
const start = new Date();
const characters = 'abcdefghijklnopqrstuvwxyz0123456789';
const valid = new Set();
const invalid = new Set();
for (let a = 0; a < characters.length; a++) {
for (let b = 0; b < characters.length; b++) {
for (let c = 0; c < characters.length; c++) {
for (let d = 0; d < characters.length; d++) {
const word = characters[a] + characters[b] + characters[c] + characters[d];
@jason-s13r
jason-s13r / Old Stuff: Picture Puzzle.md
Last active Jan 24, 2022
15 tile picture puzzle game I made a long time ago.
View Old Stuff: Picture Puzzle.md

15 tile picture puzzle game I made a long time ago. It was hosted on a file upload website called Omplaoder. This site allowed for rendering HTML files. Was kinda cool.
Demo: https://puzzle.qot.nz/

@jason-s13r
jason-s13r / Image background remover.md
Last active Jan 28, 2022
Remove arbitrary background, resize to square, and add a single-colour background for images in `./input` directory.
View Image background remover.md

A bash script to replace the background with a single colour and resize the image to square.

Uses background remover and ImageMagick.

View keybase.md

Keybase proof

I hereby claim:

  • I am jason-s13r on github.
  • I am master5o1 (https://keybase.io/master5o1) on keybase.
  • I have a public key whose fingerprint is 943F 643F 3D22 A79E AB07 85D2 4773 2B7C A17C F5FD

To claim this, I am signing this object:

@jason-s13r
jason-s13r / NZ News Aggregator.md
Last active Jun 14, 2021
I have made a news aggregator that uses Declutter to scraper article content.
View NZ News Aggregator.md

I have made a news aggregator that uses Declutter to scraper article content.
It is based on a friend's reddit/hackernews/tildes aggregator which he called QotNews.

I extended the feeds to be able to use sitemaps or category pages from arbitrary websites, as well as substack publications. This means that any news site can be brought into the list of articles. I replaced the react client with a ui based on Svelte, because that seemed like a cool thing to do.

@jason-s13r
jason-s13r / Scrabble
Last active Jan 31, 2020
A scrabble-like arrangement of Tannercoin related words (ie, mostly pokemon names). - https://txt.t0.vc/NYZN
View Scrabble
V
SLOWPOKE PERSIAN
L H I
FARFETCH'D Y D S D VENONAT
O PIDGEOTTO E I I
BEFRIEND N E A W L D C
A B BOOP Y R MAGNEMITE O H
T R Mr.MIME O A P R A
SEADRA NATTY PAUL GLOOM I N G CLEFAIRY VICTREEBEL
HODL U L FARM B B WEEZING M U N M
@jason-s13r
jason-s13r / Skinny 4G Broadband renewal script.md
Last active Feb 4, 2022
Checks the balance to automatically apply daily Data Binge packs. Can be configured to run frequently using a cronjob.
View Skinny 4G Broadband renewal script.md

Repository: https://github.com/master5o1/skinny-renewal/

I was looking for options to get better than ADSL internet for my rural house. I had a prepay Skinny 4G Broadband Huawei b315s-608 modem.

I couldn't purchase the 300GB/$59 pack for my address so wondered how I can achieve a reasonable* price for high data usage. Figured out that $5/24 hour unlimited Data Binge would give me a max price of $200 a month.

It would probably only be cost effective if monthly usage were greater than 4x120GB.

@jason-s13r
jason-s13r / Declutter.md
Last active Jun 3, 2020
Removes the clutter from various New Zealand news websites and creates a page for the article on telegra.ph.
View Declutter.md
@jason-s13r
jason-s13r / NZHerald Bypass.md
Last active Jul 12, 2022
Bypasses the new NZHerald Premium paywall using Javascript to peek at the LD+JSON Schema to figure out which CSS selector is being used to hide content.
View NZHerald Bypass.md

NZHerald Bypass

Bypasses the new NZHerald Premium paywall using Javascript to peek at the LD+JSON Schema to figure out which CSS selector is being used to hide content.

I made this mostly for myself.

Repository

Primary source repository is located on my gogs instance, https://git.1j.nz/firefox-extensions/nzherald-bypass.

@jason-s13r
jason-s13r / vue-signature-pad.d.ts
Last active Mar 27, 2019
Typescript type definitions for [vue-signature-pad](https://www.npmjs.com/package/vue-signature-pad), probably not entirely correct.
View vue-signature-pad.d.ts
declare module 'vue-signature-pad' {
import signature_pad, * as SignaturePad from 'signature_pad';
import Vue from 'vue';
export interface IOptions extends SignaturePad.IOptions {}
export interface IPointGroup extends SignaturePad.IPointGroup {}
export interface Status {
isEmpty: boolean;
data?: any;