Skip to content

Instantly share code, notes, and snippets.

View grybouilli's full-sized avatar
🏳️‍⚧️
here & queer

Nicolas Gry grybouilli

🏳️‍⚧️
here & queer
View GitHub Profile
@aperezdc
aperezdc / minicog.c
Last active June 23, 2025 05:38
Minimal WPE launcher, with user message handler to poweroff/reboot a device
/*
* SPDX-License-Identifier: MIT
*
* cc -o minicog minicog.c $(pkg-config wpe-webkit-1.1 cogcore --cflags --libs)
*/
#include <cog/cog.h>
#include <sys/reboot.h>
static const char *s_starturl = NULL;
@aperezdc
aperezdc / minicog-urihandler-cors.c
Last active June 23, 2025 05:38
Minimal WPE launcher
/*
* SPDX-License-Identifier: MIT
*
* cc -o minicog minicog.c $(pkg-config wpe-webkit-1.1 cogcore --cflags --libs)
*/
#include <cog/cog.h>
static const char *s_starturl = NULL;
@aperezdc
aperezdc / CMakeLists.txt
Last active June 23, 2025 05:39
CMake madness
cmake_minimum_required (VERSION 2.8)
# projectname is the same as the main-executable
project(pctest)
find_package(PkgConfig)
pkg_check_modules(PC one)
message("PC_INCLUDE_DIRS ... ${PC_INCLUDE_DIRS}")
message("PC_CFLAGS ......... ${PC_CFLAGS}")
message("PC_CFLAGS_OTHER ... ${PC_CFLAGS_OTHER}")