Tech/HowTo

From lathama
Jump to navigation Jump to search

MAC Address Lookups

MAC Addresses are unique hardware identifiers and commonly called OUI. Look up vendor info via https://www.wireshark.org/tools/oui-lookup.html

Epoch Time

To get epoch time at the command line use:

date +%s
curl https://lathama.net/epoch/

Get Current BIOS Version

The dmidecode tool allows you to ask for strings instead of searching the output.

dmidecode -s bios-version
G1ET93WW (2.53 )

Browser Based Text Pad

In a modern quality web browser you simply put "data:text/html, <html contenteditable>" without the quotes into the address bar. So you are defining the content type and the HTML element with editable content option set. The benefit is that you can have a temporary text pad to copy stuff too without having to open another application.

Github Markdown Pretty Printer

Create a bookmark with the content below and when you want to print markdown on Github just use the bookmark to grab the pretty version.

javascript:var content = document. querySelector('article'); var body = document.querySelector('body'); body.innerHTML = ''; body.appendChild(content);

Global View Network Looking Glass

To get context on how a network or organization looks from a high level I use https://bgp.he.net/ to review the routing, DNS and various details of networks. Google also has https://dns.google.com which is useful.

Microsoft Line Endings

Remove Microsoft line endings from files that were maybe checked into a version control by accident

 tr -d \015 filename