freamon

joined 2 years ago
MODERATOR OF
[–] freamon 9 points 2 years ago (1 children)

NSFW'ing stuff isn't a particularly y good way to hide spoilers, btw (it's not the same as it is on Reddit)

It will (probably) blur the image for anyone who's set their account to view NSFW, but the majority of members here just won't see the post at all.

To the extent that spoiler tags are supported, it might be better to include images as an inline link, surrounded by spoiler tags.

Test:

spoiler

[–] freamon 1 points 2 years ago

I've always wondered why this scene from "New York, I Love You" is used for Star Wars stuff.

[–] freamon 3 points 2 years ago

I can totally believe that - in terms of being 'trending' it seemed to do better as a SFW community than an unsafe one.

Also, I've only got one meme to compare by, but when I posted something to starwarsmemes, I could see the upvotes climbing in real-time, right up until the point a Mod wanted me to tag it NSFW, and then it died flat on its arse.

[–] freamon 2 points 2 years ago (2 children)

'Behind the Bastards' could be a form of porn I suppose, but it isn't porn.

It's on here because
A. Whether something is a safe for work or not is an overly simplistic form of categorisation
B. Someone at blahaj.zone has a job where they're not allowed to look at podcasts?

[–] freamon 2 points 2 years ago

For clarity - these lists are compiled and posted by a bot.

The source code (which is just a bash script really) is available via a link on the sidebar of the SFW version of the community.
This means you could run your own version if you like - perhaps dedicated to a particular instance, or for communities with certain words in their titles.

[–] freamon 2 points 2 years ago (1 children)

Hello. I moderate https://lemmynsfw.com/c/trendingcommunities. Can I be added? Thanks.

(I tried this 11 days ago, but it didn't seem to go through, so trying again. Sorry if duped)

[–] freamon 2 points 2 years ago

NSFW Wallpapers, as mentioned as few days ago, has made its first appearance.

!sexmemes@lemmyf.uk and !freakychicks@lemmyf.uk lost their NSFW tags, so spent some time in the wilderness, before cropping up on the SFW lists, but they've found them again now, so will probably start appearing on these lists again from tomorrow.

[–] freamon 4 points 2 years ago

I mean, if you're trying to post an obscure meme, the very least you could do is not feature a mountain that Anakin Skywalker himself didn't obliquely refer to in Skyewalkers: A Clone Wars Story.

If my tears can't cure me, I doubt they'd do much for you.

[–] freamon 2 points 2 years ago (1 children)

There's maybe only so much that can be displayed in a Lemmy post, especially when you consider what it would look like on a phone screen.

I'm not sure about "bottom 10%", if it's of widespread interest or not. The list wouldn't necessarily highlight smaller communities (it'd be just as likely to show established communities who's growth has plateaued).

Anyway, you can have a play yourself - historic data goes back to 24/07, and data is added for every new day here

(the columns are %growth | community | subscribers | posts | community-title)

[–] freamon 1 points 2 years ago

Hi. Yeah - it needs to exist for at least 7 days

[–] freamon 7 points 2 years ago (2 children)

Well that's certain an expansion .. of the type of vocabulary usually seen in Star Wars.

 
 
6
submitted 2 years ago* (last edited 2 years ago) by freamon to c/linuxscripts@lemmy.zip
 

Run the "Basic Lemmy API login script" (see here) first to get value for 'jwt'

#!/bin/bash

# Basic get unread replies script for Lemmy API

# CHANGE THESE VALUES
my_instance=""			# e.g. https://feddit.nl
my_username=""			# e.g. freamon
my_password=""			# e.g. hunter2

jwt=""			# run basic login script to get this

########################################################

# Lemmy API version
API="api/v3"

########################################################

# Turn off history substitution (avoid errors with ! usage)
set +H

########################################################

# Get inbox messages
get_unread_replies() {
	end_point="user/replies"
	www_data="auth=$jwt&unread_only=true"

	url="$my_instance/$API/$end_point?$www_data"

	curl "$url"
}

get_unread_replies

Personally, I'd use the 'jq' program to de-serialize the reply, e.g.

get_unread_replies.sh | jq '.replies[].comment.content'

My next plan is to use a script like this with a notification service like PUSHOVER, so it can ding my phone if I've an unread message

For each API method, whether it's GET or POST and end_point can be found here, and then each method has a click-through to see what parameters it can take.

12
Basic Lemmy API login script (self.linuxscripts)
submitted 2 years ago* (last edited 2 years ago) by freamon to c/linuxscripts@lemmy.zip
 
#!/bin/bash

# Basic login script for Lemmy API

# CHANGE THESE VALUES
my_instance=""			# e.g. https://feddit.nl
my_username=""			# e.g. freamon
my_password=""			# e.g. hunter2

########################################################

# Lemmy API version
API="api/v3"

########################################################

# Turn off history substitution (avoid errors with ! usage)
set +H

########################################################

# Login
login() {
	end_point="user/login"
	json_data="{\"username_or_email\":\"$my_username\",\"password\":\"$my_password\"}"

	url="$my_instance/$API/$end_point"

	curl -H "Content-Type: application/json" -d "$json_data" "$url"
}

login

# Make note of "jwt" from reply

This'll reply with JSON data, that includes a value for "jwt", to be used in other scripts that require you to be logged in.

Personally, I'd use the 'jq' program to de-serialize the JSON data, but I thought I'd keep the script simple for now

 
 
 
 
 
 

Obligatory Andor community plug.

 

(Asking for confirmation about discarding your post whenever you want to make a new one)

 

Personally, I've just seen a "foodporn" community, and I've never understood using the 'porn' suffix to just mean "nice pictures of"

view more: ‹ prev next ›