Skip to content

Instantly share code, notes, and snippets.

@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

@datavudeja
datavudeja / Convert Error Code.md
Created October 21, 2025 13:17 — forked from Computer-Tsu/Convert Error Code.md
HowTo Converting Windows application Installer error codes numbers return results
Error Code Dec Error Code Error String Description
0x00000000 -4294967296 Success
0x0000007B -4294967173 Error_Invalid_Name The filename, directory incorrect

calc.exe
Menu, Programmer
[Hex] 0x7B
[Dec] 123

@datavudeja
datavudeja / Batch.bat
Created October 21, 2025 13:16 — forked from Computer-Tsu/Batch.bat
optional first lines for batch scripts
PUSHD %~dp0
SET DateString=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%
REISUB - the gentle Linux restart
According to Lifehacker a frozen Linux system that's not responding to the Ctrl-Alt-Delete three-finger-salute can be restarted more safely than by pushing the power button, which is usually the next step.
Holding down Alt and SysRq (which is the Print Screen key) while slowly typing REISUB will get you safely restarted. REISUO will do a shutdown rather than a restart.
Sounds like either an April Fools joke or some very strange magic akin to the old BIOS beeps we used to use to diagnose PC faults so bad that nothing would boot. Wikipedia comes to the rescue with an in-depth listing of all the SysRq keys.
R: Switch the keyboard from raw mode to XLATE mode
E: Send the SIGTERM signal to all processes except init
@datavudeja
datavudeja / 15s_clip.bat
Created October 21, 2025 13:07 — forked from dmertl/15s_clip.bat
Windows FFmpeg Droppable Batch Files
:again
if "%~1" == "" GOTO done
ffmpeg.exe -i "%~1" -t 00:00:15 "%~n1_clip%~x1"
SHIFT
GOTO again
:done
@datavudeja
datavudeja / CompactWSL.bat
Created October 21, 2025 13:07 — forked from Csqhi515/CompactWSL.bat
Script to help compact WSL and vhdx.
@echo off
net session >nul 2>&1
if %errorlevel% neq 0 (
echo Requesting administrative privileges...
powershell -Command "Start-Process '%~f0' -Verb RunAs"
exit /b
)
wsl sudo fstrim --all; echo "Exit status: $?";
@datavudeja
datavudeja / pd_merge.py
Created October 6, 2025 13:20 — forked from fuhoi/pd_merge.py
pd_merge
import pandas as pd
import hashlib
from datetime import datetime
def detect_dataframe_changes(source_df: pd.DataFrame, target_df: pd.DataFrame, primary_key: str, ignored_columns: list):
"""
Detects inserted, updated, and deleted rows between two DataFrames.
Args:
source_df (pd.DataFrame): The source DataFrame.
@datavudeja
datavudeja / feature_aggregations.py
Created October 6, 2025 13:18 — forked from gvspraveen/feature_aggregations.py
Dataset stats using aggregators
import pandas as pd
import ray
from ray.data import Dataset
from ray.data.context import DataContext, ShuffleStrategy
from typing import List
import time
from ray.data.aggregate import Count, Mean, Min, Max, Quantile, Std, Unique, AggregateFnV2
from ray.data.block import BlockAccessor, Block
from typing import List, Tuple, Optional
from ray.data import Dataset
@datavudeja
datavudeja / hashing.py
Created October 6, 2025 13:17 — forked from knu2xs/hashing.py
Add a MD5 hash column to a Pandas data frame for change analysis.
from hashlib import md5
import pandas as pd
from typing import Optional, Iterable
def get_md5_from_series(input_iterable: Iterable) -> str:
"""
Create a MD5 hash from an Iterable, typically a row from a Pandas ``DataFrame``, but can be any
Iterable object instance such as a list, tuple or Pandas ``Series``.
Args: