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
;; ----------------------------------------------------------------------------- | |
;; | |
;; [ FILE ] Emacs customization file | |
;; [ NAME ] .emacs | |
;; [ PATH ] ~/.emacs | |
;; [ AUTH ] Benjamin Skinner @btskinner | |
;; [ INIT ] 2 August 2017 | |
;; [ REVN ] 22 May 2021 | |
;; | |
;; ----------------------------------------------------------------------------- |
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 | |
TMPDIR=$(mktemp -d -t ocr-XXXXXXXXXX) | |
trap "rm -rf $TMPDIR" EXIT | |
cd "$TMPDIR" | |
flameshot gui -r > img.png | |
tesseract img.png text | |
cat text.txt | xsel --clipboard --input |
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 python | |
""" | |
An 8-bit avatar generator. | |
""" | |
from __future__ import division | |
import argparse | |
import hashlib |