• Pull Request Etiquette (Tips and Guidelines)

    July 2, 2021 by

    As a developer in a professional environment, you’ve most likely have had to perform code reviews with your colleagues. Code Reviews and Pull Requests (PR) are a fantastic learning tool and can be a point of discussion for all developers. Having other sets of eyes inspecting your code will assist with reducing errors and streamline… Read more

  • Retrieve Environment Variables into .txt File using Powershell

    July 2, 2021 by

    Here is a quick and simple one-liner to retrieve all of your environment variables into an output .txt file. It utilizes the “gci env:” command to retrieve the environment variables on your current machine, then using piping, sends that information to “Format-List”, which will output all the properties retrieved with “gci env:” into a list… Read more

  • Check if two files are identical using Powershell

    July 2, 2021 by

    Checking whether two files are identical in Powershell is pretty straight forward. We will be making use of the MD5 hash of each file, and comparing their values together, to determine if the two files are the same. We will utilize the “Get-FileHash” Powershell command, to retrieve each file’s hash, then compare them using the… Read more

  • C# Get every Nth element in a List

    July 4, 2019 by

    Let’s say you have the following list of objects: Now, say you want to grab every 3rd element inside this list, how would you do that? That is, you want the resulting list to be: Here’s a generic List extension algorithm that should help you do so (using C#): Explanation: Let’s use our example from… Read more

  • Start and Stop Android Emulator with Powershell

    July 4, 2019 by

    In order to programmatically start and stop an Android Emulator from Powershell, have a look at the Powershell script I’ve created below. This post assumes you already have the Android SDK, AVD and emulators set up on your machine. It is also assumed that you will only have one emulator instance at a time, to… Read more

View all posts

Follow My Blog

Get new content delivered directly to your inbox.