Skip to content

Instantly share code, notes, and snippets.

View ddieppa's full-sized avatar
🏠
Working from home

Daniel Dieppa ddieppa

🏠
Working from home
View GitHub Profile
@ddieppa
ddieppa / Microsoft.PowerShell_profile.ps1
Last active June 21, 2025 19:43
OhMyPosh Configuration and PowerShell Profile
# Handle PowerShell 7.4+ UTF-8 encoding issues
$previousOutputEncoding = [Console]::OutputEncoding
[Console]::OutputEncoding = [Text.Encoding]::UTF8
try {
# # PowerToys Command Not Found Integration (with safe handling)
# $powerToysModulePath = Join-Path $env:LocalAppData "PowerToys\WinGetCommandNotFound.psd1"
# if (Test-Path $powerToysModulePath) {
# try {
# # Enable PowerShell Experimental Features for PowerToys
using ClosedXML.Excel;
using Dapper;
private void ExportByBankWithoutMapping(long batchId,
TemplateType templateType,
string sprocName,
string templatePath,
string fileNameTemplate,
string worksheetName = "Data")
{

tree /A | clip copy the tree structure to the clipboard using only ascii characters tree /a /f show all folder and files names tree structure in the console tree /a /f > dirtree.txt save the tree structure to a file

Here is the MS reference: tree

@ddieppa
ddieppa / UseResolverScopedMediatorAttribute.cs
Created October 8, 2020 12:38 — forked from benmccallum/HC_ResolverScopedService
Resolver scoping middleware (MediatR) for HotChocolate
using System;
using System.Collections.Generic;
using System.Reflection;
using HotChocolate.Types;
using HotChocolate.Types.Descriptors;
using MediatR;
using Microsoft.Extensions.DependencyInjection;
namespace MyCompany.GraphQL
{
@ddieppa
ddieppa / UseResolverScopedMediatorAttribute.cs
Created October 8, 2020 12:38 — forked from benmccallum/HC_ResolverScopedService
Resolver scoping middleware (MediatR) for HotChocolate
using System;
using System.Collections.Generic;
using System.Reflection;
using HotChocolate.Types;
using HotChocolate.Types.Descriptors;
using MediatR;
using Microsoft.Extensions.DependencyInjection;
namespace MyCompany.GraphQL
{
@ddieppa
ddieppa / MultipartRequestMiddleware
Created August 27, 2020 14:16 — forked from PascalSenn/MultipartRequestMiddleware
MultiPartRquestMiddlware made with ❤️ by https://github.com/acelot
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text;
using System.Text.Json;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
@ddieppa
ddieppa / README.md
Created July 18, 2020 06:24 — forked from akashnimare/README.md
A Beginners Guide to writing a Kickass README ✍

Project title

A little info about your project and/ or overview that explains what the project is about.

Motivation

A short description of the motivation behind the creation and maintenance of the project. This should explain why the project exists.

Build status

Build status of continus integration i.e. travis, appveyor etc. Ex. -

Build Status

@ddieppa
ddieppa / terminal-profiles.json
Created April 11, 2020 17:40
Windows Terminal Profiles
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"keybindings": [
{
"command": "copy",
"keys": ["ctrl+c"]
},
{
"command": "paste",
@ddieppa
ddieppa / Setup-Windows-Defender-Exclusions-Rider.ps1
Created April 3, 2020 16:30 — forked from philippdolder/Setup-Windows-Defender-Exclusions-Rider.ps1
Windows Defender configuration for JetBrains Rider
[CmdletBinding()]
param (
[Parameter(Mandatory)]
[string]
$RiderHome
)
function Update-WindowsDefenderForRider {
[CmdletBinding()]
param (
@ddieppa
ddieppa / cloudSettings
Created March 6, 2020 22:08
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-03-06T22:08:55.142Z","extensionVersion":"v3.4.3"}