new tmux stuff

This commit is contained in:
2018-04-07 20:08:56 +04:00
parent f02a689f27
commit e615a15cb9
3 changed files with 1414 additions and 3 deletions

View File

@@ -89,4 +89,36 @@ function strip-tags() {
find . -type f -name '*.mp3' \
| tr '\n' '\0' \
| xargs -0 -n1 mid3v2 --delete-frames=TXXX,USLT,TIPL,UFID,APIC,TBPM,TCMP,TDOR,TDRC,TLAN,TMED,TPOS,TPUB,TRCK,TCON
}
function dedi-beet() {
ssh dedi -- sudo -u torrent-user beet $@
}
function beet-comments() {
dedi-beet modify "comments='$2'" "albumartist:'$1'"
}
function rsync2() {
#rsync -rzPh -u --no-W
rsync \
--info=PROGRESS2 \
--progress \
--recursive \
--compress \
--human-readable \
--update \
--inplace \
--times \
--no-whole-file \
--itemize-changes \
--stats \
--fuzzy \
--verbose \
$@
}
function sync-music() {
rsync2 --delete dedi:/home/torrent-user/music-library/ /Users/abra/music/library/
}