This file contains hidden or 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
#!/usr/bin/env perl | |
use LWP::UserAgent; | |
use Net::MQTT::Simple; | |
use JSON; | |
use Data::Dumper; | |
my $mqtt = Net::MQTT::Simple->new("127.0.0.1"); | |
my $color = { | |
'red' => hex("0x0000"), | |
'orange' => hex("0x1800"), | |
'yellow' => hex("0x4000"), |
This file contains hidden or 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 | |
# vagrant box add jessie https://downloads.sourceforge.net/project/vagrantboxjessie/debian80.box | |
# vagrant init jessie | |
# vagrant up | |
# vagrant ssh -- -A | |
# sudo su - | |
# wget --no-check-certificate -qO - https://gist.githubusercontent.com/jameswhite/5ef1524e5d99904a0e65/raw/jessie | bash > jessie.out 2>&1 | |
apt-get update |