Steve Borba

My notes, I hope they help you, feel free to comment/add to them

Author: sjborbajr

Powershell Modules

I’m tired of having to find where to do this (and I have been rebuilding my PC so it is fresh in my head) VMware: install-module VMware.PowerCLI,PowerNSX Azure: install-module Azure,AzureRM Search and install: Find-Module | Out-GridView -OutputMode Multiple | Install-Module Here is how to get powershell to complete like most cli’s (thank you Jeff): Set-PSReadlineKeyHandler […]

Windows10

Here are a few quick links to other pages: run all bat Old Page I have some credit in Azure and did this testing with it, so I don’t have the option to modify the WIM before installing, so this one will be without modifying until after the install is done. Now I want to […]

WordPress Optimizations

Use google test site I fixed most of it by installing the plugin “Autoptimize” Optimize HTML Code Optimize JavaScript Code Optimize CSS Code Also aggregate inline CSS Inline all CSS Remove emojis Remove query strings from static resources Combine and load (Google) fonts asynchronously with webfont.js Another was to do this: convert puzzle.jpg -sampling-factor 4:2:0 […]

Certificates

This one will show all of the certificate parts so you can copy/paste to AWS or F5 web UI openssl pkcs12 -in some.pfx -nodes This one will create a new key and csr openssl req -new -sha256 -newkey rsa:4096 -nodes -keyout new.privkey \ -out new.csr -config /etc/ssl/openssl.cnf \ -subj “/C=US/ST=California/L=Sacramento/O=Netlogix/OU=Marketing/CN=www.steveborba.com” This one is how I […]

Windows Server Install Amazon

Step 1, Launch instance, Windows 2016 Datacenter, t2.small (I think 2GB is already low for RAM on windows), don’t change instance details, don’t change storage, no tags, setup firewall (I have static IPs, so I allowed all just from those IPs). Step 2, configure windows (get password, TS to server and):   Remove Features you aren’t […]

Let’s Encrypt

Install scripts including one to interact with apache apt install letsencrypt python-letsencrypt-apache I am crazy and want a Must Staple certificate openssl req -new -sha256 -newkey rsa:4096 -nodes\   -keyout steveborba.com.privkey -out must-staple.steveborba.com.csr\   -reqexts SAN -config <(cat /etc/ssl/openssl.cnf <\   (printf “[SAN]\nsubjectAltName=DNS:steveborba.com,DNS:www.steveborba.com\n1.3.6.1.5.5.7.1.24=DER:30:03:02:01:05”)) letsencrypt -vv certonly –csr must-staple.steveborba.com.csr <Add apache config to allow must staple> openssl req -new -sha256 […]

Ubuntu Server

Setup virtual hardware 2 procs 1gb Remove Floppy, turn off logging Enable hot mem/cpu add Set to efi bios Install ubuntu using defaults except Don’t use LVM (that way there is no issue with space on /boot) Install security updates automatically Install openssh additional packages Do this before you install libpam-krb5 to avoid questions on […]