Skip to content

Instantly share code, notes, and snippets.

@AlkindiX
Forked from haavard/LICENSE
Created May 4, 2019 14:15

Revisions

  1. @haavard haavard revised this gist Jul 17, 2017. No changes.
  2. @haavard haavard revised this gist Jul 17, 2017. 1 changed file with 19 additions and 6 deletions.
    25 changes: 19 additions & 6 deletions alfa.latex
    Original file line number Diff line number Diff line change
    @@ -32,11 +32,18 @@
    \vspace{0.5em}

    \def\arraystretch{1.5} % increase vertical table size
    \begin{tabularx}{\textwidth}{|llllX|}
    \begin{tabularx}{\textwidth}{|lllX|}
    \hline
    \multicolumn{5}{|l|}{\textbf{What emotions were going through your head upon fucking up?} (check all that apply)} \\ \hline
    \(\square\) Apathy & \(\square\) Nerdrage & \(\square\) Wah wah wah & \(\square\) Amplified IRC elitism & \(\square\) Desire to install Ubuntu \\
    \multicolumn{5}{|l|}{\(\square\) Other (please specify): \dotfill} \\ \hline
    \multicolumn{4}{|l|}{\textbf{What emotions were going through your head upon fucking up?} (check all that apply)} \\ \hline
    \(\square\) Panic &
    \(\square\) Remorse &
    \(\square\) Amplified IRC elitism &
    \(\square\) Fear, uncertainty and doubt \\

    \(\square\) Nerdrage &
    \(\square\) Wah wah wah &
    \(\square\) Desire to install Ubuntu &
    \(\square\) Other (please specify): \dotfill \\ \hline
    \end{tabularx}

    \vspace{0.5em}
    @@ -87,8 +94,14 @@
    \begin{tabularx}{\textwidth}{|lllX|}
    \hline
    \multicolumn{4}{|l|}{\textbf{What have you tried so far to remedy your fuck-up?} (check all that apply)} \\ \hline
    \(\square\) \texttt{pacman -Syu} & \(\square\) Rebooting & \(\square\) Reinstalling Arch Linux & \(\square\) Installing Gentoo \\
    \(\square\) Crying & \(\square\) Crying in IRC & \multicolumn{2}{l|}{\(\square\) Other (please specify): \dotfill} \\ \hline
    \(\square\) \texttt{pacman -Syu} &
    \(\square\) Rebooting &
    \(\square\) Reinstalling Arch Linux &
    \(\square\) Installing Gentoo \\

    \(\square\) Crying &
    \(\square\) Crying in IRC &
    \multicolumn{2}{l|}{\(\square\) Other (please specify): \dotfill} \\ \hline
    \end{tabularx}

    \vspace*{\fill}
  3. @haavard haavard revised this gist Jun 6, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Makefile
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,4 @@ alfa.png: alfa.pdf
    clean: alfa.latex
    latexmk -CA $<

    .PHONY: all clean alfa.pdf alfa.png
    .PHONY: all clean alfa.pdf
  4. @haavard haavard revised this gist Jun 6, 2017. No changes.
  5. @haavard haavard created this gist Jun 6, 2017.
    12 changes: 12 additions & 0 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    all: alfa.pdf

    alfa.pdf: alfa.latex
    latexmk -pdf $<

    alfa.png: alfa.pdf
    convert -density 150 -flatten $< $@

    clean: alfa.latex
    latexmk -CA $<

    .PHONY: all clean alfa.pdf alfa.png
    99 changes: 99 additions & 0 deletions alfa.latex
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,99 @@
    \documentclass{article}

    \usepackage{graphicx} % for SVG logo
    \usepackage{tabularx} % for tables
    \usepackage{amssymb} % \square
    \usepackage{enumitem} % itemize
    \usepackage{calc} % calculating sizes
    \usepackage[margin=1in,top=0.5in]{geometry} % reduce margins
    \usepackage[pdftex, pdfauthor={Håvard Pettersson}, % set pdf metadata
    pdftitle={Arch Linux Fuck-up Assessment Form}]{hyperref}

    \renewcommand{\familydefault}{\sfdefault} % sans serif
    \pagenumbering{gobble} % no page numbers
    \setlength{\parindent}{0pt} % disable paragraph indent

    \def\svgwidth{0.6\columnwidth}
    \title{\input{arch-logo.pdf_tex}\hspace{-0.39\columnwidth}Fuck-up Assessment Form}

    \author{}
    \date{\vspace{-3.5em}}

    \begin{document}
    \maketitle

    \begin{center}
    \texttt{<@phrik> Welcome to \#archlinux, tell us how you fucked up.}
    \end{center}

    \vspace{1em}
    \textbf{IRC nickname:} \dotfill
    \ \textbf{Date and time of fuck-up:} \dotfill
    \vspace{0.5em}

    \def\arraystretch{1.5} % increase vertical table size
    \begin{tabularx}{\textwidth}{|llllX|}
    \hline
    \multicolumn{5}{|l|}{\textbf{What emotions were going through your head upon fucking up?} (check all that apply)} \\ \hline
    \(\square\) Apathy & \(\square\) Nerdrage & \(\square\) Wah wah wah & \(\square\) Amplified IRC elitism & \(\square\) Desire to install Ubuntu \\
    \multicolumn{5}{|l|}{\(\square\) Other (please specify): \dotfill} \\ \hline
    \end{tabularx}

    \vspace{0.5em}

    % there's probably a way easier method to align the two
    % "I (didn't) listen(ed) to" points but this works
    \newlength{\listenedwidth}
    \newlength{\didntlistenwidth}
    \settowidth{\listenedwidth}{I listened to}
    \settowidth{\didntlistenwidth}{I didn't listen to}

    \begin{tabularx}{\textwidth}{|X|}
    \hline
    \textbf{What initially caused your fuck-up to occur?} (check all that apply) \\ \hline
    \vspace{-8pt}
    \begin{enumerate}[label={\(\square\)},noitemsep,topsep=0pt,leftmargin=*]
    \item systemd
    \item \texttt{pacman -Sy <package>}
    \item \texttt{pacman -S --force <package>}
    \item The AUR
    \item I used yaourt
    \item I installed \dotfill (packages)
    \item I ran \texttt{dd} and now my computer won't boot
    \item I didn't look it up on the Arch Wiki
    \item I looked it up on the Debian Wiki
    \item Allan broke it
    \item I tried deleting a file named {\raise.17ex\hbox{\(\sim\)}}
    \item My root partition is btrfs
    \item I used an installation script
    \item I forgot the root password
    \item I saved the root password in a text file only readable by root
    \item I copy-pasted commands from an abandoned online discussion forum
    \item I tried setting up a printer and now lp0 is on fire
    \item I couldn't find \texttt{\#archlinux}
    \item I took \texttt{\#archlinux-offtopic} seriously
    \item I listened to \makebox[7em+\didntlistenwidth-\listenedwidth]{\dotfill} (IRC nick)
    \item I didn't listen to \makebox[7em]{\dotfill} (IRC nick)
    \item I tried to be funny in IRC and got banned
    \item I put my swap file in \texttt{/tmp}
    \item I installed LUKS with a detached header and my mom washed the pants with the USB stick in them
    \item I don't know, but it wasn't my fault
    \item Other (please specify): \dotfill \vspace*{-\baselineskip}
    \end{enumerate} \\ \hline
    \end{tabularx}

    \vspace{0.5em}

    \begin{tabularx}{\textwidth}{|lllX|}
    \hline
    \multicolumn{4}{|l|}{\textbf{What have you tried so far to remedy your fuck-up?} (check all that apply)} \\ \hline
    \(\square\) \texttt{pacman -Syu} & \(\square\) Rebooting & \(\square\) Reinstalling Arch Linux & \(\square\) Installing Gentoo \\
    \(\square\) Crying & \(\square\) Crying in IRC & \multicolumn{2}{l|}{\(\square\) Other (please specify): \dotfill} \\ \hline
    \end{tabularx}

    \vspace*{\fill}
    \begin{center}
    Please return completed form to \texttt{/dev/null} in order for your fuck-up to be assessed by a professional.
    \end{center}

    \end{document}
    Binary file added arch-logo.pdf
    Binary file not shown.
    54 changes: 54 additions & 0 deletions arch-logo.pdf_tex
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,54 @@
    %% Creator: Inkscape inkscape 0.92.1, www.inkscape.org
    %% PDF/EPS/PS + LaTeX output extension by Johan Engelen, 2010
    %% Accompanies image file 'arch-logo.pdf' (pdf, eps, ps)
    %%
    %% To include the image in your LaTeX document, write
    %% \input{<filename>.pdf_tex}
    %% instead of
    %% \includegraphics{<filename>.pdf}
    %% To scale the image, write
    %% \def\svgwidth{<desired width>}
    %% \input{<filename>.pdf_tex}
    %% instead of
    %% \includegraphics[width=<desired width>]{<filename>.pdf}
    %%
    %% Images with a different path to the parent latex file can
    %% be accessed with the `import' package (which may need to be
    %% installed) using
    %% \usepackage{import}
    %% in the preamble, and then including the image with
    %% \import{<path to file>}{<filename>.pdf_tex}
    %% Alternatively, one can specify
    %% \graphicspath{{<path to file>/}}
    %%
    %% For more information, please see info/svg-inkscape on CTAN:
    %% http://tug.ctan.org/tex-archive/info/svg-inkscape
    %%
    \begingroup%
    \makeatletter%
    \providecommand\color[2][]{%
    \errmessage{(Inkscape) Color is used for the text in Inkscape, but the package 'color.sty' is not loaded}%
    \renewcommand\color[2][]{}%
    }%
    \providecommand\transparent[1]{%
    \errmessage{(Inkscape) Transparency is used (non-zero) for the text in Inkscape, but the package 'transparent.sty' is not loaded}%
    \renewcommand\transparent[1]{}%
    }%
    \providecommand\rotatebox[2]{#2}%
    \ifx\svgwidth\undefined%
    \setlength{\unitlength}{423.71735817bp}%
    \ifx\svgscale\undefined%
    \relax%
    \else%
    \setlength{\unitlength}{\unitlength * \real{\svgscale}}%
    \fi%
    \else%
    \setlength{\unitlength}{\svgwidth}%
    \fi%
    \global\let\svgwidth\undefined%
    \global\let\svgscale\undefined%
    \makeatother%
    \begin{picture}(1,0.29415983)%
    \put(0,0){\includegraphics[width=\unitlength,page=1]{arch-logo.pdf}}%
    \end{picture}%
    \endgroup%