Apache

CLI

# Enable modules
a2enmod ssl
a2enmod rewrite

# Disable autoindex
a2dismod autoindex

# Enable default SSL config
a2ensite default-ssl

Configuration

# HTTP to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI}

Upgrade Debian 12 to Debian 13

I use those steps on LXC virtual in Proxmox:

  1. Make sure all packages are upgraded: apt update && apt upgrade
  2. Backup container in Proxmox
  3. Edit release version: sed -i'.bak' 's/bookworm/trixie/g' /etc/apt/sources.list
  4. Update other configuration files in /etc/apt/sources.list.d/ appropriately
  5. Update packages index: apt update
  6. Do minimal system upgrade: apt upgrade --without-new-pkgs
  7. Do full upgrade: apt full-upgrade
  8. Restart the system: reboot

Connect to Proxmox SPICE console (virt-viewer) on MacOS

Install virt-viewer using brew:

brew tap jeffreywildman/homebrew-virt-manager
brew install virt-viewer

After installation open new terminal session. You should be able to open pve-spice.vv using CLI.

remote-viewer pve-spice.vv

The command should be located in /opt/homebrew/bin/remote-viewer.

You can also use MacOS Automater to create a redirector that can be used to open the .vv files from browser.

/opt/homebrew/bin/remote-viewer "$@"

When you click Open on the pve-spice.vv you can Choose pve-spice-launcher that we created earlier.

Stream TVHeadend using TiviMate

I used to install Kodi with TVHeadend plugin. But on a new Google TV I had issues with Kodi not starting under child profile, because of some bug with permission issues to the storage.

TiviMate seams to be working fine, you just need to add Playlist URL and EPG URL.

http://tvheadend:9981/playlist/channels.m3u
http://tvheadend:9981/xmltv/channels

Systemd configuration for Bitwarden

If you run Bitwarden eg. in Proxmox LXC you need to make sure Bitwarden start automatically. Create a configuration file in /etc/systemd/system/bitwarden.service with the following contents.

[Unit]
Description=Bitwarden
Requires=docker.service
After=docker.service

[Service]
User=bitwarden
Restart=on-failure
ExecStart=/opt/bitwarden/bitwarden.sh start
ExecStop=/opt/bitwarden/bitwarden.sh stop

# Script starts docker images and ends
Type=oneshot
RemainAfterExit=true

[Install]
WantedBy=default.target

Enable it, start it and check the logs.

systemctl daemon-reload
systemctl enable bitwarden
systemctl start bitwarden
journalctl -f -u bitwarden

svn

========================================
        Subversion (SVN) Cheatsheet
========================================

Checkout
  svn checkout URL [url]

Update working copy
  svn update

Commit changes
  svn commit -m "Changes description"

Working copy status
  svn status

Show diff
  svn diff

Show diff with colors (requires colordiff package)
  svn diff | colordiff

Add new file
  svn add file

Copy file
  svn copy file

Delete file
  svn delete file

Rename / move file
  svn move old_name new_name

Show log (history)
  svn log [file]

Revert local changes
  svn revert file
  svn revert -R directory (recursively)