Today a client brought a Samsung Galaxy S10 which reportedly caught in fire while lying on the QI charger. The device has been in use for around 18 months.


Today a client brought a Samsung Galaxy S10 which reportedly caught in fire while lying on the QI charger. The device has been in use for around 18 months.
qpdf --password=YOURPASSWORD-HERE --decrypt input.pdf output.pdfLeave a Comment
There is no .deb package in the github Project, and generally all .deb packages for Synergy are quite old, so i rolled my own. Download it here:
4 CommentsBekannte Fehlercodes:
sudo apt-get source package
sudo apt-get build-dep package
cd package
nano debian/rules
dch -i
debuild -us -uc -b
dpkg -i ../package.deb
Leave a CommentLeave a Commentschtasks /create /tn "reboot for updates" /tr "shutdown /r /t 0" /sc once /st 21:59:00 /sd 21.02.2020 /ru "System"
If you ever find yourself confronted with a Plesk system that is running out of disk space, and you just want to get rid off all the misconfigured "keep forever" backups, here's how to remove them all from the command line:
/usr/local/psa/admin/bin/pmm-ras --get-dump-list | egrep "name=\".*.xml" | awk -F '"' '{ print $2 }' | xargs -I {} /usr/local/psa/admin/bin/pmm-ras --verbose --debug --delete-dump --dump-specification={} --session-path=/var/log/plesk/PMMLeave a Comment
./MegaCli64 -LDSetProp -Cached -LAll -aAll ./MegaCli64 -LDSetProp EnDskCache -LAll -aAll ./MegaCli64 -LDSetProp ADRA -LAall -aAll ./MegaCli64 -LDSetProp WB -LAll -aAllLeave a Comment
sudo apt --purge autoremove apport apport-gtk appstream snap epiphany-browser epiphany-browser-data epiphany-browser-data epiphany-extensions firefoxLeave a Comment
First, boot a Windows 10 or Windows Server 2019 rescue CD and enter the command prompt.
list disk select disk list part # visually check you are about # to do the right thing select part 1 delete part override select part 2 delete part override
Now continue with step 2.
Boot the gparted Live CD and move your Windows partition to the right, 250MB is usually fine, then continue with step 2.
create partition efi size=128 format quick fs=fat32 label="System" assign letter="k" create partition msr size=100 exit bcdboot C:\windows /s k: /f UEFI
That's all there is to it! Make sure to set your computer to UEFI ONLY, because it's past 2020.
Leave a CommentOn my laptop, I am running full disk encryption (LUKS with a single encrypted ext4 partition), and a single, large swap file as large as my system RAM (16GB).
Here's how to make it work:
Make your swapfile have at least the size of your systems RAM:
sudo swapoff /swapfile
sudo dd if=/dev/zero of=/swapfile bs=$(cat /proc/meminfo | grep MemTotal | grep -oh '[0-9]*') count=1024 conv=notrunc
sudo mkswap /swapfile
sudo swapon /swapfile
Note the UUID of the partiton containing your swapfile:
$ sudo findmnt -no SOURCE,UUID -T /swapfile
/dev/nvme0n1p5 20562a02-cfa6-42e0-bb9f-5e936ea763d0
Reconfigure the package uswsusp correctly:
sudo apt -y install uswsusp
sudo dpkg-reconfigure -pmedium uswsusp
# Answer "Yes" to continue without swap space
# Select "/dev/disk/by-uuid/20562a02-cfa6-42e0-bb9f-5e936ea763d0" replace the UUID with the result from the previous findmnt command
# Encrypt: "No"
Edit the SystemD hibernate service using sudo systemctl edit systemd-hibernate.service
and fill it with the following content:
[Service]
ExecStart=
ExecStartPre=-/bin/run-parts -v -a pre /lib/systemd/system-sleep
ExecStart=/usr/sbin/s2disk
ExecStartPost=-/bin/run-parts -v --reverse -a post /lib/systemd/system-sleep
Note the offset of your swapfile relative to the partition start:
$ sudo swap-offset /swapfile
resume offset = 34818
Tell grub to resume by editiing your etc/default/grub
NOTE: THE OFFSET IS DIFFERENT FROM SYSTEM TO SYSTEM! YOU NEED TO USE THE VALUE RETURNED ON YOUR SYSTEM!
GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=20562a02-cfa6-42e0-bb9f-5e936ea763d0 resume_offset=34818 quiet splash"
Update grub:
sudo update-grub
Create /etc/initramfs-tools/conf.d/resume
RESUME=UUID=20562a02-cfa6-42e0-bb9e-5e936ea763d0 resume_offset=34816
# Resume from /swapfile
Update initramfs:
sudo update-initramfs -u -k all
Now you can just hibernate your system with
sudo systemctl hibernate34 Comments
deb http://de.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse deb http://de.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse deb http://de.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse deb http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse deb-src http://de.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse deb-src http://de.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse deb-src http://de.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse deb-src http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse deb http://archive.canonical.com/ubuntu focal partner deb-src http://archive.canonical.com/ubuntu focal partner1 Comment
Most distributions come with a handy tool called powertop, that is able to automatically set kernel parameters to save energy.
sudo powertop --auto-tune
Settings are not permanent, to you can use the following snippet to create and load a systemd unit file to load the settings after rebooting your machine:
cat << EOF | sudo tee /etc/systemd/system/powertop.service [Unit] Description=PowerTOP auto tune [Service] Type=idle Environment="TERM=dumb" ExecStart=/usr/sbin/powertop --auto-tune [Install] WantedBy=multi-user.target EOF systemctl daemon-reload systemctl enable powertop.service systemctl start powertop.service1 Comment