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: infrastructure.example.org/v1alpha1 | |
kind: Blob | |
metadata: | |
name: myblob | |
namespace: default | |
spec: | |
id: myblob53068859320 | |
parameters: | |
resourcegroup: my-blob-rg |
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: apiextensions.crossplane.io/v1 | |
kind: Composition | |
metadata: | |
name: xblobs.infrastructure.example.org | |
labels: | |
provider: azure | |
spec: | |
compositeTypeRef: | |
apiVersion: infrastructure.example.org/v1alpha1 | |
kind: XBlob |
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: apiextensions.crossplane.io/v1 | |
kind: CompositeResourceDefinition | |
metadata: | |
name: xblobs.infrastructure.example.org | |
spec: | |
group: infrastructure.example.org | |
names: | |
kind: XBlob | |
plural: xblobs | |
claimNames: |
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: meta.pkg.crossplane.io/v1alpha1 | |
kind: Configuration | |
metadata: | |
name: configuration-azure-platform | |
annotations: | |
meta.crossplane.io/maintainer: <replacewithyouremail> | |
meta.crossplane.io/source: github.com/<replacewithyourgiturl> | |
meta.crossplane.io/license: Apache-2.0 | |
meta.crossplane.io/description: | | |
This configuration defines a set of Crossplane APIs for Azure resources |
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
######################################################################################### | |
# | |
# Copyright (c) Microsoft Corporation. All rights reserved. | |
# | |
######################################################################################### | |
Microsoft.PowerShell.Core\Set-StrictMode -Version Latest | |
#region variables |
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
#Let’s enable extra metadata options by default | |
[automount] | |
enabled = true | |
root = /windir/ | |
options = "metadata,umask=22,fmask=11" | |
mountFsTab = false | |
#Let’s enable DNS – even though these are turned on by default, we’ll specify here just to be explicit. | |
[network] | |
generateHosts = 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
{ | |
"images": [ | |
{ | |
"name": "Ubuntu Bionic Beaver", | |
"version": "18.04", | |
"locale": "en-US", | |
"publisher": "Canonical Ltd.", | |
"lastUpdated": "2018-03-25T07:56:00Z", | |
"description": [ | |
"Start a fresh Ubuntu environment.", |
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
// Create a client AF_UNIX socket | |
#define SERVER_ADDRESS “/mnt/c/unix/server.sock” | |
SOCKADDR_UN ServerAddress = {0}; | |
Client = socket(AF_UNIX, SOCK_STREAM, 0); | |
// Bind the socket to a path. | |
ServerAddress.sun_family = AF_UNIX; | |
strcpy(ServerAddress.sun_path, SERVER_ADDRESS); | |
connect(Client, &ServerAddress, sizeof(ServerAddress)); | |
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
// Create a server AF_UNIX socket | |
#define SERVER_ADDRESS “c:\unix\server.sock” | |
SOCKADDR_UN ServerAddress = {0}; | |
Server = socket(AF_UNIX, SOCK_STREAM, 0); | |
// Bind the socket to a path. | |
ServerAddress.sun_family = AF_UNIX; | |
strcpy(ServerAddress.sun_path, SERVER_ADDRESS); | |
bind(Server, &ServerAddress, sizeof(ServerAddress)); | |
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/bash | |
#Generate CA private key | |
openssl genrsa -aes256 -out ca-key.pem 4096 | |
#Generate CA public key | |
openssl req -subj "/C=US/ST=Washington/L=Redmond/O=./OU=." -new -x509 -days 365 -key ca-key.pem -sha256 -out ca.pem | |
#Generate server key | |
openssl genrsa -out server-key.pem 4096 | |
#Generate server signing request |
NewerOlder