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
$.ajax({ | |
url:"https://api.jsonstorage.net/v1/json/{id}", | |
type:"PUT", | |
data:'{"key_updated":"value_updated"}', | |
contentType:"application/json; charset=utf-8", | |
dataType:"json", | |
success: function(data, textStatus, jqXHR){ | |
} | |
}); |
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
$.ajax({ | |
url:"https://api.jsonstorage.net/v1/json", | |
type:"POST", | |
data:'{"key":"value"}', | |
contentType:"application/json; charset=utf-8", | |
dataType:"json", | |
success: function(data, textStatus, jqXHR){ | |
} | |
}); |
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
$.get("https://api.jsonstorage.net/v1/json/2ce...", | |
function(data, textStatus, jqXHR) | |
{ | |
}); |
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
$registry = "%registry name here, i.e. myregistry%" | |
$repositories = docker images --digests | % { $_ -replace " +", "," } | convertfrom-csv | where { $_.REPOSITORY.StartsWith($registry) } | group REPOSITORY | |
Write-Output "Found $($repositories.Count) local repositories from $($registry) registry" | |
foreach ($group in $repositories) { | |
$repository = $group.Name.Split('/')[1] | |
$remoteData = az acr repository show-tags -n $registry --repository $repository --detail | convertfrom-json | |
foreach ($localRepo in $group.Group) { | |
$localRepo | Add-Member -NotePropertyName REPO -NotePropertyValue $repository |
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
private void ImModality_InstantMessageReceived(object sender, MessageSentEventArgs e) | |
{ | |
... | |
var botConversation = directLineCLient.Conversations.NewConversationWithHttpMessagesAsync().Result.Body; | |
// Send message from Lync to Bot Framework | |
var message = new Message(); | |
message.ConversationId = botConversation.ConversationId; | |
message.Text = e.Text; | |
var result = directLineCLient.Conversations.PostMessageWithHttpMessagesAsync(botConversation.ConversationId, message).Result; |
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
private static LyncClient client; | |
// Your custom class that handles conversation events | |
private static LyncConversationManager conversation; | |
static void Main(string[] args) | |
{ | |
client = LyncClient.GetClient(); | |
conversation = new LyncConversationManager(brain, client); | |
conversation.StartListening(); |
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
var allNodes = DashboardData.AllNodes.Where(s => !s.IsUnwatched).Where(s => s.CPULoad >= 0 || s.MemoryUsed >= 0).ToList(); | |
var downNodes = allNodes.Where(x => x.Status == NodeStatus.Down); | |
Thread.Sleep(3000); | |
float inBps = 0; | |
float outBps = 0; | |
var totalRam = 0.0; | |
var totalDisk = 0.0; | |
foreach (var node in allNodes) |
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
"providers": [ | |
{ | |
"name": "Orion", | |
"type": "Orion", | |
"host": "monitorXd1:8686", | |
"connectionString": "Data Source=monitorXd1;Initial Catalog=SolarWindsOrion;User ID='SolarWindsOrionDatabaseUser';Password='put the password here';Timeout=10" | |
} | |
] |
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
<configSections> | |
<section name="Settings" type="StackExchange.Opserver.SettingsSection, StackExchange.Opserver.Core" /> | |
<section name="SecuritySettings" type="StackExchange.Opserver.SecuritySettings, StackExchange.Opserver.Core" /> | |
<section name="Exceptional" type="StackExchange.Exceptional.Settings, StackExchange.Opserver.Core" /> | |
</configSections> | |
<SecuritySettings configSource="Config\SecuritySettings.config" /> | |
<Settings name="JSON" provider="JSONFile" path="~\Config\" /> | |
<Exceptional applicationName="Status"> |
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
Update-ExecutionPolicy Unrestricted | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole | |
Enable-WindowsOptionalFeature -Online -FeatureName NetFx3 | |
Enable-WindowsOptionalFeature -Online -FeatureName NetFx4Extended-ASPNET45 | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpRedirect | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-NetFxExtensibility | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-NetFxExtensibility45 | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WindowsAuthentication | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ManagementScriptingTools |
NewerOlder