$ cloc
count lines of code.
Use as:
$ cloc ./
or$ cloc ./*.py
$ convert
convert .gif or .mp4 to many png frames
Use as:
$ convert -coalesce my_animatedfile.gif my_pngfiles.png
$ pdftotext
convert pdf to plain text
Use as:
$ pdftotext myfile.pdf
Use as:
$ find . -type d -empty
Use as:
$ find . -type d -empty -delete
Use as:
$ find . -maxdepth 1 -mindepth 1 -type d -exec sh -c '(echo {} && cd {} && git status -s && echo)' \;
Delete local repo files, resetting git and pulling a clean copy from remote repo (for each of the repos in a directory)
Use as:
$ find . -maxdepth 1 -mindepth 1 -type d -exec sh -c '(echo {} && cd {} && git reset --hard origin/main && git clean -fxd && git pull && echo)' \;
Use as:
$ git filter-branch -f --env-filter " GIT_AUTHOR_NAME='newname' GIT_AUTHOR_EMAIL='new@email' GIT_COMMITTER_NAME='newname' GIT_COMMITTER_EMAIL='new@email' " HEAD
$ git push --force --tags origin 'refs/heads/main'