Skip to content

Instantly share code, notes, and snippets.

View mikemhenry's full-sized avatar
🌵

Mike Henry mikemhenry

🌵
View GitHub Profile
@mikemhenry
mikemhenry / dvplexfix.sh
Last active February 6, 2024 03:51 — forked from BluSyn/dvplexfix.sh
Converts Dolby Vision Profile 5 encoded video files into format acceptable to Plex
#!/usr/bin/env bash
origfile="$(realpath "${1}")"
basefile="$(basename "${origfile}")"
basedir="$(dirname "${origfile}")"
ext="${basefile##*.}"
newfile="$(basename -s "${ext}" "${origfile}")nodv.${ext}"
echo "Transcoding File ${basefile} in ${basedir}..."
@mikemhenry
mikemhenry / install-xcode-cli-tools.sh
Last active May 1, 2021 04:17 — forked from mokagio/install-xcode-cli-tools.sh
Install Xcode CLI Tools without GUI
#!/bin/bash
# See http://apple.stackexchange.com/questions/107307/how-can-i-install-the-command-line-tools-completely-from-the-command-line
echo "Checking Xcode CLI tools"
# Only run if the tools are not installed yet
# To check that try to print the SDK path
xcode-select -p &> /dev/null
if [ $? -ne 0 ]; then
echo "Xcode CLI tools not found. Installing them..."