Skip to content

Instantly share code, notes, and snippets.

View cdhunt's full-sized avatar

Chris Hunt cdhunt

View GitHub Profile
[global]
ioengine=libaio # sync|libaio|mmap
group_reporting
thread
size=10g # Size of test file
cpus_allowed=1 # Only use this CPU core
runtime=300s # Run test for 5 minutes
[test1]
filename=/var/opt/mssql/tmp/fio-test-file
@cdhunt
cdhunt / checkout.yaml
Created September 23, 2021 12:24
Dymanic-ish GitHub Actions Workflow
jobs:
setup:
name: Setup Workflow Variables
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Generate Build matrix

Keybase proof

I hereby claim:

  • I am cdhunt on github.
  • I am chris_hunt (https://keybase.io/chris_hunt) on keybase.
  • I have a public key ASDqctqI9RLH5fhp96Ay1KndIhfhdgq2ODQ9an2I-xgXkwo

To claim this, I am signing this object:

@cdhunt
cdhunt / cdhunt.format.ps1xml
Created April 8, 2021 13:13
Combing FileSystemTypes formats from Powershell-Humanizer and Termincal-Icons
<?xml version="1.0" encoding="utf-8" ?>
<!-- Based on the format.ps1xml file from DirColors
https://github.com/DHowett/DirColors -->
<Configuration>
<SelectionSets>
<SelectionSet>
<Name>FileSystemTypes</Name>
<Types>
<TypeName>System.IO.DirectoryInfo</TypeName>
@cdhunt
cdhunt / Shortcut Target
Last active February 8, 2021 15:46
Information Title Tab script
C:\Users\chunt\AppData\Local\Microsoft\WindowsApps\wt.exe -p "Title" ; new-tab -p "PowerShell"
@cdhunt
cdhunt / settings.json
Last active October 22, 2020 18:45
Windows Terminal Simple Info Tab
{
"guid": "{210e8de2-5833-4c64-b26f-17c59470c5ea}",
"hidden": false,
"name": "Title",
"commandline" : "C:\\Program Files\\PowerShell\\7\\pwsh.exe -c c:\\temp\\title.ps1",
"icon" : "ms-appdata:///Local/dashboard_white_36x36.png"
},
@cdhunt
cdhunt / .ohmyposh-lite.json
Last active August 5, 2022 17:08
oh-my-posh theme
{
"console_title": true,
"blocks": [
{
"type": "newline"
},
{
"type": "prompt",
"alignment": "left",
"segments": [
#Requires -Module Requirements
& {
@{
Describe = 'SecretManagement is installed'
Test = {
$module = Get-Module -Name Microsoft.PowerShell.SecretManagement -ListAvailable -ErrorAction SilentlyContinue
$module.Version -contains '0.2.1'
}
Set = {
function New-PSRepositoryRequirement {
param (
[string]$Name,
[string]$Uri,
[string]$Policy = 'Trusted'
)
New-RequirementGroup 'Repository' -ScriptBlock {
@{
Describe = "$Name is registered"
Test = {
Emery Mora
Yasmine Burke
Justine Beard
Pedro Hardy
Aryana Knox
Gavyn Shaffer
Matilda Meadows
Emilio Kennedy
Nicholas Mays
Quinton Larsen