Skip to content

Instantly share code, notes, and snippets.

View aagontuk's full-sized avatar

Ashfaqur Rahaman aagontuk

View GitHub Profile
@aagontuk
aagontuk / linux_kernel_on_kvm_guest.md
Last active March 16, 2023 02:38
Installing/Preparing a KVM guest for Linux kernel development in Debian.

Graphical Installation

Bellow instructions are for creating a kvm guest OS(Debian) on Debian. Though the examples are based on Debian it should be same for all other distro.

  • Check if your CPU support virtualization: grep -E --color=auto 'vmx|svm|0xc0f' /proc/cpuinfo

  • Check if the host kernel support KVM: grep CONFIG_KVM /boot/config-$(uname -r)

@aagontuk
aagontuk / red-black-tree.c
Last active October 17, 2022 05:53
A RED-BLACK TREE Implementation
/*
* [PROG] : Red Black Tree
* [AUTHOR] : Ashfaqur Rahman <sajib.finix@gmail.com>
* [PURPOSE] : Red-Black tree is an algorithm for creating a balanced
* binary search tree data structure. Implementing a red-balck tree
* data structure is the purpose of this program.
*
* [DESCRIPTION] : Its almost like the normal binary search tree data structure. But
* for keeping the tree balanced an extra color field is introduced to each node.
* This tree will mantain bellow properties.
@aagontuk
aagontuk / gdb_cheatsheet.txt
Last active October 5, 2022 10:19
GDB Cheatsheet
* Run the program
gdb$ r arg1 arg2 ... # Run program until it hits a breakpoint
* Environment variable
gdb$ set environment VAR=VALUE
gdb$ unset environment VAR
gdb$ show environmet # Show all environment variable
gdb$ show environment VAR # Show environment variable VAR