- 3 Posts
- 6 Comments
Gamera8ID@lemm.eeto sh.itjust.works Main Community@sh.itjust.works•Subscribed communities copyerEnglish1·2 years agoYou might also want to check out this Python script which syncs profiles, communities, and blocks between multiple Lemmy accounts.
Gamera8ID@lemm.eeto Python@programming.dev•Wrote a Python script to sync your accounts across instances.English1·2 years agoThat was it exactly. Thank you.
This was a journey, so I’m documenting it here for anyone who might run into a similar situation.
I’m using a Chromebook with Linux enabled.
To confirm my version of Python I ran
python --version
:Python 3.9.2
OK! Getting somewhere. So I have to check what distribution of Linux is installed with
grep '^PRETTY_NAME' /etc/os-release
PRETTY_NAME=“Debian GNU/Linux 11 (bullseye)”
Alright. Google says if I want to upgrade Python on Debian 11 I have to compile it from source. Yikes! But, wait, there’s a PPA - Yay! But the PPA is for Ubuntu - Boo.
There isn’t an active community for ChromeOS on Lemmy yet, but that other website has directions for replacing Debian with Ubuntu.
I’m lazy so I’m not doing that. I’m just going to spin up a temporary Ubuntu container that I can delete later, so my directions are much simpler:
Ctr-Alt-T to enter crosh, the ChromeOS developer shell.
vmc start termina lxc launch ubuntu:22.04 ubuntu lxc exec ubuntu -- bash apt update && apt -y upgrade add-apt-repository ppa:deadsnakes/ppa apt update apt install -y python3.11 python3.11-venv python3.11 -m ensurepip git clone https://github.com/Ac5000/lemmy_account_sync.git cd lemmy_account_sync/ pip3.11 install -r requirements.txt cp exampleconfig.ini src/myconfig.ini nano src/myconfig.ini python3.11 src/lemmy_sync.py
Success! I had to escape some special characters in my passwords, but that’s easily Google-able.
I’ll be keeping the container around for a little while to do some periodic syncs. Then I’ll remove it using crosh.
vmc start termina lxc delete ubuntu --force
Gamera8ID@lemm.eeto Python@programming.dev•Wrote a Python script to sync your accounts across instances.English1·2 years agoI’m getting a
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
when I do:git clone https://github.com/Ac5000/lemmy_account_sync.git cd lemmy_account_sync/ pip install -r requirements.txt cp exampleconfig.ini src/myconfig.ini nano src/myconfig.ini python3 src/lemmy_sync.py
I’ve confirmed that my
[
and ][
details are correct in myconfig.ini, but beyond that I don’t really know what I’m doing. ]
Gamera8ID@lemm.eeto No Stupid Questions@lemmy.world•What would cause a large swarm of wasps to fly through a neighborhood?0·2 years agoTIL wasps swarm, and now I have a new fear.
According to this site wasps might swarm if their nest is disturbed, at a change of season, or to establish a new colony (like @fubo@lemmy.world said.)
Gamera8ID@lemm.eeto Asklemmy@lemmy.ml•is there a simple way to determine who is federated with/defederated from who?3·2 years agoI’ve seen this site suggested in posts like this:
spoiler
I’m using the spoiler tag because elsewhere I’ve seen this warning about the site:
run by people from kiwifarms (a known bad actor on the fediverse).
I’m unfamiliar with “kiwifarms” but the site currently does has some offensive language at the bottom that’s associated with 4chan, so be warned.
That said, it appears to be the only site currently available to see which instances in the fediverse have blocked/defederated your instance. (The reverse of
<instance domain>/instances
, which only shows which instances your instance has blocked/defederated.)
There’s a comprehensive list of Lemmy apps being curated here.
Right now I’m using Liftoff.