Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
RAW_STATUS=$(python3 ~/src/starlink-grpc-tools/dish_grpc_text.py -s 2 status)
STARLINK_CONNECTED=$(echo "$RAW_STATUS" | cut -f 5 -d',')
if [[ "${STARLINK_CONNECTED}" == "CONNECTED" ]]; then
STARLINK_CONNECTED='${color green}'"CONNECTED"'${color}'
elif [[ "${STARLINK_CONNECTED}" == "OFFLINE" ]]; then
STARLINK_CONNECTED='${color red}'"OFFLINE"'${color}'
else
STARLINK_CONNECTED='${color yellow}'"${STARLINK_CONNECTED}"'${color}'

Objective

The goal is being able to mix your microphone and desktop audio into a single track, while leaving Discord out of the equation. This allows you to stream your desktop audio and talk while in a call, without your partners hearing themselves.

Voicemeeter Setup

Download Voicemeeter

Voicemeeter Banana

@jstanley23
jstanley23 / gist:0e5f13bc2becdcf6d1de618b6ba51e99
Created July 10, 2018 13:37 — forked from dougsyer/gist:264cd27eddecda3de1b011cf34b3ad2d
creating a graph legend in zenoss 6 description field with html example
<style> h2 { color:blue; font-size:12pt; background-color:powderblue; } </style>
<h2>
1 -- Other<BR>
2 -- Ok<BR>
3 -- Degraded<BR>
4 -- Failed<BR>
</h2>
@jstanley23
jstanley23 / gist:1da85c149e4a930174d15a9f44de7e2e
Created May 30, 2017 16:49 — forked from daniel-garcia/gist:2790549
Patch restorage to use INSERT ON DUPLICATE KEY UPDATE
--- relstorage/adapters/mover.py.orig 2012-05-25 16:56:17.000000000 -0400
+++ relstorage/adapters/mover.py 2012-05-25 16:57:16.000000000 -0400
@@ -864,11 +864,23 @@ class ObjectMover(object):
else:
if self.database_name == 'mysql':
stmt = """
- REPLACE INTO object_state (zoid, tid, state_size, state)
- SELECT zoid, %s, COALESCE(LENGTH(state), 0), state
- FROM temp_store
+ INSERT INTO object_state (zoid, tid, state_size, state)