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 Unidash.Auth.Users.Requests | |
| { | |
| public class GetUserRequest : IRequest<IActionResult> | |
| { | |
| public string Id { get; set; } | |
| public GetUserRequest(string id) | |
| { | |
| Id = id; | |
| } |
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
| config: | |
| target: 'https://example.com' | |
| phases: | |
| - name: 'Warm up' | |
| duration: 60 | |
| arrivalRate: 10 # 10 new users per second | |
| rampTo: 40 | |
| - name: 'Max load' | |
| duration: 240 | |
| arrivalCount: 200 # Have 200 users at the end of the duration |
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 IEnumerable<IEnumerable<T>> Chunk<T>(this IEnumerable<T> list, int chunkSize) | |
| { | |
| if (chunkSize <= 0) | |
| { | |
| throw new ArgumentException("chunkSize must be greater than 0."); | |
| } | |
| while (list.Any()) | |
| { | |
| yield return list.Take(chunkSize); |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>404, that's an error</title> | |
| </head> | |
| <style> |
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
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name example.com www.example.com; | |
| location / { | |
| proxy_pass http://localhost:8080; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection 'upgrade'; | |
| proxy_set_header Host $host; |
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
| // ==UserScript== | |
| // @name Copy Azure DevOps ticket to mite scheme | |
| // @namespace https://github.com/ginomessmer/ | |
| // @version 0.1 | |
| // @description See title | |
| // @author Gino Messmer | |
| // @include https://*.visualstudio.com/* | |
| // @grant none | |
| // ==/UserScript== |
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; | |
| using System.Configuration; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Text; | |
| using System.Text.RegularExpressions; | |
| using System.Web; | |
| // Taken from https://raw.githubusercontent.com/devbridge/AzurePowerTools/ |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <configuration> | |
| <system.webServer> | |
| <rewrite> | |
| <rules> | |
| <rule name="HTTP/S to HTTPS Redirect" enabled="true" stopProcessing="true"> | |
| <match url="(.*)" /> | |
| <conditions logicalGrouping="MatchAny"> | |
| <add input="{SERVER_PORT_SECURE}" pattern="^0$" /> | |
| </conditions> |
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.Net; | |
| using System.Net.Http; | |
| using System.Threading.Tasks; | |
| using static System.Console; | |
| namespace HttpAlive | |
| { | |
| class Program | |
| { |
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
| { | |
| "crews": [ | |
| "IGN", | |
| "MP3", | |
| "LSB", | |
| "ZBC", | |
| "RDR", | |
| "TMC", | |
| "MHE", | |
| "LAN", |