Skip to content

Instantly share code, notes, and snippets.

View Shugabuga's full-sized avatar

Shuga Shugabuga

View GitHub Profile
@Shugabuga
Shugabuga / parade.py
Last active April 2, 2024 06:15
Parade: A utility to extract remote assets from the Kemono Friends 3 mobile game.
# Parade v1.0.1
# A utility to extract remote assets from the Kemono Friends 3 mobile game.
# © 2020 Shuga.
# Assets extracted from SEGA's servers. For use in Unity.
import csv, requests, os, io
# # Line to start at (zero-indexed).
# line = 1
@Shugabuga
Shugabuga / readme.md
Last active January 18, 2023 04:46
Eclipse Repos

Eclipse Repos

Introduction

Repos for Eclipse are designed to make it easy to distribute your collection of ROMs to friends and family.

Due to legal reasons, distributing copyrighted ROMs is highly discouraged. Keep this in mind if you want to make a featured ROM.

Porting

@Shugabuga
Shugabuga / signtool.sh
Created November 28, 2021 19:23
"Port" of SignTool to Bash script.
#!/bin/bash
if [ $1 != "" ] && [ $2 != "" ]
then
rm $1/signature
rm $1/manifest.json
echo "{" > signature.json.tmp
for fileEntry in $1/*
do
echo -n \" >> signature.json.tmp
echo -n $fileEntry | cut -d "/" -f2 >> signature.json.tmp
@Shugabuga
Shugabuga / EmoteReplacer.plugin.js
Last active November 15, 2021 05:01
A BetterDiscord plugin for Shuga stickers.
/**
* @name EmoteReplacer
* @authorId 68834122860077056
* @version 1.11.2.1
* @website https://github.com/Yentis/betterdiscord-emotereplacer
* @source https://raw.githubusercontent.com/Yentis/betterdiscord-emotereplacer/master/EmoteReplacer.plugin.js
*/
module.exports = (() => {
const config = {
@Shugabuga
Shugabuga / shuga.py
Created May 23, 2017 01:32
ShugaBot OSS Edition
# S H U G A B O T / / /
# Created by HeyItsShuga
#
# This is the open-source version of ShugaBot.
# It is different from the version you can add
# at https://shuga.co/discord/add, only
# including the most interesting features.
# To implement, use Red-DiscordBot and put this
# file in the cogs/ folder as "shuga.py". This
# will add the ShugaBot OSS commands into your
@Shugabuga
Shugabuga / cau.py
Created July 14, 2020 06:05
Pretend You're Xyzzy bulk uploader.
import requests, csv, time
def main():
print("Cards Against Uploader")
with open("inp.csv", "r") as file:
file = csv.reader(file, delimiter=',')
for row in file:
if row[0] is not "color":
upload(row[0], row[1], "NYA", row[3], row[2])
time.sleep(7)
#!/bin/bash
# Lightweight MOTD script by Shuga. Licensed under CC-0.
SHUGA_MACHINE_NAME=Senko
SHUGA_MACHINE_ICON=🦊
SHUGA_MACHINE_COLOR="2;239;144;19m"
PS1="\033[48;$SHUGA_MACHINE_COLOR $SHUGA_MACHINE_ICON\033[38;2;0;0;0m \w\[ \033[00m\]\033[38;$SHUGA_MACHINE_COLOR""\033[00m\] "
echo -e "$SHUGA_MACHINE_ICON\033[38;$SHUGA_MACHINE_COLOR Welcome to $SHUGA_MACHINE_NAME!\033[0m"
@Shugabuga
Shugabuga / classes.md
Last active May 19, 2020 20:22
Sileo native depiction notes.

These are all the classes recognized by Sileo at the time of posting (and the ones supported by Parcility's Kennel package:

DepictionStackView (possible edge cases. see: Packix footer for "nested," landscape set to true)

DepictionAutoStackView (pretty close to a DepictionStackView tbh, but has one new property. extends?)

DepictionTabView (Tabs. Can be within other tabs, although this is rare.)

DepictionTableTextView >

@Shugabuga
Shugabuga / raffle.py
Created March 24, 2020 00:31
Randomly pick a certain amount of users for a retweet raffle.
#!/usr/bin/env python3
# Run this command to go:
# python3 raffle.py <count> <tweetId>
import requests
import base64, urllib, time
from io import BytesIO
import twitter
from random import randint
@Shugabuga
Shugabuga / silica-wsl.md
Last active February 28, 2020 20:11
Running Silica on Windows Subsystem for Linux.

Silica for Windows Subsystem for Linix (WSL)

Due to Silica requiring dpkg-deb to properly work, you cannot run Silica in native Windows. As a result, you need to set your machine up WSL and Ubuntu for Windows, which will allow for Linux programs to run in Windows via a terminal.

1. Set up WSL

Please follow this official tutorial. Please use Ubuntu for ideal results.

2. Setting up WSL for dpkg-deb