Author Archives: dmitriano

Creating custom Attribute in Active Directory

Register MMC Snapin:

regsvr32 schmmgmt.dll

Press Windows Key + R, type mmc, and press Enter. Go to File->Add or Remove Snapin:

(more…)

Querying Active Directory with LDAP

export ad_ip="10.15.7.15"
export ad_user="administrator@itdrde.local"
export ad_password="XXXXXXXXX"

Computers are also Users

ldapsearch -H ldap://$ad_ip:389 -x -D $ad_user -w $ad_password -b "DC=itdrde,DC=local" \
    -s sub -a always -z 1000 "(objectClass=user)" "serviceClassName" "serviceDNSName" "objectClass"
(more…)

Querying Active Directory with PowerShell

First run the following command as administrator to make Get-ADUser command work:

Get-WindowsCapability -Online | Where-Object {$_.Name -like "*ActiveDirectory.DS-LDS*"} | Add-WindowsCapability -Online
Path          :
Online        : True
RestartNeeded : False

Try the following commands:

$ad_ip = "10.15.7.15"
$ad_user = "administrator@itdrde.local"
Get-ADUser -Server $ad_ip -Credential $ad_user -Properties *
(more…)

How to determine device model with PowerShell

Get-CimInstance -ClassName Win32_ComputerSystem
Name             PrimaryOwnerName          Domain                   TotalPhysicalMemory      Model                    Manufacturer
----             ----------------          ------                   -------------------      -----                    ------------
DESKTOP-0DRJUG2  dmitriano@outlook.com     WORKGROUP                34213654528              Z390 AORUS PRO           Gigabyte Technology C...

Using Active Directory Users & Computers

I installed this

(more…)

Huge interest rate on Binance

I earned $6.29, see 5 min chart:

and paid $5.95 as interest fee, so the profit is $0.34. Details:

(more…)

My trades on Binance

(more…)

Binance killed margin trading

(more…)

Building QT 6.9.1 on MacOS Sequoia

Determine XCode command line tools version:

pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
version: 16.4.0.0.1.1747106510
volume: /
location: /
install-time: 1750710554
clang --version
Apple clang version 17.0.0 (clang-1700.0.13.5)
Target: x86_64-apple-darwin24.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
(more…)

Squid unexpectedly stopped working

Squid unexpectedly stopped working with my home internet connection. I created a temporary user:

cd /etc/squid/
sudo htpasswd -B squid-password temp
sudo service squid reload

tried the following command

curl -v -x https://developernote.com:3129 --proxy-user temp:<password> -I https://api.ipify.org/

with another internet provider and it succeeded.

(more…)