Skip to content

Instantly share code, notes, and snippets.

Ryan Finnie rfinnie

Block or report user

Report or block rfinnie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View smwrand.py
# smwrand
# Ryan Finnie <ryan@finnie.org>
# Based on deconstruction by Retro Game Mechanics Explained
# https://www.youtube.com/watch?v=q15yNrJHOak
class SMWRand:
seed_1 = 0
seed_2 = 0
def _rand(self):
View vanityhash-brag.md

vanityhash brag list

vanityhash has become an accidental benchmark.

git clone https://github.com/rfinnie/vanityhash
vanityhash/vanityhash benchmark
  • Benchmark mode takes 60 seconds to complete.
View clean_streams.py
#!/usr/bin/python3
import os
import glob
TARGET_SIZE = (1024**4) * 3
COLLECTION_CONFIGS = {
'cam1': {
'glob': '/media/camera/streams/cam1/cam1_*.mp4',
'weight': 0.2,
View keybase.md

Keybase proof

I hereby claim:

  • I am rfinnie on github.
  • I am rfinnie (https://keybase.io/rfinnie) on keybase.
  • I have a public key whose fingerprint is 42E2 C8DE 8C17 3AB1 02F5 2C6E 7E60 A3A6 86AE 8D98

To claim this, I am signing this object:

View auto_pager.py
#!/usr/bin/env python3
# auto_pager.py
# Copyright (C) 2018 Ryan Finnie
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
View socketserver_mcast.py
#!/usr/bin/env python3
import socketserver
import socket
import time
import struct
class MCastUDPServer(socketserver.UDPServer):
# Usage:
You can’t perform that action at this time.