Skip to content

Instantly share code, notes, and snippets.

View thecubic's full-sized avatar
🦀
be not afraid

Dave Carlson thecubic

🦀
be not afraid
View GitHub Profile
#!/usr/bin/env python3
# Copyright 2023 Dave Carlson @thecubic
# the best and most out-of-work programmer ever
import hashlib
import random
choices = (
"zero",
@thecubic
thecubic / adultbatfinder.py
Last active June 13, 2023 08:43
takes PLC record chain, finds a DID's operations, caches stuff
#!/usr/bin/env python3
# written by github.com/thecubic
# hireable for bar and bat mitzvahs and software
import os
import requests
import json
import pprint
### Keybase proof
I hereby claim:
* I am thecubic on github.
* I am thecubic (https://keybase.io/thecubic) on keybase.
* I have a public key ASDzjtqQurK3U0P3RmTyRNHW1RO8bAWlaV5YH4e-CTCXSQo
To claim this, I am signing this object:
@thecubic
thecubic / khdel
Created May 15, 2014 16:06
deletes specific line(s) from known_hosts
#!/bin/bash
# Problem:
# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
# Someone could be eavesdropping on you right now (man-in-the-middle attack)!
# It is also possible that a host key has just been changed.
@thecubic
thecubic / gist:10038840
Created April 7, 2014 19:45
python sqlite3 static version
## get pysqlite
$ git clone https://github.com/ghaering/pysqlite
## get static / self-contained version
$ wget sqlite-amalgamation-3080403.zip && unzip sqlite-amalgamation-3080403.zip
## copy sqlite3.c to pysqlite
$ cp sqlite-amalgamation-3080403/sqlite3.c pysqlite/sqlite3.c
## build_static (a secret cheat code)