Skip to content

Instantly share code, notes, and snippets.

View thekomali's full-sized avatar
🦚

thekomali

🦚
View GitHub Profile
@thekomali
thekomali / notes.txt
Created April 19, 2026 19:30
Steps To Create Custom C Library
///// SOME BASICS /////
Library
=======
- contain definitions/implementations of functions, types, constants etc.
- contain 2 parts
1. Application Programming Interface (*.h files)
- PURPOSE: specify what a library provides to it's users
- defines function prototypes, constants, global variables, types etc.
2. Implementation (*.c files)
@thekomali
thekomali / preferences.json
Created April 19, 2026 18:24
VS Code Configurations
{
// COLOR THEME & ICON THEME
"workbench.colorTheme": "Gruvbox Dark Soft",
"workbench.iconTheme": "bearded-icons",
// FONT SETTINGS
"editor.fontFamily": "'Cascadia Code', Consolas, 'Courier New', monospace",
"editor.fontWeight": "400",
"editor.fontLigatures": true,
"editor.fontSize": 14,
@thekomali
thekomali / .gitconfig
Created April 19, 2026 18:22
Git configurations
[user]
name = thekomali
email = 250548503+thekomali@users.noreply.github.com
[init]
defaultBranch = main
[help]
# if command is mistyped - auto correct and executes it (delay 10 deciseconds)
autocorrect = 10
@thekomali
thekomali / Microsoft.PowerShell_profile.ps1
Created April 19, 2026 17:28
Powershell Profile file
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# ;Enable execution of scripts for current user
# $profile ;Check the profile path
# test-path $profile ;Test if the profile is already created
# New-Item -Path $profile -Type File -Force
# ;Create a new powershell profile file
@thekomali
thekomali / bashrc
Created April 19, 2026 17:22
Bash Configuration File
# Custom Prompt
export PS1='\[\e[0;32m\][\[\e[1;32m\]\u@\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0;32m\]]\[\e[1;36m\]\\$ \[\e[0m\]'
# System Aliases
alias l='ls -CF --color=auto'
alias ll='ls -lh'
alias la='ls -lAh'
alias rm='rm -i'
@thekomali
thekomali / compilation_stages.c
Created December 20, 2025 12:45
gcc_compiler_flags
// COMPILATION STAGES //
-E -S -c
file.c --> PREPROCESSOR --> COMPILER --> ASSEMBLER --> LINKER --> a.out
(file.i) (file.s) (file.o) |
|
library
(*.a or *.lib - static lib)
(*.so or .dll - dynamic lib)
*.i - (text) preprocessed source code (source code expanded)