start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/env python | |
''' | |
mikrotik basic login script | |
''' | |
import re | |
import requests | |
from md5 import md5 | |
USER = 'i am groot' |
FROM resin/rpi-raspbian | |
RUN apt-get update && apt-get -y upgrade | |
RUN apt-get install -y curl python | |
RUN python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/develop/scripts/get-platformio.py)" |
FROM resin/rpi-raspbian | |
RUN apt-get update && apt-get -y upgrade | |
RUN apt-get install -y curl python | |
RUN python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/develop/scripts/get-platformio.py)" |
FROM resin/rpi-raspbian | |
RUN apt-get update && apt-get -y upgrade | |
RUN apt-get install -y curl python | |
RUN python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/develop/scripts/get-platformio.py)" |
# | |
# Copyright (C) 2006-2011 Xmlad.com | |
# | |
# This is free software, licensed under the GNU General Public License v2. | |
# See /LICENSE for more information. | |
# | |
include $(TOPDIR)/rules.mk | |
PKG_NAME:=mentohust |
Dashing job to subscribe to MQTT messages.
MQTT is a lightweight publish/subscribe messaging transport. This job allows Dashing to subscribe to these messages and send them as events. There is no associated widget as the data can take any form - commonly numbers, but not necessarily. The script as laid out below sends events with value
, current
(the same contents) and last
values so can be plugged directly into the Numbers or Meter widgets using the data-id
in the dashboard file. The send_event
could easily be modified if required.
Add to Gemfile:
The MIT License (MIT)
Copyright (c) 2014 David Underwood
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
These Node-RED snippets accompany a blog post I wrote about using Docker and Node-RED on a Raspberry Pi to integrate IoT devices.
#!/bin/sh | |
# | |
# Read-only Root-FS for Raspian | |
# | |
# Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with | |
# overlayfs integrated in Linux Kernel >= 3.18. | |
# | |
# Originally written by Axel Heider (Copyright 2012) for Ubuntu 11.10. | |
# This version can be found here: | |
# https://help.ubuntu.com/community/aufsRootFileSystemOnUsbFlash#Overlayfs |