Skip to content

Instantly share code, notes, and snippets.

View kevinCefalu's full-sized avatar

Kevin Cefalu kevinCefalu

View GitHub Profile

Pair Programming Code of Conduct

Purpose

The purpose of this Code of Conduct is to ensure a positive, respectful, and productive environment for pair programming. All participants are expected to uphold these principles.

Principles

  1. Respect: Treat your pair programming partner with respect. Be open to their ideas and suggestions. Remember, everyone brings unique skills and perspectives to the table.
@kevinCefalu
kevinCefalu / Get-ADUserLastLogon.ps1
Created August 26, 2021 17:01
Get the last recorded login timestamp for users across multiple domain controllers
#Requires -Module ActiveDirectory
using namespace Microsoft.ActiveDirectory.Management;
function Get-ADUserLastLogon
{
<#
.SYNOPSIS
Get the last recorded login for one or more users across one or more domain controllers
@kevinCefalu
kevinCefalu / media-configuration.md
Last active October 21, 2020 17:33
JWilson - Getting Started
@kevinCefalu
kevinCefalu / Get-ThingiverseFile.ps1
Last active April 7, 2020 16:59
Function to download a thingiverse file archive
function Get-ThingiverseFile
{
[CmdletBinding()]
[OutputType([void])]
param (
[Parameter(Mandatory)]
[uint32] $Id,
<#
.SYNOPSIS
Update your desktop wallpaper from Windows Spotlight using PowerShell
.NOTES
Author: Shannon Graybrook
Github: github.com/realslacker
#>
#requires -version 5.1
<#
.SYNOPSIS
Update your desktop wallpaper from Windows Spotlight using PowerShell
.NOTES
Author: Shannon Graybrook
Github: github.com/realslacker
#>
#requires -version 5.1
@kevinCefalu
kevinCefalu / Invoke-PercentCalculation.ps1
Last active January 24, 2020 20:30
A function to invoke percentage calculations.
function Invoke-PercentCalculation
{
<#
.SYNOPSIS
Invoke a Percentage Calculation
.DESCRIPTION
Invoke a Percentage Calculation for one of the
three following calculation types:
@kevinCefalu
kevinCefalu / Get-MultiFileHash.ps1
Last active January 24, 2020 20:33
A function to calculate hashes on files, using one or more algorithm types.
function Get-MultiFileHash
{
[CmdletBinding(DefaultParameterSetName = 'Path')]
param (
[Parameter(
Mandatory,
ParameterSetName = 'Path'
)]
[string[]] $Path,