Skip to content

Instantly share code, notes, and snippets.

import base64
import urllib.parse
SKELETON_PAYLOAD = """<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml SYSTEM 'x" ><!--'>
FAKE_ASSERTION
<![CDATA[-->
REAL_ASSERTION
<!--]]>--></saml2p:Response>
"""
@HelgeSverre
HelgeSverre / coop-norway-api.openapi.json
Last active August 24, 2026 21:57
Norwegian Grocery Store APIs — Reverse-engineered API documentation for Rema 1000, Coop Norway, and Trumf (extracted from Android APKs)
{
"openapi": "3.1.0",
"info": {
"title": "Coop Norway Medlem API",
"version": "4.17.3",
"description": "Reverse-engineered API specification for the Coop Norway \"Coop medlem\" Android app (no.coop.members v4.17.3). Extracted via static analysis of the compiled Dart binary (libapp.so) from the Flutter APK.\n\nThis API powers Norway's Coop loyalty program including purchase history, digital receipts, coupons, Coopay mobile payment, shopping lists, and Shop Express.\n\n**Authentication:** OpenID Connect via Auth0 at https://login.coop.no/\n**Strong Customer Auth (Coopay):** Aera SDK at https://api.aerahost.com/\n\n⚠️ Unofficial, reverse-engineered spec. Use responsibly for personal data access only.",
"contact": { "name": "Helge Sverre", "url": "https://helgesver.re" },
"license": { "name": "MIT" }
},
"servers": [
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/isRockFx.js"></script>
<script>
$(function () {
@jboner
jboner / latency.txt
Last active August 24, 2026 22:13
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@pilalouis
pilalouis / giftCardGenerator.py
Created July 21, 2020 18:47
A gift card generator. The script generates the specified number of gift card numbers for a particular company and stores them in a text file.
import random
from random import randint
import time
gentype = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
print("Hello To Multipe Gift Card Generator")
total = input("How Many Would You Like To Generate? ")
#Number To Generate
number = int(total)
file = (total + " Generated By Multipe Gift Card Generator.txt")
file2 = 'GiftCardsCodes.txt'
@jhol-byte
jhol-byte / Ikea_bilresa_scroll_wheel.yaml
Last active August 24, 2026 20:04
Home Assistent Blueprint "Ikea_bilresa_scroll_wheel"
blueprint:
name: Ikea_bilresa_scroll_wheel
description: |
Blueprint for Ikea Bilresa Matter (button and scroll wheel for 3 different channels)
Version: 2026-04-06
Info: https://community.home-assistant.io/t/ikea-bilresa-scroll-wheel-blueprint-matter/965365
domain: automation
# input selectors
input:
@pigeonflight
pigeonflight / README.md
Last active August 24, 2026 20:00
This is an ugly script to just extract/unpack the ICD-11 codes from a local docker instance of the ICD-11 api

Assumptions

You have Python. You've installed the requests library. You have docker on your machine.

Usage

  1. Launch the ICD-11 docker container
docker run -p 80:80  --env "acceptLicense=true" --env "saveAnalytics=true" --env "includeIp=false" whoicd/icd11_sw_1904_mms_en
@pashov
pashov / Claude_Prompting_Guide.md
Last active August 24, 2026 19:50
Claude Prompting Guide

Claude Prompting Guide

General tips for effective prompting

1. Be clear and specific

  • Clearly state your task or question at the beginning of your message.
  • Provide context and details to help Claude understand your needs.
  • Break complex tasks into smaller, manageable steps.
@indygwyn
indygwyn / energizing orb.sfm
Created February 4, 2026 05:07
Super Factory Manager Powah Energizing Orb
name "Energizing orb"
every 1 ticks do
input fe:: from cube
output fe:: to each injector
end
every 20 ticks do
-- Extraction
input from orb bottom side
@fingaweg
fingaweg / scrCommand_dump_b1491.50
Last active August 24, 2026 19:14
This gist lists all RDR2.exe (Build 1.0.1491.50) Natives (Commands) alphabetically sorted by their Handler Address, Focus on confirmed names without underscore to guess new names.
[NativeHelper::Init] Parsed 7132 natives in 86 namespaces
Original Hash: 0x14D29BB12D47F68C, Current Hash: 0x14D29BB12D47F68C, Address: 0x11CC10 SET_CONTROL_TRIGGER_SHAKE
Original Hash: 0xC964FCD3D1720697, Current Hash: 0xC964FCD3D1720697, Address: 0x11CC10 _0xC964FCD3D1720697
Original Hash: 0x0CC28C08613BA9E5, Current Hash: 0x0CC28C08613BA9E5, Address: 0x11CC10 _0x0CC28C08613BA9E5
Original Hash: 0x19ABCC581D28E6F9, Current Hash: 0x19ABCC581D28E6F9, Address: 0x11CC10 SET_ALL_MAPDATA_CULLED
Original Hash: 0x72751156E7678833, Current Hash: 0x72751156E7678833, Address: 0x11CC10 SET_IGNORE_NO_GPS_FLAG
Original Hash: 0xA9342743B634A462, Current Hash: 0xA9342743B634A462, Address: 0x11CC10 _0xA9342743B634A462
Original Hash: 0x94B261F1F35293E1, Current Hash: 0x94B261F1F35293E1, Address: 0x11CC10 _0x94B261F1F35293E1
Original Hash: 0x160F0CE6D76A39C9, Current Hash: 0x160F0CE6D76A39C9, Address: 0x11CC10 _0x160F0CE6D76A39C9
Original Hash: 0xFC6FCF4C03F1BBF6, Current Hash: 0xFC6FCF4C03F1BBF6, Address: 0x11CC10 _0xFC6FCF4C