Skip to content

Instantly share code, notes, and snippets.

🤔
Contemplative.

K Lange klange

🤔
Contemplative.
Block or report user

Report or block klange

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:87849cfa2e8dc0f47e4d6a52a09a4066
Name: K. Lange
Email: klange (at) toaruos (dot) org
Subject: Re: "Way, Way Outside!"
Your recent article titled "Linux and the Multiverse", published in the January 2019 issue, featured a subsection "Way, Way Outside!" about PonyOS. It is always an honor to see my creations featured in media publications, especially in print form. As I say on my website, and as Marcel reiterates in the article (though perhaps with a tone that may not convey sincerity), PonyOS is not a Linux distribution - its kernel and core applications instead deriving from my real hobby OS project (ToaruOS), where they were written from scratch by myself and a handful of contributors over nearly a decade. PonyOS is, of course, a joke - a special release, updated once a year on an equally special day. As it's been several months since the last April Fools, much has happened in the upstream project, and as such the latest release of PonyOS is a sort of time capsule, capturing a bygone era for both projects - rather nostalgic to me! PonyOS a
@klange
klange / double_free.txt
Created Dec 12, 2018
ToaruOS memory tracker examples
View double_free.txt
Double free detected: 0x174ca10 (allocated by 0x3de14f)
Double free detected: 0x174ca10 (allocated by 0x3de14f)
Double free detected: 0x174ca10 (allocated by 0x3de14f)
Double free detected: 0x174ca10 (allocated by 0x3de14f)
Double free detected: 0x174ca10 (allocated by 0x3de14f)
Double free detected: 0x174ca10 (allocated by 0x3de14f)
Double free detected: 0x174ca10 (allocated by 0x3de14f)
Double free detected: 0x174ca10 (allocated by 0x3de14f)
Double free detected: 0x174ca10 (allocated by 0x3de14f)
Double free detected: 0x174ca10 (allocated by 0x3de14f)
View gist:87760bc636114329794f4a5018eb98af
local@livecd /usr/out$ ./open-mkstemp-rdonly [11/22 16:23:47]
local@livecd /usr/out$ ./open-mkstemp-rdonly-trunc [11/22 16:23:50]
open: EINVAL
local@livecd 1 /usr/out$ ./open-tmpdir-rdonly [11/22 16:23:52]
local@livecd /usr/out$ ./open-tmpdir-rdonly-append [11/22 16:24:00]
local@livecd /usr/out$ ./open-tmpdir-rdonly-creat [11/22 16:24:03]
open: EISDIR
local@livecd 1 /usr/out$ ./open-tmpdir-rdonly-trunc [11/22 16:24:09]
open: EINVAL
local@livecd 1 /usr/out$ ./open-tmpdir-rdwr [11/22 16:24:19]
View gist:97aa37f046d057780de741ead206e443
local@livecd ~$ sudo msk update [11/07 13:53:08]
[sudo] password for local:
local@livecd ~$ sudo msk install src src-tools [11/07 13:54:01]
The following packages will be installed:
zlib ungz src python gcc binutils build-essential src-tools
Continue? [Y/n] y
Install 'zlib'...
Install 'ungz'...
Install 'src'...
Install 'python'...
View cloc.md
Language files blank comment code
C 326 9290 7371 53030
C/C++ Header 128 1515 867 13663
Python 25 1159 351 6061
Assembly 14 104 53 465
Bourne Shell 20 90 6 293
make 1 81 67 235
Markdown 4 107 0 188
Bourne Again Shell 1 3 0 7
View gist:c028c4c931a62e21f3e1fd02ca9afe7b
/usr/local/libexec/gcc/i686-pc-toaru/6.4.0/cc1: sscanf("6.4.0", format="%d.%d.%d", ...);
/usr/local/libexec/gcc/i686-pc-toaru/6.4.0/cc1: sscanf: out 6
/usr/local/libexec/gcc/i686-pc-toaru/6.4.0/cc1: sscanf: out 4
/usr/local/libexec/gcc/i686-pc-toaru/6.4.0/cc1: sscanf: out 0
/usr/local/lib/gcc/i686-pc-toaru/6.4.0/libgcc.a: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
readelf: Error: Archive member uses long names, but no longname table found
readelf: Error: libgcc.a: bad archive file name
View gist:57fee2c9b364ab56815bd99f2bffaccf
local@livecd /opt$ /usr/local/bin/i686-pc-toaru-gcc -o /tmp/test test.c [10/12 13:11:54]
/usr/local/libexec/gcc/i686-pc-toaru/6.4.0/cc1: sscanf(..., format=%d.%d.%d, ...);
/usr/local/libexec/gcc/i686-pc-toaru/6.4.0/cc1: sscanf(..., format=%d.%d, ...);
test.c: In function 'main':
test.c:6:1: internal compiler error: Illegal instruction
}
^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
View git.diff
remote: Counting objects: 283, done.
remote: Compressing objects: 100% (113/113), done.
remote: Total 283 (delta 172), reused 267 (delta 170)
Receiving objects: 100% (283/283), 160.96 KiB | 0 bytes/s, done.
Resolving deltas: 100% (172/172), done.
From gitlab.com:toaruos/toaru-nih
* branch master -> FETCH_HEAD
45e4aed..40ae768 master -> origin/master
Updating 45e4aed..40ae768
Fast-forward
View gist:d462ba5111d592f84e113816f3701527
local@base ~$ qemu-fwcfg -l
0x0020 bootorder (27 bytes)
0x0021 etc/acpi/rsdp (36 bytes)
0x0022 etc/acpi/tables (8192 bytes)
0x0023 etc/boot-fail-wait (4 bytes)
0x0024 etc/e820 (40 bytes)
0x0025 etc/smbios/smbios-anchor (31 bytes)
0x0026 etc/smbios/smbios-tables (320 bytes)
0x0027 etc/system-states (6 bytes)
0x0028 etc/table-loader (4096 bytes)
@klange
klange / gist:7701981001ef5f974c9cfe84d9aa46b4
Created May 9, 2018
things marked undeclared when building python for toaru-nih
View gist:7701981001ef5f974c9cfe84d9aa46b4
built-in function 'abort'
built-in function 'atan2'
built-in function 'ceil'
built-in function 'frexp'
built-in function 'ldexp'
built-in function 'log'
built-in function 'modf'
built-in function 'snprintf'
function 'abort'
function 'atan2'
You can’t perform that action at this time.