Skip to content

Instantly share code, notes, and snippets.

@aviflax
aviflax / deps.edn
Last active June 23, 2020 13:24
Using Specter to modify deeply-nested values in a DaD DB. Start the REPL with `clj -A:repl:dad:specter`
; These aliased can/should be added to the same section in ~/.clojure/deps.edn
; They can then be “activated” by starting the REPL with: clj -A:repl:dad:specter
{:aliases
{:repl {:jvm-opts ["-XX:-OmitStackTraceInFastThrow"
"--illegal-access=deny"
"-Dclojure.server.repl={:port,0,:accept,clojure.core.server/repl}"]
:main-opts ["-e" "(.getLocalPort,(get-in,@#'clojure.core.server/servers,[\"repl\",:socket]))"
"-r"]}
;; *** LIBRARIES ***
@aviflax
aviflax / model_01.yaml
Last active June 11, 2020 15:52
Brainstorming yet another potential YAML DSL for C4 models; see https://twitter.com/flaximus/status/1271107910928666625
people:
customer:
name: Personal Banking Customer
description: A customer of the bank, with personal bank accounts
enterprises:
Big Bank PLC:
people:
support:
name: Customer Service Staff

Aside: Why GitHub?

You might be wondering why we’re using GitHub to track and discuss our work items, rather than JIRA.

In a nutshell, it’s because:

  • Issues is better-integrated with other features of GitHub
    • We can easily and usefully add references and links between issues and commits and/or Pull Requests
  • This is significantly easier, faster, simpler, better documented, and more broadly integrated

Release notes for Tesla vehicle firmware 2019.40.50

source

Driving Visualization Improvements (only for vehicles with HW3)​

The driving visualization can now display additional objects which include stop lights, stop signs and select road markings. The stop sign and stop light visualizations are not a substitute for an attentive driver and will not stop the car. To see these additional object in your driving visualization, tap Controls > Autopilot > Full Self-Driving Visualization Preview.​ ​

Voice Commands​

@aviflax
aviflax / 0-notes-on-scenarios.md
Last active December 19, 2019 15:58
Aborted attempt to simplify FC4 scripts that install sys deps for CI jobs — with ✨data✨!

System deps needed by scenario

Scenario Description Clojure? Java? Chrome/Chromium? Arch? Deb? Mac?
build Building the distribition package ✓ (11+)
lint Linting Clojure code ✓ (11+)
run Running dist pkg ✓ (8+)
test Testing from src ✓ (11+)
@aviflax
aviflax / tesla.30m.py
Last active October 8, 2019 15:58
BitBar plugin for Tesla cars
#!/usr/local/bin/python3
# -*- coding: utf-8 -*-
#
# <bitbar.title>Tesla BitBar</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>therippa@gmail.com</bitbar.author>
# <bitbar.author.github>therippa</bitbar.author.github>
# <bitbar.desc>Control your Tesla from the menubar</bitbar.desc>
# <bitbar.image>https://i.imgur.com/XbwiemY.png</bitbar.image>
# <bitbar.dependencies>python</bitbar.dependencies>
@aviflax
aviflax / ci.yml
Created September 29, 2019 16:51 — forked from mhart/ci.yml
GitHub Actions running 5 tslint jobs in parallel (each tests every 5th file)
name: CI
on: [push]
jobs:
tslint:
runs-on: ubuntu-latest
strategy:
matrix:
job: [0, 1, 2, 3, 4]
@aviflax
aviflax / wc-commits.sh
Created August 12, 2019 17:03
Word / line / char count for all Git commits reachable from HEAD
git log --format='format:%B' | wc
how will this render? &#10084;