Skip to content

Commit c0877a0

Browse files
author
herokunt
committed
updated folder structure
1 parent fef85de commit c0877a0

15 files changed

+43186
-39
lines changed

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# python-scripts
2-
A collection of several small scripts written in Python
2+
3+
A collection of small scripts written in Python and implemented as command line utility programs.
34

45
#### [Batch Resizer](https://github.com/herokunt/python-scripts/blob/main/batch-resizer.py)
5-
Batch resizer is a small utility script that looks at a directory and processes all images in it in some way. You can resize them, convert them into other formats or bundle them together in a nice compressed archive, ready to be uploaded. Some examples:
6+
Batch resizer is a small utility script that looks at a directory and processes all images in it in some way. You can resize them, convert them into other formats or bundle them together in a nice compressed archive, ready to be uploaded. Some examples:
67

78
```
89
# Resize all images to a specified width and height (aspect ratio preserved)
@@ -23,7 +24,7 @@ $ resizer.py ~/Pictures -o ~/Desktop -r 1200 1200 -f webp -t -d
2324
---
2425
#### [Oh, Node!](https://github.com/herokunt/python-scripts/blob/main/oh_node.py)
2526
Curious about how many files does that node_modules folder has in it? How many lines of code? What kind of files are in there? This small utility script will find out for you exactly that!
26-
27+
2728
```
2829
$ oh_node.py ~/Projects/ -t 10
2930
oh_node.py - Scan Complete
@@ -46,12 +47,16 @@ Total lines of code.......................14504117
4647

4748
---
4849
#### [Password Checker](https://github.com/herokunt/python-scripts/blob/main/password_checker.py)
49-
Check your passwords against the popular "Have I Been Pwned?" website and find out if they've been leaked in any of the increasingly common data breaches. Your passwords provided to the script will remain secured as only a hash is used, as per the Have I Been Pwned API requires. You can provide passwords inline or through a CSV file, ideal if your password manager (such as KeePassXC) supports exporting data in CSV format (don't forget to delete your file afterwards!)
50+
Check your passwords against the popular "Have I Been Pwned?" website and find out if they've been leaked in any of the increasingly common data breaches. Your passwords provided to the script will remain secured as only a hash is used, as per the Have I Been Pwned API requires.
51+
52+
You can provide passwords inline or through a CSV file, ideal if your password manager (such as KeePassXC) supports exporting data in CSV format. For security you can instruct the script to securely delete that file from your hard drive by overwriting the original contents with random bytes before deleting it.
5053

5154
```
52-
$ ./password_checker.py password1 123456 -f ~/Desktop/path_to_file.csv
55+
$ ./password_checker.py password1 123456 -f ~/Desktop/path_to_file.csv --delete --verbose
56+
Found match for "Gmail" 1444 times!
5357
Found match for "pas..." 2427158 times!
5458
Found match for "123..." 24230577 times!
59+
DEBUG:root:Securely deleting file (3 rounds...)
5560
```
5661

5762
---
@@ -67,7 +72,7 @@ $ ls ~/Documents/books/linux
6772
'Linux BASH Programming Cookbook.pdf'
6873
linuxsys.pdf
6974
sed.pdf
70-
75+
7176
$ nama_nama.py ~/Documents/books/linux --title --split --separate _ --dry-run
7277
Ansible_For_Devops.epub
7378
Sed.pdf
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)