~mjorgensen/windows-dotfiles

Matthew's "dotfiles" for Windows
8d14cea0 — Matthew Jorgensen 25 days ago
Add function to get details about AWS SES Send Statistics
b44c45ba — Matthew Jorgensen 29 days ago
Add function to play Star Wars theme!
30d4486f — Matthew Jorgensen 29 days ago
Just return the object

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~mjorgensen/windows-dotfiles
read/write
git@git.sr.ht:~mjorgensen/windows-dotfiles

You can also use your local clone with git send-email.

#windows-dotfiles

"dotfiles" for Windows. Plus some other useful things.

#Custom Functions

#Get Public IP Address

Get-IP

Returns your public IP address and nothing else.

#List empty directories

List-EmptyDirs

Lists all directories under the current working directory that is completely empty; i.e.: no folders or files. At this time this function accepts no parameters.

#Monitor an HTTP Host

Monitor-HttpHost -Uri <string> [-SleepSeconds <Int32>]
#Parameters

-Uri

Specifies a URI to monitor.

  • Type: String
  • Position: Named
  • Default value: None
  • Accept pipeline input: False
  • Accept wildcard characters: False

-SleepSeconds

Specifies the number of seconds to wait before trying again. Default: 15 seconds.

  • Type: Int32
  • Position: Named
  • Default value: 15
  • Accept pipeline input: False
  • Accept wildcard characters: False

#See why your computer last shutdown/restart

Get-ShutdownReason

Example output:

Message: The process C:\WINDOWS\system32\svchost.exe (DELL-P7520-1) has initiated the restart of computer DELL-P7520-1 on behalf of user NT AUTHORITY\SYSTEM for the following reason: Operating System: Service pack (Planned)
 Reason Code: 0x80020010
 Shutdown Type: restart
 Comment:
 Date: 2020-10-30 19:43:02

#Add Sublime {Text 3,Merge} Context Menu Items

Sublime Context Menu Items

Add-SublimeMergeContextMenu
Add-SublimeTextContextMenu

To run both at once:

Add-SublimeContextMenus