• 113 Posts
  • 889 Comments
Joined 1 year ago
cake
Cake day: September 13th, 2024

help-circle

  • My biggest issue with Windows is the lack of control I have of the actual hardware I own. I don’t own my work computer to begin with nor am I entitled to have full control over it so it doesn’t matter.

    I do use WSL, but mainly because I’m more familiar with Bash than Powershell and don’t have to constantly figure out how Powershell does things I already know how to do.

    It’s the same reason I have no problem using my company’s OneDrive for work files when I go out of my way to avoid putting any of my personal data on the cloud. It’s their data to begin with and they don’t care so I don’t care neither.

    It’s also nice because I can set up a Linux-only file server at home with things like SSHFS and the Windows computer can’t even see it since it has no SSH access doesn’t even support the network share protocol. If I had an SMB share it would show up on my work computer because it autodetects it.


  • parallel, easy multithreading right in the command line. This is what I wish was included in every programming language’s standard library, a dead simple parallelization function that takes a collection, an operation to be performed on the members of that collection, and optionally the max number of threads (should be the number of hardware threads available on the system by default), and just does it without needing to manually set up threads and handlers.

    inotifywait, for seeing what files are being accessed/modified.

    tail -F, for a live feed of a log file.

    script, for recording a terminal session complete with control and formatting characters and your inputs. You can then cat the generated file to get the exact output back in your terminal.

    screen, starts a terminal session that keeps running after you close the window/SSH and can be re-accessed with screen -x.

    Finally, a more complex command I often find myself repeatedly hitting the up arrow to get:

    find . -type f -name '*' -print0 | parallel --null 'echo {}'

    Recursively lists every file in the current directory and uses parallel to perform some operation on them. The {} in the parallel string will be replaced with the path to a given file. The '*' part can be replaced with a more specific filter for the file name, like '*.txt'.



















  • Is it possible to use LUKS with a password with a Windows NTFS partition and just have GRUB decrypt it to let Windows boot? Don’t intend to dual boot Windows ever but just curious.

    Frankly I trust a password stored in my brain way more than whatever keys the TPM is storing. No way something being pushed this hard by Westoid tech corporations doesn’t have a backdoor that just unlocks everything for “approved” parties.