Skip to content

Instantly share code, notes, and snippets.

@knot126
knot126 / bcm4321_dell_linux_2023.md
Created October 18, 2023 15:09
How to make dell minicard with BCM4321 work on linux

How to make BCM4321 dell wifi card work on linux

  1. Download this file and extract the .o file: https://github.com/knot126/bcm4321/blob/main/broadcom-wl-6.30.163.46.tar.bz2
  2. Enter a root shell (e.g. sudo su) in the folder where you extracted the .o to
  3. Run b43-fwcutter -w /usr/lib/firmware ./broadcom-wl-6.30.163.46.wl_apsta.o (extracts the firmware to the proper location)
  4. Reboot and the wifi should work
@knot126
knot126 / passthrough.py
Created June 2, 2023 05:56
Awful hack for making Karen's cydia repo work on iOS 5 after SSL errors
"""
Run this locally (make sure firewall is off) and add http://<YOUR-IP>:8000/ to Cydia.
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
import time
import requests
host = "https://cydia.akemi.ai"
serverPort = 8000
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9MTA3OSIsInBhdGgiOiJcL2ZcL2NjMDU5OTgwLTk4MDctNGM3Ni04Mzc3LTAzOWUyODQ5ZjY5NlwvZGY4ajlsbC0wYmY5YTYzOC04OWQ3LTRhZjMtYjhlMC00YWVjNmNkYjUyNWYucG5nIiwid2lkdGgiOiI8PTEyODAifV1dLCJhdWQiOlsidXJuOnNlcnZpY2U6aW1hZ2Uub3BlcmF0aW9ucyJdfQ.kDpKYP4xSJ5kImTPUxKTqXxXxAfsQOmNErs9NxA4UW0
{"typ":"JWT","alg":"none"}
eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0
{"sub":"urn:app:","iss":"urn:app:","obj":[[{}]],"aud":["urn:service:file.download"]}
eyJzdWIiOiJ1cm46YXBwOiIsImlzcyI6InVybjphcHA6Iiwib2JqIjpbW3t9XV0sImF1ZCI6WyJ1cm46c2VydmljZTpmaWxlLmRvd25sb2FkIl19
def lcg(a, x, b, m):
return (a * x + b) % m
def main():
print("Please select parameters to test with.")
a = eval(input("a = "))
b = eval(input("b = "))
m = eval(input("m = "))
s = eval(input("s_0 = "))
import simpleaudio
import math
import struct
import random
def mix(a, b):
return (a + b) - (a * b)
def sample_sine(freq, i, volume = 0.3, rate = 44100):
"""
import requests
import urllib.parse
MODELS = ["photo", "standard", "cartoon", "light"]
MODES = ["cpu", "gpu"]
infull = urllib.parse.quote(b"C:\\Users\\User\\SomeFile.png")
folder = urllib.parse.quote(b"C:\\Users\\User\\OutputAI\\")
size = urllib.parse.quote(str(64 * 64))
#include <stdio.h>
#include <string.h>
const char string[] = "Edit: Also, if you are reading this, you are probably wasting your time just decoding some random comment on reddit LMAO.";
int main(int argc, char *argv[]) {
int string_length = strlen(string);
for (int i = 0; i < string_length; i++) {
printf("%x ", string[i]);
Exploring the early history of Fur Affinity (or any early web community - before everything became so big and standardised and when the web was more jank) and listening to Axolotl from the Minecraft OST is a fucking lucid expreince. It's almost what I imagine being high feels like.
- Knot
#include <stdio.h>
#include <string.h>
const char string[] = "01011001 01101111 01110101 00100000 01100001 01110010 01100101 00100000 01100001 00100000 01101110 01100101 01110010 01100100 00100000 01111001 01100110 00100000 01111001 01101111 01110101 00100000 01100011 01100001 01101110 00100000 01110010 01100101 01100001 01100100 00100000 01110100 01101000 01101001 01110011";
int main(int argc, char *argv[]) {
int string_length = strlen(string);
int power = 0;
int value = 0;

Knot Auth Service and Protocol v0.0

The KnotAuth protocol is a basic authorisation protocol that uses basic HTTP POST + JSON requests authorise users.

It can be used similarly to OAuth 2 to allow apps to authorise and get basic information about users without gaining access to the user's password or any unneeded account details; however, it is not meant to fill the same role as OAuth 2.

One of the major differences to OAuth 2 is that it is NOT for granting access to other applications, and does not provide scoping beyond "do you really want to log in with this app?". It only allows the centralisation of and outsourcing of authorisation and password storage for the service altogther.

Overview