

Canadian software engineer living in Europe.
I have a few interesting ones.
Download a video:
alias yt="yt-dlp -o '%(title)s-%(id)s.%(ext)s' "
Execute the previous command as root:
alias please='sudo $(fc -n -l -1)'
Delete all the Docker things. I do this surprisingly often:
alias docker-nuke="docker system prune --all --volumes --force"
This is a handy one for detecting a hard link
function is-hardlink {
count=$(stat -c %h -- "${1}")
if [ "${count}" -gt 1 ]; then
echo "Yes. There are ${count} links to this file."
else
echo "Nope. This file is unique."
fi
}
I run this one pretty much every day. Regardless of the distro I’m using, it Updates All The Things:
function up {
if [[ $(command -v yay) ]]; then
yay -Syu --noconfirm
yay -Yc --noconfirm
elif [[ $(command -v apt) ]]; then
sudo apt update
sudo apt upgrade -y
sudo apt autoremove -y
fi
flatpak update --assumeyes
flatpak remove --unused --assumeyes
}
I maintain an aliases file in GitLab with all the stuff I have in my environment if anyone is curious.
I have much the same:
The only difference is that I’m using a Synology 'cause I have 15TB and don’t know how to do RAID myself, let alone how to do it with an old laptop. I can’t really recommend a Synology though. It’s got too many useless add-ons and simple tools like rsync never work properly with it.
Yeah this was a deal-breaker for me too.
TIL about using lsblk
instead of just reading through the output of journalctl
to find the disk and partitions. Thanks!
Really? All I’ve seen is a Flatpak that’s really just a wrapped web view. Is there now a native version of Teams for Linux?
Yes. Tailscale is surprisingly simple.
# systemctl start tailscale
# tailscale up
This is what I get for posting at 1am. Thanks for the clarification. Yeah I just assumed it was the same situation as coreutils.
Granted, sudo isn’t in coreutils, but it’s sufficiently standard that I’d argue that the licence is very relevant to the wider Linux community.
Anyway, I answered this at length the last time this subject came up here, but the TL;DR is that private companies (like Canonical, who owns Ubuntu) love the MIT license because it allows them to take the code and make proprietary versions of it without having to release the source code. Consider the implications of a sudo
binary that’s Built For Ubuntu™ with closed-source proprietary hooks into Canonical’s cloud auth provider. It’s death by a thousand MIT-licensed cuts to our once Free operating system.
Is it GPL though? If this is a case of MIT-licensed stuff weaseling its way into Linux core utils, I’m not interested.
The version of Firefox that ships with Debian is quite old if I recall. You might want to try installing it either as a flatpak or as a separate apt repo from Mozilla directly to see if that solves it.
I mean, you can buy it and use it in a general purpose fashion, and yeah, those cores would do wonders for all sorts of compiles. Also, it can be useful if you’re like me and do a lot of Dockerised development. Given that most games are x86 only though, sadly this would be no good :-(
The Ampre Altra runs from 32 to 128 cores (dear gods that’s beautiful), but with that architecture, and the company’s stated purpose, it makes more sense in a computer meant to be used as a server rather than a desktop gaming rig. You’d use a chip like that in a Kubernetes cluster for example.
Combined with an Nvidia card, a brand notorious for being a Pain In The Ass in Linuxland, I’m going to go out on a limb here and suggest that the intended purpose of a box like this is a server for AI/ML-based services.
Before wading into the Wine waters, you might want to have a look at the Free and excellent Kdenlive. I’ve no experience with Filmora, but Kdenlive is surprisingly powerful.
I had the same reaction until I read this.
TL;DR: it’s 10-50x more efficient at cleaning the air and actually generates both electricity and fertiliser.
Yes, it would be better to just get rid of all the cars generating the pollution in the first place and putting in some more trees, but there are clear advantages to this.
I’ve got an Arctis 7 myself and it works just fine in Linux, no special drivers or anything needed. However, there are a bunch of features in their proprietary app which I used for all of a few minutes on a Windows machine (I think there was an equaliser in there?) and that might work in Linux under Wine… but I’m not sure as I’ve never bothered.
I was one of the people who based my opinion of Proton on that tweet and swore off them until someone else shared that link with me. It’s excellent, thorough, and makes a convincing case that Yang is actually left-leaning. I can only assume that you’re getting downvotes from people who haven’t read it.
Well, welcome to the Free side fellow traveller :-) I too ditched Windows for (different) political reasons 25 years ago, and haven’t looked back. You’ll love it here, 'cause if you don’t, you now have the power to change it 'til you do.
Sorry, I was on mobile so I over-simplified 'cause digging up the details on Wikipedia wasn’t so easy while also juggling my kid :-) I’ll try to amend the original post.
I don’t think there’s an official “way”, but here’s mine (which I love):
On start-up I open all the apps I usually use, one per designated workspace:
Workspaces 6-9 are left empty, ready for whatever app I need in the moment, but only ever one app per workspace.
With this setup, I’ve mapped
Ctrl+Fx
to each workspace, soCtrl+F4
takes me to PyCharm where I write the code, andCtrl+F5
followed by another F5 takes me to Firefox and reloads the page.Ctrl+F3
is always the terminal, etc., so you quickly start building these shortcuts to mean Fwhatever is $APP_NAME.I almost never use the mouse, unless what I’m doing is necessarily mouse-driven: browsing or drawing charts etc. Everything else is keyboard-driven.