UNIX-history source codes on GitLab

I found that there are some people on GitHub that collect source codes from early UNIX ages, like first compilers, first shells, or PDP7-UNIX. Just to made them available in one place (slightly decentralize access to them) – I decided to create gitlab.com account `UNIX-history` for them. You can find there source codes from 1970, […]

Insulting sudo mode

Sudo has an easter-egg that’s disabled by default. It can insult you each time you provide incorrect password. Just like that: [sudo] password for agilob: You can’t come in. Our tiger has got flu [sudo] password for agilob: You do that again and see what happens… [sudo] password for agilob: You can’t get the wood, […]

Rust – get user’s home directory

fn main() { let mut path: PathBuf = get_app_dir(); path.push(".config"); path.set_file_name("properties"); path.set_extension("ini"); let str_path = path.to_str().unwrap(); if str_path.len() != 0 && path_exists(&path) { println!("Path {} exists", str_path); } }   fn get_app_dir() -> PathBuf { let dir: PathBuf = match env::home_dir() { Some(path) => PathBuf::from(path), None => PathBuf::from(""), }; dir }   pub fn path_exists(path: […]

[pl] Learn IT online – zestaw kursów do nauki informatyki

[pl] Gynvael Coldwind prowadzi swoje kursy na YT. RE, debugging, Asm, programowanie OO widziane z niska. Czekam na OpenGL. [pl] javastart.pl Kurs Javy, wstęp do programowania w Javie na Android i co nieco JEE. Autor ma dobre nawyki pisania w OO.