Skip to content

Instantly share code, notes, and snippets.

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

Mahad Kalam SkyfallWasTaken

🏠
Working from home
View GitHub Profile
@Rich-Harris
Rich-Harris / service-workers.md
Last active December 3, 2025 11:09
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.

@sum-catnip
sum-catnip / inject.rs
Created February 18, 2020 16:41
rust simple dll injection
use std::io;
use std::ptr;
use std::mem;
use std::io::Error;
use std::io::ErrorKind;
use std::path::Path;
use std::ffi::CString;
use winapi::um::winnt::HANDLE;
use winapi::um::memoryapi as wmem;
@Romern
Romern / spatula-examples.md
Last active June 21, 2025 11:59
Goog-Spatula Header Stuff
@repi
repi / crate-health.md
Last active August 1, 2025 17:53
Guidelines on evaluating health & quality of third-party crates at Embark

What to evaluate and consider before adding usage of new third-party crates.

These are not exact requirements but questions to investigate and discuss to help reason around the health, safety, maintainability, and more around crates.

This can also be read as an opinionated guide for crate authors of what our (Embark's) guidelines and recommendations are, though should not be taken too literally.

Legend: 🔒 Must have, ⭐️ Should have, 👍 Nice to have, ℹ️ Info

@SkyfallWasTaken
SkyfallWasTaken / leave.py
Last active November 28, 2025 22:35
Mass-leave Discord servers
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "asyncio",
# "httpx",
# ]
# ///
# Run this with `uv`: `uv run leave.py`
import asyncio
import httpx