Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
May 17 14:41:51 desk systemd-journald[288]: Journal stopped
May 17 14:41:51 desk dnsmasq[840]: exiting on receipt of SIGTERM
May 17 14:41:51 desk systemd-journald[288]: Received SIGTERM from PID 1 (systemd-shutdow).
May 17 14:41:51 desk systemd-shutdown[1]: Sending SIGTERM to remaining processes...
May 17 14:41:51 desk systemd-shutdown[1]: Syncing filesystems and block devices.
May 17 14:41:51 desk systemd[1]: Shutting down.
May 17 14:41:51 desk systemd[1]: Reached target poweroff.target - System Power Off.
May 17 14:41:51 desk systemd[1]: Finished systemd-poweroff.service - System Power Off.
May 17 14:41:51 desk systemd[1]: systemd-poweroff.service: Deactivated successfully.
May 17 14:41:51 desk systemd[1]: Reached target final.target - Late Shutdown Services.
@imthenachoman
imthenachoman / README.md
Last active August 20, 2023 20:48
Bash script to open files with `kate` from the CLI and ask for `sudo` password if the current user does not have edit access to the file.

Overview

For whatever reason, openSUSE disables the polkit for Kate that will make it so Kate will prompt for a password when you try to edit root owned files.

The only way I could figure out how to get Kate to open these files is using the command VISUAL="kate -b" sudoedit <file>.

So I wrote a little helper script (to put be put in .bashrc) that opens kate for any file.

  • If the current user has write access to the file/folder, it'll open kate as the current user
  • If the current user does not have write access to the file/folder, it'll use sudoedit to open the file.
@imthenachoman
imthenachoman / 00 README.md
Last active February 20, 2024 11:04
Debian snapper apt script to include full apt command including arguments as snapshot description

This gist includes an enhancement to Debian's snapper package.

The current (as of 2023-07-23) snapper package includes an apt configuration that will automatically take snapper snapshots when you use apt to install/remove/etc. It will add use "apt" as the description of the pre/post snapshot.

With the below changes to the /etc/apt/apt.conf.d/80snapper file and associated dpkg-pre-post-snapper.sh file, snapper will include the full apt command, including the arguments, in the snapshot description.

For example:

$ sudo apt install funky
@imthenachoman
imthenachoman / Developing a GAS Powered Google Workspace Add-on And Launching It To The Marketplace.md
Last active April 28, 2024 20:29
Developing a GAS Powered Google Workspace Add-on And Launching It To The Marketplace