add: mode projects
This commit is contained in:
parent
51c494aded
commit
8e48647acf
@ -37,6 +37,11 @@
|
|||||||
pageRef = "tags/tools"
|
pageRef = "tags/tools"
|
||||||
weight = 10
|
weight = 10
|
||||||
|
|
||||||
|
[[main]]
|
||||||
|
name = "About"
|
||||||
|
pageRef = "about"
|
||||||
|
weight = 30
|
||||||
|
|
||||||
[[main]]
|
[[main]]
|
||||||
identifier = "github"
|
identifier = "github"
|
||||||
pre = "github"
|
pre = "github"
|
||||||
@ -53,6 +58,6 @@
|
|||||||
weight = 10
|
weight = 10
|
||||||
|
|
||||||
[[footer]]
|
[[footer]]
|
||||||
name = "Categories"
|
name = "Status"
|
||||||
pageRef = "categories"
|
url = "https://status.d3vyce.fr/"
|
||||||
weight = 20
|
weight = 20
|
||||||
|
0
content/about.md
Normal file
0
content/about.md
Normal file
4
content/projects/_index.md
Normal file
4
content/projects/_index.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: "Projects"
|
||||||
|
# groupByYear: true
|
||||||
|
---
|
BIN
content/projects/d3vyce-fr/featured.png
(Stored with Git LFS)
Normal file
BIN
content/projects/d3vyce-fr/featured.png
(Stored with Git LFS)
Normal file
Binary file not shown.
17
content/projects/d3vyce-fr/index.md
Normal file
17
content/projects/d3vyce-fr/index.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
title: "d3vyce.fr"
|
||||||
|
date: 2022-08-06
|
||||||
|
draft: false
|
||||||
|
slug: "d3vyce-fr"
|
||||||
|
showAuthor: false
|
||||||
|
showWordCount: false
|
||||||
|
showReadingTime: false
|
||||||
|
showRelatedContent: false
|
||||||
|
tags: ["css3", "html5", "javascript", "bootstrap"]
|
||||||
|
---
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
<img src="featured.png"/>
|
||||||
|
{{< github repo="d3vyce/d3vyce.fr" >}}
|
||||||
|
|
BIN
content/projects/homelab/featured.png
(Stored with Git LFS)
Normal file
BIN
content/projects/homelab/featured.png
(Stored with Git LFS)
Normal file
Binary file not shown.
11
content/projects/homelab/index.md
Normal file
11
content/projects/homelab/index.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
title: "Homelab"
|
||||||
|
date: 2019-07-21
|
||||||
|
draft: false
|
||||||
|
slug: "homelab"
|
||||||
|
showAuthor: false
|
||||||
|
showWordCount: false
|
||||||
|
showReadingTime: false
|
||||||
|
showRelatedContent: false
|
||||||
|
tags: ["opnsense", "wireguard", "docker", "unraid", "qemu"]
|
||||||
|
---
|
BIN
content/projects/pentools/featured.png
(Stored with Git LFS)
Normal file
BIN
content/projects/pentools/featured.png
(Stored with Git LFS)
Normal file
Binary file not shown.
60
content/projects/pentools/index.md
Normal file
60
content/projects/pentools/index.md
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
---
|
||||||
|
title: "Pentools"
|
||||||
|
date: 2023-01-29
|
||||||
|
draft: false
|
||||||
|
slug: "pentools"
|
||||||
|
showAuthor: false
|
||||||
|
showWordCount: false
|
||||||
|
showReadingTime: false
|
||||||
|
showRelatedContent: false
|
||||||
|
tags: ["bash"]
|
||||||
|
---
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
<img src="featured.png"/>
|
||||||
|
{{< github repo="d3vyce/pentools" >}}
|
||||||
|
|
||||||
|
Pentools is a bash script that lets you quickly set up a Debian like machine.
|
||||||
|
|
||||||
|
Initially created for pentesting, the script lets you choose what you want to install or not.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- Wordlist:
|
||||||
|
- rockyou.txt
|
||||||
|
- common.txt
|
||||||
|
- subdomains.txt
|
||||||
|
- directory-list-2.3-medium.txt
|
||||||
|
- password.lst
|
||||||
|
- nmap.lst
|
||||||
|
- Software:
|
||||||
|
- Sublime Text
|
||||||
|
- Obsidian
|
||||||
|
- Chrome (+Extension: Dark Reader, FoxyProxy, WappAnalyser, Hack-Tools, Bitwarden)
|
||||||
|
- Terminator
|
||||||
|
- FFUF
|
||||||
|
- PWNcat
|
||||||
|
- Chisel
|
||||||
|
- Nuclei
|
||||||
|
- sshuttle
|
||||||
|
- Tools:
|
||||||
|
- linPeas
|
||||||
|
- winPeas
|
||||||
|
- LinEnum
|
||||||
|
- linux-exploit-suggester
|
||||||
|
- mimikatz
|
||||||
|
- Binary:
|
||||||
|
- nmap
|
||||||
|
- Alias:
|
||||||
|
- Python server file in pentools folder (command: `filesrv`)
|
||||||
|
- Open Sublime-Text (command: `sublime`) -> To open Sublime-Text in current folder : `sublime .`
|
||||||
|
- OpenVPN (command: `vpn [file.ovpn]`)
|
||||||
|
- Pwncat (command: `pwncat [port]`)
|
||||||
|
- Automation:
|
||||||
|
- SSH keygen
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
To run the script use the following command:
|
||||||
|
```Bash
|
||||||
|
bash <(curl -L https://github.com/d3vyce/PenTools/releases/latest/download/pentools.sh)
|
||||||
|
```
|
@ -3,14 +3,101 @@ title: "Teleinfo Exporter"
|
|||||||
date: 2023-12-19
|
date: 2023-12-19
|
||||||
draft: false
|
draft: false
|
||||||
slug: "teleinfo-exporter"
|
slug: "teleinfo-exporter"
|
||||||
|
# summary: "Template for creating a recipe for Blowfish theme"
|
||||||
showAuthor: false
|
showAuthor: false
|
||||||
# tags: ["project"]
|
showWordCount: false
|
||||||
|
showReadingTime: false
|
||||||
|
showRelatedContent: false
|
||||||
|
tags: ["python", "prometheus", "docker", "grafana", "esp32", "mqtt"]
|
||||||
---
|
---
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
<img src="featured.png"/>
|
<img src="featured.png"/>
|
||||||
|
|
||||||
{{< github repo="d3vyce/teleinfo-exporter" >}}
|
{{< github repo="d3vyce/teleinfo-exporter" >}}
|
||||||
|
|
||||||
|
Teleinfo Exporter is a simple Prometheus exporter for Linky (French smart electricity meter).
|
||||||
|
|
||||||
|
This project is based on Nicolas Bernaerts' Tasmota Teleinfo module: [Github](https://github.com/NicolasBernaerts/tasmota/tree/master/teleinfo)
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Available in pip and docker versions
|
||||||
|
- Supports basic auth and TLS
|
||||||
|
- Complete monitoring of linky metrics
|
||||||
|
- [Grafana Dashboard](https://grafana.com/grafana/dashboards/20182-linky-teleinfo/) with:
|
||||||
|
- Estimation of monthly electricity bill
|
||||||
|
- Last 24 hours consumption
|
||||||
|
- Last 7 days consumption
|
||||||
|
- Last 12 months consumption
|
||||||
|
- Metrics by current phase
|
||||||
|
- Energy Today/Yesterday/Total
|
||||||
|
- Contract Type/Capacity/Number
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
### Pip
|
||||||
|
```
|
||||||
|
python3 -m pip install teleinfo-exporter
|
||||||
|
teleinfo-exporter --help
|
||||||
|
```
|
||||||
|
|
||||||
|
### Docker
|
||||||
|
Minimal Docker compose:
|
||||||
|
```yaml
|
||||||
|
services:
|
||||||
|
web:
|
||||||
|
image: ghcr.io/d3vyce/teleinfo-exporter:latest
|
||||||
|
environment:
|
||||||
|
- BROKER_HOSTNAME=10.10.0.10
|
||||||
|
ports:
|
||||||
|
- 8000:8000
|
||||||
|
restart: always
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Architectures
|
||||||
|
| Architecture | Available | Tag |
|
||||||
|
| ------------ | --------- | ----------------------- |
|
||||||
|
| x86-64 | ✅ | amd64-\<version tag\> |
|
||||||
|
| arm64 | ✅ | arm64-\<version tag\> |
|
||||||
|
|
||||||
|
#### Version Tags
|
||||||
|
| Tag | Available | Description |
|
||||||
|
| ------ | --------- | ---------------------------------------------------- |
|
||||||
|
| latest | ✅ | Latest version |
|
||||||
|
|
||||||
|
#### Variables
|
||||||
|
| Argument | Variable | Description | Default |
|
||||||
|
| ------------------- | -------------------- | ------------------ | ---------------------- |
|
||||||
|
| `--http_port` | `-e HTTP_PORT` | HTTP Port | `8000` |
|
||||||
|
| `--auth_user` | `-e AUTH_USER` | Basic Auth User | |
|
||||||
|
| `--auth_hash` | `-e AUTH_HASH` | Basic Auth Hash | |
|
||||||
|
| `--http_cert` | `-e HTTP_CERT` | HTTP Certificate | |
|
||||||
|
| `--http_key` | `-e HTTP_KEY` | HTTP Key | |
|
||||||
|
| `--broker_host` | `-e BROKER_HOST` | MQTT Host | |
|
||||||
|
| `--broker_port` | `-e BROKER_PORT` | MQTT Port | `1883` |
|
||||||
|
| `--broker_user` | `-e BROKER_USER` | MQTT User | |
|
||||||
|
| `--broker_password` | `-e BROKER_PASSWORD` | MQTT Password | |
|
||||||
|
| `--broker_topic` | `-e BROKER_TOPIC` | Teleinfo Topic | `teleinfo/tele/SENSOR` |
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
### HTTP Authentication
|
||||||
|
To generate the password hash use the following command:
|
||||||
|
```bash
|
||||||
|
htpasswd -bnBC 10 "" PASSWORD | tr -d ':'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Prometheus
|
||||||
|
Config example:
|
||||||
|
```yaml
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: 'Teleinfo'
|
||||||
|
scheme: https
|
||||||
|
tls_config:
|
||||||
|
ca_file: teleinfo.crt
|
||||||
|
basic_auth:
|
||||||
|
username: USER
|
||||||
|
password: PASSWORD
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- 192.168.1.2:8000
|
||||||
|
```
|
||||||
|
11
content/projects/url-shortener/index.md
Normal file
11
content/projects/url-shortener/index.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
title: "URL Shortener"
|
||||||
|
date: 2023-03-05
|
||||||
|
draft: false
|
||||||
|
slug: "url-shortener"
|
||||||
|
showAuthor: false
|
||||||
|
showWordCount: false
|
||||||
|
showReadingTime: false
|
||||||
|
showRelatedContent: false
|
||||||
|
tags: ["python", "docker", "sql", "flask"]
|
||||||
|
---
|
Loading…
x
Reference in New Issue
Block a user