Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Home!

Damian Brady Damovisa

🏠
Home!
View GitHub Profile
@Damovisa
Damovisa / private-health.md
Last active Jun 24, 2021
Australian Private Health Insurance
View private-health.md

How Private Health Insurance works in Australia

Disclaimer: I'm not an expert, and this is what I've gathered to the best of my ability. I could be wrong in parts. I'm almost certainly missing some detail and have some terminology wrong.

What happens when you go to hospital for a procedure?

If you end up in hospital for a procedure, you'll incur a number of costs. Insurance generally breaks these down into Hospital Expenses, and Medical Expenses. Hospital expenses are things like your bed on the ward, operating theatre fees, and administrative fees. Medical expenses are what your doctors charge - if it's an operation, that'll be your surgeon and the anaesthetist.

If you're a public patient at a public hospital, Medicare will pay for both of these. You shouldn't be out of pocket at all. But if you're a private patient at a public hospital, or at a private hospital, Medicare will only pay some. This is where private health insurance comes in. Private health insurance also means you'll get tre

@Damovisa
Damovisa / azire-pipelines.yml
Created Mar 5, 2021
Azure Pipelines example
View azire-pipelines.yml
# ASP.NET
# Build and test ASP.NET projects.
# Add steps that publish symbols, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4
trigger:
branches:
include:
- master
paths:
@Damovisa
Damovisa / azure-pipelines.yml
Created Oct 10, 2018
Azure Pipelines YML for ASP.NET Core
View azure-pipelines.yml
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
pool:
vmImage: 'Ubuntu 16.04'
variables:
buildConfiguration: 'Release'
@Damovisa
Damovisa / Azure-docs-pr.md
Created Jul 26, 2017
Auto-replace /azure-docs edit link with /azure-docs-pr
View Azure-docs-pr.md

Raw javascript:

var tmp_editlink = document.getElementById('contenteditbtn').children[0];
tmp_editlink.href = tmp_editlink.href.replace('/azure-docs/','/azure-docs-pr/');

CJS chrome extension:

Install the extension here

  1. Go to a docs page with an edit link
@Damovisa
Damovisa / Asserṭ.cs
Last active Apr 29, 2017
We don't need no stinkin' tests (yes, this is a joke)
View Asserṭ.cs
namespace Microsoft.VisualStudio.TestTools.UnitTesting
{
public static class Asser
{
public static void AreEqual(Object expected, Object actual, params object[] parameters) { }
public static void AreEqual<T>(T expected, T actual, params object[] parameters) { }
public static void AreNotEqual(Object expected, Object actual, params object[] parameters) { }
View OctopusLogoUpload.ps1
function Invoke-OctopusLogoUpload
{
[CmdletBinding()]
PARAM
(
[string][parameter(Mandatory = $true)][ValidateNotNullOrEmpty()]$InFile,
[string]$ContentType,
[Uri][parameter(Mandatory = $true)][ValidateNotNullOrEmpty()]$Uri,
[string][parameter(Mandatory = $true)]$ApiKey
)
View chain-deployment-step-template.json
{
"Id": "ActionTemplates-41",
"Name": "Chain Deployment",
"Description": "Trigger a deployment for another project in Octopus",
"ActionType": "Octopus.Script",
"Version": 10,
"Properties": {
"Octopus.Action.Script.Syntax": "PowerShell",
"Octopus.Action.Script.ScriptSource": "Inline",
"Octopus.Action.Script.ScriptBody": "Write-Host \"**********\"\nWrite-Host \"Chained Deployment of '$Chain_ProjectName' version '$Chain_ReleaseNum' to '$Chain_DeployTo'.\"\nswitch ($Chain_CreateOption) {\n \"Try\" { Write-Host \" Release will be created if it doesn't exist.\" }\n \"Create\" { Write-Host \" Release will be created before deploying.\" }\n \"NoCreate\" { Write-Host \" Release will not be created and should already exist.\" }\n}\nWrite-Host \"**********\"\n\n$baseUri = $OctopusParameters['Octopus.Web.BaseUrl']\n$reqheaders = @{\"X-Octopus-ApiKey\" = $Chain_ApiKey }\n\n# Find Environment\n$environments = Invoke-WebRequest \"$baseUri/api/environments/all\" -Headers $reqheaders -UseBasic