brew install avrdude
avrdude -patmega328p -carduino -P/dev/cu.usbserial-AH05Q2H6 -b57600 -D -Uflash:r:/tmp/sketch1.hex:i
| apt-get install libpcre3 zlib1g zlib1g-dev libxml2-dev libxslt1-dev python-dev libgd-dev libxml2-dev libxslt1-dev python-dev libgd-dev libgeoip-dev libssl-dev libpcre++-dev | |
| nginx -t | |
| cd /usr/src/ | |
| git clone https://github.com/vozlt/nginx-module-vts | |
| cd nginx-module-vts/ |
| // Index of some column that is not used. | |
| var SENT_COLUMN = 15; | |
| // Place your Grid API Key here. | |
| var MAILGUN_KEY = "YOUR_MAILGUN_KEY" | |
| // The emails will be send from here. | |
| var EMAIL_FROM = "Company Name <[email protected]>"; | |
| // Errors will be send here | |
| var SUPPORT_EMAIL = "[email protected]"; | |
| // Subject of the email | |
| var SUBJECT = "EMAIL SUBJECT"; |
| <!DOCTYPE html> | |
| <html> | |
| <style> | |
| html {direction: rtl;} | |
| h1 { | |
| position: absolute; | |
| left:-100px; | |
| background: black;color:white; | |
| } | |
| </style> |
| var ip = require( 'ip' ); | |
| var IP = exports | |
| IP.addressInfo = function(name, family) { | |
| var os = require( 'os' ); | |
| var family = 'ipv4'; | |
| var interfaces = os.networkInterfaces( ); | |
| // console.log( interfaces ); | |
| var all = Object.keys(interfaces).map(function (nic) { |