Default user for WSL OS on Windows 10

1. Open a command prompt or PowerShell. (You shouldn’t run as admin since this is based for the specific user). 2. Copy and paste the command below into the command prompt or PowerShell for the .exe file of the WSL distro name (ex: “Debian”) you want...

Send email using postfix

There’s many times when I want to send an email for testing using postfix and I can never remember how to do it. Here is how.This is super useful to make sure your SMTP relay thru AWS/Postmark is working as it should. Then you can tail /var/log/mail.log to see...

Access IPMI if IP is not in ACL

If you ever run into a scenario where you have an ACL in place, but can’t get on the IP that’s in the ACL and you have ssh access, the following will work well. You have to do a partial factory reset which resets everything other than the networking. The...

Apple cash not verifying

So I finally switched to iPhone and ordered an Apple Credit Card (I love this thing). The cash back is put on you Apple Cash account, if your account can’t be verified than you don’t get the cash back. So I started the process of verifying my account. I...

Skip/hide Windows update on Windows 10

Since Windows 10 has been released there’s no easy way to skip/hide updates you don’t want installed. In Windows 7 it was super easy. I finaly found a way to skip/hide them. You have to download a troubleshooter from Microsoft. HERE is the link. HERE is a...

Printers not working after KB4557957 update

I noticed an issue where after updating Windows 10 2004 with KB4557957 some printers were no longer working. BetaNews did a good writeup HERE about the issue. Microsoft released a couple off-schedule patches to fix it. HERE is the BetaNews article about it. In short...

SuperMicro ipmitool shared/dedicated NIC change

Here is how to change the NIC for IPMI to be shared or dedicated. I know this works on SuperMicro I’m not sure about other vendors Make sure you have IPMI tool installed and you’re able to connect via ipmitool To Get Lan Mode ipmitool raw 0x30 0x70 0x0C...

Expand PV to expanded disk

This will work if you made the PV your whole disk. If you want to do so with partition follow the link HERE. I use XCP-NG and when adding additional space to an existing disk I scan for the extra space using the command below and the extra space doesn’t appear....

Acme.sh with NGiNX

First you have to install acme.sh. I like using acme.sh because it’s all bash based. As with all posts I take no responsibility for anything and this is more of a quick help instead of a full guide. I have a script that I use to deploy my WordPress sites. The...

Setup Unifi Controller on Debian10 /Buster

Link to original persons blog post The requirements of the Unifi Controller do not allow a direct installation. But with a few manual steps a successful setup is possible! Basic requirements apt install wget gnupg2 ca-certificates apt-transport-https dirmngr gnupg...

SmartOS Tricks

Start smartOS VM from iso that is in /zones/UUID/root/ vmadm start UUID order=cdn,once=d cdrom=/FILE.iso,ide Set static vnc port Do vmadm list to get UUID vmadm update UUID_HERE vnc_port=PORT_#_HERE I love RealVNC. It works well and they have stand-alone executable...

Empora Total power usage email report

For this to work you will need to dump a CSV export at least twice a month and then upload the CSVs from the ZIP to nextcloud. This could honestly be from anywhere nextcloud is just easy for me. Here’s links to the files. I try my best to paste them in the blog,...

Calculate Emporia Energy usage in Bash

How to calculate data use for specfici month using bash for Emporia Energy device cat FILE.csv | egrep “MonthInNumForm/?[0-9]?[0-9]/2019″ | awk -F”,” ‘{print;x+=$2}END{print “Total ” x}’

WP Search-Replace

This is how to use wp-cli to change the domain If using CentOS sudo -u nginx wp search-replace ‘old.domain.com’ ‘newdomain.com’ If using Plesk sudo -u user /opt/plesk/php/7.1/bin/php /usr/local/bin/wp search-replace ‘old.domain.com’...