Skip to content

Instantly share code, notes, and snippets.

View CodyBohn's full-sized avatar

Cody Bohn CodyBohn

View GitHub Profile
From c814d07190a645dcce33e4407c6f6d8bb7ebaef2 Mon Sep 17 00:00:00 2001
From: Aleksandrs Vinarskis <[email protected]>
Date: Tue, 12 Dec 2023 20:52:43 +0100
Subject: [PATCH 1/1] ALSA: hda: cs35l41: Dell Fiorano add missing _DSD properties
Dell XPS 9530 (2023) has two SPI connected CS35L41 amplifiers, however
is missing _DSD properties, cs-gpios and has a firmware bug which caps SPI
controller's speed to unusable 3051Hz. This patch adds _DSD properties and
sets second cs-gpio. In case SPI speed bug is detected, it will not
initialize the device to avoid hangs on wake up.
@lumascet
lumascet / esphome.yaml
Last active August 11, 2024 14:43
FYSETC-E4 esphome roller blinds
substitutions:
device_name: "lush-cover-controller"
pulley_diameter_mm: "21.963"
gear_ratio: "1880/2000"
distance_mm: "2050"
acceleration: 500 steps/s^2
velocity: 2500 steps/s # 200 (motor steps) * ${microsteps}
back_off_steps: "200" # back off some steps to reduce stepper energize noise
open_current_x: 1000ma
@cerebrate
cerebrate / homeassistant.yaml
Created September 26, 2021 14:43
Home Assistant Kubernetes manifest
---
apiVersion: v1
kind: Secret
metadata:
name: mysql-recorder-pass
namespace: homeassistant
type: Opaque
data:
password: <REDACTED>
---
@daniel-frenkel
daniel-frenkel / ESPHome.YAML
Last active November 14, 2022 17:49
ESPHome YAML File
substitutions:
device_name: edit-name
pulley_diameter_mm: "15" # 1 turn about 47 mm
gear_ratio: "1" # not used yet for simplicity
distance_mm: "500" # about 10 turns
acceleration: 12800 steps/s^2
velocity: 12800 steps/s # 1 turn per second
open_current: 500ma
open_stall_threshold: "20"
close_current: 600ma
@rajabiy
rajabiy / make-seed-and-deploy-ubuntu.yml
Last active September 19, 2022 17:53
here little exsample how to deploy ubuntu ova into vcenter viaansible and cloud-init.iso
- hosts: localhost
become: no
vars:
vcenter_username: [email protected]
vcenter_password: "vspheresupersecretpassword"
tasks:
- name: Seed directory
file:
path: "{{lookup('env', 'PWD')}}/seed/{{hostvars[item].inventory_hostname}}"
state: directory
#include <WiegandNG.h> //https://github.com/jpliew/Wiegand-NG-Multi-Bit-Wiegand-Library-for-Arduino
//needs https://github.com/jpliew/Wiegand-NG-Multi-Bit-Wiegand-Library-for-Arduino/pull/6
WiegandNG wg;
void PrintAR6182(WiegandNG &tempwg) {
volatile unsigned char *rawData=tempwg.getRawData();
uint8_t rawSize = tempwg.getBufferSize();
uint8_t countedBits = tempwg.getBitCounted();
uint8_t pinDigits = 0;
#cloud-config
chpasswd:
list: |
ubuntu:VMware1!
expire: false
groups:
- docker
users:
- default
- name: ubuntu
@mcfrojd
mcfrojd / Shield_Intents.MD
Last active June 8, 2025 15:26
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV

Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.

Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown


Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant

alt text

Starts Youtube App

entity_id: media_player.shield
command: >-
@jackm
jackm / can-packages-and-tools.md
Last active June 11, 2025 14:48
Collection of CAN bus packages and tools

Collection of CAN bus packages and tools

This document assumes the use of Linux as the chosen development platform. Items in bold are highly recommended.

It is recommended to use SocketCAN when working with CAN bus on Linux. It is supported by the Linux kernel mainline and follows the Linux interface model, allowing you to use other network tools such as Wireshark. This also allows the creation of virtual CAN interfaces where no physical hardware is required to simulate or replay CAN messages.

@ciotlosm
ciotlosm / Readme.md
Last active February 5, 2024 15:04
Kiosk mode for lovelace

Kiosk mode

Installation

Add kiosk.js file with the content below to your www folder in config.

Like any other custom script, use ui-lovelace.yaml resources section to reference the kiosk.js file.

Make sure you add kiosk somewhere in your URL. You can use it in the id of your view or in the query string.