Extract tasks from Obsidian vault with Github actions

I wanted to be able to pull my tasks out of my vault as a summary view, this can open up future automation options for me. However as I use multiple devices no single place was great and if I am on my phone it makes it harder. As I am synchronizing my vault with git I decided to use a github workflow to help me out. I have it setup to run once a hour and extract all the tasks that are visible in the Obsidian Tasks plugin....

August 11, 2021 · 3 min · Jon Bullen

Cleanup Empty Azure Resource Groups

I needed to cleanup empty groups on a test subscription I had, using the Azure Cloud shell the following script will do it for you. az group list -o tsv --query [].name | % {$resources = az resource list -g $_ -o table; if($resources) {"$_ has Resources"} else {"$_ has no resources"; az group delete -n $_ -y --no-wait}}

June 23, 2021 · 1 min · Jon Bullen

Import multiple calendars to Obsidian with Power Automate

I have a family calendar in iCloud and my personal one in Outlook. I want to have a easy way to see them in Obsidian. To enable this scenario I have used Power Automate and the Template plugin with some javascript to generate the calendar for every day and then allow it to be imported. This model could be used for anything else you may want to import into Obsidian with the bonus of it working on mobile as well....

June 23, 2021 · 1 min · Jon Bullen

PowerShell Cron Script

I was looking for a way to schedule jobs and yes windows has a task scheduler built in, however I wanted a bit more flexibility and less complexity. On the unix platform you can use cron. It is a scheduler that uses a simple format to define the time when the process should start and the process command. I was going to look at using it when I thought about the parsing that would be needed, I dod not want a system that much that I would write a cron parser....

January 22, 2021 · 3 min · Jon Bullen

Service Fabric skeleton service

Taken from https://andrewchaa.netlify.app/posts/2020-05-27/service-fabric-skeleton-service/ 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

Getting a PI to update when on a network

Now we have a RV I wanted the pi to copy media files over when it is on the network. I have a share for our DVR where the media files are placed (HD Homerun + Emby) and wanted to copy certain TV shows over automatically when the RV is home and I put it on the network. Now I can go down the BASH scripting route but I do not know that space very well....

August 27, 2020 · 3 min · Jon Bullen

Taking Automation on the Road

So we pulled the leaver on buying a RV. However we want to be able to watch our shows on the road, simple idea however internet access is not everywhere we want to go. To to get the DVR recordings from our media centre I setup a Pi running jellyfin and then wrote a simple powershell script which runs on the Pi and when it is on and at home will pick up our main media centre ont he network and copy and shows with a file called ....

August 11, 2020 · 1 min · Jon Bullen

Make the Calendar in Microsoft Teams use the same keyboard shortcut as Outlook

I use keyboard shortcuts a lot and in outlook I am used to the Ctrl+1/2/3/4 to go between mail, calendar, contacts, etc. In teams I found myself using Ctrl + 2 to go to the calendar which actually brings you to the Chat tab. I know I could use Ctrl + 4 but you know muscle memory… Then I found out you can reorder all the tabs on the left, so not I have Chat at the top just like my mail Ctrl + 1 followed by Calendar which means it is Ctrl + 2 which is now very similar to Outlook!...

June 18, 2020 · 1 min · Jon Bullen

Getting Night Light to work with a docking station in Windows 10

This comes from How to enable Night Light feature on DisplayLink devices in Windows 10. I have a Targus docking station and luckily it used DisplayLink, the key does not exist with the Targus drivers installed so… Go to https://www.displaylink.com/downloads/windows and download the DisplayLink drivers. Install them. Start RegEdit Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\DisplayLink\Core Create new String value with name EnableGammaRamp and set the data to be: true Unplug and plug your DisplayLink device Enable Night light in Windows All your monitors should now be at the same gamma settings....

June 3, 2020 · 1 min · Jon Bullen