Skip to content

Instantly share code, notes, and snippets.

View yonderbread's full-sized avatar
🧀
chedda

yonderbread yonderbread

🧀
chedda
View GitHub Profile
@yonderbread
yonderbread / style.css
Created August 24, 2020 23:55
Material Dashboard
/*!
=========================================================
* Material Dashboard - v2.1.2
=========================================================
* Product Page: https://www.creative-tim.com/product/material-dashboard
* Copyright 2020 Creative Tim (http://www.creative-tim.com)
=========================================================
@yonderbread
yonderbread / ctjs-faq.md
Last active September 8, 2020 18:35 — forked from naturecodevoid/ctjs-faq.md
ct.js FAQ

ct.js FAQ

The camera won't follow my charater!

Make sure you have this code in your character's 'On Create' tab:

ct.camera.follow = this;

// Optional; sets the frame inside which the copy will be kept, in game pixels. Can be set to `null` so the copy is set to the center of the screen.
@yonderbread
yonderbread / dijibot_command_usage.md
Created October 4, 2020 04:28
Command usage for Dijibot

Dijibot Command Usage:

Ping

Description: Pings a server and displays the response time in milliseconds.

Syntax: .ping <optional: ip or address>

Clean/Purge/Bomb/Nuke

Description: Deletes specified amount of messages from channel's history.

Syntax: .purge <amount>

Lb (Leaderboard)

@yonderbread
yonderbread / pastebin_api.py
Last active October 5, 2020 05:09
Simple pastebin api wrapper for Python
import requests
'''Visibility modes for your paste'''
class VisibilityType:
PUBLIC = 0
UNLISTED = 1
PRIVATE = 2
@yonderbread
yonderbread / bungeecord-create.py
Last active October 16, 2020 05:28
Create basic bungeecord setup easy!
import sys
import os
import requests
import subprocess as sp
import shutil
import time
BUNGEECORD_LATEST = 'https://ci.md-5.net/job/BungeeCord/lastSuccessfulBuild/artifact/bootstrap/target/BungeeCord.jar'
BUILDTOOLS_LATEST = 'https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar'
@yonderbread
yonderbread / discord-translate.py
Last active October 25, 2020 21:02
You can run this script to select DM or guild channels and send translated messages. (ONLY FOR SENDING MESSAGES NOT RECIEVING)
import requests
discord_base_url = 'https://discord.com/api/v8'
translation_base_url = 'https://api.mymemory.translated.net/get?q={0}&langpair={1}|{2}'
class Client:
def __init__(self, token):
self.token = token
self.selected_channel = None
@yonderbread
yonderbread / encode.py
Created October 30, 2020 01:43 — forked from gasman/encode.py
Encoding a file as a Youtube video - https://www.youtube.com/watch?v=hyqLv2_zBdA
# Encode inputfile.tar.gz as a series of video frames
# Frames are written to frames/frameNNNN.png
from PIL import Image
with open('inputfile.tar.gz', 'rb') as f:
data = f.read()
WIDTH = 120
HEIGHT = 90
CHUNK_SIZE = int((WIDTH * HEIGHT) / 8)
sudo add-apt-repository ppa:gnome3-team/gnome3 -y
sudo add-apt-repository ppa:vala-team -y
sudo add-apt-repository ppa:gnome3-team/gnome3-staging -y
sudo apt install cmake valac libgtk-3-dev libgee-0.8-dev libclutter-gtk-1.0-dev libclutter-1.0-dev libwebkit2gtk-4.0-dev libclutter-gst-3.0-dev
git clone https://github.com/cheesecakeufo/komorebi.git
cd komorebi
mkdir build && cd build
cmake .. && sudo make install && ./komorebi
@yonderbread
yonderbread / download-botw-wiiu.sh
Created December 8, 2020 01:20
Downloads parts for BOTW base game rom
curl --header 'Host: f24.megaup.net' --user-agent 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' --header 'Accept-Language: en-US,en;q=0.5' --referer 'https://megaup.net/51si/T_LOZ-BOTW-USA-LOADIINE-ZIPERTO.part1.rar' --header 'DNT: 1' --cookie 'filehosting=qrp5gj3tpmomjfamlqtdmotr7n' --header 'Upgrade-Insecure-Requests: 1' 'https://f24.megaup.net/51si/T_LOZ-BOTW-USA-LOADIINE-ZIPERTO.part1.rar?download_token=0df82780d4c7161483ff2639acc592ebd8fd5d30ab79aef0b199fb1ca895fa7b' --output 'T LOZ-BOTW-USA-LOADIINE-ZIPERTO.part1.rar' && curl --header 'Host: f24.megaup.net' --user-agent 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' --header 'Accept-Language: en-US,en;q=0.5' --referer 'https://megaup.net/51s0?pt=wVBFiRH6GUZggGYyX1EjMTorDlELffFQn1M4c4kQDPQ%3D' --header 'DN