Skip to content

Instantly share code, notes, and snippets.

@dhamp
dhamp / openinmpv.diff
Created November 14, 2018 21:48
Falkon plugin open in mpv current url/contextmenu url
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt
index 54b28ba9..bcd42cc9 100644
--- a/src/plugins/CMakeLists.txt
+++ b/src/plugins/CMakeLists.txt
@@ -8,6 +8,7 @@ add_subdirectory(PIM)
add_subdirectory(StatusBarIcons)
add_subdirectory(TabManager)
add_subdirectory(VerticalTabs)
+add_subdirectory(OpenInMpv)
@dhamp
dhamp / capture-image-and-download
Last active March 23, 2017 17:08
Canon_EOS_M10
env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-image-and-download --force-overwrite
*** Error ***
Canon EOS Half-Press failed (0x2019: PTP Device Busy)
ERROR: Could not capture image.
ERROR: Could not capture.
*** Error (-110: 'I/O in progress') ***
@dhamp
dhamp / summary
Created November 9, 2016 11:00
ghoto2 logs
env LANG=C gphoto2 --debug --summary --debug-logfile=summary.txt
output cmd:
Camera summary:
Manufacturer: Canon Inc.
Model: Canon EOS 650D
Version: 3-1.0.1
Vendor Extension ID: 0xb (2.0)
/tmp|⇒ mkdir cmake_read_env
/tmp|⇒ cd cmake_read_env
cmake_read_env|⇒ nano CMakeLists.txt
cmake_read_env|⇒ mkdir build
cmake_read_env|⇒ cd build
build|⇒ cmake ../
build|⇒ cat ../CMakeLists.txt
project(cmake_read_env)
@dhamp
dhamp / test_frame_capture.c
Created April 1, 2016 09:32 — forked from ChristianUlbrich/test_frame_capture.c
Simple example to capture a frame with an uEye Camera under Linux; compile with: gcc -Wall test_frame_capture.c -lueye_api -o frametest
#include<stdio.h>
#include<stddef.h>
#include<ueye.h>
HIDS hCam = 1;
void main() {
printf("Success-Code: %d\n",IS_SUCCESS);
//Kamera öffnen
diff --git a/src/bbsecondary.c b/src/bbsecondary.c
index 71a6b73..20166d2 100644
--- a/src/bbsecondary.c
+++ b/src/bbsecondary.c
@@ -104,7 +104,8 @@ static bool switch_and_load(void)
if (pci_get_driver(driver, pci_bus_id_discrete, sizeof driver)) {
/* if the loaded driver does not equal the driver from config, unload it */
if (strcasecmp(bb_config.driver, driver)) {
- if (!module_unload(driver)) {
+ char *module_name = bb_config.module_name;
Thread 3 (Thread 0x7ff716ff5700 (LWP 18494)):
#0 0x00007ff7255b496f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
No symbol table info available.
#1 0x00007ff72508717c in eina_condition_wait (cond=0x7ff7253679e0 <evas_thread_queue_condition>) at ../src/lib/eina/eina_inline_lock_posix.x:415
No locals.
#2 evas_thread_worker_func (data=<optimized out>, thread=<optimized out>) at lib/evas/common/evas_thread_render.c:75
cmd = <optimized out>
len = <optimized out>
max = <optimized out>
@dhamp
dhamp / backtrace
Created July 21, 2015 12:59
git for fossa issue
Starting program: /home/egik/projects/fossa/examples/http_client/http_client --hexdump out --show-headers http://dht.fly-server.ru/dcDHT.php\?cid=5E7PVMGD5G2KP2HXDJOVXOK6FMYNIK3R7USYXNA\&encryption=1\&u4=3001
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Program received signal SIGINT, Interrupt.
0x00007ffff721e0eb in __lll_lock_wait_private () from /usr/lib/libc.so.6
#0 0x00007ffff721e0eb in __lll_lock_wait_private () from /usr/lib/libc.so.6
No symbol table info available.
#1 0x00007ffff71a48ac in malloc () from /usr/lib/libc.so.6
No symbol table info available.
@dhamp
dhamp / first
Created July 16, 2015 18:51
e19 crashdumps
Thread 3 (Thread 0x7faa75e0a700 (LWP 2470)):
#0 0x00007faa843c996f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
No symbol table info available.
#1 0x00007faa83e9c15c in ?? () from /usr/lib/libevas.so.1
No symbol table info available.
#2 0x00007faa84611785 in ?? () from /usr/lib/libeina.so.1
No symbol table info available.
#3 0x00007faa843c4354 in start_thread () from /usr/lib/libpthread.so.0
No symbol table info available.
[118734.701]
X.Org X Server 1.16.1
Release Date: 2014-09-21
[118734.701] X Protocol Version 11, Revision 0
[118734.701] Build Operating System: Linux 3.16.1-1-ARCH x86_64
[118734.701] Current Operating System: Linux ideapadz400-arch 3.17.1-1-ARCH #1 SMP PREEMPT Wed Oct 15 15:04:35 CEST 2014 x86_64
[118734.701] Kernel command line: \boot\vmlinuz-linux ro root=UUID=ceae99e5-4aa7-4739-9c99-1d0f0df5038c initrd=boot\initramfs-linux.img
[118734.702] Build Date: 21 September 2014 10:53:13AM
[118734.702]
[118734.702] Current version of pixman: 0.32.6