Skip to content
View unalivin's full-sized avatar

Organizations

@Sonix-Devs

Block or report unalivin

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
unalivin/README.md

Unalivin

Network and software engineer from Greece, focused on defensive security.

Lead developer at Sonix-Devs since May 2026, building open-source network tools, websites and the backend systems behind them. Available for freelance work.

use std::fmt::{self, Display, Formatter};

pub trait Label {
    fn label(&self) -> &str;
}

macro_rules! labelled {
    ($name:ident { $($variant:ident => $text:literal),+ $(,)? }) => {
        #[derive(Clone, Copy, Debug, PartialEq, Eq)]
        pub enum $name {
            $($variant),+
        }

        impl Label for $name {
            fn label(&self) -> &str {
                match self {
                    $(Self::$variant => $text),+
                }
            }
        }
    };
}

labelled!(Language {
    Rust => "Rust",
    Cpp => "C++",
    C => "C",
    Go => "Go",
    TypeScript => "TypeScript",
    Sql => "SQL",
});

labelled!(Discipline {
    NetworkMonitoring => "network monitoring",
    SecurityBaselines => "security baselines and audits",
    SupplyChainSecurity => "pipeline and supply chain security",
    NetworkAutomation => "network automation",
    DetectionAndResponse => "detection and incident response",
    Forensics => "analysis and forensics",
    BackendSystems => "backend systems",
});

labelled!(Engagement {
    Freelance => "freelance work",
    OpenSource => "open-source collaboration",
});

impl Label for &str {
    fn label(&self) -> &str {
        self
    }
}

struct List<'a, T>(&'a [T]);

impl<T: Label> Display for List<'_, T> {
    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
        let mut items = self.0.iter();
        if let Some(first) = items.next() {
            f.write_str(first.label())?;
            for item in items {
                write!(f, ", {}", item.label())?;
            }
        }
        Ok(())
    }
}

#[derive(Clone, Copy, Debug)]
pub struct YearMonth {
    year: u16,
    month: u8,
}

impl YearMonth {
    const fn new(year: u16, month: u8) -> Self {
        assert!(month >= 1 && month <= 12, "month out of range");
        Self { year, month }
    }
}

impl Display for YearMonth {
    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
        write!(f, "{}-{:02}", self.year, self.month)
    }
}

#[derive(Clone, Copy, Debug)]
pub struct Position {
    title: &'static str,
    organization: &'static str,
    since: YearMonth,
}

pub struct Engineer {
    name: &'static str,
    location: &'static str,
    position: Position,
    languages: &'static [Language],
    disciplines: &'static [Discipline],
    infrastructure: &'static [&'static str],
    open_to: &'static [Engagement],
}

pub const UNALIVIN: Engineer = Engineer {
    name: "Unalivin",
    location: "Greece",
    position: Position {
        title: "Lead Developer",
        organization: "Sonix-Devs",
        since: YearMonth::new(2026, 5),
    },
    languages: &[
        Language::Rust,
        Language::Cpp,
        Language::C,
        Language::Go,
        Language::TypeScript,
        Language::Sql,
    ],
    disciplines: &[
        Discipline::NetworkMonitoring,
        Discipline::SecurityBaselines,
        Discipline::SupplyChainSecurity,
        Discipline::NetworkAutomation,
        Discipline::DetectionAndResponse,
        Discipline::Forensics,
        Discipline::BackendSystems,
    ],
    infrastructure: &["Linux", "Docker", "PostgreSQL", "Redis", "GitHub Actions"],
    open_to: &[Engagement::Freelance, Engagement::OpenSource],
};

const _: () = assert!(!UNALIVIN.languages.is_empty() && !UNALIVIN.disciplines.is_empty());

impl Display for Engineer {
    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
        let Position {
            title,
            organization,
            since,
        } = &self.position;
        writeln!(f, "{} ({})", self.name, self.location)?;
        writeln!(f, "{title} at {organization} since {since}")?;
        writeln!(f, "languages:   {}", List(self.languages))?;
        writeln!(f, "disciplines: {}", List(self.disciplines))?;
        writeln!(f, "stack:       {}", List(self.infrastructure))?;
        write!(f, "open to:     {}", List(self.open_to))
    }
}

fn main() {
    println!("{UNALIVIN}");
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn lists_are_comma_separated() {
        assert_eq!(
            List(&[Language::Rust, Language::Cpp]).to_string(),
            "Rust, C++"
        );
        assert_eq!(List::<Language>(&[]).to_string(), "");
    }

    #[test]
    fn dates_are_zero_padded() {
        assert_eq!(YearMonth::new(2026, 5).to_string(), "2026-05");
    }
}

Email · GitHub · X · Instagram · LeetCode

More at unalivin.pages.dev.

Popular repositories Loading

  1. argus-asm argus-asm Public

    Open source, local-first Attack Surface Management tool for defensive security teams.

    Go

  2. attackpath-visualizer attackpath-visualizer Public

    Go

  3. valenced-community-plugins valenced-community-plugins Public

    Forked from Valenced/valenced-community-plugins

    Central plugin repository for Valenced. A client modification for Discord mobile.

    TypeScript

  4. workspace workspace Public

  5. TypeScript TypeScript Public

    Forked from microsoft/TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    Go

  6. unalivin unalivin Public

    My personal developer portfolio

    TypeScript