Skip to content

Instantly share code, notes, and snippets.

View DocGreenRob's full-sized avatar
💭
Love!

Robert Green DocGreenRob

💭
Love!
View GitHub Profile
@DocGreenRob
DocGreenRob / SSRS 2014 Migration with Custom Forms Authentication.txt
Created October 25, 2023 04:21
SSRS 2014 Migration w/ Custom Forms Authentication
SSRS 2014 Migration w/ Custom Forms Authentication
@DocGreenRob
DocGreenRob / Pro Tools
Last active April 6, 2024 05:49
.Net Engineer Pro Tools
Windows Pro Tips
-----------------
powertoys - https://apps.microsoft.com/store/detail/microsoft-powertoys/XP89DCGQ3K6VLD
devtoys - https://apps.microsoft.com/store/detail/devtoys/9PGCV4V3BK4W
Visual Studio 2022 Pro Tips
---------------------------
vscoloroutput - https://marketplace.visualstudio.com/items?itemName=MikeWard-AnnArbor.VSColorOutput
solutionColor - https://marketplace.visualstudio.com/items?itemName=Wumpf.SolutionColor
save vs settings to apply to other computer - https://learn.microsoft.com/en-us/visualstudio/install/import-export-installation-configurations?view=vs-2022
@DocGreenRob
DocGreenRob / sql power tools
Last active May 4, 2024 17:02
Find references in all Columns and Tables
SELECT column_name,
table_name,
table_schema
FROM information_schema.columns
WHERE column_name LIKE '%calendar%'
AND table_schema IN ( 'dbo' )
ORDER BY table_name, column_name
@DocGreenRob
DocGreenRob / ExceptionMiddleware.cs
Created September 24, 2021 18:27
ExceptionMiddleware Example
using Cge.Core.Extensions;
using Cge.Core.Logging;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using Newtonsoft.Json;
using System;
using System.ComponentModel.DataAnnotations;
using System.Net;
using System.Threading.Tasks;
@DocGreenRob
DocGreenRob / BaseController.cs
Created September 24, 2021 18:16
BaseController Example
using Cge.Core.Extensions;
using Cge.Core.Logging;
using Cge.Core.Models;
using HomeaZZon.Common.Dto;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Primitives;
namespace HomeaZZon.Api.Controllers
{
@DocGreenRob
DocGreenRob / AmazonController.cs
Created September 24, 2021 17:53
Proper Controller Example
using Cge.Core.Extensions;
using Cge.Core.Logging;
using Cge.Core.Models;
using HomeaZZon.Common.Dto;
using HomeaZZon.Common.Enum;
using HomeaZZon.Manager;
using HomeaZZon.Manager.Interfaces;
using HomeaZZon.ServiceBus;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;