I hereby claim:
- I am karrots on github.
- I am jkarras (https://keybase.io/jkarras) on keybase.
- I have a public key ASCrQEbcxKFpC2IFszi8sk9iHnzzwHy3JbyKrTkQtUv8zAo
To claim this, I am signing this object:
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Net::SNMP; | |
use Getopt::Long; | |
sub snmp_error { | |
my $session = shift; |
I hereby claim:
To claim this, I am signing this object:
local function testHTTP() | |
net.dns.resolve("www.google.com", function(sk, ip) | |
if ip == nil then | |
print("DNS fail!") | |
else | |
print("Resolved: " .. ip) | |
end | |
end) | |
http.get("http://httpbin.org/ip", nil, function(code, data, result) |
#rsyslog config to redirect moteino-gateway logs to the home directory. | |
#Place this file in /etc/rsyslog.d/ then restart the rsyslog daemon. | |
if $programname == 'moteino-gateway' then /home/pi/gateway/logs/gateway.log | |
& ~ |
{ | |
general : { | |
user : 'pi', | |
group : 'pi', | |
} | |
} |