Service Fabric skeleton service

Taken from to conserve and update as needed as could not find it when I went looking for it. On Service fabric, you can either create ASP.NET Core API service or worker process. I’m going to create a worker service today Visual Studio Template Skeleton Right click on ServiceFabric project > Create a new Service Fabric service Choose “Stateless Service” for worker service, as Stateful is the new evil in cloud era....

January 4, 2021 · 3 min · Jon Bullen

Changing the commit author

So, you made some commits and then realise you used the wrong author and email address. No problem, use the following command to update them all and then you can push with consistent happiness. This assumes you are doing this in PowerShell, if in bash you may need to escape the quotes differently. The GIT commit id is the one before the commits with the wrong author. For the Author use the format name <email@address....

October 14, 2020 · 1 min · Jon Bullen

Auto Update Git Aliases

Because I am lazy I wrote a script so I can update all my machines from the one location which is the gist below. This works in powershell core. Again this is mostly for me but feel free to use as needed. Update your $profile to have th following environment variable set. This will allows the wid and pid aliases to work correctly. $env:GIT_PERSONAL_EMAIL = "" $env:GIT_PERSONAL_USERNAME = "myname" $env:GIT_WORK_EMAIL = "work@work....

April 2, 2019 · 2 min · Jon Bullen

Using git aliases part two

This is a update to Using git aliases. A few extra commands and a bit of a cleanup. ~I should move it to a gist at some point.~ Update: Moved the contents to a gist.

March 28, 2019 · 1 min · Jon Bullen

Using 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. Press CTRL + , to open settings. Enter Shell: Windows in the search box. Scroll down to Terminal > Integrated > Shell: Windows Click on ‘Edit in settings.json’ and add the following. “”: “C:/Users/${env:USERNAME}/scoop/apps/pwsh/current/pwsh.exe”, “”: “C:/Users/${env:USERNAME}/scoop/apps/pwsh/current/pwsh.exe”, Now when the terminal is opened it will be using PowerShell Core....

March 15, 2019 · 1 min · Jon Bullen

Using 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. To access the global git configuration run the following command and then add this to the bottom if you do not have a alias section already....

January 17, 2019 · 4 min · Jon Bullen

From Web Archive: Mirroring SVN repository to GitHub

The site seems to be down. This was handy for something I was playing with. References: So, I’m gearing up to work on some Java+Ruby (via JRuby) stuff. The Java world still seems fairly entrenched in the cult of Subversion, while the Rubyists have gone with Git lately. I’m still wrapping my mind around Git, but with GitHub, it’s fairly easy and straight-forward. I paid my $7 for the micro account, to give me room to screw around....

July 13, 2012 · 6 min · Jon Bullen

WPF Converter: CaseConverter

Case Converter was made when I wanted the text to display in a WPF UI in upper case. Probably not the best class name, but anyway. To get the code and install read on. Make any UI string uppercase. Once you have registered the resource and created the class just use the converter in the element you want converted. <TextBlock Text="{Binding Title, Converter={StaticResource CaseConverter}}"/> Add the following element to the XAML, usually in Window....

August 29, 2010 · 1 min · Jon Bullen

Why Procmon is a great tool!

Procmon is created by sysinternals and should be deployed to any server in your enterprise (and desktop) it allows you to see what file, registry, network and processed & thread activity is happening on your system. I just used to to work out why VS 2010 was not installing, it turns out it iterates through all the drives on your system including your mapped drives. As I had just been playing with WebDav I had a mapped WebDav drive which was very slow to access....

April 27, 2010 · 1 min · Jon Bullen

Getting a Outlook MailItem from a Ribbon Event

You may find this code block handy: [csharp] /// /// Gets the mail item selected in the explorer view if one is selected or instance if that is the view active. /// /// The instance containing the event data. /// A Outlook.MailItem for the mail being viewed. private Outlook.MailItem GetMailItem(RibbonControlEventArgs e) { // Check to see if a item is select in explorer or we are in inspector. if (e.Control.Context is Outlook....

February 28, 2010 · 1 min · Jon Bullen