Skip to content

Instantly share code, notes, and snippets.

View JasonCarter80's full-sized avatar

Jason Carter JasonCarter80

View GitHub Profile
@JasonCarter80
JasonCarter80 / Add-Drives.ps1
Last active May 12, 2017 08:06
Windows Vagrant Scripts for Domain
$drive = Get-Disk | Where partitionstyle -eq 'raw' | Initialize-Disk -PartitionStyle MBR
$drive = Get-Disk | Where NumberOfPartitions -eq 0
$drive | New-Partition -DriveLetter 'E' -Size 25GB | Format-Volume -FileSystem NTFS -NewFileSystemLabel "Data" -Confirm:$false -AllocationUnitSize 65536
$drive | New-Partition -DriveLetter 'I' -Size 10GB | Format-Volume -FileSystem NTFS -NewFileSystemLabel "Logs" -Confirm:$false -AllocationUnitSize 65536
$drive | New-Partition -DriveLetter 'N' -Size 25GB | Format-Volume -FileSystem NTFS -NewFileSystemLabel "Temp" -Confirm:$false -AllocationUnitSize 65536
$drive | New-Partition -DriveLetter 'S' -Size 25GB | Format-Volume -FileSystem NTFS -NewFileSystemLabel "System" -Confirm:$false -AllocationUnitSize 65536
$drive | New-Partition -DriveLetter 'W' -Size 25GB | Format-Volume -FileSystem NTFS -NewFileSystemLabel "Backup" -Confirm:$false -AllocationUnitSize 65536

Keybase proof

I hereby claim:

  • I am jasoncarter80 on github.
  • I am jasoncarter80 (https://keybase.io/jasoncarter80) on keybase.
  • I have a public key ASBTkZ7vFYHpY7rdRIQbmjcPlHrkLST8fTcK86AiQdV2uwo

To claim this, I am signing this object:

@JasonCarter80
JasonCarter80 / Restore_From_Directory.sql
Last active October 27, 2017 16:57
Restore SQL from Directory of Files
/****
Use This Script to Build a Restore Set from Backup Directory where the file names have dates embeded in the name
*****/
SET NOCOUNT ON;
DECLARE @dbName sysname = 'databasename'
,@ActualDBName varchar(100) = 'databaseName'
, @backupPath NVARCHAR(500) = 'X:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\databasename\'
, @StopTime DateTime = GETDATE()
@JasonCarter80
JasonCarter80 / Package Control.sublime-settings
Created January 23, 2018 03:35
My Installed Package Control File
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"Anaconda",
"ayu",
variable CostCenter {}
variable Name {}
variable Role {}
data "null_data_source" "tags" {
inputs = {
common_tags = {
Name = "${var.Name}"
Role = "${var.Role}"
CostCenter = "${var.CostCenter}"
@JasonCarter80
JasonCarter80 / .block
Last active July 28, 2018 02:41
Visualizing Airport Delays
license: gpl-3.0
height: 800
scrolling: yes