This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName mfd.claudinosa.com.br | |
DocumentRoot /var/www/django/portal_mfd/ | |
WSGIScriptAlias / /var/www/django/portal_mfd/portal_mfd/mfd.wsgi | |
Alias /static/admin/ /var/www/django/portal_mfd/portal_mfd/static/admin/ | |
Alias /static/ /var/www/django/portal_mfd/portal_mfd/static/ | |
<Directory /var/www/django/portal_mfd/portal_mfd> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Version 9.1 | |
log_destination = 'stderr' # Valid values are combinations of | |
logging_collector = all # Enable capturing of stderr and csvlog | |
log_directory = 'pg_log' # directory where log files are written, | |
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern, | |
log_file_mode = 0600 # creation mode for log files, | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- encoding: utf-8 -*- | |
""" test_paramiko.py - tests paramiko library on | |
localhost connection""" | |
import paramiko | |
paramiko.util.log_to_file('paramiko.log') | |
s = paramiko.SSHClient() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "teste.py", line 9, in <module> | |
ecf=base.Base() | |
File "/u1/caixa.manaus/pyECF/base.py", line 86, in __init__ | |
self._lib() | |
File "/u1/caixa.manaus/pyECF/base.py", line 100, in _lib | |
pickle.dump(self.iDrv, f) | |
File "/usr/lib/python2.6/pickle.py", line 1362, in dump | |
Pickler(file, protocol).dump(obj) | |
File "/usr/lib/python2.6/pickle.py", line 224, in dump |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat=`zimfiles +v | grep -iE " catalogo " | awk '{ print $5 }'` | |
cat_serv=`zimfiles +v | grep -iE " catalogo_serv " | awk '{ print $5 }'` | |
inode1=`ls -i $cat | awk '{ print $1 }'` | |
inode2=`ls -i $cat_serv | awk '{ print $1 }'` | |
if [ "$inode1" != "$inode2" ] # Use the "inode" file to compare with the actual file. | |
then | |
echo "Criando link do catalogo em `date`" >> $HOME/loglinkcat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- encoding: utf-8 -*- | |
from trac.core import Component, implements | |
from trac.ticket.api import ITicketManipulator, ITicketChangeListener | |
from trac.ticket.model import Ticket | |
class ValidComment(Component): | |
implements(ITicketManipulator, ITicketChangeListener) | |
def prepare_ticket(self, req, ticket, fields, actions): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- encoding: utf-8 -*- | |
import os | |
os.putenv('ORACLE_HOME', '/usr/lib/oracle/11.2/client64') | |
os.putenv('LD_LIBRARY_PATH', '/usr/lib/oracle/11.2/client64/lib') | |
os.environ['ORACLE_HOME'] = "/usr/lib/oracle/11.2/client64" | |
os.environ['LD_LIBRARY_PATH'] = "/usr/lib/oracle/11.2/client64/lib" | |
import cx_Oracle | |
con = cx_Oracle.connect('user/pass@IPADDRESS/orcl') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ticket_update_by_subject(self, subject): | |
""" | |
This list of Re: prefixes is probably incomplete. Taken from | |
wikipedia. Here is how the subject is matched | |
- Re: <subject> | |
- Re: (<Mail list label>:)+ <subject> | |
So we must have the last column | |
""" | |
self.logger.debug('function ticket_update_by_subject') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- encoding: utf-8 -*- | |
def ticket_update_by_subject(self, subject): | |
""" | |
This list of Re: prefixes is probably incomplete. Taken from | |
wikipedia. Here is how the subject is matched | |
- Re: <subject> | |
- Re: (<Mail list label>:)+ <subject> | |
So we must have the last column |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
found_id = None | |
if self.parameters.ticket_update and self.parameters.ticket_update_by_subject: | |
SUBJECT_RE = re.compile(r'^(?:(?:RE|AW|VS|SV|FW|FWD):\s*)+(.*)', re.IGNORECASE) | |
result = SUBJECT_RE.search(subject) | |
LOG = open("/tmp/regex.log", "a") | |
LOG.write("<<INICIO>>\n") | |
LOG.write("INICIO UPDATE_BY_SUBJECT: %s -> %s\n" % (subject.encode('utf8'), result)) | |
LOG.close() |