Skip to content

Instantly share code, notes, and snippets.

View 0xpr03's full-sized avatar
💭
I may be slow to respond.

Proc 0xpr03

💭
I may be slow to respond.
  • Berlin
View GitHub Profile
@tivrfoa
tivrfoa / README.md
Last active March 5, 2025 19:41
rust-analyzer with neovim for the Linux Kernel - Rust for Linux
@polypus74
polypus74 / atomic_enum.rs
Created July 3, 2018 14:38
atomic enum in rust
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
pub enum RunFlagState {
Running = 0,
Paused = 1,
Cancelled = 2,
}
// TODO: is there some mechanism to automate this (nightly)?
@mdonkers
mdonkers / server.py
Last active October 14, 2025 09:46
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer