Skip to content

Instantly share code, notes, and snippets.

View ChuckBryan's full-sized avatar

Chuck Bryan ChuckBryan

View GitHub Profile
<PackageReference Include="Serilog.Enrichers.Environment" Version="2.2.0" />
<PackageReference Include="Serilog.Enrichers.Process" Version="2.0.2" />
<PackageReference Include="Serilog.Enrichers.Thread" Version="3.1.0" />
<PackageReference Include="Serilog.Extensions.Hosting" Version="5.0.1" />
<PackageReference Include="Serilog.Settings.Configuration" Version="3.4.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
"Serilog": {
"MinimumLevel": {
@ChuckBryan
ChuckBryan / jandedobbeleer.omp.json
Created May 16, 2022 13:38
My Oh My Posh config
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
@ChuckBryan
ChuckBryan / settings.json
Created May 11, 2022 20:00
Terminal Settings
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@ChuckBryan
ChuckBryan / gist:a57c92bea3c97f2cf53121052d97be48
Created May 22, 2021 11:41
Install Specific Version of RHEL Tools
Run as ROOT
Remove existing container-tools
sudo yum module remove -y container-tools
Disable current repository (if you miss this, you will be told)
yum module reset container-tools
Enable the version that you want:
sudo yum module enable -y container-tools:3.0
@ChuckBryan
ChuckBryan / docker-compose.yml
Created April 5, 2020 16:47
Another Automated volume example...note the quotes around the volume. Without them, it wasnt working for me.
version: '3.4'
services:
marathontimetracker.server:
image: ${DOCKER_REGISTRY-}marathontimetrackerserver
build:
context: .
dockerfile: MarathonTimeTracker.Server/Dockerfile
environment:
- DB_PW
@ChuckBryan
ChuckBryan / docker-compose.yml
Created April 5, 2020 16:36
docker compose with auto volume
version: '3.4'
services:
marathontimetracker.server:
image: ${DOCKER_REGISTRY-}marathontimetrackerserver
build:
context: .
dockerfile: MarathonTimeTracker.Server/Dockerfile
environment:
- DB_PW
'use strict';
// IIFE - Immediately Invoked Function Expression
(function(ajaxvalidationsetip) {
// The global jQuery object is passed as a parameter
ajaxvalidationsetip(window.jQuery, window, document);
}(function($, window, document) {
@ChuckBryan
ChuckBryan / gist:6cde39b6049304c75b4e6d18dbd243ce
Created November 21, 2017 11:17
NPM Init for typescript and webpack
npm init
npm install webpack webpack-dev-server typescript typings ts-loader -s
npm install rxjs -h
import { Observable } from 'rxjs';
/* import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/filter'; */
let numbers = [1, 5, 10];
let source = Observable.create(observer => {
let index = 0;
let produceValue = () => {