Skip to content

Instantly share code, notes, and snippets.

@GingerTe
GingerTe / nsi_loader.py
Created October 1, 2025 10:53
Загружает данные справочника по catalog_id
import datetime
import logging
import pprint
import requests
import tempfile
import zipfile
from dataclasses import dataclass, fields, is_dataclass
from pathlib import Path
@GingerTe
GingerTe / switch-theme.ps1
Last active October 1, 2025 10:55
switch windows dark theme
$regKeyPath = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"
$current = Get-ItemPropertyValue -Path $regKeyPath -Name SystemUsesLightTheme
$new = 1 - $current
Set-ItemProperty -Path $regKeyPath -Name SystemUsesLightTheme -Value $new -Type DWord -Force
Set-ItemProperty -Path $regKeyPath -Name AppsUseLightTheme -Value $new -Type DWord -Force
# Update system settings
Add-Type -TypeDefinition @"
using System;
using System.Runtime.InteropServices;