Skip to content

Instantly share code, notes, and snippets.

View Shugabuga's full-sized avatar

Shuga Shugabuga

View GitHub Profile
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-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:
@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 / nightcore.sh
Last active March 26, 2019 10:37
nightcore.sh - Nightcore Music Generator for macOS and Linux
#!/bin/bash
if [ -n "${2+set}" ]; then
echo "Music file at '$1' selected"
ffmpeg -i "$1" -filter:a "atempo=1.5, asetrate=r=48K" -metadata composer="nightcore.sh - by HeyItsShuga" -loglevel quiet -write_xing 0 $3 -vn "$2"
else
echo "nightcore <input.mp3> <output.mp3> [\"-flags\"]"
echo "Running nightcore.sh stable 1.0.1"
fi
############################################################
@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",
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 / SmashAdditionsBotTransparency.txt
Created September 26, 2018 19:59
The message sent to Twitter regarding how @SmashAdditions functions and deals with user data and Twitter functionality..
Hello. I am Shuga (the operator of Smash Additions Bot) and I am looking to ensure the continued operation of my Twitter bot account, @SmashAdditions, indefinitely. The bot has one simple goal: every hour, the account will automatically choose a random video game character from most known video games (sourced by GiantBomb [https://giantbomb.com]'s API and Wiki), put it in a template card resembling those released by Nintendo for fighters in the new Super Smash Bros game, and post the final composite image onto the Twitter account. The account uses the sourced images under licenses provided by GiantBomb and under fair use as parody. The account is not connected to any commercial interests and is purely an educational project to refine my skills in Python, Pillow, and the requests library with self-taught knowledge.
The application in question (that is, the one that posts the generated images to the @SmashAdditions Twitter account) does not do any analysis or data-mining with any users following or interacting
@Shugabuga
Shugabuga / follow_analysis.js
Last active August 27, 2018 02:33
A following analysis script for Mastodon.
var mode = 1
// mode 1: following
// mode 2: followers
if(mode == 1) {
console.warn ("Followed Users Breakdown:")
} else if(mode == 2) {
console.warn ("Follower Breakdown:")
}
@Shugabuga
Shugabuga / README.md
Last active May 9, 2018 23:34
Some Twitter DM experiment [Twitter Web // Full]

The Shittiest Twitter Bot:tm:

The code is a mess.

Limitations

  • Can only process one command every 0.5 seconds.
  • Your window must remained focus
  • You cannot use the computer the bot is running on.
  • Not totally autonomous: must be open on a specific DM thread to work.
@Shugabuga
Shugabuga / shugaGreeter.js
Last active November 13, 2017 01:28
Greeter for the JavaScript console.
// Paste this into your JavaScript console. Seems to work in all browsers but Firefox.
console.log("%c_____%c Welcome to shuga.co!%c\nHi, I'm Shuga. Given that you are in the JavaScript console, I assume you're into computers in some degree. If so, you should check out my Twitter (@HeyItsShuga) or my GitHub (@Shugabuga), as I have some content that might interest you (such as cybersecurity and programming).", "background-image:url('https://shuga.co/inspectLogo.png');font-size:45px;font-family:'Times New Roman';color:transparent", "font-family:'PT Sans Caption';font-size:48px", "font-family:'PT Sans Caption';font-size:16px")
// Inspired off of console.image by adriancooney and James Martindale's implementation, but no code is shared.