Skip to content

Instantly share code, notes, and snippets.

View IAmJSD's full-sized avatar
🏠
Working from home

Astrid IAmJSD

🏠
Working from home
View GitHub Profile
// Get the global browser map.
const getGlobalBrowserMap = () => {
const v = globalThis.__RAINBOWS_INTERNALS_CONN_STACK_IDENTIFIERS__;
if (!v) {
globalThis.__RAINBOWS_INTERNALS_CONN_STACK_IDENTIFIERS__ = new Map();
return globalThis.__RAINBOWS_INTERNALS_CONN_STACK_IDENTIFIERS__;
}
return v;
};
@IAmJSD
IAmJSD / pgp.pub
Created July 10, 2024 00:59
Me :)
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEZo3axhYJKwYBBAHaRw8BAQdAciC9DKol8VD18C3uCci1Qa6rfmNsyQT51uZK
Kq/QVvi0JkFzdHJpZCBHZWFsZXIgPGFzdHJpZGdlYWxlckBnbWFpbC5jb20+iJkE
ExYKAEEWIQQaq9scQqx2zBwbaAlmcUoYq1IyWAUCZo3axgIbAwUJBaOagAULCQgH
AgIiAgYVCgkICwIEFgIDAQIeBwIXgAAKCRBmcUoYq1IyWBIxAQD+wHXzGEtkFWig
YzCp7beF7YJLhhaqev92/fadSbBUTwEAkOP6GW8vtMcWjEF7SsYfM3EpfCbnBGM0
26MvTkRwkgG4OARmjdrGEgorBgEEAZdVAQUBAQdAL6kyE9jLE0XcvgOl1JdI6ggw
PDmxT067nQALhzbn0xsDAQgHiH4EGBYKACYWIQQaq9scQqx2zBwbaAlmcUoYq1Iy
WAUCZo3axgIbDAUJBaOagAAKCRBmcUoYq1IyWDzuAQCZSETt4cK5tF/se8tlbLNw
@IAmJSD
IAmJSD / ssh_signature_miner.rs
Created June 19, 2024 23:17
Allows you to mine for a specific string inside a SSH key signature
use ssh_key::{
private::{KeypairData, RsaKeypair}, rand_core::OsRng,
LineEnding, PrivateKey,
};
use std::{env, path::Path, process, thread};
fn thread_worker(filter: &str) {
loop {
// Generate a SSH key pair.
let key_data = KeypairData::from(RsaKeypair::random(&mut OsRng, 2048).unwrap());
use std::thread;
// A container that holds data and the thread ID of the thread that created the container. Note that
// this container must be dropped in the same thread that created it, otherwise this will panic since
// the thread ID will be different.
pub struct ThreadBoundContainer<T> {
data: T,
thread_id: thread::ThreadId,
}
@IAmJSD
IAmJSD / cemtp-1-spec.md
Last active July 27, 2023 20:40
The specification for Client-side Encrypted Mail Transfer Protocol (CEMTP)

Client-side Encrypted Mail Transfer Protocol (CEMTP) 1.0 Specification

Created By: Astrid Gealer, Web Scale Software Ltd [email protected]

Created On: 23rd July 2023

Terminology

  • A "client" refers to a mail server or user wishing to connect via the protocol to the host server.
  • A "user" refers to a user of the host mail server.

tldr: I'm a woman and go by she/her pronouns. My name is Astrid!

Coming out

So there's something I have hid from the internet for over 2 years. I'm trans, I am a woman, and my name is Astrid. I didn't hide it because I thought most people would hate me for it, I hid it because I was scared people would have pre-conceived notions about me and not really understand. Through this, I fragmented the internet with my deadname more and more, and it is something I am actively mopping up now, but now is the time to fix it for a few reasons:

  1. I cannot pretend to be a guy in some circles anymore: I didn't realise how much of a mental toll it had on me until recently when I woke up and realised I needed to come out. I have came out to many people already, and everyone I have came out to has been amazing. I am so thankful to be in the tech circle and have amazing friends who I know will make sure everything is going to be okay.
  2. It's doing a disservice to me and all you: I feel like I could not go to events befor
@IAmJSD
IAmJSD / test_server.go
Created May 13, 2023 19:51
Simple test server for testing HTTP requestors.
package main
import (
"encoding/json"
"os"
"strings"
"github.com/fasthttp/router"
"github.com/valyala/fasthttp"
)
{
"targets": [
{
"target_name": "x11",
"sources": [
"x11_screenshotter.cc"
],
"cflags_cc": ["-O3"],
"libraries": ["-lX11"],
"include_dirs" : [
#include <nan.h>
#include <node.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>
using namespace v8;
void GetScreenshot(const Nan::FunctionCallbackInfo<Value>& args) {
// Get both expected arguments as integers.
Isolate* isolate = args.GetIsolate();
This file has been truncated, but you can view the full file.
From b067cd75e453b1d70f648a0201b0261e36162526 Mon Sep 17 00:00:00 2001
From: Jake Gealer <[email protected]>
Date: Tue, 16 Jun 2020 14:49:55 +0100
Subject: [PATCH] Remove all master/slave terminology from Git
---
Documentation/Makefile | 2 +-
Documentation/MyFirstContribution.txt | 32 +-
Documentation/MyFirstObjectWalk.txt | 4 +-
Documentation/SubmittingPatches | 24 +-