Tag Archives: PowerShell

Friday Fun: Find a Git Tip with PowerShell

Recently I published a PowerShell function that I use to display a random Git Tip of the Day. The function relies on my clone of the Git-Tips project on GitHub. I’ve been keeping tabs on this project and a question was posed about creating a command line utility to search the tip list. Now, this project is most likely aimed at developers, at least based on what I’ve seen in the list of questions and issues. But for PowerShell people, this is a pretty simple thing to pull together.

Continue reading Friday Fun: Find a Git Tip with PowerShell

Creating Git Commit Messages with PowerShell

As part of my process of learning an using Git I am trying to get in the habit of using meaningful commit messages. Sure, you can get by with a single line comment which is fine when running git log –oneline. But you can use a multi-line commit message. However, this requires a little planning which is probably not a bad thing. Because¬† my Git projects are PowerShell related and I most often and in the PowerShell ISE I came up with a little trick that works for me.

Continue reading Creating Git Commit Messages with PowerShell

The CIM-ple way with PowerShell and Event Logs

I’m always on the lookout for new ways to do things. Often I’m trying to find a way to create something that is easy to use without requiring a lot of PowerShell scripting.¬† I also like using the final result as teaching aids so even if you don’t need the end product, I hope you’ll pick up a trick or two that you can use in your own scripting projects. The task I had in mind today is a better way to get event log information. Not the events themselves, but rather the event log file. How many entries are in it? How big is it? How much of the configured log is being used? Here’s what I came up with.

Continue reading The CIM-ple way with PowerShell and Event Logs

Friday Fun: Git Tip of the Day

This year I’ve really taken to learning Git and how to incorporate it into my daily work routine. If nothing else this has been a great reminder about what it is like to learn something totally new and foreign. I’ve learned quite a bit, but am far from considering myself a master.¬† Git is a big topic so I’m always looking for new ways to learn and use it. Continue reading Friday Fun: Git Tip of the Day

Configuring the VSCode PowerShell Terminal

Yesterday I posted my experiences in setting up the latest build of VSCode on how to use a PowerShell terminal session. As I explained, in this particular session I didn’t want to run any profile scripts. My reasoning was that this session obviously wasn’t the ISE nor was I likely to use the session like I do the traditional console host. But, I also realized there were some tools and settings I would find useful. Obviously I didn’t want to manually configure the VSCode PowerShell session every time it started. It needed a profile script. Continue reading Configuring the VSCode PowerShell Terminal