This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# script: watch | |
# author: Mike Smullin <[email protected]> | |
# license: GPLv3 | |
# description: | |
# watches the given path for changes | |
# and executes a given command when changes occur | |
# usage: | |
# watch <path> <cmd...> | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NanumGothic <- CIDFont('NanumGothic', 'KSCms-UHC-H', 'CP949', ' | |
/FontDescriptor | |
<< | |
/Type /FontDescriptor | |
/CapHeight 737 | |
/Ascent 752 | |
/Descent -271 | |
/StemV 58 | |
/FontBBox [-199 -145 1903 880] | |
/ItalicAngle 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#echo "#EXTM3U" | |
#sqlite3 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db "select file from media_parts left outer join media_items on media_items.id = media_parts.media_item_id left outer join play_queue_generators on play_queue_generators.metadata_item_id = media_items.metadata_item_id left outer join metadata_items on metadata_items.id = play_queue_generators.playlist_id where play_queue_generators.playlist_id='9567'" | |
WorkDir="`dirname $0`" | |
PlaylistDir="/mnt/Playlists" | |
TheLastLog="${PlaylistDir}/plexlog.inf" | |
plexdb="/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -f "$1.cue" ]; then | |
echo "Argument '$1' is not a file."; | |
exit 1; | |
fi | |
dirtoremove="${1%/*}" | |
if [[ $(find flacs -type f | wc -l) -gt 0 ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcopy flacs alacs /tecsy | |
ls -recurse -path flacs -include *.flac | %{.\ffmpeg\bin\ffmpeg.exe -i $_.FullName -acodec alac ("alacs"+$_.DirectoryName.Substring(((resolve-path $pwd).providerPath).length+6)+"\"+$_.BaseName+'.m4a')} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#read -r filename < $1 | |
exec < $1 | |
read filename | |
#echo "$filename" | |
while read s e | |
do | |
echo "${s} - ${e}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
lsdvd . |sed -n 's/^Title\:\ \([[:digit:]]*\),\ Length\:\ \([[:digit:]]*\)\:\([[:digit:]]*\)\:.*/\1 \2 \3/p'|awk '$2*60+$3 >= 30 && $2*60+$3 < 50 {print "Title:" $1 " - " $2 " hr " $3 " mins"}' | |
title=($(lsdvd $1 |sed -n 's/^Title\:\ \([[:digit:]]*\),\ Length\:\ \([[:digit:]]*\)\:\([[:digit:]]*\)\:.*/\1 \2 \3/p'|awk '$2*60+$3 >= 30 && $2*60+$3 < 50 {print $1}')) | |
for i in "${title[@]}" | |
do | |
echo "Title: $i" | |
done | |
read -p "Titles listed above may be the appropriate episodes. Press [Enter] to start encoding." |