Hi, I’m Shauna! I’m a 37 year old transgender woman from Ontario, Canada. I’m also a Linux enthusiast, and a Web Developer by trade. Huge Star Trek fan, huge Soulsborne fan, and all-around huge nerd.

  • 0 Posts
  • 77 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle







  • It’s definitely an edge case by say you’re in ~/ and you run a script like ./code/script.sh then it thinks the current working direct is ~/ rather than what is probably intended which is ~/code/. If your bash script uses full paths like /home/$USER/code/ then it will still run correctly regardless of the current working directory that the scrip was run from.







  • You need to learn bash scripting. Also, there are a few default files that the .bashrc uses which can be helpful to compartmentalize the custom things you do to it so that it’s easier to undo if you screw something up. To do that, just add this to the bottom of your .bashrc

    if [ -f ~/.bash_custom ]; then
        . ~/.bash_custom
    fi
    
    

    What that will do is check if the .bash_custom file exists and then run the .bash_custom file in your home directory and apply anything in there. Also, you can call the file whatever you like, but bash does have some defaults that it will check for and run them without editing the .bashrc at all. It’s kind of hard to find a list of the the files that it automatically checks for, but I know that .bash_aliases is one of them, and I think it checks .bash_commands as well, but I’m not entirely sure. Either way, you can force it to check your custom one by using the code above.

    Then you can create the file and add any custom things in there that you like. For example, I like to frequently update through the terminal but running sudo apt update && sudo apt upgrade && sudo apt autoremove && flatpak upgrade was a bit tedious and I wanted a bit less feedback so I made a custom alias for my personal use.

    alias update='echo "Updating packages..."; sudo apt update -y &> /dev/null; echo "Packages updated."; echo "Upgrading packages..."; sudo apt upgrade -y &> /dev/null; echo "Packages upgraded."; echo "Cleaning up packges..."; sudo apt autoremove -y &> /dev/null; echo "Packages cleaned up."; echo "Updating flatpaks..."; flatpak update -y &> /dev/null; echo "Flatpaks updated."'

    Which hides most of the text from updating and just gives me feedback on what it’s currently doing if I don’t really care to know all of the details. So now I just run update in the terminal and plug in my password and it updates and upgrades everything in a human readable way.

    There’s a lot that can be done with bash scripting, like editing files, iterating over files and directories, setting environment variables. It’s basically a full programming language so the limits are mostly your imagination.


  • ShaunaTheDead@kbin.socialtoShowerthoughts@lemmy.world*Permanently Deleted*
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    10 months ago

    You’re assuming that physics would be the same in every other universe. Physics works the way it does in our universe largely because of constants, but we don’t know why many of these constants exist and we probably never will. The idea of a god creating out universe seems like an obvious explanation, but more likely it’s survivor bias. Specifically, the idea that since we happen to live in a universe where everything is just right and so we look at that as a miracle and probably planned. In reality, it’s more likely that there are actually an infinite number of universes with different physics where life is impossible, but that means that even if less than 1% of all of those infinite universes is able to support life, there are still so, so many universes in which it was. Many of them being nearly identical to our own, and many of them being so strange and alien that we probably couldn’t even wrap our heads around the strangeness even if we had an eternity to study them.




  • My biggest concern with Epic is their insistence on kernel level anti-cheat which is just ridiculous overkill and probably being used as spyware let’s be honest. They have many ties to China’s Tencent which has a 40% stake in the company and is known to basically just be an extension of the Chinese government.

    There’s also the very odd fact that just having the Epic Games Store open in the background will deplete your laptops battery life by up to 20%. Is it just horribly optimized and uses all that battery even when idling, or is it doing something nefarious in the background? We don’t know.

    As for exclusives, they have bought exclusives that were mostly crowd funded from the start which is quite the kick in the teeth to the early investors that helped get the project off the ground. And there were even some exclusives that were already listed for pre-order through Steam, forcing everyone to need to get a refund.

    Plus, any good will that they’ve purchased so far is just in service of making a good name for themselves. They’ve been losing around $400 million per year since 2019 just to bring in new users. They’re going to suddenly turn around and start being cut-throat as soon as they think they can.

    They are not consumer friendly, they want to dictate trends in gaming. Valve is already the king of that throne and they’re fairly benevolent and have pushed trends that are good for gaming and consumers overall. I have serious doubt that Epic would be anywhere near as good for gaming as Valve has been if they should actually become profitable, and an industry leader. Especially when it’s projected that they won’t be profitable until 2027, which means they’ll need to recoup their investment of nearly $3.2 billion since 2019.


  • Ugh yeah, FF7 when Aeris is killed by Sephiroth. And the scene where Cloud carries her into the water… I was bawling. Afterwards I think I just sat there dumbfounded, staring at the empty spot in my party until after like 5 minutes I turned off the game cause I needed a break to mourn. I know the graphics don’t really hold up these days, but it was all to real to me as a child and it was one of my first experiences with death even though it was just a video game character.