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.



