Viser indlæg fra 2018

2 finger scroll fix on Ubuntu 17.10

2 finger scrolling stopped working on my Ubuntu 17.10. This will fix the issue, but will have to be rerun after laptop sleep or reboot:

sudo modprobe -r psmouse
sudo modprobe psmouse

Data leak prevention for Danish social security numbers (regular expression)

I've created a regular expression to prevent leaking Danish social security numbers via e-mails.

I use this filter in my SPAM filter/SMTP (outgoing and incoming) server (SpamTitan) and it will match both 123456-7890 and 1234567890:

(\W|^)[0-9][0-9][0-9][0-9][0-9][0-9](-| |)[0-9][0-9][0-9][0-9](\W|$)

Delete files older than with PowerShell

I run this script on a Windows server to delete files older than X days. The files are backup files from a LINUX/Ubuntu server.