Skip to content

Instantly share code, notes, and snippets.

@srhinos
srhinos / merge.py
Last active March 12, 2023 11:46
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"
@srhinos
srhinos / snow.js
Last active December 31, 2016 04:43
bullshit snow thing I need to host
/** @license
* DHTML Snowstorm! JavaScript-based Snow for web pages
* --------------------------------------------------------
* Version 1.43.20111201 (Previous rev: 1.42.20111120)
* Copyright (c) 2007, Scott Schiller. All rights reserved.
* Code provided under the BSD License:
* http://schillmania.com/projects/snowstorm/license.txt
*/
/*global window, document, navigator, clearInterval, setInterval */