Skip to content

u/virtualdxs

In this archive from Jan 2017 to Nov 2026

1
posts
76
comments
1
media
353
score

What exactly was the name of the device that you dd'ed? I'm confused because you say you dd'ed your home which sounds like a partition but here you say there's another partition before it that saved you so that sounds like a whole hard drive.

6 points

That's really neat, and thank you for teaching me a bit more sed today!

However, I think you're seriously overestimating the overhead of process calls. Even presuming that the dictionary is not sorted and calling sort -u rather than uniq, the tr and grep is significantly faster:

10:12:09 duncan@bravo ~ $ time (repeat 1000 sed -ne '/^[A-Za-z][Nn][Uu]$/{s/.*/\U&/;H};${g;:l;/\(\n...\).*\1/!be;s/\(\n...\)\(.*\)\1/\1\2/g;bl;:e;s/^\n//;p}' /usr/share/dict/words) >/dev/null
( repeat 1000; do; sed -ne  /usr/share/dict/words; done; ) > /dev/null  18.99s user 1.12s system 99% cpu 20.231 total
10:12:30 duncan@bravo ~ $ time (repeat 1000 tr '[:lower:]' '[:upper:]' < /usr/share/dict/words | grep -Eo '^[A-Z]NU$' | sort -u) >/dev/null
( repeat 1000; do; tr '[:lower:]' '[:upper:]' < /usr/share/dict/words | grep   4.95s user 2.00s system 166% cpu 4.181 total
10:12:37 duncan@bravo ~ $ time (repeat 1000 tr '[:lower:]' '[:upper:]' < /usr/share/dict/words | grep -Eo '^[A-Z]NU$' | uniq) >/dev/null
( repeat 1000; do; tr '[:lower:]' '[:upper:]' < /usr/share/dict/words | grep   4.79s user 1.92s system 158% cpu 4.238 total
10:12:44 duncan@bravo ~ $
3 points

That's just really bizarre to me. I've never had most of these problems. My webcams always get recognized properly. Same with my audio interface, my Cineraid, and my old external 1TB hdd. OBS works great for me. And pacman -Syu (or in my case yay) last broke my system sometime in 2019.

I will say, not a fan of bluetooth on Linux. But I wonder if most of your issues might be caused by proprietary hardware that doesn't have good Linux driver support.

5 points
  1. Pretty sure the comment you replied to is wrong - you don't need to be able to unload unused modules - you just only load modules you need.

  2. No swap? I'd recommend against that. No initrd is possible in many circumstances, but not in others and heavily restricts the complexity of your boot process. The only one you list that only applies to servers is NUMA.

6 points

Github is apparently caving immediately...which is ridiculous there are a plethora of common non-piracy uses for youtube-dl, and with the resources at it's disposal Microsoft could and should fight this, but it doesn't look like they will.

They're legally required to. That's how DMCA works. And they can put it back up once the YTDL devs submit a counter notice.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.