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 / 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
@ctmcisco
ctmcisco / vscode-extensions.ps1
Created Jan 16, 2019 — forked from ddieppa/vscode-extensions.ps1
My VSCode extensions via Chocolatey :)
View vscode-extensions.ps1
code --install-extension Angular.ng-template
code --install-extension christian-kohler.npm-intellisense
code --install-extension christian-kohler.path-intellisense
code --install-extension CoenraadS.bracket-pair-colorizer
code --install-extension cyrilletuzi.angular-schematics
code --install-extension DavidAnson.vscode-markdownlint
code --install-extension davidbabel.vscode-simpler-icons
code --install-extension dbaeumer.vscode-eslint
code --install-extension docsmsft.docs-article-templates
code --install-extension docsmsft.docs-authoring-pack
@ctmcisco
ctmcisco / boxstarter-full-win10.ps1
Created Jan 16, 2019 — forked from ian-noble/boxstarter-full-win10.ps1
Boxstarter - Full - Windows 10
View boxstarter-full-win10.ps1
<#
.SYNOPSIS
BoxStarter script to configure Windows 10 development PC.
.DESCRIPTION
Install BoxStarter:
. { Invoke-WebRequest -useb http://boxstarter.org/bootstrapper.ps1 } | Invoke-Expression; get-boxstarter -Force
Run by calling the following from an **elevated** command-prompt.
Remove -DisableReboots parameter to allow the script to reboot as required.
@ctmcisco
ctmcisco / vscode-powershell-alpha-goodness.md
Created Jan 11, 2019 — forked from corbob/vscode-powershell-alpha-goodness.md
VSCode + PSReadline - How To Start Using the Alpha PowerShell Extension for PSReadline Goodness Now
View vscode-powershell-alpha-goodness.md

VSCode + PSReadline - How To Start Using the Alpha PowerShell Extension for PSReadline Goodness Now

Courtesy of @scrthq from slack

Chatting on Twitter with @ctmcisco about this and figured it would be worth posting for everyone here, in case anyone else is curious!

  1. Go to the Branches tab on the vscode-powershell repo in GitHub: https://github.com/PowerShell/vscode-powershell/branches
  2. Find the 2.0.0 branch, then click the green check mark in the center of the page.
  3. Click the blue Details link next to the AppVeyor line. This will take you to the most recent AppVeyor build of that branch.
  4. On the top-right of the page, just above the console output, click the Artifacts tab.
View Get-TwitchEvent.ps1
function Get-TwitchEvent {
[CmdletBinding(DefaultParameterSetName = 'Standard')]
param (
[Parameter(Mandatory,
ParameterSetName = 'Standard')]
[string]
$UserName,
[Parameter(Mandatory,
ParameterSetName = 'Pipeline',
You can’t perform that action at this time.