Skip to content

Instantly share code, notes, and snippets.

@ariscop
ariscop / build.log
Created Feb 9, 2019
Building reactos with gcc 7.3
View build.log
[91/9712] Performing configure step for 'host-tools'
-- The C compiler identification is GNU 8.2.1
-- The CXX compiler identification is GNU 8.2.1
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler using: Ninja
@ariscop
ariscop / with_macro.c
Created Sep 27, 2018
with macro in c
View with_macro.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define with(_init, _fini) for(int _count = ((_init), 1); _count--; (_fini))
#define with_file(var, name, access) with(var = fopen(name, access), (var ? fclose(var) : 0 ))
void
test_macro(char *file)
View 0001-Reactos-changes.patch
From f114131ec986a3ff7f7668df1a31fb60daf980a6 Mon Sep 17 00:00:00 2001
From: Andrew Cook <ariscop@gmail.com>
Date: Sun, 11 Mar 2018 13:18:36 +1100
Subject: [PATCH] Reactos changes
---
Source/CMakeLists.txt | 12 ++
Source/CMakeVersionCompute.cmake | 1 +
Source/cmGeneratorTarget.h | 5 +-
Source/cmGlobalNinjaGenerator.cxx | 24 ++-
View changes.patch
commit 09c06a2f457ec9557bcdf1809ecb4b50b2fb654a
Author: Amine Khaldi <amine.khaldi@reactos.org>
Date: Fri Oct 27 22:18:01 2017 +0100
[CLANG-CL] Initial commit that allows us to compile ReactOS with clang-cl.
diff --git a/sdk/cmake/Platform/Windows-MSVC.cmake b/sdk/cmake/Platform/Windows-MSVC.cmake
index dc09c7479f2..5c3912cfeab 100644
--- a/sdk/cmake/Platform/Windows-MSVC.cmake
+++ b/sdk/cmake/Platform/Windows-MSVC.cmake
@ariscop
ariscop / script
Created Oct 2, 2015
Gdb script for logging backtraces when a function is called
View script
set pagination off
set logging file gdb.txt
set logging on
break sendto_realops_snomask
commands
bt full
c
end
@ariscop
ariscop / notes.txt
Created Sep 26, 2015
Notes from my attempts to RE myobs file format
View notes.txt
Header, 0x80/0x800 long?
first record starts at 0x800
NOT alligned (some things are 2 byte aligned)
From the upgrade guide:
0 - no record header
10 - variable length record header
18 - superfile record header
22 - resource record header
View -
$ cppcheck ass0.c ±[master]
Checking ass0.c...
[ass0.c:71]: (error) Memory leak: e
[ass0.c:99]: (error) Uninitialized variable: newEntry
[ass0.c:100]: (error) Uninitialized variable: newEntry
[ass0.c:115]: (error) Uninitialized variable: newEntry
View 1.7.10.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 2. in line 2.
dev lastupdated name dependencies tags author shorturl longurl modid repo prevversion license added_at version aliases comment
1424268785 3DFurnace ['MinecraftForge'] [] spAnser http://goo.gl/ObMZs2 http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1288346 furnace3d 1.3a 0 1.4 []
1432764026 4Space ['MinecraftForge', 'Galacticraft'] [] Mattparks http://goo.gl/bQ9pwP http://4space.mods.center/ SpaceCore 4.1.3 0 4.1.9 [] Galacticraft addon
1438453027 AbyssalCraft ['MinecraftForge'] [] Shinoow http://goo.gl/HrvVev http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1287002 abyssalcraft 1.7.8.1 0 1.8.7 []
1426578995 AchieveSON ['MinecraftForge'] [] Lomeli12 http://goo.gl/aZ04lE http://www.curse.com/mc-mods/minecraft/227850-achieveson achieveson 0 1.0.1 [] Add custom achievements via json, example here http://goo.gl/v6BCjV
1438621441 ActuallyAdditions ['MinecraftForge'] [] Ellpeck http://goo.gl/xr7W16 http://www.minecraftforum.net/forums/mapping-and-modding/
View json2csv
#!/usr/bin/env python3
import sys
import json
data = []
with open(sys.argv[1], "r", encoding="utf-8") as f:
data = json.loads(f.read(), encoding="utf-8")
keys = data[0].keys()
You can’t perform that action at this time.