Skip to content

jehrhardt/tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tools

Miscellaneous Python tools to automate everyday tasks.

Inspired by this quote from Simon Willison:

"This is why I care so much about the productivity boost I get from LLMs so much: it’s not about getting work done faster, it’s about being able to ship projects that I wouldn’t have been able to justify spending time on at all."

Why Python is the right tool for the job?

  • Python is a nice scripting language that is easy to learn and read.
  • Due to its popularity, LLMs are good at writing Python code.
  • It is also a powerful language with a huge ecosystem of libraries for all kinds of tasks.
  • Lastly, uv has made Python a breeze to work with.

Install

This project uses uv for running scripts.

Clone the repo to ~/.local/tools. Add aliases to your shell (see my dotfiles).

Usage

It is recommended to use an alias for running scripts. This is an example for Fish from my dotfiles.

Available Tools

fingerprint

Manage fingerprint authentication on Arch Linux.

Commands:

  • fingerprint init - Setup PAM configuration for fingerprint authentication (sudo/polkit)
  • fingerprint add - Add a new fingerprint for the current user
  • fingerprint remove - Remove all fingerprints for the current user
    • --pam - Also remove PAM configuration

Requirements:

  • fprintd package must be installed: sudo pacman -S fprintd

Example:

# Initial setup
uv run fingerprint.py init

# Add a fingerprint
uv run fingerprint.py add

# Remove fingerprints (keeping PAM config)
uv run fingerprint.py remove

# Remove fingerprints and PAM config
uv run fingerprint.py remove --pam

Environment Variables

About

Miscellaneous Python tools to automate everyday tasks

Topics

Resources

License

Stars

Watchers

Forks

Languages