Skip to content

Instantly share code, notes, and snippets.

@digitaltrails
digitaltrails / zypphist.py
Last active September 17, 2024 19:44
Zypper history summarise rpm changes
#!/usr/bin/env python3
#
# Usage: sudo zypphist.py [options]
#
# Report change log entries for recent zypper installs.
#
# Options:
# -h, --help show this help message and exit
# -i ZYPP_INSTALL_DAYS, --installed-since=ZYPP_INSTALL_DAYS
# Include anything zypper installed up to the specified
@digitaltrails
digitaltrails / SUSE-OpenSUSE.dot
Created September 28, 2023 06:47
SUSE OpenSUSE relationships
digraph G {
fontname="Helvetica,Arial,sans-serif"
node [fontname="Helvetica,Arial,sans-serif", style=bold]
edge [fontname="Helvetica,Arial,sans-serif", style=bold]
subgraph cluster_0 {
color="red";
label=" SUSE ";
@digitaltrails
digitaltrails / opentrack-mouse.py
Last active December 10, 2022 09:38
opentrack_mouse - opentrack to Linux evdev HID mouse events
#!/usr/bin/python3
"""
opentrack_mouse - opentrack to Linux HID mouse events
=====================================================
Convert opentrack UDP-output to Linux-HID mouse events.
Usage:
======
#!/bin/bash
# OpenSUSE zypper - Purge off any /var/cache/zypp rpms that are not installed in this system
if [ $# -ne 0 -a "$1" != "--report-only" -a "$1" != "--purge" ]
then
>&2 echo "ERROR: invalid argument $1 - valid arguments are --report-only or --purge"
exit 1
fi
@digitaltrails
digitaltrails / notify-desktop
Last active March 22, 2024 09:19
notify-desktop - linux find and notify desktop session
#!/bin/bash
# Provides a way for a root process to perform a notify send for each
# of the local desktop users on this machine.
#
# Intended for use by cron and timer jobs. Arguments are passed straight
# to notify send. Falls back to using wall. Care must be taken to
# avoid using this script in any potential fast loops.
#
# X11 users should already have a dbus address socket at /run/user/<userid>/bus
# and this script should work without requiring any initialisation. Should
@digitaltrails
digitaltrails / olyWifiSync.sh
Last active April 20, 2024 08:51
Olympus camera WIFI download/mirror script
#!/bin/bash
##
## olyWifiSync - Mirror Olympus camera via WIFI
##
## Usage: olyWifiSync [-d|-n|-f|-p|-h] ESSID PASSWORD [wifidevice]
## -d download only, don't try to configure the WIFI device)
## -n no disconnect, do not disconnect the WIFI on completion
## -f full download, do not skip over files that already exist
## -p power off camera at end of transfer
## -h help