Skip to content

Instantly share code, notes, and snippets.

@datavudeja
datavudeja / spider.py
Created October 23, 2025 16:11 — forked from jkerhin/spider.py
Walk through the filesystem, store in sqlite db
"""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
@datavudeja
datavudeja / ssh-config-basic
Created October 21, 2025 13:53 — forked from mjalajel/ssh-config-basic
SSH Recipes
# 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
@datavudeja
datavudeja / PasteTableToMail.vb
Created October 21, 2025 13:35 — forked from kinuasa/PasteTableToMail.vb
ExcelからOutlookでメールを作成し、テーブルを貼り付けた後に自動調整するマクロ 関連Tweet:https://twitter.com/kinuasa/status/1495570001482612741
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
@datavudeja
datavudeja / CustomizeNotepadSettings.bat
Created October 21, 2025 13:21 — forked from kinuasa/CustomizeNotepadSettings.bat
Windows 11のメモ帳の設定を変更するPowerShellスクリプト
@echo off
cd /d %~dp0
PowerShell -NoProfile -ExecutionPolicy Bypass -File .\CustomizeNotepadSettings.ps1
@datavudeja
datavudeja / PSInfo.md
Created October 21, 2025 13:20 — forked from Computer-Tsu/PSInfo.md
PowerShell Profiles

Comments

# Comment line

<#
comment block
#>

Function Help Comments

@datavudeja
datavudeja / Windows-Print Screen.md
Created October 21, 2025 13:20 — forked from Computer-Tsu/Windows-Print Screen.md
Windows registry key settings to customize Screen shots

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
DWORD | ScreenshotIndex =

Hot key for Snipping Tool

Windows 11, Settings, Accessibility > Keyboard
Use the Print Screen to open screen capture
On

@datavudeja
datavudeja / Windows System Restore.md
Created October 21, 2025 13:19 — forked from Computer-Tsu/Windows System Restore.md
Script and CLI (command line) for Microsoft Windows System Restore (Protection) Points

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:"

@datavudeja
datavudeja / Symbols.md
Created October 21, 2025 13:19 — forked from Computer-Tsu/Symbols.md
Using special characters and symbols in documentation

How to write special characters in a variety of documentation forms.
Examples are Arrow keys, copyright, trademark, degrees (temperature or latitude/longitude)

  • MarkDown
  • GitHub
  • Microsoft Word
  • HTML
  • Unicode
  • Fonts
@datavudeja
datavudeja / .UUID-GUID.md
Created October 21, 2025 13:18 — forked from Computer-Tsu/.UUID-GUID.md
Working with UUID, GUID, MAC addresses

UUID and GUID

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