bitScry - Blog

Shinigami

About this site

This is a blog to help me remember some of the coding challenges I’ve faced and hopefully help others out if they’re suffering the same problems.

Recent Posts
  • Adding a Sonoff Zigbee Dongle Plus P Router to Zigbee2MQTT
  • Configuring Raspberry Pi 5 with NVME Hat
  • Pass Through an iGPU to Frigate from Proxmox
  • Creating a Frigate VM on Proxmox
  • Enable Remote Root SSH Login
Tag Cloud

.NET .NET Core AAD API appsettings.json ASP.NET Core Authentication Authorization Azure Azure Active Directory Azure Function Azure Storage Blob Bootstrap C# Cloud Storage Console Application CSS CSV DataTable Dependency Injection Dictionary Docker Entity Framework Enum Extension HTML Image JavaScript jQuery JSON List MVC Newtonsoft Raspberry Pi RestSharp Serilog SQL Stored Procedure Stream Table Table Storage Web App Web Application WordPress

Copyright
Creative Commons License Any code within by Shinigami is licensed under a Creative Commons Attribution 4.0 International License.
Azure

Efficiently Deleting Rows from Azure Table Storage

Azure Table storage is a way of storing structured NoSQL data in the cloud, as such it’s more geared towards rapid read access rather than manipulation of data in the table. If you want to perform any operations such as updates or deletes on data in your table then the Read more…

By Shinigami, 6 years ago
Azure

Running xUnit Tests in Azure DevOps

I’ve recently started trying to get my head around unit testing (I probably should have learnt this a while ago) and part of this has involved trying to figure out the best way to integrate them with Azure DevOps. In my case I wanted to have a pipeline which built Read more…

By Shinigami, 6 years ago
Programming

Generating URLs in an MVC Page

If you want to generate URLs for use in an MVC webpage for actions in your controller then the UrlHelper Action method is pretty handy. This can be embedded into your cshtml page and will generate a URL at runtime for the specified action which will be relative to where Read more…

By Shinigami, 6 years ago
Programming

Fixing Font Awesome in Hestia

I use the Hestia theme for this site which I think looks pretty good. One problem with it however is that uses v4 syntax for Font Awesome icons but includes v5 of Font Awesome in its assets. The change from v4 to v5 of Font Awesome was quite a large Read more…

By Shinigami, 6 years ago
Programming

SQL Table Size Query

Below is a SQL query for getting database sizes borrowed from this post. Unfortunately it doesn’t work on Azure SQL databases unless you’ve been granted VIEW_DATABASE_STATE permissions.

By Shinigami, 6 years ago
Programming

Blog Post Code Licensing

I hadn’t really thought about this before as I’d just assumed that any code that I posted would be freely available for anyone else to use as they saw fit but it turns out that I actually implicitly retain the copyright if no license is provided. I have now added Read more…

By Shinigami, 6 years ago
Programming

JavaScript Cookie Function

If for whatever reason you can’t just use a nice jQuery plugin like js-cookie then the below Javascript will serve as a basic method of setting and getting cookies.

By Shinigami, 6 years ago
Programming

Fixing Obsolete LoggerFactory Extension Methods

I use Serilog for logging in most of my console applications as specified here, however the AddConsole and AddDebug extension methods are now obsolete in .NET Core 2.2 giving the below errors. ‘ConsoleLoggerExtensions.AddConsole(ILoggerFactory)’ is obsolete: ‘This method is obsolete and will be removed in a future version. The recommended alternative Read more…

By Shinigami, 6 years ago
Azure

Using Azure Key Vault in a Console Application

Azure Key Vault is a pretty handy way of centrally managing access to secrets and logging what process has requested access to them. The best way to use it is for Azure hosted resources such as Web Applications or VMs for which you can assign a managed identity to the Read more…

By Shinigami, 6 years ago
Programming

Logging Failed Requests to Serilog Using Middleware

This is an evolution of my previous post in which I described a method for inspecting the body of a request in a middleware method and passing it out so it could be logged later if required. The below code reads in the body of a request and then if Read more…

By Shinigami, 6 years ago

Posts pagination

Previous 1 … 10 11 12 … 21 Next
  • About
  • Blog
  • Contact
  • Create your website with blocks
  • Sample Page
  • Sample Page
Hestia | Developed by ThemeIsle