Skip to content

Instantly share code, notes, and snippets.

View thereverand's full-sized avatar

Nick Daniels thereverand

View GitHub Profile
@thereverand
thereverand / install-psu.sh
Last active May 5, 2023 09:09
Install PowerShell Universal as a service on Linux
# ----
# This script will install PowerShell Universal on Linux as a service
# This has been tested on Ubuntu 20.04 (ARM64) on a Raspberry Pi 4
# ----
# Dependencies:
# wget
# unzip
#
# Make sure they are installed
# ----
@thereverand
thereverand / build-cc65-windows.ps1
Last active January 1, 2020 04:56
Building cc65 on Windows
[cmdletbinding()]
param(
[string]$MinGWPath = "C:\MinGW"
)
$ErrorActionPreference = 'Stop';
<#
You will need to install:
- MinGW : https://osdn.net/frs/redir.php?m=pumath&f=mingw%2F68260%2Fmingw-get-setup.exe
- Install packages
- mingw32-base-bin
@thereverand
thereverand / Enable-HybridWorker.ps1
Last active April 17, 2017 00:32
Configures a machine monitored with the Microsoft Monitoring Agent as a Hybrid Worker for use with Azure Automation; without needing to know the version the agent you are running.
[cmdletbinding()]
param(
[parameter(Mandatory=$true)]
[string]$Url,
[parameter(Mandatory=$true)]
[string]$Key,
[parameter(Mandatory=$true)]
[string]$GroupName
)
@thereverand
thereverand / gist:4019561
Created November 5, 2012 18:52 — forked from marek-stoj/gist:3637293
SharpDX MediaEngine on Win8 Metro
//This works..... (for playing audio)
MediaEngine Media;
MediaManager.Startup();
var attributes = new MediaEngineAttributes
{
AudioCategory = AudioStreamCategory.BackgroundCapableMedia,
AudioEndpointRole = AudioEndpointRole.Multimedia
};