Skip to content

Instantly share code, notes, and snippets.

View ho0ber's full-sized avatar

Samuel Colburn ho0ber

View GitHub Profile
@ho0ber
ho0ber / test_thing.py
Created July 1, 2020 18:37 — forked from jamielennox/test_thing.py
requests_mock and pytest
import thing
import pytest
import requests_mock as rm_module
@pytest.fixture
def requests_mock(request):
m = rm_module.Mocker()
m.start()
@ho0ber
ho0ber / gross.py
Created June 12, 2020 01:42
Some gross python2
True = len(dir(True))
False = lambda: True - 1
while True:
print eval(str(1==1))
True = False()
@ho0ber
ho0ber / google-meet-spacebar.user.js
Last active April 15, 2020 17:11 — forked from benjaminoakes/google-meet-spacebar.user.js
Google Meet/Hangouts Push-to-Talk
// ==UserScript==
// @name Google Push to Talk
// @namespace http://tampermonkey.net/
// @version 0.5
// @description Hold down the spacebar to unmute the mic in Google Meet; tapping the spacebar toggles mute.
// @author Marc Reynolds (github.com/marcreynolds)
// @match https://meet.google.com/*
// @updateUrl https://gist.github.com/marcreynolds/6c629eaf8bfe87986ebe90ebea7daf85/raw/google-meet-spacebar.user.js
// @grant none
// ==/UserScript==

What is this?

NK2 Tray isn't a solution for every volume-related problem that comes along. In this case, some people may already own a Stream Deck and are not interested in buying additional hardware. This document describes, in brief, how someone with a Stream Deck can set up per-application volume control. It's a bit clunky, but it works!

Instructions

1) Download NirCmd

2) Install NirCmd

  • Extract your NirCmd download and right-click nircmd.exe and select Run as administrator
  • When it opens, it should pop up a dialog box. Click Copy To Windows Directory
@ho0ber
ho0ber / battle.js
Last active January 18, 2019 15:04 — forked from chrisinajar/battle.js
Battle whitelist for screeps
// usernames are all lowercase, we compare with to lower
var USERNAME_WHITELIST = ['chrisinajar', 'ho0ber', 'fractaloop', 'n7-anthony', 'overra', 'tyrel', 'fervens'];
module.exports = {
findEnemy: findEnemy
};
/*
var target = findEnemy(creep);
*/