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
blueprint: | |
name: Joke generator | |
author: AntonH | |
description: | | |
Version 1.1 | |
This blueprint selects a random rude joke from a list. | |
There are 3 types of jokes to choose from: funny insults, yo momma jokes and dad jokes | |
It speaks The 9 most common languages in Europe: German, English, French, Italian, Spanish, Dutch, Portuguese, Turkish and Russian. | |
source_url: https://gist.github.com/Twanne/8c09e6a876befcfda1828dc0829612db | |
domain: automation |
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
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266mDNS.h> | |
#include <WiFiUdp.h> | |
#include <ArduinoOTA.h> | |
#include <PubSubClient.h> | |
#include <Adafruit_NeoPixel.h> | |
#define PIN D8 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(6, PIN, NEO_GRB + NEO_KHZ800); |
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
pulseaudio --kill | |
pulseaudio --start | |
cd samples/companionService | |
nohup npm start& | |
cd ../javaclient | |
killall Xvfb | |
nohup Xvfb :1 -screen 0 800x600x16& |
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
#!/bin/bash | |
#This script will download, set up, compile QT5, and set up the SDCard image ready to use. | |
#Pass -h to use https for git | |
OPT=~/opt | |
CC=$OPT/gcc-4.7-linaro-rpi-gnueabihf | |
CCT=$OPT/cross-compile-tools | |
MOUNT=/mnt/rasp-pi-rootfs | |
QTBASE=$OPT/qt5 |