Skip to content

Instantly share code, notes, and snippets.

View markfaine's full-sized avatar

Mark markfaine

  • Huntsville, AL
View GitHub Profile
@markfaine
markfaine / ansible.cfg
Last active July 22, 2024 15:22
Setup a new computer
[defaults]
action_warnings=False
ansible_managed = This file is managed by Ansible, all changes will be lost
inventory = ~/inventory.yml
log_path = ~/ansible.log
remote_user = root
nocows = True
retry_files_enabled = False
timeout = 60
vault_identity_list="default@~/.vault"
@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.
#!/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
{"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
#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(){