Skip to content

Instantly share code, notes, and snippets.

View deftdawg's full-sized avatar

deftdawg

  • Toronto
View GitHub Profile
@appleguru
appleguru / mkteslaemmcimg.sh
Last active November 2, 2023 03:24 — forked from wido/mkteslaemmcimg.sh
Tesla Model S/X MCU1 eMMC image creator
#!/bin/bash
#
# Create a 8GB eMMC image for Tesla Model S/X MCU1
#
# Example usage: ./mkteslaemmcimg.sh ./vinXXXXX.img ./develop-2019.20.2.1-16-5659e07dfd.img
#
set -e
FIRMWARE=$2
IMAGE=$1
@ZoomTen
ZoomTen / 0 - Olive 0.2.x Quickstart.md
Last active June 24, 2020 06:25
Quick guide to Olive 0.2.x

Olive 0.2.x Quickstart

THIS DOCUMENT MAY BE OUTDATED BY THE TIME YOU READ THIS

@tkolo
tkolo / guide.md
Last active June 27, 2024 16:46
eGPU passthrough to VM for Pop!_OS/Ubuntu

Adapted from Arch wiki

Prerequisites

hardware

The extrnal monitor has to be attached to eGPU, not laptop. Otherwise this won't work.

libvirt & virt-manager

Install virt manager:

sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

@wido
wido / mkteslaemmcimg.sh
Last active November 2, 2023 03:23
Tesla Model S/X MCU1 eMMC image creator
#!/bin/bash
#
# Create a 8GB eMMC image for Tesla Model S/X MCU1
#
# Example usage: ./mkteslaemmcimg.sh ./vinXXXXX.img ./develop-2019.20.2.1-16-5659e07dfd.img
#
set -e
FIRMWARE=$2
IMAGE=$1
@narate
narate / create-hotspot.md
Last active July 30, 2024 12:04
Create Wi-Fi Hotspot on Linux using nmcli

Create a Wi-Fi hotspot on Linux using nmcli

Original post : https://unix.stackexchange.com/a/310699

nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid Hostspot
nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
@timdorr
timdorr / ownerapi_endpoints.json
Created February 11, 2017 14:37
Tesla API Endpoints
{
"AUTHENTICATE": {
"TYPE": "POST",
"URI": "oauth/token",
"AUTH": false
},
"REVOKE_AUTH_TOKEN": {
"TYPE": "POST",
"URI": "oauth/revoke",
"AUTH": true
@mrlesmithjr
mrlesmithjr / ansible-macos-homebrew-packages.yml
Last active July 18, 2024 20:59
Install MacOS Homebrew Packages With Ansible
---
- name: Install MacOS Packages
hosts: localhost
become: false
vars:
brew_cask_packages:
- atom
- docker
- dropbox
- firefox
class ViewController: UIViewController, OEEventsObserverDelegate {
var openEarsEventsObserver = OEEventsObserver()
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
openEarsEventsObserver.delegate = self
@jonikarppinen
jonikarppinen / CustomErrorController.java
Last active June 16, 2021 02:19
Example of replacing Spring Boot "whitelabel" error page with custom error responses (with JSON response body)
package com.company.project.controllers;
import com.company.project.model.api.ErrorJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.web.ErrorAttributes;
import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.RequestAttributes;
@sauthieg
sauthieg / PrintSessionFilter.groovy
Created October 17, 2014 09:27
Prints the content of the session on System.out
import groovy.json.JsonOutput
println "SESSION BEFORE"
println JsonOutput.prettyPrint(JsonOutput.toJson(exchange.session))
next.handle(exchange)
println "SESSION AFTER"
println JsonOutput.prettyPrint(JsonOutput.toJson(exchange.session))