Skip to content

Instantly share code, notes, and snippets.

View elliot-huffman's full-sized avatar
🚀
You are limited only by the limitations of your imagination!

Elliot Huffman elliot-huffman

🚀
You are limited only by the limitations of your imagination!
View GitHub Profile
@elliot-huffman
elliot-huffman / Import-Git.ps1
Last active March 9, 2018 12:51
Automatically sets up the Technet Virtual Hands on lab for ADFS learning. Preps the file servers for sharing of storage space.
# Takes the URL of a file on github.
param([string]$GitHubFileURL = "https://gist.githubusercontent.com/elliot-labs/d4b09e43db53b54612969ce1b45c5e36/raw/63197869f0f5765c3a762f45a96def4387a9d11e/Set-LabEnv.ps1")
# Download the script file.
Invoke-WebRequest -Uri $GitHubFileURL -OutFile $env:TEMP\Set-LabEnv.ps1
# Set the location for script execution
Set-Location $env:TEMP
# Execute it!
@elliot-huffman
elliot-huffman / .gitignore
Last active February 21, 2022 22:58
A gitignore for all of your Apache Cordova needs.
# Cordova Global
plugins/
# iOS Platform
platforms/ios/build/
platforms/ios/www/
platforms/ios/cordova/console.log
*.xcuserdatad
# Android Platform
@elliot-huffman
elliot-huffman / puppet.sh
Created January 30, 2017 13:28
Automatically sets up the Puppetlabs repository for your platform.
#!/bin/bash
wget https://apt.puppetlabs.com/puppetlabs-release-pc1-$(lsb_release -cs).deb
sudo dpkg -i puppetlabs-release-pc1-$(lsb_release -cs).deb
rm puppetlabs-release-pc1-$(lsb_release -cs).deb
sudo apt-get update
sudo apt-get install --only-upgrade puppetlabs-release-pc1
sudo apt-get update
@elliot-huffman
elliot-huffman / create-folders.ps1
Created December 22, 2016 01:08
J-J-Auto-Folder-Creator
$Name = Import-Csv -Path '.\Master Folder List.csv'
Function New-Folders ($EntityType, $ParentFolderName, $TargetYear) {
New-Item -Path ".\output\$EntityType\$ParentFolderName\$TargetYear\Compliance" -ItemType "directory" -ErrorAction Stop -Force
New-Item -Path ".\output\$EntityType\$ParentFolderName\$TargetYear\Financial Statement" -ItemType "directory" -ErrorAction Stop -Force
New-Item -Path ".\output\$EntityType\$ParentFolderName\$TargetYear\Tax Return" -ItemType "directory" -ErrorAction Stop -Force
New-Item -Path ".\output\$EntityType\$ParentFolderName\$TargetYear\Unfiled" -ItemType "directory" -ErrorAction Stop -Force
}
foreach ($Line in $Name) {