Skip to content

Instantly share code, notes, and snippets.

View Ddilibe's full-sized avatar
💪
Working Hard

Dilibe Ddilibe

💪
Working Hard
View GitHub Profile
@Ddilibe
Ddilibe / git_commit_analyzer.sh
Created February 28, 2026 16:57
GitHub Commit Analyzer
#!/bin/bash
# GitHub Commit Analyzer v2.0
# Usage: ./commits.sh "https://github.com/user/repo" [verb]
# Example: ./commits.sh "https://github.com/torvalds/linux" "fix"
url="$1"
verb="$2"
show_help() {
@Ddilibe
Ddilibe / dictionary.sh
Created February 16, 2026 23:36
A simple command-line dictionary tool that fetches definitions, synonyms, antonyms, examples, pronunciation, and part of speech for a given word using the Dictionary API (https://dictionaryapi.dev/).
#!/usr/bin/bash
## A simple command-line dictionary tool that fetches definitions, synonyms, antonyms, examples, pronunciation, and part of speech for a given word using the Dictionary API (https://dictionaryapi.dev/).
## Dependency: jq (for parsing JSON responses)
## mpg123 (for playing the sounds)
## curl (for making API requests)
version_number="0.0.1"
@Ddilibe
Ddilibe / starship.toml
Created January 5, 2026 03:52
configuration for starship
"$schema" = 'https://starship.rs/config-schema.json'
format = """
[░▒▓](#a3aed2)\
[ 󰻀 ](bg:#a3aed2 fg:#090c0c)\
[](bg:#769ff0 fg:#a3aed2)\
$directory\
[](fg:#769ff0 bg:#394260)\
$git_branch\
$git_status\
@Ddilibe
Ddilibe / .zshrc
Created January 3, 2026 15:30
Configuration for Zsh
# set the directory to store the zinit package manager and plugins
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
# Download zinit if it is not present
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
# Source or load zinit
source "${ZINIT_HOME}/zinit.zsh"
@Ddilibe
Ddilibe / kitty.conf
Last active January 3, 2026 15:32
Configurations for Kitty.conf
# vim:fileencoding=utf-8:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
# font_family monospace
# bold_font auto
#include <argp.h>
#include <stdlib.h>
#include <stdio.h>
static char doc[] = "A sample CLI tool";
static char args_doc[] = "[ARG1] [ARG2]";
static struct argp_option options[] = {
{"verbose", 'v', 0, 0, "Produce verbose output"},
{"output", 'o', "FILE", 0, "Output to FILE instead of standard output"},
@Ddilibe
Ddilibe / library.c
Last active August 26, 2024 21:46
[Chore]: Build a personal library management system with C, rust and typescript
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct book {
char *name;
char *isbn;
char *author;
int pages;
struct book *next_book;
@Ddilibe
Ddilibe / linkedlistinc.c
Created March 31, 2024 23:57
creating a single script for a linkedlist in C Programming Language
#include <stdio.h>
#include <stdlib.h>
typedef struct linkedlist {
struct linkedlist *head;
struct linkedlist *tail;
int value;
} linkedlist;
linkedlist returnhaed(linkedlist **bod);