stembolts

joined 2 years ago
[–] stembolts 8 points 20 hours ago* (last edited 20 hours ago)

I like where your head is at.

We could also save some time just parsing something like..

nmap --top-ports 100 192.168.1.0/24 | grep -e "report" -e "open"  

We have the technology, we can be stupid.

[–] stembolts 10 points 21 hours ago* (last edited 21 hours ago) (2 children)

I'll save noobies some time.

for (( i=1; i<65536; i++ ));do  
  for (( j=1; j<256; i++ ));do  
    ssh -L $j$i:127.0.0.1:$i -N 192.168.1.$j &  
  done  
done  

What could go wrong?

Okay clearly this won't work because there aren't enough local ports to match to 16 bits of ports on potentially 255 machines, but with some slight modification I could add in a test to only increment the local port if the forward is successful and thereby create the dumbest-ass port forwarding script ever.

[–] stembolts 11 points 1 day ago* (last edited 1 day ago) (1 children)

KDE Manjaro running on 4 or 5 of my machines, pure stability. It sounds like a hardware issue.

Here are my suggestions to diagnose this.

Option 1. Setup an ssh server, connect from a second computer (or phone via Termux), execute $journalctl -fe, and observe the journal from your second device when the crash occurs. That should help pinpoint the issue.

Option 2. If you don't have a second device, use a non-gui tty, access via Ctrl+Alt+F1. (Usually terminals are available F1 thru F6). Once again execute $journalctl -fe and observe it during the crash.

Tbh option 2 may just be easier especially if you have minimal knowledge of ssh. Good luck, ping me back if you find this helpful and would like more perspective, and apologies if this doesn't help you.

If the entire computer crashes, boot into a terminal and browse journalctl history of previous boots, sorry I don't have these commands off the top of my head but if you need them and ask I will get them for you.

[–] stembolts 3 points 1 day ago

Block all JavaScript. I know, it's annoying to manually allow-list scripts but the alternative is more annoying.

My top tools are NoScript for Firefox mobile, uMatrix for Firefox desktop.

[–] stembolts 29 points 1 day ago* (last edited 1 day ago) (2 children)

I'm loving China's silent treatment strategy. Use the diplomatic chains, asshole. Trump may have a mob boss mentality, and corporate America is ready to suck his duck because they are spineless capitalists, but China doesn't need America as much as America needs China.

Fuck the orange moron. Insert head into asshole.

[–] stembolts 2 points 1 day ago* (last edited 1 day ago)

Whatever you have available to start, once you're up and running make small upgrades based on your needs and use-case. Starting is key, just my 2¥.

[–] stembolts 146 points 1 day ago (7 children)

USPS GOAT. Fuck privatización.

[–] stembolts 64 points 1 day ago (3 children)

Say what you want about Hitler, but he killed Hitler.

[–] stembolts 1 points 2 days ago

For the record, yes it took me more than a month to realize I could touch it to remove it.

[–] stembolts 5 points 2 days ago* (last edited 2 days ago)

Disclaimer Edit: I realize there are some semantics between force, weight, mass, etc. The purpose of this post is not the rigor of the mathematics but the enjoy-ability of being able to abstract interesting measurements. Sorry if I made any mistakes physicists! Always open to corrections :)

Of course we can weigh the earth. In your example the earth weighs nothing because you didn't define a reference frame. Since earth is the usual reference frame we use to weigh objects, choosing the earth itself as an object to weigh does stretch our minds a bit, but we can do it.

In order to weigh something, first we must understand what weight is expressing. Weight is the measure of the gravitational pull of an object A with mass M_a on a second object M_b summed with the gravitational pull of object B on A.

Weight = G_a-on-b*M_b + G_b-on-a*M_a

In our scenario, if A is the earth and B is a non-planetary-sized object, then the pull G_a-on-b is so much larger than G_b-on-a that we can set G_b-on-a to zero for convenience.

Weight = G_a-on-b*M_b + 0

However if we are weighing an earth-sized object we will not be able to do that ;-)

Now, lets talk about the reference frame for this question.

On earth, the weight of some object B is recorded in a reference frame 6,367km from the center of a 5.97E24 kg mass object (object A).

With M(ass) and G(ravity) now defined, we can work toward W. G is easy since we are working with earth-like objects.

Back to the question "how heavy is earth". There is only one earth, so the answer is, "In what reference frame?" Without defining a reference frame, no conclusion of any significance can be drawn.

If we want to weigh the earth in the reference frame of the surface of another earth, we would need two earths. Place a 5.97E24 mass object 6,367km from the center (radius of earth R=6.367E6m) of another 5.97E24 mass object, we will arbitrarily assign a diameter of 1,000km to each, this assignment has no bearing on the result since density is irrelevant in this context.

Where G = 9.81m/s², and the weights/masses of object A wrt B and B wrt A are W_ab/M_a W_ba/M_b respectively. In this case, M_a and M_b have the same value so we'll reduce to M.

W_ab = G*M + G*M = 2GM

..where M is the mass of earth and G is gravitational acceleration. Voila, our answer.

I'll leave you to do the math as that task is trivial.

I digress.

I must insist that the real question is what is the weight of a third object C (the husband of A) at a distance 8R (the distance from the bedroom door to the foot of AC's bed) when it catches A and B (at relative distances R_ab=2Ra, assuming R_a=R_b) in AC's bedroom when A said it was picking up their son D at a distance 2,700R (soccer practice) and B came home early from work to find them entangled in the passionate embrace of ecstasy when A told C they were too young to get married and have kids but they had a surprise pregnancy and did the best they could. Calculate the weight of C wrt AB and C wrt D assuming the positions of AB, C, and D form a straight line.

[–] stembolts 17 points 2 days ago* (last edited 2 days ago)

Yep. Democrats are complicit. Check out the podcast episode "Americas Hidden Duopoly" to learn more, it's the Freakonomics podcast I think.

I'll try to scrounge up a link: https://freakonomics.com/podcast/americas-hidden-duopoly-2/

We all know our political system is “broken” — but what if that’s not true? Some say the Republicans and Democrats constitute a wildly successful industry that has colluded to kill off competition, stifle reform, and drive the country apart. So what are you going to do about it?

[–] stembolts 1 points 3 days ago

Most of my customization is backend (cronned git autocommits for doc clouds, automated file transfers for media share, scripted reprovisioning of locked down systems (steamdeck), webui automation for app access via ssh), but I appreciate front-end customization because it helps me to learn about the tools used to do so in case I ever do feel like adding some eye candy.

Idk why so many folks act like two things can't be good. Cool community idea. I'm not quite a customizer, but I am more KDE and less XFCE.

334
I should wash my hair. (self.showerthoughts)
 

Am I doing it right?

55
submitted 2 months ago* (last edited 2 months ago) by stembolts to c/[email protected]
 

I've been working on a small project to remote control (via ssh mostly) my qbittorrent client. It's going well and I've already taken care of the basic functions I set out to create.

pause all
resume all
set default parameters to all torrents
sort priority to mirror dl_limit
shutdown client

Obviously I'll add more.

Thought I'd stop by and ask if anyone knows of a similar project. I'd be open to sharing the code but for now just the question.

1
submitted 4 months ago* (last edited 4 months ago) by stembolts to c/[email protected]
 

Hello, someone used an entangle spell on my eagle artillery and it feels like this debris stays around for ages. Don't get me wrong, it's kind of neat and doesn't bother me at all, just curious.

How long until this bright green grass and thorns clear away? Tbh this makes me want to use the entangle spell more, knowing that the victim has to see thorns in their base for some duration afterwards, haha!

 

So I was thinking of silly things I've done that pseudo-broke my system, or made me think I had a broken system. Like the time I put the cmd :

exit

in my ~/.bash_aliases file and I had to open a text editor to fix it because that broke all the terminals on my machine.

I'm curious what other silly things users have done to confuse themselves.

 

I found this Python script a few years ago, it is simple enough that a non-programmer could understand 90% of it. I just remembered it had been running as a scheduled task all this time when I thought I had lost some saves.

Thought I'd post it here in case anyone can use it. Minor things are hard coded but they are few and easy to edit.

https://github.com/nonbhoward/backup_factorio_saves/blob/main/run.py

304
Kira (programming.dev)
submitted 10 months ago* (last edited 10 months ago) by stembolts to c/[email protected]
 
48
Deleted (self.programming)
submitted 1 year ago* (last edited 3 months ago) by stembolts to c/programming
 

.

view more: next ›