Skip to content

Instantly share code, notes, and snippets.

Avatar

Nick Kavadias nkavadias

View GitHub Profile
View gist:f1b7757dc8ee9c1dcf6b4e50d59ac492
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
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
View pi-hole-workshop-instructions-using-VM.md
@nkavadias
nkavadias / pi-hole-workshop-instructions-using-Rpi.md
Last active Apr 1, 2021
Raspberry Pi instructions for Pi-hole setup
View pi-hole-workshop-instructions-using-Rpi.md
View keybase.md

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:

@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