Ctrl+R) and find for
"(\w+)":then replace it with
'$1':or
$1:to leave it without quotes.
Note: Anything inside () brackets can be replaced by $1, $2, etc.
Collection of snippets from here and there, kept for personal reference of course
Ctrl+R) and find for
"(\w+)":then replace it with
'$1':or
$1:to leave it without quotes.
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
git reset --hard HEAD~ git push -f
git reset --hard HEADor
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:
In short, it erases the last commit and everything in it, as if it never happened.
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 revert is like saying “Oops, let me undo that” — but it keeps a record of the mistake.git reset --hard is 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?
sudo apt install --reinstall linux-generic
sudo apt install linux-modules-extra-6.11.0-25-generic
/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