Skip to content

Instantly share code, notes, and snippets.

@shirish87
shirish87 / audiobook-split-parts.sh
Last active December 15, 2022 14:47 — forked from vi/split_by_silence.sh
Using FFmpeg to split mp3 audiobook file into mp3 parts based on audio volume level
#!/bin/bash
IN="$1"
MIN_DUR_MINS="${2:-30}"
MIN_PART_DURATION_SECS=$(($MIN_DUR_MINS * 60))
IN_PATH=`realpath "$1"`
DEFAULT_OUTDIR="$(dirname "$IN_PATH")/parts"
OUTDIR="${3:-$DEFAULT_OUTDIR}"
OUTFILE_PATTERN="${OUTDIR}/part-%03d.mp3"
@shirish87
shirish87 / JSONView Dark Theme.css
Created June 20, 2017 17:52 — forked from timnew/JSONView Dark Theme.css
This is a dark theme for JSONView chrome extension
body {
white-space: pre;
font-family: monaco, Consolas, Menlo, monospace;
color: white;
background: #282a36;
font-size: 12px;
line-height: 1.5m;
}
.property {
@shirish87
shirish87 / upgrade-postgres-9.3-to-9.5.md
Created September 21, 2016 01:36 — forked from johanndt/upgrade-postgres-9.3-to-9.5.md
Upgrading PostgreSQL from 9.3 to 9.5 on Ubuntu

TL;DR

Install Postgres 9.5, and then:

sudo pg_dropcluster 9.5 main --stop
sudo pg_upgradecluster 9.3 main
sudo pg_dropcluster 9.3 main