cally [he/they]

what are you doing in my lemmy profile

  • 34 Posts
  • 1.37K Comments
Joined 2 years ago
cake
Cake day: September 14th, 2023

help-circle








  • 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