diff --git a/config.json b/config.json index c6c9600..2e1d4ca 100644 --- a/config.json +++ b/config.json @@ -7,7 +7,12 @@ "github": "rakuja", "linkedin": "danielegiachetto" }, - "email": "danielegiachetto1999@gmail.com", + "email": { + "domain": "danielegiachetto.com", + "work": "work", + "education": "education", + "personal": "personal" + }, "ps1_hostname": "danielegiachetto", "ps1_username": "visitor", "repo": "https://github.com/rakuja/mywebsite", diff --git a/src/utils/bin/api_commands.ts b/src/utils/bin/api_commands.ts index 94098f5..02957a3 100644 --- a/src/utils/bin/api_commands.ts +++ b/src/utils/bin/api_commands.ts @@ -4,7 +4,7 @@ import { getProjects } from '../api'; import { getReadme } from '../api'; import { getWeather } from '../api'; -export const projects = async (args: string[]): Promise => { +export const list_github_repos = async (args: string[]): Promise => { const projects = await getProjects(); return projects .map( diff --git a/src/utils/bin/commands.ts b/src/utils/bin/commands.ts index 8f296a8..d84f19a 100644 --- a/src/utils/bin/commands.ts +++ b/src/utils/bin/commands.ts @@ -14,11 +14,12 @@ export const help = async (args: string[]): Promise => { c += Object.keys(bin).sort()[i - 1] + ', '; } } - return `Welcome! Here are all the available commands: + return `This is an interactive website, in which you'll input commands with your keyboard to know more about myself. +Here are all the available commands: \n${c}\n [tab]: trigger completion. [ctrl+l]/clear: clear terminal.\n -Type 'summary' to display summary. +Type 'summary' to display a brief summary of my information. `; }; @@ -30,12 +31,14 @@ export const repo = async (args: string[]): Promise => { // About export const about = async (args: string[]): Promise => { - return `Hi, I am ${config.name}. + return `Hi, I am ${config.name} aka RakuJa. I am various things, but mainly a Software developer & Cybersecurity major. Welcome to my website! For more information about me, enter one of the following commands (without quotes!): 'summary' - short summary. 'resume' or 'cv' - my latest resume. -'readme' - my github readme.`; +'readme' - my github readme. +Otherwise, if you'd like to play around a bit, type 'help' to see the list of all available commands. +`; }; export const resume = async (args: string[]): Promise => { @@ -59,8 +62,11 @@ here are the ways you can support my work: // Contact export const email = async (args: string[]): Promise => { - window.open(`mailto:${config.email}`); - return `Opening mailto:${config.email}...`; + return `I have various email addresses, each divided by topic: +- Work +- University/Education +- Personal + `; }; export const github = async (args: string[]): Promise => { @@ -91,7 +97,7 @@ Rust`; }; export const cd = async (args: string[]): Promise => { - return `unfortunately, i cannot afford more directories. + return `Unfortunately, I cannot afford more directories. if you want to help, you can type 'donate' (Also, I won't allow path traversal attacks).`; }; @@ -99,6 +105,23 @@ export const date = async (args: string[]): Promise => { return new Date().toString(); }; +export const projects = async (args: string[]): Promise => { + return ` These are the most important and completed projects I've worked on: +- Multimedia to image conversion service built with Python for the Carbonio suite. +- Pathfinder 2E website, backend built with Rust. +- Image recognition software for low-end hardware without GPU. Written in Rust. +- (Documentation only) - Webcrawler and scraper for darkweb built with Python, celery, s3, etc. +`; +}; + +export const studies = async (args: string[]): Promise => { + return ` These are the most important and completed studies I've worked on: +- Bachelor thesis on the subject of webcrawling and scraping on the darkweb +- Notes for the space communication systems of the Aerospace course. +- A brief report of the work I've done in the Formula SAE team. +`; +}; + export const quote = async (args: string[]): Promise => { const quotes = [ "\"Victory belongs to the most persevering.\" - Napoleon Bonaparte", @@ -112,7 +135,8 @@ export const quote = async (args: string[]): Promise => { "\"I think, fundamentally, open source does tend to be more stable software. It's the right way to do things.\" - Linus Torvalds", "\"Fully secure systems don't exist today and they won't exist in the future.\" - Adi Shamir", "\"Information is the resolution of uncertainty.\" - Claude Shannon", - "\"Weak typing is a devil plaguing software correctness. It tempts you with ease of development, while secretly hiding undefined behaviour in the code.\" - Daniele Giachetto" + "\"Weak typing is a devil plaguing software correctness. It tempts you with ease of development, while secretly hiding undefined behaviour in the code.\" - Daniele Giachetto", + "\"Only sneaky people and impostors can oppose the progress of sciences and can discredit them, because they are the only ones to whom the sciences do harm.\" - Friedrich der Große" ]; var quote = quotes[quotes.length * Math.random() | 0]; return quote; @@ -150,8 +174,10 @@ export const banner = (args?: string[]): string => { ░░██████ ░░░░░░ +I'm ${config.name} aka RakuJa, a Software developer & Cybersecurity major. +This is an interactive website, in which you'll input commands with your keyboard to know more about myself. Type 'help' to see the list of available commands. -Type 'summary' to display summary. +Type 'summary' to display a brief summary. Type 'repo' or click here for the Github repository. Type 'cv' or 'resume' or click here for the updated resume. `; diff --git a/src/utils/bin/sumfetch.ts b/src/utils/bin/sumfetch.ts index 675a3fd..3a7f196 100644 --- a/src/utils/bin/sumfetch.ts +++ b/src/utils/bin/sumfetch.ts @@ -10,7 +10,7 @@ const sumfetch = async (args: string[]): Promise => { -/+sssssssssssssssso+: 爵 Github repo -:/+sssssssssssssssssso+/. ----------- .://osssssssssssssssssssso++-  CONTACT - .://+ssssssssssssssssssssssso++:  ${config.email} + .://+ssssssssssssssssssssssso++:  Work | Education | Personal .:///ossssssssssssssssssssssssso++:  github.com/${config.social.github} :////ssssssssssssssssssssssssssso+++.  linkedin.com/in/${config.social.linkedin} -////+ssssssssssssssssssssssssssso++++- -----------