Skip to content

Instantly share code, notes, and snippets.

@void52
void52 / markdown-syntax.md
Created June 22, 2025 12:22 — forked from mufid/markdown-syntax.md
Markdown Syntax
@void52
void52 / list.py
Created November 11, 2024 21:04 — forked from bboynton97/list.py
Auto-list NFTs on OpenSea with Browser Automation
# First install Chrome, and the Selenium driver
# Next, download and save the MetaMask CRX (there are plenty of guides on how to do this)
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import time
@void52
void52 / httpd.asm
Last active January 4, 2024 14:18 — forked from DGivney/httpd.asm
section .text
global _start
%define __r_l_state_ bl
%define __r_h_state_ bh
%define __r_x_state_ bx
%define __r_e_state_ ebx
%define __r_e_child_ ebx
@void52
void52 / httpd.asm
Created January 4, 2024 13:53 — forked from xenomuta/httpd.asm
httpd.asm: Arguably the world smallest web server. ( for GNU/Linux i386. Compile with nasm )
section .text
global _start
_start:
xor eax, eax
xor ebx, ebx
xor esi, esi
jmp _socket
_socket_call:
@void52
void52 / build.txt
Created April 15, 2023 13:59 — forked from ninlith/build.txt
Hybrid UEFI/BIOS multiboot USB drive
# Hybrid UEFI/BIOS multiboot USB drive
# Install required packages
sudo apt install gdisk grub2-common grub-efi-amd64-bin grub-pc-bin qemu-system
# Create an empty disk image
target_size=3.6G # $(lsblk -b --output SIZE -n -d /dev/sdX) for drive size
qemu-img create -f raw boottitikku.img "$target_size"
# Create a GUID Partition Table (GPT)
@void52
void52 / tsplot
Created January 15, 2023 23:41 — forked from queba/tsplot
Plotting a time series
#!/usr/bin/env python
"""
tsplot: a matplotlib wrapper that plots a time series read from a file.
It tokenizes each line into fields with the specified set of delimiters
(whitespaces by default). One of these fields should be designated as the time
column so that tsplot can interprete the time series. If none is specified,
the first column is used. For tsplot to understand the time values, the time
format, which should use the same syntax used by strptime(3) and has a default
@void52
void52 / x86-assembly-notes.md
Created January 10, 2023 14:19 — forked from mikesmullin/x86-assembly-notes.md
Notes on x86-64 Assembly and Machine Code

Mike's x86-64 Assembly (ASM) Notes

Assembling Binary Machine Code

Operating Modes:

These determine the assumed/default size of instruction operands, and restricts which opcodes are available, and how they are used.

Modern operating systems, booted inside Real mode,

@void52
void52 / dragons.c
Created December 24, 2022 00:11 — forked from em-and-m/dragons.c
How to do a computed goto in an inline function in GCC
#include <stdio.h>
#include <stdlib.h>
/*
* How to do a computed goto in an inline function.
* "Here be Dragons"
*/
/*
* This is used to keep the compiler from
@void52
void52 / ssl_server_nonblock.c
Created December 7, 2022 10:54 — forked from darrenjs/ssl_server_nonblock.c
OpenSSL example using memory BIO with non-blocking socket IO
/*
This file had now been added to the git repo
https://github.com/darrenjs/openssl_examples
... which also includes a non blocking client example.
-------------------------------------------------------------------------------
ssl_server_nonblock.c -- Copyright 2017 Darren Smith -- MIT license
@void52
void52 / README.md
Created October 25, 2022 14:34 — forked from ColCh/README.md
Git pre-push hook to confirm pushing to master