Skip to content

Instantly share code, notes, and snippets.

View LittleKross's full-sized avatar

Brandon Young LittleKross

View GitHub Profile
@LittleKross
LittleKross / Microsoft.PowerShell_profile.ps1
Created November 5, 2020 20:00
My PowerShell Core profile
#Imports
Import-Module posh-git
Import-Module oh-my-posh
#PowerLine Theme
Set-Theme Paradox
#Aliases
Set-Alias code code-insiders
Set-Alias vi vim
@LittleKross
LittleKross / .vimrc
Created November 5, 2020 19:58
My .vimrc file
" Comments in Vimscript start with a `"`.
" If you open this file in Vim, it'll be syntax highlighted for you.
" Vim is based on Vi. Setting `nocompatible` switches from the default
" Vi-compatibility mode and enables useful Vim functionality. This
" configuration option turns out not to be necessary for the file named
" '~/.vimrc', because Vim automatically enters nocompatible mode if that file
" is present. But we're including it here just in case this config file is
" loaded some other way (e.g. saved as `foo`, and then Vim started with
@LittleKross
LittleKross / .\sshSetup.ps1
Created October 21, 2020 12:09
Script to setup win32 OpenSSH Client and Server that comes with windows by default
Get-Process sshd | Set-Proces -StartupType Automatic -PassThru | Start-Service sshd
Get-Process ssh-agent | Set-Proces -StartupType Automatic -PassThru | Start-Service ssh-agent

Keybase proof

I hereby claim:

  • I am littlekross on github.
  • I am littlekross (https://keybase.io/littlekross) on keybase.
  • I have a public key ASBB_K0jWUdSLNylGPhWXIOsLYMT0jFF7VECJH09xAyVyAo

To claim this, I am signing this object:

@LittleKross
LittleKross / PowershellTitle.txt
Created September 8, 2020 14:25
How to conditionally set window name for Powershell - Broken
#IF (([Security.Principal.WindowsPrincipal] ` [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
#{
#$host.ui.RawUI.WindowTitle = "Brandon's Powershell - Running as ADMINISTRATOR"
#}
#Else
#{
#$host.ui.RawUI.WindowTitle = "Brandon's Powershell"
#}