30p87

joined 1 year ago
[–] 30p87@feddit.de 58 points 11 months ago (21 children)

What religion does to people.

[–] 30p87@feddit.de 1 points 1 year ago

To be fair, Signal, Threema and Discord use Electron, and therefore are just crappy bullshit on Wayland.
Using a dedicated FF instance uses less RAM, CPU and disk space, and gives you more control over the application/website.

Discord has a web version, even if it doesn't support some features, so I use it in FF. WhatsApp has a web version, so I use it in FF.
Signal does not. So it's barely usable on my Nvidia desktop.
We do not need ""native"" Applications, made with a mix of a web version and a D tier browser engine, if we could just use the already installed, better and perfectly working browser.

  • Discords Electron was outdated and vulnerable for years, FF would be patched in days or hours in case of a zero day.
  • Electron uses much more resources than FF. Because every company thinks they need a custom version of electron, every app brings its own bloaty electron environment, despite there being a system one.
  • Electron/Chromium is extremely buggy on Wayland + Nvidia, to the point I cannot use Spotify, Discord or Steam correctly.
[–] 30p87@feddit.de 1 points 1 year ago

Does your Windows do this? *doesn't crash*

But seriously, yesterday I cloned my main partition to a new laptop into an LVM volume on LUKS. Because I did not have any way of putting the new NVMe and old SATA SSD into one machine, I just used netcat over an ad hoc network.

nc -l 10000 > /dev/main/root

on the new Laptop and

cat /dev/sda3 | nc 10.31.69.1 10000 -q 0

on the old one. Worked perfectly. Now do that on Windows with builtin tools in live boots.

[–] 30p87@feddit.de 1 points 1 year ago* (last edited 1 year ago)

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: 1000011281

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.

[–] 30p87@feddit.de 2 points 1 year ago

Well the admin of a site could opt out of using cloudflare for the time being, a user could do literally nothing. Errors in Cloudflare can easily take down their servers and therefore the CDN and access to like 20% of websites. And Bugs in Cloudflare can even leak user data.

So cloudflare can grant DDOS Protection, CDNs and other exploiting protection, but can take down large parts of everything, temporarily or permanently.

[–] 30p87@feddit.de 0 points 1 year ago (1 children)

And via a website too. That's like pushing a car. One of the main strengths of Linux are open repositories, maintained by reputable sources and checked by thousands of reputable people. Packages are checksummed and therefore unable to be switched by malicious parties. Even the AUR is arguably a safer and more regulated source. And it's actually in there.

view more: ‹ prev next ›