malijaffri
- 1 Post
- 38 Comments
malijaffri@feddit.chtofeddit.ch Instance Announcements@feddit.ch•feddit.ch shutting down on 31.03.20245·1 year agoI 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
malijaffri@feddit.chtofeddit.ch Instance Announcements@feddit.ch•feddit.ch shutting down on 31.03.20243·1 year agoI 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
malijaffri@feddit.chtofeddit.ch Instance Announcements@feddit.ch•feddit.ch shutting down on 31.03.20241·1 year agoYeah, 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
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.
malijaffri@feddit.chto World News@lemmy.world•France's Macron says sending troops to Ukraine cannot be ruled outEnglish132·1 year agoNoted. 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.
malijaffri@feddit.chto World News@lemmy.world•France's Macron says sending troops to Ukraine cannot be ruled outEnglish3211·1 year agoPARIS, 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.
malijaffri@feddit.chto Today I Learned (TIL)@lemmit.online•TIL that since its discovery Pluto has not made a full orbit around the sun, and still has 150 years until it does1·1 year agoHuh. Imagine that. Being discovered, named, categorised as a planet, and uncategorised as a planet, all within less than a year of your own orbit.
malijaffri@feddit.chto The Onion@midwest.social•Ohio Begins Executing Random People In Hopes They’re CriminalsEnglish5·1 year ago*Scammer
Extemely relevant:
malijaffri@feddit.chto Android@lemmy.world•How did you de-Google's your Android device?English2·1 year agoAlso 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!
malijaffri@feddit.chtoShare Funny Videos, Images, Memes, Quotes and more @lemmy.ml•Rich people's yacht money3·1 year agoJust for you <3
https://drive.google.com/file/d/1IqhbKNbD-zjMjmu74knJ8fU-MjqjgYeR/view
Firefox > Add-ons > (Settings Gear) > Debug Add-ons > Load Temporary Add-on > Select file
Edit: Might put this on AMO (Mozilla Addons) later, this was just something I whipped up quickly in about an hour.
malijaffri@feddit.chto [Outdated, please look at pinned post] Casual Conversation@lemmy.world•Weird or unique hobbies.English2·1 year agoAfter going through the paper, it’s not just “alien plant with eyes”, but rather “alien mimic plant with eyes”! This plant “sees” other plants around (above?) itself and changes the shape of its own leaves to match those of the other plant.
I wonder if the effect can be chained, and if so, how long the chain could be? I’m imagining an alien mimic plant with eyes mimicking an alien mimic plant with eyes mimicking an alien mimic plant with eyes mimicking the first alien mimic plant with eyes.
malijaffri@feddit.chto Asklemmy@lemmy.ml•What's the oldest piece of tech you still have running?1·1 year agoNot sure if this is the one you’re referring to, but NileRed made a video on this:
malijaffri@feddit.chto PC Master Race@lemmy.world•Holiday Giveaway - Steam Codes! - Giveaway EndedEnglish1·1 year agoI don’t want anything out of this for myself, as I currently have enough on my plate as it is. I’m just commenting to boost engagement. I love that you’re doing this, though! Happy holidays, everyone! *<|:-)
Piggybacking onto this to mention my go-to online RegEx editor: RegExr. It lets you test the regex as you type, explains the particular symbols used, as well as has a sidebar where you can see different pattern types categorically. I’ve been using it for almost 2 years now, and haven’t had any reason to use much else (after I discovered this).
malijaffri@feddit.chOPto Fight For Privacy@feddit.ch•[DISCUSSION] Federation with Threads?English2·2 years agoI agree with this completely! I am also not generally a fan of such gatekeeping, but in cases like these I feel that it is not just justified, but rather necessary.
I once asked the admin and … a defederation of such instances is not seen as an action to take.
Could you please rephrase? Not sure I understand this properly. What I think I understand is that the instance admin is not a big fan of defederation. Is that correct?
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.