Skip to content

Instantly share code, notes, and snippets.

View pejotes's full-sized avatar
💁

Pawel Stefanski pejotes

💁
  • Poznan/Poland
View GitHub Profile
@jnimmo
jnimmo / wican-ioniq28kw.yaml
Last active April 14, 2024 13:29 — forked from mukowman/wican.yaml
WiCAN Esphome
substitutions:
device_name: car
charging_voltage_threshold: '13.4'
low_voltage_threshold: '12.0'
low_voltage_sleep_duration: 1hours
deep_sleep_duration: 3min # 5 * 60000
# 5 min * 60000 = 300000
first_boot_run_duration: '300000'
abrp_key: !secret abrp_key
abrp_token: !secret abrp_token
@KrzysztofHajdamowicz
KrzysztofHajdamowicz / Home Assistant + ESPHome + wmbusmeters.md
Last active May 9, 2024 15:57
Home Assistant + ESPHome + wmbusmeters
@innovodesign
innovodesign / Pi 1920X480 LCD.md
Last active April 8, 2024 15:33
8.8" 1920x480 letterbox LCD HSD088IPW1 with Raspberry Pi

Raspberry Pi 1920x480 LCD

The HSD088IPW1 with Wisecoco HDMI driver board from Aliexpress.com work seemlessly with a PC but refused to play nicely with my Raspberry Pi until making these changes, tested with Raspbian (March2021) on a Pi Zero W.

These lines modified in /boot/config.txt file

# These lines for 1920x480 display
max_framebuffer_height=1920
hdmi_ignore_edid=0xa5000080
hdmi_timings=480 1 48 32 80 1920 0 3 10 56 0 0 0 60 0 75840000 3
@haproxytechblog
haproxytechblog / blog20181127-01.cfg
Last active January 24, 2024 13:23
Bot Protection with HAProxy
backend per_ip_and_url_rates
stick-table type binary len 8 size 1m expire 24h store http_req_rate(24h)
backend per_ip_rates
stick-table type ip size 1m expire 24h store gpc0,gpc0_rate(30s)
@alram
alram / crush_data_movement_calculator.py
Last active October 26, 2020 12:57
Calculate how much data will move before applying a CRUSHmap change
#!/usr/bin/env python
import ast
import json
import os
import subprocess
import argparse
import sys
FNULL = open(os.devnull, 'w')