Skip to content

Instantly share code, notes, and snippets.

View sylvainblot's full-sized avatar
🏠
Working from home

Sylvain sylvainblot

🏠
Working from home
View GitHub Profile
@sylvainblot
sylvainblot / joke_generator.yaml
Last active January 9, 2025 20:02 — forked from Twanne/joke_generator.yaml
Home Assistant Blueprint: Joke Generator
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
@sylvainblot
sylvainblot / FiberOpticLamp.ino
Created November 10, 2016 12:52 — forked from AdySan/FiberOpticLamp.ino
Philips Hue Clone using ESP8266
#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);
@sylvainblot
sylvainblot / gist:c9113a684124649b15022e870ab39972
Created October 22, 2016 09:40
alexa-avs-sample-app auto start script
pulseaudio --kill
pulseaudio --start
cd samples/companionService
nohup npm start&
cd ../javaclient
killall Xvfb
nohup Xvfb :1 -screen 0 800x600x16&
@sylvainblot
sylvainblot / bakeqtpi.bash
Last active August 29, 2015 14:26 — forked from keyz182/bakeqtpi.bash
Script to "Bake" the QT5 libraries for the Pi
#!/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