Skip to content

Instantly share code, notes, and snippets.

View carcigenicate's full-sized avatar

carcigenicate

View GitHub Profile
@carcigenicate
carcigenicate / activitySpoofer.js
Created August 31, 2024 16:23
Preventing the Teams Web App from marking you as Away every five seconds.
// ==UserScript==
// @name Teams Activity
// @namespace http://tampermonkey.net/
// @version 2024-08-29
// @author Carcigenicate
// @match https://teams.microsoft.com/v2/
// @grant none
// ==/UserScript==
(function() {
#! /bin/env bash
# Attempts to set the mic profile to HFP since it randomly started defaulting to A2DP, which doesn't allow mic input
command="pacmd set-card-profile bluez_card.your_card handsfree_head_unit"
count=0
maxCount=100
output=$(eval $command)
1 0 LOAD_CONST 0 (0)
2 LOAD_CONST 1 (('loads',))
4 IMPORT_NAME 0 (json)
6 IMPORT_FROM 1 (loads)
8 STORE_NAME 1 (loads)
10 POP_TOP
2 12 LOAD_CONST 0 (0)
14 LOAD_CONST 2 (('choice',))
16 IMPORT_NAME 2 (random)
// ==UserScript==
// @name Reply Saver
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Saves unposted top-level replies to localStorage, and restores them on nav back to the page.
// @author carcigenicate
// @match https://old.reddit.com/r/*/comments/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
const obsArr = [
'.',
'-',
'replaceAll',
'ip',
':',
'hostname',
'location',
'',
'unk.com',
// ==UserScript==
// @name Seed Counter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Counts seeds
// @author carcigenicate
// @match https://www.zeldadungeon.net/breath-of-the-wild-interactive-map?*
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none
// ==/UserScript==
@carcigenicate
carcigenicate / changer.js
Created February 26, 2023 23:06
YouTube Subtitle Language Changer
// ==UserScript==
// @name Subtitle Language Changer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Spawns a small textbox and button to easily allow changing YouTube's subtitle language.
// @author You
// @match https://www.youtube.com/watch*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
from unittest import TestCase
from my_dataclass import MyDataclass
class BasicTestCaseBase(TestCase):
def setUp(self):
class TestClass(MyDataclass):
a: int
b: int
using namespace System.Net.Sockets
$Encoder = [System.Text.Encoding]::UTF8
$SIZE_BUFFER_SIZE = 4
$PROMPT = ">>> "
function Read-NBytes {
Param($Stream, $NToRead)