- ]c - next difference
- [c - previous difference
- Ctrl+w+w - switch windows
- do - diff obtain
- dp - diff put
- zo - open folded text
Bypass disable-devtool
(Working as of 2025-02-09)
There are websites that use disable-devtool to prevent you from opening or using devtools. They typically prevent you from right clicking or using the keyboard shortcut to open devtools. Even if you successfully do so, they detect it and redirect you elsewhere. You can bypass this by using one of the following ways.
If the shortcut F12 on Windows or Option + ⌘ + I on Mac do not work. Press the three vertically aligned dots in the top right corner of your Google Chrome or Microsoft Edge window. Under the section "More Tools", you'll see the option to select "Developer Tools" which opens the toolkit in your window.
When adding and removing devices to a QEMU VM created from OSX-KVM, I
encountered some device problems.
While tinkering and fiddling with adding and removing different QEMU devices to
the VM, the order of -device flags passed caused PCI addresses to keep
changing. This, in turn caused keyboard and mouse support to stop working for
me, until I found out what the problem was.
| #!/bin/bash | |
| export VAGRANT_DEBUG=1 | |
| export VAGRANT_DEBUG_LAUNCHER=1 | |
| export VAGRANT_LOG=debug | |
| ## Setting above debug options reveals vagrant substrate's default environment: | |
| #2024/12/17 09:02:16 launcher: env "CFLAGS" = "-I/opt/vagrant/embedded/include -I/opt/vagrant/embedded/include/libxml2 -lcurl -I/opt/vagrant/embedded/include -I/opt/vagrant/embedded/include/libxml2" | |
| #2024/12/17 09:02:16 launcher: env "CONFIGURE_ARGS" = "with-libvirt-include=/usr/include/libvirt with-libvirt-lib=/usr/lib with-curl-include=/usr/include/curl with-curl-lib=/usr/lib " | |
| #2024/12/17 09:02:16 launcher: env "CPPFLAGS" = "-I/opt/vagrant/embedded/include -I/opt/vagrant/embedded/include/libxml2" |
With its latest reales qemu added the Venus patches so that virtio-gpu now support venus encapsulation for vulkan. This is one more piece to the puzzle towards full Vulkan support.
An outdated blog post on clollabora described in 2021 how to enable 3D acceleration of Vulkan applications in QEMU through the Venus experimental Vulkan driver for VirtIO-GPU with a local development environment. Following up on the outdated write up, this is how its done today.
Let's start with the brief description of the projects mentioned in the post & extend them:
# noble for ubuntu 24.04 or jammy for 22.04
sudo add-apt-repository -y -s deb http://security.ubuntu.com/ubuntu noble main universe
sudo apt update| --- a/uxc.c | |
| +++ b/uxc.c | |
| @@ -27,6 +27,7 @@ | |
| #include <unistd.h> | |
| #include <sys/stat.h> | |
| #include <sys/types.h> | |
| +#include <sched.h> | |
| #include <libubus.h> | |
| #include <libubox/avl-cmp.h> |
| # The Alpine package apk file is just a tar.gz file with additional files | |
| # https://wiki.alpinelinux.org/wiki/Apk_spec | |
| # untar into /tmp/ folder without the .PKGINFO and .SIGN.RSA file | |
| tar -xzf openjdk8-jre.apk -C /tmp/ --exclude=.PKGINFO --exclude=.SIGN* |
| import torch, grp, pwd, os, subprocess | |
| devices = [] | |
| try: | |
| print("\n\nChecking ROCM support...") | |
| result = subprocess.run(['rocminfo'], stdout=subprocess.PIPE) | |
| cmd_str = result.stdout.decode('utf-8') | |
| cmd_split = cmd_str.split('Agent ') | |
| for part in cmd_split: | |
| item_single = part[0:1] | |
| item_double = part[0:2] |