This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# | |
# Simple Bloom filter implementation in Python 3 | |
# Copyright 2017 Hector Martin "marcan" <[email protected]> | |
# 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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |