venusenvy47

joined 2 years ago
[–] [email protected] 11 points 2 years ago

It's especially relevant when you consider the phrase "Canary in a coal mine", which literally and figuratively describes early warning of a problem.

[–] [email protected] 7 points 2 years ago* (last edited 2 years ago) (1 children)

If you are comfortable with using command line stuff, I found this little Python script perfect for my needs. I copied my subscriptions from my original instance to two others:

https://github.com/wescode/lemmy_migrate

I don't know enough programming to know whether the tool could be stealing my authentication, but my passwords are random and I don't really care if anything happens to those.

Edit: You have to run this when the servers are actually functioning. I was migrating my stuff away from my lemmy.world account because of the overloading there, and the server was pretty slow while it was copying my subscriptions. I ran it again an hour later and it picked up the few subscriptions it missed on the first pass. It's smart enough to check if the new server has a particular community subscription already in place.

[–] [email protected] 4 points 2 years ago* (last edited 2 years ago)

Yes, and during the day before a colonoscopy you will become super Einstein - based on the amount of time you spend on the toilet.

[–] [email protected] 7 points 2 years ago* (last edited 2 years ago) (1 children)

If that's your dumbest idea, you are undervalued wherever you work. That sounds like a pretty interesting idea.

[–] [email protected] 2 points 2 years ago* (last edited 2 years ago)

I'm assuming this doesn't involve intra-military emails, because that would be trivial to prevent. It's probably because of people sending from another domain. Like if [email protected] is sending an email to [email protected], but he mistypes the .mil part because he is using his iPhone while riding his motorcycle with a girl on the back.

A more realistic example would be [email protected] sending an email to [email protected] to discuss some upcoming meeting about a new aircraft contract.

[–] [email protected] 1 points 2 years ago

I bounce between my several installed Lemmy apps whenever one of them locks up :)

[–] [email protected] 4 points 2 years ago* (last edited 2 years ago) (1 children)

I'm a little confused about a comment in the article that says the Mali military will be taking over the .ml domain on Monday. Is the country of Mali going to start using a different domain next week?

[–] [email protected] 15 points 2 years ago* (last edited 2 years ago) (1 children)

I was using one of the various publicly-hosted teddit sites (like https://teddit.privacytools.io/, which is currently rate-limited). It is pretty easy to import your Reddit subscriptions into one of these instances and have it show just your normal subscription content. You can't comment, but it was nice for lurking while Lemmy content was still coming up to speed.

I was able to easily launch a Teddit instance on my Linux server yesterday for my own usage using the Docker instructions on this site. It's not rate limited because I'm the only person using it.

https://codeberg.org/teddit/teddit

I just saved that example into a file called "teddit.yml", and made the changes that they mention for non production usage:

Change ports: - "127.0.0.1:8080:8080" to ports: - "8080:8080" Remove DOMAIN=teddit.net, USE_HELMET=true, USE_HELMET_HSTS=true, TRUST_PROXY=true

Then I just ran this command and I can use it on my home network.

sudo docker-compose -f ~/docker/compose/teddit.yml up -d

I just access it with a browser at http://192.168.1.6:8080

For getting your Reddit subscriptions loaded into it, there is a trick to get a text list of your list of Reddit subscriptions, which you then just paste into a .json file and import into any teddit instance from the webpage. See the bottom of this post.

The .json file just contains this, with your list of subscriptions in a comma-separated string with double quotes: {"subbed_subreddits":["AskReddit","LifeProTips","Music"],"theme":"dark","flairs":"true","nsfw_enabled":"true","highlight_controversial":"true","post_media_max_height":"medium","collapse_child_comments":"false","show_upvoted_percentage":"true","show_upvotes":"true","videos_muted":"true","domain_twitter":"","domain_youtube":"","domain_instagram":"undefined","domain_quora":"","domain_imgur":"","prefer_frontpage":"true","show_large_gallery_images":"false","default_comment_sort":"best"}

----------- Downloading your Reddit subscriptions as a text string ---------

1.) Visit this site in a desktop browser while logged into your account: https://www.reddit.com/subreddits

2.) Paste this into the address bar, but don't press enter yet.

javascript:$('body').replaceWith(''+$('.subscription-box').find('li').find('a.title').map((_, d) => $(d).text()).get().join("\",\"")+'');javascript.void()

{I'm not sure if the formatting of that command always displays properly on Lemmy or your app. The part in the join() section is: doublequote backslash doublequote comma backslash doublequote doublequote}

3.) You might have to manually type the "javascript" text at the beginning of that command in the address bar because I found that Windows or the browser ignores that part when you paste.

4.) Press enter, and you should get a text list of your subscriptions displayed in your browser that you can copy and paste into any text document, like the above-mentioned.json file. Just manually add a leading and trailing double quote to make it work with that teddit.json format.

[–] [email protected] 1 points 2 years ago

I see that Yacht is alpha. Any problems with stability?

[–] [email protected] 1 points 2 years ago (2 children)

Yes, I actually used Portainer on my VPS when I was learning Docker last year. It makes some things easier, but it does add another layer of complexity, learning to navigate the Portainer interface and setting up Stacks to deploy your compose files. With my home server I was trying to experiment with "the natural Docker" procedure.

[–] [email protected] 1 points 2 years ago (4 children)

Oops. I don't fully understand Docker and I misread the instructions for selecting the port.

On a related topic, is there any reason why I had to use "sudo" to run these Docker commands? I tried both without sudo and they both failed.

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

That's the command I used.

sudo docker run -d --name libreddit -p 80:8080 libreddit/libreddit

Then I checked the port traffic with sudo lsof -i -P | grep -i "listen" and saw it running on port 80. And I could only connect to it from my browser on port 80. But it doesn't matter, I switched to teddit in Docker and have it running with a compose file, so I'm set.

view more: ‹ prev next ›