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 / Optimizations_Artix.md
Created October 21, 2021 21:51 — forked from themagicalmammal/Optimizations_Artix.md
Set of optimizations, I use on my Artix Setup
@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 / 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
@yonderbread
yonderbread / xbox.py
Created December 14, 2020 20:59
New Minecraft authentication implemented in Python
# Microsoft Authentication Scheme
# https://wiki.vg/Microsoft_Authentication_Scheme
#
# DEV NOTE: Might switch to using xbox-webapi-python
# instead later on.
# https://github.com/OpenXbox/xbox-webapi-python
import requests
MS_OAUTH2_URL = "https://login.live.com/oauth20_authorize.srf"
@yonderbread
yonderbread / config.py
Created April 11, 2022 21:07
My qutebrowser config
import os, sys
config.load_autoconfig(False)
c.backend = 'webengine'
c.qt.process_model = 'process-per-site'
# AUTO SAVE
c.auto_save.interval = 15000
c.auto_save.session = True
# CONTENT
c.content.cache.appcache = True
@yonderbread
yonderbread / readme
Last active January 18, 2022 23:04 — forked from Nadrieril/shell.nix
Building LineageOS on NixOS
Command steps to setup (copy shell.nix script into empty directory first!)
nix-shell -p gitRepo git
git config --global user.name "none"
git config --global user.email "none@none.com"
repo init -u https://github.com/LineageOS/android.git
repo sync -j4
source build/envsetup.sh
breakfast fajita
ccache -M 50G
{
"sources": [
{
"label": "AdAway official hosts",
"url": "https:\/\/adaway.org\/hosts.txt",
"enabled": true,
"allow": false,
"redirect": false
},
{
@yonderbread
yonderbread / debloat_android.sh
Created November 26, 2021 01:27
Removes a crapton of common bloat apps for various andoid manufacturer flavors
pm uninstall -k --user 0 net.oneplus.weather.basiccolorblack.overlay
pm uninstall -k --user 0 com.oneplus.cloud.basiccolorwhite.overlay
pm uninstall -k --user 0 com.oneplus.account.basiccolorwhite.overlay
pm uninstall -k --user 0 com.oneplus.deskclock.white.overlay
pm uninstall -k --user 0 com.oneplus.cloud.basiccolorblack.overlay
pm uninstall -k --user 0 com.oneplus.account.basiccolorblack.overlay
pm uninstall -k --user 0 com.oneplus.calendar.white.overlay
pm uninstall -k --user 0 com.oneplus.deskclock.black.overlay
pm uninstall -k --user 0 com.oneplus.calendar.black.overlay
pm uninstall -k --user 0 com.oneplus.soundrecorder.white.overlay
@yonderbread
yonderbread / SetupWSL2.ps1
Created October 21, 2021 19:42
PowerShell script to setup and install WSL2
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
$WSLUpdateFileName = "wsl_update_x64.msi"
$WSLUpdateFileUrl = "https://wslstorestorage.blob.core.windows.net/wslblob/$WSLUpdateFileName"
Clear-Host
(New-Object System.Net.WebClient).DownloadFile(
$WSLUpdateFileUrl,
@yonderbread
yonderbread / todo.py
Last active October 3, 2021 19:17
A tiny, minimal todo program written in python.
#!/usr/bin/python
import os, sys
todo_cfg=os.path.expanduser("~/.config/todo")
todo_fp=os.path.join(todo_cfg, 'list')
if __name__ == '__main__':
if len(sys.argv) == 1:
if not os.path.exists(todo_cfg): os.mkdir(todo_cfg)
if not os.path.exists(todo_fp):