Skip to content

Instantly share code, notes, and snippets.

View langerma's full-sized avatar
🔥
Working from home

DataPoints langerma

🔥
Working from home
View GitHub Profile

Working Philosophy

You are an engineering collaborator on this project, not a standby assistant. Model your behavior on:

  • John Carmack's .plan file style: After you've done something, report what you did, why you did it, and what tradeoffs you made. You don't ask "would you like me to do X"—you've already done it.
  • BurntSushi's GitHub PR style: A single delivery is a complete, coherent, reviewable unit. Not "let me try something and see what you think," but "here is my approach, here is the reasoning, tell me where I'm wrong."

Create a collector

Requirements

Step by step

  • Create a file called mainifest.yaml with contents
@owenb321
owenb321 / epaper_sensor_update.yaml
Created February 5, 2021 16:36
Home Assistant sensors used in epaper display
# Automation to publish sensor data to MQTT
- id: publish_epaper_sensors
alias: Publish epaper sensors
initial_state: true
mode: parallel
max: 50
trigger:
- platform: state
entity_id: input_boolean.waveshare_ota_mode
- platform: state
@jbuncle
jbuncle / build-patched-kernel.sh
Last active March 27, 2026 04:09
Compile and install Linux Kernel with patch for Lenovo Legion 5 15ARH05 Touchpad
#! /bin/bash
#
# Lenovo Legion 5 Patch Utility
#
# This script aims to simplify the application of various patches required for Lenovo Legion 5 15ARH05.
# For convenience you can run this script with `bash <(curl https://gist.githubusercontent.com/jbuncle/7dacde983b3c33b3b816b10e2fd2308a/raw/build-patched-kernel.sh)`
#
# References:
# - Original bug and related patch: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190
# - Touchpad patch file: https://www.spinics.net/lists/linux-input/msg69458.html
@voor
voor / make-kiosk.sh
Created March 17, 2017 12:14
Configuring Kiosk Mode on CentOS
#!/bin/bash
# KIOSK generator for Scientific Linux and CentOS (versions 5; 6 and 7)
# Created using Scientific Linux
# Wasn't made and never tested on different distros than SL/CentOS/EL!
# Version 1.4 for i386 and x86_64
#
# Feel free to contact me: [email protected]
# www.marcinwilk.eu
# Marcin Wilk
@smuthali
smuthali / zookeeper.hcl
Created November 4, 2016 19:06
Zookeeper
# Zookeeper
job "zookeeper" {
# Specify Region
region = "uswest-fremont"
# Specify Datacenter
datacenters = [ "fremont-dc1"]
# Specify job type
# Zookeeper
job "zookeeper" {
# Specify Region
region = "uswest-fremont"
# Specify Datacenter
datacenters = [ "fremont-dc1"]
# Specify job type
@jpawlowski
jpawlowski / haproxy.cfg
Last active May 31, 2023 05:41
Geeking out with HAproxy on pfSense: The ultimate port 443 TLS/SSL router | http://loredo.me/post/116633549315/geeking-out-with-haproxy-on-pfsense-the-ultimate
global
maxconn 2000
stats socket /tmp/haproxy.socket level admin
uid 80
gid 80
nbproc 1
chroot /tmp/haproxy_chroot
daemon
tune.ssl.default-dh-param 2048
# Modern browser compatibility only as mentioned here:
@kmassada
kmassada / README.md
Last active September 4, 2021 12:22
Vagrant and KVM(QEMU) on Centos7

Libvirt

yum group install -y "Development Tools"
yum -y install qemu-kvm libvirt virt-install bridge-utils libvirt-devel  libxslt-devel libxml2-devel libvirt-devel libguestfs-tools-c
echo "net.ipv4.ip_forward = 1"|sudo tee /etc/sysctl.d/99-ipforward.conf
sysctl -p /etc/sysctl.d/99-ipforward.conf
@tolleiv
tolleiv / README.md
Last active January 7, 2026 08:58
Fortigate 300C logstash log parsing

Fortigate 300c log parsing in Logstash

QA ca be done with:

logstash-1.4.2/bin/logstash rspec --format documentation test.rb