Skip to content

Instantly share code, notes, and snippets.

@hazre
hazre / virtualdesktop_audio_switcher.ps1
Last active August 11, 2024 22:35
Virtual Desktop Audio Switcher PowerShell script, because VD doesn't seem to do it properly by itself. You can add it to Task Scheduler to start it on boot.
# Install the AudioDeviceCmdlets module if not already installed
if (-not (Get-Module -ListAvailable -Name AudioDeviceCmdlets)) {
Install-Module -Name AudioDeviceCmdlets -Force -Scope CurrentUser
}
Import-Module AudioDeviceCmdlets
# Define the audio devices to switch to when connected
$connectedInputDevice = "Your Connected Input Device Name"
$connectedOutputDevice = "Your Connected Output Device Name"
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$schema": {
"type": "string",
"description": "The schema URL",
"default": "https://raw.githubusercontent.com/Yellow-Dog-Man/JSONSchemas/main/schemas/Config.schema.json"
},
"unsafeModeWhiteList": {

To create a dynamic route using Next.js and MDX, you can follow these steps:

  1. Install the required packages:

    npm install next-mdx-remote @mdx-js/react
  2. Create a new page in the pages directory with the following file structure:

    - pages
    
@hazre
hazre / .hyper.js
Last active February 25, 2020 12:50
hyper-sync
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: "stable",