directive:
- from: openapi-document
where: '$.paths["/health/startup"].get'
debug: true
transform: |
$.responses["200"].description = "Startup Health check";
- from: openapi-document
where: '$.paths["/health/ready"].get'
debug: true
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
rquackenbush@REMRXQ015570:/mnt/c/scratch/TerraformPasswordRotateRepo$ terraform apply | |
2024-12-18T19:50:44.320-0500 [INFO] Terraform version: 1.10.2 | |
2024-12-18T19:50:44.320-0500 [DEBUG] using github.com/hashicorp/go-tfe v1.70.0 | |
2024-12-18T19:50:44.320-0500 [DEBUG] using github.com/hashicorp/hcl/v2 v2.23.0 | |
2024-12-18T19:50:44.320-0500 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1 | |
2024-12-18T19:50:44.320-0500 [DEBUG] using github.com/zclconf/go-cty v1.15.1-0.20241111215639-63279be090d7 | |
2024-12-18T19:50:44.320-0500 [INFO] Go runtime version: go1.23.3 | |
2024-12-18T19:50:44.320-0500 [INFO] CLI args: []string{"terraform", "apply"} | |
2024-12-18T19:50:44.320-0500 [DEBUG] Attempting to open CLI config file: /home/rquackenbush/.terraformrc | |
2024-12-18T19:50:44.320-0500 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. |
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
[Fact] | |
public async Task Explicit() | |
{ | |
var twinId = Guid.NewGuid().ToString(); | |
var requestScript = $"g.addV('twin').property('id', '{twinId}').property('partitionKey', '{twinId}').property('Prop1', 'SomeValue').property('Prop2', 42)"; | |
var results = await _client.SubmitAsync<IDictionary<string, object>>(requestScript: requestScript); | |
var result = results.SingleOrDefault(); |
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
[include moonraker_obico_macros.cfg] | |
# This file contains pin mappings for the Creality "v4.2.7" board. To | |
# use this config, during "make menuconfig" select the STM32F103 with | |
# a "28KiB bootloader" and serial (on USART1 PA10/PA9) communication. | |
# If you prefer a direct serial connection, in "make menuconfig" | |
# select "Enable extra low-level configuration options" and select | |
# serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC | |
# cable used for the LCD module as follows: | |
# 3: Tx, 4: Rx, 9: GND, 10: VCC |
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
M104 S0 ; turn off hot end temperature | |
M140 S0 ; turn off bed temp | |
; To avoid the Z axis crashing into the print | |
; https://github.com/MarlinFirmware/Marlin/issues/5652#issuecomment-270745225 | |
G92 Z0 ; fake z home | |
G1 Z5 ; raise Z up a bit | |
; G1 Y190 F5000 ; get bed forward | |
G28 X0 ; home X axis |
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
# Create a new key / certificate signing request | |
openssl req -new -newkey rsa:4096 -nodes -keyout snakeoil.key -out snakeoil.csr | |
# Set CN (common name) to "localhost" | |
openssl x509 -req -sha256 -days 365 -in snakeoil.csr -signkey snakeoil.key -out snakeoil.pem | |
# Export the pfx | |
openssl pkcs12 -export -in snakeoil.pem -inkey snakeoil.key -out snakeoil.pfx |
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
namespace ConsoleApp1 | |
{ | |
public static class IEnumerableExtensions | |
{ | |
public static IList<T> CastOrMaterializeList<T>(this IEnumerable<T> source) | |
{ | |
if (source is IList<T>) | |
return (IList<T>)source; | |
return source |
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
using System.Text; | |
namespace ConsoleApp1 | |
{ | |
public static class Columnizer | |
{ | |
public static IEnumerable<string> Columnize(IList<string> headers, IList<string[]> rows, string separator = " ") | |
{ | |
// Start with the lengths of the column headers | |
int[] columnWidths = headers |
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
using System; | |
using System.Collections.Generic; | |
/* | |
Example 1 | |
input : nums = [2,4,2,2,7,5,6,7,8,6,6,2,6,7,6] | |
output : nums = [2,4,5,6,8,6] | |
Example 2 input : nums = [2,2,3,2,3,2] | |
output : nums = [2,3,3] |
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
using System.Collections.Generic; | |
public static class IDictionaryExtensions | |
{ | |
public static bool TryGetValue<TKey, TOutValue, TInValue>(this IDictionary<TKey, TInValue> source, TKey key, out TOutValue value) | |
where TInValue : TOutValue | |
{ | |
if (source.TryGetValue(key, out var temp)) | |
{ | |
value= temp; |
NewerOlder