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
version: '3.2' | |
secrets: | |
portainer-pass: | |
external: true | |
services: | |
agent: | |
image: portainer/agent:latest | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock |
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
#!/bin/bash | |
# | |
tenancy_id=`cat /etc/oci/config | grep tena | uniq | cut -d "=" -f 2` | |
oci iam compartment list --output table --query "data [*].{CompartmentName:\"name\", OCID:id}" | |
read -p "Enter the compartment ID where you wish to create the VCN [$tenancy_id]: " compartment_id | |
compartment_id=${compartment_id:-$tenancy_id} | |
read -p "Enter the VCN name you wish to create [CLI-VCN]: " vcn_name | |
vcn_name=${vcn_name:-CLI-VCN} | |
echo selected VCN name : $vcn_name | |
vcn_dns=`echo "${vcn_name//[_-]/}"` |
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
#!/bin/bash | |
#FortiGate Next-Gen Firewall (BYOL) | |
export STERM="$1" | |
#6.4.0 | |
export SVERSION="$2" | |
export REGION="uk-london-1" | |
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
--- | |
title: "Statistiche Covid 2020 - Italia" | |
output: | |
html_document: default | |
pdf_document: default | |
--- | |
```{r setup, include=FALSE} | |
requiredPackages <- c("readr", "dplyr", "ggplot2", "ggthemes", "scales", "extrafont", "knitr") |
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
{ | |
"variables": { | |
"user_ocid":"{{env `user_ocid`}}", | |
"tenancy_ocid": "{{env `tenancy_ocid`}}", | |
"fingerprint":"{{env `fingerprint`}}", | |
"private_key_path":"{{env `private_key_path`}}", | |
"availability_domain": "{{env `availability_domain`}}", | |
"region": "{{env `region`}}", | |
"base_image_ocid": "{{env `base_image_ocid`}}", | |
"compartment_ocid": "{{env `compartment_ocid`}}", |
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/python | |
# -*- coding: utf-8 -*- | |
# @Author: mattiarossi | |
# @Date: 2016-03-27 23:29:25 | |
# @Last Modified by: mattiarossi | |
# @Last Modified time: 2016-03-28 23:25:55 | |
import time | |
import threading | |
import minimalmodbus |
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
#include <ESP8266WiFi.h> | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#include <PubSubClient.h> | |
//Def | |
#define HVAC_TOSHIBA_DEBUG; // Un comment to access DEBUG information through Serial Interface | |
#define ONE_WIRE_BUS 10 // DS18B20 on arduino pin10 corresponds to SD3 on ESP8266 Dev Board | |
#define NUMROOMS 5 |
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
ls -l `find . -name \*.mp3` | awk '{ x += $5 } END { print "total MB:" x/(1024*1024) }' |
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
#define triggerDelay 90 | |
#define channels 6 | |
#define ppw 1 | |
int pins[channels] = {A0,A1,A2,A3,A4,A5}; | |
int wattshour[channels]={6000,5000,4000,3000,2000,1000}; | |
int pulseStatus[channels]={0}; | |
unsigned long pulseInterval[channels]={0}; |
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
/* | |
Many meters have pulse outputs, including electricity meters: single phase, 3-phase, | |
import, export.. Gas meters, Water flow meters etc | |
The pulse output may be a flashing LED or a switching relay (usually solid state) or both. | |
In the case of an electricity meter a pulse output corresponds to a certain amount of | |
energy passing through the meter (Kwhr/Wh). For single-phase domestic electricity meters | |
(eg. Elster A100c) each pulse usually corresponds to 1 Wh (1000 pulses per kwh). |
NewerOlder