Skip to content

Instantly share code, notes, and snippets.

View cretudorin's full-sized avatar

Dorin Cretu cretudorin

  • Ilmenau, Thüringen
View GitHub Profile
@eliasp
eliasp / README.md
Last active February 13, 2025 10:38
Run OnlyOffice Document Server using Podman and Caddy on Ubuntu 20.04

This is just a basic setup.

  • automatic TLS via Caddy's built-in ACME support
  • no backup of any data
  • no advanced container security

Install Podman

source /etc/os-release
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | apt-key add -
@ikbelkirasan
ikbelkirasan / change_window_opacity.sh
Last active February 28, 2025 22:00
Change window opacity in Linux using keyboard shortcuts
#!/bin/bash
function get_active_window() {
printf "0x%08x" $(xdotool getactivewindow)
}
function get_current_opacity() {
window="$1"
opacity=$(xprop -id $window | grep _NET_WM_WINDOW_OPACITY | awk '{print $3}')
if [ -z $opacity ]; then