Skip to content

Instantly share code, notes, and snippets.

View ossentoo's full-sized avatar

Oscar ossentoo

View GitHub Profile
# syntax=docker/dockerfile:experimental
FROM node:14.10-slim AS npm_builder
WORKDIR /frontend
COPY package.json package-lock.json webpack.mix.js composer.json \
composer.lock server.js server.php sshd_config ssh_setup.sh /frontend/
COPY resources/ /frontend/resources/
COPY config/ /config/
COPY app/ /app/
COPY bootstrap/cache/ bootstrap/app.php /bootstrap/
public class Program
{
const string WebAdminServerApi = "application.web.admin.ServerAPI";
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("app");
Configure(builder.Services, builder.Configuration);
public class ApiAuthenticationStateProvider : AuthenticationStateProvider
{
private readonly HttpClient _httpClient;
private readonly ILocalStorageService _localStorage;
public ApiAuthenticationStateProvider(HttpClient httpClient, ILocalStorageService localStorage)
{
_httpClient = httpClient;
_localStorage = localStorage;
}
resource "azurerm_resource_group" "test" {
name = "terraform-testing"
location = "South Central US"
}
resource "azurerm_virtual_network" "test" {
name = "acctvn"
address_space = ["10.0.5.0/24"]
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
1@Macbooks-MacBook-Pro subscriptions (master) $ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.azurerm_client_config.current: Refreshing state...
data.azurerm_client_config.current: Refreshing state...
data.azurerm_client_config.current: Refreshing state...
data.azurerm_client_config.current: Refreshing state...
data.azurerm_client_config.current: Refreshing state...
@ossentoo
ossentoo / parameters.json
Last active April 6, 2018 16:30
ARM Template: Web App with traffic manager and custom hostname
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"webAppPrefix": {
"value": "siteapidev2-lbxvta4fkayk6-site-0"
},
"storageAccountName": {
"value": "siteapidev0406141102"
},