Skip to content

Instantly share code, notes, and snippets.

View theunkn0wn1's full-sized avatar

Joshua Salzedo theunkn0wn1

View GitHub Profile
@theunkn0wn1
theunkn0wn1 / Makefile
Last active September 10, 2021 06:31
A64 makefile for assembly projects
# Unknown's V1-A64 makefile.
# This makefile will detect all *.asm and *.S asm sources and build corresponding .o's
# in the BUILD_DIR.
# once all assembly files are generated / up to date, PROJECT will be linked in the CWD
# from these assembled artefacts in BUILD_DIR.
#
# NOTE:
# This makefile works both in cross-compile situations and native builds
# It has been tested tested against Ubuntu 20.04 aarch64's cross-compilers and on a RPi 4b
#
@theunkn0wn1
theunkn0wn1 / Makefile
Last active November 30, 2020 17:56
Unknown's asm makefile, v2
# Unknown's asm makefile.
# This makefile will detect all *.asm and *.S asm sources and build corresponding .o's
# in the BUILD_DIR.
# PHASE 1: all .asm and .S sources EXCEPT main.asm will be assembled into object .o files.
# This is done to produce a $(PROJECT).a library artefact in the BUILD_DIR.
# Building a .a library object is done to facilitate testing using alternative
# entry-points.
# PHASE 2: Once $(PROJECT).a is generated, `main.asm` will be compiled to object code,
# and the executable $(PROJECT) will be linked in the CWD
@theunkn0wn1
theunkn0wn1 / Makefile
Created November 9, 2020 20:24
A random makefile
# Unknown's asm makefile.
# This makefile will detect all *.asm and *.S asm sources and build corresponding .o's
# in the BUILD_DIR.
# once all assembly files are generated / up to date, PROJECT will be linked in the CWD
# from these assembled artefacts in BUILD_DIR.
#
# NOTE:
# This makefile works both in cross-compile situations and native builds
# It has been tested tested against Ubuntu 18.04's armhf crossbuild and on a RPi 4b.
#
@theunkn0wn1
theunkn0wn1 / python_post_process.py
Created October 23, 2020 19:31
Post-process protoc generated python sources to use relative imports
import ast
import pathlib
import dataclasses
from typing import Optional, Set
import logging
@dataclasses.dataclass(frozen=True)
class Alias:
@theunkn0wn1
theunkn0wn1 / screenio.txt
Created July 23, 2018 15:14
Pydle unit test failures
pytest
============================= test session starts =============================
platform win32 -- Python 3.6.6, pytest-3.6.3, py-1.5.4, pluggy-0.6.0
rootdir: pydle/, inifile: tox.ini
plugins: asyncio-0.8.0
collected 53 items
tests\test__fixtures.py ...F [ 7%]
tests\test__mocks.py FFF......... [ 30%]
tests\test_client.py .FF.F.FFFFFF [ 52%]
---- Minecraft Crash Report ----
WARNING: coremods are present:
CCLCorePlugin (CodeChickenLib-1.10.2-2.5.7.241-universal.jar)
Brandon's Core (BrandonsCore-1.10.2-2.1.4.92-universal.jar)
CoreMod (Aroma1997Core-1.9.4-1.1.1.1.jar)
EnderCorePlugin (EnderCore-1.10.2-0.4.1.65-beta.jar)
IC2core (industrialcraft-2-2.6.15-ex110.jar)
LoadingPlugin (Quark-r1.1-70.jar)
LoadingPlugin (RandomThings-MC1.10.2-3.7.7.jar)
[20:49:28] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:49:28] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:49:28] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[20:49:28] [main/INFO]: Forge Mod Loader version 12.18.3.2254 for Minecraft 1.10.2 loading
[20:49:28] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 10:amd64:10.0, installed at I:\Users\theunkn0wn1\Documents\Curse\Minecraft\Install\runtime\jre-x64\1.8.0_25
[20:49:29] [main/WARN]: The coremod aroma1997.core.coremod.CoreMod does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[20:49:29] [main/INFO]: Loading tweaker me.guichaguri.betterfps.tweaker.BetterFpsTweaker from BetterFps-1.3.2.jar
[20:49:29] [main/WARN]: The coremod team.chisel.common.asm.ChiselCorePlugin does not have a MCVersion annotation, it may cause issues with this version o
:compileJava
I:\Users\theunkn0wn1\Documents\GitHub\ImmersiveEngineering\build\sources\main\java\blusunrize\immersiveengineering\common\util\IEFluid.java:105: error: read(PacketBuffer) in <anonymous blusunrize.immersiveengineering.common.util.IEFluid$1> cannot implement read(PacketBuffer) in DataSerializer
public Optional<FluidStack> read(PacketBuffer buf) throws IOException
^
overridden method does not throw IOException
where T is a type-variable:
T extends Object declared in interface DataSerializer
I:\Users\theunkn0wn1\Documents\GitHub\ImmersiveEngineering\build\sources\main\java\blusunrize\immersiveengineering\common\IEContent.java:453: error: cannot find symbol
registerTile(TileEntityFluidPlacer.class);
^
@theunkn0wn1
theunkn0wn1 / ChemThrower_IAE.txt
Created November 23, 2015 00:36
Illegal Access error in Immersive Engineering's Chemical Thrower
[16:30:02] [Client thread/INFO] [STDOUT/]: [net.minecraft.client.Minecraft:func_71377_b:349]: ---- Minecraft Crash Report ----
// Everything's going to plan. No, really, that was supposed to happen.
Time: 11/22/15 4:30 PM
Description: Ticking entity
java.lang.IllegalAccessError: tried to access field net.minecraft.entity.Entity.field_70151_c from class blusunrize.immersiveengineering.common.entities.EntityChemthrowerShot
at blusunrize.immersiveengineering.common.entities.EntityChemthrowerShot.onImpact(EntityChemthrowerShot.java:102)
at blusunrize.immersiveengineering.common.entities.EntityIEProjectile.func_70030_z(EntityIEProjectile.java:184)
at blusunrize.immersiveengineering.common.entities.EntityChemthrowerShot.func_70030_z(EntityChemthrowerShot.java:78)
[21:42:11] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.util.ReportedException: Ticking block entity
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:642) ~[MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547) ~[MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:111) ~[bsx.class:?]
at fastcraft.r.a(F:21) ~[fastcraft-1.22-ctest13.jar:?]
at fastcraft.Hooks.aq(F:155) ~[fastcraft-1.22-ctest13.jar:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:396) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [?:?]
Caused by: java.lang.NullPointerException