Skip to content

Instantly share code, notes, and snippets.

View afsal-backer's full-sized avatar

Afsal Backer afsal-backer

View GitHub Profile
@afsal-backer
afsal-backer / gist:42045e227615461ed7ce537f59cf8bc8
Created March 5, 2024 20:07
Remove media from Photos app
#!/bin/sh
# add_video_to_photos.sh
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PARENT_DIR="$(dirname "$SCRIPT_DIR")"
# Set the log file path
LOG_FILE="${PARENT_DIR}/add_video.log"
@afsal-backer
afsal-backer / gist:5fca21b5661d5bdf4e6d1e93311589a8
Last active October 23, 2024 06:33
Add media to Photos app so that my XCUITest can pick it
#!/bin/sh
# add_video_to_photos.sh
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PARENT_DIR="$(dirname "$SCRIPT_DIR")"
# Set the log file path
LOG_FILE="${PARENT_DIR}/add_video.log"