This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rust:1.31 | |
WORKDIR /usr/src | |
RUN git clone https://github.com/nelsonjchen/speedtest-rs | |
WORKDIR ./speedtest-rs | |
RUN cargo install --path . | |
ADD entrypoint.sh /opt/speedtest2mqtt.sh | |
RUN apt-get update && \ |
Bot Commands on the OctoPrint Discord Server
?role
: Get an overview of the available roles (teams, ranks) you can join. Only allowed in #bot-commands?role <role>
: Join joinablerole
. Only allows in #bot-commands?ranks
: Alias for?role
?rank <rank>
: Alias for?role <role>
?joinirc
&?leaveirc
: Use these to either join or leave the IRC bridge channel #irc (invisible by default). Aliases for?role IRC
. Only allowed in #bot-commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name Lighter FreeCAD Forum | |
@namespace github.com/foosel | |
@version 1.0.2 | |
@description A lighter theme for the FreeCAD forum. Sans-serif instead of Fira-Sans, slightly more line-height, slightly less bold headlines, less read everywhere. Easier on the eyes. | |
@author foosel | |
@homepageURL https://gist.github.com/foosel/21fb760e94bae5782171ca49c799daf5 | |
@updateURL https://gist.githubusercontent.com/foosel/21fb760e94bae5782171ca49c799daf5/raw/lighter_freecad_forum.user.css | |
==/UserStyle== */ |
Quick node setup to get notifications about requested reviews each workday morning.
Flow json:
[{"id":"3ba912e4.896146","type":"http request","z":"8357254d.c82348","name":"Query","method":"GET","ret":"obj","paytoqs":"query","url":"","tls":"","persist":false,"proxy":"","authType":"","x":530,"y":880,"wires":[["fa377f9a.5a51a","872d9224.2341b8"]]},{"id":"fa377f9a.5a51a","type":"debug","z":"8357254d.c82348","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":750,"y":960,"wires":[]},{"id":"ea784988.39d24","type":"inject","z":"8357254d.c82348","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":940,"wires":[["fef091db.f8a6c"]]},{"id":"fef091db.f8a6c","type":"function","z":"8357254d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
import logging | |
def rewrite_wait_to_busy(comm_instance, line, *args, **kwargs): | |
if line == "wait" or line.startswith("wait"): | |
return "echo:busy processing" | |
else: | |
return line |
- Create
.octoprint/plugins/filetab
,.octoprint/plugins/filetab/templates
and.octoprint/plugins/filetab/static/css
- Copy
__init__.py
to.octoprint/plugins/filetab
- Copy
filetab_tab.jinja2
to.octoprint/plugins/filetab/templates
- Copy
filetab.css
to.octoprint/plugins/filetab/static/css
- Optional: Adjust the
appearance.components.tab.order
to listplugin_filetab
in.octoprint/config.yaml
if you want the "Files" tab to be placed somewhere else than after the regular tab components, e.g.:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from __future__ import absolute_import, division, print_function, unicode_literals | |
import octoprint.plugin | |
import octoprint.events | |
import octoprint.util.comm | |
class M33StormPlugin(octoprint.plugin.EventHandlerPlugin): | |
def __init__(self): | |
self._active = False |
lsusb
lists the fingerprint reader in the x240 as follows:
Bus 002 Device 003: ID 138a:0017 Validity Sensors, Inc.
There exists experimental driver support for this in a fork of libfprint for vfs5011 sensors, however you'll need to compile the driver yourself. To get the fingerprint sensor to work for lightdm login, su etc, follow these steps.
-
Install fingerprint-gui:
sudo add-apt-repository ppa:fingerprint/fingerprint-gui