Skip to content

Instantly share code, notes, and snippets.

@chibicitiberiu
chibicitiberiu / SConscript
Created August 14, 2023 18:34
Nanobyte-OS - mount support
###### image/SConscript
import os
import re
import time
from io import SEEK_CUR, SEEK_SET
from pathlib import Path
from shutil import copy2
from getpass import getpass
import parted
@chibicitiberiu
chibicitiberiu / darling_linux_5_11.patch
Created April 30, 2021 19:21
Patch for linux 5.11+ support
Submodule src/external/lkm contains modified content
diff --git a/src/external/lkm/darling/binfmt.c b/src/external/lkm/darling/binfmt.c
index 55c8a63..cf93aca 100644
--- a/src/external/lkm/darling/binfmt.c
+++ b/src/external/lkm/darling/binfmt.c
@@ -222,7 +222,7 @@ int setup_space(struct linux_binprm* bprm, struct load_results* lr)
// Explanation:
// Using STACK_TOP would cause the stack to be placed just above the commpage
// and would collide with it eventually.
- unsigned long stackAddr = commpage_address(!test_thread_flag(TIF_IA32));
@chibicitiberiu
chibicitiberiu / cryptopp_android_build.py
Last active February 14, 2020 01:59
Python script which implements most of cryptopp setupenv-android.
#!/usr/bin/env python3
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#