Steve Borba

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

Category: Technology

Basic Linux Setup

apt install -y netscript-ipfilter vim open-vm-tools sudo useradd steve -c “Borba, Steven J Jr” -m -G sudo -s /bin/bash sudo -usteve mkdir -p -m=0700 ~steve/.ssh echo “ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDm17k7lt1wuRsDGTs/xRCHtgy5byA2/EYmd0pJ0hmaYQns5D8XMXf6QsxQ6TBO1lkhZI8Nb1+V/An4Pc3M8R4Ftt5QIb8oyQqMOjRN8K8fFawK62eSgkDLmULb0Su3MFy9uSdbmDSaFGvK5dCNnUQKbViXLTHp7WFl/CR8NvD1ZCGtuU4FCQtpaLhL80AwwdcSXNXo5dKExG5XLSNHJdwk1lvEOMQz2VRqZbbvCgi2Aol+JWN97OLEnZBWhQjLksVwsbgHrgbtquwmQdjMX1WLBSgkhUo7i4+I0BgOdkdwSLdk7ZGq9a0syOIgvsaMkKt4T/fp/MAAiHtKgOGYsSTrcIcKm9BHbnuxjHPllKsivq22cTyguLQd/2hMdl/IWJhB675+C3v4uCKgm9RjSj72Iczmr1xODTEQNHO71v9Vxj3JVrk72umJMUCVYW0PxdfHDnihOwej39z45aLXz3UhrjUVHmWtFdhox7NThV7HYHlOVWaL9KLjJihPCDJ84/8= steve@sborba” | sudo -usteve tee ~steve/.ssh/authorized_keys sudo chmod 600 ~steve/.ssh/authorized_keys echo “net.ipv4.tcp_timestamps = 0 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1” >> /etc/sysctl.conf sysctl -p […]

Home Automation

I am working on setting up Home Automation and a lot of people call it Smart Home, but I don’t like that, just like calling Machine Learning AI. Half of the reason for this is just to document what I have now. Now after saying that, I am going to list my current Home Automation […]

CA with PANOS

First Generate a Root (this could be the CA you deploy using Global Protect or Group Policy or whatever you can) Then you would want to create an intermediate CA (this could be the decrypt CA) You should also create a new root that isn’t deployed to clients and use as untrusted CA.

WOL with Powershell

Here is a Powershell Script to send a WOL packet (and I’ve had it work over a routed connection, but it depends if the router will broadcast if doesn’t have arp for the IP): function Send-WOL { <# .SYNOPSIS Send a WOL packet to a broadcast address .PARAMETER mac The MAC address of the device […]

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 […]