Skip to content

Instantly share code, notes, and snippets.

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

Chris F Carroll chrisfcarroll

🤹‍♂️
🌍...☕...🖥️...⏳...⛪...🛌🏼
View GitHub Profile
@aparente
aparente / SKILL.md
Last active September 5, 2026 22:12
tufte-viz Claude Code skill — Edward Tufte data visualization principles

name: tufte-viz description: | Ideate and critique data visualizations using Edward Tufte's principles from "The Visual Display of Quantitative Information." Use this skill when: (1) Designing new data visualizations or charts (2) Critiquing or improving existing visualizations (3) Reviewing dashboards or reports for graphical integrity (4) Deciding between visualization approaches (5) Reducing chartjunk or improving data-ink ratio (6) Planning small multiples or high-density displays

@chrisfcarroll
chrisfcarroll / DevAzureReleaseVariableTransform.Tests.ps1
Created March 11, 2025 12:05
Dev Azure Release Pipeline Web.*.config Variable Transform PowerShell Script
using namespace System.Diagnostics
using namespace System.Collections
using namespace System.Collections.Generic
using namespace System.IO.Compression
param ( [switch]$NoRun )
function Assert( [bool]$condition, [string]$message = "Assertion failed" ){
if( -not $condition ) {
Get-PSCallStack | ForEach-Object { Write-Host $_.FunctionName $_.Location $_.Arguments }
@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 August 26, 2026 15:30
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 still 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
@ErikNoren
ErikNoren / Program.cs
Last active May 1, 2026 13:32
ASP.NET Core 6 configuration settings stored in a SQL database and acts just like appsettings.json
//Snippet from Program.cs which adds the provider and sets up a Settings class to map the settings
using ErikNoren.Configuration;
using TestMvcWebApplication;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddSqlDatabase(config =>
{
//We can get the connection string from previously added ConfigurationProviders to use in setting this up
config.ConnectionString = builder.Configuration.GetConnectionString("DemoDatabase");
@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
@IvanCl4udio
IvanCl4udio / gist:b606735bedcdcdea7cb7a9790d96ca74
Last active April 26, 2026 15:01
How configure P4Merge as merge and diff tool on Linux

How configure P4Merge as merge and diff tool on Linux

If you like me use a Linux station to do your development and don't want to use the standard Git diff tool this Gist is for you.

Installation

  1. Download installation from Perforce Web Site

https://www.perforce.com/downloads/visual-merge-tool

@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">