view · edit · sidebar · attach · print · history

Wiki style template

Reference


Snippets

Commandline

CODE:

>>color=white white-space:pre-wrap bgcolor=black padding="9px" border="4px solid gray"<<$ ping -c 3 www.gentoo.org
>><<

STYLE:

$ ping -c 3 www.gentoo.org

or

CODE:

%apply=pre white-space:pre-wrap bgcolor=black padding="9px" border="4px solid gray" color=white% [@
% ping -c 3 www.gentoo.org
\@\]

STYLE:

% ping -c 3 www.gentoo.org

Config file

CODE:

%define=box block bgcolor=lightgray border="2px dotted black"%
%box% [@
# in my.cnf
general_log_file = /var/log/mysql/query.log
general_log      = 1
\@\]

STYLE:

# in my.cnf
general_log_file = /var/log/mysql/query.log
general_log      = 1

Log output

CODE:

%apply=pre white-space:pre-wrap font-style:italic border="2px solid gray"% [@
# query.log
12 Query     SELECT artobject_id, artgroup_id, url FROM artobjects WHERE artgroup_id = 'MOV' ORDER BY title DESC
12 Query     SELECT * FROM oneliner WHERE location='index'
\@\]

STYLE:

# query.log
12 Query     SELECT artobject_id, artgroup_id, url FROM artobjects WHERE artgroup_id = 'MOV' ORDER BY title DESC
12 Query     SELECT * FROM oneliner WHERE location='index'

File

CODE:

%apply=pre white-space:pre-wrap bgcolor=black padding="9px" border="none" color=lightgray% [@
class Foo
  def foo
  end
end
\@\]

STYLE:

class Foo
  def foo
  end
end

Joblog template

CODE:

! 00000000-to-do-of-today
%trail%<<|[[Index]]|>>
-----
!! Summary
* What I did

!! Commits / Patches / Pull Requests, Scripts
* [[#commit-hash]] [{commit|pull request}, project]

!! Index
* [[#title|Title]]

-----
!! [[#title]] Title
view · edit · sidebar · attach · print · history
Page last modified on August 02, 2016, at 08:19 PM