This file contains 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
{ | |
"name": "PageAlerts!", | |
"version": "0.0.1", | |
"manifest_version": 2, | |
"description": "特定のページに行くとアラートを表示する。", | |
"content_scripts": [ | |
{ | |
"matches": ["http://example.com/*"], | |
"js": ["script.js"], | |
"run_at": "document_start" |
This file contains 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
alert('注意してください!!'); |
This file contains 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
$server = Connect-VIServer -Server Your_vCenter_Server -User administrator -Password your_password | |
#VM一覧の取得 | |
Get-VM | |
#データストア一覧の取得 | |
Get-Datastore | |
#スナップショット一覧の取得 | |
Get-VM | Get-Snapshot |
This file contains 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
$Cl = Get-Cluster | |
$array = New-Object 'System.Collections.Generic.List[System.String]' | |
#fail over hostが持つIDを$arrrayに格納する。 | |
foreach($a in $array) { | |
foreach($fh in $a.ExtensionData.Configuration.DasConfig.AdmissionControlPolicy.Failoverhosts){ | |
$array.add($fh) | |
} | |
} |