This will allow you to compare two directories while ignoring file extensions. A good use case is when you have one directory of AIFF audio files and another directory of those same audio files which were converted to another audio format, such as FLAC. This will allow you to indentify if any are missing.
This file contains hidden or 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 | |
# original script at https://github.com/timsutton/osx-vm-templates/blob/master/scripts/xcode-cli-tools.sh | |
xcode-select -p &>/dev/null | |
if [[ $? == 0 ]]; then | |
exit | |
fi | |
# Get and install Xcode CLI tools |
This file contains hidden or 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 | |
rm -fr ~/Library/Caches/KSCrashReports/rekordbox | |
rm -fr ~/Library/Caches/com.pioneerdj.rekordboxdj | |
rm -fr ~/Library/Caches/com.pioneer.Upmgr_rekordbox | |
rm -fr ~/Library/Caches/rekordbox | |
rm -fr "~/Library/Caches/Juce/juceAppLock_Upmgr rekordbox" | |
rm -fr ~/Library/Pioneer/rekordbox | |
rm -fr ~/Library/Logs/Pioneer/rekordbox6/SoundCloudHttp.log | |
rm -fr ~/Library/Preferences/com.pioneerdj.rekordboxdj.plist |
This file contains hidden or 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
brew install dockutil | |
dockutil --remove Safari | |
dockutil --remove Mail | |
dockutil --remove FaceTime | |
dockutil --remove Messages | |
dockutil --remove Maps | |
dockutil --remove Photos | |
dockutil --remove Contacts | |
dockutil --remove Calendar |
The following command will convert WEBM to FLAC at 16 bit and 48000 hertz.
ffmpeg -i in.webm -af aresample=resampler=soxr:out_sample_fmt=s16:out_sample_rate=48000 out.flac
The following command will extract audio from WEBM and copy it to OGG container without transcoding.
ffmpeg -i in.webm -vn -c:a copy out.ogg