TekOnline

Category: Uncategorized

  • Fixing a 1999 Seadoo Speedster.

    This post is to keep things updated as I work on fixing this up. Hopefully it helps someone else out there doing the same to their boat. These things are becoming more and more rare. We got the boat and trailer transferred, and also had to get the trailer registered. The brakes were way out…

  • .NET Testing Cheat Sheet ๐Ÿงช

    Quick Start Commands 1. Navigate to Test Directory 2. Start the Main Application (Required for E2E Tests) 3. Run All Tests Specific Test Commands Run Single Test Method Run Tests by Class Run Tests by Category/Collection Run Multiple Tests with Pattern Build & Test Commands Clean Build Before Testing Build Only (No Test Run) Restore…

  • .NET CLI Commands Reference/Cheat Sheet

    Core Commands dotnet build Builds the project and its dependencies. dotnet run Builds and runs the application. Port Specifications Using –urls Parameter Using Environment Variables Using launchSettings.json Edit Properties/launchSettings.json: Watch Commands dotnet watch Automatically rebuilds and restarts the application when files change. Watch Configuration Add to your .csproj file: Common Development Scenarios CDIS V2 Development Setup Port Conflict Resolution Environment-Specific Commands…

  • Managing Route53 DNS Access with IAM: A Granular Approach

    Introduction When managing DNS records in AWS Route53, it’s crucial to follow the principle of least privilege. This article demonstrates how to create an IAM policy that allows specific groups to manage DNS records in designated hosted zones while maintaining security best practices. Note: The hosted zone IDs in this example are placeholders. Always replace…

  • SQL Server Schema Extractor

    Run this code against a db to get the table and col names:

  • Preserving Critical Code in Git History

    The Problem In large codebases with multiple developers, critical code sections can be accidentally overwritten or removed during merges, refactoring, or cleanup operations. When this happens, it can be challenging to track down when and where the critical code was lost, especially if it happened many commits ago. The Solution: Critical Commit Tags The most…

  • Migrating Windows Server 2019 to Dissimilar Hardware. The easy pathway.

    Moving a server operating system to entirely new hardware can be daunting, especially when the hardware is significantly different from the original. This post details our experience migrating a Windows Server 2019 installation from an HP EliteDesk G2 to a Dell OptiPlex 7090 using Veeam Backup & Replication, focusing on ensuring system stability post-migration. The…

  • Drone CI with Docker Compose – Beginner’s Guide ๐Ÿ’

    What is Drone CI? Drone is a modern Continuous Integration/Continuous Deployment (CI/CD) platform that uses Docker containers to run your build and deployment steps. It’s lightweight, easy to set up, and works great with Docker Compose. Prerequisites Step 1: Setting Up Your Project Structure Create a basic project structure: Step 2: Creating docker-compose.yml Here’s a…

  • Understanding JWT Token Transformation: Bridging OAuth2 and PostgREST

    TLDR: Here is the github repo to pull and try (you will need your own oauth2 provider like google etc) https://github.com/jcianci12/Client-Server-postgrest-jwt-demo ๐Ÿ’ In modern web applications, authentication and authorization are critical components that often involve multiple systems working together. One common challenge is integrating OAuth2 authentication with PostgREST, which requires a specific JWT format. This…

  • Diagnosing and Fixing High CPU Usage in Authentik Stack

    The Problem Recently, we noticed that our Authentik authentication stack was experiencing unusually high CPU usage, with the authentik-server-1 container consuming up to 178.62% CPU. This was causing performance issues and potential system instability. Initial Investigation When we first checked the container stats, we observed: Root Causes Identified After investigating the logs and system state, we identified…