Skip to content

Instantly share code, notes, and snippets.

View codingdave's full-sized avatar

David-Tillmann Schaefer codingdave

View GitHub Profile
@codingdave
codingdave / bumble-chatlog-export.js
Last active October 21, 2024 14:45 — forked from sippsolutions/bumble-chatlog-export.js
Bumble Chatlog Export (paste in Browser Console while being on an individual Chat Page) with automatic Name resolution and date and Error checking
(function () {
function l(u, i) {
var d = document;
if (!d.getElementById(i)) {
var s = d.createElement('script');
s.src = u;
s.id = i;
d.body.appendChild(s);
}
}
@codingdave
codingdave / instructions.md
Created December 3, 2020 14:25 — forked from juniorz/instructions.md
Building tor on WD My Cloud EX2

How to build tor for WD My Cloud EX2

WD My Cloud EX2 has an Marvell Armada-370 CPU (Marvell PJ4Bv7 Processor rev 1 (v7l)) with 512MB RAM.

This device uses 32-bit binaries with 64K page size. WD releases a cross-compilation environment as part of its "WD My Cloud EX2 GPL Source Code". Download it from WD support page (making sure it matches your firmware version) and follow the instructions in My_Cloud_EX2_Release_Notes_GPL_*.txt to setup the environment. I recommend using a Debian OS.

The following packages are required to use the cross-compilation environment: build-essential automake lib32z1

Building dependencies

@codingdave
codingdave / MSBuildCheatSheet.xml
Created November 30, 2020 12:24 — forked from dotMorten/MSBuildCheatSheet.xml
MSBuild Cheat Sheet
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
How to define a variable.
Just stick a new node in a property group.
-->
<PropertyGroup>
<!-- This node in a property group will define a variable -->
<TestVariable>Test Variable Value</TestVariable>
num_columns=8
group_switch_key=16
group_key_light=8
rating_key_light=0
reset_knob_key=0
first_knob_key=1
num_rotators=8
LED_ring_behavior_channel=0
LED_ring_behavior_off=0
LED_ring_behavior_pan=1
this is darktable 3.3.0+1800~g55faa03e0 reporting a segfault:
warning: Currently logging to /tmp/darktable_bt_8ZOCU0.txt. Turn the logging off and on to make the new setting effective.
#0 0x00007fc3e5578eef in wait4 () at /usr/lib/libc.so.6
#1 0x00007fc3e8ca9600 in _dt_sigsegv_handler (param=11) at /home/david/workspace/darktable.git/src/common/system_signal_handling.c:114
#2 0x00007fc3e54e96a0 in <signal handler called> () at /usr/lib/libc.so.6
#3 0x00007fc3e7ad7c5c in g_type_check_instance_cast () at /usr/lib/libgobject-2.0.so.0
#4 0x00007fc38c03e475 in refresh_sliders_to_device (midi=0x55c8d3820c90) at /home/david/workspace/darktable.git/src/libs/tools/midi.c:418
#5 refresh_sliders_to_device (midi=0x55c8d3820c90) at /home/david/workspace/darktable.git/src/libs/tools/midi.c:394
#6 0x00007fc38c03e7e8 in refresh_all_devices (data=<optimized out>) at /home/david/workspace/darktable.git/src/libs/tools/midi.c:495
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
/home/david/workspace/darktable.git/src/common/cache.c: In function ‘dt_cache_release_with_caller’:
/home/david/workspace/darktable.git/src/common/cache.c:372:25: error: ‘struct __pthread_rwlock_arch_t’ has no member named ‘__nr_readers’; did you mean ‘__readers’?
372 | if(entry->lock.__data.__nr_readers <= 1)
| ^~~~~~~~~~~~
| __readers
gchar *_string_get_next_variable(gchar *string, gchar *variable, const size_t max_variable_size)
{
gchar *end = NULL;
gchar *start = g_strstr_len(string, max_variable_size, "$(");
if(start)
{
end = g_strstr_len(start, max_variable_size, ")");
if(end)
{
const int length = end - start + 2;