WMIobject Win32_WinSAT
perfmon /rel
EXEC sp_configure 'show advanced options', 1; RECONFIGURE;
EXEC sp_configure 'agent xps', 1; RECONFIGURE;
dotnet tool install --global dotnet-ef
dotnet tool update --global dotnet-ef
dotnet add package Microsoft.EntityFrameworkCore.Design
dotnet ef
dotnet ef migrations add InitialCreate
dotnet add package Microsoft.EntityFrameworkCore.Design
dotnet tool update --global dotnet-ef
dotnet tool install --global dotnet-ef
dotnet --list-sdks
dotnet tool install --global dotnet-ef --version 9.0.0
dotnet add package Microsoft.EntityFrameworkCore --version 9.0.0
Set Linux screen resolution in Hyper-V
pillow image manipulation
myURL = "https://someurl.com/dir/page.html"
URLparts = myURL.rpartition('/')
print(URLparts[0])
print(myURL.rpartition("/")[0])
print(URLparts)
get-service
Get-Help
Get-Help -Name Get-*
Get-Command –Name *IP*
Set-ExecutionPolicy
Get-ExecutionPolicy
Get-Service
ConvertTo-HTML
Export-CSV
Get-Service | Export-CSV c:\service.csv
Select-Object
Get-Service | Select-Object Name, Status | Export-CSV c:\service.csv
Get-EventLog
Get-Process
Stop-Process
gwmi Win32_USBControllerDevice
Get-Process | Where-Object {$_.Name –eq “iexplore”}
Top 10 Cmdlets to Start Using Immediately
Get-Command retrieves a list of all available cmdlets.
Get-Help displays help information about cmdlets and concepts.
Get-WMIObject retrieves management information by using WMI.
Get-EventLog retrieves Windows event logs.
Get-Process retrieves a single or list of active processes.
Get-Service retrieves a Windows service.
Get-Content reads in text files, treating each line as a child object.
Add-Content appends content to a text file.
Copy-Item copies files, folders, and other objects.
Get-Acl retrieves access control lists (ACLs).
To display error messages caused by your PHP script you can include these lines of code:
ini_set('display_errors',1); error_reporting(E_ALL);
Another way to do it is to edit your php.ini file and include this option:
error_reporting = E_ALL
To turn error reporting off for a single document, include this line:
error_reporting(0);