Skip to content

Instantly share code, notes, and snippets.


Mark markfaine

  • Huntsville, AL
View GitHub Profile
markfaine / Calibre Fix Save To Disk File Names
Created January 3, 2021 21:26
Calibre on Linux doesn't write out the file names properly because they are paranoid that you might try to move it to an operating system that doesn't support those characters.
View Calibre Fix Save To Disk File Names
#shellcheck shell=bash
# Requires unzip and xmlstarlet
# Assumes that you are extracting metadata as well, though you could extract
# the opf from the epub at run time but I don't know how to do this for other
# formats
# I also only get the first author because I didn't want to deal with adding
markfaine / cloudSettings
Last active February 4, 2022 16:54
Visual Studio Code Settings Sync Gist
View cloudSettings
markfaine /
Last active March 7, 2019 22:28
Installs pyenv, virtualenvwrapper, pyenv-virtualenvwrapper, pyenv-default-packages, and installs python3 with pyenv
#shellcheck shell=bash source=/dev/null
# This script is sourced in order to setup python3 with pyenv/virtualenvwrapper with the
# pyenv-virtualenvwrapper plugin. The pyenv-default-packages plugin is also installed
# to install ansible and dependencies. This is for a service account to be used by admins
# who aren't experienced with python ecosystem it must also not modify or use the
# system python environment.
# function: _install_os_deps: installs operating system package dependencies
function _install_os_deps(){