Skip to content

Instantly share code, notes, and snippets.

View sterlingcrispin's full-sized avatar
🍃
every sound is a song

Sterling Crispin sterlingcrispin

🍃
every sound is a song
View GitHub Profile
import gab.opencv.*;
import processing.video.*;
import java.awt.*;
import org.opencv.core.Mat;
import org.opencv.objdetect.CascadeClassifier;
import org.opencv.core.MatOfRect;
import org.opencv.core.MatOfInt;
import org.opencv.core.MatOfDouble;
@lokkju
lokkju / find_system_python_dylibs.sh
Last active December 31, 2023 23:08
This script prints the filenames of any libs in your /usr/local/lib that depend on the System Python. It is especially useful if you use a non-system Python, but have previously compiled extensions against the System Python - it will tell you which need to be recompiled.
#!/bin/bash
echo "This script prints the filenames of any dylibs in your /usr/local/ that depend on the System Python"
for f in `find /usr/local/lib`; do
otool -L "$f" 2> /dev/null| grep Python | grep System &> /dev/null
status=$?
if [ $status -eq 0 ]; then
echo "$status: $f"
fi
done