Skip to content

Instantly share code, notes, and snippets.

@JoeArauzo
JoeArauzo / useful-ffmpeg-commands.adoc
Last active January 19, 2023 23:52
Useful commands when using FFMPEG

Useful FFMPEG Commands

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
@JoeArauzo
JoeArauzo / clean-macos-dock.sh
Last active January 19, 2021 16:42
Clean macOS Dock
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
@JoeArauzo
JoeArauzo / diagrams-best-practice.adoc
Last active January 19, 2021 16:42
Best practice for diagram size.

Best Practices for Diagram Assets

@JoeArauzo
JoeArauzo / my-tmux-cheatsheet.adoc
Last active October 10, 2022 13:52
A useful tmux cheatsheet

My tmux keyboard shortcuts

@JoeArauzo
JoeArauzo / remove-rekordbox6-mac.sh
Created July 24, 2020 00:42
Removes rekordbox6 misc. files
#!/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
@JoeArauzo
JoeArauzo / useful-shell-cmds.adoc
Last active June 2, 2020 01:19
Useful shell commands

Useful Shell Commands

1. Compare files in two directories

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.

@JoeArauzo
JoeArauzo / xcode-cli-tools-unattended.sh
Created May 21, 2020 02:51
Unattended installation of xcode cli tools
#!/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