Skip to content

Instantly share code, notes, and snippets.

View kenhia's full-sized avatar

Ken Hiatt kenhia

  • Woodinville, WA
View GitHub Profile
@kenhia
kenhia / kzero-short.omp.json
Created March 19, 2024 18:41
Ken's default oh-my-posh theme with short dir
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"console_title_template": "{{ .Host }} {{ .Folder }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
@kenhia
kenhia / kzero.omp.json
Created March 19, 2024 18:40
Ken's default oh-my-posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"console_title_template": "{{ .Host }} {{ .Folder }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
#!/usr/bin/bash
INSTRUCTIONS_URL='https://www.bing.com'
echo "More information and instructions: $INSTRUCTIONS_URL"
echo
echo "About to check if this system has the bare essentials."
echo
echo "This checks if you have:"
echo " git"
@kenhia
kenhia / kub_alias
Last active October 12, 2020 14:09
# common aliases that I use
alias md='mkdir'
alias cls='clear'
alias gr='grep -R --exclude-dir=.git'
if [ -e ~/src/cicd/scripts ]
then
alias marvindev="source ~/src/cicd/scripts/user/ken/k_marvin_dev.sh"
fi
# This works for client creds against Blizzard (change server in $splat.Uri to us.blizzard.net)
# For other uses, YMMV.
$credPlain = '{0}:{1}' -f $env:MY_CLIENT_ID, $env:MY_API_SECRET
$utf8Encoding = [System.Text.UTF8Encoding]::new()
$credBytes = $utf8Encoding.GetBytes($credPlain)
$base64auth = [Convert]::ToBase64String($credBytes)
$splat = @{
Method = 'POST'
@kenhia
kenhia / msbuild.rsp
Created August 28, 2014 02:53
MSBuild Logging response file
/verbosity:normal
/detailedsummary
/fileLogger6
/fileloggerparameters1:Verbosity=normal;logfile=logs\msbuild.log
/fileloggerparameters2:warningsonly;logfile=logs\msbuild.wrn
/fileloggerparameters3:errorsonly;logfile=logs\msbuild.err
/fileloggerparameters4:Summary;Verbosity=minimal;LogFile=logs\msbuild.sum
/fileloggerparameters5:Verbosity=diagnostic;logfile=logs\msbuild.diag
/fileloggerparameters6:Verbosity=detailed;logfile=logs\msbuild.detail
Set-StrictMode -Version latest
# fod : Feet on Desk, just a personal thing I use in place of a corporation for personal stuff
$hkfod = 'HKCU:\Software\fod'
$hkcdalias = Join-Path -Path $hkfod -ChildPath cdalias
$Script:xlocation = @{}
function Set-XLocation
{

Keybase proof

I hereby claim:

  • I am kenhia on github.
  • I am kenhia (https://keybase.io/kenhia) on keybase.
  • I have a public key whose fingerprint is 9483 FBBF 0E86 2449 732F 8EBB 80C0 A6CF D47D B0E9

To claim this, I am signing this object: