Skip to content

Instantly share code, notes, and snippets.

View chrisfcarroll's full-sized avatar
🤹‍♂️
🌍...☕...🖥️...⏳...⛪...🛌🏼

Chris F Carroll chrisfcarroll

🤹‍♂️
🌍...☕...🖥️...⏳...⛪...🛌🏼
View GitHub Profile
@chrisfcarroll
chrisfcarroll / EFCoreAndDomainModels.cs
Last active November 7, 2023 12:39
Minimal EFCore Demo for Domain-Application-Infrastructure DDD structure
using System.Diagnostics;
using EFCoreAndDomainModels.Application;
using EFCoreAndDomainModels.Domain;
using EFCoreAndDomainModels.Infrastructure;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using TestBase;
using Xunit.Abstractions;
namespace EFCoreAndDomainModels
# This is Git's per-user configuration file.
# [user]
[alias]
root = rev-parse --show-toplevel
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
[merge]
tool = p4merge
[color]
ui = true
[color "status"]
@chrisfcarroll
chrisfcarroll / Microsoft.PowerShell_profile.ps1
Last active March 24, 2025 15:17
Common Aliases and Paths for PowerShell Profile Microsoft.PowerShell_profile.ps1: editors, paths, git, DevAzure, docker, dotNet, Visual Studio, MsBuild, NuGet, IIS, p4merge, poshgit
# https://gist.github.com/chrisfcarroll/f3ecb2892f996149ee039d48abb57101
# Aliases and Paths for PowerShell Profile ~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
#
# ----------------------------------------------------
# For machines where you have no privileges you should be able to enable scripts for yourself only with:
#
# `Set-ExecutionPolicy RemoteSigned -Scope CurrentUser`
# ----------------------------------------------------
#
# Sections: Paths, Editors, Tab Completion, Git abbreviations, Docker abbreviations, other prefs, firstRun
@folke
folke / apropos.fish
Created October 1, 2020 12:34
Using `apropos` on macos rebuilds the whatis database every time. Fish shell uses apropos for command completion.
# Fixes extremely slow apropos command on macos
# Using `apropos` on macos rebuilds the whatis database every time.
# Fish shell uses apropos for command completion.
# Simply add the file below to `~/.config/fish/conf.d` to fix the issue
set db ~/.whatis.db
function apropos_update
echo "Updating apropos / whatis database at $db"
man --path | tr ":" " " | xargs /usr/libexec/makewhatis -o $db
@jcallaghan
jcallaghan / Highlighted code.html
Last active March 5, 2025 12:29
Example Gist to show the highlighted row URL.
Multiple lines uses a -L15-L19 at the end of the URL where as just a single line used - L13
https://gist.github.com/jcallaghan/611ef3e2f400b5f089354c5d780d8c07#file-highlighted-code-html-L13
https://gist.github.com/jcallaghan/611ef3e2f400b5f089354c5d780d8c07#file-highlighted-code-html-L15-L19
<!--Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eu velit pulvinar, porttitor neque sit amet,
lobortis erat. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec mi
orci, porta et metus eu, blandit ullamcorper neque. Morbi auctor neque tellus, nec lobortis arcu malesuada nec.
Suspendisse eleifend ligula nec massa gravida, id ultrices quam commodo. Nunc malesuada ornare consequat. Morbi
elementum neque sit amet euismod rhoncus. Duis pulvinar libero ornare risus vestibulum rhoncus. Nunc fringilla
@conficient
conficient / BlazorModalExample.razor
Last active November 6, 2024 15:39
Blazor Modal Dialog with no JS interop
<button class="btn btn-primary" @onclick="@ModalShow">Show Dialog!</button>
@if (showModal)
{
<div class="modal fade show" id="myModal" style="display:block" aria-modal="true" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
@jkatz
jkatz / encrypt_password.py
Last active August 23, 2024 15:22
Methods to create password verifiers for PostgreSQL
# Copyright 2019-2022 Jonathan S. Katz
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@jonlabelle
jonlabelle / iis_config_file_paths.md
Created March 21, 2019 15:49
IIS Config File Paths

IIS Config File Paths

Internet Information Services (IIS) 7 and later use an XML-based configuration system for storing IIS settings which replaces the metabase that was used in IIS 6.0 and earlier. This new configuration system was introduced with ASP.NET and is based on a hierarchical system of management system that uses *.config files. The configuration files for IIS 7 and later are located in the %windir%\System32\inetsrv\config folder.

applicationHost.config

@BetimBeja
BetimBeja / Program.cs
Created January 9, 2019 07:55
Simple serialization and deserialization of an XRM Entity with XrmEntitySerializer
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Query;
using Microsoft.Xrm.Tooling.Connector;
using Newtonsoft.Json;
using System;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Net;
using System.ServiceModel;
@necojackarc
necojackarc / Mac Settings.md
Last active February 17, 2025 15:56
Mac Settings

General

  • Enable Tap to Click (System Settings > Trackpad)
  • Show the battery percentage (System Settings > Control Centre > Battery)
  • Show all filename extensions on Finder (Finder > Settings > Advanced)
  • Show Path Bar on Finder (Finder > View)
  • Install KeePassXC to manage credentials
  • Install Google Drive to sync important files such as KeePass file
  • Install Google Chrome
  • Automatically hide and show the Dock (Settings > Desktop & Dock > Dock settings)
  • This allows Mac to show the Dock on each display