Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rigid
rigid / gist:9d2b5f7e6cba3760e6a6
Created May 10, 2015 14:52
proper interruption with ctrl+c
#!/usr/bin/python
import Queue
import threading
import commands
def run_delay(delay):
try:
print "Start delaying: {0}".format(delay)
@rigid
rigid / gist:8b1ceb0384304542fbc7
Created April 24, 2015 08:00
Kodi hang on exit
#0 0x00007f968a8593f7 in sched_yield () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x0000000000f4731c in CJobManager::CancelJobs() ()
#2 0x0000000000d2fd25 in CApplication::Stop(int) ()
#3 0x0000000000d39c42 in CApplicationMessenger::ProcessMessage(ThreadMessage*) ()
#4 0x0000000000d3ef22 in CApplicationMessenger::ProcessMessages() ()
#5 0x0000000000d36360 in CApplication::Process() ()
#6 0x0000000000dbf084 in CXBApplicationEx::Run() ()
#7 0x0000000000dc4e87 in XBMC_Run ()
#8 0x000000000076a815 in main ()
@rigid
rigid / gist:74c95a393574ec0d2dff
Created April 22, 2015 10:03
ejabberd "crash"
2015-04-22 12:01:57.083 [error] <0.563.0> gen_fsm <0.563.0> in state session_established terminated with reason: {badxml,{xmlel,<<"message">>,[{<<"from">>,<<"user@example.com">>},{<<"to">>,<<"user@example.com/Pidgin">>},{<<"type">>,<<"headline">>}],[{xmlel,<<"event">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/pubsub#event">>}],[{xmlel,<<"items">>,[{<<"node">>,<<"http://jabber.org/protocol/tune">>}],[{xmlel,<<"item">>,[{<<"id">>,"51C9218F64675"}],[{xmlelement,"tune",[{"xmlns","http://jabber.org/protocol/tune"}],[]}]}]}]},{xmlel,<<"delay">>,[{<<"xmlns">>,<<"urn:xmpp:delay">>},{<<"from">>,...},...],...},...]},...} in xml:element_to_string/1 line 122
2015-04-22 12:01:57.088 [error] <0.563.0> CRASH REPORT Process <0.563.0> with 0 neighbours exited with reason: {badxml,{xmlel,<<"message">>,[{<<"from">>,<<"user@example.com">>},{<<"to">>,<<"user@example.com/Pidgin">>},{<<"type">>,<<"headline">>}],[{xmlel,<<"event">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/pubsub#event">>}],[{xmlel,<<"items">>,[{<<"node">>,<<"ht
@rigid
rigid / gist:41d4b3a6dae14f5864db
Created November 19, 2014 10:49
k9 crash logcat
D/PullToRefresh(12264): First Visible: 0. Visible Count: 9. Total Items:14
V/WebViewChromiumFactoryProvider(12264): Binding Chromium to main looper Looper (main, tid 1) {41c93348}
I/LibraryLoader(12264): Expected native library version number "",actual native library version number ""
I/chromium(12264): [INFO:library_loader_hooks.cc(116)] Chromium logging enabled: level = 0, default verbosity = 0
I/BrowserStartupController(12264): Initializing chromium process, renderers=0
E/AudioManagerAndroid(12264): BLUETOOTH permission is missing!
W/chromium(12264): [WARNING:proxy_service.cc(890)] PAC support disabled because there is no system implementation
D/k9 (12264): MessageView displaying message MessageReference{accountUuid='bb30abbe-8781-4c5d-baf9-5a5c85f7d1f8', folderName='INBOX', uid='102289', flag=null}
I/Choreographer(12264): Skipped 49 frames! The application may be doing too much work on its main thread.
V/Zygote (12454): Switching descriptor 32 to /dev/null
@rigid
rigid / gist:da68f34c956fd4cd23cf
Last active August 29, 2015 14:08
glxinfo crash
# DISPLAY=":0" valgrind /usr/bin/glxinfo
==7432== Memcheck, a memory error detector
==7432== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==7432== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info
==7432== Command: /usr/bin/glxinfo
==7432==
name of display: :0
==7432== Invalid read of size 1
==7432== at 0x600FA84: ??? (in /usr/lib64/libXext.so.6.4.0)
==7432== by 0x40275C: print_screen_info (in /usr/bin/glxinfo)
eselect mesa list
64bit i915 (Intel 915, 945)
64bit i965 (Intel GMA 965, G/Q3x, G/Q4x, HD)
64bit r300 (Radeon R300-R500)
64bit r600 (Radeon R600-R700, Evergreen, Northern Islands)
64bit sw (Software renderer)
[1] classic
[2] gallium *
32bit i915 (Intel 915, 945)
[1] classic
@rigid
rigid / gist:007ff7bbc7b382bf5af4
Last active August 29, 2015 14:08
blender crash
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff35b7f6f in ?? () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/libgcc_s.so.1
(gdb) bt
#0 0x00007ffff35b7f6f in ?? () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/libgcc_s.so.1
#1 0x0000000000000001 in ?? ()
#2 0x000000000104f1dd in GPU_texture_create_3D ()
#3 0x000000000104f9d3 in GPU_invalid_tex_init ()
#4 0x000000000104fb36 in GPU_extensions_init ()
#5 0x000000000083d928 in wm_window_add_ghostwindows ()
#6 0x0000000000820a41 in WM_check ()
@rigid
rigid / gist:9e828e76e1d11784b471
Created October 31, 2014 11:13
python/chardet fubar
# USE="-* python_targets_python3_4 python_single_target3_4" emerge -vp chardet
These are the packages that would be merged, in order:
Calculating dependencies t
!!! Problem resolving dependencies for dev-python/chardet
... done!
@rigid
rigid / gist:17a6b56a52e8cf7f8e7e
Created October 27, 2014 08:21
commit d73c9d8ddffb2 build fail
[ 86%] Building CXX object src/python/CMakeFiles/qgispython.dir/qgspythonutilsimpl.cpp.o
Linking CXX shared library ../../output/lib/libqgispython.so
CMakeFiles/qgispython.dir/qgspythonutilsimpl.cpp.o: In function `QgsPythonUtilsImpl::getTraceback()':
/storage/code/3rdparty/QGIS/src/python/qgspythonutilsimpl.cpp:(.text+0x463a): undefined reference to `PyString_AsString'
CMakeFiles/qgispython.dir/qgspythonutilsimpl.cpp.o: In function `QgsPythonUtilsImpl::getTypeAsString(_object*)':
/storage/code/3rdparty/QGIS/src/python/qgspythonutilsimpl.cpp:(.text+0x4acc): undefined reference to `PyClass_Type'
/storage/code/3rdparty/QGIS/src/python/qgspythonutilsimpl.cpp:(.text+0x4ae7): undefined reference to `PyString_AsString'
CMakeFiles/qgispython.dir/qgspythonutilsimpl.cpp.o: In function `QgsPythonUtilsImpl::PyObjectToQString(_object*)':
/storage/code/3rdparty/QGIS/src/python/qgspythonutilsimpl.cpp:(.text+0x4d72): undefined reference to `PyObject_Unicode'
@rigid
rigid / gist:90c176d9effd5af30ff8
Created September 20, 2014 08:00
MSF install failed
E/DSPLOIT[core.UpdateService.onHandleIntent](31171): running: cd '/data/data/it.evilsocket.dsploit/files/msf' && bundle install --without development test
E/DSPLOIT[core.UpdateService.onHandleIntent](31171): Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
E/DSPLOIT[core.UpdateService.onHandleIntent](31171): installing your bundle as root will break this application for all non-root
E/DSPLOIT[core.UpdateService.onHandleIntent](31171): users on this machine.
E/DSPLOIT[core.UpdateService.onHandleIntent](31171): Fetching gem metadata from http://gems.dsploit.net/...
E/DSPLOIT[core.UpdateService.onHandleIntent](31171): Fetching gem metadata from https://rubygems.org/.........
E/DSPLOIT[core.UpdateService.onHandleIntent](31171): Resolving dependencies..........
E/DSPLOIT[core.UpdateService.onHandleIntent](31171): Using rake 10.3.2
E/DSPLOIT[core.UpdateService.onHandleIntent](31171): Using i18n 0.6.11
E/DSPLOIT[core.UpdateService.onHandleIntent](31171): Using multi_json 1.0.4