danielquinn

joined 2 years ago
[–] danielquinn@lemmy.ca 7 points 3 months ago (6 children)

I've been thinking about setting up Anubis to protect my blog from AI scrapers, but I'm not clear on whether this would also block search engines. It would, wouldn't it?

[–] danielquinn@lemmy.ca 8 points 3 months ago

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:

  1. Slack/Teams/Mattermost, whatever my work requires.
  2. Thunderbird
  3. Kitty
  4. PyCharm/RustRover, whatever the job requires
  5. Firefox

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, so Ctrl+F4 takes me to PyCharm where I write the code, and Ctrl+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.

[–] danielquinn@lemmy.ca 4 points 3 months ago* (last edited 3 months ago)

I don't know about LaTeX support, but Joplin supports a lot of Markdown extensions out of the box (I've used it for Mermaid charts for example) and it's Free software.

Edit: it looks like Joplin supports something called Katex. I don't know if that does it for you.

Full details are here

[–] danielquinn@lemmy.ca 5 points 4 months ago (2 children)

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.

[–] danielquinn@lemmy.ca 6 points 4 months ago* (last edited 4 months ago)

I have much the same:

  • Files on the network with NFS
  • Kodi on an old laptop under the TV so we can watch said files.
  • Syncthing on our phones and laptops to pull films from there onto that file server.

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.

[–] danielquinn@lemmy.ca 1 points 4 months ago

Yeah this was a deal-breaker for me too.

[–] danielquinn@lemmy.ca 3 points 4 months ago (1 children)

TIL about using lsblk instead of just reading through the output of journalctl to find the disk and partitions. Thanks!

[–] danielquinn@lemmy.ca 1 points 4 months ago (1 children)

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?

[–] danielquinn@lemmy.ca 11 points 4 months ago (1 children)

Yes. Tailscale is surprisingly simple.

# systemctl start tailscale
# tailscale up
[–] danielquinn@lemmy.ca 6 points 5 months ago* (last edited 5 months ago)

This is what I get for posting at 1am. Thanks for the clarification. Yeah I just assumed it was the same situation as coreutils.

[–] danielquinn@lemmy.ca 29 points 5 months ago (2 children)

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.

[–] danielquinn@lemmy.ca 12 points 5 months ago (7 children)

Is it GPL though? If this is a case of MIT-licensed stuff weaseling its way into Linux core utils, I'm not interested.

view more: ‹ prev next ›