• 1 Post
  • 31 Comments
Joined 9 months ago
cake
Cake day: February 10th, 2024

help-circle
  • Für die Leute, die keine offene Browser Session haben, hier ein kleines, aber funktionales Bash Script, welches im Ausführungsverzeichnis eine myFedditUserData.json erstellt, welche bei anderen Instanzen importiert werden kann.

    Anforderungen:

    • Linux/Mac OS X Installation
    • jq installiert (Unter Ubuntu/Debian/Mint z.B. per sudo apt install -y jq

    Anleitung:

    • Folgendes Script unter einem beliebigen Namen mit .sh Endung abspeichern, z.B. getMyFedditUsserData.sh
    • Script in beliebigen Textprogramm öffnen, Username/Mail und Passwort ausfüllen (optional Instanz ändern)
    • Terminal im Ordner des Scripts öffnen und chmod +x getMyFedditUsserData.sh ausführen (Namen eventuell anpassen)
    • ./getMyFedditUsserData.sh
    • Nun liegt im Ordner neben dem Script eine frische myFedditUserData.json

    Anmerkung: Das Script ist recht simpel, es wird ein JWT Bearer Token angefragt und als Header bei dem GET Aufruf von https://feddit.de/api/v3/user/export_settings mitgegeben. Wer kein Linux/Mac OS X zur Verfügung hat, kann den Ablauf mit anderen Mitteln nachstellen.

    Das Script:

    #!/bin/bash
    
    # Basic login script for Lemmy API
    
    # CHANGE THESE VALUES
    my_instance="https://feddit.de"			# 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"
    }
    
    # Get userdata as JSON
    getUserData() {
    	end_point="user/export_settings"
    
    	url="$my_instance/$API/$end_point"
    
    	curl -H "Authorization: Bearer ${JWT}" "$url"
    }
    
    JWT=$(login | jq -r '.jwt')
    
    printf 'JWT Token: %s\n' "$JWT"
    
    getUserData | jq > myFedditUserData.json
    









  • Ah, the meaning of my comment went straight over your head and you resort to throwing insults around.

    I’ll spell it out then: The fact that the first shot merely went through his mouth, from one cheek to the other makes it entirely possible, even probable, that Gary Webb commited suicide. Even his ex-wife said so:

    Webb’s ex-wife, Susan Bell, told reporters that she believed Webb had died by suicide.[72] “The way he was acting it would be hard for me to believe it was anything but suicide,” she said. According to Bell, Webb had been unhappy for some time over his inability to get a job at another major newspaper. He had sold his house the week before his death because he was unable to afford the mortgage.

    Spreading unfounded, exaggerated conspiracy theories while not even getting the facts straight isn’t helping anyone but the perpetrators, especially when the CIA actually did commit some atrocious crimes that can be cited by stating facts instead of fiction.





  • Doesn’t even have to be malice. I’m sure that most instance admins are great, competent and caring, but setting up a Lemmy instance is trivial, securing it is not.

    The default configuration of a proxy could log connections, the config interface may accidentally be exposed unprotected and so on. Again, I’m not saying that most instances are inherently untrustworthy. But, depending on your instance, you are trusting one person or a small team of volunteers to stay on top of everything andyou can’t expect them to drain their bank accounts in case of legal issues for you.





  • 43% of Linux Gamers are Steam Deck users, most popular Nvidia GPU for linux (steam) gamers still is the 1060 while the most popular Desktop GPU still is the AMD RX 480.

    GPU Percentage
    AMD AMD Custom GPU 0405 35.06%
    AMD Radeon Graphics (RADV VANGOGH) 8.54%
    AMD Radeon RX 480 2.07%
    Intel Iris Xe Graphics 2.01%
    AMD Radeon RX 6750 XT 2.00%
    AMD Radeon Vega Series / Radeon Vega Mobile Series 1.90%
    AMD Raphael 1.70%
    AMD Radeon RX 6800/6800 XT / 6900 XT 1.58%
    AMD Radeon RX 6600 XT 1.57%
    Intel UHD Graphics 620 1.39%
    NVIDIA GeForce GTX 1060 1.38%
    AMD Radeon RX 5700 XT 1.29%
    AMD Radeon Vega 8 Graphics 1.29%
    NVIDIA GeForce RTX 3060 1.27%