Skip to content

Instantly share code, notes, and snippets.

#-*- coding: utf-8 -*-
"""
Copyright (C) 2011, 2012, 2013 Michal Goral.
This file is part of Subconvert
Subconvert is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
! "Enabled modi" Set from: Default
! rofi.modi: window,run,ssh
! "Window opacity" Set from: Default
! rofi.opacity: 100
! "Window width" Set from: File
rofi.width: 20
! "Number of lines" Set from: Default
! rofi.lines: 15
! "Number of columns" Set from: Default
! rofi.columns: 1
@mgoral
mgoral / pydetect
Created October 23, 2014 05:52
xrandr wrapper
#!/usr/bin/env python
import optparse
from subprocess import Popen, PIPE
import time
def prepare_options():
"""Define optparse options."""
optp = optparse.OptionParser(
usage = 'Usage: %prog OUT1 [OUT2 OUT3...]\n\tOUT[n] are devices taken from left to right.',
@mgoral
mgoral / gist:4107519
Created November 18, 2012 21:12
Luakit: grooveshark.com (not logged in)
[ 0.043005] D: luakit: luaH_loadrc:398: Loading rc: /home/virgo/.config/luakit/rc.lua
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-P8bOZk/pkcs11: Nie ma takiego pliku ani katalogu
[ 0.872715] D: luakit: signal_object_emit:203: emit "property::ssl_ca_file" on 0x95ac520 from /home/virgo/.config/luakit/globals.lua:36 (0 args, 0 nret)
[ 0.872959] D: luakit: signal_object_emit:203: emit "property::ssl_strict" on 0x95ac520 from /home/virgo/.config/luakit/globals.lua:42 (0 args, 0 nret)
[ 0.873147] D: luakit: signal_object_emit:203: emit "property::accept_policy" on 0x95ac520 from /home/virgo/.config/luakit/globals.lua:46 (0 args, 0 nret)
[ 0.912402] D: luakit: luaH_class_add_signal:188: add "request-started" on 0x80715bc from /usr/local/share/luakit/lib/cookies.lua:102
[ 0.912673] D: luakit: luaH_class_add_signal:188: add "cookie-changed" on 0x80715bc from /usr/local/share/luakit/lib/cookies.lua:118
@mgoral
mgoral / gist:4107499
Created November 18, 2012 21:09
Luakit: dropbox.com (logged in)
[ 0.050230] D: luakit: luaH_loadrc:398: Loading rc: /home/virgo/.config/luakit/rc.lua
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-P8bOZk/pkcs11: Nie ma takiego pliku ani katalogu
[ 0.959948] D: luakit: signal_object_emit:203: emit "property::ssl_ca_file" on 0x9f56520 from /home/virgo/.config/luakit/globals.lua:36 (0 args, 0 nret)
[ 0.960186] D: luakit: signal_object_emit:203: emit "property::ssl_strict" on 0x9f56520 from /home/virgo/.config/luakit/globals.lua:42 (0 args, 0 nret)
[ 0.960390] D: luakit: signal_object_emit:203: emit "property::accept_policy" on 0x9f56520 from /home/virgo/.config/luakit/globals.lua:46 (0 args, 0 nret)
[ 0.998071] D: luakit: luaH_class_add_signal:188: add "request-started" on 0x80715bc from /usr/local/share/luakit/lib/cookies.lua:102
[ 0.998272] D: luakit: luaH_class_add_signal:188: add "cookie-changed" on 0x80715bc from /usr/local/share/luakit/lib/cookies.lua:118
@mgoral
mgoral / gdb backtrace
Created October 31, 2012 19:43
Luakit crash log
(gdb) bt full
#0 0xb67ee217 in ?? () from /usr/lib/i386-linux-gnu/liblua5.1.so.0
No symbol table info available.
#1 0xb67eebf8 in ?? () from /usr/lib/i386-linux-gnu/liblua5.1.so.0
No symbol table info available.
#2 0xb67e78d2 in ?? () from /usr/lib/i386-linux-gnu/liblua5.1.so.0
No symbol table info available.
#3 0xb67e8353 in ?? () from /usr/lib/i386-linux-gnu/liblua5.1.so.0
No symbol table info available.
#4 0xb67e1532 in lua_pushlstring () from /usr/lib/i386-linux-gnu/liblua5.1.so.0