\RequirePackage{snapshot} % stats of included files: $filename.dep

\documentclass[10pt,a4paper,ngerman]{article}
\usepackage[ngerman]{babel}

%%%%% Formatting and encoding %%%%%
% encoding
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

% page
\usepackage[columnsep=1.75cm,lmargin=1.75cm,rmargin=1.75cm,tmargin=2.5cm,bmargin=2.5cm]{geometry}
\setlength{\parindent}{0pt}

\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{}
\cfoot{}
\fancyhead[LE,RO]{\leftmark}
\fancyfoot[LE,RO]{\thepage}

% Use sans serif font.
\renewcommand*{\familydefault}{\sfdefault}

% change heading fontsizes.
\usepackage{sectsty}
\subsectionfont{\normalsize}
\subsubsectionfont{\small}

% \chapter hacks
% Create \Hide command (used for chapters)
\usepackage[explicit]{titlesec}
\newcommand*\Hide{\titleformat{\chapter}[display]{}{}{0pt}{\Huge}\titleformat{\part}{}{}{0pt}{}}

% inhibit creation of new double page on new chapter.
\usepackage{etoolbox}
\makeatletter
\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{}
\makeatother

% change heading margins.
\titlespacing*{\chapter}{0pt}{0pt}{-40pt}
\titlespacing*{\section}{0pt}{9pt}{3pt}
\titlespacing*{\subsection}{0pt}{6pt}{0pt}
\titlespacing*{\subsubsection}{0pt}{0pt}{0pt}

% make \paragraph do newlines
\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}
  {-.75ex \@plus -1ex \@minus -0.2ex}
  {0.01pt}
  {\normalfont\normalsize\bfseries}
}
\makeatother

%%% TOC changes %%%
% inhibit "Contents" Head in TOC
\makeatletter
\renewcommand\tableofcontents{\@starttoc{toc}}
\makeatother

%make toc consider Chapter and section only.
\setcounter{tocdepth}{2}

% disable chapter, section, ... numbering
\setcounter{secnumdepth}{-1}

%%% /TOC changes %%%

% make footnote numbering reset on every page.
\usepackage[hang,flushmargin,perpage]{footmisc}
%%%%% / Formatting %%%%%

% includable git commit info
\usepackage[missing=run\ build.sh\ or\ gitinfohook.sh]{gitinfo}

% Fürs "last generated" Datum
\usepackage[iso]{isodate}

% Image import stuff
\usepackage[absolute]{textpos}
\usepackage{graphicx}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}

% clickable references/links/...
\usepackage{hyperref}

% euro-sign
\usepackage{eurosym}
\DeclareUnicodeCharacter{20AC}{\euro}

% frames
\usepackage[framemethod=tikz]{mdframed}
\newmdenv[linecolor=red]{redframe}
\newmdenv[linecolor=black]{blackframe}

% quotes
\usepackage[babel,german=quotes]{csquotes}

\usepackage{listings}
\lstset{
	% typewriter font for lstlistings
	basicstyle=\ttfamily\small,
	literate=%
{Ö}{{\"O}}1
{Ä}{{\"A}}1
{Ü}{{\"U}}1
{ß}{{\ss}}2
{ü}{{\"u}}1
{ä}{{\"a}}1
{ö}{{\"o}}1
}


\usepackage{tabularx}

% schei encoding
\usepackage{amssymb,graphicx,stackengine,xcolor}
\def\ucr{\scalebox{1}{\stackinset{c}{-.75pt}{c}{0pt}{
  \textcolor{white}{\sffamily\bfseries\footnotesize ?}}{
  \rotatebox{35}{$\blacksquare$}}}}

% START DOCUMENT
\begin{document}\thispagestyle{empty}
\hspace{40pt}
\section*{Network Security - Advanced Topics (VU 389.160)}
\textbf{2015W}

\section*{CYBERLAB CYBERREPORT}
\textbf{Cyberministry of Cyberaffairs}

\section*{David Kaufmann}
\textbf{0700719\\\url{mailto:astra@ionic.at}}\\

\section*{Jan Vales}
\textbf{0726236\\\url{mailto:jan@jvales.net}}\\\\

\vspace{\fill}

\section*{Table of Contents}\begin{footnotesize}\tableofcontents\end{footnotesize}
\subsection*{Version}\begin{footnotesize}\url{http://cgit.ionic.at/lva/15ws/netsec2/}\\
git clone \url{ssh://git@git.ionic.at:22/lva/15ws/netsec2}\\
This is revision: \textbf{\gitAbbrevHash}. Document (.tex) compiled on: \textbf{\today}
\end{footnotesize}\vspace{\fill}\newpage


\section{Move on - nothing to see here!}
\noindent\includegraphics[width=0.8\columnwidth,keepaspectratio]{content/rickroll.jpg}
\input{content/easteregg.tex}\vspace{\fill}\newpage

\input{content/exercise1.tex}\vspace{\fill}\newpage
\input{content/exercise2.tex}\vspace{\fill}\newpage
\input{content/exercise3.tex}\vspace{\fill}\newpage

\end{document}
