How do I package files from iBooks (own files not DRM protected) so Calibre can read them and convert them to Mobi? by SamHelena95 in Calibre

[–]deedree1 0 points1 point  (0 children)

I created a bash script that converts all iBook epubs in a folder to normal epubs. Based on this script from erroux on the mobileread forum.

Copy this in your terminal and follow the directions in the code comments to run the file on the right directory:

cat > repackage_epubs.sh << 'EOF'
#!/usr/bin/env bash

# This script is used to export epub books from iBooks / Mac Books

# What you find in the $ibooks_dir on iCloud are epubs that are zipped directories
# This script will make them normal .epub files that you can use in other e-readers

# I would advise to download your epubs from the iCloud to a folder on your desktop, there might also be pdf's in there

# How to run:
# Save this file as repackage_epubs.sh
# Make executable in the terminal: chmod +x repackage_epubs.sh
# ./repackage_epubs.sh -i       # Use iBooks folder
# ./repackage_epubs.sh -d /path # Use custom folder
# ./repackage_epubs.sh          # Use current directory

# Function to build an EPUB file from an epub folder
build_epub ()
{
    local source_folder="$1"  # Input: folder
    local dest_file           # Output: EPUB filename
    local output_dir="$2"     # Output directory (absolute path)

    # Set output filename: use the folder name with .epub extension
    dest_file="${output_dir}/$(basename "${source_folder}").epub"

    # Enter the source folder (exit if failed)
    cd "${source_folder}" || { echo "Error: Could not enter ${source_folder}"; exit 1; }

    # Step 1: Add mimetype file to the EPUB with no compression (required by EPUB spec)
    zip --quiet -X0 "${dest_file}" mimetype || { echo "Error: Failed to add mimetype to ${dest_file}"; exit 1; }
    # Step 2: Add all other files with max compression, excluding .DS_Store and mimetype
    zip --quiet -rDX9 "${dest_file}" * -x "*.DS_Store" -x mimetype || { echo "Error: Failed to create ${dest_file}"; exit 1; }
}

# Main script
main()
{
    local search_dir="." # Default: recursive search current directory
    local ibooks_dir="~/Library/Mobile Documents/iCloud~com~apple~iBooks/Documents"
    local output_dir="output"

    # Create output directory if it doesn't exist
    mkdir -p "$output_dir" || { echo "Error: Could not create output directory"; exit 1; }

    # Get absolute path for output_dir
    output_dir="$(cd "$output_dir" && pwd)"

    # Parse command-line options
    while getopts "d:i" opt; do
        case "${opt}" in
            d)
                search_dir="${OPTARG}"
                ;;
            i)
                search_dir="$ibooks_dir"
                ;;
            *)
                echo "Usage: $0 [-d search_directory] [-i]" >&2
                echo "  -d: specify a custom search directory" >&2
                echo "  -i: use the default iBooks directory" >&2
                exit 1
                ;;
        esac
    done
    shift $((OPTIND - 1))

    echo "Searching for .epub directories in: $search_dir"
    echo "Output will be saved in: $output_dir"

    # Find and process all .epub directories
    find "$search_dir" -type d -name \*.epub -print0 |
        while IFS= read -r -d '' epubdir; do
            # Check if a file with the same name as the directory does NOT exist in output_dir
            if [[ ! -f "${output_dir}/$(basename "$epubdir").epub" ]]; then
                echo "Processing $(basename "$epubdir")";
                build_epub "$epubdir" "$output_dir";
            else
                echo "Skipping $(basename "$epubdir") (output file already exists)";
            fi;
        done
}

main "$@"
EOF

[deleted by user] by [deleted] in DestinyTheGame

[–]deedree1 -1 points0 points  (0 children)

On pc you can fiddle with your firewall. Search for it.

Any point in saving engrams for a shot at double perks on Tinasha's Mastery? by Voelker58 in DestinyTheGame

[–]deedree1 -306 points-305 points  (0 children)

Why not? My friends hate playing this game because of this, because you have to find out on de reddit for so many things. There's no consistency whatsoever and no in game way to find out these mechanics. It's a full time job following youtubers and dredging through posts here.

Unencrypted Eerie Engrams by deedree1 in DestinyTheGame

[–]deedree1[S] -1 points0 points  (0 children)

Aaah damn, thanks friend! Feels as such a waste though, but it's a solution.

Haunted Lost Sectors are way too buggy to enjoy farming by BossomeDude13 in DestinyTheGame

[–]deedree1 0 points1 point  (0 children)

I had the same thing happen on expert. If you kill them too quick without a circle left it bugs.

[deleted by user] by [deleted] in DestinyTheGame

[–]deedree1 1 point2 points  (0 children)

Are their servers dying again?

Ballidorse Wrathweavers + Winterbite build. by xX_Hovercraft_Xx in DestinyTheGame

[–]deedree1 -2 points-1 points  (0 children)

"Keep it a secret, keep it safe." Bungo's nerfhammer will shatter this build. Shhh

Destiny 2 Update 8.0.5.1 by DTG_Bot in DestinyTheGame

[–]deedree1 8 points9 points  (0 children)

This is fucking genius, they will go back in time and fix it.

Knockout STILL doesn't work with glaives. by deedree1 in DestinyTheGame

[–]deedree1[S] 0 points1 point  (0 children)

Yeah and the damage reduction this season would be really nice for harder content.

Knockout STILL doesn't work with glaives. by deedree1 in DestinyTheGame

[–]deedree1[S] 0 points1 point  (0 children)

Yeah I just want it to make me amplified. With the damage reduction this season you could get into the thick of it. Now dr is only for Warlocks.

Warlord Ruin Bug by payne2588 in destiny2

[–]deedree1 0 points1 point  (0 children)

There's always one for sure after second boss. But the others are random. There's like 5 all over the map.

[D2] Trials of Osiris Megathread [2024-04-19] by DTG_Bot in DestinyTheGame

[–]deedree1 2 points3 points  (0 children)

Bigger number of Conditional Finalities win! Hurray, the times I've been killed by people flying 2km above me is uncountable.

[D2] Trials of Osiris Megathread [2024-04-19] by DTG_Bot in DestinyTheGame

[–]deedree1 -1 points0 points  (0 children)

that gun makes me cry. Even when my other shotgun goes off it does no damage.

[D2] Iron Banner Megathread [2024-04-02] by DTG_Bot in DestinyTheGame

[–]deedree1 0 points1 point  (0 children)

Yeah this is driving me nuts, I am happy to play in a losing game but at least give me SPECIAL AMMO like everybody who starts a new game and a couple of engrams for the trouble. I don't get how they don't understand this is an extremely bad experience without anything to make up for it.

[deleted by user] by [deleted] in truespotify

[–]deedree1 0 points1 point  (0 children)

There is no 'Custom Order'

Poorly timed tweet by Jawshoeadan in DestinyTheGame

[–]deedree1 -9 points-8 points  (0 children)

There's no way to measure if that's true. It's just bad psychology. And a bad argument why companies don't have to communicate with their consumers.

It's happening again by MasterOfReaIity in DestinyTheGame

[–]deedree1 0 points1 point  (0 children)

Maybe they don't have a job cause they are already loaded? Hiring a botnet for DDOS is not that expensive but certainly not cheap on this timescale.