>>108830070
for a personal setup (generally a list of programs, configs, dotfiles, etc) I use ansible. It has saved me a lot of time over the years.
no notes because it's generally self explanatory, just dump configs and install list of programs via package manager
---
for services and other things:
yes, everything I do is written down in notes
saves me so much time when I inevitability need to do it again
some tips you would probably figure out yourself:
1. make sure to keep links to whatever guides you are using, much faster than using search engines
2. don't be afraid to add keywords to sections so you can find it easier in the future (you should set up fzf, ag, etc in your editor)
3. use environment variables whenever you can in your commands, easier to update than replacing references
4. use a heredoc to for configs, appending to files, etc. Have one liners you can copy/paste to make small edits (via sed for example)
what makes this even more useful is having environment variables referenced.
generally you want to optimize your notes for blind copy/pasting instead of reading
export MY_VAR=abc
cat >> /etc/somefile.txt << EOF
# append this line
# can reference variables if you want
some_setting: $MY_VAR
EOF
# alternative format
cat <<EOF >> somefile.txt
# insert text here
EOF
# if you want to overwrite some file use a single >
cat > somefile.txt << EOF
# some content
EOF
cat <<EOF > somefile.txt
# some content
EOF
4. use markdown
personally while I learn something new I am writing my notes at the same time, this way I get to preserve every issue I encounter, saves me from running into the same issues. Having notes is something I wish I started sooner, they become more and more useful as time goes on and you forget details