Skip to content

Instantly share code, notes, and snippets.

Avatar

Krzysztof Koziarski kkoziarski

View GitHub Profile
@Tiberriver256
Tiberriver256 / boxstarter
Last active Oct 14, 2021
My personal development environment configuration
View boxstarter
# Configure Windows
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Update-ExecutionPolicy Unrestricted
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module -Name Get-ChildItemColor, oh-my-posh -Force
## Git
cinst -y git.install
@sixeyed
sixeyed / profile.ps1
Created Nov 1, 2018
PowerShell profile with a Linux-style prompt and aliases for common Docker commands
View profile.ps1
function Prompt(){
$W = Split-Path -leaf -path (Get-Location)
$prompt = Write-Prompt "$($env:UserName)@$($env:ComputerName):" -ForegroundColor Green
$prompt += Write-Prompt $W -ForegroundColor DarkCyan
$prompt += Write-Prompt '>'
return ' '
}
function Remove-StoppedContainers {
docker container rm $(docker container ls -q)
@kkoziarski
kkoziarski / Paradox-custom-theme.psm1
Last active Feb 9, 2019
Scripts to run on a new system
View Paradox-custom-theme.psm1
#requires -Version 2 -Modules posh-git
function Write-Theme {
param(
[bool]
$lastCommandFailed,
[string]
$with
)
@strarsis
strarsis / docker-on-wsl-windows-10-home-docker-toolbox.md
Last active Dec 1, 2021
Notes about Docker on WSL (Windows 10 Home / Docker Toolbox) (Virtualbox instead Hyper-V)
View docker-on-wsl-windows-10-home-docker-toolbox.md

Edit (September 2020):

@jchandra74
jchandra74 / PowerShell Customization.md
Last active Jan 11, 2022
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization
View PowerShell Customization.md

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@dogfuntom
dogfuntom / 1_VsVimCookbook.md
Last active Oct 27, 2021
VsVim Registers and Marks Cheat Sheet #vs #vim #vsvim
View 1_VsVimCookbook.md

Workarounds

Filling empty line between { and }

When you type a new method, VS aids you and you end up with this:

private void Foo()
{

}
@btroncone
btroncone / ngrxintro.md
Last active Jan 19, 2022
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series
View ngrxintro.md

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@CMCDragonkai
CMCDragonkai / angularjs_directive_attribute_explanation.md
Last active Nov 5, 2021
JS: AngularJS Directive Attribute Binding Explanation
View angularjs_directive_attribute_explanation.md

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>