Skip to content

Instantly share code, notes, and snippets.

View jetsonhacks's full-sized avatar

JetsonHacks jetsonhacks

View GitHub Profile
@jetsonhacks
jetsonhacks / check_so_dependencies.sh
Created February 25, 2025 05:51
Utility script: check_so_dependencies.sh
#!/bin/bash
# Check if a library name or path was provided
if [ $# -ne 1 ]; then
echo "Usage: $0 <library.so>"
echo "Example: $0 libopencv_core.so"
echo " $0 /path/to/cv2.cpython-38-aarch64-linux-gnu.so"
exit 1
fi
@jetsonhacks
jetsonhacks / check_so_dependencies.sh
Created February 25, 2025 06:00
Utility script: check_so_dependencies.sh
#!/bin/bash
# Check if a library name or path was provided
if [ $# -ne 1 ]; then
echo "Usage: $0 <library.so>"
echo "Example: $0 libopencv_core.so"
echo " $0 /path/to/cv2.cpython-38-aarch64-linux-gnu.so"
exit 1
fi
@jetsonhacks
jetsonhacks / shorten_prompt.sh
Last active March 5, 2025 07:20
Terminal for Videos
# Use this in a Terminal to remove the name of the SSD you're using; shortens prompt
shorten_path() {
local full_path="$PWD"
if [[ "$full_path" =~ ^/media/"$USER"/[^/]* ]]; then
local prefix="${BASH_REMATCH[0]}"
echo "~${full_path#$prefix}"
else
echo "$full_path"
fi