Skip to content

Instantly share code, notes, and snippets.

View AgentLoneStar007's full-sized avatar
💭
Learning Rust

AgentLoneStar007 AgentLoneStar007

💭
Learning Rust
View GitHub Profile
@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 February 3, 2024 00:45
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
Created March 23, 2023 22:48
An example backup script for Minecraft servers on Linux. Requires the zip utility.
#!/bin/bash
# Announce server backup in console
echo "Started server backup..."
# Get current date and create name variable
printf -v date '%(%m-%d-%Y)T'
export name="Server $date Backup.zip"
# Zip all files
@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==