Skip to content

Instantly share code, notes, and snippets.

View erdii's full-sized avatar
🪤

Josh Gwosdz erdii

🪤
View GitHub Profile
@thetechnick
thetechnick / main.go
Created August 24, 2023 19:41
Kube real server-side apply with deletion...
package main
import (
"context"
"encoding/json"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
@xmesaj2
xmesaj2 / Valetudo Z10 Pro Voice Packs.md
Created March 30, 2022 21:18
Valetudo Dreame Z10 Pro Voice Packs Guide
  1. Root
  2. Install Valetudo
  3. Backup files with SCP and to make a list of all of them
scp -i key.id_rsa [email protected]:/audio/EN/* backup/
  1. Download/create your .wav files, save as 0.wav 1.wav etc. https://github.com/Findus23/voice_pack_dreame/blob/main/sound_list.csv use this for reference which file is which sound to avoid listening to original files to find out
  2. Normalize WAV and convert to OGG. I used WSL Ubuntu 20.04 on Win11 (install vorbis-tools, ffmpeg)
@wenerme
wenerme / k3s-new-cert.sh
Created July 12, 2020 06:12
K3S Create Client Cert
#!/bin/bash
set -e
fail(){
echo "error: $*"
echo "usage: ./k3s-new-cert <name> [subject=/O=admin]"
exit 1
}
@cmod
cmod / hugofastsearch.md
Last active July 2, 2025 03:11 — forked from eddiewebb/readme.md
Fast, instant client side search for Hugo static site generator
@vtii
vtii / ! Important files
Last active August 14, 2023 10:40
Important project starter files
This gist includes all important files to start a project.
@tribut
tribut / ds102-3.yaml
Created August 6, 2019 14:26
Esphome config for DS102 (3 Gang)
substitutions:
device_name: your_device_name
friendly_name: "Your Device Name"
api_password: !secret api_password
ota_password: !secret ota_password
esphome:
name: ${device_name}
platform: ESP8266
board: esp01_1m
@tribut
tribut / ds102-1.yaml
Last active June 14, 2024 08:32
Esphome config for DS102 (1 Gang)
substitutions:
device_name: your_device_name
friendly_name: "Your Device Name"
api_password: "pass1"
ota_password: "pass2"
esphome:
name: ${device_name}
platform: ESP8266
board: esp01_1m
@nachbarshund
nachbarshund / vscode-settings.json
Created April 9, 2019 09:14
Decrease CPU usage with VSCode (Helper). Only add this to your settings:
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/tmp": true,
"**/node_modules": true,
"**/bower_components": true,
@frenck
frenck / pow.yaml
Created January 22, 2019 22:35
Sonoff POW R2 Washing Machine Sensor Example
esphomeyaml:
name: pow
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
wifi:
ssid: 'Demo'
password: 'Livestream'
@mpneuried
mpneuried / update_ec2_security_ip.sh
Created December 20, 2018 11:19
AWS EC2 Security Groups: Revoke old and add new current ip to a list of rules based ob the description
#!/bin/sh
# This script will update your ec2 security group with the current ip of your connection.
# To find the "old" rules the description is used
# Requirements:
# - aws-cli with configured profile: https://aws.amazon.com/de/cli/
# - jq: https://stedolan.github.io/jq/
# - curl
####################