Skip to content

Instantly share code, notes, and snippets.

@tjluoma
tjluoma / ExportKindle.js
Last active January 26, 2021 18:27 — forked from jkubecki/ExportKindle.js
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
// https://gist.github.com/jkubecki/d61d3e953ed5c8379075b5ddd8a95f22
// including change recommended by @nexnovati
// https://gist.github.com/jkubecki/d61d3e953ed5c8379075b5ddd8a95f22#gistcomment-3439531
// works as of 2021-01-26 with Google Chrome 88.0.4324.96
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
#!/bin/bash
# Encode a WAV to a finalized podcast MP3 with metadata, in the current directory
# Requires lame
# With Homebrew on Mac OS X: brew install lame
# Usage:
# Call the script with three arguments:
# -t or --title followed by the title of the episode in quotes
# -s or --summary followed by the iTunes Summary for the episode, in quotes
@tjluoma
tjluoma / m2db-notify.sh
Last active August 29, 2015 14:09 — forked from anonymous/m2db-notify.sh
"Move To Dropbox" Notifier. Intended to be used as part of a Service for OS X
FILES="$@"
FILES=`echo "${FILES}" | sed "s#${HOME}/Dropbox/##g"`
COUNT="$#"
if [ "${COUNT}" = "1" ]
then
@tjluoma
tjluoma / crashplanFixup.sh
Last active May 23, 2023 14:59 — forked from thewellington/crashplanFixup.sh
disables de-duplication in CrashPlan, which makes upload speeds much faster. Note: @thewellington did all the hard work here, I just added some to it.
#!/bin/zsh
# Purpose: disable deduplication in CrashPlan
#
# From: Tj Luo.ma
# Mail: luomat at gmail dot com
# Web: http://RhymesWithDiploma.com
# Date: 2014-03-23
#
#
# Forked from: <https://gist.github.com/thewellington/8984012>