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
pm.test("Response time is less than 1 second, retries up to 3 times", function () { | |
pm.expect(pm.response.responseTime).to.be.below(1000, "Response time should be less than 1 second"); | |
let retries = 0; | |
while (pm.response.responseTime >= 1000 && retries < 3) { | |
pm.sendRequest(pm.request, function () { | |
pm.expect(pm.response.responseTime).to.be.below(1000, "Response time should be less than 1 second"); | |
}); | |
retries++; | |
} |
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
function Reload-Profile { | |
@( | |
$Profile.AllUsersAllHosts, | |
$Profile.AllUsersCurrentHost, | |
$Profile.CurrentUserAllHosts, | |
$Profile.CurrentUserCurrentHost | |
) | % { | |
if(Test-Path $_){ | |
Write-Verbose "Running $_" | |
. $_ |
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
## Take adrfolder from -Path switch command line argument and default to current directory | |
# Define the folder containing the ADR markdown files | |
$adrFolder = $args[0] -split ' ' | Where-Object { $_ -ne '' } | Select-Object -First 1 | |
if (-not $adrFolder) { $adrFolder = $PSScriptRoot } | |
# Define the summary markdown file path | |
$summaryFile = "$adrFolder\README.md" | |
# Initialize an array to store ADR statuses and notes |
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
$substringInName = "myservice-rc" | |
$exclusions = @("myservice-rc-tests", "myservice-rc-primary") | |
# Start watching for the pod | |
Watch-Pod -substringInName $substringInName -exclusions $exclusions |
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
using System; | |
using System.Diagnostics; | |
using System.Globalization; | |
using System.Windows.Data; | |
/// <summary> | |
/// This converter does nothing except breaking the | |
/// debugger into the convert method | |
/// </summary> | |
public class DatabindingDebugConverter : IValueConverter |
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
DECLARE @table_name NVARCHAR(255); | |
DECLARE @sql NVARCHAR(MAX); | |
DECLARE @sep NVARCHAR(10); | |
DECLARE @md5_hash NVARCHAR(32); | |
DECLARE table_cursor CURSOR FOR | |
SELECT name FROM sys.tables; | |
OPEN table_cursor; |
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
#!/bin/sh | |
ROTATION=$(shuf -n 1 -e '-' '')$(shuf -n 1 -e $(seq 0.05 .5)) | |
convert -density 150 $1 \ | |
-linear-stretch '1.5%x2%' \ | |
-rotate ${ROTATION} \ | |
-attenuate '0.01' \ | |
+noise Multiplicative \ | |
-colorspace 'gray' $2 |
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
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a semicolon, such as this one, are comments. They are not executed. | |
; Help: | |
; # Win | |
; ! Alt | |
; ^ Ctrl | |
; + Shift | |
; < Izquiero del siguiente | |
; > Derecho del siguiente | |
:*:]d:: ; This hotstring replaces "]d" with the current date and time via the commands below. |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"leading_diamond": "\ue0b6", | |
"background": "#4da0e0", | |
"foreground": "#ffffff", |
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
body { | |
@media (max-width: 900px) { | |
div.atcb_list { | |
width: 100% !important; | |
left: 0 !important; | |
border-radius: 0 !important; | |
bottom: 0 !important; | |
top: unset !important; | |
div.atcb_list_item { |
NewerOlder