Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Add React in One Minute</title> | |
</head> | |
<body> | |
<h2>Add React in One Minute</h2> | |
<p>This page demonstrates using React with no build tooling.</p> |
# It is possible to paas sshuttle common ssh options such as UserKnownHostsFile, StrictHostIPChecking, CheckHostIP etc | |
# Normal sshuttle command: | |
sshuttle -r ubuntu@<some-ip>:2222 <remote_subnet(s)/CIDR> | |
# In the above scenario, for most systems, StrictHostKeyChecking, and all other good security features will be in effect. | |
# That's normally a good thing, except when it's not. Like when you have to continually clean a known hosts file because | |
# your testing different build options and the remote host's ECDSA, DSA, RSA <or whatever> keeps changing. | |
# By making use of the -e option you can control how sshuttle uses ssh. Any option your ssh-client supports can be passed. |
const WebSocket = require('ws'); | |
global.WebSocket = WebSocket; | |
const HAWS = require("home-assistant-js-websocket"); | |
const getWsUrl = haUrl => `ws://${haUrl}/api/websocket`; | |
HAWS.createConnection(getWsUrl('localhost:8123')).then(conn => { | |
HAWS.subscribeEntities(conn, logEntities); | |
}); |
This gist is now deprecated in favor of our official documentation: https://documentation.portainer.io/api/api-examples/ which contains up to date examples!
Please refer to the link above to get access to our updated API documentation and examples.
The setup of a bluetooth speaker on a Pi Zero W is pretty touchy.
Please get in touch via Twitter @actuino or http://www.actuino.fr/ if you've got comments or improvements to this quick draft.
/* | |
* I've used blessed to create a textbox at the bottom line in the screen. | |
* The rest of the screen is the 'body' where your code output will be added. | |
* This way, when you type input, your program won't muddle it with output. | |
* | |
* To try this code: | |
* - $ npm install blessed --save | |
* - $ node screen.js | |
* | |
* Key points here are: |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh
in the SD card as well. By default SSH i
""" | |
Copy this file to <config_dir>/example/sensor.py | |
Add to your configuration.yaml: | |
sensor: | |
platform: example | |
""" | |
from homeassistant.const import TEMP_CELSIUS | |
from homeassistant.helpers.entity import Entity |