Skip to content

Instantly share code, notes, and snippets.

View smalinux's full-sized avatar
🎯
FOCUS

Sohaib Mohamed smalinux

🎯
FOCUS
View GitHub Profile
@smalinux
smalinux / gsoc-report.md
Last active January 31, 2024 22:25
⭐ Google Summer of Code 2022

Generalized columns in Htop - Project Summary

This is the final report for the project I was working for Google Summer of Code 2022

Abstract

The htop utility recently acquired the ability to display multiple Tabs in its user interface. Currently these display only process information. The aim of this project is to support generalized Tabs, where information beyond processes can be displayed in columns.

  • Extend htop Tabs to provide a more generalized Tab and Columns concept, such that top-most resource utilization for system objects other than processes can
@smalinux
smalinux / README.md
Last active January 26, 2024 09:32
⭐ Portfolio

TL;DR

I've started my journey by building many Linux kernel modules and my own OS from scratch. Then I contributed to open-source projects like Google Summer of Code[^12], Htop [^1], PCP [^2], and Linux kernel [^3].

I needed to choose a Linux subsystem to focus on and to learn Linux through it. I chose the performance aspects of Linux. My experience with Htop and PCP made this decision for me.

I am passionate about performance engineering and monitoring, because it gave me the power to touch dark places in the system that nobody in other Linux subsystems could touch.

I'm interested in performance aspects of software systems and metrics collection tools such as Htop, perf and eBPF.

@smalinux
smalinux / .gitignore
Last active April 1, 2023 12:57
/home/smalinux/.newsboat/urls
compile_commands*
@smalinux
smalinux / drvinfo
Last active November 26, 2021 10:07
barebox
barebox@riscv-virtio,qemu:/ drvinfo
Driver Device(s)
--------------------
syscon
riscv-timer
riscv-timer
riscv
cpus:cpu@0.of
cpus:cpu@1.of
cpus:cpu@2.of
[smalinux@dhcppc9 test]$ ./emulate.pl virt64_defconfig
Can't exec "tuxmake": No such file or directory at ./emulate.pl line 377.
vsystem: No such file or directory
Error building: -1
Resolved: https://gitlab.com/Linaro/tuxmake/-/blob/master/docs/install-rpm.md
[smalinux@dhcppc9 test]$ tuxmake -a riscv -k virt64_defconfig --kconfig-add=test/kconfig/base.cfg -b /tmp/bareboxbuild-eof2wEgQ36 -o /tmp/bareboxbuild-eof2wEgQ36/artifacts default
@smalinux
smalinux / stackoverflow
Created September 4, 2021 06:26
C programmers
https://stackoverflow.com/users/379897
# GUI.py
# RUN THIS FILE
import pygame
from solver import solve, valid
import time
pygame.font.init()
class Grid:
# To change the starting board change this
https://github.com/kraten/chessbot
https://github.com/LouisAsanaka/PyChessBot
https://github.com/Panc4kes/chess.com-bot
https://github.com/kochsebastian/ChessVisionBot
https://github.com/taiypeo/ChessBot
https://github.com/edfrue/chess_cheat
https://github.com/Stanou01260/chessbot_python
https://github.com/GabrieleMaurina/chess-cheat
https://github.com/Akenne/Chess-Bot
@smalinux
smalinux / 0001-mychar-hello-world-character-driver.patch
Last active January 18, 2021 17:35
Embox hacking - 101 tutorial
From 39991fa0f75e7e6302f17e4882ff2d2a18f36cae Mon Sep 17 00:00:00 2001
From: Sohaib Mohammed <sohaib.amhmd@gmail.com>
Date: Sat, 16 Jan 2021 06:48:31 +0200
Subject: [PATCH 1/1] mychar - hello world character device
---
src/kernel/Mybuild | 7 +++++++
src/kernel/mychar.c | 31 +++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+)
create mode 100644 src/kernel/mychar.c
@smalinux
smalinux / gcp.rst
Last active December 27, 2020 17:19
Good C programmer

# Random notes for me to become a good C programmer

C89 (aka "Standard C", aka "ANSI C")

  • Pointers. This is critical. You can't do anything more than "hello world" type stuff in C if you don't get this.
  • Stop reading articles! No website is as good as a good book. [https://fabiensanglard.net/c/]
  • read this book: Expert C Programming
  • Write code every single day.