ip6tables -A INPUT -p ipv6-icmp -m icmp6 --icmpv6-type 128 \
-m --comment Permit-EchoRequest -j ACCEPT
ip6tables -A INPUT -p ipv6-icmp -m icmp6 --icmpv6-type 129 \
-m --comment Permit-EchoReply -j ACCEPT
This file contains 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 python3 | |
# usage: autorsi.py [-h] [--username USERNAME] [--sshconf SSHCONF] [--case CASE] | |
# hostname | |
# | |
# Generate then download RSI and logs. Optionally upload them to the matching | |
# JTAC case. | |
# | |
# positional arguments: | |
# hostname Device to connect to | |
# |
This file contains 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
# Fetches data from https://www.energidataservice.dk/tso-electricity/elspotprices | |
# API documentation http://docs.ckan.org/en/latest/api/index.html#making-an-api-request | |
from datetime import datetime, timedelta | |
import time | |
import requests | |
from influxdb import InfluxDBClient | |
import paho.mqtt.client as mqtt |
OlderNewer