\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{isantabarbara (isantabarbara)} \pdfinfo{ /Title (daily-shortcuts.pdf) /Creator (Cheatography) /Author (isantabarbara (isantabarbara)) /Subject (Daily Shortcuts Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{A3A3A3} \definecolor{LightBackground}{HTML}{F3F3F3} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Daily Shortcuts Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{isantabarbara (isantabarbara)} via \textcolor{DarkBackground}{\uline{cheatography.com/55251/cs/15304/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}isantabarbara (isantabarbara) \\ \uline{cheatography.com/isantabarbara} \\ \uline{\seqsplit{www}.google.com} \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 3rd May, 2018.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{x{1.84149 cm} x{3.13551 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Jupyter}} \tn % Row 0 \SetRowColor{LightBackground} ⏎ | Esc & Edit | Command \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Ctrl + ⏎ & run cell \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Alt + ⏎ & run cell, insert below \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Shift + ⏎ & run cell, select below \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Shift + Tab & Docstring \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} b | a & insert cell below | above \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} c | v & copy cell | paste \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} d,d & delete selected cell \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} Esc + f & Find \& Replace \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} Shift + Up | Down & Select multiple cells \tn % Row Count 11 (+ 2) % Row 10 \SetRowColor{LightBackground} Shift + m & Merge cells \tn % Row Count 12 (+ 1) % Row 11 \SetRowColor{white} Ctrl + Shift + - & Split cell at cursor \tn % Row Count 14 (+ 2) % Row 12 \SetRowColor{LightBackground} Esc + r + y & To Raw to Code (Clear output) \tn % Row Count 16 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.43873 cm} x{2.53827 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{PyCharm - Run \& Debugging}} \tn % Row 0 \SetRowColor{LightBackground} Shift + F10 & Run \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Shift + F9 & Debug \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} F8 | F7 & Step over | into \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Shift + F8 & Step out \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} F9 & Resume program \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} Alt + F9 & Run tu cursor \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{INTERACTIVE}}} \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} ⏎ & Execute one-line \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} Ctr + ⏎ & Execute selection \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} Ctr + Shift + ⏎ & Execute cell \#\%\% \tn % Row Count 10 (+ 1) % Row 10 \SetRowColor{LightBackground} Shift + ⏎ & Console multi-line \tn % Row Count 11 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.14011 cm} x{2.83689 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{PyCharm - Code}} \tn % Row 0 \SetRowColor{LightBackground} Ctr + / & Line comment \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Ctr + Shift + / & Block comment \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Ctr + F & Find \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Ctr + R & Replace \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} F3 | Shift + F3 & Find next | previous \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.69218 cm} x{3.28482 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Windows}} \tn % Row 0 \SetRowColor{LightBackground} ⊞ + Q & Search \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ⊞ + L & Lock Screen \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} ⊞ + D & Desktop \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Alt + Tab & Change Program \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Ctr + Alt + 1 & Cmd \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} Ctr + Alt + G & Git Bash \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} Ctr + Alt + A & Anaconda Prompt \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} Ctr + Alt + P & Screenshot Spinning \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} Cmd QuickMode & Right Click: copy \& paste \tn % Row Count 9 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.43873 cm} x{2.53827 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Git Bash}} \tn % Row 0 \SetRowColor{LightBackground} gs & git status \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} git add {[}file{]} | -A | . | -u & add file | All | new\&mod | mod\&del \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{git commit -m 'message'} \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{git push} \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} git init & Creates a .git folder \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} git remote {[}name{]} {[}URL{]} & Add a repository server \tn % Row Count 9 (+ 2) % Row 6 \SetRowColor{LightBackground} git remote origin URL & Default repository (like 'git clone') \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} git push -{}-all -{}-set-upstream origin & All branches point to origin \tn % Row Count 13 (+ 2) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{git reset -{}-hard origin/mybranch} \tn % Row Count 14 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.04057 cm} x{2.93643 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Bash Shell}} \tn % Row 0 \SetRowColor{LightBackground} man & manual \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{pwd} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{sudo} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} ps aux & processes currently running \tn % Row Count 5 (+ 2) % Row 4 \SetRowColor{LightBackground} top & top processes by CPU usg. \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{kill | shutdown} \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{history} \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{grep} \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{chmod rwx} \tn % Row Count 11 (+ 1) % Row 9 \SetRowColor{white} locate {\emph{file}}name* & find files \tn % Row Count 13 (+ 2) % Row 10 \SetRowColor{LightBackground} ls, cd, mv, mkdir, rm, rmdir & File manipulation \tn % Row Count 15 (+ 2) % Row 11 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{cat file1.txt file2.txt \textgreater{}\textgreater{} file3.txt} \tn % Row Count 16 (+ 1) % Row 12 \SetRowColor{LightBackground} wget & Downloads files \tn % Row Count 17 (+ 1) % Row 13 \SetRowColor{white} apt-get & install, remove, and configure software packages \tn % Row Count 20 (+ 3) % Row 14 \SetRowColor{LightBackground} ftp | sftp & Connects to a remote FTP server \tn % Row Count 22 (+ 2) % Row 15 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{./configure make make install.} \tn % Row Count 23 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{\seqsplit{https://www.makeuseof.com/tag/snap-spectacles-2-snapchat-addicts/}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.9908 cm} x{2.9862 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Vim}} \tn % Row 0 \SetRowColor{LightBackground} i (a) | Esc & Edit | Command \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} :q | :q! | :wq & close | w. forced | w. write \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} :w & write/saves \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} v | V | Ctr + Q & Select | Line | Columns \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} y | yy & Yank/copy selected | line \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} c | cc & Cut selected | line \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} p | P & Paste yanked content | BEFORE \tn % Row Count 10 (+ 2) % Row 7 \SetRowColor{white} d | dd | D & Del selected | line | until eol \tn % Row Count 12 (+ 2) % Row 8 \SetRowColor{LightBackground} o | O & New line (after | before) \tn % Row Count 14 (+ 2) % Row 9 \SetRowColor{white} 0\$jk | lh | web | HML & Line | Char | Words | Screen \tn % Row Count 16 (+ 2) % Row 10 \SetRowColor{LightBackground} gg | G & Top | Botton of file \tn % Row Count 17 (+ 1) % Row 11 \SetRowColor{white} u | Ctr+r & Undo | Redo \tn % Row Count 18 (+ 1) % Row 12 \SetRowColor{LightBackground} :s/xxx/yyy/ | :\%s/ & Replace xxx with yyy | Rep. All \tn % Row Count 20 (+ 2) % Row 13 \SetRowColor{white} /xxx & Search for xxx \tn % Row Count 21 (+ 1) % Row 14 \SetRowColor{LightBackground} n & Search next ocurrence \tn % Row Count 22 (+ 1) % Row 15 \SetRowColor{white} :e file & Open file \tn % Row Count 23 (+ 1) % Row 16 \SetRowColor{LightBackground} :split | :vsplit file & Open file new window \tn % Row Count 25 (+ 2) % Row 17 \SetRowColor{white} Ctr + w, Ctr + w & Move btw. windows \tn % Row Count 26 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{https://www.cs.oberlin.edu/\textasciitilde{}kuperman/help/vim/} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}