freamon

joined 2 years ago
MODERATOR OF
[–] freamon@feddit.nl 1 points 2 years ago

nosleep at lemmyworld? That's only got 5 posts from a month ago, so someone will have to get their finger out.

[–] freamon@feddit.nl 2 points 2 years ago (1 children)

I wrote a function that sent a post to the top community in New Entries, but then changed my mind about using it. That was for everyday though, so I thought it might get intrusive. I'll re-think it when a month comes up - it's difficult to know how users feel about bots.

[–] freamon@feddit.nl 3 points 2 years ago (1 children)

Does the community need to be older than 7 days?

It does, yes.

I discovered eXoLite from your Community, btw. It's amazing, so thank you.

[–] freamon@feddit.nl 1 points 2 years ago (1 children)

It's up now. It was feddit.nl's turn to fall over today. Sorry if you asked me this ages ago (I'm only just seeing it for the same reason)

[–] freamon@feddit.nl 1 points 2 years ago

Cassian Andor's on here!

Okay bot, you can put me down now

[–] freamon@feddit.nl 3 points 2 years ago (1 children)

"I do, I do be threatening you"

[–] freamon@feddit.nl 13 points 2 years ago (4 children)

What app you're using is glitching. Evil_toastsupport doesn't have 3k subscribers (it has 24)

[–] freamon@feddit.nl 11 points 2 years ago

I spent some time being "funny" at shittymoviedetails yesterday, which illustrated 2 things to me today:

  1. Creating Content is a good trick for driving up subscribers (18% in one day, so the 4.22% average demonstrates how in the doldrums it was)

  2. Visiting it from a instance from which nobody had subscribed showed me all the posts, but not of the lovely upvotes and comments. So things may appear deader-than-are if you're the first person from your instance clicking on one of these links.

[–] freamon@feddit.nl 2 points 2 years ago (1 children)

It depends how you're accessing Lemmy.
On the website, you can click on the 3 vertical dots near the post or comment, and chose 'Block User' from there.
On the Voyager app, you can click the user's name, and then select it from the 3 horizontal dots.
It might be that whatever app you're using doesn't support it. Before Voyager did, I used to go into my Settings and then search for the user (e.g. [at] bot [at] lemmit [dot] online) in the 'Blocks' sections.

[–] freamon@feddit.nl 12 points 2 years ago (3 children)

Interesting. My source is obviously anecdotal and from another country. Is it verified that Buffalo tribes always thought this vs. being influenced by European colonisers?

(I don't want to fall into the trap of thinking older civilizations didn't have the same gender hang-ups as modern ones.)

[–] freamon@feddit.nl 38 points 2 years ago (5 children)

I heard from an Aboriginal tour guide that in native populations everyone just did the role they wanted / were good at, and it was only from the introduction of Christian missionaries that such a division of labour was encouraged.

[–] freamon@feddit.nl 4 points 2 years ago

I bought a cheap 'mp3 player' from eBay when I was trying to use my phone less, but it was rubbish: no library function (just the files, listed in the order they were copied), m4a support was limited to low-complexity), Bluetooth dropped if I moved my head.

I was surprised, because there's definitely system-on-a-chip + open-source software combinations that would make a good, cheap player. The kind of places that make them though, will always prefer to use even-cheaper components than what the final retail price would suggest.

So, because everyone uses their phone for music listening now, it's hard to get a dumb player. They're either rubbish, like I bought, or they're completely at the other end of the scale (as in more expensive than a phone)

 
 

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.

4
submitted 2 years ago* (last edited 2 years ago) by freamon@feddit.nl 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.

 

Cassian Andor (or possibly !cassianandor@feddit.nl if you prefer) is a community for discussing both the Andor TV show, and Rogue One the film.
Both feature Diego Luna of course, and I'm hoping that someone in season 2 of Andor will yell "Climb!" at him, so I can start referring to the set as The Climb! Trilogy.
Other projects by any the creatives involved are fair game for discussion too, as long as they're at least tangentially related.

 

Lets hope at least one of these links work:

Cassian Andor

!cassianandor@feddit.nl

view more: ‹ prev next ›