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"
@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 March 1, 2025 20:50 — 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
####################
@erdii
erdii / install_vcenter_vcsa.md
Last active July 11, 2024 11:39
Install vCenter Server Appliance 6.5 without hash mismatch error!

Install VCSA 6.5 without hash mismatch error!

requirements

  • esxi host
  • dns or ip for both - esx and vcenter
  • correct time settings (ntp automates this, can be enabled on the esx-host)
  • use vcsa-cli installer (the iso contains vcsa-cli for win/lin/mac os)
  • "skipManifestCheck": "true" because of reasons (the installer repeatedly failed to verify integrity hashes of the created vm)
  • "os.password" and "sso.password" HAVE to pass vmware's pw rules PLUS their dictionary! (verification will pass with a pw in their dictionary but setup will not be able to complete! - we stumbled across this by pure chance after trying for 2 whole days!)