Skip to content

Instantly share code, notes, and snippets.

@developerprofiles
developerprofiles / clean_dotnet_build_files.sh
Created February 26, 2021 10:46 — forked from jonlabelle/clean_dotnet_build_files.sh
Delete dotnet build dirs and files ('bin', 'obj', etc) recursively, starting from the current working directory.
#!/usr/bin/env bash
#
# Delete dotnet build dirs and files (e.g. 'bin', 'obj', etc...)
# recursively, starting from the current working directory (PWD).
#
# TODO:
# - Handle unknown options passed in as arguments
#
# Author: Jon LaBelle

IIS Config File Paths

Internet Information Services (IIS) 7 and later use an XML-based configuration system for storing IIS settings which replaces the metabase that was used in IIS 6.0 and earlier. This new configuration system was introduced with ASP.NET and is based on a hierarchical system of management system that uses *.config files. The configuration files for IIS 7 and later are located in the %windir%\System32\inetsrv\config folder.

applicationHost.config

title subtitle author date source notoc
PowerShellGet Commands
PowerShell command examples to discover, install, update and publish PowerShell artifacts, and from the online PowerShell Gallery
Jon LaBelle
June 1, 2019
false

*PowerShellGet is a module with commands for discovering, installing, updating

@developerprofiles
developerprofiles / NormalizeLineEndings.cs
Created February 26, 2021 10:46 — forked from jonlabelle/NormalizeLineEndings.cs
Normalize line endings in C#.
/// <summary>
/// Normalize line endings.
/// </summary>
/// <param name="lines">Lines to normalize.</param>
/// <param name="targetLineEnding">If targetLineEnding is null, Environment.NewLine is used.</param>
/// <exception cref="ArgumentOutOfRangeException">Unknown target line ending character(s).</exception>
/// <returns>Lines normalized.</returns>
/// <remarks>
/// https://jonlabelle.com/snippets/view/csharp/normalize-line-endings
/// </remarks>
@developerprofiles
developerprofiles / dotnet-format-wrapper.sh
Created February 26, 2021 10:46 — forked from jonlabelle/dotnet-format-wrapper.sh
Bash wrapper script for the .NET Format global CLI tool.
#!/usr/bin/env bash
#
# Bash wrapper script for the .NET Format global CLI tool.
#
# Author........: Jon LaBelle
# Date..........: February 4, 2021
# Snippet.......: https://jonlabelle.com/snippets/view/shell/net-format-bash-wrapper-script
# Gist..........: https://gist.github.com/jonlabelle/a0751768a220274a90d4be498da51643
# .NET Format...: https://github.com/dotnet/format
@developerprofiles
developerprofiles / msbuild-dotnet-aspnet-build.md
Created February 26, 2021 10:43 — forked from jonlabelle/msbuild-dotnet-aspnet-build.md
Build, Publish and Deploy ASP.NET Web Applications from the Command Line
@developerprofiles
developerprofiles / fwsql.ps1
Created February 4, 2021 16:47 — forked from samonzeweb/fwsql.ps1
Open firewall ports for SQL Server with PowerShell
# SQL Sever & firewall : https://docs.microsoft.com/en-us/sql/sql-server/install/configure-the-windows-firewall-to-allow-sql-server-access
# New-NetFirewallRule : https://docs.microsoft.com/en-us/powershell/module/netsecurity/new-netfirewallrule?view=win10-ps
New-NetFirewallRule -DisplayName "SQLServer default instance" -Direction Inbound -LocalPort 1433 -Protocol TCP -Action Allow
New-NetFirewallRule -DisplayName "SQLServer Browser service" -Direction Inbound -LocalPort 1434 -Protocol UDP -Action Allow