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
| if (!(Test-Path -Path "Drift")) | |
| { | |
| mkdir drift | |
| } | |
| az resource list --query '[].{Name:name, Type:type, ResourceGroup:resourceGroup}' --output json > drift/azure_resources.json | |
| terraform show -json > drift/terraform_state.json | |
| # Read the Azure resources JSON file | |
| $azureResources = Get-Content -Path "drift/azure_resources.json" | ConvertFrom-Json |
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
| trigger: | |
| - none | |
| pr: | |
| - develop | |
| schedules: | |
| - cron: "0 6 * * *" | |
| branches: | |
| include: |
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
| function acp { | |
| param([string]$mes = "Small changes") | |
| git add . | |
| git commit -m $mes | |
| git push | |
| } |
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
| function short { | |
| param([string]$url) | |
| $escapedUrl = [URI]::EscapeUriString($url) | |
| $shorturl = curl "https://is.gd/create.php?format=simple&url=$escapedUrl" | |
| Write-Output $shorturl | |
| Set-Clipboard $shorturl | |
| } |
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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: hello-blinkt | |
| labels: | |
| app: hello-blinkt | |
| spec: | |
| replicas: 16 | |
| selector: | |
| matchLabels: |
I hereby claim:
- I am gerrited on github.
- I am gerrited (https://keybase.io/gerrited) on keybase.
- I have a public key whose fingerprint is 0DAE 5EE0 349C 9CE0 D317 9E33 F0B9 5B14 F0C7 C3EE
To claim this, I am signing this object:
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 ControlExtensions | |
| { | |
| public static IDisposable GetRedrawSuspender(this Control cuntrol) { return new RedrawSuspender(cuntrol); } | |
| } | |
| public class RedrawSuspender : IDisposable | |
| { | |
| private Control _control; | |
| internal RedrawSuspender(Control control) |
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 StringExt | |
| { | |
| public static int GetHashCode32(this string s) | |
| { | |
| var chars = s.ToCharArray(); | |
| var lastCharInd = chars.Length - 1; | |
| var num1 = 0x15051505; | |
| var num2 = num1; | |
| var ind = 0; | |
| while (ind <= lastCharInd) |