Skip to content

Instantly share code, notes, and snippets.

View firasuke's full-sized avatar
🎐
لَا بُدَّ مِنْ رِيحٍ تُبَدِّدُ اَلْغُيُومْ...

Firas Khalil Khana firasuke

🎐
لَا بُدَّ مِنْ رِيحٍ تُبَدِّدُ اَلْغُيُومْ...
View GitHub Profile
@firasuke
firasuke / generate-mcm-toolchain.sh
Last active January 18, 2024 05:58
Building an x86-64 cross compiler targeting musl libc (musl-cross-make style)
#!/usr/bin/dash -e
# Copyright (c) 2020, Firas Khalil Khana
# Distributed under the terms of the ISC License
#
# Credits to Rich Felker and musl-cross-make for making this possible
#
set -e
@firasuke
firasuke / unixToolbox.md
Created October 21, 2023 20:41 — forked from tokhi/unixToolbox.md
Collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users.

#Unix Toolbox

This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing.

##Unix Toolbox revision 14.4

The latest version of this document can be found at http://cb.vu/unixtoolbox.xhtml. Replace .xhtml on the link with .pdf for the PDF version and with .book.pdf for the booklet version. On a duplex printer the booklet will create a small book ready to bind. This XHTML page can be converted into a nice PDF document with a CSS3 compliant application (see the script example). See also the about page.
Error reports and comments are m
#!/usr/bin/dash -e
# Copyright (c) 2020, Firas Khalil Khana
# Distributed under the terms of the ISC License
for i in $(seq 30 37) $(seq 40 48); do
for j in $(seq 0 9); do
printf "\033[$j;${i}m\\\033[$j;${i}m\033[0m "
done
printf '\n'
@firasuke
firasuke / 0001-adjust-toolchain-paths-for-x86-64.patch
Created September 30, 2020 03:03
Old patch from glaucus adjusted for use in mlfs
--- gcc/config/i386/linux.h
+++ gcc/config/i386/linux.h
@@ -20,7 +20,13 @@
<http://www.gnu.org/licenses/>. */
#define GNU_USER_LINK_EMULATION "elf_i386"
-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
#undef MUSL_DYNAMIC_LINKER
@firasuke
firasuke / generate-toolchain.sh
Last active June 17, 2020 11:45
[DEPRECATED] [Now called mussel] Building an x86-64 cross compiler targeting musl libc
#!/usr/bin/dash -e
# Copyright (c) 2020, Firas Khalil Khana
# Distributed under the terms of the ISC License
#
# This script is now officialy known as mussel and is maintained by
# firasuke over at: https://github.com/firasuke/mussel
#