Skip to content

Instantly share code, notes, and snippets.

View telepath's full-sized avatar

Benjamin Richter telepath

  • Fututra Allmende
View GitHub Profile
@telepath
telepath / bloom.py
Last active February 15, 2019 21:07 — forked from marcan/bloom.py
Create Bloom Filter for https://haveibeenpwned.com/Passwords SHA-1 lists and check KeePassXC passwords against filter
#!/usr/bin/python3
#
# Simple Bloom filter implementation in Python 3
# Copyright 2017 Hector Martin "marcan" <marcan@marcan.st>
# Licensed under the terms of the MIT license
#
# Written to be used with the Have I been pwned? password list:
# https://haveibeenpwned.com/passwords
#
# Download the pre-computed filter here (968MB, k=11, false positive p=0.0005):
[user@sys-usb ~]$ evtest
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
Select the device event number [0-0]: ^C
[user@sys-usb ~]$ sudo evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Power Button
/dev/input/event1: Sleep Button
@telepath
telepath / install-terraform-packer-os-x.sh
Last active July 25, 2017 15:40 — forked from Adron/install-terraform-packer-os-x.sh
Install Terraform & Packer on Linux
#!/usr/bin/env bash
# from https://gist.github.com/Adron/90863e51c8c5c0ad2049890bcd8abbfb
# Script prerequisite > install jq > https://stedolan.github.io
DIR=~/bin
# Prerequisites
if [ "$(uname)" == "Darwin" ]; then
brew install jq
# For Linux