Skip to content

Commit

Permalink
Merge pull request #1 from klepp0/cover-letter
Browse files Browse the repository at this point in the history
Added cover letter
  • Loading branch information
klepp0 authored May 31, 2024
2 parents fa62b0c + 9de9800 commit 1ef332d
Show file tree
Hide file tree
Showing 12 changed files with 135 additions and 57 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build_pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ name: LaTeX Build and Deploy

on:
push:
branches:
- main
paths:
- '**/*.tex'
- "**/*.tex"
- ".github/workflows/*.yml"
pull_request:
branches:
- main
paths:
- '**/*.tex'

- "**/*.tex"
- ".github/workflows/*.yml"

jobs:
build:
Expand All @@ -34,8 +39,8 @@ jobs:
with:
name: compiled-pdf
path: |
resume.pdf
resume.png
src/main.pdf
main.png
deploy:
needs: build
Expand All @@ -55,6 +60,6 @@ jobs:
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add --force resume.pdf resume.png
git add --force src/main.pdf main.png
git commit -m 'chore: add compiled PDF and CV image [skip ci]'
git push
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*.pdf
*.png
src/main.pdf
main.png

# Created by https://www.toptal.com/developers/gitignore/api/latex,linux,macos,windows
# Edit at https://www.toptal.com/developers/gitignore?templates=latex,linux,macos,windows
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*

# Set the working directory
WORKDIR /workspace
WORKDIR /workspace/src

# Assume the LaTeX document to build is named main.tex, adjust as necessary
CMD pdflatex -jobname=resume -interaction=nonstopmode main.tex && \
pdflatex -jobname=resume -interaction=nonstopmode main.tex
CMD pdflatex -interaction=nonstopmode main.tex && \
pdflatex -interaction=nonstopmode main.tex
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ pdf:
docker run --rm -v "`pwd`:/workspace" latex-builder
@echo "LaTeX files compiled successfully."
@echo "Opening the generated PDF file..."
open --background resume.pdf
open --background src/main.pdf

# Convert the first page of the PDF to PNG
png:
@echo "Converting the first page of the PDF to PNG..."
docker run --rm -v "`pwd`:/workspace" -w /workspace latex-builder sh -c "pdftoppm -png -singlefile resume.pdf resume"
docker run --rm -v "`pwd`:/workspace" -w /workspace latex-builder sh -c "pdftoppm -png -singlefile src/main.pdf main"
@echo "PNG image of the first page of the PDF created successfully."

# Clean up the LaTeX build files
clean:
@echo "Cleaning up LaTeX build files..."
rm *.aux *.log *.out *.pdf
find . -type f \( -name "*.aux" -o -name "*.log" -o -name "*.out" -o -name "*.pdf" \) -exec rm -f {} +
@echo "LaTeX build files cleaned up successfully."

# Show help message
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Markdown Lint](https://github.com/klepp0/resume/actions/workflows/build_pdf.yml/badge.svg)

![Resume](./resume.png)
![Resume](./main.png)

Welcome to the ultimate LaTeX template for crafting the most epic 1-page resume for none other than the legendary John Doe! If you're here, you're probably looking to create a resume that screams "I mean business" while subtly whispering "I'm also pretty fun." Look no further, friend.

Expand Down
Binary file renamed resume.png → main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed resume.pdf
Binary file not shown.
68 changes: 68 additions & 0 deletions src/cover_letter.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
\newpage

\begin{minipage}[t][\textheight-1em]{\textwidth}
\vspace{0pt}

% Sender Information
\noindent\makebox[\textwidth]{
\begin{minipage}[t]{0.9\textwidth}
\centering
\textbf{\Huge John Doe}\\
\vspace{0.1em}
\href{tel:1234567889}{\faPhone \hspace{0.3em} (123) 456-7890} \hfill
\href{mailto:[email protected]}{\faEnvelope \hspace{0.3em} [email protected]} \hfill
\href{https://github.com/klepp0/resume}{\faLinkedinSquare \hspace{0.3em} john-doe} \hfill
\href{https://github.com/klepp0/resume}{\faGithub \hspace{0.3em} johndoe}
\end{minipage}
}
\vspace{0.3em}
\par\vspace{-1em}\noindent\rule{\linewidth}{0.3mm}\par

\vspace{2em}

\textit{\today}

\vspace{2em}

\textbf{Hiring Manager}\\
Awesome Tech Company\\
5678 Maple Avenue\\
Another City, Another Country\\

\vspace{2em}

Dear Hiring Manager,

\vspace{1em}

I hope this letter finds you with a cup of coffee in hand and a smile on your face, not drowning in an ocean of job applications. My name is John Doe, and I am thrilled to throw my hat in the ring for the Fullstack Developer position at Awesome Tech Company. As a connoisseur of both caffeine and code, I believe my unique skills can add some serious mojo to your team.

\vspace{1em}

Let me cut to the chase: I’m not your average developer. I’m the kind who can debug a gnarly code issue faster than a squirrel on espresso. At my last gig with Tech Company Inc., I averted more disasters than a superhero in a summer blockbuster, using my coding prowess and a touch of wizardry. Plus, I’ve developed a knack for surviving marathon meetings—trust me, it’s a superpower.

\vspace{1em}

When I'm not weaving magic with RESTful APIs or making third-party integrations look easy, you can find me pursuing my eclectic hobbies. Ever heard of extreme ironing? That's me, pressing shirts on mountain tops and ironing pants while skydiving. And in my downtime, I’m a competitive dog groomer, transforming pooches into show-stopping canines with the flair of a celebrity stylist.

\vspace{1em}

But wait, there’s more! I’m a die-hard Open Source enthusiast, spending my nights dreaming in pull requests and refactoring code like it’s a puzzle to be solved. One of my crowning achievements is a task management app built with React and Node.js, where I fortified the user authentication with JWT. It's basically Fort Knox for web apps, keeping the baddies at bay, one token at a time.

\vspace{1em}

I’m stoked about the prospect of bringing my passion for coding, my offbeat sense of humor, and my one-of-a-kind skill set to Awesome Tech Company. Thanks for considering my application. I can’t wait to chat about how I can help turn your innovative ideas into the next big thing.

\vspace{1em}

\begin{flushright}
Best regards,

\vspace{2em}

\includegraphics[height=5em]{media/signature.png}

\textbf{John Doe}
\end{flushright}

\end{minipage}
46 changes: 46 additions & 0 deletions src/main.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
\documentclass[a4paper,11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{enumitem}
\usepackage{lmodern} % Use Latin Modern fonts
\renewcommand{\familydefault}{\sfdefault} % Use a sans-serif font by default
\usepackage{fontawesome}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{calc}
\usepackage{hyperref}

% Adjust the page margins
\geometry{top=1cm, bottom=1cm, left=1.5cm, right=1.5cm}

% Custom settings
\setlength\parindent{0pt}
\setlength\parskip{0em}
\setlength{\columnsep}{1cm}
\setlist[itemize]{left=0pt, label=\textbullet, itemsep=0.0em, parsep=0pt}

% Custom section formatting
\newcommand{\sectiontitle}[1]{\vspace{1em}\textbf{\Large #1}\par\vspace{-1em}\noindent\rule{\linewidth}{0.3mm}\par\vspace{0.3em}}
\newcommand{\slashsep}{\hspace{3mm}/\hspace{3mm}}
\newcommand{\rating}[1]{
\begin{tikzpicture}
\foreach \i in {1,...,5} {
\ifnum\i>#1
\fill[gray!30] (\i*0.3,0) circle (0.1);
\else
\fill[black] (\i*0.3,0) circle (0.1);
\fi
}
\end{tikzpicture}
}

\begin{document}

\include{resume}

\include{cover_letter}

\end{document}
File renamed without changes
Binary file added src/media/signature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 1 addition & 42 deletions main.tex → src/resume.tex
Original file line number Diff line number Diff line change
@@ -1,43 +1,3 @@
\documentclass[a4paper,11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{enumitem}
\usepackage{lmodern} % Use Latin Modern fonts
\renewcommand{\familydefault}{\sfdefault} % Use a sans-serif font by default
\usepackage{fontawesome}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{calc}
\usepackage{hyperref}

% Adjust the page margins
\geometry{top=1cm, bottom=1cm, left=1.5cm, right=1.5cm}

% Custom settings
\setlength\parindent{0pt}
\setlength\parskip{0em}
\setlength{\columnsep}{1cm}
\setlist[itemize]{left=0pt, label=\textbullet, itemsep=0.0em, parsep=0pt}

% Custom section formatting
\newcommand{\sectiontitle}[1]{\vspace{1em}\textbf{\Large #1}\par\vspace{-1em}\noindent\rule{\linewidth}{0.3mm}\par\vspace{0.3em}}
\newcommand{\slashsep}{\hspace{3mm}/\hspace{3mm}}
\newcommand{\rating}[1]{
\begin{tikzpicture}
\foreach \i in {1,...,5} {
\ifnum\i>#1
\fill[gray!30] (\i*0.3,0) circle (0.1);
\else
\fill[black] (\i*0.3,0) circle (0.1);
\fi
}
\end{tikzpicture}
}

\begin{document}
\pagestyle{empty}

% First column (wide)
Expand All @@ -49,7 +9,7 @@
\begin{minipage}{0.3\linewidth}
\begin{tikzpicture}
\clip (0,0) circle(0.5\textwidth);
\node at (0,0) {\includegraphics[width=\textwidth]{johndoe.png}};
\node at (0,0) {\includegraphics[width=\textwidth]{media/johndoe.png}};
\end{tikzpicture}
\end{minipage}
\begin{minipage}{0.6\linewidth}
Expand Down Expand Up @@ -170,4 +130,3 @@
\end{flushright}
\end{minipage}

\end{document}

0 comments on commit 1ef332d

Please sign in to comment.