Skip to content

Instantly share code, notes, and snippets.

View Arefu's full-sized avatar
🤔
ERROR_FILE_NOT_FOUND

Johnathon Arefu

🤔
ERROR_FILE_NOT_FOUND
View GitHub Profile
@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 / 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:

@Arefu
Arefu / Revoke-Ban.ps1
Created August 25, 2019 22:43
KAMAR's Parent Portal Account Unblocker
#
# Give This Script A Username, Fill In The Password and Parent Portal Address And It Will Do The Rest.
# k8d3b9d2b374d1c768b5996e5e2553ccc May Change! It Was Static For Me! It's A Hidden Input On The Login Page.
# Use Fiddler Or Alternative Tool To Find Your Hash (Might Be School Specific?)
#
param ([string]$UserName)
$userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0"
$headers = @{"Host"="<FILL>"; "Accept"="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";"Referer"="https://<FILL>/index.php/configure/login"; "Accept-Language"="en-GB,en;q=0.5"; "Accept-Encoding"="gzip, deflate, br";"Content-Type"="application/x-www-form-urlencoded";"Upgrade-Insecure-Requests"="1"}
@Arefu
Arefu / gist:7aaf982103437aec92b7561947df27d0
Created May 27, 2019 10:30
Continuation from my Wmi and Class Project
using System.Diagnostics;
using System.Management;
using System;
namespace CompInfo.WMI_Classes
{
class Win32_BIOS
{
public UInt16[] BiosCharacteristics;
public string[] BIOSVersion;
@Arefu
Arefu / Program.cs
Created May 27, 2019 10:08
¯\_(ツ)_/¯ This involves Wmi and Classes although I am not entirely sure how to describe how it works or understand why I made it but I did...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using System.Text;
using System.Threading.Tasks;
namespace CompInfo
@Arefu
Arefu / FreeHerald.js
Last active June 11, 2021 08:44
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 / 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 / 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" />