Skip to content

Instantly share code, notes, and snippets.

View Arefu's full-sized avatar
🏝️
Is this thing on?

Johnathon Arefu

🏝️
Is this thing on?
View GitHub Profile
@Arefu
Arefu / FSNS_API.yaml
Created March 15, 2026 21:08
Foodstuffs North Island API
openapi: 3.0.4
info:
title: "Foodstuffs' Pak 'n Save & New World Android App API"
description: "This API is not officially supported by Foodstuffs Ltd. It has been created by reverse engineering the Foodstuffs Pak 'n Save & New World Android App. Use at your own risk."
version: "4.32.0"
servers:
- url: "https://api-prod.prod.fsniwaikato.kiwi/prod"
- url: "https://api-preprod.test.fsniwaikato.kiwi"
@Arefu
Arefu / ODT.py
Created February 24, 2026 23:23
Free news for the masses - Bypass stupid paywalls easily with your own horribly written Python script!
from flask import Flask, request, Response, render_template_string
import requests
from playwright.sync_api import sync_playwright
from bs4 import BeautifulSoup
from urllib.parse import urljoin, urlparse
app = Flask(__name__)
ALLOWED_DOMAINS = [ "odt.co.nz", "nzherald.co.nz", "thepress.co.nz"]
@Arefu
Arefu / FreeHerald.js
Last active December 4, 2025 02:17
Make NZ Herald premium articles free to view
// ==UserScript==
// @name Free NZHerald
// @include *nzherald.co.nz*
// @version 1
// @description Freedom of information is more important than any amount of money
// @author Arefu (Johnathon)
// @grant none
// ==/UserScript==
//I've tested this on FireFox with Tampermonkey. I hate Herald and everything they stand for, they steal articles and don't give credit, they have biased journalism and just generally crappy reporters.
//This is for all the articles they stole from Reddit and Facebook without due credit and copy pasting any clickbait websites like BuzzFeed.
@Arefu
Arefu / PaknSave.txt
Created March 31, 2025 07:31
New World / Pak'nSave API Endpoints
GET
https://www.paknsave.co.nz/CommonApi/Cart/Index
GET
https://www.paknsave.co.nz/CommonApi/Delivery/GetStoreCollectionPoints?id=c0f80e87-16be-4488-9553-da437e8c6c2a
GET
https://www.paknsave.co.nz/CommonApi/Navigation/MegaMenu?v=&storeId=c0f80e87-16be-4488-9553-da437e8c6c2a
POST
https://www.paknsave.co.nz/CommonApi/Store/GetStoreList
GET
https://www.paknsave.co.nz/CommonApi/Checkout/GetAisleOfValueProducts
@Arefu
Arefu / PaknSave.ps1
Last active April 4, 2025 07:37
Pak 'n Save API Hijinx - Found using Firefox's Inspector tools. There are more, CommonApi presumably means it will also work on New World.
Invoke-WebRequest -UseBasicParsing -Uri "https://www.paknsave.co.nz/" `
-UserAgent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0" `
-SessionVariable PaknSave `
-Headers @{
"Accept" = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
"DNT" = "1"
} | Out-Null
$Stores = Invoke-WebRequest "https://www.paknsave.co.nz/CommonApi/Store/GetStoreList" `
@Arefu
Arefu / Install.md
Last active April 30, 2024 01:04
Install XNA On VS2019

Step One

Read this

Step Two

Put this instead.

<Installation InstalledByMsi="false">
    <InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.VSWinDesktopExpress" />
    <InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.Pro" />
 

RUCKUS ZoneDirector Info - Unoffical API

Hello again, hopefully after reading this you'll be able to understand how RUCKUS ZoneDirector does certain things under the hood. I will cover 4 things in this little Gist, first of all I will show you how to authenticate using PowerShell and keep the session stored. As a base for this guide I will be using this writeup so be sure to read that for the details I will surely miss out on mentioning. This is for a basic SysAdmin who wants to let users do certain things with ZoneDirector without having to give any control of the actual system itself.

Authenticating Against ZoneDirector

Since in my enviroment we use a valid SSL certificate you may or may not need to add this simple hack to the top of your PowerShell.

[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}

@Arefu
Arefu / pkmneclipse AutoClicker
Created January 23, 2019 04:53
Tested on GreaseMonkey on FireFox.
// ==UserScript==
// @name Pokemon Eclipse RPG AutoFinder
// @version 1
// @grant none
// @description No Wait Times For Portal Roms.
// @include https://pkmneclipse.net/*
// ==/UserScript==
window.onload = function () {
function AutoClick()
{
@Arefu
Arefu / Set-ExamAccount.ps1
Created October 30, 2019 02:32
Set Exam Account Passwords
[INT]$Count = Read-Host -Prompt "How Many Passwords?"
[INT]$Token = 1
[STRING]$Url = "https://www.dinopass.com/password/simple"
do
{
$Password = (Get-Culture).TextInfo.ToTitleCase((Invoke-WebRequest -UseBasicParsing -Uri $Url).Content)
#$Password = ConvertTo-SecureString $Password -AsPlainText -Force
Set-ADAccountPassword -Reset -NewPassword $(ConvertTo-SecureString $($Password) -AsPlainText -Force) -Identity $("Exam"+$Token)
Write-Host "Exam$Token - $Password"
@Arefu
Arefu / README.md
Created September 5, 2019 03:02
Viewing Internal OneNote Files Through SharePoint

Viewing Internal OneNote Files Through SharePoint

Typically OneNote won't let you easily view files behind the NoteBook without a little bit of work on your part, I haven't managed to find any guides that detail the steps you need to take.


First off, if you're doing this to a Class NoteBook you will need to be an Owner/Teacher of the class in question before you can do this. The second step is to find what I call the "Section Name" of the NoteBook, for example in my scenario the NoteBooks are called Section_Year* E.G: