Skip to content

Instantly share code, notes, and snippets.

View sawantuday's full-sized avatar

Uday R Sawant sawantuday

  • J.P. Morgan Chase & Co
  • India
View GitHub Profile
@sawantuday
sawantuday / tigase.log.0
Last active December 20, 2015 16:49
tigase.log.0 - check the lines starting after 10:02:16
2013-08-06 09:51:24 ConfiguratorAbstract.setupLogManager() CONFIG: DONE
2013-08-06 09:51:24 BasicComponent.loadScripts() CONFIG: Loading admin scripts for component: basic-conf.
2013-08-06 09:51:24 BasicComponent.loadScripts() CONFIG: basic-conf: Loading scripts from directory: scripts/admin
2013-08-06 09:51:24 BasicComponent.loadScripts() CONFIG: basic-conf: Loading scripts from directory: scripts/admin/basic-conf
2013-08-06 09:51:24 SSLContextContainer.init() CONFIG: Loading predefined server certificates
2013-08-06 09:51:24 SSLContextContainer.init() CONFIG: Loading server certificates from PEM directory: certs/
2013-08-06 09:51:24 SSLContextContainer.init() CONFIG: Loaded server certificate for domain: ip-172-31-25-166 from file: certs/ip-172-31-25-166.pem
2013-08-06 09:51:24 AuthRepositoryMDImpl.initRepository() INFO: Multi-domain repository pool initialized: jdbc:mysql://localhost/tigasedb?user=tigase&password=password, params: {}
20
@sawantuday
sawantuday / tigase-console.log
Created August 6, 2013 12:52
tigase-console.log
STOPPED Tue Aug 6 09:51:19 UTC 2013
STARTED Tigase Tue Aug 6 09:51:24 UTC 2013
2013-08-06 09:51:24 DNSResolver.<clinit>() WARNING: Resolving default host name took: 43
2013-08-06 09:51:24 ConfiguratorAbstract.parseArgs() CONFIG: Setting defaults: --property-file=etc/init.properties
2013-08-06 09:51:24 ConfiguratorAbstract.parseArgs() CONFIG: Loading initial properties from property file: etc/init.properties
2013-08-06 09:51:24 ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--user-db=mysql)
2013-08-06 09:51:24 ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--admins=admin@ip-172-31-25-166)
2013-08-06 09:51:24 ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--user-db-uri=jdbc:mysql://localhost/tigasedb?user=tigase&password=password)
2013-08-06 09:51:24 ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (config-type=--gen-config-def)
2013-08-06 09:51:24 Config
@sawantuday
sawantuday / pidgin debug log.txt
Created August 6, 2013 12:54
pidgin debug log
Pidgin Debug Log : 8/6/2013 6:23:55 PM
(18:23:17) account: Connecting to account uday@ip-172-31-25-166/.
(18:23:17) connection: Connecting. gc = 09FCBA08
(18:23:17) dnsquery: Performing DNS lookup for ec2-54-213-47-189.us-west-2.compute.amazonaws.com
(18:23:17) dnsquery: IP resolved for ec2-54-213-47-189.us-west-2.compute.amazonaws.com
(18:23:17) proxy: Attempting connection to 54.213.47.189
(18:23:17) proxy: Connecting to ec2-54-213-47-189.us-west-2.compute.amazonaws.com:80 with no proxy
(18:23:17) proxy: Connection in progress
(18:23:18) proxy: Connecting to ec2-54-213-47-189.us-west-2.compute.amazonaws.com:80.
(18:23:18) proxy: Connected to ec2-54-213-47-189.us-west-2.compute.amazonaws.com:80.
@sawantuday
sawantuday / strophe_connection_logs
Created August 6, 2013 12:56
Strophe connection logs
Strophe is connecting.
SENT: <body rid='5793724' xmlns='http://jabber.org/protocol/httpbind' to='ip-172-31-25-166' xml:lang='en' wait='60' hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>
RECV: <body xmlns:stream='http://etherx.jabber.org/streams' xmlns='http://jabber.org/protocol/httpbind' xmlns:xmpp='urn:xmpp:xbosh' ver='1.6' secure='true' hold='1' requests='2' inactivity='10' sid='a31d0e9f-6943-45b6-830e-c83ea400448d' xmpp:version='1.0' wait='30' maxpause='10' from='ip-172-31-25-166' ack='5793724' polling='10' authid='23538d95-7d0a-42bc-9975-79426af339b0'/>
SENT: <body rid='5793725' xmlns='http://jabber.org/protocol/httpbind' sid='a31d0e9f-6943-45b6-830e-c83ea400448d'/>
RECV: <body xmlns:stream='http://etherx.jabber.org/streams' xmlns='http://jabber.org/protocol/httpbind' xmlns:xmpp='urn:xmpp:xbosh' secure='true' xmpp:version='1.0' from='ip-172-31-25-166' ack='5793725'><stream:features xmlns='jabber:client'><ver xmlns='urn:xmpp:features:rosterver'/><star
@sawantuday
sawantuday / CCActiveRecord
Created November 13, 2013 14:53
Saving many to many relation
<?php
class CCActiveRecord extends CActiveRecord
{
/**
* @var Boolean when set to true we need to save many to many relation
*/
protected $MMRelation = false;
/**
* A multidimentional array holding relation data
@sawantuday
sawantuday / sysctl variables
Created July 20, 2015 02:56
Linux sysctl variables and their short explaination
# This is a copy of http://www.cyberciti.biz/files/linux-kernel/Documentation/networking/ip-sysctl.txt
# All rights remains with original link
/proc/sys/net/ipv4/* Variables:
ip_forward - BOOLEAN
0 - disabled (default)
not 0 - enabled
Forward Packets between interfaces.
@sawantuday
sawantuday / simple-php-crawler.php
Last active August 29, 2015 14:25 — forked from ScottPhillips/simple-php-crawler.php
Simple PHP Crawleer
<?php
function crawl_page($url, $depth = 5)
{
static $seen = array();
if (isset($seen[$url]) || $depth === 0) {
return;
}
$seen[$url] = true;
@sawantuday
sawantuday / bling.js
Last active August 29, 2015 14:26 — forked from paulirish/bling.js
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
@sawantuday
sawantuday / hideAdds.js
Created August 5, 2015 09:31
Few JS lines to hide adds displayed on page. Simply copy this code and paste it in Chrome or Firefox console. You can create simple Chrome plugin to execute this code each time page loads.
var script1 = $x('//script[contains(@src, "google")]');
var script2 = $x('//iframe')
var scripts = script1.concat(script2);
for(i in scripts){
console.log(scripts[i].parentNode.setAttribute('style', 'display:none'))
}
@sawantuday
sawantuday / plot.p
Last active August 29, 2015 14:27 — forked from garethrees/plot.p
Graphing apache benchmark results with gnuplot
# Output to a jpeg file
set terminal jpeg size 1280,720
# Set the aspect ratio of the graph
set size 1, 1
# The file to write to
set output "timeseries.jpg"
# The graph title