Skip to content

Instantly share code, notes, and snippets.

View azmodius's full-sized avatar

Johan Ochoa azmodius

View GitHub Profile
@Treeki
Treeki / TurnipPrices.cpp
Last active May 27, 2024 15:18
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@darconeous
darconeous / tesla-key-card-protocol.md
Last active June 27, 2024 15:08
Tesla Key Card Protocol

Tesla Key Card Protocol

Researched by Robert Quattlebaum darco@deepdarc.com.

Last updated 2020-02-03.

Image of Tesla Key Card Image of Tesla Model 3 Key Fob

@ngardiner
ngardiner / TeslaMateMQTT.md
Last active May 21, 2023 21:46
Using TeslaMate MQTT Topics in HomeAssistant

TeslaMate MQTT Integration - HomeAssistant

Introduction

This documents the process of replacing the official HomeAssistant Tesla component with MQTT interactions with TeslaMate.

Benefits

TeslaMate is better at polling the Tesla API, through the use of a better implemented polling mechanism with appropriate back-offs to allow Tesla vehicles to sleep.

It is also extremely useful to have running in parallel with HomeAssistant, offering a logical split between monitoring and visualisation (teslamate) and automation (HomeAssistant). Given HomeAssistant can talk via a common bus to other smart home components such as Garage Doors, Charger systems etc, it would not make sense to re-implement automation externally to HomeAssistant where it can be avoided.

@iamarcel
iamarcel / Creating Neat .NET Core Command Line Apps.md
Last active November 28, 2023 10:41
Creating Neat .NET Core Command Line Apps

Creating Neat .NET Core Command Line Apps

You can now read this on my (pretty) website! Check it out here.

Every reason to get more HackerPoints™ is a good one, so today we're going to write a neat command line app in .NET Core! The Common library has a really cool package Microsoft.Extensions.CommandlineUtils to help us parse command line arguments and structure our app, but sadly it's undocumented.

No more! In this guide, we'll explore the package and write a really neat

@dmangiarelli
dmangiarelli / GitForWindowsSetup.md
Last active May 8, 2024 04:09
How to setup SSH with Git for Windows

How to setup Git for Windows

I know this document seems long, but it shouldn't be too difficult to follow. This guide is based on Windows, but every program here has Linux/Mac equivalents, and in most cases they're built-in. So, take a deep breath and go step by step.

The steps below are for GitHub, but the steps are almost idential for Bitbucket, Heroku, etc.

You'll probably want to make sure Chocolatey is installed, since it streamlines installing this stuff later. If you install via Chocolatey, you don't need to run the installers from the products' respective sites.

Cmder / ConEmu