Skip to content

Instantly share code, notes, and snippets.

View nkavadias's full-sized avatar

Nick Kavadias nkavadias

View GitHub Profile
@nkavadias
nkavadias / pi-hole-workshop-instructions-using-Rpi.md
Last active March 25, 2024 14:45
Raspberry Pi instructions for Pi-hole setup
<#
.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
VERBOSE: Validate the Rubrik token exists
VERBOSE: Found a Rubrik token for authentication
VERBOSE: Gather API Data for Export-RubrikDatabase
VERBOSE: Selected 1.0 API Data for Export-RubrikDatabase
VERBOSE: Load API data for Export-RubrikDatabase
VERBOSE: Description: Export MSSQL Database from Rubrik to Destination Instance.
VERBOSE: Build the URI
VERBOSE: URI = https://sxxxxbrik1xxx.xxx.xxx/api/v1/mssql/db/MssqlDatabase:::e3145ed3-0fe2-40d7-9cea-??????/export
VERBOSE: Build the query parameters for <null>
VERBOSE: URI = https://sxxxxbrik1xxx.xxx.xxx/api/v1/mssql/db/MssqlDatabase:::e3145ed3-0fe2-40d7-9cea-?????/export
@nkavadias
nkavadias / ExportSchema.ps1
Last active February 20, 2018 22:37 — 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
<#
.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

Keybase proof

I hereby claim:

  • I am nkavadias on github.
  • I am nkav (https://keybase.io/nkav) on keybase.
  • I have a public key ASC4f9euocTzpE8bOJUDUdQhVAwhXdnfwrfzbglE5Mu1AQo

To claim this, I am signing this object: