\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{nostar4u} \pdfinfo{ /Title (stream-template.pdf) /Creator (Cheatography) /Author (nostar4u) /Subject (Stream Template 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}{A3338D} \definecolor{LightBackground}{HTML}{F9F2F7} \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{Stream Template Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{nostar4u} via \textcolor{DarkBackground}{\uline{cheatography.com/33798/cs/10544/}}} \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}nostar4u \\ \uline{cheatography.com/nostar4u} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 17th January, 2017.\\ Updated 17th January, 2017.\\ 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{tabularx}{17.67cm}{x{7.5915 cm} x{7.4228 cm} p{1.8557 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{STC Stream Template}} \tn % Row 0 \SetRowColor{LightBackground} Mediation Team 2017 © & \hspace*{0.02 cm}\rule{2.02cm}{6px} & 100 \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{2.3618 cm} x{7.5915 cm} x{6.9167 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Stream Names}} \tn % Row 0 \SetRowColor{LightBackground} * & \textless{}Company Id.\textgreater{}\_\textless{}Vendor Id.\textgreater{}\_\textless{}NE or Traffic Type\textgreater{}\_PROCESS\_STREAM & \seqsplit{STC\_CISCO\_EPC\_PROCESS\_STREAM} \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} * & \textless{}Company Id.\textgreater{}\_\textless{}Technology\textgreater{}\_\textless{}NE or Traffic Type\textgreater{}\_PROCESS\_STREAM & \seqsplit{STC\_EWSD\_IGW\_PROCESS\_STREAM} \tn % Row Count 8 (+ 4) % Row 2 \SetRowColor{LightBackground} {\bf{Reprocess}} & \textless{}Company Id.\textgreater{}\_\textless{}Technology\textgreater{}\_\textless{}NE or Traffic Type\textgreater{}\_\textless{}Suffix\textgreater{} & \seqsplit{STC\_EWSD\_IGW\_PROCESS\_STREAM\_REPROCESS} \tn % Row Count 12 (+ 4) % Row 3 \SetRowColor{white} {\bf{Reload}} & LOOKUP\_RELOAD\_\textless{}SERVER or TABLE\textgreater{} & \seqsplit{LOOKUP\_RELOAD\_IN\_SERVER} \tn % Row Count 14 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{Project}} & Stream Name\_\textless{}Project Name suffix\textgreater{} & \seqsplit{STC\_IN\_CCN\_CIP\_PROCESS\_STREAM\_BCS1} \tn % Row Count 17 (+ 3) % Row 5 \SetRowColor{white} {\bf{Test}} & Stream Name\_\textless{}Developer Suffix or TEST\textgreater{} & \seqsplit{STC\_IN\_CCN\_CIP\_PROCESS\_STREAM\_TEST} \tn % Row Count 20 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.3984 cm} x{7.0854 cm} x{4.3862 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Stream Parameters}} \tn % Row 0 \SetRowColor{LightBackground} * & Pascal & \seqsplit{LookupShmidDirectory} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{Environment Variables}} & All CAPS ,Separated by Underscore & \seqsplit{DATA\_SIZE},INPUT\_SIZE \tn % Row Count 5 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{4.8923 cm} x{7.2541 cm} x{4.7236 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Node Names}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Collectors}} & COLLECTOR\_\textless{}Collector ID. \textgreater{} & \seqsplit{COLLECTOR\_LAALK1} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{File Duplicate Checkers}} & FDC\_\textless{}Collector Id. or Decoder Id.\textgreater{}\_{[}Number{]} & FDC\_NODE\_2 \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{File Renamers}} & FILE\_RENAMER\_{[} Id.{]} & \seqsplit{FILE\_RENAMER\_ODS} \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} {\bf{File Enrichment}} & ENRICH\_\textless{}Destination\textgreater{}\_{[}Type(Premiuim,DP){]}\_{[}Type2{]} & \seqsplit{ENRICH\_Geneva\_Premiuim\_B2B} \tn % Row Count 10 (+ 3) % Row 4 \SetRowColor{LightBackground} {\bf{Decoders}} & DECODER\_{[}Type{]} & \seqsplit{DECODER\_WEB} \tn % Row Count 12 (+ 2) % Row 5 \SetRowColor{white} {\bf{Correlators}} & {[}PRE\_{]}CORRELATE\_{[}Id.{]} & CORRELATE \tn % Row Count 14 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{Aggregators}} & {[}PRE\_{]}AGGREGATE\_{[}Id.{]} & AGGREGATE \tn % Row Count 16 (+ 2) % Row 7 \SetRowColor{white} {\bf{Delivers}} & \textless{}DELIVER\textgreater{}\_{[}Traffic Type{]}\_\textless{}Destination\textgreater{} & \seqsplit{DELIVER\_PremiuimSMS\_ODS} \tn % Row Count 19 (+ 3) % Row 8 \SetRowColor{LightBackground} {\bf{Branching}} & BRANCH\_{[}Id.{]} & \seqsplit{BRANCH\_Billing} \tn % Row Count 21 (+ 2) % Row 9 \SetRowColor{white} {\bf{Business logic}} & BLN\_{[}Id.{]} & BLN \tn % Row Count 23 (+ 2) % Row 10 \SetRowColor{LightBackground} {\bf{Validation}} & VALIDATE\_{[}Id.{]} & VALIDATE \tn % Row Count 25 (+ 2) % Row 11 \SetRowColor{white} {\bf{Encoders}} & ENOCDER\_{[}Destination Id.{]} & \seqsplit{ENCODER\_BILLING\_B2B} \tn % Row Count 27 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{2.5305 cm} x{6.9167 cm} x{7.4228 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Node Configuration}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Comptel}} & EL\_CFG\_\textless{}Type Id.\textgreater{}\_\textless{}Node Id.\textgreater{} & \seqsplit{EL\_CFG\_MULTI\_FORMAT\_ENCODER} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{STC}} & STC\_CFG\_\textless{}Type Id.\textgreater{}\_\textless{}Node Id.\textgreater{} & \seqsplit{STC\_CFG\_HUAWEI\_MSC\_ICMS\_ENCODER} \tn % Row Count 4 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.2297 cm} x{6.0732 cm} x{5.5671 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Node Library}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Comptel}} & EL\_LIB\_\textless{}Id.\textgreater{} & EL\_LIB\_SFTP \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{STC}} & STC\_LIB\_\textless{}Id.\textgreater{} & STC\_LIB\_SFTP \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.2297 cm} x{6.0732 cm} x{5.5671 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Node Application}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Comptel}} & EL\_APP\_\textless{}Id.\textgreater{} & EL\_APP\_SFTP \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{STC}} & STC\_APP\_\textless{}Id.\textgreater{} & STC\_APP\_SFTP \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{p{1.687 cm} p{3.7114 cm} x{11.4716 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Parameters(Node ,Application ,Libraries)}} \tn % Row 0 \SetRowColor{LightBackground} * & Pascal & AuditBackupDirectory \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{2.8679 cm} x{9.6159 cm} x{4.3862 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Configuration Filenames}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Standard}} & As Existing & \seqsplit{output.xml},in.desc \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} * & Small letters app\_\textless{}Stream Id.\textgreater{}\_\textless{}Node Id\textgreater{} & \seqsplit{app\_hua\_ims\_aggr}.c \tn % Row Count 4 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{4.0488 cm} x{9.1098 cm} x{3.7114 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Output Links}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Collector}} & COLLECTED\_{[}Id.{]} & \seqsplit{COLLECTED} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{Decoder}} & DECODED\_{[}Id.{]} & \seqsplit{DECODED\_1} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{Aggregator}} & AGGR\_OUT\_{[}Id.{]} & \seqsplit{AGGR\_OUT\_EDW} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} {\bf{Encoder}} & ENOCDED\_\textless{}Downstream Id.\textgreater{}\_{[}Traffic type{]} & \seqsplit{ENCODED\_EDW\_PAYG} \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{BLN}} & BLN\_\textless{}Downstream Id. or Encoder Id.\textgreater{} & \seqsplit{BLN\_ICMS\_ENC} \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} {\bf{Enrichment}} & ENRICHED\_\textless{}Id.\textgreater{} & \seqsplit{ENRICHED\_ICMS} \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{Validate Node}} & VALIDATED\_{[}Id.{]} & \seqsplit{VALIDATED} \tn % Row Count 14 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{4.0488 cm} x{6.9167 cm} x{5.9045 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Node Datastorages}} \tn % Row 0 \SetRowColor{LightBackground} * & INVALID\_\textless{}Reason Id.\textgreater{} & \seqsplit{INVALID\_TIMESTAMP} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{Standard}} & CAPS & DEFAULT,INVALID \tn % Row Count 4 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.061 cm} x{7.4228 cm} x{4.3862 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{InMemory Datastorages}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Aggregation }} & \textless{}Stream Id.\textgreater{}\_\textless{}Node Id.(AGGR) \textgreater{} \_{[}Id. Number ,type {]} & \seqsplit{AXEMSC\_AGGR} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{File Duplicate Checker }} & \textless{}Stream Id.\textgreater{}\_FDC & \seqsplit{AXE\_MSC\_FDC} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{Enrichment }} & FileEnrichment\_{[}Stream Id.{]} & \seqsplit{FileEnrichmentDS\_HUA\_MSC} \tn % Row Count 9 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{2.6992 cm} x{10.122 cm} x{4.0488 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Lookup Tables}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Backend}} & CAPS,underscore separated,starts with LT & \seqsplit{LT\_SWITCH\_ID\_MSC} \tn % Row Count 2 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.5671 cm} x{8.0976 cm} x{3.2053 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{IDs}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Destination Id.}} & CAPS \textless{}Downstream Id.\textgreater{}\_\textless{}Id.\textgreater{} & \seqsplit{BILLING\_B2B} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{Source Id.}} & \textless{}Collector Id.\textgreater{} & 3MRJ1 \tn % Row Count 4 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{1.8557 cm} x{7.5915 cm} x{7.4228 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Directories}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Source}} & \textless{}BaseDirectory \textgreater{}/\textless{}StreamName\textgreater{}/input/\textless{}Collector Id.\textgreater{} & \seqsplit{/Collection/STC\_HUA\_MSC\_STREAM/input/COLLECTOR\_HUAGSD7} \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} {\bf{Target}} & \textless{}BaseDirectory\textgreater{}/\textless{}StreamName\textgreater{}/output/\textless{}Distributor Id.\textgreater{} & \seqsplit{/Delivery/STC\_SMSC\_STREAM\_NEW/output/DELIVER\_PreMed\_MONETA\_RA} \tn % Row Count 8 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Notation}} \tn \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{\{\{ac\}\} \newline % Row Count 1 (+ 1) Naming Convention rules and best practices to use in Development Envrironment \newline % Row Count 3 (+ 2) {\bf{\textless{}\textgreater{}}} Mandatory ,{\bf{{[}{]}}} Optional ,{\bf{Id.}} reasonable Identifier \newline % Row Count 5 (+ 2) {\bf{Pascal Casing}}The first letter in the identifier and the first letter of each subsequent concatenated word are capitalized. \newline % Row Count 8 (+ 3) {\bf{ * }} All elements except which have specific rule% Row Count 10 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \end{document}