Skip to content

Instantly share code, notes, and snippets.

@datavudeja
datavudeja / convert_7z_v7.py
Created October 30, 2025 20:20 — forked from Druark/convert_7z_v7.py
Converts zips and other archive types, to 7z with optimal compression in the current directory.
import os
import sys
import subprocess
from pathlib import Path
import shutil
import stat
import time
from dataclasses import dataclass
import multiprocessing
@datavudeja
datavudeja / scandir.py
Created October 30, 2025 20:19 — forked from kbg/scandir.py
#!/usr/bin/env python3
# Copyright (c) 2020 Kolja Glogowski
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
@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:"