Skip to content

Instantly share code, notes, and snippets.

View gep13's full-sized avatar

Gary Ewan Park gep13

View GitHub Profile
@khalidabuhakmeh
khalidabuhakmeh / PlaywrightFixture.cs
Created September 9, 2022 13:54
Playwright tests with XUnit
[CollectionDefinition(nameof(PlaywrightFixture))]
public class SharedPlaywrightCollection : ICollectionFixture<PlaywrightFixture> {}
// ReSharper disable once ClassNeverInstantiated.Global
public class PlaywrightFixture : IAsyncLifetime
{
public async Task InitializeAsync()
{
PlaywrightInstance = await Playwright.CreateAsync();
Browser = await PlaywrightInstance.Chromium.LaunchAsync();
@martinwoodward
martinwoodward / setup.md
Last active December 3, 2023 17:01
Camera Setup
@patriksvensson
patriksvensson / ConsoleBuffer.cs
Last active March 31, 2021 05:28
Double Buffering Console
private static int _bufferHeight;
private static int _bufferY;
public static async Task Main()
{
_bufferWidth = Console.WindowWidth;
_bufferHeight = Console.WindowHeight;
_bufferY = _bufferHeight;
Console.SetBufferSize(_bufferWidth, _bufferHeight * 2);
# ???? Blammo ????
Get-ChildItem | gh gist create
#region issues
cd C:\github\dbatools
gh issue list
gh issue view 6886
# easy to understand visuals and navigation - RUN THIS ON PS CORE!
# What protocol to use when performing git operations. Supported values: ssh, https
git_protocol: https
# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.
editor:
# When to interactively prompt. This is a global config that cannot be overriden by hostname. Supported values: enabled, disabled
prompt: enabled
# A pager program to send command output to. Example value: less
pager:
# Aliases allow you to create nicknames for gh commands
aliases:
@brettmillerb
brettmillerb / zshrc-theme
Last active August 25, 2022 06:09
.zshrc | macOs
# Path to your oh-my-zsh installation.
export ZSH="/Users/brett.miller/.oh-my-zsh"
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
# Set name of the theme to load
ZSH_THEME="powerlevel9k/powerlevel9k"
DISABLE_AUTO_TITLE="true"
# Plugins
@gitfool
gitfool / .bashrc
Last active April 22, 2024 20:19
dotfiles
export HISTCONTROL='ignorespace:ignoredups'
export HISTIGNORE='bg:fg:clear:exit:h:history:l:l[ls]:pwd'
export HISTSIZE=10000
export AWS_PAGER=
export EDITOR=vi
export KUBECONFIG=$(find ~/.kube -maxdepth 1 -type f 2>/dev/null | grep -E 'config[^.]*$' | xargs -I{} -r echo -n ':{}')
export PATH=$HOME/.dotnet/tools:$PATH
alias h='history'
@brettmillerb
brettmillerb / profile.ps1
Last active January 18, 2022 00:46
Mac Pwsh Profile
Import-Module -Name Toolbox
Import-Module -Name Microsoft.PowerShell.UnixCompleters
Import-Module -Name Terminal-Icons
function BackOne {
Set-Location ..
}
function BackTwo {
Set-Location ../..
}
@ecampidoglio
ecampidoglio / starship.toml
Last active January 7, 2023 04:25
starship prompt with Nerd Fonts icons.
# Replace the "❯" symbol in the prompt with "➜"
[character]
symbol = "➜"
# Configure the number of directories to truncate in the current path
[directory]
truncation_length = 3
truncate_to_repo = true
style = "blue"
name: Standard
on:
pull_request:
paths:
- '*.js'
jobs:
lint:
name: lint