# Comment line
<#
comment block
#>
| """Walk through the filesystem, store in sqlite db | |
| Utility script for walking a filesystem, and storing file information in a sqlite | |
| database. | |
| Goals/Design Notes: | |
| - [x] Pure standard library | |
| - [x] Name, Path as seprate columns | |
| - [x] Store the datetime that a file pth was inserted | |
| - [x] Implement fulltext search of both filenames and paths |
| # Example ssh config file. Usually located in ~/.ssh/config (user) or /etc/ssh/ssh_config (system) | |
| # This works on both linux and MacOS | |
| # Basic ssh commands converted to ssh/config file format | |
| # Simplest format | |
| # Run with: "ssh blog" => (equivalent to: "ssh [email protected]" and "ssh -i ~/.ssh/id_rsa -p 22 [email protected]") | |
| Host blog |
| Option Explicit | |
| Public Sub PasteTableToMail() | |
| Dim appOl As Object 'Outlook.Application | |
| On Error Resume Next | |
| Set appOl = GetObject(, "Outlook.Application") | |
| On Error GoTo 0 | |
| If appOl Is Nothing Then Exit Sub | |
| Dim itm As Object 'Outlook.MailItem |
| Option Explicit | |
| Public Sub Sample() | |
| With CreateObject("Selenium.EdgeDriver") | |
| .Get "https://www.ka-net.org/blog/" | |
| Dim elm As Object 'Selenium.WebElement | |
| Set elm = .FindElementByXPath("/html/body/div[1]/div/a/span") | |
| .ExecuteScript "arguments[0].setAttribute('style', 'background-color:cyan')", elm | |
| Stop |
| @echo off | |
| cd /d %~dp0 | |
| PowerShell -NoProfile -ExecutionPolicy Bypass -File .\CustomizeNotepadSettings.ps1 |
Get-ChildItem -Attributes hidden "\System Volume Information"
Get-ComputerRestorePoint | Format-Table -AutoSize Description, SequenceNumber, @{n="Date";e={[System.Management.ManagementDateTimeConverter]::ToDateTime($_.creationtime)}} Get-ComputerRestorePoint | Format-Table -AutoSize Description, SequenceNumber, @{n="Date";e={[System.Management.ManagementDateTimeConverter]::ToDateTime($.creationtime)}}
Get-ComputerRestorePoint | Format-Table -AutoSize Description, SequenceNumber, ` @{n="Date";e={[System.Management.ManagementDateTimeConverter]::ToDateTime($.creationtime)}}
Enable-ComputerRestore -Drive "c:"
How to write special characters in a variety of documentation forms.
Examples are Arrow keys, copyright, trademark, degrees (temperature or latitude/longitude)
IT techs that use imaging/deployment and/or DHCP/PXE will often be working with a computer's GUID, UUID, or MAC address. For example, you have received a shipment of new desktops and are preloading your Windows Active Directory with the new computer names in the desired OU. You will then be ready to boot them and have the new computers network PXE and start installing your company base image. The packaging gives you the UUID but you need to provide the GUID to the computer proerties in AD.
Some tools to help convert back and forth between the different formats.
Example:
WFLGNVLAB01
UUID: 457A9480-E7BE-11E2-9C6A-8851FB69DFA3
GUID: 80947A45-BEE7-E211-9C6A-8851FB69DFA3