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 / 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 / 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 / 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 / .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 / 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 / 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
)
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@rprouse
rprouse / settings.json
Last active April 6, 2017 12:07
User settings for Visual Studio Code
// Place your settings in this file to overwrite the default settings
{
"editor.acceptSuggestionOnEnter": false,
"editor.cursorBlinking": "phase",
"editor.cursorStyle": "line",
"editor.fontFamily": "Fira Code, Hack, Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.formatOnSave": false,
"editor.glyphMargin": true,
@rprouse
rprouse / .editorconfig
Created March 13, 2017 18:47
Default EditorConfig file for the root of my source tree.
# EditorConfig helps developers define and
# maintain consistent coding styles between
# different editors and IDEs
# http://EditorConfig.org
# top-most EditorConfig file
root = true
# Don't use tabs for indentation.