\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{vspereira} \pdfinfo{ /Title (bytebio.pdf) /Creator (Cheatography) /Author (vspereira) /Subject (Bytebio 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}{89B398} \definecolor{LightBackground}{HTML}{F7FAF8} \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{Bytebio Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{vspereira} via \textcolor{DarkBackground}{\uline{cheatography.com/19685/cs/2660/}}} \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}vspereira \\ \uline{cheatography.com/vspereira} \\ \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 12th May, 2016.\\ 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{3.2053 cm} x{8.0976 cm} x{5.5671 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Features}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{GENÉRICA}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{componente}} & {\bf{padrão}} & {\bf{exemplo}} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} label & BB - {[}funcionalidade{]} & BB - Notícias \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} nome de \seqsplit{máquina} & ft\_bb\_{[}funcionalidade{]} & \seqsplit{ft\_bb\_noticias} \tn % Row Count 8 (+ 3) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{ESPECÍFICA}}} \tn % Row Count 9 (+ 1) % Row 5 \SetRowColor{white} {\bf{componente}} & {\bf{padrão}} & {\bf{exemplo}} \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} label & {[}projeto{]} - {[}funcionalidade{]} & NECCT - Notícias \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} nome de \seqsplit{máquina} & ft\_bb\_{[}funcionalidade{]}\_{[}projeto{]} & \seqsplit{ft\_bb\_noticias\_necct} \tn % Row Count 16 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{Atenção:}} \newline - Não se embala menu já existente (ex. Menu Principal) na features, somente links de menu. A não ser que seja um novo menu (específico da feature).} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{3.8801 cm} x{3.7114 cm} x{9.2785 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Tipos de conteudo}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{componente}} & {\bf{padrão}} & {\bf{exemplo}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} label & {[}Tipo-conteudo{]} & Página Básica ({\emph{sempre no singular}}) \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} nome de máquina & {[}tipo-conteudo{]} & pagina\_basica \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{Atenção:}} \newline - Sempre apagar campo body \newline - Desabilitar exibição de autoria ({\emph{submitted}}) \newline - Fechar comentários \newline - Desmarcar opção "Promover à página principal" \newline - Caso multilingual, deixar obrigatório a seleção do idioma \newline - Definir {\emph{pattern}} de url (artigos/{[}title{]}) {\emph{Atenção para o plural}} \newline - Não há pattern para páginas básicas, formado pelo título na base do site (exemplo: /{[}title{]})} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{4.3862 cm} x{6.2419 cm} x{6.2419 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Fields}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{componente}} & {\bf{padrão}} & {\bf{exemplo}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} label & {[}nome-campo{]} & Telefone celular \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} nome de máquina & {[}tipo-conteudo{]}\_{[}nome-campo{]} & \seqsplit{artigo\_telefone\_cel} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} opção de ajuda (help text) & Sempre preencher e colocar ponto final, quando possível, colocar exemplo. & Insira o número de telefone celular. (Ex.: (xx) xxxxx-xxxx) \tn % Row Count 12 (+ 6) % Row 4 \SetRowColor{LightBackground} & & Insira as tags de notícias. Para utilizar mais de uma tag, separe-as por vírgula ",". (Ex.: esporte, política, economia) \tn % Row Count 21 (+ 9) % Row 5 \SetRowColor{white} caminho de arquivos & {[}tipo-conteúdo{]}(singular)/{[}tipo-arquivo{]}(plural) & \seqsplit{/artigo/arquivos/} \tn % Row Count 25 (+ 4) % Row 6 \SetRowColor{LightBackground} & & \seqsplit{/artigo/imagens/} \tn % Row Count 27 (+ 2) % Row 7 \SetRowColor{white} & & \seqsplit{/artigo/videos/} \tn % Row Count 29 (+ 2) % Row 8 \SetRowColor{LightBackground} campos de usuários & usuario\_{[}nome-campo{]} & \seqsplit{usuario\_nome\_completo} \tn % Row Count 31 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{Atenção:}} \newline - Sempre configurar o caminho dos arquivos \newline - Permissões: sempre setar as permissões ao criar um novo campo} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{4.2175 cm} x{6.2419 cm} x{6.4106 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Views}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{componente}} & {\bf{padrão}} & {\bf{exemplo}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} nome da view & {[}nome-feature{]} & noticias \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} nome do display & {[}tipo-display{]} - {[}título{]} & Bloco - Próximas notícias \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} & & Página - Próximas notícias \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} classes do display & {[}nome-display{]} {[}tipo-exibição{\bf{*}}{]} & \seqsplit{proximos-cursos} tabela \tn % Row Count 11 (+ 3) % Row 5 \SetRowColor{white} \seqsplit{Comportamento} sem resultado & Sempre preencher & Nenhum item encontrado \tn % Row Count 14 (+ 3) % Row 6 \SetRowColor{LightBackground} \seqsplit{Paginação} & Sempre usar ajax & \tn % Row Count 16 (+ 2) % Row 7 \SetRowColor{white} Filtros & Reparar na ordenação (performance) & \tn % Row Count 19 (+ 3) % Row 8 \SetRowColor{LightBackground} \seqsplit{Contadores} (header) & Sempre que possível inserir & Publicações (23), Número de inscritos: 34 \tn % Row Count 22 (+ 3) % Row 9 \SetRowColor{white} Path pattern & {[}nome-feature{]} & noticias \tn % Row Count 24 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{Atenção:}} \newline - Filtros expostos: \newline Habilitar botão Reset (texto do botão: "Redefinir") \newline Alterar texto do botão Apply: "Filtrar" \newline \newline {\bf{* Tipos de display para classes:}} \newline - Unformatted list / Order list - lista \newline - Table - tabela \newline - Slideshow - slideshow \newline - Grid - grade} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{3.0366 cm} x{7.2541 cm} x{6.5793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Image Style (imagecache)}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{componente}} & {\bf{padrão}} & {\bf{exemplo}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} label & {[}nome-seção{]} - {[}info{]} - {[}dimensões{]} & Home - Destaque Principal - 400x250 \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} nome de \seqsplit{máquina} & {[}nome-seção{]}\_{[}info{]} & \seqsplit{home\_destaque\_principal} \tn % Row Count 8 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{Atenção:}} \newline - Fazer um imagecache para cada seção. \newline - {\emph{Label:}} não adicionar px se for pixel, se for porcentagem, utilizar \%} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Idioma}} \tn \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{- Habilitar idioma Português como padrão \newline % Row Count 1 (+ 1) - Mover peso% Row Count 2 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{3.7114 cm} x{9.1098 cm} x{4.0488 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Flags}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{GLOBAL}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{componente}} & {\bf{padrão}} & {\bf{exemplo}} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} label & {[}ação{]} (sempre no infinitivo) & Revisar \seqsplit{Conteúdo} \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} nome de \seqsplit{máquina} & {[}ação{]} (sempre no infinitivo) & \seqsplit{revisar\_conteudo} \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{ESPECÍFICA}}} \tn % Row Count 8 (+ 1) % Row 5 \SetRowColor{white} {\bf{componente}} & {\bf{padrão}} & {\bf{exemplo}} \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} label & {[}tipo-entidade{]} - {[}ação{]}(sempre no infinitivo) & Trabalho - Revisar \tn % Row Count 13 (+ 3) % Row 7 \SetRowColor{white} nome de \seqsplit{máquina} & {[}tipo-entidade{]}\_{[}ação{]}(sempre no infinitivo) & \seqsplit{trabalho\_revisar} \tn % Row Count 16 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{Atenção:}} \newline - Sempre categorizar a flag.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{3.374 cm} x{8.2663 cm} x{5.2297 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Contextos}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{componente}} & {\bf{padrão}} & {\bf{exemplo}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Tag & {[}nome-feature{]} & Notícias \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} \seqsplit{Descrição} & {[}nome-feature{]} - {[}nome-display ou nome-bloco{]} & Notícias - Mais recentes \tn % Row Count 6 (+ 3) % Row 3 \SetRowColor{white} Nome de \seqsplit{máquina} & {[}nome-feature{]}\_{[}nome-display ou nome-bloco{]} & \seqsplit{noticias\_mais\_recentes} \tn % Row Count 9 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{Atenção:}} \newline - Sempre criar um contexto para cada bloco.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{4.2175 cm} x{7.4228 cm} x{5.2297 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Blocos}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{componente}} & {\bf{padrão}} & {\bf{exemplo}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} nome de máquina & {[}nome-feature{]}\_{[}nome-bloco{]} & \seqsplit{inscricao\_status} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{description} & {[}Nome-feature{]} - {[}Nome-bloco{]} & Inscrição - Status \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{3.374 cm} x{6.4106 cm} x{7.0854 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Panels}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{componente}} & {\bf{padrão}} & {\bf{exemplo}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} nome & {[}nome-feature{]}\_{[}funcionalidade{]} & Submissão - Revisão de trabalhos \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} nome de \seqsplit{máquina} & {[}nome-feature{]}\_{[}funcionalidade{]} & \seqsplit{submissao\_revisar\_trabalhos} \tn % Row Count 8 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{Atenção:}} \newline - Sempre lembrar de colocar o ID geral no painel (ex. \#home)} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Cadastro de usuario (redirecionamento)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{- Quando o usuário se cadastrar, redireciona para uma página de sucesso de cadastro. \newline % Row Count 2 (+ 2) - Quando o usuário logar, redireciona para o dashboard.% Row Count 4 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{{\bf{Atenção:}} \newline user pattern: usuarios/username} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Mensagens de sistema (messages)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{Desabilitar mensagens padrões e exibi-las somente em caso específicos (via Rules)% Row Count 2 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{3.5427 cm} x{9.1098 cm} x{4.2175 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Taxonomia}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{componente}} & {\bf{padrão}} & {\bf{exemplo}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} label & {[}Nome-feature{]} - {[}Vocabulário{]} & Notícias - Tags \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} nome de \seqsplit{máquina} & {[}nome-feature{]}\_{[}vocabulário{]} & \seqsplit{noticias\_tags} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} path pattern & {[}nome-feature{]}/{[}vocabulário{]}/{[}cat-title{]} & \seqsplit{noticias/tags/tag-1} \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Workflow de desenvolvimento}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{{\bf{Git}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{{\emph{Não possui site local}}} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{git clone url\_do\_git} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{{\emph{Possui local desatualizado}}} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{git status} \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{git fetch -{}-all} \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{git pull origin dev} \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{{\bf{Banco de Dados}}} \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{Faça um backup pelo Backup and Migrate do site em Produção Importe o arquivo do banco (por comando por byte, phpmyadmin, Backup and Migrate ou drush)} \tn % Row Count 12 (+ 4) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{{\bf{Files}}} \tn % Row Count 13 (+ 1) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{scp do site em Produção para seus /sites/default/files} \tn % Row Count 15 (+ 2) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{{\bf{Working...}}} \tn % Row Count 16 (+ 1) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{git add {[}arquivos modificados{]}} \tn % Row Count 17 (+ 1) % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{git commit -m "Comentário descritivo no infinitivo"} \tn % Row Count 19 (+ 2) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{git push origin dev (sempre enviando para a branch dev do repositório remoto)} \tn % Row Count 21 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{7.5988 cm} x{9.6712 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Comandos byte}} \tn % Row 0 \SetRowColor{LightBackground} lsft & Para listar todas as features \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} dl {[}nome-feature{]} & Para baixar uma feature do Byte2b e instalá-la no diretório custom \tn % Row Count 6 (+ 4) % Row 2 \SetRowColor{LightBackground} create {[}nome-feature{]} & Para subir sua feature no Byte2b \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} setp & Para executar chown e chmod automaticamente nas pastas (execute da raiz, ex.:/var/www/site1) \tn % Row Count 13 (+ 5) % Row 4 \SetRowColor{LightBackground} rename {[}nome-antigo{]} {[}nome-novo{]} & Para renomear uma feature previamente criada. Ex.: byte rename ft\_bb\_noticias ft\_bb\_novidades \tn % Row Count 18 (+ 5) % Row 5 \SetRowColor{white} backup & Para realizar um backup com a data atual \tn % Row Count 20 (+ 2) % Row 6 \SetRowColor{LightBackground} install {[}nome-site{]} & Para fazer uma instalação completa com os módulos padrões \tn % Row Count 23 (+ 3) % Row 7 \SetRowColor{white} starter {[}nome-site{]} & Para fazer uma instalação padrão básica \tn % Row Count 25 (+ 2) % Row 8 \SetRowColor{LightBackground} updatedb & Pareia o banco local com o da produção, sentido produção \textgreater{} local \tn % Row Count 29 (+ 4) % Row 9 \SetRowColor{white} updateme & Para fazer update automático do comando byte \tn % Row Count 32 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \end{document}