Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)P
Posts
1
Comments
631
Joined
2 yr. ago

  • Though I admit, I'm already there extremely rarely.

    I always experience an onosecond after accidentally clicking on a Reddit thread in the search results. Followed by a short wave of disgust by the often mean/negative comments and pressing Mouse 4/Back.

    Wait, I just realized I can block reddit.com completely in kagi. 10$/month nicely spent; begone thot!

  • As I use bash basically for everything, I wanted my prompt to be as basic as possible (No newlines, fixed format) and compatible across my PC, Laptop as well as server and Pi via SSH.
    Therefore, it's a simple __prompt_command function in my .bashrc (nearly) everywhere.
    It's structured as:

    1. Terminal/TTY number in orange
    2. Username in green (for roots .bashrc it's red)
    3. Hostname in green
    4. Current working dir in blue
    5. Current git branch in yellow (if in a git repo)
    6. Exit code in red (if not 0)

    Looks like this:

    I used some prompt generator to get the variables and colors right, and then wrapped parts in if-then where needed.
    The result is:

     
        
    __prompt_command() {
        local EXIT="$?"
        PS1="\[\033[38;5;216m\](\l)\[$(tput sgr0)\] \[$(tput sgr0)\]\[\033[38;5;85m\]\u@\H\[$(tput sgr0)\]:\[$(tput sgr0)\]\[\033[38;5;68m\][\w\[$(tput sgr0)\]"
        local GIT_BRANCH="$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')"
        if ! [[ -z "$GIT_BRANCH" ]]; then
            PS1+=":\[$(tput sgr0)\]\[\033[38;5;142m\]${GIT_BRANCH}\[$(tput sgr0)\]"
        fi
        PS1+="\[\033[38;5;68m\]]\[$(tput sgr0)\]"
        if [ $EXIT != 0 ]; then
            PS1+=":\[$(tput sgr0)\]\[\033[38;5;1m\]${EXIT}\[$(tput sgr0)\]"
        fi
        PS1+="\\$ \[$(tput sgr0)\]"
    }
    
    
      

    In practice I use every aspect of it. The terminal number is useful for sorting, the username is needed especially when handling e.g. git or db servers with specific users, and one has a terminal as the user, one as root and one as normal user. Hostname is obviously important with multiple ssh sessions open all the time (especially without terminal emulator titles). Typing pwd all the time would be very tedious, as I only move around my system in bash, so having it in the prompt is nice. If I am in a git repo I also need to know the branch and otherwise it's not displayed anyway. Quickly identifying silently failed commands is tedious, especially because issuing one command overwrites $? again, so 'logging' it if necessary is nice.

  • 0.980s by using ydotool key 29:1 20:1 20:0 29:0 -d 0 && ydotool type "about>preferences\n" -d 0 && sleep 0.26 && ydotool type "search engine\t" -d 0 && ydotool key 103:1 103:0 -d 20

  • The paranormal experience was actually a simple one, checking a 1 TB Nvme and 2 1 TB HDDs every boot is just not efficient, especially if they shut down unexpectedly before. Changing the 2 to a 0 for the backup LV in /etc/fstab fixed that.

  • Just another example of Windows missing key components for being a good operating system. Yes, they have the Microsoft Store, but it's filled with fakes and FOSS programs for 20$ or more. Meanwhile MacOS makes it really hard to install from other sources and provides almost everything in the App Store, and we don't even need to talk about Linux.

  • Probably because chromium based browsers are often marketed as completely separate ones. Browsers based on it want to make the impression that they are a unique browser with outstanding functionality etc.
    Edge? It's Edge, OUR BROWSER, YOU DON'T NEED ANYTHING ELSE.
    Vivaldi? It's Vivaldi, "we built the best browser with most features blabla".
    Opera? It's Opera, "better, faster and more secure than a default browser".
    In contrast, librewolf.net's first sentence is literally "A custom version of Firefox...". Mullvad also says it's a collaboration with Tor, and a paragraph down they explicitly say it's Tor, and therefore FF, based.
    Many users, me included, don't see Librewolf or Tor as separate browsers, because the former is basically just a preconfigured FF, and the latter adds an access point to the Tor network and removes some privacy/security harming features (eg. Sync). The Browser, its features, design and features, stay the same.

  • Of course not.
    Google, the search engine, changed something in their config. Now Google apparently looks through each keyword, it's definitions, and looks specifically for those definitions. Which means if a word has many different definition, Google will probably only return the most popular one, as in the one making the most sense for most users. They could use their "advanced algorithms" to guess what the user actually means, but if they do, it does not work at all. At this point, even Bing/DuckDuckGo and Kagi are better.