docker run --rm -p 8080:8080 \
-e DataSources__EmissionsDataSource="WattTime" \
-e DataSources__ForecastDataSource="WattTime" \
-e DataSources__Configurations__WattTime__Type="WattTime" \
-e DataSources__Configurations__WattTime__username="" \
-e DataSources__Configurations__WattTime__password="" \
ghcr.io/green-software-foundation/carbon-aware-sdk
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
package main | |
import ( | |
"fmt" | |
"sort" | |
"strconv" | |
"time" | |
"github.com/go-git/go-git/v5" | |
"github.com/go-git/go-git/v5/plumbing/object" |
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
networks: | |
monitoring: | |
volumes: | |
prometheus_data: {} | |
services: | |
node-exporter: | |
image: prom/node-exporter:latest | |
container_name: node-exporter |
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
#!/bin/bash | |
sudo modprobe wireguard | |
echo "wireguard" | sudo tee -a /etc/modules | |
sudo modprobe iptable_nat | |
echo "iptable_nat" | sudo tee -a /etc/modules | |
sudo modprobe ip6table_nat | |
echo "ip6table_nat" | sudo tee -a /etc/modules | |
sudo modprobe iptable_filter | |
echo "iptable_filter" | sudo tee -a /etc/modules |
OlderNewer