Skip to content

Instantly share code, notes, and snippets.

View robUx4's full-sized avatar

Steve Lhomme robUx4

View GitHub Profile
@robUx4
robUx4 / gist:f75448aa675d9baaab9015e9c9649318
Last active December 27, 2019 13:59
full log, adding a device after deinstalling deconz add-on and reboot
2019-12-27 14:51:07 DEBUG (MainThread) [zigpy_deconz.uart] Connection made
2019-12-27 14:51:09 DEBUG (MainThread) [zigpy.appdb] Loading application state from /config/zigbee.db
2019-12-27 14:51:09 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for None None (00:21:2e:ff:ff:04:81:f2)
2019-12-27 14:51:09 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zigpy.quirks.smartthings.SmartthingsMultiPurposeSensor'>
2019-12-27 14:51:09 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {1} {80, 1}
2019-12-27 14:51:09 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'bellows.zigbee.application.EZSPCoordinator'>
2019-12-27 14:51:09 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {1} {80, 1}
2019-12-27 14:51:09 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.gledopto.soposhgu10.SoposhGU10'>
2019-12-27 14:51:09 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {11, 13} {
@robUx4
robUx4 / alloca.patch
Created September 26, 2018 14:56
vla MSVC issues
From 72c81fbfa53838a9594137b582b10d99ff385141 Mon Sep 17 00:00:00 2001
From: Steve Lhomme <robux4@ycbcr.xyz>
Date: Wed, 26 Sep 2018 16:54:27 +0200
Subject: [PATCH] WIP use _alloca() with MSVC
---
src/cdef.c | 4 ++++
src/ipred.c | 3 +++
src/itx.c | 6 ++++++
src/looprestoration.c | 33 +++++++++++++++++++++++++++++++++
@robUx4
robUx4 / ecc-eddsa.c
Created June 21, 2018 09:22
line 146
/* Make sure that the opaque MPI VALUE is in compact EdDSA format.
This function updates MPI if needed. */
gpg_err_code_t
_gcry_ecc_eddsa_ensure_compact (gcry_mpi_t value, unsigned int nbits)
{
gpg_err_code_t rc;
const unsigned char *buf;
unsigned int rawmpilen;
gcry_mpi_t x, y;
unsigned char *enc;
@robUx4
robUx4 / bdj.c
Created March 8, 2017 13:12
libbluray LoadLibraryEx
static void *_load_dll(const wchar_t *lib_path, const wchar_t *dll_search_path)
{
void *result;
PVOID WINAPI (*pAddDllDirectory) (PCWSTR);
BOOL WINAPI (*pRemoveDllDirectory)(PVOID);
pAddDllDirectory = (__typeof__(pAddDllDirectory)) GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")), "AddDllDirectory");
pRemoveDllDirectory = (__typeof__(pRemoveDllDirectory)) GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")), "RemoveDllDirectory");
if (pAddDllDirectory && pRemoveDllDirectory) {
<intent-filter>
<action android:name="android.intent.action.PACKAGE_CHANGED" />
<data
android:host="com.levelup.touiteur"
android:scheme="package" />
</intent-filter>
@robUx4
robUx4 / rotation android.java
Created August 12, 2015 08:34
Android rotation detection
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
//TouiteurLog.e(false, "onConfigurationChanged");
int newOrientation = newConfig.orientation;
if (mOrientation != newOrientation) {
mOrientation = newOrientation;
if (false && Touiteur.isTablet()) {
// TODO: store whatever state we need
boolean layoutRedone = false;
@robUx4
robUx4 / output.gralde
Created August 12, 2015 08:30
rename output with mapping
applicationVariants.all { variant ->
//def file = variant.outputFile
if (variant.buildType.name == "release") {
variant.outputs.each { output ->
//println ">> outputFile for " + variant.buildType.name + " = " + output.outputFile
output.outputFile = new File(projectDir.parent + "/../builds", archivesBaseName + "-" + versionName + ".apk")
}
} else if (variant.buildType.name == "kindle") {
variant.outputs.each { output ->
//println ">> outputFile for " + variant.buildType.name + " = " + output.outputFile
@robUx4
robUx4 / gist:1bb8fc594a7f09e52956
Created March 10, 2015 15:05
mingw netoapi.h fail in VLC
In file included from ../../../work/extras/package/win32/../../../include/vlc_common.h:43:0,
from ../../../work/extras/package/win32/../../../modules/services_discovery/upnp.hpp:34,
from ../../../work/extras/package/win32/../../../modules/services_discovery/upnp.cpp:35:
C:/msys64/mingw32/i686-w64-mingw32/include/stdlib.h:346:36: error: conflicting declaration of C function 'int atoi(const char*)'
int __cdecl atoi(const char *_Str);
^
In file included from ../config.h:815:0,
from ../../../work/extras/package/win32/../../../modules/services_discovery/upnp.cpp:32:
../../../work/extras/package/win32/../../../include/vlc_fixups.h:304:34: note: previous declaration 'NET_IFINDEX atoi(PCSTR)'
# define if_nametoindex(name) atoi(name)
@robUx4
robUx4 / gist:95fc695540ac34e51807
Created March 10, 2015 13:18
VLC d3d11 compilation
libtool: link: i686-w64-mingw32-gcc -std=gnu99 -shared .libs/libdirect3d11_plugin.dll.def ../modules/.libs/module.rc.o video_output/msw/.libs/libdirect3d11_plugin_la-direct3d11.o video_output/msw/.libs/libdirect3d11_plugin_la-common.o video_output/msw/.libs/libdirect3d11_plugin_la-events.o video_output/msw/.libs/libdirect3d11_plugin_la-win32touch.o ../compat/.libs/libcompat.a -L/c/Users/robUx4/Documents/Program/Videolabs/work/contrib/i686-w64-mingw32/lib ../src/.libs/libvlccore.dll.a /c/Users/robUx4/Documents/Program/Videolabs/work/contrib/i686-w64-mingw32/lib/libgpg-error.a -lwinmm -lws2_32 -lgdi32 -lole32 -luuid -g -mms-bitfields --static -static-libgcc -Wl,--nxcompat -Wl,--no-seh -Wl,--dynamicbase -o .libs/libdirect3d11_plugin.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libdirect3d11_plugin.dll.a
@robUx4
robUx4 / drawer_main.xml
Last active August 29, 2015 14:16
Navigation Drawer layout
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_layout"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<!-- The main content view -->
<include layout="@layout/main" />