malijaffri

joined 1 year ago
[–] [email protected] 2 points 6 months ago

Oh dang, this is the 4th floor? I didn't even see that previously!

In that case, I've encountered double caustic slimes quite often, and wouldn't really be surprised to encounter them at all.

[–] [email protected] 5 points 6 months ago* (last edited 6 months ago) (1 children)

I got it working in shell as well:

#!/bin/bash

read -p "Username: " user
read -p "Password: " -s pass
read -p "TOTP: " totp

res=$(curl \
    --request POST \
    --url "https://feddit.ch/api/v3/user/login" \
    --header 'accept: application/json' \
    --header 'content-type: application/json' \
    --data '{"username_or_email":"'$user'","password":"'$pass'","totp_2fa_token":"'$totp'"}')

jwt=$(echo $res | sed -re 's/^.*"jwt":"([^"]*)".*$/\1/')

curl \
    --request GET \
    --url "https://feddit.ch/api/v3/user/export_settings" \
    --header 'accept: application/json' \
    --cookie "jwt=$jwt" \
    -o "export.json"

I'd recommend echoing $res and $jwt before processing them further

Edit: if you don't have TOTP enabled, don't forget to remove it from the request

Docs: https://lemmy.readme.io/reference/post_user-login

Edit 2: added spacing

[–] [email protected] 3 points 6 months ago* (last edited 6 months ago) (2 children)

I used the LemmyHTTP Nodejs module to connect to the API, and after a few tries, got it working. I could post my code in an hour, if you want it.

edit: docs: https://join-lemmy.org/api/index.html

[–] [email protected] 3 points 6 months ago (7 children)

Yeah, same for me. Does anyone know a way to export the profile through an API? Because the API seems to be working, at least, as I can see these post and respond to them.

Or if there is some other way to access the site, that'd be helpful as well

[–] [email protected] 2 points 6 months ago (2 children)

I have never encountered any double boss before in all my years playing PD*! And that's actually saying something, because I play Shattered quite often. So, in my inexpert opinion, pretty darn small!

* limited to Vanilla, Shattered, and Experienced. Also bits of Yet Another, for a little while about a year ago.

[–] [email protected] 11 points 7 months ago (4 children)

Noted. If this is what people expect (and/or want) from Reuters, then it's none of my business how much they put in a single article. Have a nice day.

[–] [email protected] 21 points 7 months ago* (last edited 7 months ago) (6 children)

PARIS, Feb 26 (Reuters) - France's President Emmanuel Macron said on Monday there was no consensus on sending troops to Ukraine, but the subject could not be ruled out.

"There is no consensus at this stage... to send troops on the ground," Macron said after hosting some 20 countries allied to Ukraine.

"Nothing should be excluded. We will do everything that we must so that Russia does not win."


Saved you a click. ~~Yes, that's it. That's the entire "article". A total of 4 sentences. What exactly was the point of writing such a short article?~~

Edit: pulled my head out of my ass.

[–] [email protected] 2 points 8 months ago

Also Joplin! It's a cross-platform Markdown notes app with many syncing options (including local storage, Dropbox, Nextcloud, and others). I've been using it for 2 years now, after trying different apps to see what fits. I've been using local storage and Syncthing to keep my Android phone and Linux PC synced, and really like it. It even lets you use an external text editor to edit your notes!

[–] [email protected] 4 points 8 months ago (1 children)
 

Not sure if this is the right community to post this in, as we don't have any [email protected] or similar community, but it seemed the most relevant. Sorry if it doesn't belong.

I'm sure that at this point it has become common knowledge that , Meta's alternative to Twitter, is trying to implement ActivityPub into their site. If/when this goes through, this would make Threads an instance admin, giving then full access to all the data that is available to other instance admins. This would include all data that belongs to Lemmy/KBin/Mastodon/etc users.

My main question is, should we let them do this? Should we federate with them if/when they come online, or should we defederate? I know that does not usually defederate with others (we currently only have one instance blocked, bottom of ), but in this case, this is Meta we're dealing with. They aren't exactly a big fan of data privacy, which is the whole theme of this instance (our sidebar: "This instance is focused on providing security and privacy for its users").

It seems that most people on Lemmy/etc. seem to be in favour of pre-emptive defederation and that many other instances have already defederated (Lemmy.ca, dbzer0, Blahaj, Beehaw, Lemm.ee).

There may also be another solution, but I'm not sure whether this applies to Lemmy.

What does everyone else think? Should we stay federated with them? Should we defederate, like other instances have already done? Should we wait and see? I'd love to hear others' opinions on this.

view more: next ›