Skip to content

Instantly share code, notes, and snippets.

@thadk
thadk / 2mqtt-cmd.sh
Created December 11, 2023 22:39
WIP OpenERV mods 2023 using HASSIO and 2mqtt for serial<->MQTT fan control and CO2 integration
# the --network portion allows it to connect to the MQTT server in a separate docker container, may not be directly applicable
# also check the USB-serial device matches your system's, it seems to vary.
docker run --rm --name 2mqtt --network=container:addon_core_mosquitto --volume /mnt/data/supervisor/homeassistant/2mqtt.yaml:/app/config.yaml --device /dev/ttyACM0 --env TZ=America/New_York docker.io/mycontroller/2mqtt:1.4
pyodide on  tags/0.23.4 [!?] via ⬢ v18.12.1 on 🐳 v20.10.21 via pyodide via 🐍 3.11.2
➜ PYODIDE_PACKAGES="scipy" make
./tools/dependency-check.sh
# TODO(ryanking13): Link this to a side module not to the main module.
# For unknown reason, a side module cannot see symbols when libGL is linked to it.
embuilder build libgl
embuilder:INFO: building libGL
embuilder:INFO: ...success. Took (0.00s)
date +"[%F %T] Building pyodide.asm.js..."
[2023-08-11 10:00:37] Building pyodide.asm.js...
if [ "$(ls -A /library/incoming)" ]; then
calibredb add -r "/library/incoming" --library-path="/library/calibre-web]"
rm /library/incoming*
fi
@thadk
thadk / gist:6244053
Created August 15, 2013 19:37
Pinboard with Referrer Bookmarklet -This bookmarklet for pinboard.in adds the referring site (or twit-url) to the description when you bookmark
javascript:q=location.href;if(document.getSelection)%7Bd=document.getSelection()+" refrr:"+document.referrer;%7Delse%7Bd='';%7D;p=document.title;void(open('https://pinboard.in/add?showtags=yes&url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,scrollbars=yes,width=750,height=700'));

Extracted from http://groups.yahoo.com/group/pagre/message/511 via https://archive.org/details/yahoo-groups-2016-12-04T02-30-46Z-f494f3 pagre. Referenced by https://www.quora.com/What-is-issue-entrepreneurship

[RRE]Vaclav Havel - Red Rock Eaters mailing list

Tue Aug 19 03:47:18 2003 UTC

The other day I read John Keane's biography of Vaclav Havel (Vaclav Havel: A Political Tragedy in Six Acts, London: Bloomsbury, 1999), and I'd like to reflect on the relevance of Havel's life and ideas to the current situation in the United States.

@thadk
thadk / README.md
Last active February 25, 2022 02:12 — forked from syntagmatic/README.md
Fisheye Nutrient Parallel Coordinates, 146 Dimensions

Improvements:

  • Click a food to sort dimensions by that foods y values
  • Scale to window size and resizes
  • Click label to invert axis
  • Drag label to reorder axes
  • Rendering progress bar
  • Keep selected button removes unselected data
  • Exclude selected button removes selected data
@thadk
thadk / init.lua
Created August 15, 2018 20:22
hammerspoon setup with split current chrome tab to new window
hs.window.animationDuration = 0
function reloadConfig(files)
local doReload = false
for _,file in pairs(files) do
if file:sub(-4) == ".lua" then
doReload = true
end
end
if doReload then
hs.reload()
@thadk
thadk / test.txt
Last active August 3, 2021 13:07
test for githubactions 2
# temprepo
gistup