Skip to content

Instantly share code, notes, and snippets.

View kentlouisetonino's full-sized avatar

Kent Tonino kentlouisetonino

  • Earth
  • Cebu, Philippines
  • 15:17 (UTC +08:00)
View GitHub Profile
@kentlouisetonino
kentlouisetonino / HOWTO_LinuxKernelQemu.md
Created October 24, 2024 15:00 — forked from ncmiller/HOWTO_LinuxKernelQemu.md
How to build the Linux kernel and test changes locally in qemu

This is the process I followed on my Fedora 23 host machine to build a small/minimal vanilla Linux kernel and test in Qemu (based on this blog post). This will provide a safe sandbox in which to test kernel changes, and is generally faster than developing natively on the host machine. Qemu will boot the kernel image directly in the emulated system.

Install required build tools on host machine

sudo dnf install ncurses-devel kernel-devel kernel-headers gcc gcc-c++ git qemu openssl-devel glibc-static

Prepare a working space for kernel development

@kentlouisetonino
kentlouisetonino / ANSI-color-codes.h
Created June 22, 2024 20:57 — forked from RabaDabaDoba/ANSI-color-codes.h
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"
@kentlouisetonino
kentlouisetonino / dependabot-create-issue.yml
Created May 24, 2024 01:05 — forked from larryclaman/dependabot-create-issue.yml
Create Issue when Dependabot opens PR
name: CreateDependabotIssue
on:
workflow_dispatch:
pull_request:
branches:
- master
types: [ opened, reopened]
jobs:
issue: