Skip to content

Instantly share code, notes, and snippets.

Avatar

Nick Kavadias nkavadias

View GitHub Profile
View PowerShell: Resize-Image
<#
.SYNOPSIS
Resize an image
.DESCRIPTION
Resize an image based on a new given height or width or a single dimension and a maintain ratio flag.
The execution of this CmdLet creates a new file named "OriginalName_resized" and maintains the original
file extension
.PARAMETER Width
The new width of the image. Can be given alone with the MaintainRatio flag
.PARAMETER Height
@nkavadias
nkavadias / ExportSchema.ps1
Last active Feb 20, 2018 — forked from cheynewallace/ExportSchema.ps1
Export MSSQL schema with PowerShell. This script will export your schema definitions for tables, stored procs, triggers, functions and views to .sql files
View ExportSchema.ps1
<#
.SYNOPSIS
Export schema for a database
.DESCRIPTION
This script will export your schema definitions for tables, stored procs, triggers, functions and views to .sql files
.PARAMETER ServerName
database server instance
.PARAMETER DatabaseName
You can specify a database name to only export single DB schema
.PARAMETER ScriptPath