This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
OlderNewer