I forgot that I enabled MFA on my Nextcloud instance and it broke rclone. This is something the Nextcloud documentation makes clear but neither the instance nor rclone itself will tell you what’s actually wrong or how to fix it.
First, on Nextcloud:
- Go to Settings › Security.
- Scroll down to the bottom. Enter something descriptive like “rclone” in the entry box, then click Generate App Password.
- Nextcloud will display an application-specific password. Leave the screen here. Nextcloud will only display it the one time
You can always start over if you don’t copy it so depending on your password policies you might want to save it in your password manager.
Now, switch over to your shell:
- First, kill the current rclone mount:
$ fusermount -u /home/nullrend/Nextcloud. Do not just kill the rclone job. Apparently the rclone devs think it’s too hard to implement a
rclone umount /mount/dircommand or sum’thin’.
$ rclone configand delete the current Nextcloud remote endpoint. Much easier to start from scratch.
- When you get to the password entry, enter the password given to you by Nextcloud.
- Finish the process.
At this point you can save the password on Nextcloud so it actually allows rclone to connect through WebDAV.
To mount the new remote endpoint do something like
$ rclone mount endpoint:/ ~/Nextcloud --daemon --dir-cache-time 120m --max-read-ahead 256 --no-modtime --vfs-cache-mode full --vfs-cache-poll-interval 120m. You will need to play with the caching flags depending on what you’re doing and what your needs are.
For my own use case I’m mostly using vim to interact with my vimwiki files so I also often do
:set noswapfile to stop vim from bitching about files that are likely open elsewhere.
Allowing masses of underpaid workers to be exploited in order to provide widespread convenience was always a depraved bargain, built on a rickety ethical and economic foundation.
This industry is ripe for some entity to come out with a co-op model where drivers are not only the employees making the delivery, but also owner shareholders in the company. No one will get rich quickly but they’d earn substantially more than poverty wages.
The “uber but for x” economic model is reliant on destroying everything around it so VC can get rich. Hopefully we won’t need 50 years to gig economy doesn’t work, just like trickle-down economics.
It’s almost poetic that the debate over .ORG reached a climax just as COVID-19 was becoming a worldwide crisis. Emergencies like this one are when the world most relies on nonprofits and NGOs; therefore, they’re also pressure tests for the sector. The crisis demonstrated that the NGO community doesn’t need fancy “products and services” from a domain registry: it needs simple, reliable, boring service. Those same members of Congress who’d scrutinized the .ORG sale wrote a more pointed letter to ICANN in March (PDF), plainly noting that there was no way that Ethos Capital could make a profit on its investment without making major changes at the expense of .ORG users.
Domain ownership should be a boring enterprise now that the age where you could get rich just by selling domains is past. You can do price speculation but that is another thing entirely.
We don’t need any companies like GoDaddy running .ORG, much less venture capital.
Every platform has its royalty. On Instagram it’s influencers, foodies, and photographers. Twitter belongs to the founders, journalists, celebrities, and comedians. On LinkedIn, it’s hiring managers, recruiters, and business owners who hold power on the platform and have the ear of the people. The depravity of a platform where HR Managers are the rockstars speaks for itself.
My job listings on LinkedIn:
- Get yelled at by customers
- Drink coffee
- Get yelled at by the boss
This is a social network for HR and godinez types.
I still use ride hailing and food delivery services, but the fact is that the core functionality of these apps — despite all their fancy technology — is not significantly different than having a servant. What the technology has done is pool the servants, make them available to more people, make it easier to communicate tasks, and — most importantly — make it possible to not think of them as servants at all.
When you don’t think of people as your servant you don’t have to think about the implications of servitude— including the linguistics of it, like “master”, “servant”, or “honor”. How long before people find themselves finding themselves in “exclusive contracts” with a specific gig agency?
The technological white supremacy extends to human hair, where the term “hair” has become shorthand for the visual features that dominate white people’s hair. The standard model for rendering hair, the “Marschner” model, was custom-designed to capture the subtle glints that appear when light interacts with the micro-structures in flat, straight hair. No equivalent micro-structural model has ever been developed for kinky, Afro-textured hair. In practice, the straight-hair model just gets applied as a good-enough hand-me-down.
Pixar continues this in their latest film: an epic to the Magical Negro trope, where the Black person isn’t portrayed as black for most of the film but rather as a blue blob.
Will young people — trained during the pandemic to expect instant access to new movies like “Hamilton” and “Borat Subsequent Moviefilm” — get into the habit of going to the movies like their parents and grandparents did? Generation Z forms a crucial audience: About 33 percent of moviegoers in the United States and Canada last year were under the age of 24, according to the Motion Picture Association.
Millenials and Zoomers have a little problem though… we haven’t got any money to spend. Even if there is an economic boom we will not benefit from it unless there is systemic change at all levels of government, business and society.
The cost of a single movie at the theatre will get us an entire month of streaming. The math isn’t hard.
Get Out wasn’t the 1st racist horror concept Jordan Peele was apart of.
I lost it when the zombie locked the door.
Especially in big companies where these monoliths spanned more than a team’s cognitive horizon, violations of those boundaries were often a simple import away, and of course rife.
Most of this is way, way over my head but I’m now introduced to the concept of “cognitive horizon”, which applies to more than IT. It describes perfectly what’s happening when I’m expediting in a restaurant.
NOGALES, Mexico — North of the border, the .50-caliber sniper rifle is the stuff of YouTube celebrity, shown blasting through engine blocks and concrete walls. Deployed with U.S. troops to foreign wars, it is among the most destructive weapons legally available in the United States.But every week, those rifles are trafficked across the border to Mexico, where increasingly militarized drug cartels now command arsenals that rival the weaponry of the country’s security forces. In many cases, criminals outgun police.
Los carteles todavía no se animan a realizar asesinatos tácticos de una bala, prefiriendo mostrar sus poderío enviando comandos armados.
Pero para allá van.
Normally I would consider this a bug. However over the years I’ve come to the conclusion that Windows is a pretty toy. It works wonderfully “in the small”. But it isn’t useful for significant programmer workloads (like typing :-) ).
Source: WSL Isn’t Linux | Hacker News
Your mistake was considering Windows suitable for anything but media consumption. It will phone home, it will reboot when it feels like it, and it won’t resume state when it does reboot or resume from sleep.
The best use for WSL is to use it to shell into a proper Linux host. Only way you can guarantee you won’t lose your work when the OS decides to do something.
With only lax policies in place, those cases will continue to rise. Hospitalizations lag behind cases by about two weeks; by Thanksgiving, today’s soaring cases will be overwhelming hospitals that already cannot cope. “The wave hasn’t even crashed down on us yet,” Perencevich said. “It keeps rising and rising, and we’re all running on fear. The health-care system in Iowa is going to collapse, no question.”
The scene on Interstellar when our protagonists realize those aren’t mountains.
They’re waves. The next one is cresting over the US right now and we’re just here for the ride.
A lot of people are not going to make it
If you run WordPress you’ve seen these in your web server logs:
188.8.131.52 - - [29/Oct/2020:13:58:41 -0500] "POST /xmlrpc.php HTTP/1.1" 200 259 "-" "Apache-HttpClient/4.5.2 (Java/1.8.0_151)" "-" 184.108.40.206 - - [29/Oct/2020:13:58:44 -0500] "POST /xmlrpc.php HTTP/1.1" 200 259 "-" "Apache-HttpClient/4.5.2 (Java/1.8.0_151)" "-" 220.127.116.11 - - [29/Oct/2020:13:58:48 -0500] "POST /xmlrpc.php HTTP/1.1" 200 259 "-" "Apache-HttpClient/4.5.2 (Java/1.8.0_151)" "-" 18.104.22.168 - - [29/Oct/2020:13:58:52 -0500] "POST /xmlrpc.php HTTP/1.1" 200 259 "-" "Apache-HttpClient/4.5.2 (Java/1.8.0_151)" "-" 22.214.171.124 - - [29/Oct/2020:13:58:55 -0500] "POST /xmlrpc.php HTTP/1.1" 200 259 "-" "Apache-HttpClient/4.5.2 (Java/1.8.0_151)" "-" 126.96.36.199 - - [29/Oct/2020:13:58:58 -0500] "POST /xmlrpc.php HTTP/1.1" 200 259 "-" "Apache-HttpClient/4.5.2 (Java/1.8.0_151)" "-"
Fucken scanners just slamming xmlrpc.php looking for a way in. When this happens CPU usage just goes through the roof for as long as the scan lasts and it could be five minutes, could be six hours, could be all week; before it ends. The gods help you if you’re paying by CPU usage.
So you have to block access to the file. You could just block all access to XML-RPC but doing this will prevent the WP mobile app from working.
We’ll just block that specific IP address but we need to be quick about it; just do a quick one liner on the terminal before the OS just topples over and becomes completely unresponsive or worse.
This should work for any Linux distribution that has iptables out of the box which is basically all of them.
# iptables -I INPUT -s 188.8.131.52 -j DROP
-I: Insert the rule as the first rule to be applied in the INPUT chain. You could use
-A(append) but the sooner we get rid of that traffic the less work the CPU has to do.
-s: Source address, in this case 184.108.40.206, which belongs to Tencent.
-j: jump to the DROP target. If you use the REJECT target you’re just creating more work for the CPU.
As it is part of both FreeBSD and OpenBSD base installations it should be enabled in
/etc/rc.conf but from reading the (almost useless) documentation and looking around the web You need to fuck around with
pf.conf first, then you can manipulate the table. This is the first result on the web when you search for “pf block ip address”. So no one-liner that can save your life.
/etc/pf.conf and add
table <badhosts> persist block on fxp0 from <badhosts> to any
- Create table named
badhosts, and set it to be persistent in kernel memory
- Block, on interface
fxp0(you’ll want to change this), traffic from rules in the
badhoststable to any destination.
Once you have this you can manipulate the table from the command line with
# pfctl -t badhosts -T add 220.127.116.11
pfctlwill manipulate the
-Twill show statistics
addaddress 18.104.22.168 to the table
# pfctl -t badhosts -T add 203.0.113.0/24
Which will create the badhosts table automatically without having to fuck around with
/etc/pf.conf. Don’t know if this will work on FreeBSD though.
It is part of the FreeBSD base installation so it does depend on ipfw being enabled in
/etc/rc.conf but it looks like you can go
# ipfw add deny all from 22.214.171.124 to any
- Add rule denying any and all fraffic from 126.96.36.199 to any destination
At least these rules are succint and easy to read. Whomever wrote the documentation seemed to pay more attention to usage at least.
Still, fuck FreeBSD.
Super easy now that PowerShell is built into Windows itself:
PS C:\WINDOWS\system32> New-NetFirewallRule -DisplayName "Block traffic from 188.8.131.52" -Direction Inbound -LocalPort Any -Protocol Any - Action Block -RemoteAddress 184.108.40.206
-DisplayName: The human-readable name of the firewall rule
-Direction: Can be Outbound or Inbound. We want Inbound obviously.
-LocalPort: Going with any ports because fuck crackers.
-Protocol: Same, block all port
-Action: Block traffic
-RemoteAddress: Specifying only 220.127.116.11
The documentation for the commandlet is super nice. No, I’m not typing ‘cmdlet’.
The old way involved so, so manny clicks. PowerShell makes it easy.
Now all of the previous bits of code cease to have any effect after a system reboot so if you want the rules to be permanent… don’t. Blackhats will just scan from different hosts and different networks so blocking an IP address permanently is just unproductive.
A better solution is to use fail2ban:
- Block xmlrpc.php attacks with fail2ban + iptables wordpress.
- https://www.digitalocean.com/community/tutorials/how-to-protect-wordpress-with-fail2ban-on-ubuntu-14-04. This one requires a plugin
There is also CrowdSec but I haven’t personally used them.
This post came to be cos I spent 30+ minutes trying to figure out how to block traffic on a FreeBSD host and their documentation is just… inscrutable. Should you ask for help in their forums you’ll just get told to RTFM.
You end up going in circles, consuming yourself in rage and frustration which does not feel nice. Rage-posting is where it’sat.
This is pretty fucken sad lemme tell ya.
What else is there to say? We’re sad as fuck. CP, born Sweet Potato, has employed hundreds of people over the last four decades; below you’ll find a farewell from the edit staffers who rearranged those Titanic deck chairs right up until the very end.
I found my first apartment on its classifieds pages. My first job too as a barista in a Dunn Brothers location that no longer exists.
In preparing doc request responses, I just discovered my client forwarded every email convo we’ve had about her case to a friend, so they could discuss, in writing, the strengths and weaknesses of her case.
— Lawyer Cat* (@LawyerCat_) October 28, 2020
The replies are fucken hilarious too.
With the closing, 30 people will lose their jobs. It adds Minneapolis-St. Paul to the growing list of U.S. cities with no more so-called “alternative” newspapers, which rose out of the 1960s counterculture scene and flourished through the 1990s, throwing sharp elbows in political coverage and spotting the edgiest ideas in arts.
This fucken sucks