script for remove old dirs on windows

REM INICIO BAT
set qtde_dias = 2
forfiles -p “h:BackupSystextilOracle” /D -%qtde_dias% -c “cmd /c rd /s /q @path”
REM FIM BAT

 

from

http://www.ricardomartins.com.br/exluir-arquivos-com-mais-de-x-dias-de-idade/

 

 

configure trac on apache 2.2 with ldap authentication

# vi /etc/http/conf.d/trac.conf

<IfModule mod_python.c>
<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/trac
PythonOption TracUriRoot /trac
</Location>
<LocationMatch “/trac/[^/]+/login”>
AuthName “Trac”
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPUrl ldap://[SERVER]:389/OU=People,DC=siarcon,DC=com,DC=br?uid
require valid-user
</LocationMatch>
</IfModule>