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
| -- Adds a console command "forcerole" | |
| -- forcerole traitor your_name | |
| -- forcerole detective your_name | |
| -- forcerole innocent your_name | |
| if CLIENT then | |
| local function AutoComplete(cmd, stringargs) | |
| local args = string.Split(stringargs, " ") | |
| local suggestions = {} | |
| local role = args[2] |
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
| $endpoint = "myclustername.uksouth.cloudapp.azure.com:19000" | |
| $thumbprint = "a132bd464564ffffff1651f1311f51321" | |
| Connect-serviceFabricCluster ` | |
| -ConnectionEndpoint $endpoint ` | |
| -KeepAliveIntervalInSec 10 ` | |
| -X509Credential ` | |
| -ServerCertThumbprint $thumbprint ` | |
| -FindType FindByThumbprint ` | |
| -FindValue $thumbprint ` |
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
| <policies> | |
| <inbound> | |
| <base /> | |
| <return-response> | |
| <set-status code="200" /> | |
| <set-header name="Content-Type" exists-action="override"> | |
| <value>application/json</value> | |
| </set-header> | |
| <set-body>@{ | |
| var response = new JObject(); |
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
| # List commands and categories of commands | |
| func | |
| # List subscriptions | |
| func azure subscriptions list | |
| # Select active subscription | |
| func azure subscriptions set guid-guid-guid | |
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
| public static class Configuration | |
| { | |
| public static void Load() | |
| { | |
| var config = JObject.Parse(File.ReadAllText(Path.Combine(Directory.GetCurrentDirectory(), "acceptance.settings.json"))); | |
| foreach (var configOption in config["Values"]) | |
| { | |
| var option = (JProperty)configOption; | |
| var key = option.Name; | |
| var value = option.Value.ToString(); |
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
| resource "azurerm_storage_account" "myfunctionstorage" { | |
| name = "myfunctionstorage1234" | |
| resource_group_name = "MyResourceGroup" | |
| location = "UK South" | |
| account_tier = "Standard" | |
| account_replication_type = "LRS" | |
| } | |
| resource "azurerm_app_service_plan" "myfunctionplan" { | |
| name = "myfunctionappserviceplan" |
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
| #ffffff,#d1faff,#e8e8e8,#000000,#e8e8e8,#000000,#000000,#00a0b5 |
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
| var config = JObject.Parse(File.ReadAllText(Path.Join(Directory.GetCurrentDirectory(), "local.settings.json"))); | |
| foreach (var configOption in config["Values"]) | |
| { | |
| var option = (JProperty) configOption; | |
| var key = option.Name; | |
| var value = option.Value.ToString(); | |
| Environment.SetEnvironmentVariable(key, value); | |
| } |
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
| // Example | |
| Timing.After(milliseconds(100)) | |
| .Do(() => console.log("100 millis!")) | |
| .ThenAfter(milliseconds(100)) | |
| .Do(() => console.log("Followed by another 100 ms!")) | |
| .ThenAfterEvery(milliseconds(200)) | |
| .Until((iteration, duration) => iteration >= 5) | |
| .Do(() => console.log("looping every 200ms")); | |