Skip to content

Instantly share code, notes, and snippets.

View ibrahim-eshag's full-sized avatar

Ibrahim Eshag ibrahim-eshag

View GitHub Profile
@ibrahim-eshag
ibrahim-eshag / resources.md
Created August 15, 2026 21:29 — forked from cundi/resources.md
CS 306 - Linux/UNIX Programming
@ibrahim-eshag
ibrahim-eshag / audit.yml
Created September 25, 2025 21:19 — forked from LukeMathWalker/audit.yml
GitHub Actions - Rust setup
name: Security audit
on:
schedule:
- cron: '0 0 * * *'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
@ibrahim-eshag
ibrahim-eshag / rust_concepts.rs
Last active September 4, 2025 16:07
fundamental concepts in rust
// 1. Entry point: main function
fn main() {
// 2. Variables and mutability
let x = 5; // Immutable by default
let mut y = 10; // Mutable variable
// 3. Data types
let int_val: i32 = 42; // 32-bit signed integer
let float_val: f64 = 3.14; // 64-bit float
let is_active: bool = true; // Boolean
@ibrahim-eshag
ibrahim-eshag / rust_notes.rs
Last active September 4, 2025 14:43
Rust notes
// - Overflow:
fn interproduct(a: i32, b: i32, c: i32) -> i32 {
return a * b + b * c + c * a;
}
fn main() {
println!("result: {}", interproduct(120, 100, 248));
}