Woocommerce: make address optional
Make fields optional. Add this to your functions file (of your theme) /var/www/html/wp-content/themes/storefront/functions.php
Make fields optional. Add this to your functions file (of your theme) /var/www/html/wp-content/themes/storefront/functions.php
# My cerbo is on 10.0.50.52 RewriteEngine on RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC] RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC] RewriteRule .* ws://10.0.50.52:81%{REQUEST_URI} [P] <Location /websockify> ProxyPass ws://10.0.50.52:81 ProxyPassReverse ws://10.0.50.52:81 </Location> ProxyPreserveHost On ProxyPass…
python3 -m venv --upgrade /opt/venv/
export GIT_SSH_COMMAND="ssh -o IdentitiesOnly=yes -i ~/.ssh/id_rsa_blah" git push
Try this: It will give an error but will remove snap from GUI
apt list --installed | grep postg pg_dropcluster 15 main --stop pg_upgradecluster 13 main service postgresql@13-main stop service postgresql@15-main start pg_lsclusters pg_dropcluster 13 main apt-get purge postgresql-13 postgresql-client-13
cat /etc/os-release; read -p enter; apt update; read -p enter; apt upgrade; apt full-upgrade; sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list; grep -ir bull /etc/apt; read -p ok; apt clean; apt update; apt…
This guide helped me a lot: https://techviewleo.com/install-elastic-stack-elk-8-on-ubuntu/ After first installing with this parameter: I then used the linked guide. Important parts: Edit the file as below: Also, edit the JVM…
To add a password to your site:
To add an existing user to an existing Linux group:
That should work. Relevant config (first part (wireguard interface) does not have privkey, remember to set it!)
Ever found yourself using a for/while loop using SSH in the loop, only to find out your loop only runs once? Your stdin is captured by ssh… This can be…
TMP="$(mktemp -d)" trap 'rm -rf -- "$TMP"' EXIT
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME} RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
\pset format wrapped
That’s a difficult one to search for. To get the strings command working in Debian 11 / Linux, for example in your bash scripts, install the binutils package!
My remote hosts are on srvXX.remote.com. I have a jump host jump.remote.com. I want to be able to type ssh srv42.remote.com and connect, without first having to ssh to jump.remote.com.…
I wanted to connect my dedicated hetzner proxmox box (“remote“) to my home IP. Networks: At home I created on my mikrotik: Then at the remote side, first make keys:…
This works for me: Then open SSH and edit /etc/network/interfaces: Then when creating a container: All traffic is routed properly out of br1 to br0 (world). I can connect to…
qm remote-migrate <vmid> [<target-vmid>] <target-endpoint> --target-bridge <string> --target-storage <string> [OPTIONS] Migrate virtual machine to a remote cluster. Creates a new migration task. EXPERIMENTAL feature! <vmid>: <integer> (1 - N) The…
Get this error? Cannot remove image, a guest with VMID ‘1070’ exists!You can delete the image from the guest’s hardware pane Then on your node/host, do Disks will now show…
Your proxmox will just tell you: 2023-03-26 10:31:50 Logical volume "vm-1070-disk-1" created. But what if you want to know the progress of the copy? In percentage maybe? On the source…
Container: nohup pct migrate 1076 srv78 --target-storage LVMStore & Untested (VM): qm migrate 1076 srv78 -migration_network 10.0.0.0/24 -targetstorage SrvSSD -with-local-disks Does not want to move? You need to add the…
Don’t follow the original guide You need to boot dtbo and boot too. Thanks to: https://www.reddit.com/r/LineageOS/comments/11y3aur/comment/jdafm2k/?utm_source=share&utm_medium=web2x&context=3
Note to self:
I got this: If you want to know more, enable log_errors
Like this (LVM based)
Add --rsync-path="ionice -c 3 nice rsync" to your rsync command (on sending side) Friendly for both sender and receiver: ionice -c3 nice rsync --rsync-path="ionice -c 3 nice rsync"
Getting this? Means you might have used su. Just do su - or do a proper login, so your $PATH is set correctly.