- you, you, and only you
- not professional
- not checked in
- fail early and noisily
- stop wrting shell scripts
- have fun
- 3.6, f-string
- try automating even more
- try new lib/tech (controversy)
- use hard links to backup (only while renaming)
- packages
- sublime_text
- ssh known keys
- fonts
- copy over todo lists, personal data
- configure tmux, zsh (fish for mine)
- configure "nemo" as default file manager
- download and build current python 2 and 3
- -------------install -------------------- docs Ref: https://github.com/larryhastings/pyweek24/blob/master/install.my.sincerest.apologies.on.ubuntu.17.10.py
- make random-named dir
- os.system("unzip " + zipfile)
- flatten_directory(), remove the tree and put all of the files at the root level
- read_all_metadata(), if we have all the metadata we need:
- titlecase and clean up artist / album / title
- rename media files to your fav pattern
- create audio playlist file M3U : "{artist} - {album}.m3u"
- rename directory to "artist - album"
Custom data format: matter= year= month= day= five part story
Don't use: os.system(), this is deprecated, you have to fail early and often, os.system() don't fail early and often, if it fails the remaining Python script still runs :v the command that return anything non-zero should be failed, should stop right immediately.
def run(s):
subprocess.run(s, check=True, shell=True)
shell=True for piping and sudo