Skip to content

Instantly share code, notes, and snippets.

View m0ngr31's full-sized avatar
๐Ÿ‘

Joe Ipson m0ngr31

๐Ÿ‘
View GitHub Profile
@m0ngr31
m0ngr31 / comfyui-provision.sh
Last active November 15, 2024 18:55
Comfy Provisioning
#!/bin/bash
# This file will be sourced in init.sh
# https://raw.githubusercontent.com/ai-dock/comfyui/main/config/provisioning/default.sh
# Packages are installed after nodes so we can fix them...
DEFAULT_WORKFLOW="https://raw.githubusercontent.com/ai-dock/comfyui/main/config/workflows/flux-comfyui-example.json"
@m0ngr31
m0ngr31 / Auto Reconnect Stadia controllers.md
Last active August 30, 2024 19:18
Force Stadia Controller to connect in Linux

Using Google Stadia controllers with bluetooth is notoriously a pain. Some just won't reconnect after they've been paired initially. This script is an attempt to solve that issue in Linux. You can create a .desktop file and have it autostart when you boot your computer.

Every 60 seconds it will look at the list of the controllers that you have paired previously and compare that with the list of controllers that are currently connected. It will take the diff of that and attempt to connect to each one.

#!/bin/bash

# Function to get currently connected Stadia controllers
get_connected_controllers() {
    local devices="$1"