Skip to content

Instantly share code, notes, and snippets.

@developerprofiles
developerprofiles / exportDatabaseTableToCsv.psm1
Created March 25, 2020 14:13 — forked from Gimly/exportDatabaseTableToCsv.psm1
PowerShell - Export a database table to a CSV file
<#
.SYNOPSIS
Runs a select with on the specified table with the specified columns
and writes the result to a CSV file.
.DESCRIPTION
This function calls the connection passed as a parameter and sends a
SELECT command to it. The table on which the SELECT is run as well as
the selected columns are passed as a parameter.
@developerprofiles
developerprofiles / Jenkinsfile
Created February 4, 2021 16:41 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
@developerprofiles
developerprofiles / docker_start.PS1
Created February 4, 2021 16:44 — forked from BernCarney/docker_start.PS1
Powershell script to start, stop, and restart my jekyll dev container (and clear unsused containers)
#
# Script to start, stop, restart Jekyll Dev Environment container
#
# Set default parameter set
[cmdletbinding(DefaultParameterSetName='container')]
# Intialize parameters
param (
[Parameter(Mandatory = $true)]
@developerprofiles
developerprofiles / docker_start.PS1
Created February 4, 2021 16:44 — forked from BernCarney/docker_start.PS1
Powershell script to start, stop, and restart my jekyll dev container (and clear unsused containers)
#
# Script to start, stop, restart Jekyll Dev Environment container
#
# Set default parameter set
[cmdletbinding(DefaultParameterSetName='container')]
# Intialize parameters
param (
[Parameter(Mandatory = $true)]
@developerprofiles
developerprofiles / ALTERNATIVES.adoc
Created February 4, 2021 16:46 — forked from mbbx6spp/ALTERNATIVES.adoc
Super quick list of alternatives to Jira and/or Confluence, Stash, Crucible, etc.
@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
@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 / 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