towelie

joined 3 weeks ago
 

cross-posted from: https://lemm.ee/post/58188018

Hey everyone, I thought I'd post a test of a Firefox browser extension I've been working on that streamlines crossposting Reddit posts over to Lemmy communities.

The extension works by injecting a new 'Share to Lemmy' button under each Reddit post in your web browser. Clicking on the new button opens a pop-up menu that auto-completes the relevant fields for your Lemmy post (post title, text body, external URL, thumbnail image). The menu provides a field for you to search Lemmy communities, and relevant results are provided as you type.

The extension options menu provides a means of logging in and out of your Lemmy account in order to make posts. Click on the extension in the browser toolbar to access options and sign in to Lemmy.

Firefox Extension: https://addons.mozilla.org/en-US/firefox/addon/lemmylinks/

Some known issues I plan on working out soon:

  • No support for mobile browsers yet.
  • Instance selection isn't correctly filtering community search results. As a result it's a tad difficult to determine if the 'politics' community you're posting to is for lemmy.world, lemmy.ml, etc.
  • Sometimes image URLs for images hosted on Reddit aren't correctly identified for upload to Lemmy, and they have to be manually input.
[–] towelie@lemm.ee 3 points 1 week ago* (last edited 1 week ago) (3 children)

Michigan, a swing state, is in the crosshairs as well. They already have frequent major outages in the Detroit metropolitan. I don't think this will help.

[–] towelie@lemm.ee 2 points 1 week ago* (last edited 1 week ago) (1 children)

Tor. Anything short is freely giving your data away. If you're looking for something that isn't based on Gecko or Chromium there is the DuckDuckGo browser, which is WebKit. I can't attest to how good their privacy policy is though as I have no idea.

[–] towelie@lemm.ee 2 points 1 week ago

I used a Jelly pro for two years as a daily driver. Smaller than a credit card

[–] towelie@lemm.ee 26 points 1 week ago* (last edited 1 week ago)

With good reason too. None of them have faced any consequences yet, and supporters who did are pardoned

[–] towelie@lemm.ee 1 points 1 week ago* (last edited 1 week ago)

Tor/Mullvad are the only acceptable options if you genuinely want the best for your privacy. Mullvad browser is a bit less of a hassle than Tor but not by much. If adamant about staying away from Gecko (Firefox) and Chromium browsers then WebKit forked browsers are sort of the last options.

At this point I'm beginning to look at going online as something that is inherently dangerous (for lack of a better word) and that needs to be done with care. There is no meaningful way to stay private anymore, and by connecting and interacting you are always painting a target on your back with long-lasting consequences that we can't imagine yet. It's not looking great right now, my dudes.

[–] towelie@lemm.ee 3 points 1 week ago* (last edited 1 week ago) (1 children)

The LibreWolf Debian repository was down all of last week. I peeked over at their forum and it looks like the project is really struggling to maintain the project since a key member of the team left. Its struggles to keep with with security updates is why its no longer being recommended by Privacy Guides. I'm trying out Mullvad browser right now to see how it fairs

[–] towelie@lemm.ee 3 points 2 weeks ago* (last edited 2 weeks ago)
if revenue.isTaxed():
    exploit.commitFraud()
else:
    me.callDaddy(moneyPlz)
[–] towelie@lemm.ee 12 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

It's not stopping the far-right, don't let it stop you!

https://runforsomething.net/ (American-centric site, but I think the resources and advice within are still useful)

[–] towelie@lemm.ee 4 points 2 weeks ago (1 children)

Surely it's less work to maintain security patches for a few prior versions of windows than it is to indefinitely maintain backwards compatibility

[–] towelie@lemm.ee 6 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

The full Microsoft XP source code was leaked and is available for anyone on GitHub; not the same, I know, but it's atleast NT based. I've just always wondered why a community never formed to fork it

[–] towelie@lemm.ee 13 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

His team over at Last Week Tonight pull lots of funny stunts like this and have made quite a few hilarious websites. I wouldn't be surprised if this one is featured on the next episode!

Edit: Hey look, it was! https://www.youtube.com/embed/nf7XHR3EVHo

[–] towelie@lemm.ee 0 points 2 weeks ago* (last edited 2 weeks ago) (4 children)

In like the 1940s Elon Musk's grandfather was a chiropractor in Regina, Saskatchewan and was arrested by the RCMP for being a central figure in an organization that was trying to overthrow the government and install a technocracy. I'm not kidding.

After that is when he fucked off to South Africa to partake in the Apartheid.

 

The title's a bit disingenuous, I know: this didn't come out of nowhere. White supremacism is as American as Manifest Destiny and has been heavily intertwined with Nazism from its inception. That overlap with the Republican party, and their gradual slip into the extreme far-right, is evident.

But Seig Heils? Even the most dense among them must know that blatant Nazism hurts their legitimacy in the eyes of the public, even among MAGATs (as is evident right now if you peek at their echo chamber on Reddit). Surely they would have a much easier time pushing their rhetoric and establishing their agenda by keeping a purposeful distance from that sort of indefensible imagery and symbolism. How do they expect to keep cohesion in the military when you imply to the soldiers that they are Nazis now, seig heils and all.

Why Nazis?

Any theories as to where this is coming from? Follow the ketamine-fueled leader? A directive for operative Krasnov, from Putin himself, to implode the country? True Nazi beliefs among the Heritage Foundation, Proud Boys, etc? I just don't understand how they thought this would fly. I don't understand anything anymore lol.

 

I hear this is a rite of passage. I made it 4 weeks before I rekt all my shit (it was nvidia related). Where do I claim my sticker?

In all seriousness, now that I understand better these commands that I've been haphazardly throwing around, Id like to do a clean install. God knows what else Ive done to it. Can i just reinstall to my root partition and have my home partition work as expected?

 

I mean I feel stupid typing it now, but I've been using Windows since I was 5 years old, and Linux for about 30 days. It was not apparent to me that many of my folders were actually shortcuts to stuff in my user directory, and now that I know to look out for them the location of my applications make sooo much more sense.

52
submitted 2 weeks ago* (last edited 2 weeks ago) by towelie@lemm.ee to c/privacy@lemmy.ml
12
submitted 3 weeks ago* (last edited 2 weeks ago) by towelie@lemm.ee to c/linux@lemmy.ml
 

Hi all. Today I was messing around with making custom icons in Debian 12 and I was having a heck of a time. I finally figured it out and wanted to share my solution. Below is a .sh script that will automate creating and replacing existing icons.

How it works

The script takes a path to an .svg file as an input argument. It then searches the /usr/share/icons/hicolor folder's subdirectories for .pngs of a matching name, notes their resolutions, and utilizes InkScape to convert the .svg to .pngs and replace the icons.

To utilize, save the script below as an .sh file and provide it an input .svg as follows:

sudo ./icons.sh /home/USERNAME/icon.svg

(note: your input .svg file must match the name of the existing icon you are trying to replace. Check the folder path below to determine the correct name)

Script

#!/bin/bash

# Define the base directory where icons are located
BASE_DIR="/usr/share/icons/hicolor"

# Ensure the script is run as root to modify files in /usr/share/icons/hicolor
if [ "$(id -u)" -ne 0 ]; then
    echo "This script must be run with root privileges to access the icons folder."
    exit 1
fi

# Check if Inkscape is installed
if ! command -v inkscape &> /dev/null; then
    echo "Inkscape is not installed. Please install it and try again. (sudo apt install inkscape)"
    exit 1
fi

# Input SVG file filepath
INPUT_SVG="$1"
if [ -z "$INPUT_SVG" ]; then
    echo "Usage: $0 /path/to/input.svg"
    exit 1
fi

# Validate that the input SVG file exists
if [ ! -f "$INPUT_SVG" ]; then
    echo "Input SVG file does not exist."
    exit 1
fi

# Loop through all resolution folders (resolutions like 16x16, 32x32, etc.) in the /usr/share/icons/hicolor folder
for resolution_dir in "$BASE_DIR"/*x*; do
    # Check if the resolution folder contains an 'apps' subfolder
    if [ -d "$resolution_dir/apps" ]; then
        echo "Found apps folder in $resolution_dir"

        # Extract the resolution size (e.g., 16x16)
        resolution=$(basename "$resolution_dir")

        # Get the name of the input SVG file (without the .svg extension)
        base_name=$(basename "$INPUT_SVG" .svg)

        # Define the target PNG file path in the current resolution folder
        target_png="$resolution_dir/apps/$base_name.png"

        # Check if the resolution folder already contains a PNG file to replace
        if [ -f "$target_png" ]; then
            echo "Found existing $target_png. Replacing it."

            # Use Inkscape to convert the SVG to PNG at the correct resolution
            inkscape "$INPUT_SVG" --export-type=png --export-filename="$target_png" --export-width="${resolution%x*}" --export-height="${resolution#*x}"

            # Confirm creation
            if [ -f "$target_png" ]; then
                echo "Successfully created $target_png"
            else
                echo "Failed to create $target_png"
            fi
        else
            echo "No existing $target_png found. Skipping this resolution."
        fi
    else
        echo "No 'apps' folder found in $resolution_dir. Skipping."
    fi
done

echo "Icon update process complete!"
view more: next ›