I always try to use the latest version of Python 3. Haven't tested any of the scripts with Python 2.
- ssh-known-hosts
- mp3-idv3-tags
- generate-iconset
- oxps-to-pdf
- create-folders-for-files
- tinyurl
- folders-creation-datetimes
- get-possible-quiz-results
SSH config known hosts analysis.
Mass ID3v2 tags editing.
python mp3-idv3-tags.py /path/to/folder/with/mp3files/
Generate .icns
file for Mac OS application from .png
picture.
python generate-iconset.py /path/to/original/icon.png
Result (icon.icns
) will be saved to /path/to/original/
.
More information in the following article.
Convert OXPS files into PDF. Requires ghostscript
/gxps
to be installed.
python oxps-to-pdf.py /path/to/folder/with/oxps/files
I needed that to reorganize my Octopress blog posts to a new folder structure for Hugo.
Original structure:
.
├── first-post.md
├── ios-player-buttons-areas.md
├── gta-iv-final-mission-bug.md
├── sidebar-in-octopress.md
├── no-more-overlicensed.md
...
New structure:
.
├── first-post
│ └── index.md
├── ios-player-buttons-areas
│ └── index.md
├── gta-iv-final-mission-bug
│ └── index.md
├── sidebar-in-octopress
│ └── index.md
├── no-more-overlicensed
...
It takes only one argument which is the path to folder with the files you want to reorganize:
python create-folders-for-files.py ~/Desktop/posts/
A TinyURL API caller:
python tinyurl.py http://example.org
Part of my Alfred workflow.
There is the following folders structure:
/tmp/revisions/
├── 37829
│ └── Tools
├── 37976
│ └── Tools
└── 37993
└── Tools
Nov 24 18:30 37829/Tools
Nov 24 18:37 37976/Tools
Nov 24 18:31 37993/Tools
Need to get UTC datetimes of Tools
folders and form a list of SQL queries for inserting like this:
insert into revisions(dt_published,release_id,revision,content_id) values('2019-11-24 17:31:07',1,'37993',3);
insert into revisions(dt_published,release_id,revision,content_id) values('2019-11-24 17:30:21',1,'37829',3);
insert into revisions(dt_published,release_id,revision,content_id) values('2019-11-24 17:37:17',1,'37976',3);
Run:
python folders-creation-datetimes.py /tmp/revisions/
There is some online test and you want to get all the possible results. Having a results URL like http://mindmix.ru/result?t=23147&1=3&2=3&3=2&4=3&5=4&6=2&7=2&8=2&9=3&10=4
, you can send a 1000 requests with random values.