Skip to content

Instantly share code, notes, and snippets.

View Frontear's full-sized avatar
🚫
Hiatus due to school.

Ali Rizvi Frontear

🚫
Hiatus due to school.
View GitHub Profile
@Frontear
Frontear / resource_pack.py
Last active August 1, 2024 02:05
Packages the default minecraft resource pack in it's entirety. This is a tool designed for resource pack makers
import os, sys, logging, json, shutil
from urllib.request import urlopen, urlretrieve
from zipfile import ZipFile
def main():
logging.basicConfig(format='[%(asctime)s] [pack/%(levelname)s]: %(message)s', datefmt='%H:%M:%S', level=logging.INFO)
os.mkdir('tmp')
manifest = json.loads(urlopen('https://launchermeta.mojang.com/mc/game/version_manifest.json').read())
target_version = sys.argv[1] if len(sys.argv) > 1 else manifest['latest']['release'] # defaults to latest version if none specified
@Frontear
Frontear / warframe_setup.sh
Created December 12, 2018 12:46
A simple script dedicated to being able to run Warframe using SteamPlay and GloriousEggroll's script. Modify for your system as you need to.
#!/bin/sh
WARFRAME_STEAM_DIR=~/.local/share/Steam/steamapps/common/Warframe
GLORIOUS_EGGROLL_PATCHES="https://gitlab.com/GloriousEggroll/warframe-linux/-/archive/steamplay-proton/warframe-linux-steamplay-proton.zip"
sudo -v
echo "Downloading dependencies..."
pacaur -S xboxdrv curl
@Frontear
Frontear / mcp_setup.sh
Last active January 4, 2019 18:01
A shell script dedicated to automatically downloading and setting up a ModCoderPack workspace. Now includes more functionality than ever!
#!/bin/sh
# I highly recommend this video: https://www.youtube.com/watch?v=b2gJfKNSb1k
# It can help troubleshoot, and is the sole reason I decided to even expand this script for such complex tasks in the first place
# update these urls correctly for yourself
MC_VERSION="1.8.8" # just the minecraft version you are planning to decompile
MCP_ZIP="http://www.modcoderpack.com/files/mcp918.zip" # the modcoderpack zip. Download the one closest to your version
SERVER_JAR="https://launcher.mojang.com/v1/objects/5fafba3f58c40dc51b5c3ca72a98f62dfdae1db7/server.jar" # the server jar. Download the exact one for your version
MAPPINGS_ZIP="http://export.mcpbot.bspk.rs/mcp_stable/20-1.8.8/mcp_stable-20-1.8.8.zip" # the obfuscated mappings. Download the stable ones, if possible
@Frontear
Frontear / GATES.md
Last active October 9, 2020 14:51
Mathematic calculations for logic gates

Logic Gates Mathematic Evaluations

These are just the proper, mathematical formula's that will behave like any generic logic evaluation. This was compiled by me simply because I had the time to, I'm sure these are already known, and maybe even have different/better ways to do them.

AND

The formula for this is xy, where

  • X: first input
  • Y: second input
  • R: the result

Truth Table