Skip to content

Instantly share code, notes, and snippets.

@tnaia
tnaia / .emacs
Created May 9, 2022 20:23 — forked from btskinner/.emacs
My .emacs file
;; -----------------------------------------------------------------------------
;;
;; [ FILE ] Emacs customization file
;; [ NAME ] .emacs
;; [ PATH ] ~/.emacs
;; [ AUTH ] Benjamin Skinner @btskinner
;; [ INIT ] 2 August 2017
;; [ REVN ] 22 May 2021
;;
;; -----------------------------------------------------------------------------
@tnaia
tnaia / ocr
Created March 25, 2022 15:17 — forked from QuentinN42/ocr
Automatic ocr with tesseract & flameshot
#!/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
@tnaia
tnaia / retro.py
Created May 9, 2018 20:37 — forked from benwebber/retro.py
An 8-bit avatar generator.
#!/usr/bin/env python
"""
An 8-bit avatar generator.
"""
from __future__ import division
import argparse
import hashlib