This file contains 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
--- pidgin-2.10.0.orig/libpurple/protocols/oscar/oscar.c.orig 2011-11-13 11:52:07.000000000 +0000 | |
+++ pidgin-2.10.0/libpurple/protocols/oscar/oscar.c 2011-11-13 11:45:04.000000000 +0000 | |
@@ -1605,6 +1605,21 @@ | |
tmp = g_strdup(args->msg); | |
/* | |
+ * If there is more than one <HTML> opening tag, skip to the last one | |
+ * This cleans up garbage like: <HTML><BODY><HTML><BODY BGCOLOR="#ffffff"><FONT>message</FONT></BODY></HTML> | |
+ */ | |
+ while (purple_markup_find_tag("html", tmp + 6, &start, &end, &attribs)) |
This file contains 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
<?php | |
if ($argc < 3) { | |
die("Usage: openfire2prosody.php INPUT_XML OUTPUT_PATH\n"); | |
} | |
$xml = simplexml_load_file($argv[1]); | |
foreach (array($argv[2], $argv[2] . '/accounts', $argv[2] . '/roster') as $path) { | |
if (!is_dir($path)) { |
This file contains 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
<?php | |
// quick and dirty argument parsing | |
foreach ($argv as $arg) { | |
if ($arg == '-f') { | |
define('FOLLOW', true); | |
} | |
if ($arg == '-h') { | |
define('HISTOGRAM', true); | |
} |
This file contains 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
--- gearmand.spec 2012-01-18 20:02:44.184424387 -0500 | |
+++ gearmand.spec 2012-01-18 20:42:24.221426555 -0500 | |
@@ -22,8 +22,8 @@ | |
%endif | |
Name: gearmand | |
-Version: 0.14 | |
-Release: 3%{?dist} | |
+Version: 0.27 | |
+Release: 1%{?dist} |
This file contains 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
extension=gearman.so |
This file contains 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
string.replace(/[+\-!(){}\[\]^"~*?:\\]|&&|\bAND\b|\|\||\bOR\b/ig, ' ').replace(/\s+/g, ' ').trim(); |
This file contains 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
<?php | |
class Parser | |
{ | |
public function parse($string) | |
{ | |
$this->string = trim($string); | |
$directives = array(); |
This file contains 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 java.lang.management.ManagementFactory; | |
import java.lang.management.OperatingSystemMXBean; | |
import java.lang.reflect.Method; | |
class Descriptors { | |
public static void main(String [ ] args) { | |
OperatingSystemMXBean osMxBean = ManagementFactory.getOperatingSystemMXBean(); | |
try { | |
Method getMaxFileDescriptorCountField = osMxBean.getClass().getDeclaredMethod("getMaxFileDescriptorCount"); | |
Method getOpenFileDescriptorCountField = osMxBean.getClass().getDeclaredMethod("getOpenFileDescriptorCount"); |
This file contains 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
[2013-04-24 00:59:53,539][WARN ][action.index ] [hostname] Failed to perform index on replica [logstash-2013.04.24][3] | |
org.elasticsearch.transport.RemoteTransportException: Failed to deserialize exception response from stream | |
Caused by: org.elasticsearch.transport.TransportSerializationException: Failed to deserialize exception response from stream | |
at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:171) | |
at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:125) | |
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) | |
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560) | |
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:787) | |
at org.elasticsear |
This file contains 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
[2013-04-28 19:52:08,944][WARN ][action.index ] [hostname] Failed to perform index on replica [logstash-2013.04.28][5] | |
org.elasticsearch.transport.RemoteTransportException: [otherhost][inet[/10.0.0.1:9300]][index/replica] | |
Caused by: org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: rejected execution of [org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler] | |
at org.elasticsearch.common.util.concurrent.EsAbortPolicy.rejectedExecution(EsAbortPolicy.java:35) | |
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821) | |
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372) | |
at org.elasticsearch.transport.netty.MessageChannelHandler.handleRequest(MessageChannelHandler.java:212) | |
at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:111) | |
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleCh |
OlderNewer