Skip to content

Instantly share code, notes, and snippets.

View aubsw's full-sized avatar

Aubrey Wahl aubsw

  • San Francisco, CA
View GitHub Profile
@VishBK
VishBK / TSS-P_Prius_EPS_Swap_Guide.md
Last active November 29, 2025 04:22
TSS-P Prius EPS Swap Guide

TSS-P Prius EPS Swap Guide

This is a guide for how to swap the electronic power steering motor on a TSS-P (2016-2020) Prius with one from a TSS2 Prius (2021-2022). This raises the torque limit, upgrades the steering position encoder, and provides more stable lateral control for the Comma. From my experience, the torque increases from ~45° to ~135°. This enables the Comma to take some right and left turns at intersections. Below is an example of the new torque around a corner running Sunnypilot with MADS enabled.

EPS swap torque demo

Acquiring the correct motor

The two motor part numbers to get are: 89650-47600 or 89650-47800. 2021-2022 C-HR motors may also work, but are untested. Try searching on eBay or junkyards for used motors. Learning eBay search syntax such as (21, 22, 2021, 2022) Prius (EPS, power steering) and saving searches with notifications helps. New parts are also an option, but may cost up to 8x more. Make sure there

---
format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
trigger_map:
- push_branch: "*"
workflow: tests
workflows:
_tests_setup:
steps:
- activate-ssh-key: {}
@knowbody
knowbody / ex-navigation.md
Last active July 17, 2023 10:14
My exponent's ex-navigation docs/thoughts

Exponent - ex-navigation

This is for now, for my personal use only, things might not be correctly explained here. For the official docs please check: https://github.com/exponentjs/ex-navigation/blob/master/README.md

Navigation bar configuration

On every screen you can use the built-in navigation bar, you can add a title, left button, right button or change navigation bar’s style. All you need to do is pass appropriate params to navigationBar in the route configuration:

import React, { Component } from 'react';
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* Facebook, Inc. ("Facebook") owns all right, title and interest, including
* all intellectual property and other proprietary rights, in and to the React
@pboling
pboling / Procfile
Last active October 31, 2022 16:03
sidekiq initializer
web: bundle exec rails server puma -p $PORT -e $RACK_ENV
critical: env HEROKU_PROCESS=critical bundle exec sidekiq -c 2 -q critical,4
default: env HEROKU_PROCESS=default bundle exec sidekiq -c 4 -q default,2
low: env HEROKU_PROCESS=low bundle exec sidekiq -c 1 -q low,1
@bensie
bensie / base.rb
Created December 6, 2012 17:53
Sinatra API Helpers
require "sinatra/base"
require "sinatra/namespace"
require "multi_json"
require "api/authentication"
require "api/error_handling"
require "api/pagination"
module Api
class Base < ::Sinatra::Base
@jboner
jboner / latency.txt
Last active December 15, 2025 20:11
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@chetan
chetan / yardoc_cheatsheet.md
Last active December 8, 2025 13:54
YARD cheatsheet