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
import sys | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
from PyQt4.QtWebKit import * | |
html1 = """ | |
<html> | |
<body> |
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
=INFO REPORT==== 18-Oct-2010::12:52:27 === | |
Rolling persister log to "/var/lib/rabbitmq/mnesia/rabbit/rabbit_persister.LOG.previous" | |
=INFO REPORT==== 18-Oct-2010::12:52:27 === | |
started TCP Listener on 0.0.0.0:5672 | |
=INFO REPORT==== 18-Oct-2010::12:52:58 === | |
accepted TCP connection on 0.0.0.0:5672 from 192.168.122.1:49487 | |
=INFO REPORT==== 18-Oct-2010::12:52:58 === |
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
RESET | |
ATTEMPT ConnectionParameters(host = '192.168.122.19') | |
CONNECTED ConnectionParameters(host = '192.168.122.19') | |
RESET | |
RETRYING ConnectionParameters(host = '192.168.122.19') IN 1.043623993042309 SECONDS (0 attempts) | |
TXDISCONNECTED ConnectionParameters(host = '192.168.122.19') 0 | |
ATTEMPT ConnectionParameters(host = '192.168.122.19') | |
RETRYING ConnectionParameters(host = '192.168.122.19') IN 2.7387564120438985 SECONDS (1 attempts) | |
TXDISCONNECTED ConnectionParameters(host = '192.168.122.19') 1 | |
ATTEMPT ConnectionParameters(host = '192.168.122.19') |
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
import sys | |
from pika import ConnectionParameters, AsyncoreConnection, asyncore_loop | |
from pika.connection import SimpleReconnectionStrategy | |
if __name__ == '__main__': | |
args = sys.argv[1:] | |
host = args[0] | |
params = ConnectionParameters(host, heartbeat=0) | |
reconnect = SimpleReconnectionStrategy() |
NewerOlder