Get AD User Information

1PS C:\>get-aduser tor -Properties * Can also list all the servers on the domain 1PS C:\>Get-adcomputer -filter * -properties * | Select-object DNSHostName,whenCreated,Name,Created,Modified,LastLogonDate,Enabled,isDeleted | export-csv c:\servers.csv

Delete MongoDB Log

Check which directories are using disk space 1sudo du -h –max-depth=1 Delete the Mongo Log 1sudo rm -rf /var/log/mongodb/mongod.log Check which processes have not released the file lock 1sudo lsof …

Oracle DB Version

You can check the version of the export utility by looking at a DMB file from Oracle 1234567/> strings BACKUP_101220.DMP | head -n 5 "SYS"."SYS_EXPORT_FULL_01" x86_64/Linux 2.4.xx USWMC WE8MSWIN1252 11.02.00.00.00

Most Useful Git Commands

Useful Log git log –pretty=format:”[%an]|%h|%ad|%s|%d” –date=short Set your details git config –global user.name “John Doe” git config –global user.email “[email protected]” Use –global to set the configuration for all projects. If …