bookmark_borderUsing PowerShell core in Visual Studio Code on windows

This is more for me than anyone else. If you want to move to PowerShell core in Visual Studio Code then do the following.

  1. Press CTRL + , to open settings.
  2. Enter terminal in the search box.
  3. Scroll down to Terminal > Integrated > Shell: Windows
  4. Click on ‘Edit in settings.json’ and add the following.
    "terminal.integrated.automationShell.windows": "c:/tools/pwsh/pwsh.exe",
    "terminal.integrated.shell.windows": "c:/tools/pwsh/pwsh.exe"

Now when the terminal is opened it will be using PowerShell 6 / Core.

To install the PowerShell Core / 6 got to https://github.com/powershell/powershell

Sytone

I’m a principal engineer working at Microsoft. I have run and supported services for over twenty years and worked in multiple countries. I love working with passionate people and new technology.

bookmark_borderUsing git aliases

I work with git for home and work project, I recently found you can use alias across all platforms due to the way it runs on windows. So all these aliases will work happily on git for windows and hopefully will make you work day more streamlined.

Some are from sites I have found and other I have created myself.

Continue reading “Using git aliases”
Sytone

I’m a principal engineer working at Microsoft. I have run and supported services for over twenty years and worked in multiple countries. I love working with passionate people and new technology.

bookmark_borderFilling your calendar for the week, increase productivity! Mileage may vary

I like to ensure my calendar gets filled for the next week, this way I know what is happening and it is hard to book a last minute meeting to surprise me. I guess this is a productivity hack. If you book more than a week out then you can take whatever time you want that is open.

Ideally no one books last minute but they do and it is really annoying to deal with. Just call me!!

Anyway here is a PowerShell script to block out your calendar for the next week using the Outlook COM API locally. I’m sure I can do the same with rest but I am not up for doing OAuth in PowerShell today. The code is not clean and tidy and has issues which I could fix if I could be bothered but it meets MVP. Feel free to suggest updates.

Continue reading “Filling your calendar for the week, increase productivity! Mileage may vary”
Sytone

I’m a principal engineer working at Microsoft. I have run and supported services for over twenty years and worked in multiple countries. I love working with passionate people and new technology.