Skip to content

Instantly share code, notes, and snippets.

View luizkowalski's full-sized avatar
:shipit:
bug fixes and performance improvements

Luiz Eduardo Kowalski luizkowalski

:shipit:
bug fixes and performance improvements
View GitHub Profile
kubectl get pods --show-all=true | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
@luizkowalski
luizkowalski / rails_cloc.sh
Last active May 2, 2018 14:34 — forked from nlively/rails_cloc.sh
Count lines of code in a rails project
#!/bin/bash
find . \( -iname '*.rb' -o -iname '*.jb' -o -iname '*.erb' -o -iname '*.rake' \) -not -path "./spec/*" -not -path "./db/*" -exec wc -l {} + | sort -n
@luizkowalski
luizkowalski / change-codec.md
Created March 25, 2025 13:01 — 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