Skip to content
pykerasPublic

About

No description, website, or topics provided.

Resources

Stars

23 stars

Watchers

1 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some custom daily tools

Random Password Generator

  • genpass: an easy-to-use free random password generator, never use forget password again.

  • Give it a name (e.g. server name), It will generate a new highly secure password and will save it on your system as an encrypted file so you will never forget your password again.

  • On first use it will generate a key file for you which you must keep safe (please don't save it alongside your passgen.enc), this key will be used for retrieving data from the encrypted file or saving a new password in it.

    • CAUTION: As an example, you can save genpass or the encrypted file on your phone/tablet/pc/USB and keep the 1-time generated key file on your laptop. Keep both safe or you will lose all your passwords

USAGE:

  • first time use:

    $ python3 genpass.py --init
    ----OR----
    # to specify encryption key path
    $ python3 genpass --init -i ./Documents/passgen.enc -k ./Desktop/secret.key
    ----OR----
    # initialize and generate password all together
    $ python3 genpass --init -n MyEmail

    The above command will generate an encrypted file in Documents with the name of passgen and an encryption key in Desktop named secret.key.

    -f (optional): Path and filename for encrypted file (default current directory/folder).

    -i (optional): Path and filename to save key (default current directory/folder).

    -n: _A name for a new password for easier retrieval or remember (names cannot have space use _)_

  • after that:

    # generate new password
    $ python3 genpass.py -n myEmail
    ---- OR ----
    $ python3 genpass.py -k ./secret.key -i ./Document/passgen.enc -n "myEmail" -l 20 -e
    ---- OR ----
    # List all names
    $ python3 genpass.py -a
    ---- OR ----
    # find for specific name
    $ python3 genpass.py -k ./secret.key -f "myEmail"
    ---- OR ----
    # generate password without saving
    $ python3 genpass.py -l 20

    -n: _A name for a new password for easier retrieval or remember (names cannot have space use _)_

    -k (optional): Path and filename to key, auto-created in the first use (default current directory/folder).

    -i (optional): Path and filename for encrypted file (default current directory/folder)
    -l (optional): length of a new random password $12$ or higher (default: $12$)

    -f (optional): Find the password for the provided name

    -e (optional): _if provided password may include +=-_,.|\/{}()[]<> characters._

    -a (optional): list all names used for saved passwords.

Test environment: OS Linux, Python 3.8.10

Recommendation: _make an alias in ~/.bashrc for easier use.

MusicGuitar Bestof collection crawler (Async Python)

  • musiccrawler: an easy-to-use music crawler written in Python with asyncio

Can be used as a tutorial for asyncio, aiohttp, aiofiles

  • after crawling the project open musiccrawler directory and update urls.txt with the URL to the best collection of your favorite singer split by a new line.

  • only support URLs from musicguitars.ir

  • to run the script you can use

    $ python main.py 128

    $128$ is the music file quality (by default set to $320$)

Test environment: OS Linux, Python 3.10.12

Motils - Greeting for terminal

Todo Manager

  • todo: a simple CLI todo manager with priority-based task visibility

  • Manage your daily tasks with style. Each task has a priority level that determines its visibility and display color.

  • Tasks are stored in CSV format in your config directory (~/.config/motils/todo) making them easy to backup and sync.

USAGE:

  • add a new task:
$ todo add Write documentation
  ----OR----
# with priority
$ todo add -p high Fix critical bug
  ----OR----
# with trailing arguments
$ todo add -p medium Fix -- this bug now
  • list tasks:
# list pending tasks
$ todo list
  ----OR----
# list completed tasks
$ todo list -d
  ----OR----
$ todo list --done
  • mark task as done:
$ todo done 1
  • remove a task:
$ todo rm 2
  • clear tasks:
# clear completed tasks
$ todo clear
  ----OR----
# clear everything
$ todo clear -a

-p, --priority: Priority level: block (100%), high (90%), medium (70%), low (30%). Default: low

-d, --done: Show completed tasks instead of pending ones

-a, --all: Clear all tasks (both pending and completed)

Priority Icons: You must use NerdFont variant for this one

Test environment: OS Linux, Rust 1.90+

Idea Manager

  • idea: a simple CLI idea manager to capture and organize your thoughts as fast as possible

  • Capture ideas with titles and detailed descriptions. Never lose a brilliant thought again.

  • Ideas are stored in CSV format in your config directory (~/.config/motils/ideas) with timestamps.

USAGE:

  • list all ideas:
$ idea -l
  ----OR----
$ idea --list
  • add a new idea:
$ idea add
# Interactive prompts:
# Title: My brilliant idea
# Description: This is the detailed description...
  • view idea details:
$ idea detail 1
  • remove an idea:
$ idea rm 2

All ideas are displayed in magenta color with the 󰍩 icon for easy identification.

Test environment: OS Linux, Rust 1.90+

System Dashboard

  • greet: a cli system information dashboard that displays your system stats at a glance

  • Get a quick overview of your system: hostname, uptime, RAM usage, CPU usage, disk space, network interfaces, pending todos and ideas.

  • Runs asynchronously for fast performance - all system info is gathered in parallel.

USAGE:

$ greet

Displays:

  • System Info:

    • Hostname
    • Uptime
    • RAM usage
    • CPU usage (color-coded: green < 50%, yellow < 80%, red >= 80%)
    • Disk usage
  • Network:

    • Interface names with IP addresses
  • Todos:

    • Quick view of pending tasks from todo manager
  • Ideas:

    • Quick view of top idea from idea manager

Test environment: OS Linux, Rust 1.90+

Recommendation: Add to your ~/.bashrc or ~/.zshrc to run on terminal startup:

# Add this line to your shell config
greet

Installation

# Clone the repository
$ git clone https://github.com/pykeras/BashUtils
$ cd motils

# Build and install
$ cargo install --path .

# Or build in release mode
$ cargo build --release
# Binaries will be in ./target/release/

This will install three binaries:

  • greet - System dashboard (default)
  • todo - Todo manager
  • idea - Idea manager

About

No description, website, or topics provided.

Resources

Stars

23 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages