Skip to content

Instantly share code, notes, and snippets.

View yonderbread's full-sized avatar
🧀
chedda

yonderbread yonderbread

🧀
chedda
View GitHub Profile
# Store initial working directory path
export START_PATH=$PWD
# Get dependencies
sudo apt-get install -y git g++ cmake ninja-build libx11-dev libxcursor-dev libxi-dev libgl1-mesa-dev libfontconfig1-dev
# Build skia
mkdir $HOME/deps
cd $HOME/deps
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
@yonderbread
yonderbread / install_termux_minecraft_server.sh
Last active January 13, 2024 21:44
Termux Minecraft Server Install Script
# This will install a Minecraft 1.16.5 vanilla server on Termux and launch it
pkg install apt curl wget openssl-tool proot -y && hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Ubuntu/ubuntu.sh && bash ubuntu.sh
chmod +x start-ubuntu.sh
./start-ubuntu.sh
apt install software-properties-common -y
add-apt-repository ppa:openjdk-r/ppa -y && apt update
apt install openjdk-8-jre -y
cd ~ && mkdir mc_server && cd mc_server
wget https://launcher.mojang.com/v1/objects/1b557e7b033b583cd9f66746b7a9ab1ec1673ced/server.jar
echo "eula=true" > eula.txt
@yonderbread
yonderbread / client.py
Created February 25, 2021 20:15
Minecraft chat client class
import socket
import sys
import threading
import struct
PACKETS = {
"send" :{
"handshake": {},
"login": {},
"play": {}
@yonderbread
yonderbread / settings.md
Last active January 18, 2021 09:31
Firefox Hardening

Recommended Addons

about:config tweaks

  • media.peerconnection.enabled = false
  • privacy.resistfingerprinting = false
  • security.ssl3.rsa_des_ede3_sha = false
  • security.ssl.require_safe_negotiation = true
  • security.tls.version.min = 3
@yonderbread
yonderbread / OF-DOWNLOADER.py
Last active January 17, 2021 21:37
Janky optifine downloader (download without ads lol)
from bs4 import BeautifulSoup
from lxml import html as htm
import requests
html = BeautifulSoup(requests.get('https://optifine.net/downloads').content, 'html.parser')
entries = html.find_all('td', class_='colMirror')
links = []
for e in entries:
links.append(e.a['href'])
@yonderbread
yonderbread / trident-ui-docs.md
Created January 13, 2021 22:14
Trident UI documentation in markdown forma
@yonderbread
yonderbread / install.bat
Created January 12, 2021 05:52
Install GNU IceCat Windows build with Chocolatey
echo "MAKE SURE TO RUN THIS AS ADMINISTRATOR!"
echo "Setting up execution policy rules and installing chocolatey..."
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
echo "Installing GNU IceCat"
choco install icecat
echo "Done."
@yonderbread
yonderbread / links.md
Created January 11, 2021 22:40
Lenovo Legion Y520 Driver Downloads
@yonderbread
yonderbread / bash.sh
Last active January 11, 2021 23:28
Learn X in Y minutes
#!/usr/bin/env bash
# First line of the script is the shebang which tells the system how to execute
# the script: http://en.wikipedia.org/wiki/Shebang_(Unix)
# As you already figured, comments start with #. Shebang is also a comment.
# Simple hello world example:
echo Hello world! # => Hello world!
# Each command starts on a new line, or after a semicolon:
echo 'This is the first line'; echo 'This is the second line'
import socket
class Webserver:
def __init__(self, host: str = '0.0.0.0', port: int = 8080):
self.host = host
self.port = port
self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self._socket.bind((self.host, self.port))