Skip to content

Instantly share code, notes, and snippets.

@srhinos
srhinos / buffs_verbose.json
Last active December 30, 2025 13:48
xEdit Script and two json outputs of all non-stackable buffs in Fallout 76. Built for Invent O Matic - https://www.nexusmods.com/fallout76/mods/2324
{
"Alcohol_APRegen": [
{ "name": "Hard Lemonade", "score": 0.0, "mag_value": 0.0, "dur_value": 600.0 }
],
"Alcohol_DamageResist": [
{ "name": "Lead Champagne Bellini", "score": 75.0, "mag_value": 15.0, "dur_value": 300.0 },
{ "name": "Vintage Lead Champagne", "score": 75.0, "mag_value": 15.0, "dur_value": 300.0 }
],
"Alcohol_DiseaseResist": [
{ "name": "Fussfungle", "score": 80.0, "mag_value": 20.0, "dur_value": 240.0 }
@srhinos
srhinos / merge.py
Last active June 17, 2025 13:37
Fallout 76 IconSortingTags Strings Mod Merger Script
# ############### HOW TO USE THIS FILE ################
#
# NOTE: Requires Python 3.9+ and the package `xmltodict` installed.
#
# 1. Drop this file in the base level directory of the "Tagged Plans - XML for xTranslator" mod
# 2. Open xTranslator, load 76's ESP/ESM, and process the IconSortingTag's header rules
# - import the fonts to your ba2s too
# 3. Export IconSortingTag's changes as an XML translation
# - File -> Export Translation -> XML files
# - Name file `full_icon_dump.xml` and place in directory of the "Tagged Plans" mod
@srhinos
srhinos / main.yml
Last active November 2, 2020 08:13
Generate ZIP Release For WoW Addons
on:
push:
branches:
- "master"
- "main"
name: Generate Release With Zip Asset
jobs:
build:
@srhinos
srhinos / #New Terminal Setup.md
Last active March 9, 2024 02:46
New Terminal Set Up

Example

Example

import asyncio
import functools
import logging
import os
from concurrent.futures import ThreadPoolExecutor
import youtube_dl
from .digital_ocean import DropletManager
import digitalocean
import random
import asyncio
import functools
from datetime import datetime
class DropletManager:
def __init__(self, thread_pool):
print("creating DropletManager")
#!/bin/bash
#----------------------------------------------Constants----------------------------------------------#
DEFAULT_URL_BASE="https://discordapp.com/api"
PYEXEC = 3
USER_OBJ_KEYS="id username discriminator verified bot email avatar"
declare -A BOT
if [ -n "$(command -v lsb_release)" ]; then
# systemd unit file for https://github.com/Just-Some-Bots/MusicBot
[Unit]
Description=MusicBot
[Service]
ExecStart=~/MusicBot/run.sh
Restart=on-failure
import asyncio
import discord
import aiohttp
import logging
import functools
import traceback
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
@srhinos
srhinos / flair.py
Last active February 24, 2018 16:56 — forked from langison/Flair your post bot
Flair your post bot
import praw
import asyncio
import traceback
from datetime import timedelta
from time import time
from collections import OrderedDict
username = "UmbrellaCorpBot"