Skip to content

Instantly share code, notes, and snippets.

View SpeCT's full-sized avatar

Iurii Proshchenko SpeCT

View GitHub Profile
This file has been truncated, but you can view the full file.
root@debian:~/kurento.gst-plugins-webrtc/test/examples# ./webrtc_http_server --gst-debug-level=5
0:00:00.003133723 2736 0x9205a00 DEBUG GST_MEMORY gstallocator.c:585:_priv_gst_memory_initialize: memory alignment: 7
0:00:00.007679423 2736 0x9205a00 DEBUG GST_MEMORY gstallocator.c:562:gst_default_allocator_init: init allocator 0x9208c48
0:00:00.008653816 2736 0x9205a00 DEBUG GST_MEMORY gstallocator.c:207:gst_allocator_register: registering allocator 0x9208c48 with name "SystemMemory"
0:00:00.010513132 2736 0x9205a00 DEBUG GST_ELEMENT_PADS gstelement.c:275:gst_element_base_class_init: type GstElement : factory (nil)
0:00:00.011591040 2736 0x9205a00 DEBUG GST_ELEMENT_PADS gstelement.c:275:gst_element_base_class_init: type GstBin : factory (nil)
0:00:00.012440526 2736 0x9205a00 DEBUG bin gstbin.c:471:gst_bin_class_init: creating bin thread pool
0:00:00.015548513 2736 0x9205a00 INFO GST_INIT gstmessage.c:121:_priv_gst_me
Index: libtransmission/torrent.c
===================================================================
--- libtransmission/torrent.c (revision 13343)
+++ libtransmission/torrent.c (working copy)
@@ -621,6 +621,20 @@
return priority;
}
+static tr_priority_t
+calculateRightPiecePriority( tr_piece_index_t p, const tr_info *inf,
Index: libtransmission/torrent.c
===================================================================
--- libtransmission/torrent.c (revision 13343)
+++ libtransmission/torrent.c (working copy)
@@ -621,6 +621,20 @@
return priority;
}
+static tr_priority_t
+calculateRightPiecePriority( tr_piece_index_t p, const tr_info *inf,
@SpeCT
SpeCT / pivotal-slideToolbars.user.js
Created May 28, 2012 12:54
Pivotal Tracker controlPanel hide/show switch
// ==UserScript==
// @match https://www.pivotaltracker.com/projects*
// @namespace pivotal-slideToolbars
// ==/UserScript==
var load,execute,loadAndExecute;load=function(a,b,c){var d;d=document.createElement("script"),d.setAttribute("src",a),b!=null&&d.addEventListener("load",b),c!=null&&d.addEventListener("error",c),document.body.appendChild(d);return d},execute=function(a){var b,c;typeof a=="function"?b="("+a+")();":b=a,c=document.createElement("script"),c.textContent=b,document.body.appendChild(c);return c},loadAndExecute=function(a,b){return load(a,function(){return execute(b)})};
// (c) http://stackoverflow.com/a/6834930/265839
loadAndExecute("//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js", function() {
jQuery.noConflict()
@SpeCT
SpeCT / content
Created September 13, 2011 14:00
_fti couch-lucene handler response error
Traceback (most recent call last):
File "/home/ubuntu/couchdb-lucene/target/couchdb-lucene-0.7-SNAPSHOT/tools/couchdb-external-hook.py", line 40, in main
resp = respond(res, req, opts.key)
File "/home/ubuntu/couchdb-lucene/target/couchdb-lucene-0.7-SNAPSHOT/tools/couchdb-external-hook.py", line 81, in respond
res.request(method, path, headers=req_headers)
File "/usr/lib/python2.6/httplib.py", line 914, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.6/httplib.py", line 951, in _send_request
self.endheaders()
File "/usr/lib/python2.6/httplib.py", line 908, in endheaders
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.1.min.js"%3E%3C/script%3E'))</script>
@SpeCT
SpeCT / CustomSearchView.java
Created May 2, 2011 20:58
CustomSearchView.java based on top of com.cloudant.indexers.MyCustomSearch (only get getAnalyzer modified
package com.faqserver.indexers;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
@SpeCT
SpeCT / gist:950718
Created May 1, 2011 18:33
CouchDB lucene indexing
{
"_id": "_design/lucene",
"_rev": "5-41fee80d386234a5601b493b0906c3f7",
"language": "java",
"views": {
"snowball": {
"map": {
"classname": "com.cloudant.indexers.CustomSearch",
"configure": {
"fields": [