Skip to content

Instantly share code, notes, and snippets.

I run this on Intel CPU with integrated GPU with suppport for face recognision - i3-8100T . Your CPU need to support JPEG encoding: https://en.wikipedia.org/wiki/Intel_Quick_Sync_Video#Hardware_decoding_and_encoding . The best choice is a processor from the Coffee Lake series.

To run kernel with GPU virtualization you need to boot with params:

init_on_alloc=0 i915.enable_gvt=1 kvm.ignore_msrs=1 intel_iommu=on i915.enable_guc=0

Next, you need this hook to libvirt,

Variables:

To communicate with your AC over LAN network without connection to internet you need:
https://github.com/kueblc/midea-msmart/tree/support-8370
In example.py fill:
device = ac('YOUR_AC_IP', YOUR_AC_ID)
device.authenticate('YOUR_AC_MAC', 'YOUR_SSID', 'YOUR_WIFI_PW')
Then you must run this code on something computer:
#!/usr/bin/python3
@WMP
WMP / Automatical fix ffmpeg in opera on ubuntu 20.04
Last active August 21, 2021 15:16
Automatical fix ffmpeg in opera on ubuntu 20.04
This gist describe how to create apt hook. When you install or upgrade any package,
hook /etc/apt/apt.conf.d/80upgradehook is running.
Hook run script /usr/local/sbin/apt_after_upgrade_hook and this script check if
/usr/lib/x86_64-linux-gnu/opera/libffmpeg.so is symlink,and when not make symlink to newest
libffmpeg fromchromium-ffmpeg snap.
sudo snap install chromium-ffmpeg
sudo echo 'DPkg::Post-Invoke {"/usr/local/sbin/apt_after_upgrade_hook";};' > /etc/apt/apt.conf.d/80upgradehook