Skip to content

Instantly share code, notes, and snippets.

View krofna's full-sized avatar
💭
👨‍🎓

Mislav Blažević krofna

💭
👨‍🎓
View GitHub Profile
@krofna
krofna / llkrof.cpp
Last active June 23, 2022 15:01
bl unpacker
/*
Copyright © 2014 Mislav Blažević <[email protected]>
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the COPYING file for more details.
*/
#include <fstream>
#include <cstdint>
#include <cstring>
#include <iostream>
type kuh = record
kuhar : string;
jelo : string;
ocjena : integer;
end;
var f : file of kuh;
var i : integer;
var d : kuh;
#0 0x00007ffff7077817 in writev () from /lib64/libc.so.6
#1 0x00007ffff78e36f5 in std::__basic_file<char>::xsputn_2(char const*, long, char const*, long) () from /lib64/libstdc++.so.6
#2 0x00007ffff791c7c4 in std::basic_filebuf<char, std::char_traits<char> >::xsputn(char const*, long) () from /lib64/libstdc++.so.6
#3 0x00007ffff78fd402 in std::ostream::write(char const*, long) () from /lib64/libstdc++.so.6
#4 0x00000000004077eb in Argument::Compile (this=0x612460) at /home/krofna/Hacking/nptools/src/nsbcompile2.cpp:47
#5 0x0000000000407c07 in Subroutine::CompilePrototype (this=0x612450, BeginMagic=149, NumBeginParams=1)
at /home/krofna/Hacking/nptools/src/nsbcompile2.cpp:115
#6 0x0000000000407fa7 in Scene::Compile (this=0x612450) at /home/krofna/Hacking/nptools/src/nsbcompile2.cpp:151
#7 0x0000000000407b24 in Block::Compile (this=0x612420) at /home/krofna/Hacking/nptools/src/nsbcompile2.cpp:104
#8 0x0000000000407c35 in Subroutine::Compile (this=0x612450) at /home/krofna/Hacking/nptools/src/nsbcompile2.cpp:120
@krofna
krofna / matej.c
Last active January 1, 2016 15:09
/*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://www.wtfpl.net/ for more details.
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
make[1]: Entering directory `/home/mislav/Devel/mxe'
uname -a
Linux home 3.11-2-amd64 #1 SMP Debian 3.11.10-1 (2013-12-04) x86_64 GNU/Linux
git show-branch --list --reflog=1
[refs/heads/master@{0}] (66 minutes ago) pull: Fast-forward
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux unstable (sid)
Release: unstable
Codename: sid
PKG := sfemovie
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.6-fgre
$(PKG)_CHECKSUM := 71c7f0e7253b50bd1f3997c0e98828abb7bae0ff
$(PKG)_SUBDIR := sfeMovie-$($(PKG)_VERSION)
$(PKG)_FILE := sfeMovie-$($(PKG)_VERSION)-sources.zip
$(PKG)_URL := https://github.com/FGRE/sfeMovie/archive/v$($(PKG)_VERSION).zip
$(PKG)_DEPS := sfml ffmpeg
define $(PKG)_BUILD
make[1]: Entering directory `/home/mislav/Devel/mxe'
uname -a
Linux home 3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64 GNU/Linux
git show-branch --list --reflog=1
[refs/heads/master@{0}] (35 hours ago) pull: Fast-forward
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux unstable (sid)
Release: unstable
Codename: sid
Linking CXX executable rpcs3
CMakeFiles/rpcs3.dir/Emu/SysCalls/lv2/SC_sys_spu.cpp.o:(.bss+0x0): multiple definition of `sc_spu'
CMakeFiles/rpcs3.dir/Emu/SysCalls/lv2/SC_SPU_Thread.cpp.o:(.bss+0x0): first defined here
CMakeFiles/rpcs3.dir/Emu/SysCalls/lv2/SC_sys_spu.cpp.o: In function `sys_spu_initialize(unsigned int, unsigned int)':
SC_sys_spu.cpp:(.text+0x7c80): multiple definition of `sys_spu_initialize(unsigned int, unsigned int)'
CMakeFiles/rpcs3.dir/Emu/SysCalls/lv2/SC_SPU_Thread.cpp.o:SC_SPU_Thread.cpp:(.text+0x91f8): first defined here
CMakeFiles/rpcs3.dir/Gui/InterpreterDisAsm.cpp.o: In function `InstructionEditorDialog::InstructionEditorDialog(wxPanel*, unsigned long, CPUThread*, CPUDecoder*, CPUDisAsm*)':
InterpreterDisAsm.cpp:(.text+0x7c80): multiple definition of `InstructionEditorDialog::InstructionEditorDialog(wxPanel*, unsigned long, CPUThread*, CPUDecoder*, CPUDisAsm*)'
CMakeFiles/rpcs3.dir/Gui/InstructionEditor.cpp.o:InstructionEditor.cpp:(.text+0x7c80): first defined here
CMakeFiles/rpcs3.di
make[1]: Entering directory `/home/mislav/Devel/mxe'
uname -a
Linux home 3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64 GNU/Linux
git show-branch --list --reflog=1
[refs/heads/master@{0}] (19 hours ago) pull: Fast-forward
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux unstable (sid)
Release: unstable
Codename: sid
PKG := sfemovie
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.0-fgre
$(PKG)_CHECKSUM := 1b8adf88799be72ef666892c835326d05fb9e096
$(PKG)_SUBDIR := sfeMovie-$($(PKG)_VERSION)
$(PKG)_FILE := sfeMovie-$($(PKG)_VERSION)-sources.zip
$(PKG)_URL := https://github.com/FGRE/sfeMovie/archive/v1.0-fgre.zip
$(PKG)_DEPS := sfml ffmpeg
define $(PKG)_BUILD