Skip to content

Instantly share code, notes, and snippets.

View mbilker's full-sized avatar

Matthew Bilker mbilker

View GitHub Profile

The ffast and the Furious

This is a small and admittedly contrived demo showing how some weird but safe code could become vulnerable if run in an environment where some shared library has changed the FPU's FTZ/DAZ bits to force denormals to zero.

To run it:

# Create an empty file
$ touch gofast.c      
@zserge
zserge / guest.S
Created May 10, 2020 08:41
A tiny KVM host to run a 16-bit real mode "kernel"
# A tiny 16-bit guest "kernel" that infinitely prints an incremented number to the debug port
#
# Build it:
#
# as -32 guest.S -o guest.o
# ld -m elf_i386 --oformat binary -N -e _start -Ttext 0x10000 -o guest guest.o
#
.globl _start
@Manouchehri
Manouchehri / rfc3161.txt
Last active July 25, 2025 00:20
List of free rfc3161 servers.
https://rfc3161.ai.moda
https://rfc3161.ai.moda/adobe
https://rfc3161.ai.moda/microsoft
https://rfc3161.ai.moda/apple
https://rfc3161.ai.moda/any
http://rfc3161.ai.moda
http://timestamp.digicert.com
http://timestamp.globalsign.com/tsa/r6advanced1
http://rfc3161timestamp.globalsign.com/advanced
http://timestamp.sectigo.com
@ichimarusakura
ichimarusakura / JaketResize.py
Last active May 12, 2020 08:14
JacketEditor
import io,os,struct,codecs,glob,binascii
from PIL import Image
imgs = glob.iglob('png\\*.*')
for img in imgs:
fo_img = Image.open(img)
filename = os.path.basename(img)
basename, extname = os.path.splitext(filename)
newb_img = Image.new('RGBA', (320, 320), (255, 255, 255, 0))
news_img = Image.new('RGBA', (160, 160), (255, 255, 255, 0))
o_path = 'jacket\\'
from PIL import Image,ImageDraw,ImageFont
fo = open('name.txt','r')
for names in fo:
uc = []
ab = []
#color font
color = '#000000'
color1 = '#000000'
font = 'dfgothw5.ttc'
#name size
@ichimarusakura
ichimarusakura / Checksum.py
Last active May 12, 2020 08:14
BIN File's Checksum Algorithm
import os,codecs
hashcode = []
rg = range(0, 10000)
dict = {'BNR_BIG_ID1000':'ADA613C6','BNR_BIG_ID2000':'6E6CA712','BNR_BIG_ID3000':'ECE07F8A','BNR_BIG_ID4000':'0F89FD78','BNR_BIG_ID5000':'8D0525E0','BNR_BIG_ID5100':'2DF7BBEF','BNR_BIG_ID5300':'FFEE7A33','BNR_BIG_ID6000':'4ECF9134','BNR_BIG_ID6100':'EE3D0F3B','BNR_BIG_ID6200':'9CD650E8','BNR_BIG_ID8800':'0BFD203A','BNR_BIG_ID9001':'9DF788D5','BNR_BIG_ID7000':'CC4349AC','BNR_ID1000':'4A89EF27','BNR_ID2000':'89435BF3','BNR_ID3000':'0BCF836B','BNR_ID4000':'E8A60199','BNR_ID5000':'6A2AD901','BNR_ID5100':'CAD8470E','BNR_ID5300':'18C186D2','BNR_ID6000':'A9E06DD5','BNR_ID6100':'0912F3DA','BNR_ID6200':'7BF9AC09','BNR_ID8800':'ECD2DCDB','BNR_ID9001':'7AD87434','BNR_ID7000':'2B6CB54D','IDX_ID1000':'1082B3A6','IDX_ID2000':'D3480772','IDX_ID3000':'51C4DFEA','IDX_ID4000':'B2AD5D18','IDX_ID5000':'30218580','IDX_ID5100':'90D31B8F','IDX_ID5300':'42CADA53','IDX_ID6000':'F3EB3154','IDX_ID6100':'5319AF5B','IDX_ID6200':'21F2F088','IDX_ID8800':'B6D9805A','IDX_ID9001':'20D328B5',
@m-ou-se
m-ou-se / replace-debian-with-arch.txt
Last active July 3, 2025 21:23
Instructions to replace a live Debian installation with Arch
# Download latest archlinux bootstrap package, see https://www.archlinux.org/download/
wget 'ftp://ftp.nluug.nl/pub/os/Linux/distr/archlinux/iso/latest/archlinux-bootstrap-*-x86_64.tar.gz'
# Make sure you'll have enough entropy for pacman-key later.
apt-get install haveged
# Install the arch bootstrap image in a tmpfs.
mount -t tmpfs none /mnt
cd /mnt
tar xvf ~/archlinux-bootstrap-*-x86_64.tar.gz --strip-components=1
@t-mat
t-mat / minimal_vst2x_host.cpp
Last active June 7, 2024 06:22
WIN32 : Minimal VST 2.x host in C++11.
// Win32 : Minimal VST 2.x Synth host in C++11.
//
// This is a simplified version of the following project by hotwatermorning :
// A sample VST Host Application for C++ Advent Calendar 2013 5th day.
// https://github.com/hotwatermorning/VstHostDemo
//
// Usage :
// 1. Compile & Run this program.
// 2. Select your VST Synth DLL.
// 3. Press QWERTY, ZXCV, etc.
@pokle
pokle / Dockerfile
Created April 16, 2014 04:45
Run ssh server inside a Centos/Redhat Docker container
# ssh server
# Don't forget to run '/usr/sbin/sshd -D' if you actually want to ssh into this container
RUN yum install -y openssh-server
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
RUN ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
ADD src/sshd/sshd_config /etc/ssh/sshd_config
RUN echo root:welcome1 | chpasswd
@ef4
ef4 / usb-headset.sh
Created March 18, 2012 15:08
Automatically switch all PulseAudio streams to a USB headset
#!/bin/bash
# Adapted from Erik Johnson's script at
# http://terminalmage.net/2011/11/17/setting-a-usb-headset-as-the-default-pulseaudio-device/
#
# Updated by Edward Faulkner <[email protected]> to move existing
# streams and eliminate the extra fork script.
# You'll need to change these to point at your headset device.
OUTPUT="alsa_output.usb-Generic_FREETALK_Everyman_0000000001-00-Everyman.analog-stereo"