Skip to content

Instantly share code, notes, and snippets.

@christopherwoodall
christopherwoodall / delete_tweets.js
Last active January 31, 2025 15:12
Delete tweets
// source: https://x.com/ThinkWiselyMatt/status/1885076017414348830
(async () => {
const delay = ms => new Promise(res => setTimeout(res, ms));
let deletedCount = 0;
const maxDeletes = 2000; // Adjust as needed
while (deletedCount < maxDeletes) {
let posts = document.querySelectorAll('[data-testid="tweet"]');
@christopherwoodall
christopherwoodall / uv-interpreter.ipynb
Last active January 10, 2025 00:03
uv-interpreter.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@christopherwoodall
christopherwoodall / FIREHOSE.md
Created December 11, 2024 05:30 — forked from davepeck/FIREHOSE.md
Zero-dependency Python script to decode the Bluesky firehose

Zero-dependency Python script to decode the Bluesky Firehose

This is a pure Python implementation of code necessary to decode the Bluesky Firehose's low-level binary data format.

It does not depend on any third-party libraries for decoding; we implement DAG_CBOR and CARv1 decoding ourselves.

To run this, install Astral's UV.

Then:

@christopherwoodall
christopherwoodall / landscape_to_blurred_portrait.sh
Created September 30, 2024 23:54 — forked from dupontgu/landscape_to_blurred_portrait.sh
Shell script to embed a landscape video inside a blurred, portrait version of itself.
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 <input_video>"
exit 1
fi
input_file="$1"
if [ -z "$2" ]; then
# Identify the faulty driver file
$faultyDriver = "C:\Windows\System32\drivers\CrowdStrike\C-00000291*.sys"
# Check if the file exists
if (Test-Path $faultyDriver) {
# Attempt to remove the file
try {
Remove-Item -Path $faultyDriver -Force
Write-Output "Faulty driver removed successfully."
}
@christopherwoodall
christopherwoodall / scapy_bridge.py
Created May 12, 2024 03:00 — forked from eXenon/scapy_bridge.py
Use scapy as a modifying proxy
#!/usr/bin/python2
"""
Use scapy to modify packets going through your machine.
Based on nfqueue to block packets in the kernel and pass them to scapy for validation
"""
import nfqueue
from scapy.all import *
import os
@christopherwoodall
christopherwoodall / simple-circuit-solver.ipynb
Created April 26, 2024 00:40
simple-circuit-solver.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
////////////////////////////////////////
// bitflip.arm.c
// Demo of shared memory
// Usage: This takes the first word of SHARED_RAM and flips every other bit
// over and over.
// If /dev/uio0 doesn't exist, consider using
// sudo ./bitflip.arm.out /dev/mem 0x4a300000
// Wiring: None
// Setup: Run this on the ARM and run bitflip.pru0.c or bitflip.pru1.c on the PRU
// See:
@christopherwoodall
christopherwoodall / example.py
Created September 12, 2023 15:08
MLFLow Python API
# pip install mlflow
import mlflow
from mlflow.tracking import MlflowClient
mlflow.set_tracking_uri("http://your-mlflow-server-uri")
client = MlflowClient()