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
- job: jobRunTestsuites | |
container: golang:1.15-buster | |
displayName: "Run Testsuites" | |
steps: | |
- task: Bash@3 | |
displayName: "Go | Test and handle test cov" | |
inputs: | |
targetType: inline | |
workingDirectory: "$(System.DefaultWorkingDirectory)" | |
script: | |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: simpserver | |
spec: | |
containers: | |
- name: simpserver | |
image: python:3.10 | |
command: ["python3"] | |
args: ["-m", "http.server", "8080"] |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: azcli-delete-me | |
spec: | |
containers: | |
- name: azcli | |
image: mcr.microsoft.com/azure-cli | |
# Just spin & wait forever | |
command: [ "/bin/bash", "-c", "--" ] |
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
resource "azurerm_subnet_network_security_group_association" "bastion-to-vm" { | |
subnet_id = azurerm_subnet.this.id | |
network_security_group_id = azurerm_network_security_group.bastion_to_pipelines.id | |
} | |
resource "azurerm_network_security_group" "bastion_to_pipelines" { | |
name = "vm-nsg" | |
location = azurerm_resource_group.this.location | |
resource_group_name = azurerm_resource_group.this.name |
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
owner="meow" | |
# Search for VMs by tag and output ID in a list | |
az vm list --query "[?tags.owner=='${owner}'].id" --output tsv | |
# Get children of mgmt group | |
az account management-group show --name "internal" --expand --query "children[].name" | |
az aks list --subscription opaopaopa --query "[].{Cluster:name, Power:powerState.code, Status:provisioningState}" --output table |
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
kubectl config unset clusters && kubectl config unset contexts && kubectl config unset users && kubectl config unset current-context |
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
{ | |
# minimized for clarity. | |
# Some of these might not be needed. After some trial and error | |
# I got this working with these configs. | |
# I do not have the patience to rn an elimination test. | |
services.gnome.gnome-remote-desktop.enable = true; | |
# Enable the X11 windowing system. | |
services.xserver.enable = true; |
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
az ssh vm --ip 1.2.3.4 -- "-L 3000:127.0.0.1:3000" |
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
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
nix-darwin.url = "github:LnL7/nix-darwin"; | |
nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; | |
}; | |
outputs = inputs@{ self, nix-darwin, nixpkgs }: | |
let | |
configuration = { pkgs, ... }: { |
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
terraform { | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = "~> 4.0" | |
} | |
azuread = { | |
source = "hashicorp/azuread" | |
version = "~> 3.0" |
OlderNewer