Skip to content

Instantly share code, notes, and snippets.

View sigsergv's full-sized avatar
💭
Single

Sergey Stolyarov sigsergv

💭
Single
  • Novosibirsk, Russia
View GitHub Profile
diff -r 7ccfc3c4195e Plugins/Purple Service/ESPurpleJabberAccount.m
--- a/Plugins/Purple Service/ESPurpleJabberAccount.m Mon May 26 13:34:36 2014 +0200
+++ b/Plugins/Purple Service/ESPurpleJabberAccount.m Mon Jun 23 23:50:02 2014 +0700
@@ -428,7 +428,7 @@
if (!jabberHtmlEncoder) {
jabberHtmlEncoder = [[AIHTMLDecoder alloc] init];
[jabberHtmlEncoder setIncludesHeaders:NO];
- [jabberHtmlEncoder setIncludesFontTags:YES];
+ [jabberHtmlEncoder setIncludesFontTags:NO];
[jabberHtmlEncoder setClosesFontTags:YES];
if params is not None:
if isinstance(params, dict):
for key, value in self._process_params_dict(params).items():
stmt = stmt.replace(key, value)
elif isinstance(params, (list, tuple)):
psub = _ParamSubstitutor(self._process_params(params))
stmt = RE_PY_PARAM.sub(psub, stmt)
if psub.remaining != 0:
raise errors.ProgrammingError(
"Not all parameters were used in the SQL statement")
#!/usr/bin/python
# -*- coding: utf-8 -*-
# This code is in public domain
import httplib2
import urllib
import random
from xml.etree.ElementTree import Element, SubElement, Comment, tostring
from xml.dom import minidom
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.11-2-amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.12
Device Model: ST3500410AS
Serial Number: 5VM0HMH0
LU WWN Device Id: 5 000c50 013a064fd
Firmware Version: CC34
User Capacity: 500,107,862,016 bytes [500 GB]
# lxc-checkconfig
Kernel configuration not found at /proc/config.gz; searching...
Kernel configuration found at /boot/config-3.11-2-amd64
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: missing
Network namespace: enabled
@sigsergv
sigsergv / gist:7517560
Created November 17, 2013 20:00
Setting 1 second lifetime for ssh-agent passphrase
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.openbsd.ssh-agent</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/ssh-agent</string>
<string>-l</string>
@sigsergv
sigsergv / fonts.conf
Created September 7, 2013 15:36
fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
<edit mode="assign" name="embeddedbitmap">
<bool>false</bool>
</edit>
@sigsergv
sigsergv / gist:6396252
Created August 31, 2013 04:42
dia crash
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
*** Error in `dia-normal': double free or corruption (!prev): 0x08f9fe80 ***
======= Backtrace: =========
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x75e42)[0xb692de42]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x76b80)[0xb692eb80]
/lib/i386-linux-gnu/libglib-2.0.so.0(+0x4bb8b)[0xb6ccab8b]
/lib/i386-linux-gnu/libglib-2.0.so.0(g_free+0x20)[0xb6ccb2d0]
/usr/lib/i386-linux-gnu/dia/libdb_objects.so(table_dialog_free+0x2c)[0xb5dcc47c]
/usr/lib/i386-linux-gnu/dia/libdb_objects.so(+0x4b49)[0xb5dc8b49]
/usr/lib/i386-linux-gnu/dia/libdia.so(destroy_object_list+0x2a)[0xb7768f1a]
@sigsergv
sigsergv / gist:6333689
Created August 25, 2013 12:42
phonon-vlc looks broken
[0xc0daba0] main input debug: Stream buffering done (1018 ms in 13 ms)
[0xc0daba0] main input debug: Decoder buffering done in 0 ms
[0xacf004d8] main audio output warning: PTS is out of range (-9977), dropping buffer
[0xacf004d8] main audio output warning: PTS is out of range (-36046), dropping buffer
PHONON-VLC BEGIN: void Phonon::VLC::MediaObject::changeState(Phonon::State)
PHONON-VLC BEGIN: bool Phonon::VLC::MediaObject::checkGaplessWaiting()
PHONON-VLC END__: bool Phonon::VLC::MediaObject::checkGaplessWaiting() [Took: 0s]
PHONON-VLC 3 --> 2
PHONON-VLC END__: void Phonon::VLC::MediaObject::changeState(Phonon::State) [Took: 0s]
State changed from 3 to 2 -> sending to zeitgeist.
#0 0xb53f2f94 in malloc_consolidate (av=0xb5528440 <main_arena>) at malloc.c:4073
#1 0xb53f3a75 in _int_free (av=0xb5528440 <main_arena>, p=0x82789c8, have_lock=0) at malloc.c:3973
#2 0xb576e2cf in _hb_free (block=block@entry=0x8288368) at ../3rdparty/harfbuzz/src/harfbuzz-impl.c:75
#3 0xb576d9cb in Free_PairPos2 (format2=0, format1=4, ppf2=0x81bf10c) at ../3rdparty/harfbuzz/src/harfbuzz-gpos.c:1400
#4 Free_PairPos (st=0x81bf0f8) at ../3rdparty/harfbuzz/src/harfbuzz-gpos.c:1482
#5 _HB_GPOS_Free_SubTable (st=0x81bf0f8, lookup_type=2) at ../3rdparty/harfbuzz/src/harfbuzz-gpos.c:5862
#6 0xb576e4fd in Free_SubTable (lookup_type=<optimized out>, table_type=HB_Type_GPOS, st=0x81bf0f8) at ../3rdparty/harfbuzz/src/harfbuzz-open.c:469
#7 Free_Lookup (l=l@entry=0x81fefc8, type=type@entry=HB_Type_GPOS) at ../3rdparty/harfbuzz/src/harfbuzz-open.c:568
#8 0xb576f494 in _HB_OPEN_Free_LookupList (ll=ll@entry=0x81e8060, type=type@entry=HB_Type_GPOS) at ../3rdparty/harfbuzz/src/harfbuzz-open.c:655
#9 0xb576a1f7 in HB