Skip to content

python scripts collection to solve different system tasks.

Notifications You must be signed in to change notification settings

hdvpdrm/toolbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toolbox

This repository WAS python scripts collection to solve different system tasks.
Now to see what it is, you need to look python toolbox --help

usage: toolbox [-h] [-l] [-i INSPECT] [-e [EXECUTE ...]]

script to manage/invoke different system script of this package

options:
  -h, --help            show this help message and exit
  -l, --list            list all available scripts
  -i INSPECT, --inspect INSPECT
                        read detailed information about provided script
  -e [EXECUTE ...], --execute [EXECUTE ...]
                        execute existing script

Files

Make it Flat

Destroy directory tree and move all files to top directory.

Sort directory

This script is dedicated to sort directory by chosen extensions.
Example: sortdir audio=.flac,.wav,.mp3 arcs=.zip,.rar docs=.docx, .docx,.pdf

Also it has optional argument -wd. It can be places anywhere.
So it forces script to walk through whole directory tree, not only current working directory.

So this utility takes different number of arguments, where left is name of directory and right values
are extension, that will be moved into mentioned directories. Directories are created from current working directory.

FRD(find and rename duplicates)

Purpose of this script is obvious, but it was written to avoid problems, that may occur when you use directory sorting
script, because there may be files with the same names, but placed in different directories, so some files will not be moved.
To avoid this problem simply use this tiny script.

iet(ignore emacs tilde)

Very simple script to avoid echo blabla.c~ >> .gitignore.

chc_(ChangeCase)

Script change case of provided files to lower/upper.

SQL

GTCN

Script retrieves names of each column of specified table from sqlite3 table.
Usage example: python gtcn.py places.sqlite table1 [table2 ... tableN]

Browser

Foxhist

This script shows visiting frequency of each page from history.
Basic usage:python foxhist.py root
To define minimal visiting counter pass cap parameter:
Example:python foxhist.py root cap=n
Also you can specify location of database file:
Example:python foxhist.py root db=place

Also you can compute frequence char-by-char, omitting root argument. It means, if some url is different from
another one in terms of strings, then they are different urls. It doesn't matter they have the same hostname.

About

python scripts collection to solve different system tasks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%