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 / 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" />
 
@Arefu
Arefu / CoolRomsInstantDownload.js
Last active January 10, 2019 00:56
A UserScript that lets you download from CoolRoms.com faster then waiting the 100 seconds.
// ==UserScript==
// @name Portal Roms Instant Downloader
// @version 1
// @grant none
// @description No Wait Times For Portal Roms.
// @include http://www.portalroms.com/*
// ==/UserScript==
//This was only tested on the PS2 page, it should work on the other pages assuming they follow the same scheme.
var DownloadLink = "http://www.portalroms.com/torrents/"
@Arefu
Arefu / SpiceWorks.ps1
Created December 11, 2018 01:50
SpiceWorks API Access
[CmdletBinding()]
Param(
[string] $url = "http://{SERVER}/pro_users/login",
[string] $username = "{Email}",
[string] $password = '{Password}'
)
$userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
$headers = @{"Accept"="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"; "Accept-Encoding"="gzip, deflate"; "Accept-Language"="en-US,en;q=0.5";}
$r = Invoke-WebRequest ($url) -SessionVariable session -UserAgent $userAgent -Headers $headers