% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\documentclass[
]{article}
\usepackage{amsmath,amssymb}
\usepackage{iftex}
\ifPDFTeX
  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
  \usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
  \usepackage{unicode-math} % this also loads fontspec
  \defaultfontfeatures{Scale=MatchLowercase}
  \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
\usepackage{lmodern}
\ifPDFTeX\else
  % xetex/luatex font selection
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
  \usepackage[]{microtype}
  \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
  \IfFileExists{parskip.sty}{%
    \usepackage{parskip}
  }{% else
    \setlength{\parindent}{0pt}
    \setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
  \KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\ifLuaTeX
  \usepackage{selnolig}  % disable illegal ligatures
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same}
\hypersetup{
  pdftitle={sandbox-2},
  hidelinks,
  pdfcreator={LaTeX via pandoc}}

\title{sandbox-2}
\author{}
\date{}

\begin{document}
\maketitle

\hypertarget{sandbox-2}{%
\section{sandbox-2}\label{sandbox-2}}

\hypertarget{this-is-another-sandbox-for-new-users-to-test-functionality}{%
\section{This is another sandbox for new users to test
functionality}\label{this-is-another-sandbox-for-new-users-to-test-functionality}}

Mako template for city index

.. code-block:: mako

\textless\%inherit file=``base.mako'' /\textgreater{}

\textless div class=``grid=''15''\textgreater{}

There are \$\{count\} cities in \$\{state{[}`name'{]}.title()\} to
browse:

\textless\% letters = `abcdefghijklmnopqrstuvwxyz'\%\textgreater{}

\hypertarget{index}{}
\% for letter in letters: \% if cities{[}letter{]}: \$\{letter.upper()\}
\% else: \$\{letter.upper()\} \% endif \% endfor

\% for letter in letters: \% if cities{[}letter{]}:
\({letter.upper()}</a>  <ul>  % for city in cities[letter]:  <% city = city.lower() %>  <li><a href="/
\)\{state{[}`short'{]}.lower()\}/\({city.replace(' ','-')}">\)\{city.title()\}

\begin{verbatim}
    % endfor
    </ul>
% endif
\end{verbatim}

\% endfor

\hypertarget{breadcrumb-algorithm}{%
\section{breadcrumb algorithm}\label{breadcrumb-algorithm}}

.. code-block:: python

class Bread( object ): ``\,``\,'' Create a list of URL parts or crumbs
----------------------------------------
\textgreater\textgreater\textgreater{} from bread import Bread
\textgreater\textgreater\textgreater{} bread =
Bread(``http://www.foxhop.net/samsung/HL-T5087SA/red-LED-failure'')
\textgreater\textgreater\textgreater{} print bread.crumbs
\textgreater\textgreater\textgreater{} print bread.links

\begin{verbatim}
"""
def __init__( self, url=None ):
    if url: self.url = url # invoke url.setter
    else: self._url = url  # set _url to none

@property
def url( self ):
    return self._url

@url.setter
def url( self, url ):
    if url.startswith( 'http://' ): url = url[ 7: ] # remove http:// if exists
    if url.startswith( 'https://' ): url = url[ 8: ] # remove https:// if exists

    self._url = url.rstrip('/')
    self.crumbs = self._url.split('/')
    
@property
def links( self ):
    links = []
    count = 0
    for crumb in self.crumbs:
        string = ""
        for c in range( count + 1 ):
            string = string + self.crumbs[c] + '/'
        count += 1
        string = string.rstrip('/')
        links.append('<a href="http://' + string + '">' + crumb + '</a>')
        
    return links
\end{verbatim}

\textbf{EXAMPLE OUTPUT}

.. code-block:: python

{[}`foxhop.net', `os', `linux', `ubuntu'{]}

{[}`foxhop.net', `os', `linux', `ubuntu'{]}

\hypertarget{game-db-schema}{%
\section{Game DB Schema}\label{game-db-schema}}

.. code-block:: sql

CREATE TABLE game ( id VARCHAR(16) NOT NULL, user1\_id VARCHAR(16),
user2\_id VARCHAR(16), token CHAR(1), turn\_id VARCHAR(16), winner\_id
VARCHAR(16), createdate DATETIME, modifydate DATETIME, board BLOB NOT
NULL, PRIMARY KEY (id), FOREIGN KEY(user1\_id) REFERENCES user (id),
FOREIGN KEY(user2\_id) REFERENCES user (id), FOREIGN KEY(turn\_id)
REFERENCES user (id), FOREIGN KEY(winner\_id) REFERENCES user (id) )

CREATE TABLE user ( id VARCHAR(16) NOT NULL, name VARCHAR(32), email
VARCHAR(32), PRIMARY KEY (id) )

\hypertarget{game-db-schema2}{%
\section{Game DB Schema2}\label{game-db-schema2}}

.. code-block:: sql

CREATE TABLE game ( id VARCHAR(16) NOT NULL, token CHAR(1), turn\_id
VARCHAR(16), winner\_id VARCHAR(16), createdate DATETIME, modifydate
DATETIME, board BLOB NOT NULL, PRIMARY KEY (id), FOREIGN KEY(turn\_id)
REFERENCES user (id), FOREIGN KEY(winner\_id) REFERENCES user (id) )

CREATE TABLE user ( id VARCHAR(16) NOT NULL, name VARCHAR(32), email
VARCHAR(32), PRIMARY KEY (id) )

CREATE TABLE usergame( id VARCHAR(16) NOT NULL, user\_id VARCHAR(16),
game\_id VARCHAR(16), PRIMARY KEY (id) FOREIGN KEY(user\_id) REFERENCES
user (id), FOREIGN KEY(game\_id) REFERENCES game (id), )

\hypertarget{some-linux-commands-for-server-monitoring}{%
\section{Some linux commands for server
monitoring}\label{some-linux-commands-for-server-monitoring}}

http://www.shanghaiwebhosting.com/web-hosting-tips/a-few-useful-linux-ssh-commands-to-show-and-monitor-server-resources-memory-disk-usage

uptime

df

free or free -m

ps -ef

w

tload

like it ?

\hypertarget{test}{%
\section{test}\label{test}}

.. code-block:: bash

(env)\$ pserve development.ini

\hypertarget{foxhop-oct-08-2010-0458-pm}{%
\subsection{foxhop --- Oct 08, 2010 04:58
pm}\label{foxhop-oct-08-2010-0458-pm}}

test

\hypertarget{foxhop-oct-08-2010-0523-pm}{%
\subsection{foxhop --- Oct 08, 2010 05:23
pm}\label{foxhop-oct-08-2010-0523-pm}}

\textbf{Another test}

\hypertarget{foxhop-jun-02-2011-0159-pm}{%
\subsection{foxhop --- Jun 02, 2011 01:59
pm}\label{foxhop-jun-02-2011-0159-pm}}

This is pretty sweet I think, and yes, I like it.

\hypertarget{foxhop-jul-08-2011-0729-pm}{%
\subsection{foxhop --- Jul 08, 2011 07:29
pm}\label{foxhop-jul-08-2011-0729-pm}}

Thanks for that
\texttt{chooper\ \textless{}http://www.foxhop.net/account/chooper\textgreater{}}\_!
I'm sure this will come in handy for somebody.

\end{document}
