Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark markfaine

  • Huntsville, AL
View GitHub Profile
@markfaine
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
#!/bin/bash
#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
markfaine / cloudSettings
Last active February 4, 2022 16:54
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2022-02-04T16:54:02.855Z","extensionVersion":"v3.4.3"}
@markfaine
markfaine / python.sh
Last active March 7, 2019 22:28
Installs pyenv, virtualenvwrapper, pyenv-virtualenvwrapper, pyenv-default-packages, and installs python3 with pyenv
View python.sh
#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(){