Skip to content

Instantly share code, notes, and snippets.

View yonderbread's full-sized avatar
🏠
Working from home

yonderbread yonderbread

🏠
Working from home
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 amsam0/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 / 1.16.4-args.json
Created December 15, 2020 03:03
1.16.4 client.json launch args
{
"game": [
"--username",
"${auth_player_name}",
"--version",
"${version_name}",
"--gameDir",
"${game_directory}",
"--assetsDir",
"${assets_root}",