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
FROM debian:stable-slim | |
WORKDIR /usr/src | |
RUN apt update && apt -y install wget unzip gcc make build-essential | |
RUN wget https://nigos.nist.gov/nist/nbis/nbis_v5_0_0.zip && unzip *zip | |
RUN apt -y install cmake | |
RUN cd Rel_* && ./setup.sh /opt --without-X11 --64 && make config && make it && make install LIBNBIS=yes | |
RUN find /opt -type f |
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 only found overcomplicated solutions for this small problem so I wrote this for myself. | |
-- github.com/ZsBT | |
-- convert IP string to long integer | |
local function ip2long( ip ) | |
if not ip then return false end | |
local o1,o2,o3,o4=ip:match("^(%d%d?%d?)%.(%d%d?%d?)%.(%d%d?%d?)%.(%d%d?%d?)$") | |
if not o1 or not o2 or not o3 or not o4 then return false end | |
return tonumber(o4) + (tonumber(o3) << 8) + (tonumber(o2) << 16) + (tonumber(o1) << 24) |
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
""" | |
Support for W1000 energy portal | |
Thanks to https://github.com/amargo/ for the login session ideas | |
""" | |
import logging | |
import aiohttp | |
import voluptuous as vol |
OlderNewer