Posts

How to Enable God Mode in Windows 11 or 10

Image
  How to Enable God Mode in Windows 11 or 10 Right click on the desktop and select New->Folder. Rename the folder  as follows: GodMode.{ ED7BA470-8E54-465E-825C-99712043E01C}

PowerShelll Check If Port Is Open

Image
  PowerShelll Check If Port Is Open PS C:\Users\User> Test-NetConnection rpc.acronis.com -Port 443

OSPF: Type-1 vs Type-2

Image
OSPF: Type-1 vs Type-2 Type 1: Considered close to the AS. Metric is based on the sum of the internal and external costs. Type 2: Considered far away from the AS. Metric is based on the external cost only.   OSPF router prefers a type 1 external router over a type 2.   Each external route is assigned a metric. There are two types of external-route metrics. A type 1 metric is the sum of the external cost plus the internal cost to reach the ASBR. A type 2 metric is only the external cost (the internal cost is not considered). If there are two external routes to the same destination, one type 1 and one type 2, an OSPF router selects the type 1 route over the type 2 route. That is represented in E1 and E2.

Windows CLI adding IP Address

Image
  Windows CLI adding IP Address netsh interface ipv4 set address name="Ethernet" static 192.168.3.123 255.255.255.0 192.168.3.1

Reset ESXi 6 Evaluation License

Image
Reset ESXi 6 Evaluation License Note: Running these commands will cause ESXi to appear offline/down. For example, my UPS virtual machine connected to my actual UPS began shutting down VMs because it believed ESXi ran into a problem. Shut down those VMs firstly before running this command then bring them back up later. Turn on SSH and log in to the host. Remove the current license rm -r /etc/vmware/license.cfg Copy over the new evaluation license, which is already on the host cp /etc/vmware/.#license.cfg /etc/vmware/license.cfg Restart ESXi services /etc/init.d/vpxa restart Confirm the new license Automatic Script The commands above can be run automatic to keep your ESXi license reset on a set schedule using cron. I have also created a script which powers off and on a VM of your choice (such as a UPS agent) in case it shuts down the host. First create the script (reset-eval.sh) somewhere accessible to ESXi. I chose to put in my ZFS0 datastore (/vmfs/volumes/ZFS0/reset.eval) #!/bin/sh #...

Unifi keystore

Image
  https://gist.github.com/hdml/8a446dc1b0ad4f94b7a17a67a33286ab ##Installing a custom SSL cert on Unifi Controller Requirements: Domain certificate (.crt) Certificate key (.key) Intermediate certificate from CA (*.crt, *.pem) Permissions to restart the unifi service Debian or Ubuntu Unifi Controller installation ###Backup your current keystore cd /var/lib/unifi sudo cp keystore keystore.bkp ###Create pkcs12 certificate openssl pkcs12 -export -in domain_certificate.crt -inkey domain_certificate_priv.key -out domain_certificate.p12 -name unifi -CAfile "intermediate_cert_from_CA.crt" -caname root -password pass:aircontrolenterprise Copy your new cert to /etc/ssl/private sudo cp domain_certificate.p12 /etc/ssl/private ###Replace certificate in keystore with newly created cert sudo keytool -importkeystore -deststorepass aircontrolenterprise -destkeypass aircontrolenterprise -destkeystore /usr/lib/unifi/data/keystore -srckeystore /etc/ssl/private/domain_certificate.p12 -srcstoretyp...

Firefox - ERR_SSL_VERSION_OR_CIPHER_MISMATCH

Image
ERR_SSL_VERSION_OR_CIPHER_MISMATCH about:config => security.tls.version.enable-deprecated = true