cally [he/they]

what are you doing in my lemmy profile

  • 3 Posts
  • 434 Comments
Joined 2 years ago
cake
Cake day: September 14th, 2023

help-circle

  • I always think of segunda-feira as the first day of the week, despite the name; though it appears that calendars here start on Sunday (something I’ve never noticed).

    While it is the first day of the work week, it makes more sense to think of it as the second day in Portuguese so the naming stays consistent.








  • The answer is simple: when I used Debian, I was just starting out with Linux and didn’t mess with systemctl at all. It was an ok beginner experience (I’d already used Mint before trying Debian, so I was at more of an intermediate level) but I probably wouldn’t like it as much nowadays.

    I like the idea of using different software for different things, why do systemd timers exist when there’s already crontab, for example?

    Meanwhile, I mostly used Arch on my server where I had to deal with all the systemd stuff, which was rarely useful for my purposes.







  • perhaps i too will post code on the internet

    here is a shell script i wrote for automating filenames for markdown files (blog posts):

    code
    #!/bin/sh
    set -e
    
    datecmd="date +%Y-%m-%d"
    
    if [ -z "$1" ]; then
      printf "Post title: " >&2
      read -r title
    else
      title="$1"
    fi
    
    file="$($datecmd)_$title.md"
    
    if [ -f "$file" ]; then
      printf "Error: post '$file' already exists.\n" >&2
      exit 1
    fi
    
    ${EDITOR:-nano} "$file"
    

    im not sure why i made it since i could just look at what date it is and write it down manually in the file name, but i felt like doing that as a quick hack






  • I had already converted my home manager configuration into normal config files and was using Home Manager just to manage symlinks.

    I was using Nix for system configuration but that doesn’t mean that I forgot how to set up a Linux system by more conventional methods (it’s like learning how to ride a bike). While I do like the declarative aspect, doing everything in one language didn’t appeal anymore after over a year of using NixOS…

    Also, I wanted a package manager that told me what packages would be updated, and which let me search packages from the command line easily… Nix didn’t provide that and it was annoying me.

    I do miss flake.nix or shell.nix files and Nix shells though. But XBPS (Void’s package manager) has its fair share of cool things as well and seems easier to understand, which is a bonus.