Skip to content

Instantly share code, notes, and snippets.

@neitsab
neitsab / aliases
Last active August 9, 2024 14:23
Personal aliases used across distributions
## systemd
# Test whether sudo exists and who's the calling user
if command -v sudo >/dev/null 2>&1; then
[[ "$EUID" -ne 0 ]] && alias sctl='sudo systemctl' || alias sctl='systemctl'
else
alias sctl='systemctl'
fi
alias enable='sctl enable'
alias disable='sctl disable'
@neitsab
neitsab / mkosi.default.all
Last active April 5, 2022 20:45
All possible parameters for mkosi.default as of version 10; uncomment or remove declarations as needed.
[Distribution]
; Distribution=
; Release=
; Repositories=
; Mirror=
; Architecture=
[Output]
; Format=
; Output=

Keybase proof

I hereby claim:

  • I am neitsab on github.
  • I am neitsab (https://keybase.io/neitsab) on keybase.
  • I have a public key ASC8l6M-5FmU-jXN3UrwvBigDnG1JwBeYnQPHCpm86Ouawo

To claim this, I am signing this object: