Skip to content

Instantly share code, notes, and snippets.

View Beej126's full-sized avatar

Beej Beej126

View GitHub Profile
@Beej126
Beej126 / gist:42628d206f4c5fac70debd136eadbe83
Created August 2, 2026 15:54
download marathonfoto.com
```
msedge.exe --user-data-dir="C:/EdgeDebug" --disable-web-security
```
```
let imgurls = [...document.querySelectorAll("div#main-photo-gallery div.grid-item img[src^='https://marathonfotothumbs.blob.core.windows.net']")].map(i => i.src);
```
```
/**
@Beej126
Beej126 / gist:b2ed4dc8b108d042cfaeea2ac91d3b21
Created July 27, 2026 06:58
APIM json coors bypass via 'echo' api
{
"openapi": "3.0.1",
"info": {
"title": "Echo API",
"version": "1.0"
},
"servers": [
{
"url": "https://beejapim.azure-api.net/echo"
}
@Beej126
Beej126 / gist:5ba32152d8c2c04eb158a7ebedfbc5f3
Created July 24, 2026 22:14
extracting html to clipboard > excel paste
// Green Attic Quotes
copy(
[...document.querySelectorAll(".MuiGrid-container")]
.map(r => [...r.querySelectorAll(".MuiGrid-item")].map(c => c.innerText.replace(/[\r\n]+/g, ' ').trim()))
.map(row => row.join('\t'))
.join('\n')
)
@Beej126
Beej126 / .gitignore
Last active January 18, 2025 17:23
Windows Sandbox Slipstreamed with Winget
*.appx
*.msixbundle
*.wsb
@Beej126
Beej126 / gist:28114aef95817491a18f2293cfc3d0a6
Created March 7, 2024 09:17
React iterate to generate elements sample
<ul>
{[1, 2, 3, 4, 5].map(i => <li>{i}</li>)}
</ul>
@Beej126
Beej126 / bigcsvsplitter.ps1
Last active June 2, 2022 18:17
Split big CSV quickly (multiple gigs < minute) based on column, powershell with embedded C#
# C# syntax works under both pwsh core and legacy Windows Powershell which is capped at C# 5.0 and .Net Framework vs dotnet core
Add-Type @"
using System;
using System.IO;
public static class BigCsvSplitter
{
public static void Run()
@Beej126
Beej126 / csharp-repl.ps1
Created April 18, 2022 04:07 — forked from noseratio/csharp-repl.ps1
C# REPL with Microsoft.Net.Compilers.Toolset
# https://www.nuget.org/packages/Microsoft.Net.Compilers.Toolset
md cs-repl | cd
nuget install Microsoft.Net.Compilers.Toolset
# run a CS script, a useful alternative to PowerShell itself
echo 'Console.WriteLine("hello");' > script.csx
. (gci -recurse csi.exe).FullName script.csx
# run in REPL mode
@Beej126
Beej126 / script.sh
Created February 4, 2022 01:09
hackintosh config.plist convert hex <=> base64
# base64 to hex
echo -n AwCYPg== | base64 -d | xxd -ps
# hex to base64
echo -n 0300983e | xxd -r -p | base64
@Beej126
Beej126 / .gitignore
Last active March 23, 2025 04:09
dnlib copy source dll methods to destination dll (patch tool)
dest.cs
dest/
save.ps1
source.cs
source.dll
@Beej126
Beej126 / eztv_scraper.js
Last active September 23, 2024 15:42
browser console script for pulling eztv.unblockit.tv episode links in bulk
//helper function
function groupBy(objectArray, property) {
return objectArray.reduce((acc, obj) => {
const key = obj[property];
if (!acc[key]) {
acc[key] = [];
}
// Add object to list for given key's value
acc[key].push(obj);
return acc;