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
# 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
server {
listen 80;
server_name regolit.com;
access_log /var/log/nginx/regolit.com.access.log;
error_log /var/log/nginx/regolit.com.error.log;
root /home/regolit/sites/regolit.com;
index index.html;
}
# apt-get install libdrm2:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
bogofilter bogofilter-bdb bogofilter-common freespacenotifier gcj-4.6-base gcj-4.6-jre-lib gedit-common gir1.2-gstreamer-0.10 gir1.2-gtksource-3.0 gir1.2-json-1.0 gir1.2-soup-2.4 gnome-js-common gstreamer0.10-ffmpeg kde-wallpapers
kde-wallpapers-default kde-workspace-data kde-workspace-kgreet-plugins libchm1 libchromaprint0 libcln6 libclucene-contribs1 libclucene-core1 libclutter-1.0-common libcogl-common libcompfaceg1 libdconf0 libdiscid0 libdmtx0a
libdrumstick0 libdvbpsi7 libebml3 libetpan15 libffi6:i386 libgcj12 libgdu0 libgtksourceview-3.0-0 libgtksourceview-3.0-common libkimproxy4 libkipi8 libknewstuff2-4 libkrossui4 libkscreensaver5 libksignalplotter4 libkutils4
libmail-spf-perl libmarblewidget13 libmatroska5 libmpeg2-4 libmusicbrainz3-6 libnetaddr-ip-perl liborcus-0.4-0 libpeas-common libpis
Package: libdrm2
Source: libdrm
Version: 2.4.40-1~deb7u2
Installed-Size: 524
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Architecture: i386
Depends: libc6 (>= 2.7)
Pre-Depends: multiarch-support
Description-en: Userspace interface to kernel DRM services -- runtime
This library implements the userspace interface to the kernel DRM

Here is an example of public gist.

With some markup (Markdown)

И по-русски пара слов.