Skip to content

Instantly share code, notes, and snippets.

View DougReeder's full-sized avatar

Doug Reeder DougReeder

View GitHub Profile
@DougReeder
DougReeder / Dockerfile-armadietto-monolithic
Created October 17, 2025 17:21
Compare Armadietto Dockerfiles
FROM alpine:latest AS build
ARG PKG_MANAGER="npm"
ARG INSTALL_COMMAND="npm ci --production"
RUN mkdir /opt/armadietto
WORKDIR /opt/armadietto
RUN apk add nodejs $PKG_MANAGER
@DougReeder
DougReeder / gist:46b755a1447b3200107b603e317cedac
Created December 17, 2024 17:44
demo.hubsfoundation.org CSP
base-uri 'none';
child-src 'self' blob: *;
connect-src 'self' blob: data: https://api.github.com https://bh4d9od16a-3.algolianet.com https://cdn.aframe.io https://dpdb.webvr.rocks https://www.google-analytics.com https://www.youtube.com https://fonts.gstatic.com https://assets.demo.hubsfoundation.org https://cors.demo.hubsfoundation.org:443 wss://*.stream.demo.hubsfoundation.org:4443 * https://hubs-link.local:443 https://*.hubsfoundation.org:443 wss://*.hubsfoundation.org:443 wss://*.hubsfoundation.org:4443 https://*.hubsfoundation.org:4443 wss://stream.demo.hubsfoundation.org:4443 https://stream.demo.hubsfoundation.org:4443 https://demo.hubsfoundation.org https://cors.demo.hubsfoundation.org:443 https://raw.githubusercontent.com;
default-src 'none';
font-src 'self' https://cdn.aframe.io https://cdn.jsdelivr.net https://fonts.googleapis.com https://fonts.gstatic.com https://assets.demo.hubsfoundation.org https://cors.demo.hubsfoundation.org:443 https://demo.hubsfoundation.org; form-action 'self' ;
frame
@DougReeder
DougReeder / gist:a3aa9911f6ade9be1be79b8def72a072
Created October 11, 2016 00:09
gstreamer ~ valgrind.h: No such file
console:
| ERROR: Function failed: do_compile (log file is located at /home/doug/testing/webos-ports-env/webos-ports/tmp-glibc/work/armv7a-neon-webos-linux-gnueabi/gstreamer1.0-libav/1.6.3-r0/temp/log.do_compile.27043)
ERROR: Task 2581 (/home/doug/testing/webos-ports-env/webos-ports/openembedded-core/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.6.3.bb, do_compile) failed with exit code '1'
log file:
/home/doug/testing/webos-ports-env/webos-ports/tmp-glibc/work/armv7a-neon-webos-linux-gnueabi/gstreamer1.0-libav/1.6.3-r0/gst-libav-
1.6.3/gst-libs/ext/libav/libavutil/log.c:51:31: fatal error: valgrind/valgrind.h: No such file or directory
@DougReeder
DougReeder / gist:fec84ad934a3464fa393b15c9150fff1
Created May 24, 2016 05:23
luna-send -n 1 -a com.palm.app.photos luna://com.palm.db/find '{"query":{"from":"com.palm.media.image.file:1"}}'
< '{"query":{"from":"com.palm.media.image.file:1"}}' | head -n100
{
"next": "2+760FG9Q6O1QbKFFr_A9k3",
"returnValue": true,
"results": [
{
"albumPath": "/media/internal/screencaptures",
"type": "local",
"thumbnails": [
],
May 24 00:18:02 mako ls-hubd[683]: Permission: ref: 1, service_name: "com.palm.service.contacts.linker" inbound: * outbound: *
May 24 00:18:02 mako ls-hubd[677]: Permission: ref: 1, service_name: "com.palm.service.contacts.linker" inbound: * outbound: *
May 24 00:18:02 mako ls-hubd[683]: Permission: ref: 1, service_name: "com.palm.service.contacts.linker" inbound: * outbound: *
May 24 00:18:03 mako ls-hubd[677]: Permission: ref: 1, service_name: "com.palm.service.contacts.linker" inbound: * outbound: *
bash-4.3# journalctl | grep media
May 03 05:32:55 mako root[505]: mount.sh/automount Auto-mount of [/run/media/mmcblk0p22] successful
May 03 05:32:55 mako root[511]: mount.sh/automount Auto-mount of [/run/media/mmcblk0p21] successful
May 24 00:18:02 mako ls-hubd[677]: Role: ref: 1, exe_path: "/usr/sbin/mediaindexer", type: 1, allowed_names: org.webosports.mediaindexer
May 24 00:18:02 mako ls-hubd[683]: Role: ref: 1, exe_path: "/usr/lib/db8/tests/gtest_db_media", type: 0, allowed_names: mojodbmedia-test
May 24 00:18:02 mako ls-hubd[683]: Role: ref: 1, exe_path: "/usr/sbin/mojodb-luna", type: 0, allowed_names: com.palm.mojodbclient com.webos.mediadb com.palm.tempdb com.palm.db
May 24 00:18:02 mako ls-hubd[677]: Role: ref: 1, exe_path: "/usr/lib/db8/tests/gtest_db_media", type: 0, allowed_names: mojodbmedia-test
May 24 00:18:02 mako ls-hubd[677]: Role: ref: 1, exe_path: "/usr/sbin/mojodb-luna", type: 0, allowed_names: com.palm.mojodbclient com.webos.mediadb com.palm.tempdb com.palm.db
May 24 00:18:02 mako ls-hub
@DougReeder
DougReeder / gist:5e3c79b1fe6f9175480e
Created February 11, 2016 04:07
Hig: alternatives
HIG: LuneOS Assists the User via Well Chosen Alternatives
Interacting with LuneOS is a dialog: the commands available depend on the data, the user's recent input, and the user-selected information sources. It does not use an opaque profile gleaned by monitoring users communications (sold to the highest bidder) and experimental-AI.
Consider two incoming messages (it doesn't matter whether they arrive via IM, email, Twitter, Facebook or something else) Relevance is decided by the user, not some algorithm.
Alice says "ABC is the greatest thing since sliced bread". The user swipes left to "dismiss" it.
Bob says "You should talk to Carol about XYZ at the meeting tomorrow". The user, curious, selects XYZ and swipes right to "adopt", which copies XYZ to Universal Search. The system immediately searches the local database, finding no notes, to-do items or contacts containing XYZ - but does find a post in one of the user's RSS feeds, and offers to search for XYZ at the user's go-to website using OpenSearch, or a
{kind: 'List', fit: true,
reorderable: true, onReorder: 'listReorder', onSetupReorderComponents: 'setupReorderComponents', centerReorderContainer: false,
enableSwipe: true, onSetupSwipeItem: "setupSwipeItem", onSwipeComplete: "swipeComplete",
/*fixedHeight: true,*/ /*toggleSelected: true,*/ onSetupItem: "setupItem",
components: [
{name: 'divider', classes: 'dividerStyle', content: '&nbsp;'},
{name: 'item', ontap: 'itemTap', classes: 'itemStyle', components: [
{name: "subject", fit: true, allowHtml: true, classes: 'itemSubject'}
]}
], reorderComponents: [
Using fallback appInfo:
Error
line: 39
message: "Can't find variable: webos"
sourceURL: "file:///media/cryptofs/apps/usr/palm/applications/org.webosports.app.maps/source/loader.js"
stack: "global code@file:///media/cryptofs/apps/usr/palm/applications/org.webosports.app.maps/source/loader.js:39:17"
__proto__: Error
enyo.js:21
Failed to load resource: Error opening /media/cryptofs/apps/usr/palm/applications/org.webosports.app.maps/resources/ilibmanifest.json: No such file or directory file:///media/cryptofs/apps/usr/palm/applications/org.webosports.app.maps/resources/ilibmanifest.json
Failed to load resource: Error opening /media/cryptofs/apps/usr/palm/applications/org.webosports.app.maps/resources/strings.json: No such file or directory file:///media/cryptofs/apps/usr/palm/applications/org.webosports.app.maps/resources/strings.json
@DougReeder
DougReeder / gist:17ad1a3c247ded637e95
Created April 18, 2015 14:33
Preware feed build
make package
find . -name '*~' -delete
rm -f ipkgtmp*.tar.gz org.webosinternals.preware_*.ipk
cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make
/opt/PalmPDK/i686-gcc/bin/i686-nptl-linux-gnu-gcc --sysroot=/opt/PalmPDK/i686-gcc/sys-root -g -DVERSION=\"unknown\" -I/srv/preware/build/staging/i686/usr/include/glib-2.0 -I/srv/preware/build/staging/i686/usr/lib/glib-2.0/include -I/srv/preware/build/staging/i686/usr/include -c -o ipkgservice.o ipkgservice.c
In file included from ipkgservice.h:22,
from ipkgservice.c:23:
luna_service.h:25:25: error: lunaservice.h: No such file or directory
In file included from ipkgservice.h:22,
from ipkgservice.c:23: