Skip to content

Instantly share code, notes, and snippets.

@Masy
Masy / Specification.md
Last active March 10, 2020 15:49
BMF (Binary Model Format) Specification

BMF (Binary Model Format) Specification

Information Section

Mode

The first byte describes the mode the model is meant to be rendered in. Possible modes:

  • Line (0x00)
  • Line Strip (0x01)
  • Triangle (0x02)
@Masy
Masy / log4j2.xml
Last active February 19, 2021 20:32
Log4j2 config
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="warn">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout>
<pattern>%style{[}{dim,white}%d{HH:mm:ss}%style{][}{dim,white}%highlight{%-5.5level{INFO=INFO, WARN=WARN, ERROR=ERROR, DEBUG=DEBUG}}{ERROR=red, DEBUG=blue, INFO=green}%style{][}{dim,white}%style{%logger}{dark,cyan}%style{]}{dim,white}: %highlight{%msg%n%throwable}{ERROR=red, DEBUG=blue, INFO=default}</pattern>
</PatternLayout>
</Console>
<RollingRandomAccessFile name="Logfile" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log">
<PatternLayout pattern="[%d{dd MMM HH:mm:ss}][%level][%logger]: %msg%n" />
@Masy
Masy / error.md
Last active November 23, 2019 23:59
Segmentation Fault NVidia 441.20

Error:

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ff94fbcaefe in vk_optimusGetInstanceProcAddr ()
   from C:\WINDOWS\System32\DriverStore\FileRepository\nvaci.inf_amd64_886b780ca50b5e3e\nvoglv64.dll
(gdb) ba
#0  0x00007ff94fbcaefe in vk_optimusGetInstanceProcAddr ()
   from C:\WINDOWS\System32\DriverStore\FileRepository\nvaci.inf_amd64_886b780ca50b5e3e\nvoglv64.dll
#1  0x00007ff94f66a9ac in ?? ()
   from C:\WINDOWS\System32\DriverStore\FileRepository\nvaci.inf_amd64_886b780ca50b5e3e\nvoglv64.dll