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
''' | |
Fetches Nordpool pricing data, applies VAT, evaluates price thresholds and | |
sets state flags, and updates the local dataset without duplicates. | |
''' | |
import pandas as pd | |
import sys | |
import requests | |
from io import StringIO |
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
<iframe id="embeddedFrame" src="http://your.external.web.page.url" width="100%"> </iframe> | |
<script> | |
var iframe = document.getElementById("embeddedFrame"); | |
function setIframeHeight() { | |
iframe.style.height = iframe.parentElement.offsetHeight-5 + "px"; | |
} | |
// Call setIframeHeight when the iframe content is loaded | |
iframe.onload = setIframeHeight; |
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
# Import PnP PowerShell module | |
Import-Module PnP.PowerShell | |
# Connect to your Document Center site | |
$siteUrl = "https://tenant.sharepoint.com/sites/siteName" | |
Connect-PnPOnline -Url $siteUrl -UseWebLogin | |
# Create a folder structure in the Documents library | |
$folderNames = @( | |
"Legal", |
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
# | |
# For sending metric value to zabbix server. | |
# | |
# You must create item as "zabbix trapper" on server. | |
# Because the server must be connected to agent:10050, if it is selected "zabbix agent". | |
# | |
# Usage: | |
# from modules.ZabbixSender import ZabbixSender | |
# ZABBIX_HOST = "zabbix.example.com" | |
# ZABBIX_PORT = 10051 |
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
import json | |
import socket | |
import struct | |
import time | |
import json | |
class ZabbixSender: | |
''' | |
Sender to Zabbix |
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
# Reverse proxy for granting access to clients that are | |
# in the local net or presenting a valid SSL certificate. | |
# Credits to https://stackoverflow.com/a/48012499/2705147 | |
# Local net user still will be asked for certificate but will be allowed access it case will not present certificate to nginx. | |
geo $internal_ip { | |
default no; | |
10.0.0.0/16 yes; | |
} |
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
[ | |
"π", | |
"π", | |
"π", | |
"π", | |
"π ", | |
"π", | |
"π", | |
"π", | |
"π", |