Skip to content

Instantly share code, notes, and snippets.

View nickalbrecht's full-sized avatar

Nick Albrecht nickalbrecht

View GitHub Profile
@NickCraver
NickCraver / Microsoft.PowerShell_profile.ps1
Last active August 9, 2024 02:26
Craver's oh-my-posh profile
# This goes in your Microsoft.PowerShell_profile.ps1 (can find the path via $PROFILE in your prompt)
Import-Module -Name posh-git,oh-my-posh,Terminal-Icons
Set-PoshPrompt -Theme craver
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
@DarranShepherd
DarranShepherd / iisexpresscert.ps1
Created April 20, 2017 15:15
New IIS Express self signed certificates
# Create new self signed cert with SAN
$cert = New-SelfSignedCertificate -CertStoreLocation cert:\LocalMachine\My -DnsName localhost
$thumbprint = $cert.Thumbprint
# Add self-signed cert to trusted roots
Export-Certificate -Cert $cert -FilePath .\root.crt
Import-Certificate -CertStoreLocation Cert:\LocalMachine\Root -FilePath .\root.crt
Remove-Item .\root.crt
# Get current configurations