Skip to content

Instantly share code, notes, and snippets.

View smabuk's full-sized avatar

Simon Brookes smabuk

View GitHub Profile
@smabuk
smabuk / Fa.razor
Last active October 24, 2021 21:46
FontAwesome Blazor component and example page
@namespace smab.FontAwesome
@if (Name is null)
{
<i class="@($"{cssClass} {faTypeString} {iconName}")" style="@style" @attributes="InputAttributes">@ChildContent</i>
}
else if (Name == "counter")
{
<span class="@cssClass fa-layers fa-fw" style="@style">
<i class="@($"{faTypeString} {iconName}")" @attributes="InputAttributes"></i>
<span class="@($"fa-layers-counter fa-layers-{position}")">@ChildContent</span>
@smabuk
smabuk / Steps to host ASP.NET Core in Docker on a Synology NAS
Created July 16, 2020 13:56
Steps to host ASP.NET Core in Docker on a Synology NAS
# Steps to host ASP.NET Core in Docker on a Synology NAS
This guide assumes that Docker is already installed on the NAS named `nas1`, and that there is a shared folder prepared called `docker`.
The instructions here a for a Windows machine.
---
## 1. Initial set-up (once per NAS)
@smabuk
smabuk / AppsLastUpdated.ps1
Last active February 7, 2019 15:38
PowerShell scripts
Get-Eventlog -Log System -Source Microsoft-windows-windowsupdateclient -InstanceId 19,20 -Newest 30 | Select-Object TimeGenerated, InstanceId, @{Name="ErrorOrReturn"; e={if ($_.InstanceId -eq 19) {$_.ReplacementStrings[2]} else {$_.ReplacementStrings[0]} }}, @{Name="App"; e={if ($_.InstanceId -eq 19) {$_.ReplacementStrings[0]} else {$_.ReplacementStrings[1]} }} | Sort-Object TimeGenerated
@smabuk
smabuk / docker-compose.yml
Created September 8, 2018 15:06
docker-compose.yml for WordPress / MySQL
version: '3.7'
services:
db:
container_name: ${CONTAINER_DB_NAME}
image: mysql:5.7
# restart: always
volumes:
- ${DB_PATH}:/var/lib/mysql
environment: