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 -x | |
| # | |
| # | |
| # +------------+ | |
| # | | | |
| # | | | |
| # | public | | |
| # | | | |
| # | | | |
| # +-----+------+ |
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
| see https://gist.github.com/flavio-fernandes/54efab0832c011621e3e1cc1fe1d4740 for non-debug output | |
| $ time vagrant up --debug | |
| INFO global: Vagrant version: 2.2.9 | |
| INFO global: Ruby version: 2.6.6 | |
| INFO global: RubyGems version: 3.0.3 | |
| INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded" | |
| INFO global: VAGRANT_INSTALLER_VERSION="2" | |
| INFO global: VAGRANT_INSTALLER_ENV="1" | |
| INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/bin/vagrant" |
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
| $ time vagrant up | |
| Bringing machine 'default' up with 'virtualbox' provider... | |
| ==> default: Importing base box 'centos/7'... | |
| ==> default: Matching MAC address for NAT networking... | |
| ==> default: Setting the name of the VM: mqtt2cmdgit_default_1590316820597_75300 | |
| ==> default: Clearing any previously set network interfaces... | |
| ==> default: Destroying VM and associated drives... | |
| Traceback (most recent call last): | |
| 131: from /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/batch_action.rb:86:in `block (2 levels) in run' | |
| 130: from /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:198:in `action' |
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 | |
| set -o xtrace | |
| set -o errexit | |
| DOMAIN=${1:-$VM} | |
| if [ -z "${DOMAIN}" ]; then | |
| DOMAIN="$(basename $PWD)_default" | |
| fi |
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
| (env) OSX ~/Desktop/mqtt2cmd on testFix.wip | |
| $ pip list | |
| Package Version | |
| ---------- ------- | |
| dill 0.3.1.1 | |
| flashtext 2.7 | |
| paho-mqtt 1.5.0 | |
| pandoc 1.0.2 | |
| pip 20.0.2 | |
| ply 3.11 |
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
| I get this when installing shelljob via pip: | |
| ... | |
| Collecting shelljob | |
| Using cached shelljob-0.5.8.tar.gz (318 kB) | |
| ERROR: Command errored out with exit status 1: | |
| command: /Users/gute/Desktop/mqtt2cmd/env/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/d_/jjdk8f2d3k5gz2tvyb9cv74r0000gn/T/pip-install-svrq_xt3/shelljob/setup.py'"'"'; __file__='"'"'/private/var/folders/d_/jjdk8f2d3k5gz2tvyb9cv74r0000gn/T/pip-install-svrq_xt3/shelljob/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/d_/jjdk8f2d3k5gz2tvyb9cv74r0000gn/T/pip-install-svrq_xt3/shelljob/pip-egg-info | |
| cwd: /private/var/folders/d_/jjdk8f2d3k5gz2tvyb9cv74r0000gn/T/pip-install-svrq_xt3/shelljob/ | |
| Complete output (12 lines): | |
| Generating Description failed, press enter to process anyway, or kill to cancelTraceback (most recent cal |
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
| ovn-nbctl ls-add sw0 | |
| ovn-nbctl lsp-add sw0 sw0-port1 | |
| ovn-nbctl lsp-set-addresses sw0-port1 "50:54:00:00:00:03 10.0.0.3" | |
| ovn-nbctl ls-add public | |
| # Create a logical router | |
| ovn-nbctl lr-add lr0 | |
| ovn-nbctl lrp-add lr0 lr0-sw0 00:00:00:00:ff:01 10.0.0.1/24 | |
| ovn-nbctl lsp-add sw0 sw0-lr0 |
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
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
| <script src="http://code.jquery.com/jquery-1.9.1.js" type="text/javascript"></script> | |
| <script src="http://code.highcharts.com/highcharts.js" type="text/javascript"></script> | |
| <script src="http://code.highcharts.com/modules/exporting.js" type="text/javascript"></script> | |
| <script type="text/javascript"> | |
| $(function () { | |
| var chart; | |
| $(document).ready(function() { |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.require_version ">=1.7.0" | |
| $bootstrap_ovn = <<SCRIPT | |
| # Add repo for where we can get OVS packages |
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
| #include <string.h> | |
| #include <ESP8266WiFi.h> | |
| #include "Adafruit_MQTT.h" | |
| #include "Adafruit_MQTT_Client.h" | |
| /************************* WiFi Access Point *********************************/ | |
| //#include "ssidConfig.h" | |
| #define WLAN_SSID "wifissid" // Your WiFi AP. | |
| #define WLAN_PASS "superSecret" // Your WiFi AP password. |