Here is a list of my favorite Trac-Hacks:
- Advanced Ticket Workflow
- Extends the list of operations for the ticket workflow
- Batch Motify
- Modify many tickets from a report
- Flexible Assign To
- Custom list of contacts built from a python file
- Ini Admin
- Graphical interface to the trac.ini file
- Ticket Guidelines
- Include a wiki page at the top of the new ticket page for passing information to all users
- Trac Custom Field Admin
- Interface for adding or removing custom fields to the ticket form
- Trac Date Field
- jQuery based date picker with lots of options in the Ini Admin
- Trac Drag Drop
- When using FireFox, dropping files onto the webpage displaying a ticket will process each file and have it attached to the ticket
- Trac Keyword Suggest
- Automatic drop down of the keywords with option to have limits placed
- Trac Private Tickets
- Extends the permissions module to limit users of viewing tickets
- Trac Theme Engine
- Allows for using various themes or making your own
WebTrends Analytics 8.x is a Windows based log analyzer to produce graphs and reports of your website traffic. As your users are generating reports, it is helpful to find out what they are doing. Here is how you can accomplish this task:
- Goto 'System Managment -> Role Settings'
- Click on UI Server
- Enable 'Use local settings'
- Place a checkbox in 'Enable Tomcat logging'
- The log files are located in: 'c:\Program Files\WebTrends\common\jakarta-tomcat\logs\tomcat*.log
To modify the tomcat logging settings:
- c:\Program Files\WebTrends\common\jakarta-tomcat\conf\server.xml
I really like the Trac project management software. Recently I have been using it very much and customizing it to fit my needs at work. In regards with the notification system, I found that the default format was not acceptable and a custom one was desired. I added the following code to the file "/usr/lib/python2.4/site-packages/trac/ticket/templates/ticket_notify_email.txt" to have a nice date in the template:
{% python
from genshi.builder import tag
from trac.util.datefmt import format_datetime
import time
def custom_time(value):
return format_datetime(t=value, format='%H:%M:%S', tzinfo=PST)
%}
${custom_time(ticket.time)}
My entire file looks like the following:
{% python
from genshi.builder import tag
from trac.util.datefmt import format_datetime
import time
def custom_time(value):
return format_datetime(t=value, format='%Y-%m-%d %H:%M:%S', tzinfo=PST)
%}
{% choose ticket.new %}\
{% when True %}\
On ${custom_time(ticket.time)} PST, a ticket with the summary of '$ticket.summary' was created by '$ticket.reporter' and assigned to $ticket.owner .
{% end %}\
{% otherwise %}\
{% if changes_body %}\
${_('Changes (by %(author)s):', author=change.author)}
$changes_body
{% end %}\
{% if changes_descr %}\
{% if not changes_body and not change.comment and change.author %}\
${_('Description changed by %(author)s:', author=change.author)}
{% end %}\
$changes_descr
--
{% end %}\
{% if change.comment %}\
${changes_body and _('Comment:') or _('Comment (by %(author)s):', author=change.author)}
$change.comment
{% end %}\
{% end %}\
{% end %}\
--
${_('Ticket URL: <%(link)s>', link=ticket.link)}
$project.name <${project.url or abs_href()}>
$project.descr
Tar
tar cvf backup.tar /etc
Gzip
gzip -9 backup.tar
Tar and Gzip together
tar cvf - /etc gzip -9c > backup.tar.gz
To untar
tar xvf backup.tar
To ungzip
gunzip backup.tar.gz
To Untar and Ungzip
gunzip -c backup.tar.gz | tar xvf -
To list contents of a tar.gz file
tar -ztvf file.tar.gz
To list contents of a zip file
unzip -l [filename].zip
I am not going to say too much about how to do this, but just provide an example of what you need to type in:
/opt/local/bin/gem install GEMNAME --http-proxy="http://proxy.server.com:80" -V