| name | govuk-style | |||||||
|---|---|---|---|---|---|---|---|---|
| description | Write and edit in GOV.UK / GDS house style — plain English, active voice, front-loaded content, sentence case, and no bold or italics for emphasis. Use when writing or editing reports, research write-ups, guidance, documentation, summaries, or any prose where clarity and accessibility matter. | |||||||
| user-invokable | true | |||||||
| args |
|
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
| [CmdletBinding()] | |
| param ( | |
| [parameter(mandatory)][string]$EntryYamlPath | |
| ) | |
| function Resolve-VariableTemplates { | |
| param ( | |
| [string]$EntryYamlPath | |
| ) |
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
| open -e README.txt |
Fedora dependencies
dnf install -y patch autoconf automake bison bzip2 gcc-c++ libffi-devel libtool libyaml-devel make patch readline-devel sqlite-devel zlib-devel openssl-devel glibc-devel
dnf install -y cmake ImageMagick-devel findutils procps vim
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
| dotnet build | |
| $binPath=(Get-Item bin\Debug\net6.0\*.exe).FullName | |
| # Installs service | |
| sc.exe create EML.AspNetCoreWindowsService binPath=$binPath DisplayName="Demo AspNetCore Windows Service" | |
| # Starts service, hits the URL, stop-service | |
| start-service EML.AspNetCoreWindowsService; curl.exe http://localhost:5000/; stop-service EML.AspNetCoreWindowsService |
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
| new-selfsignedcertificate | |
| https://www.fearofoblivion.com/setting-up-asp-net-dev-certs-for-both-wsl-and-windows | |
| [req] | |
| prompt = no | |
| default_bits = 2048 | |
| distinguished_name = subject | |
| req_extensions = req_ext | |
| x509_extensions = x509_ext |
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
| <Project Sdk="Microsoft.NET.Sdk.Worker"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>net5.0</TargetFramework> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" /> | |
| <PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" /> |
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
| // <PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="3.1.3" /> | |
| public class BloggingContext : DbContext | |
| { | |
| public DbSet<Blog> Blogs { get; set; } | |
| public DbSet<Post> Posts { get; set; } | |
| protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) | |
| => optionsBuilder.UseNpgsql("Host=my_host;Database=my_db;Username=my_user;Password=my_pw"); | |
| } | |
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
| (* creates a web server in F# script *) | |
| #I @"C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\5.0.4" | |
| #r "Microsoft.AspNetCore" | |
| #r "Microsoft.AspNetCore.Routing" | |
| #r "Microsoft.AspNetCore.Http.Abstractions" | |
| #r "Microsoft.AspNetCore.Hosting" | |
| #r "Microsoft.AspNetCore.Diagnostics" | |
| #r "Microsoft.AspNetCore.Hosting.Abstractions" | |
| #r "Microsoft.Extensions.DependencyInjection.Abstractions" |
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.Diagnostics; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using Newtonsoft.Json; | |
| namespace MyDankyWebServer |
NewerOlder