• 5 Posts
  • 354 Comments
Joined 2 years ago
cake
Cake day: June 16th, 2023

help-circle
  • Expansion matters because using parameters without quotes automatically splits words, and IIRC a quoted array parameter can still be split into its members — as opposed to Zsh, where word splitting doesn’t happen unprompted and quoted array parameters are flattened into a single string.

    Generally if I want to run $HOME/random executable with spaces.exe through Wine in a terminal I copy the path in Dolphin (CTRL+SHIFT+C, or CTRL+ALT+C idr) and paste it, within quotes if needed (the four extra key inputs are the annoying part).

    I find that much faster than manually typing find "$HOME" -name "random executable with spaces.exe" -type x -exec wine "{}" \;, or opening an editor to insert backslashes.



  • It’s not about the amount of swap space, it’s a problem that happens when swapping happens for big chunks of data at a time.

    Windows aggressively swaps out things way before it’s necessary, you can try increasing the system’s “swappiness”; I’m writing this from my phone, but when I get to my PC I’ll write out how to do it (unless somebody else does it before I do).

    You can set it by writing vm.swappiness=60 in a file like /etc/sysctl.d/50-swappiness.conf.
    The value 60 is arbitrary, if you increase it the system will try to swap out things more aggressively; the name of the file is also partially arbitrary, but AFAIK, it has to begin with two digits — the system will read all the files inside /etc/sysctl.d in order, and the settings in higher-numbered files will be applied over lower ones.

    Officially, this is the explaination of the vm.swappiness parameter.
    You can read and write the value with your shell:

    #!/usr/bin/bash
    sysctl vm.swappiness  # shows you the current value
    sudo sysctl vm.swappiness=69  # sets the swappiness to 69 AND shows you the new value
    










    • Halo 2
    • TLoZ:OoT
    • Half Life

    I can’t deny that nostalgia has to do with the first two fossils in the list, though I still maintain that I like them more than their latest counterparts in their franchises.
    Not Half Life though: it was ~15 years old when I first played it, no nostalgia there.

    Still, between the many games I would gladly build a monument to, those are games that I can play beginning to end without getting bored, annoyed or burnt out (as long as you allow me to use the Ship Of Harkinian randomizer for Z:OoT, otherwise replace that game with Perfect Dark ig).