JackLSauce

joined 1 year ago
[–] JackLSauce 24 points 1 day ago (1 children)

Get your shit together, Alaska!

[–] JackLSauce 4 points 2 days ago

At my work we have something in place that prevents somebody from sending to more than 50 recipients but we control our own mail servers and know how many people are in the largest department

Basically, things like this exist but aren't necessarily intuitive to set up and defaults would require contextual knowledge

[–] JackLSauce 93 points 1 week ago (7 children)

Weird to use a game that decided to drop its official Linux support for this meme

[–] JackLSauce 21 points 1 week ago (1 children)

Insurance companies seem slightly over-represented here

[–] JackLSauce 31 points 2 weeks ago* (last edited 2 weeks ago) (8 children)

These are relatively easy to find in Japan

Couldn't tell you why but they are

[–] JackLSauce 1 points 2 weeks ago (1 children)

Correct!

I don't know if necessarily harder than the others but none of them were easy

Still you may be right on that point, too

[–] JackLSauce 14 points 2 weeks ago* (last edited 2 weeks ago) (6 children)

But climate change is the first existencial crisis humanity has faced!!

Besides WW2...

And nuclear proliferation...

And the hole in the ozone...

And Industrial revolution pollution...

And overpopulation...

And leaded gasoline...

[–] JackLSauce 12 points 2 weeks ago (18 children)
[–] JackLSauce 4 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

Flying cars are also horrifying: they've existed for about a century, popular culture won't accept they're a bad idea and imagine the research breakthroughs drone warfare would experience if a consumer market were funneling funds in from a whole new closely-related industry

[–] JackLSauce 14 points 3 weeks ago (2 children)

Idk what your society or definition of "insanity" is but assuming you're asking what we believe most commonly leads to one's mental health entering a negative feedback loop:

Broadly speaking it's some form of hopeless desperation (yes, the hopeless qualifier matters here) that commonly kicks into high gear after falling into homelessness, at least based on my own observations

Some also get to play on hard mode simply for winning the genetic and/or socio-economic anti-lottery

[–] JackLSauce 2 points 3 weeks ago

The name Salazar will now forever be translated to "French Dwarf Dude" in my head

 
 
 

I thought this would be dead simple but trying to label a road as "bike-friendly" isn't as intuitive as one would hope (am I "adding" a road even though it's technically there or reporting "wrong info" piece by piece?)

 
199
submitted 9 months ago by JackLSauce to c/showerthoughts
24
submitted 10 months ago by JackLSauce to c/pyrs
 
 
 
7
Mopac Trail (lemmy.world)
submitted 1 year ago by JackLSauce to c/lincoln
 
54
submitted 1 year ago by JackLSauce to c/dogs
 
 

cross-posted from: https://lemmy.world/post/647097

You'll need to update the praw.Reddit() parameters and set booleans to True based on what you want to have cleared.

This also overwrites your comments with nonsense content seeing as Reddit doesn't really delete your comments if nobody forces them

Sorry about the amateurish Python, this isn't my go-to language

import praw

#Update all values set to XXXXXX and set boolean values to True for whatever you'd like to clear

reddit = praw.Reddit(
    client_id="XXXXXX",
    client_secret="XXXXXX",
    user_agent="script running locally", #required for PRAW but not sure content matters
    username="XXXXXX",
    password="XXXXXX"
)

#booleans
delete_posts = False
delete_comments = False
delete_saved = False
clear_votes = False
unsubscribe = False

def get_posts():
    return reddit.user.me().submissions.new(limit=100)

def get_comments():
    return reddit.user.me().comments.new(limit=100)

def get_subscriptions():
    return reddit.user.subreddits()

def get_saved_items():
    return reddit.user.me().saved(limit=100)

def get_upvoted():
    return reddit.user.me().upvoted(limit=100)

def get_downvoted():
    return reddit.user.me().downvoted(limit=100)

while(clear_votes):
    count = 0
    upvotes = get_upvoted()
    downvotes = get_downvoted()
    for vote in upvotes:
        try:
            vote.clear_vote()
            count += 1
            print('Clearing vote for: ', vote)
        except Exception as e:
            print('Could not clear vote due to: ', e, '(this is normal for archived posts)')
            continue
    for vote in downvotes:
        try:
            vote.clear_vote()
            count += 1
            print('Clearing vote for: ', vote)
        except Exception as e:
            print('Could not clear vote due to: ', e, '(this is normal for archived posts)')
            continue
    if(count == 0):
        clear_votes = False

while(delete_saved):
    count = 0
    saved_items = get_saved_items()
    for item in saved_items:
        item.unsave()
        count += 1
        print('Unsaved item ID: ', item)
    if(count == 0):
        delete_saved = False


while(delete_posts):
    count = 0
    posts = get_posts()
    for post in posts:
        print("Deleting submission: ", post)
        post.delete()
        count += 1
    if(count == 0): 
        delete_posts = False 


#Replace comments with nonsense data first as Reddit only "marks comments as" deleted
while(delete_comments):
    count = 0
    comments = reddit.user.me().comments.new(limit=1000)
    print("Replacing comments with nonsense data")
    for comment in comments:
       comment.edit('So long and thanks for all the fish')
    print("Deleting comments")
    for comment in comments:
        comment.delete()
        count+=1
    if (count == 0):
        delete_comments = False

while(unsubscribe):
    count = 0
    subscriptions = get_subscriptions()
    for subreddit in subscriptions:
        subreddit.unsubscribe()
        count += 1
        print('Unsubscribed from: ', subreddit.display_name)
    if (count == 0):
        unsubscribe = False

print('--finished--')
view more: next ›