Skip to content

Instantly share code, notes, and snippets.

@hazre
hazre / vencord.nu
Last active October 12, 2025 03:06
Nushell script wrapper of Vencord installer, made to fix broken Vencord installations after Discord updates (Windows only)
# Nushell Vencord Installer & Discord Launcher (Windows only)
# Fixes Vencord installations that break after Discord updates
# Made by https://github.com/hazre
const VENCORD_REPO = "Vencord/Installer"
const VENCORD_BRANCH = "canary"
def check_windows [] {
if $nu.os-info.name != "windows" {
print $"(ansi red)Error: This script only works on Windows(ansi reset)"
@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",