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
  • 99 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle


  • I love Eric Barone! He sticks to his convictions in the way I wish more video game developers would. He’s made so much money from Stardew Valley that he never needs to work a day for the rest of his life, but he chooses to put in the time to continue releasing free content and working on new passion projects and giving back to the community. He could have monetized the hell out of Stardew, releasing DLCs and hired a huge development team to crank out new content to make him richer until the original game became unrecognizable.

    So many game developers have gone down that route, or simply sold off their creation to a company that they know full well plans to do just that.

    Also, I just love his mentality about things. He knows that nobody really asked for Haunted Chocolatier, and he doesn’t really care if it’s successful, he just wants to make something new for himself. I hope it is successful, but I’m glad to see that he’s not hinging his hopes on it’s success but instead just enjoying the process of making something, which is really beautiful and I think more people should focus their energies on those kinds of exploits and outcomes.













  • 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.





  • ShaunaTheDead@kbin.socialtoMemes@lemmy.mlHonestly
    link
    fedilink
    arrow-up
    50
    arrow-down
    2
    ·
    edit-2
    8 months ago

    In most European countries you need a 4 year university degree in criminology to become a cop. They have the same standards for average police officers as we in North America have for Federal law enforcement. So while it’s certainly true that some European countries have shitty cops, the ones with stricter barriers to entry have slightly less shitty cops.

    Here’s an interactive map although it does seem to be missing a fair bit of data for Europe. The USA has the most abysmal Police training time at just 500 hours of training between being a civilian and being a Police officer.

    edit: lol whoops I never actually posted the link earlier. Here it is: https://worldpopulationreview.com/country-rankings/police-training-requirements-by-country


  • 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.