Skip to content

Instantly share code, notes, and snippets.

View jeroenheijmans's full-sized avatar

Jeroen Heijmans jeroenheijmans

View GitHub Profile
@jimmymcp
jimmymcp / .multi-stage-azure-pipelines.yml
Created September 24, 2019 12:25
Example multi-stage YAML pipeline for Azure DevOps
trigger:
- '*'
pool:
name: Default
variables:
image_name: mcr.microsoft.com/businesscentral/sandbox
container_name: Build
company_name: My Company
@jamesmontemagno
jamesmontemagno / live-streaming-kit.md
Last active June 25, 2024 06:51
Live Streaming Kit

Here is my live stream setup kit :)

If you are doing a personal stream, I recommend only streaming to a single service such as Twitch. It is better for community building and easier on the streamer. Additionally, if you become an affiliate you are locked into a platform anyways.

How my setup works is that I have my main Desktop PC that has my streaming software, chat, alerts, music, and such all running on it. I have a second surface book that has HDMI out into the capture card in my Desktop PC. I do this because often when you compile apps it may freeze up your computer and stream :(. I have 2 sets of keyboards and mice and 2 monitors that I work off of. This works for me, but you do you :)

Software:

  • OBS: Your main go to for streaming software. It works on every OS :). If you want something with everything baked in take a look at Streamlabs OBS.
  • Streamlabs has all of your pop ups for subscribers and such on t
@jeroenheijmans
jeroenheijmans / angular-oauth2-oidc-extra-logging-snippet.ts
Last active May 20, 2019 12:15
Custom logging for angular-oauth2-oidc library
import { OAuthErrorEvent } from 'angular-oauth2-oidc';
// ...
this.authService.events.subscribe(event => {
if (event instanceof OAuthErrorEvent) {
console.error(event);
} else {
console.warn(event);
}
@jeroenheijmans
jeroenheijmans / ngb-momentjs-adapter.ts
Last active March 3, 2022 13:34
NgbDateAdapter for Moment.js values
import { NgbDateAdapter, NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
import { Injectable } from '@angular/core';
import * as moment from 'moment';
// Might need to polyfill depending on needed browser support...
const isInt = Number.isInteger;
@Injectable()
export class NgbMomentjsAdapter extends NgbDateAdapter<moment.Moment> {
@jeroenheijmans
jeroenheijmans / UploadMultipartForm.psm1
Created January 5, 2017 09:42
Powershell Module with cmdlet to upload files in a multipart-form POST
<#
# It can be called like this:
$url ="http://localhost:12345/home/upload"
$form = @{ description = "Test 123." }
$pwd = ConvertTo-SecureString "s3cr3t" -AsPlainText -Force
$creds = New-Object System.Management.Automation.PSCredential ("john", $pwd)
Get-ChildItem *.txt | Send-MultiPartFormToApi $url $form $creds -Verbose -WhatIf
#>