Skip to content

Instantly share code, notes, and snippets.

View rprouse's full-sized avatar
:octocat:
Working from home

Rob Prouse rprouse

:octocat:
Working from home
View GitHub Profile
@rprouse
rprouse / .dircolors
Created September 11, 2023 14:32
Linux Configuration Files
# Exact Solarized Dark color theme for the color GNU ls utility.
# Designed for dircolors (GNU coreutils) 5.97
#
# This simple theme was simultaneously designed for these terminal color schemes:
# - Solarized dark (best)
# - Solarized light
# - default dark
# - default light
# with a slight optimization for Solarized Dark.
#
@rprouse
rprouse / mc.snippet
Last active September 1, 2023 03:26
MediatR Visual Studio Code Snippets
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>CreateMediatRCommand</Title>
<Author>Rob Prouse</Author>
<Description>Create MediatR Command and Handler with no return type</Description>
@rprouse
rprouse / .bubbles.omp.json
Last active August 29, 2023 14:20
Windows Terminal Settings updated for v0.11, prompt icons updated for Nerd Fonts 3
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "executiontime",
"style": "diamond",
@rprouse
rprouse / ANSI.md
Created July 3, 2023 18:59 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@rprouse
rprouse / .gitconfig
Last active March 8, 2023 22:20
My Windows GitConfig
[user]
name = Rob Prouse
email = r.prouse@valsoftcorp.com
signingkey = E9EEEB0C19C1EC22
[core]
autocrlf = input
excludesfile =
editor = \"C:\\Users\\RobProuse\\AppData\\Local\\Programs\\Microsoft VS Code\\bin\\code\" --wait
[alias]
ignore = update-index --assume-unchanged
@rprouse
rprouse / Coder.psm1
Last active December 5, 2020 08:16
Theme for PowerShell oh-my-posh extension https://github.com/JanJoris/oh-my-posh
#requires -Version 2 -Modules posh-git
function Write-Theme {
param(
[bool]
$lastCommandFailed,
[string]
$with
)
@rprouse
rprouse / Profile.ps1
Last active May 27, 2020 15:04
My Powershell Core 7.x Profile for Windows Development
# Set the code page to the one used by PostGres
chcp 1252
Import-Module posh-git # https://github.com/dahlbyk/posh-git
Import-Module oh-my-posh # https://github.com/JanDeDobbeleer/oh-my-posh
Import-Module PsGoogle # https://github.com/gfody/PsGoogle
Import-Module PSSudo # https://github.com/ecsousa/PSSudo
Import-Module DockerCompletion # https://github.com/matt9ucci/DockerCompletion
Import-Module Get-ChildItemColor # https://github.com/joonro/Get-ChildItemColor
@rprouse
rprouse / ChocolateyInstall.ps1
Last active December 15, 2019 23:13
Boxstarter Computer Setup
#====================================================
# Setting up a new machine using BoxStarter
# 1.Install Windows 8.1 on a new machine.
# 2.Login.
# 3.Open a command prompt and enter the following:
# START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/rprouse/184f55de1e8cfe549d4b/raw/eab3ea82ce33963e2222507c9802e9012f556b7c/ChocolateyInstall.ps1
#====================================================
#====================================================
# Boxstarter options
@rprouse
rprouse / Microsoft.PowerShell_profile.ps1
Last active May 3, 2019 19:54
My PowerShell.Core 6.0 profile
# Set the code page to the one used by PostGres
chcp 1252
Import-Module posh-git
Import-Module oh-my-posh
Import-Module PsGoogle
Import-Module PSSudo
$ThemeSettings.MyThemesLocation = [environment]::getfolderpath("mydocuments")+ '\PowerShell\PoshThemes'
@rprouse
rprouse / Microsoft.PowerShell_profile.ps1
Last active September 13, 2017 14:57
PowerShell Profile for Windows Development
$OutputEncoding = [ System.Text.Encoding]::UTF8
# Set up modules
Import-Module posh-git
Import-Module PSReadLine
Set-PSReadlineOption -HistorySaveStyle SaveAtExit
Import-Module PSLineEndings
Import-Module PsUrl
Import-Module PSColor
Import-Module PsGoogle