This file contains 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 | |
# credit to u/nkings10's post on Reddit which was the template for this: https://www.reddit.com/r/photoprism/comments/1ev7zxm/import_errors/ | |
# Directory containing images | |
IMAGE_DIR="/path/to/your/images" | |
# Find all files recursively and process each one | |
find "$IMAGE_DIR" -type f | while read -r file; do |
This file contains 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 | |
CYAN="$(tput bold; tput setaf 6)" | |
RESET="$(tput sgr0)" | |
clear | |
if command -v python3 > /dev/null 2>&1; then | |
if [ $(python3 -c "print('ye')") = "ye" ]; then | |
clear |
This file contains 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
// you may have to change the "_5voj" to whatever appears as the first part of the "<i class="_5voj img sp_DYfg8GcjZtl_2x sx_6cd9ce"></i>" on facebook.com/saved/all | |
//you have to scroll down as far as you want to go down the page | |
var myVar = setInterval(function(){ | |
var items = document.getElementsByClassName("_5voj"); | |
clearInterval(myVar); | |
var items = document.getElementsByClassName("_5voj"); | |
for (var i = 0; i < items.length; i++) | |
items[i].click(); | |
alert("done"); | |
}, 300); |