This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; vsc-cheatsheet.ahk | |
/* | |
#*------v NOTES v------ | |
.SYNOPSIS | |
vsc-cheatsheet.ahk - Quick`nDirty Autohotkey-based popup reference menu for Visual Studio Code keyboard shortcuts | |
.NOTES | |
Written By: Todd Kadrie | |
Website: http://tinstoys.blogspot.com | |
Twitter: http://twitter.com/tostka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===VSC:HOTKEYS=== | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Key | Purpose | Key | Purpose | macro | Purpose | macro | Purpose | ||||
----- | --------------- | ----- | --------------- | ----- | --------------- | ----- | --------------- | ||||
'==Editing: | '==Navigation: | vsco7 | Vscode open & recyclewin | ||||||||
Bracket/Brace Matching | Ctrl+Shift+\ | Goto Line | Ctrl+G | ||||||||
Comment: (4key combos) | Move Line Up/Down | Alt+Up | |||||||||
Uncomment: | Ctrl+k, Ctrl+c | Al+Down | |||||||||
Ctrl+k, Ctrl+u | Page Dn Scroll | Alt+PgDn | |||||||||
Define Key binding | Ctrl+k, Ctrl+k | Page Up Scroll | Alt+PgUp | ||||||||
Find, Select Next Find Match | Ctrl+k, Ctrl+d | Find | Ctrl+F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Ecco-Formatting.ahk | |
/* | |
#*------v NOTES v------ | |
.SYNOPSIS | |
Ecco-Formatting.ahk - Autohotkey hotkeys for 'styling' the old Ecco Pro outliner. | |
.NOTES | |
Written By: Todd Kadrie | |
Website: http://tinstoys.blogspot.com | |
Twitter: http://twitter.com/tostka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get-ExchangeUpdateRollups.ps1 - Gets the Exchange Server 2007, Exchange 2010 and Exchange 2013 Update Rollups | |
<# | |
.SYNOPSIS | |
Get-ExchangeUpdateRollups.ps1 - Gets the Exchange Server 2007, Exchange 2010 and Exchange 2013 Update Rollups | |
.NOTES | |
Written By: Bhargav Shukla | |
Website: http://www.bhargavs.com | |
Revised By: Todd Kadrie | |
Website: http://tinstoys.blogspot.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; vsc-cheatsheet.ahk | |
/* TRIMMED DOWN GIST, KEY CODE BITS, SEE FULL SCRIPT FOR DETAILS | |
*/ | |
sAHKSdir :="C:\sc\ahk\ahkscripts\" | |
;;;*------v hs-vsc-cheatsheet (QuickRef) v------ | |
:!:7VSCm:: | |
capslock & F1:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# TRIMMED gist, see full script for details #> | |
#*---------------------------v Function Get-TLogSpaceRegion v--------------------------- | |
Function Get-TLogSpaceRegion ($ExTargVers,$SiteName) { | |
If ($bDebug -eq $TRUE) { | |
Write-Host ("Get-TLogSpaceRegion,ExTargVers: " + $ExTargVers) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# trimmed gist, see full close-WinsAll.ps1 for details #> | |
write-host -foregroundcolor green "***v ISSUING CLOSE ON _ALL_ DESKTOP WINDOWS! v***" ; | |
(get-process | ? { $_.mainwindowtitle -ne "" -and $_.processname -ne "powershell" } )| % {"proc:$($_.Name)" ; $_.CloseMainWindow() ; } ; | |
<# express equiv: KILL everything but ps, dead | |
(get-process | ? { $_.mainwindowtitle -ne "" -and $_.processname -ne "powershell" } )| stop-process ; | |
#> | |
# 10:07 AM 3/13/2018 #25 IE close: first do all IE, windows and blow past the 'Close All' prompts (only IE turns up in ShellApp): | |
$ShellApp = New-Object -ComObject Shell.Application ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# TRIMMED GIST, SEE FULL Get-IMDBSearch.ps1 SCRIPT FOR DETAILS#> | |
#*------v Function Get-IMDBSearch v------ | |
Function Get-IMDBSearch { | |
<# TRIMMED #> | |
$qryUrlRoot = "http://google.com/search?q=site:imdb.com/title" ; | |
$url = "$($qryUrlRoot) $($Title.trim())" ; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# convert-ToMp3.ps1 | |
<# This gist is TRIMMED to ust the core pieces #> | |
#*================v FUNCTIONS v================ | |
#*----------------v Function convert-ToMp3 v------ | |
function convert-ToMp3 { | |
<# TRIMMED #> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# Powershell snippet to retrieve details on top 3 queued domains on Exchange hubs in local AD site | |
I generally just paste the 1-liner version straight into a remote EMS console, for execution | |
#> | |
$TopDoms=3 ; | |
$Site=[System.DirectoryServices.ActiveDirectory.ActiveDirectorySite]::GetComputerSite().Name ; | |
$Banner="== v Site:$($Site.toupper()) - TOP $($TopDoms) QUEUED DOMAINS PER HUB: v ==" ; | |
write-host -foregroundcolor green "`n$((get-date).ToString('HH:mm:ss')):$($Banner)" ; | |
$hubsl=Get-ExchangeServer | where { $_.isHubTransportServer -eq $true -and $_.Site -match ".*\/$($Site)$"} | select -expand Name ; | |
foreach($hub in $hubsl){ write-host -foregroundcolor green "$((get-date).ToString('HH:mm:ss')):----$($hub):" ; | |
[console]::ForegroundColor = "yellow" ; |
OlderNewer