Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

ctmcisco

🏠
Working from home
  • Chicago, IL
Block or report user

Report or block ctmcisco

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ctmcisco
ctmcisco / ckad-learning.md
Created Jan 23, 2020 — forked from benc-uk/ckad-learning.md
Certified Kubernetes Application Developer (CKAD)
View 20191211-PoshPugDemo.ps1
$Demos = [ordered]@{
"Factory Reset Windows Terminal" = {
Remove-Item "C:\Users\JGrote\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\profiles.json" -Verbose
}
"Restore My Custom WT Profile" = {
Copy-Item "$HOME\documents\windowsterminalprofiles.json" "C:\Users\JGrote\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\profiles.json" -verbose
}
"Show Default Terminal Settings" = {
@ctmcisco
ctmcisco / brk3179_demos.ps1
Created Dec 5, 2019 — forked from joeyaiello/brk3179_demos.ps1
BRK3179 - PowerShell 7 demo script
View brk3179_demos.ps1
# These are the demos I delivered at Ignite for BRK3179 - PowerShell 7
# Not all of them are intended be run as-is, as they may require some dependency
# or be intended to showcase a more complex point (e.g. the AzVM example on &&)
# Those that were executed in the presentation were run with 7.0-preview.5 on the latest Windows 10
#region ETW Provider Definitions
$Providers = @("OAlerts","PowerShellCore/Operational","Microsoft-Windows-WMI-Activity/Operational","Microsoft-Windows-WLAN-AutoConfig/Operational","Microsoft-Windows-Wired-AutoConfig/Operational","Microsoft-Windows-WinRM/Operational","Microsoft-Windows-Winlogon/Operational","Microsoft-Windows-WinINet-Config/ProxyConfigChanged","Microsoft-Windows-WindowsUpdateClient/Operational","Microsoft-Windows-WindowsSystemAssessmentTool/Operational","Microsoft-Windows-Windows Firewall With Advanced Security/Firewall","Microsoft-Windows-Windows Defender/Operational","Microsoft-Windows-WFP/Operational","Microsoft-Windows-WebAuthN/Operational","Microsoft-Windows-W
@ctmcisco
ctmcisco / flat-ui-v1.json
Created Nov 21, 2019 — forked from t-eckert/flat-ui-v1.json
Flat UI Color Scheme V1 implemented as Windows Terminal color scheme. https://flatuicolors.com/palette/defo
View flat-ui-v1.json
{
"background":"#000000",
"black":"#000000",
"blue":"#2980b9",
"brightBlack":"#7f8c8d",
"brightBlue":"#3498db",
"brightCyan":"#1abc9c",
"brightGreen":"#2ecc71",
"brightPurple":"#9b59b6",
"brightRed":"#e74c3c",
@ctmcisco
ctmcisco / CookingALab.ps1
Created Sep 21, 2019 — forked from nyanhp/CookingALab.ps1
Using AutomatedLab recipes
View CookingALab.ps1
Install-Module AutomatedLab.Recipe -AllowClobber -Force
# Inline definition and execution
LabRecipe MySuperLab {
DeployRole = 'Domain', 'SQL'
VmPrefix = 'LB'
} | Invoke-LabRecipe
# Store a lab for later use
New-LabRecipe -Name MySuperLab -DeployRole DscPull,CI_CD
@ctmcisco
ctmcisco / Get-AuditPolicy.ps1
Created Sep 9, 2019 — forked from IISResetMe/Get-AuditPolicy.ps1
Poor man's audit policy parser
View Get-AuditPolicy.ps1
#Requires -Version 5
# Define AuditSetting enum
[System.Flags()]
enum AuditSetting {
None = 0
Success = 1
Failure = 2
All = 3
}
@ctmcisco
ctmcisco / profiles.json
Created Jul 25, 2019 — forked from kasuken/profiles.json
Windows Terminal settings and files
View profiles.json
{
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
[
{
@ctmcisco
ctmcisco / basic-dev.ps1
Created Jan 18, 2019 — forked from flcdrg/basic-dev.ps1
My BoxStarter Scripts
View basic-dev.ps1
# SQL Server - do this early to avoid issues with newer versions of VC++ 2015 redist
choco install sql-server-2017
choco install sql-server-2017-cumulative-update --version 14.0.3029.16
choco install sql-server-management-studio
# tools
choco install git
choco install nodejs
choco install tortoisegit
choco install visualstudiocode
@ctmcisco
ctmcisco / setup.ps1
Created Jan 16, 2019 — forked from adampats/setup.ps1
Windoze dev setup
View setup.ps1
mkdir temp
cd temp
# Configure Windows
Set-WindowsExplorerOptions `
-EnableShowHiddenFilesFoldersDrives `
-EnableShowProtectedOSFiles `
-EnableShowFileExtensions `
-EnableShowFullPathInTitleBar
@ctmcisco
ctmcisco / DevMachineSetup.ps1
Created Jan 16, 2019 — forked from mattridgway/DevMachineSetup.ps1
Scripted install of all the tools needed on a new PC build
View DevMachineSetup.ps1
## Setup PowerShell
Set-ExecutionPolicy Bypass -Scope Process -Force
## Installers
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install webpicmd -y -v
## DotNET
You can’t perform that action at this time.