Skip to content

Instantly share code, notes, and snippets.

View theg00s3's full-sized avatar
🏳️‍🌈

Nikila J theg00s3

🏳️‍🌈
  • Melbourne, Australia
View GitHub Profile
@theg00s3
theg00s3 / rename.sh
Last active September 17, 2024 02:30
Renames photo files that have the wrong extension
#!/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
@theg00s3
theg00s3 / ccdl.command
Last active June 6, 2021 07:58
Adobe Offline Package Generator v0.1.2 (macOS only)
#!/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
@theg00s3
theg00s3 / facebook saved deleter.js
Created October 6, 2020 05:52
Deletes all facebook saved links and posts
// 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);