Skip to content

Instantly share code, notes, and snippets.

View Shugabuga's full-sized avatar

Shuga Shugabuga

View GitHub Profile
NOTE: All requests must have a proper oAuth authorization header.
List all current welcome messages:
GET https://api.twitter.com/1.1/direct_messages/welcome_messages/rules/list.json
Create new template:
POST https://api.twitter.com/1.1/direct_messages/welcome_messages/new.json
Data: {
@Shugabuga
Shugabuga / casa-dark.json
Created January 26, 2019 20:05
"Casa Dark" skin for OpenSkin
{
"name": "Casa Dark",
"logo": "https://shuga.co/casa/CasaDark.png",
"author": "Shuga",
"description": "The default dark mode for the Casa home page.",
"styles": [
{
"containerBackground": "background:#222222",
"label": "color:#eeeeee",
"caption": "color:grey",
@Shugabuga
Shugabuga / flair_request.md
Created May 5, 2019 15:27
My flair request message sent to /r/jailbreak. Posted for transparency.

Hello /r/jailbreak moderators,

My name is Shuga and I am interested in getting a developer/designer flair on /r/jailbreak (and /r/iOSThemes).

While I'm not strictly a tweak developer, I am a developer who is contributing to the community in various ways. I often offer support to others, help to maintain some of the documentation for Sileo's native depictions (disclaimer: I am not on the Sileo Team), and am working on a project to make creating "Sileo-ready" repos as simple as possible. I also make web apps for non-jailbroken devices, most notably fontPages (which allows for custom fonts in select productivity apps without a jailbreak) and the Eclipse emulator under Zenith, a team that also includes other developers who are active in the jailbreaking community suc

@Shugabuga
Shugabuga / silica-mit.license
Last active May 6, 2019 00:23
Silica MIT License: the license used in Silica.
Silica MIT License
Copyright (c) 2019 Shuga Holdings
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The year is 2020. Everything is Chrome.
You wake up. Your alarm clock is powered by Electron.
You commute to work. Your car's dashboard is Electron.
Once you're at your day job, you launch Slack (Electron), open Microsoft Edge (Chrome), and launch VS Code (Electron).
Once you are done with work, you push your changes via the GitHub client (Electron), clock out online (JavaScript), and drive home.
@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

@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 / 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 >

#!/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 / 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