Skip to content

Collection of my python scripts used to automate stupid/boring stuff, don't expect anything, each script is made in less than 10 mins

Notifications You must be signed in to change notification settings

H1alus/dumbPythonScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dumbPythonScripts

Collection of short stupid scripts made by me to automate boring/stupid stuff, don't expect anything special, I do each script in less than 10 mins (or about 10 mins)

copy_delete.py

multiplatform script (works on Windows, Linux and macOS)

Short script that deletes the copies marked with '(n)'. Where n is the number of copies

EXAMPLE OF A FILE: "IMG-130130.jpg"

EXAMPLE OF A COPY: "IMG-130130 (1).jpg"

The scripts deletes the copy and leaves the original file in the dir.

USAGE:

Put the script in the directory where the copies are found. Execute in the terminal the command:

python3 copy_delete.py

lineCounter.py

multiplatform script (works on Windows, Linux and macOS)

script to count the lines of code in a C project.

The script counts all the lines of code in a C project except for the empty lines, but it doesn't exclude the lines of comments.

USAGE:

Put the script in the root directory of your C project, and run:

python3 lineCounter.py

The script will find all the subdirectories and files and it will do the job on its own.

rm-%.c

multiplatform script (works on Windows, Linux and macOS)

script to switch % chars in a string with the actual char value

I added this here just because it should be considered as a script, this removes the % rappresentation of char and changes them with the normal one, example of string:

example%20EXAMPLE%2F

output result:

example EXAMPLE/

USAGE:

2 ways of usage, give string as argument or string via stdin.

To pass string via argument do:

LINUX, MACOS:

gcc rm-%.c -o rm-% -D ARG

WINDOWS

gcc rm-%.c -o rm-%.exe -D ARG

then run the script as usual for any compiled program.

About

Collection of my python scripts used to automate stupid/boring stuff, don't expect anything, each script is made in less than 10 mins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published