- Serverless
- Connect with MS-SQL Studio
- Create Tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for log in `esxcli vm process list | \ | |
| grep Config | \ | |
| awk '{print $3}' | \ | |
| sed 's|[^/]*vmx$|vmware.log|g'` | |
| do | |
| printf "\n$log\n" | |
| cat $log | grep Checkpoint_Unstun | sed 's/^/\t/g' | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def missing_values_count(df_train): | |
| tbl = [] | |
| for col in df_train.columns[df_train.isnull().any()]: | |
| tbl.append([col, df_train[col].isnull().sum()]) | |
| return pd.DataFrame(tbl, columns=["column", "missing_values_count"]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| get-vm | ? { $_.Guest.IPAddress -contains '172.22.0.25' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Explicit version | |
| $files = Get-ChildItem -Recurse -File | |
| foreach ($path in $files.FullName) | |
| { | |
| $crlfContent = Get-Content $path | |
| $lfContent = ($crlfContent -join "`n") + "`n" | |
| Set-Content -Path $path -Value $lfContent -NoNewline | |
| } | |
| # Short version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Find vms, | |
| find /vmfs/volumes/ -iname vmware.log | while read line; do | |
| ls -lach $line | awk '{print "[" $6 " " $7 " " $8 "]" " " $9}' >> /tmp/vm_off_times.log | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ExactlyOne ($InputObject) { | |
| (@($InputObject | Select-Object)).Count -eq 1 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Get-NmpDeviceSettings ($VMHost) | |
| { | |
| $VMHost = Get-VMHost $VMHost | |
| foreach ($vmh in $VMHost) | |
| { | |
| $esxcli = $VMHost | Get-EsxCli -V2 | |
| $esxcli.storage.nmp.device.list.Invoke() | | |
| Where-Object DeviceDisplayName -like COMPELNT* | | |
| Select-Object Device*, | |
| PathSelectionPolicy, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $vCenterDnsName = $vmHost.ExtensionData.CLient.ServiceUrl -replace 'https?://(.+?)/sdk','$1' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .Synopsis | |
| Kurzbeschreibung | |
| .DESCRIPTION | |
| Lange Beschreibung | |
| .EXAMPLE | |
| Beispiel für die Verwendung dieses Cmdlets | |
| .EXAMPLE | |
| Another example of how to use this cmdlet | |
| .INPUTS |