Sytone's Ramblings

The occasional posts of a guy who plays with technology.

Extract tasks from Obsidian vault with Github actions

2021-08-11 3 min read Obsidian

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. These can be found as they always have the global task tag in them. In this example I use #task, update the regex as needed.

Continue reading

Cleanup Empty Azure Resource Groups

2021-06-23 1 min read Azure
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}}

Using PowerShell core in Visual Studio Code on windows

2019-03-15 1 min read Development
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. Continue reading

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

2018-06-25 1 min read Productivity
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. Continue reading

New PowerShell module for Home Assistant

2018-06-07 1 min read Home Automation
So after making the PowerShell script for Home Assistant I decided to spend a hour and pull it together to be a full module and push it up to GitHub. This is now in place and support just turning a switch entity on and off. Installation Install-Module -Name PoshHomeAssistant -Scope CurrentUser Usage Before you can use it set the configuration, this can be done with the following command, set the key and url to match your environment. Continue reading
Older posts