sudo kubeadm alpha certs renew all
sudo cp /etc/kubernetes/admin.conf ~/.kube/config
I recently switched to a new MS Org and was having issues with the Microsoft Login going to my old tenant instead of the new one.
Outlined below are the steps I used to eliminate the old MS Org and allow you to move forward with the new one.
# Using OpenSSL v1.1.1 on MacOS | |
# Ensure you set the Common Name to *.domain.com for WildCard certificates while entering the information | |
# !!! Remember the private key (PEM) password -- you will need it later !!! | |
openssl req -out csr.csr -new -newkey rsa:2048 -keyout privatekey.key | |
# This command will print out the CSR so you can validate the SANs are there | |
openssl req -in csr.csr -noout -text |
{ | |
"openapi" : "3.0.0", | |
"info" : { | |
"description" : "This API is used to interact with SyteLine", | |
"version" : "1.0.4-oas3", | |
"title" : "Paperless Manufacturing", | |
"contact" : { | |
"email" : "allen.gammel@mail.weir" | |
}, | |
"license" : { |
var all = document.getElementsByTagName("*"), i = 0; | |
for (; i < all.length; i++) { | |
if (all[i].scrollTop !== 0 ){ | |
console.log(all[i]); | |
} | |
} |
{ | |
"swagger": "2.0", | |
"info": { | |
"description": "This is for a mongo API\n", | |
"version": "1.0.1", | |
"title": "MongoPaperless", | |
"contact": { | |
"email": "taylor.fry@mail.weir" | |
}, | |
"license": { |
{ | |
"uid": "462-1000", | |
"name": "4900", | |
"manufacturer": "OKUMA", | |
"model": "MA600", | |
"building": "A", | |
"cell": "INTBODIES", | |
"location": "Fort Worth", | |
"coords": {}, | |
"businessUnit": "Pressure Pumping", |
const devs = {}; | |
Device.find({}, (err, devices) => { | |
devices.forEach((device) => { | |
if (!devs || !devs[device.uid]) { | |
devs[device.uid] = []; | |
} | |
devs[device.uid].push(device); | |
}); | |
const dupesOnly = {}; |
import { Netmask } from 'netmask'; | |
const block = new Netmask('192.168.150.0/21'); // 21 === 255.255.248.0 subnet | |
console.log(block.mask); | |
block.forEach(comp => { | |
console.log(comp); | |
}); |