mac : lame Install Hint - merge audio files
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null brew install lame
mac bash : tts to file from .txt reading by line with gap duration Hint
#!/bin/sh #ttsTXT.sh TNM01-01 155 NAME=$1 RATE=$2 [ "$RATE" = "" ] && RATE=155 cmd="say -v Yuna -r $RATE -o $NAME.aiff -f $NAME.txt" echo $cmd #eval $cmd cmd="lame -m s $NAME.aiff $NAME.mp3" echo $cmd #eval $cmd MF=$2; N=0; FS=""; sed -e $'s/[.] */\\\n/g' $NAME.txt > ${NAME}_tts.txt while read line; […]
ffmpeg : merge audio files m4a Hint
#!/bin/sh #ffmpegAudioMerge.sh "*.m4a" P=$1; N=0; FS=""; for f in $P; do N=$((N+1)) FS="$FS -i \"$f\"" echo $f done cmd="ffmpeg \ $FS \ -filter_complex 'concat=n=$N:v=0:a=1[a]' -map '[a]' \ all.m4a" echo $cmd eval $cmd
mac os x : mov to mp4, ffmpeg -i
$ brew install ffmpeg $ ffmpeg -i /path/file.mov /path/file.mp4
mac mdworker cpu cost disabled Hint
$ sudo mdutil -a -i off $ sudo mdutil -a -i on
Mac OS : cron Hint!
$ crontab -l $ crontab -e $ ps aux | grep cron
Mac OS X : Copy & Paste Clipboard Error Reset Hint
Kill pboard process
mac os x : brew cask install diffmerge Hint
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null $ brew cask install diffmerge $ /usr/local/bin/diffmerge
mac : allow download app Hint : spctl --master-disable
spctl --master-disable