Skip to content

Instantly share code, notes, and snippets.

@vvvvv
vvvvv / change-codec.md
Created March 1, 2025 19:14 — forked from dvf/change-codec.md
Enable High Quality mode on your headphones (Updated for macOS Catalina)

If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.

Find out what codec you're using

  1. Play a song on your headphones
  2. Option (⌥) click the Bluetooth button at the top of your screen Inspect the Bluetooth Coded
  3. If you're using AAC or aptX, you can stop here—those are the highest quality codecs.

Change your codec to AAC or aptX

@vvvvv
vvvvv / copy_last_command
Created March 3, 2024 08:04
copy last command to clipboard unless it's a `cd`
#!/usr/bin/env zsh
# Copy the last command executed to the clipboard.
#
# Name this script copy_last_command and add it to your fpath.
# Add the following in your .zshrc to bind this script to Ctrl+Z.
#
# zle -N copy_last_command
# bindkey -M emacs '^Z' copy_last_command
# bindkey -M vicmd '^Z' copy_last_command
@vvvvv
vvvvv / fzf_super_cd
Created March 3, 2024 08:03
fzf - cd into any dir from anywhere
#!/usr/bin/env zsh
# Use fzf to cd into any directory in your home directory.
#
# Name this script fzf_super_cd and add it to your fpath.
# Add the following to your .zshrc to bind it to Ctrl+E.
#
# zle -N fzf_super_cd
# bindkey -M emacs '^E' fzf_super_cd
# bindkey -M vicmd '^E' fzf_super_cd
@vvvvv
vvvvv / karabiner.json
Created August 24, 2022 14:46
karabiner-elements config for cherry g80-3000
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false,
"unsafe_ui": false
},
"profiles": [
{
"complex_modifications": {