Skip to content

Instantly share code, notes, and snippets.

View mikenabhan's full-sized avatar

Mike Nabhan mikenabhan

  • Akamai
  • Denver, Colorado
View GitHub Profile
@mikenabhan
mikenabhan / 3001.json
Created April 27, 2020 18:15
MrCool AC Codes for SmartIR
{
"manufacturer":"MrCool",
"supportedModels":[
"A-18-HP-230B"
],
"commandsEncoding":"Base64",
"supportedController":"Broadlink",
"minTemperature":62,
"maxTemperature":86,
# Copyright 2021 The cert-manager Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@mikenabhan
mikenabhan / ubuntu-proxmox-template.sh
Last active July 6, 2022 01:05
Proxmox Ubuntu 22.04 Cloud Init Template
#!/usr/bin/env bash
set -xeu
wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
virt-customize -a jammy-server-cloudimg-amd64.img --install qemu-guest-agent
virt-sysprep -a jammy-server-cloudimg-amd64.img --operations machine-id
STORAGE_POOL="local-lvm"
VM_ID="12000"
VM_NAME="ubuntu-22.04-cloudimg"
@mikenabhan
mikenabhan / esphome-magtag.yaml
Created September 1, 2021 02:53
This is a GIST that will help you complile MagTag firmware in ESPHome while platformIO is in a transitional state.
substitutions:
devicename: magtag
upper_devicename: Magtag
esphome:
name: magtag
platform: esp32
board: esp32dev
platformio_options:
@mikenabhan
mikenabhan / webhook_bookmarklet
Last active November 4, 2020 02:27
This is a bookmarklet to trigger a webhook in home assistant or node-red.
javascript:(function(){
var webhook_url = "WEBHOOK_URL_HERE";
var request = new XMLHttpRequest();
request.open("GET", webhook_url, true);
request.onreadystatechange = function() {;
};
request.send(null);
})();
@mikenabhan
mikenabhan / keybase.md
Created July 18, 2018 17:24
keybase verification

Keybase proof

I hereby claim:

  • I am mikenabhan on github.
  • I am mikenabhan (https://keybase.io/mikenabhan) on keybase.
  • I have a public key ASBe55IHx07IDrrMWLy38Qa64j7xH9J1SXFJnCdjDE6LRQo

To claim this, I am signing this object:

@mikenabhan
mikenabhan / keybase.md
Created April 17, 2017 02:34
keybase.md

Keybase proof

I hereby claim:

  • I am mikenabhan on github.
  • I am mikenabhan (https://keybase.io/mikenabhan) on keybase.
  • I have a public key ASAE0Lasaaa2ELjI7GNjYRgg0t3GJh0Cq3z0z58lp-qgOgo

To claim this, I am signing this object: