Dodan's Notebook
Collection of snippets from here and there, kept for personal reference of course
Search This Blog
Labels
Monday, 9 February 2026
Enable Opera Speed Dials on Address Bar
This used to be activated by default, but not anymore. To re-enable Speed Dial tiles on address bar when you click on it, enable the following;
Tested on Opera version: 123.0.5669.23 on 2025 Nov 05
VirtualBox VT-x is being used by another hypervisor error on Ubuntu 24.04.3
VT-x is being used by another hypervisor (VERR_VMX_IN_VMX_ROOT_MODE).
VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: ConsoleWrap
Interface: IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}
The solution is to check the running KVM and shutting them down
lsmod | grep kvm lsof | grep kvmThen remove them, the usual suspects are
kvm_inteland
kvm
sudo rmmod kvm_intel sudo rmmod kvm
Thursday, 9 October 2025
Revert a pushed GIT commit
git reset --hard HEAD~ git push -f
git reset --hard HEAD
or git reset --hard HEAD~1
: What it does
This command forcefully resets your current branch to the commit just before the latest one (HEAD~1), and:
- Moves the HEAD pointer back one commit.
- Updates the index (staging area) to match that previous commit.
- Overwrites your working directory to match that previous commit — meaning any changes in the latest commit and any uncommitted changes are lost.
In short, it erases the last commit and everything in it, as if it never happened.
Difference from git revert
| Feature | git reset --hard HEAD~1 |
git revert HEAD |
|---|---|---|
| Action | Deletes the last commit | Creates a new commit that undoes the last one |
| History | Rewrites history (destructive) | Preserves history (non-destructive) |
| Safety | Risky — can lose data | Safe — doesn't remove any commits |
| Collaboration | Not recommended on shared branches | Safe for shared branches |
git revertis like saying “Oops, let me undo that” — but it keeps a record of the mistake.git reset --hardis like saying “Let’s pretend that never happened” — and it wipes it clean.
If you're working solo and want a clean slate, reset --hard is fine. But if you're collaborating, revert is the safer choice.
Want to see an example of each in action?
Sunday, 4 May 2025
Ubuntu 24.04.2 - Wifi and NVIDIA drivers do not work on the Kernel version 6.11.0-25-generic
Solution
Useful links
Might work
sudo apt install --reinstall linux-generic
sudo apt install linux-modules-extra-6.11.0-25-generic
Tuesday, 24 September 2024
Apache2/PHP increase upload file size
/etc/php/apache2/php.ini, search for the following variables and change/increase these to (as desired but a general guideline is mentioned):
memory_limit = 512M upload_max_filesize = 100M post_max_size = 100MSome more values to change if you want a better performance of your web server:
max_execution_time = 600 max_input_time = 600 memory_limit = 1024MSave and close the editor/file and restart the apache web server with:
service apache2 restartor
systemctl restart apache2
Sunday, 22 September 2024
Ubuntu 24.04.1 - libadwaita apps can't detect dark mode - fix
sudo nano /etc/environmentThen add the following line to the end of it.
ADW_DEBUG_COLOR_SCHEME=prefer-darkSave it and source it,
source /etc/environmentLogout and Login. Should libadwaita apps work in dark mode now.
Wednesday, 4 September 2024
Getting started with developing Grafana Plugins - Without Docker - The easy way
Grafana has its own Tutorial for this but it's complex and intimidating for a beginner.
Here's my "easy way" of doing this.
Scaffolding
Get Grafana scaffolding for plugin development with,
npx @grafana/create-plugin@latest
It will ask you a couple of questions before it populates the basic stuff you need to start.
First run
Get to the folder it creates with the boilerplate code; and then run,
npm run buildto build your plugin. Then copy and paste the
distfolder to your plugins folder after renaming it with the following format
{company_name}-{plugin_id}-{plugin_type}. (On Linux/Ubuntu it is /var/lib/grafana/plugins. Find out where it is on yours)
Working with unsigned plugins
This won't show on your Grafana plugins library before you sign it. If you want to test the plugin before signing, you can edit thegrafana.inifile to enable it for unsigned plugins.
app_mode = development
More details on allowing unsigned plugins can be found here.
Check if it works
Restart Grafana to see your changessudo systemctl restart grafana-serverMake sure you sign the plugin before you publish or turn off the development mode.
Tested on Grafana version: Version 11.2.0 locally installed on Ubuntu 22.04.4 without Docker.