For the best experience on desktop, install the Chrome extension to track your reading on news.ycombinator.com
Hacker Newsnew | past | comments | ask | show | jobs | submit | history | genewitch's commentsregister

i had to ssh to our public nextcloud and run the occ empty-all-trashes-immediately --force --all-users -f command, due to its disk filling up (2.5TB!) and postgres crashing, to boot. empty-trashes command and a reboot and it came right back up.

it has been 3 days since esseph has nuked prod

"That's fine let's just restore from the backups."

"..."

"Oh no, restore failed"

(I feel like this is about 9 out of 10 companies these days)

Reminder to regularly test backup restoration!


I'm not at a machine, linux doesn't zero the swap "file" does it? if i set vm.swappiness = 0, will your "trick" work if i never hit memory pressure?

If you create the file with 'mkswap --file' it allocates the blocks. Trying to use 'swapon' with an existing sparse file won't remove the holes for you but does notice them and then refuse to use it.

> "if it doesn't raise consumer prices, it must be allowed."

are there any books or good articles with good sources about this? I'm very interested in what happened in the 80s through the mid 90s.


you know the OP has "ion" and "dust" in the middle so this was hard to find.

I normally can't stand ambient, but you went a different direction in the middle there. You should put out an album, that probably no one will buy, but maybe eventually you get asked to do soundtracks for things.

anyhow, i used to write music. a lot. sometimes you just have to get it out of your skull... https://soundcloud.com/djoutcold/valley-boulevard-0237


not picking on you, specifically, but i wonder how many people could roughly draw a cardboard box template correctly. It is an easier object than a bicycle, which people routinely have issues drawing, too.

generally, there's not "missing pieces" in a cardboard box.


Fair, that template resolves to a box but it's missing stuff like tabs to make the bottom properly stick ; and it's probably not optimal in its use of cardboard. Also it was design in a minute in draw.io to make a stranger on the internet chuckle, so lots of constraints to fulfill.

considering that ripgrep has marginal overhead over just reading the files to /dev/null, how exactly does this achieve 100x speedup?

I have a lot of use for something that can search ~1GB of text "instantly", but so far nothing beats rg/ag after the data has been moved into RAM.


The trick to optimization is not "doing faster" but "doing less". I already feel rg is missing a ton of results I want to see because it has a very large ignore list by default.

alias rg="rg -iuu"

The crate says it uses SIMD, but the crate also says that content search is 20-50 times faster. Maybe the guy unsure how fast it is or how much speedup he should claim to get recognition.

it very much depends on the platform and the operating system

for example ripgrep doesn't do any memory mapping on macos which makes it 2-3x faster just becuase of that


you can try it yourself. ripgrep search for "MAX_FILE_SIZE" in the chromium repo takes 6-7 seconds, with fff it is 20milliseconds

so essentially in this specific case it is over 1000x faster, but the repo size is huge (66G, 500k files)


i had this issue, with an even more wild set of restrictions, so i used Caddy to "output its own access log" and i had a cron job on any server at home that would hit that caddy server with a pre-defined key, so like `http://caddyserver.example.com/q?iamwebserver2j` for one server and "q?iamVOIP" for another.

https://github.com/genewitch/opensource/blob/master/caddy_ge...

https://github.com/genewitch/opensource/blob/master/show_own...

And now i have bi-directional IP exposure. it's cute because you can't tell if you just drive by, it doesn't look like it does anything. you have to refresh to see your IP, which is a little obfuscation.

if you care about security, not sure what to tell you. use port knocking.

Please note: this doesn't require installing anything on any remote, just a cron job to curl a specific URL (arbitrary URL). I used it to find the IP to ssh on remote radio servers (like allstar, d-star) for maintenance, for example.


there's iconography of a partially eaten fruit on the cases, and some of them glow.

eta: i'm just saying if i had a glowing half drank beer or partially eaten pizza on my laptop in a business meeting i am getting weird looks. Just because you all normalized glowing fruit doesn't mean the rest of us take you seriously.


there's hundreds of good books on all types of addiction, including home shopping network style, gambling / lootbox / gacha, adrenaline, sex, and so on. My spouse, at the beginning of this month, went to a 2 day series of lectures about novel treatments for gambling, as part of their CEU for their license. I know most of HN won't know what i am talking about, so:

In general professionals must be licensed and bonded. The state requires a degree and a test for the first license, then, for my spouse's, something like 8000 additional hours of training, and something like 100 hours of continuing education per year. a CEU is 1 hour of continuing education. you have ~5 years of time to transition your license by doing the above training and CEU - as a rolling window. Doctors, nurses, etc all have to do this sort of thing.

Would any of you put up with that kind of stuff to make $80k a year?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search:

HN For You