Skip to content

Instantly share code, notes, and snippets.

View AgentLoneStar007's full-sized avatar
💭
Building the B.O.B Ecosystem

AgentLoneStar007 AgentLoneStar007

💭
Building the B.O.B Ecosystem
View GitHub Profile
@AgentLoneStar007
AgentLoneStar007 / streamer_bot_websocket.py
Last active September 25, 2025 15:16
A very simple, partially-finished, websocket to connect to Streamer.bot, written in Python.
# Imports
import websockets
import json
import logging
from typing import Optional
from enum import Enum
import asyncio
# TODO: What's left for this websocket helper:
# - Add a backoff strategy for the reconnect
@AgentLoneStar007
AgentLoneStar007 / staemcomunmutty_scam_site_mapper.py
Last active April 12, 2025 01:47
A simple script I made to map the files of a Steam scam site.
import secrets
import requests
from os.path import exists
# A function to generate URLs with the random character patterns seen on the website
def generateURLsToTest(number_to_generate, length=44) -> set:
"""Generates a list of URLs to test for the scam site."""
# Return an empty list if the number to generate is zero or less
if number_to_generate <= 0:
@AgentLoneStar007
AgentLoneStar007 / update_discord.py
Created January 26, 2024 01:46
Update Script for the Generic Linux Package for Discord
"""
This script relies on a few factors:
1. You've installed Discord using the .tar.gz file from their website.
2. You've installed said .tar.gz file to /opt/Discord.
3. Your Discord binary is /usr/bin/discord.
4. Your home variable is $HOME. (Check this by running "echo $HOME" in a terminal.)
This script deletes /opt/Discord, /usr/bin/discord*, and /usr/share/applications/discord*.desktop.
It then downloads the generic Linux .tar.gz installer from Discord's website, extracts it to
/opt/Discord, and creates a symlink from /opt/Discord/Discord to /usr/bin/discord. Then, it
@AgentLoneStar007
AgentLoneStar007 / README.MD
Last active August 26, 2025 19:45
Linux Replay Solution Guide

Linux Replay Solution Guide

Do you really need an instant replay program for Linux? Something similar to Shadowplay? GPU Screen Recorder is just that! Here's my little guide for setting it up.

NOTE: This guide was made for KDE Plasma. If you're on a different desktop environment, you'll have to find out startup scripts and keybinds on your own.

Installation:

If you're on Arch Linux, use the AUR package.

@AgentLoneStar007
AgentLoneStar007 / README.md
Last active February 12, 2025 05:47
Duskers Backup Script: A simple(not simple at all) backup script for Duskers, written in Python.
@AgentLoneStar007
AgentLoneStar007 / model_lock.lua
Last active June 12, 2023 16:01
GMod Model Lock: A simple bit of code to insert into a GMod playermodel addon that allows the model to be locked to one username.
--[[
Model-Lock v1.0 by AgentLoneStar007
A simple bit of Lua code that will allow only you to use your model. If someone is using
your model, but doesn't have your username, the game will crash every time the player:
- Takes damage,
- Gets in or out of a vehicle,
- Types in chat, or
- Dies.
Support for multiple models is planned.
@AgentLoneStar007
AgentLoneStar007 / backup.sh
Last active August 26, 2025 19:32
An example backup script for Minecraft servers on Linux. Requires the zip utility.
#!/bin/bash
# Set the script to stop when an error occurs.
set -eo pipefail
# Get the current date as a variable
printf -v DATE '%(%m-%d-%Y)T'
# Get the server's directory location and make sure we're in that directory
SERVER_DIR_PATH=$(dirname "$(realpath $0)")
@AgentLoneStar007
AgentLoneStar007 / Gigatube.js
Last active March 11, 2024 10:53
Gigatube.js: A userscript that removes the Youtube doodle and replaces it with something way better.
// ==UserScript==
// @name Gigatube (Youtube Doodle Remover)
// @version 1.1
// @description Replaces the Youtube logo and any Youtube/Google doodles with a different image.
// @author AgentLoneStar007, with a ton of help from u/FlowerForWar.
// @match *://www.youtube.com/*
// @grant none
// @run-at document-start
// ==/UserScript==